:root {
    --blue: #0067c0;
    --blue-strong: #005a9e;
    --sky: #e8f3ff;
    --ink: #172033;
    --muted: #64748b;
    --line: rgba(71, 85, 105, .18);
    --surface: rgba(255, 255, 255, .82);
    --shadow: 0 18px 55px rgba(45, 75, 110, .13);
    --radius: clamp(16px, 2vw, 24px);
}

* { box-sizing: border-box; }
html { color-scheme: light; font-family: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif; }
body { min-height: 100vh; margin: 0; color: var(--ink); background: radial-gradient(circle at 12% 5%, #fff 0 8%, transparent 34%), linear-gradient(135deg, #edf6ff, #dbeafe 48%, #f8fbff); }
a { color: inherit; }
.topbar { position: sticky; z-index: 20; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; padding: .7rem clamp(1rem, 4vw, 4rem); border-bottom: 1px solid rgba(255,255,255,.75); background: rgba(248, 251, 255, .78); box-shadow: 0 8px 30px rgba(64, 93, 126, .08); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: .75rem; color: var(--ink); font-weight: 700; text-decoration: none; }
.brand span { display: grid; line-height: 1.05; }
.brand small { margin-top: .22rem; color: var(--muted); font-size: .72rem; font-weight: 500; }
nav { display: flex; flex-wrap: wrap; gap: .35rem; }
nav a { padding: .65rem .85rem; border-radius: 10px; text-decoration: none; }
nav a:hover { background: rgba(0,103,192,.08); }
.shell { width: min(1180px, calc(100% - 2rem)); min-height: calc(100vh - 150px); margin: 0 auto; padding: clamp(2rem, 5vw, 5rem) 0; }
.hero { display: grid; gap: 1.2rem; max-width: 820px; margin-bottom: clamp(2rem, 5vw, 4rem); }
.eyebrow { width: max-content; margin: 0; padding: .4rem .7rem; border: 1px solid rgba(0,103,192,.18); border-radius: 999px; color: var(--blue-strong); background: rgba(255,255,255,.65); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(2.1rem, 6vw, 4.6rem); line-height: .98; letter-spacing: -.055em; }
h2 { letter-spacing: -.025em; }
.lead { max-width: 62ch; color: var(--muted); font-size: clamp(1.02rem, 2vw, 1.25rem); line-height: 1.65; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); align-items: start; }
.tool-column { display: grid; gap: 1rem; min-width: 0; }
.card { padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid rgba(255,255,255,.85); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); backdrop-filter: blur(20px); }
.tool-card { display: grid; min-height: 270px; align-content: space-between; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.tool-card:hover { transform: translateY(-4px); box-shadow: 0 25px 65px rgba(45,75,110,.18); }
.recent-panel { overflow: hidden; border: 1px solid rgba(255,255,255,.85); border-radius: var(--radius); background: rgba(255,255,255,.68); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.recent-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem .75rem; }
.recent-heading h3 { margin: 0; font-size: 1rem; }
.recent-heading span { padding: .25rem .5rem; border-radius: 999px; color: var(--blue-strong); background: var(--sky); font-size: .72rem; font-weight: 750; }
.recent-list { display: grid; gap: 1px; background: var(--line); }
.recent-project { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; align-items: center; gap: .85rem; min-width: 0; padding: .75rem 1rem; color: var(--ink); background: rgba(255,255,255,.92); text-decoration: none; transition: background .18s ease; }
.recent-project:hover { background: #edf6ff; }
.recent-project img { width: 88px; height: 58px; border-radius: 8px; background: #dbeafe; object-fit: cover; }
.recent-project > span { display: grid; gap: .18rem; min-width: 0; }
.recent-project strong, .recent-project small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-project small, .recent-project time { color: var(--muted); font-size: .74rem; }
.recent-project time { white-space: nowrap; }
.recent-empty { margin: 0; padding: 1rem; color: var(--muted); background: rgba(255,255,255,.92); }
.tool-icon { display: grid; width: 52px; aspect-ratio: 1; place-items: center; border-radius: 14px; color: white; background: linear-gradient(145deg, #1683db, #005a9e); box-shadow: 0 12px 28px rgba(0,103,192,.24); font-size: 1.45rem; }
.button, button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: .45rem; padding: .65rem 1rem; border: 1px solid transparent; border-radius: 10px; color: white; background: var(--blue); font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; }
.button:hover, button:hover { background: var(--blue-strong); }
.button.secondary, button.secondary { border-color: var(--line); color: var(--ink); background: rgba(255,255,255,.78); }
.button.danger, button.danger { background: #b42318; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; }
.stack { display: grid; gap: 1rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1rem; }
label { display: grid; gap: .45rem; color: #344054; font-size: .9rem; font-weight: 650; }
input, select { width: 100%; min-height: 44px; padding: .7rem .8rem; border: 1px solid #cbd5e1; border-radius: 9px; color: var(--ink); background: rgba(255,255,255,.9); font: inherit; }
input:focus, select:focus { border-color: var(--blue); outline: 3px solid rgba(0,103,192,.13); }
.inline-check { display: flex; align-items: center; gap: .6rem; }
.inline-check input { width: 1.1rem; min-height: auto; }
.flash { margin-bottom: 1rem; padding: .9rem 1rem; border-radius: 10px; background: #dcfce7; }
.flash.error { color: #7f1d1d; background: #fee2e2; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .85rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--muted); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; }
.status { display: inline-flex; padding: .3rem .55rem; border-radius: 999px; color: #166534; background: #dcfce7; font-size: .78rem; font-weight: 700; }
.status.off { color: #991b1b; background: #fee2e2; }
.logo-preview { width: 92px; height: 52px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: white; }
.secret { overflow-wrap: anywhere; padding: .8rem; border-radius: 9px; background: #eff6ff; font-family: ui-monospace, monospace; font-size: .8rem; }
.center-card { width: min(480px, 100%); margin: 5vh auto; }
footer { padding: 1.5rem; color: var(--muted); text-align: center; font-size: .82rem; }
@media (max-width: 760px) { .tool-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .topbar { align-items: flex-start; } .brand small { display: none; } nav a { padding: .55rem; } th:nth-child(3), td:nth-child(3) { display: none; } .recent-project { grid-template-columns: 72px minmax(0, 1fr); } .recent-project img { width: 72px; height: 52px; } .recent-project time { grid-column: 2; } }
