@font-face { font-family: "IL Display"; src: url("/fonts/display.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "IL Body"; src: url("/fonts/body.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
:root {
  --bg: #f4f7f6; --panel: #ffffff; --panel2: #edf2f0; --ink: #10231f; --muted: #4a605c; --line: #dce5e2; --field: #7c928d;
  --accent: #0e5a52; --accent-soft: #ddede8; --accent-ink: #ffffff; --side: #08332f; --marigold: #f2a900;
  --ok: #0b5c3d; --ok-bg: #d6f0e2; --bad: #8f2417; --bad-bg: #fbe0dc;
  --warn: #6b4a00; --warn-bg: #ffedc2; --info: #34504b; --info-bg: #e2eae8; --violet: #53359c; --violet-bg: #ebe5fa;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --display: "IL Display", "Avenir Next", "Segoe UI", sans-serif;
  --radius: 12px; --shadow: 0 1px 2px rgba(8, 51, 47, .06);
}
:root[data-theme="dark"] {
  --bg: #071a18; --panel: #0d2623; --panel2: #12302c; --ink: #e8f1ef; --muted: #9db8b2; --line: #1f423d; --field: #5d827b;
  --accent: #5fc7b4; --accent-soft: #143c36; --accent-ink: #06201d; --side: #041211;
  --ok: #6fd8a4; --ok-bg: #123527; --bad: #ff9a8e; --bad-bg: #3a1b18;
  --warn: #ffcc55; --warn-bg: #35290c; --info: #bcd0cc; --info-bg: #183431; --violet: #c3adff; --violet-bg: #2a2246;
  --shadow: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --bg: #071a18; --panel: #0d2623; --panel2: #12302c; --ink: #e8f1ef; --muted: #9db8b2; --line: #1f423d; --field: #5d827b;
  --accent: #5fc7b4; --accent-soft: #143c36; --accent-ink: #06201d; --side: #041211;
  --ok: #6fd8a4; --ok-bg: #123527; --bad: #ff9a8e; --bad-bg: #3a1b18;
  --warn: #ffcc55; --warn-bg: #35290c; --info: #bcd0cc; --info-bg: #183431; --violet: #c3adff; --violet-bg: #2a2246;
  --shadow: none;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 "IL Body", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
a { color: var(--accent); }
code, .mono { font-family: var(--mono); font-size: .9em; }
h1 { font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h2 { font-family: var(--display); font-weight: 600; font-size: 18px; margin: 0 0 12px; }
h3 { font-size: 14px; margin: 0 0 10px; color: var(--muted); font-weight: 600; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; border-radius: 6px; }

/* ---- shell ---- */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: var(--panel); border-right: 1px solid var(--line); padding: 18px 12px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 16px; font-weight: 700; }
.brand .logo { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 15px; }
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 500; }
.nav a:hover { background: var(--panel2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav svg { width: 18px; height: 18px; flex: none; }
.side .grow { flex: 1; }
.side .foot { font-size: 12px; color: var(--muted); padding: 8px 10px; border-top: 1px solid var(--line); }
.main { padding: 26px 28px 80px; max-width: 1180px; width: 100%; }
.pagehead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.pagehead p { margin: 4px 0 0; color: var(--muted); max-width: 70ch; }
.topbar { display: none; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px; }
  .brand { padding: 0 8px 0 0; } .brand small, .side .foot, .side .grow { display: none; }
  .nav { display: flex; flex-wrap: wrap; gap: 2px; } .nav a { padding: 7px 9px; }
  .main { padding: 18px 14px 60px; }
}

/* ---- primitives ---- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card + .card, .stack > * + * { margin-top: 16px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; }
.muted { color: var(--muted); } .small { font-size: 13px; } .center { text-align: center; }
.btn { font: inherit; font-weight: 600; border: 1px solid transparent; border-radius: 8px; padding: 9px 16px; background: var(--accent); color: var(--accent-ink); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.btn:hover { filter: brightness(1.08); }
.btn.secondary { background: var(--panel); color: var(--ink); border-color: var(--line); }
.btn.secondary:hover { background: var(--panel2); filter: none; }
.btn.ghost { background: none; color: var(--accent); padding: 6px 8px; }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
input[type=text], input[type=email], input[type=password], input[type=search], select, textarea {
  font: inherit; color: var(--ink); background: var(--panel); border: 1.5px solid var(--field); border-radius: 8px; padding: 10px 12px; min-width: 0;
}
input[type=text], input[type=email], input[type=password], input[type=search] { flex: 1 1 240px; }
textarea { width: 100%; min-height: 130px; font-family: var(--mono); font-size: 13px; resize: vertical; }
label.chk { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.badge { display: inline-block; font-weight: 700; font-size: 12px; padding: 3px 9px; border-radius: 6px; white-space: nowrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; border-radius: 99px; padding: 3px 11px; background: var(--info-bg); color: var(--info); border: 1px solid transparent; }
button.chip { cursor: pointer; font: inherit; font-size: 13px; }
button.chip:hover { border-color: var(--line); }
button.chip[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); font-weight: 600; }
.chip.on { background: var(--warn-bg); color: var(--warn); } .chip.off { opacity: .55; text-decoration: line-through; text-decoration-color: transparent; }
.v-valid { --c: var(--ok); --cb: var(--ok-bg); } .v-invalid, .v-invalid_domain, .v-do_not_send { --c: var(--bad); --cb: var(--bad-bg); }
.v-catch_all, .v-send_with_caution, .v-review, .v-retry_later { --c: var(--warn); --cb: var(--warn-bg); }
.v-disposable { --c: var(--violet); --cb: var(--violet-bg); } .v-unknown, .v-pending { --c: var(--info); --cb: var(--info-bg); } .v-send { --c: var(--ok); --cb: var(--ok-bg); }
.badge.v { background: var(--c); color: var(--panel); }
.tint { background: var(--cb); color: var(--c); }
.kv { display: grid; grid-template-columns: minmax(110px, max-content) 1fr; gap: 7px 14px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; word-break: break-word; min-width: 0; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { text-align: left; font-size: 13px; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; font-weight: 600; }
.t th.sort { cursor: pointer; user-select: none; } .t th.sort:hover { color: var(--ink); }
.t td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tbody tr.click { cursor: pointer; } .t tbody tr.click:hover { background: var(--panel2); }
.tablewrap { overflow-x: auto; }
.empty { text-align: center; padding: 34px 12px; color: var(--muted); }
.bar { height: 8px; background: var(--info-bg); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .3s; }
.stack-bar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: var(--info-bg); }
.stack-bar i { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 13px; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c); margin-right: 6px; }
.stat b { display: block; font-family: var(--display); font-size: 30px; letter-spacing: -.02em; line-height: 1.2; } .stat span { color: var(--muted); font-size: 13px; }
.stat .sub { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.banner.ok { background: var(--ok-bg); color: var(--ok); } .banner.bad { background: var(--bad-bg); color: var(--bad); } .banner.warn { background: var(--warn-bg); color: var(--warn); } .banner.info { background: var(--info-bg); color: var(--info); }
.banner b { display: block; }

/* ---- check result ---- */
.hero { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 18px; border-radius: var(--radius); background: var(--cb); }
.hero .badge { font-size: 14px; padding: 6px 14px; }
.hero .em { font-size: 19px; font-weight: 700; word-break: break-all; color: var(--ink); }
.hero .ds { color: var(--ink); opacity: .78; margin-top: 2px; }
@media (max-width: 700px) { .hero { grid-template-columns: 1fr; } }
.score { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; }
.gauge { width: 96px; height: 96px; }
.gauge text { font-weight: 700; fill: var(--ink); }
.pipeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 4px 0 0; padding: 0; list-style: none; }
.pipeline li { text-align: center; position: relative; padding: 0 4px; font-size: 13px; }
.pipeline li::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.pipeline li:first-child::before { display: none; }
.pipeline .dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 6px; position: relative; z-index: 1; font-weight: 700; background: var(--info-bg); color: var(--muted); border: 2px solid var(--panel); }
.pipeline .pass .dot { background: var(--ok-bg); color: var(--ok); } .pipeline .fail .dot { background: var(--bad-bg); color: var(--bad); } .pipeline .warn .dot { background: var(--warn-bg); color: var(--warn); }
.pipeline .nm { font-weight: 600; } .pipeline .dt { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
@media (max-width: 700px) { .pipeline { grid-template-columns: 1fr; gap: 10px; } .pipeline li { display: grid; grid-template-columns: 40px 1fr; text-align: left; } .pipeline li::before { display: none; } }
.todo { padding: 12px 14px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); font-size: 14px; }
.suggest { padding: 10px 14px; border-radius: 10px; background: var(--warn-bg); color: var(--warn); }
.suggest button { font: inherit; font-weight: 700; background: none; border: 0; color: inherit; text-decoration: underline; cursor: pointer; padding: 0; }
.flags { display: flex; flex-wrap: wrap; gap: 6px; }
.tx { background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 12px; font: 12px/1.6 var(--mono); max-height: 300px; overflow: auto; white-space: pre-wrap; word-break: break-all; }
.tx .c { color: var(--accent); } .tx .s { color: var(--ink); } .tx .e { color: var(--bad); }
details > summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.codeblock { position: relative; }
.codeblock pre { margin: 0; background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 12px; overflow: auto; font: 12px/1.55 var(--mono); max-height: 360px; }
.codeblock .btn { position: absolute; top: 8px; right: 8px; }
.samples { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* ---- bulk ---- */
.drop { border: 2px dashed var(--line); border-radius: var(--radius); padding: 30px 16px; text-align: center; background: var(--panel2); cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop b { display: block; font-size: 16px; }
.pager { display: flex; gap: 6px; align-items: center; justify-content: flex-end; margin-top: 12px; flex-wrap: wrap; font-size: 13px; }
.drawer-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; height: 100vh; width: min(760px, 100vw); background: var(--bg); z-index: 41; overflow-y: auto; padding: 20px; box-shadow: -8px 0 30px rgba(0, 0, 0, .2); }
.modal { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .4); z-index: 60; padding: 16px; }
.modal .card { width: min(420px, 100%); }
.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-size: 14px; z-index: 80; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.warm { display: flex; align-items: flex-end; gap: 6px; height: 90px; margin-top: 10px; }
.warm div { flex: 1; background: var(--accent-soft); border-radius: 4px 4px 0 0; position: relative; min-height: 4px; }
.warm div.today { background: var(--accent); }
.warm div span { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--muted); white-space: nowrap; }
.hl { background: var(--warn-bg); border-radius: 3px; }
.skel { background: linear-gradient(90deg, var(--info-bg), var(--panel2), var(--info-bg)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 8px; height: 18px; }
@keyframes sk { to { background-position: -200% 0; } }

.side-foot{display:grid;gap:8px}

.pw{position:relative;display:block}
.pw input{padding-right:64px}
.reveal{position:absolute;right:6px;top:50%;transform:translateY(-50%);font:inherit;font-size:12px;background:none;border:0;color:var(--accent);cursor:pointer;padding:6px 8px;border-radius:6px}
.reveal:hover{background:var(--accent-soft)}
.auth .btn{justify-content:center;width:100%}
.auth #note:empty{display:none}
.auth #note{margin-bottom:12px}
.auth .btn.ghost.sm{width:auto}
.nav a[hidden]{display:none}

[hidden]{display:none!important}
.auth{text-align:left}

.uchart{display:flex;align-items:flex-end;gap:3px;height:120px;border-bottom:1px solid var(--line)}
.ucol{flex:1;height:100%;display:flex;align-items:flex-end;min-width:2px}
.ucol i{display:block;width:100%;background:var(--accent);border-radius:3px 3px 0 0;opacity:.85}
.ucol:hover i{opacity:1}
.stack-bar i[class^="v-"]{background:var(--c)}
.codeblock pre{overflow-x:auto}
.auth select,.t select{font:inherit;color:var(--ink);background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:6px 8px}

.grid > .card, .grid > .card + .card{margin-top:0}

.legend em.pct{font-style:normal;color:var(--muted)}

.noside .side{display:none}
.noside .shell{grid-template-columns:1fr}
.noside .main{margin:0 auto}

/* ---- sidebar ---- */
.side { background: var(--side); border-right: 0; color: #fff; }
.brand { font-family: var(--display); font-size: 17px; }
.brand .logo { background: none; width: 32px; height: 32px; }
.brand small { font-family: "IL Body", sans-serif; color: #b7cfca; }
.nav a { color: #cfe0dc; }
.nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav a[aria-current="page"] { background: var(--marigold); color: #08332f; }
.side .muted, .side .foot { color: #b7cfca; }
.side-foot .btn.ghost { color: #fff; border-color: rgba(255,255,255,.25); justify-content: center; }
.side-foot { padding: 0 4px; }
.nav a[hidden]{display:none}
[hidden]{display:none!important}

/* ---- sign-in ---- */
.main.center { display: block; max-width: none; padding: 0; margin: 0; text-align: left; }
.signin { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }
.pitch { background: var(--side); color: #fff; padding: 40px clamp(24px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.pitch .brand { padding: 0; font-size: 21px; gap: 12px; }
.pitch .brand .logo { width: 36px; height: 36px; }
.pitch h2 { font-size: clamp(30px, 3.6vw, 48px); font-weight: 700; line-height: 1.08; margin: 0 0 28px; max-width: 13em; }
.samples-demo { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; max-width: 520px; }
.samples-demo li { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fff; color: #10231f; border-radius: 10px; padding: 12px 16px; font-weight: 500; overflow-wrap: anywhere; }
.samples-demo b { font-size: 13px; border-radius: 6px; padding: 4px 11px; white-space: nowrap; }
.samples-demo .g { background: #d6f0e2; color: #0b5c3d; } .samples-demo .a { background: #ffedc2; color: #6b4a00; } .samples-demo .r { background: #fbe0dc; color: #8f2417; }
.pitch small { font-size: 13px; color: #b7cfca; }
.auth { width: min(400px, 100%); margin: auto; padding: 40px 24px; text-align: left; }
.auth h1 { font-size: 34px; margin-bottom: 6px; }
.auth h2 { font-size: 28px; }
.auth .lead { margin: 0 0 20px; color: var(--muted); }
.auth .tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: var(--info-bg); padding: 4px; border-radius: 10px; margin-bottom: 16px; }
.auth .tabs .chip { justify-content: center; min-height: 40px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-weight: 600; font-size: 14px; }
.auth .tabs .chip[aria-pressed="true"] { background: var(--panel); color: var(--ink); }
.auth label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.auth input { width: 100%; min-height: 48px; font-size: 16px; font-weight: 400; }
.auth input#code { font-size: 24px; letter-spacing: .4em; text-align: center; }
.pw { position: relative; display: block; }
.pw input { padding-right: 64px; }
.reveal { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: inherit; font-size: 13px; font-weight: 600; background: none; border: 0; color: var(--accent); cursor: pointer; padding: 8px; border-radius: 6px; }
.reveal:hover { background: var(--accent-soft); }
.auth .btn { justify-content: center; width: 100%; min-height: 50px; font-size: 16px; }
.auth .btn.ghost.sm { width: auto; min-height: 0; font-size: 14px; }
.linkbtn { font: inherit; font-weight: 600; background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; }
.auth #note:empty { display: none; }
.auth #note { margin-bottom: 14px; }
.auth select, .t select { font: inherit; color: var(--ink); background: var(--panel); border: 1.5px solid var(--field); border-radius: 8px; padding: 6px 8px; }
@media (max-width: 860px) {
  .side .nav a { color: #cfe0dc; } .side .nav a[aria-current="page"] { color: #08332f; }
  .signin { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .pitch { padding: 22px 24px; }
  .pitch .story, .pitch small { display: none; }
  .auth { margin: 0 auto; padding-top: 28px; }
}
