/* Indak Mailer — one stylesheet.
   Colour, type and shape follow indakdigital.com: ink-dark surfaces, a cream
   page, Georgia headlines, peach and the logo's yellow as accents, pill buttons. */

:root {
  --bg: #f5f0e6;
  --surface: #fffdf8;
  --sunken: #efe9dc;
  --line: #e6dfcf;
  --line-strong: #d3c9b4;

  --ink: #0e1416;
  --ink-soft: #151b1f;
  --slate: #293840;
  --text: #151b1f;
  --text-2: #4a555b;
  --text-3: #727d82;

  --yellow: #fbba00;
  --yellow-soft: #fff3cf;
  --peach: #f2c39e;
  --peach-ink: #8a4f1d;
  --mist: #ddecee;
  --mist-ink: #102f3e;

  --good: #1b6f46;
  --good-bg: #e1f0e7;
  --warn: #855600;
  --warn-bg: #fbeed0;
  --bad: #a3321f;
  --bad-bg: #f9e3de;

  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(14, 20, 22, .04), 0 12px 32px -18px rgba(14, 20, 22, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--mist-ink); text-underline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ink); margin: 0; }
h1 { font-size: 36px; line-height: 1.1; letter-spacing: -.025em; }
h2 { font-size: 22px; letter-spacing: -.015em; }
h3 { font-size: 17px; letter-spacing: -.01em; }
p { margin: 0; }
.muted { color: var(--text-3); }
.small { font-size: 12.5px; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.nowrap { white-space: nowrap; }
[hidden] { display: none !important; }
::selection { background: var(--yellow); color: var(--ink); }

.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--peach-ink); }
.kicker::before { content: ''; width: 26px; height: 1px; background: currentColor; opacity: .7; }

/* ------------------------------------------------------------------ shell */

.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.side {
  background: radial-gradient(120% 60% at 0% 0%, rgba(242, 195, 158, .10), transparent 60%), var(--ink);
  color: #b9c4c8; padding: 26px 16px 18px; display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 0; height: 100vh; border-right: 1px solid rgba(255, 255, 255, .06);
}
.brand { padding: 2px 10px 26px; display: block; text-decoration: none; }
.brand img { display: block; width: 158px; height: auto; }
.brand span { display: block; margin-top: 12px; font-size: 10.5px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--peach); }
.nav { display: grid; gap: 2px; }
.nav a { position: relative; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; color: #b9c4c8; text-decoration: none; font-weight: 600; font-size: 13.5px; transition: background .2s var(--ease), color .2s var(--ease); }
.nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav a.on { background: rgba(255, 255, 255, .09); color: #fff; }
.nav a.on::before { content: ''; position: absolute; left: -16px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--yellow); }
.nav a.on svg { color: var(--yellow); }
.nav svg { width: 17px; height: 17px; flex: none; }
.nav em { font-style: normal; }
.nav .badge { margin-left: auto; background: var(--yellow); color: var(--ink); border-radius: 99px; font-size: 11px; font-weight: 800; padding: 0 7px; line-height: 19px; }
.side-foot { margin-top: auto; padding: 14px 12px 0; border-top: 1px solid rgba(255, 255, 255, .09); font-size: 12.5px; display: flex; align-items: center; gap: 10px; }
.side-foot .avatar { width: 32px; height: 32px; border-radius: 50%; background: rgba(242, 195, 158, .18); color: var(--peach); display: grid; place-items: center; font-weight: 800; flex: none; text-transform: uppercase; }
.side-foot div { min-width: 0; }
.side-foot b { display: block; color: #fff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot button { background: none; border: 0; color: #8d9aa0; padding: 0; cursor: pointer; font: inherit; }
.side-foot button:hover { color: #fff; text-decoration: underline; }

.main { padding: 40px 48px 96px; min-width: 0; max-width: 1280px; width: 100%; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.head h1 { margin-top: 10px; }
.head p { color: var(--text-2); margin-top: 8px; font-size: 15px; max-width: 62ch; }
.head .actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.crumb { font-size: 12.5px; font-weight: 600; color: var(--text-3); text-decoration: none; display: inline-block; margin-bottom: 14px; }
.crumb:hover { color: var(--ink); }

/* --------------------------------------------------------------- controls */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 0 18px; font: 700 13px/1 var(--sans); letter-spacing: .01em; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 10px 24px -12px rgba(14, 20, 22, .6); }
.btn.primary:hover { background: var(--slate); border-color: var(--slate); }
.btn.light { background: #fff; border-color: #fff; color: var(--ink); }
.btn.light:hover { background: var(--yellow); border-color: var(--yellow); }
.btn.glass { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); color: #fff; }
.btn.glass:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .4); }
.btn.danger { color: var(--bad); }
.btn.danger:hover { border-color: var(--bad); background: var(--bad-bg); }
.btn.ghost { border-color: transparent; background: none; color: var(--text-2); }
.btn.ghost:hover { background: var(--sunken); border-color: transparent; }
.btn.sm { min-height: 32px; padding: 0 13px; font-size: 12.5px; }
.btn svg { width: 15px; height: 15px; }

label.field { display: block; }
label.field > span { display: block; font-weight: 700; font-size: 12px; margin-bottom: 6px; color: var(--text-2); }
label.field > small { display: block; color: var(--text-3); font-size: 12px; margin-top: 6px; line-height: 1.45; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=time], input[type=search], input[type=file], select, textarea {
  width: 100%; border: 1px solid var(--line-strong); background: #fff; border-radius: var(--radius-sm); padding: 10px 12px; font: 14px/1.4 var(--sans); color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
input[type=search] { border-radius: 999px; padding-left: 16px; }
input::placeholder, textarea::placeholder { color: #a3aaad; }
textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
input:disabled, select:disabled { background: var(--sunken); color: var(--text-2); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(251, 186, 0, .35); }
.btn:focus-visible, a:focus-visible, [tabindex]:focus-visible, button:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.stack { display: grid; gap: 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--ink); flex: none; }
.check > span { font-weight: 600; }
.check small { display: block; color: var(--text-3); font-size: 12px; font-weight: 400; line-height: 1.45; margin-top: 2px; }
.days { display: flex; gap: 6px; flex-wrap: wrap; }
.days label { cursor: pointer; position: relative; }
.days input { position: absolute; opacity: 0; inset: 0; }
.days span { display: block; padding: 8px 13px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; font-weight: 700; font-size: 12.5px; color: var(--text-2); transition: .15s; }
.days input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.days input:focus-visible + span { outline: 2px solid var(--yellow); outline-offset: 2px; }

/* ------------------------------------------------------------------ cards */

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card > header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.card > .pad { padding: 22px; }
.grid { display: grid; gap: 20px; }
.cols-2 { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.cols-even { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.gap-b { margin-bottom: 20px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); gap: 16px; margin-bottom: 20px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.tile .k { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); font-weight: 800; }
/* Figures are set in the sans: Georgia's old-style numerals read 0 as O and 1 as I. */
.tile .v { font: 700 32px/1.1 var(--sans); letter-spacing: -.035em; color: var(--ink); margin-top: 10px; font-variant-numeric: tabular-nums; }
.tile .s { font-size: 12.5px; color: var(--text-2); margin-top: 4px; }
.tile.pick { cursor: pointer; transition: border-color .15s, transform .2s var(--ease); }
.tile.pick:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.tile.pick.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--shadow); }
.tile.pick .name { font-weight: 700; font-size: 15px; margin-top: 8px; color: var(--ink); }

.hero {
  position: relative; overflow: hidden; color: #c9d3d6; border-radius: 22px; padding: 30px 34px; margin-bottom: 20px;
  background: radial-gradient(70% 120% at 100% 0%, rgba(242, 195, 158, .20), transparent 60%), radial-gradient(50% 90% at 0% 100%, rgba(251, 186, 0, .10), transparent 60%), var(--ink);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center;
  box-shadow: 0 30px 60px -30px rgba(14, 20, 22, .55);
}
.hero .state { display: inline-flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--peach); }
.hero .big { font: 700 60px/1 var(--sans); letter-spacing: -.045em; color: #fff; font-variant-numeric: tabular-nums; margin-top: 14px; }
.hero .big small { font: 500 16px var(--sans); letter-spacing: 0; color: #9fb0b6; margin-left: 10px; }
.hero .meter { height: 8px; background: rgba(255, 255, 255, .12); margin-top: 20px; max-width: 520px; }
.hero .meter i { background: var(--yellow); }
.hero .facts { margin-top: 14px; font-size: 13px; color: #9fb0b6; display: flex; gap: 8px 22px; flex-wrap: wrap; }
.hero .facts b { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.hero .side-stat { text-align: right; padding-left: 32px; border-left: 1px solid rgba(255, 255, 255, .12); }
.hero .side-stat .k { font-size: 10.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #9fb0b6; }
.hero .side-stat .v { font: 700 42px/1 var(--sans); letter-spacing: -.04em; color: #fff; margin: 8px 0 16px; font-variant-numeric: tabular-nums; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #7d8a90; flex: none; }
.dot.live { background: #6fd39d; box-shadow: 0 0 0 0 rgba(111, 211, 157, .6); animation: pulse 2s infinite; }
.dot.hold { background: var(--yellow); }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(111, 211, 157, 0); } 100% { box-shadow: 0 0 0 0 rgba(111, 211, 157, 0); } }
@media (prefers-reduced-motion: reduce) { .dot.live { animation: none; } * { transition: none !important; } }

.meter { height: 6px; border-radius: 99px; background: var(--sunken); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--ink); border-radius: 99px; }
.meter.full i { background: var(--yellow); }

.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 99px; padding: 3px 10px; font-size: 11px; font-weight: 800; letter-spacing: .04em; background: var(--sunken); color: var(--text-2); white-space: nowrap; vertical-align: middle; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .75; }
.pill.good { background: var(--good-bg); color: var(--good); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.info { background: var(--mist); color: var(--mist-ink); }
.pill.plain::before { display: none; }

.note { border-radius: 12px; padding: 13px 16px; font-size: 13.5px; line-height: 1.5; background: var(--mist); color: var(--mist-ink); border: 1px solid #c6dde0; }
.note.warn { background: var(--warn-bg); color: var(--warn); border-color: #efd9a4; }
.note.bad { background: var(--bad-bg); color: var(--bad); border-color: #efc6bd; }
.note.good { background: var(--good-bg); color: var(--good); border-color: #bfe0cd; }
.note b { font-weight: 800; }
.note a { color: inherit; font-weight: 700; }
.note ul, .note ol { margin: 6px 0 0; padding-left: 20px; }
.note li + li { margin-top: 3px; }

.checklist { counter-reset: step; }
.checklist .item { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.checklist .item:last-child { border-bottom: 0; }
.checklist .item::before { counter-increment: step; content: counter(step); width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-weight: 800; font-size: 12.5px; color: var(--text-2); }
.checklist .item.done::before { content: '✓'; background: var(--good-bg); border-color: transparent; color: var(--good); }
.checklist .item.done b { color: var(--text-3); text-decoration: line-through; text-decoration-thickness: 1px; }
.checklist .item b { font-weight: 700; }

/* ----------------------------------------------------------------- tables */

.table-wrap { overflow-x: auto; }
.table-wrap.tall { max-height: 640px; overflow-y: auto; }
.table-wrap.tall th { position: sticky; top: 0; background: var(--surface); z-index: 1; box-shadow: 0 1px 0 var(--line); }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--text-3); font-weight: 800; padding: 12px 22px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 14px 22px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .15s; }
tbody tr.link { cursor: pointer; }
tbody tr.link:hover { background: #fbf7ee; }
td.r, th.r { text-align: right; }
td b { font-weight: 700; color: var(--ink); }
.clip { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { padding: 64px 24px; text-align: center; color: var(--text-2); }
.empty img { width: 44px; height: 44px; opacity: .9; margin-bottom: 14px; }
.empty h3 { font-size: 22px; margin-bottom: 8px; }
.empty p { max-width: 46ch; margin: 0 auto; }
.empty .btn { margin-top: 20px; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 22px; border-top: 1px solid var(--line); }

/* ------------------------------------------------------------------ chart */

.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .bar { fill: var(--slate); transition: fill .15s; }
.chart .bar.on { fill: var(--ink); }
.chart .bar.today { fill: var(--yellow); }
.chart .bar.today.on { fill: #e0a600; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart text { font: 11px var(--sans); fill: var(--text-3); }
.chart-key { display: flex; gap: 16px; font-size: 12px; color: var(--text-3); }
.chart-key i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; background: var(--slate); }
.chart-key i.today { background: var(--yellow); }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; border-radius: 8px; padding: 7px 11px; font-size: 12px; transform: translate(-50%, -100%); white-space: nowrap; z-index: 5; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .5); }
.tip b { font-variant-numeric: tabular-nums; }

/* -------------------------------------------------------------- campaigns */

.steps { display: grid; gap: 0; }
.step { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.step > header { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.step .n { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 12.5px; flex: none; }
.step .wait { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13px; }
.step .wait input { width: 68px; padding: 6px 9px; }
.step .body { padding: 18px 20px; display: grid; gap: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { border: 1px solid var(--line-strong); background: #fff; border-radius: 999px; padding: 4px 11px; font: 12px var(--mono); color: var(--mist-ink); cursor: pointer; transition: .15s; }
.tag:hover { border-color: var(--ink); background: var(--yellow-soft); }
.connector { width: 1px; height: 22px; background: var(--line-strong); margin-left: 34px; }

.preview { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.preview .meta { padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); display: grid; gap: 3px; }
.preview .meta b { color: var(--ink); font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.preview .text { padding: 18px; white-space: pre-wrap; overflow-wrap: anywhere; font: 14px/1.6 Arial, sans-serif; color: #1a1a1a; }
.preview .foot { padding: 0 18px 18px; font-size: 12px; color: #8a8f92; white-space: pre-wrap; }

.funnel { display: grid; gap: 12px; }
.funnel .line { display: grid; grid-template-columns: 112px 1fr 84px; gap: 14px; align-items: center; font-size: 13px; }
.funnel .line b { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }

/* ------------------------------------------------------------------ inbox */

.reply { border-bottom: 1px solid var(--line); padding: 18px 22px; cursor: pointer; transition: background .15s; }
.reply:last-child { border-bottom: 0; }
.reply:hover { background: #fbf7ee; }
.reply .top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.reply .who { color: var(--ink); }
.reply.unseen .who { font-weight: 800; }
.reply.unseen .who::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); margin-right: 9px; vertical-align: middle; }
.reply .snippet { color: var(--text-2); margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reply.open .snippet { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); margin-top: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.reply .acts { margin-top: 12px; display: none; }
.reply.open .acts { display: block; }
.tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--sunken); }
.tabs button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; font: 700 12.5px var(--sans); color: var(--text-2); cursor: pointer; }
.tabs button.on { background: var(--ink); color: #fff; }

/* ------------------------------------------------------- mailbox + health */

.box { display: grid; gap: 14px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.box:last-child { border-bottom: 0; }
.box.tight { padding: 14px 22px; gap: 7px; }
.box .top { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.box .top b { font-size: 15px; color: var(--ink); }
.box .tools { display: flex; gap: 6px; flex-wrap: wrap; }
.box .usage { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; }
.between { display: flex; justify-content: space-between; gap: 10px; align-items: center; min-width: 0; }
.between > :first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.health { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.health > div { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; font-size: 12.5px; }
.health code { display: block; margin-top: 8px; font: 11.5px/1.45 var(--mono); color: var(--text-2); word-break: break-all; background: var(--sunken); padding: 7px 9px; border-radius: 8px; }

.providers { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 8px; }
.providers label { position: relative; cursor: pointer; }
.providers input { position: absolute; opacity: 0; inset: 0; }
.providers span { display: block; text-align: center; padding: 12px 8px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; font-weight: 700; font-size: 12.5px; color: var(--text-2); transition: .15s; }
.providers input:checked + span { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); color: var(--ink); background: var(--yellow-soft); }
.providers input:focus-visible + span { outline: 2px solid var(--yellow); outline-offset: 2px; }
.guide { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 14px 16px 14px 18px; font-size: 13px; color: var(--text-2); }
.guide b { color: var(--ink); }
.guide ol { margin: 8px 0 0; padding-left: 20px; }
.guide li + li { margin-top: 5px; }

/* ----------------------------------------------------------- modal, toast */

.overlay { position: fixed; inset: 0; background: rgba(14, 20, 22, .6); backdrop-filter: blur(3px); display: grid; place-items: start center; padding: 6vh 16px; overflow-y: auto; z-index: 50; animation: fade .18s var(--ease); }
.modal { background: var(--surface); border-radius: 20px; width: 100%; max-width: 560px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .6); animation: rise .25s var(--ease); }
.modal.wide { max-width: 780px; }
.modal > header { padding: 26px 28px 0; }
.modal > header p { color: var(--text-2); margin-top: 6px; }
.modal > .pad { padding: 22px 28px; }
.modal > footer { padding: 18px 28px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.toasts { position: fixed; right: 22px; bottom: 22px; display: grid; gap: 8px; z-index: 80; }
.toast { background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; max-width: 400px; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .6); font-size: 13.5px; animation: rise .25s var(--ease); border-left: 3px solid var(--yellow); }
.toast.bad { border-left-color: #ff8f7a; }
.toast.good { border-left-color: #6fd39d; }

/* ------------------------------------------------------------------ login */

.login { min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; background: var(--bg); }
.login .art {
  position: relative; overflow: hidden; color: #b9c4c8; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(60% 50% at 85% 10%, rgba(242, 195, 158, .22), transparent 65%), radial-gradient(50% 50% at 0% 100%, rgba(251, 186, 0, .12), transparent 60%), var(--ink);
}
.login .art img.logo { width: 184px; height: auto; display: block; }
.login .art h1 { color: #fff; font-size: clamp(40px, 4.6vw, 68px); line-height: 1.02; letter-spacing: -.04em; max-width: 11ch; margin-top: 22px; }
.login .art h1 em { font-style: normal; color: var(--peach); }
.login .art .kicker { color: var(--peach); }
.login .art p { max-width: 40ch; margin-top: 22px; font-size: 16px; line-height: 1.6; }
.login .art .proof { display: flex; gap: 8px; flex-wrap: wrap; }
.login .art .proof span { border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05); border-radius: 999px; padding: 7px 14px; font-size: 12px; font-weight: 600; color: #d6dee0; }
.login .form { display: grid; place-items: center; padding: 32px; }
.login form { width: 100%; max-width: 360px; display: grid; gap: 18px; }
.login form h2 { font-size: 30px; letter-spacing: -.02em; }
.login form .btn { min-height: 46px; }
.login .mobile-logo { display: none; }

@media (max-width: 960px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px 14px; gap: 8px; }
  .brand { padding: 0 6px; }
  .brand img { width: 120px; }
  .brand span, .side-foot { display: none; }
  .nav { display: flex; flex-wrap: wrap; gap: 2px; }
  .nav a { padding: 8px 10px; }
  .nav a.on::before { display: none; }
  .nav a em { display: none; }
  .main { padding: 26px 16px 72px; }
  h1 { font-size: 30px; }
  .cols-2 { grid-template-columns: minmax(0, 1fr); }
  .hero { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .hero .big { font-size: 48px; }
  .hero .side-stat { text-align: left; padding: 18px 0 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
  .login { grid-template-columns: minmax(0, 1fr); }
  .login .art { display: none; }
  .login .mobile-logo { display: block; background: var(--ink); border-radius: 14px; padding: 16px 20px; }
  .login .mobile-logo img { width: 150px; display: block; }
  td, th { padding: 11px 14px; }
  .checklist .item { grid-template-columns: auto 1fr; }
  .checklist .item .btn { grid-column: 2; justify-self: start; }
}
