/* Milo Hub — airy sky, white surfaces, ink pill buttons. */
@font-face { font-family: "Geist"; src: url("/static/fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/static/fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #0a0f1c;
  --ink-2: #1c2433;
  --muted: #5d6779;
  --faint: #8a93a3;
  --line: #e4eaf3;
  --line-2: #d5deeb;
  --surface: #ffffff;
  --surface-2: #f6f9fd;
  --page: #f2f7fd;
  --sky-1: #cfe6ff;
  --sky-2: #e3f1ff;
  --sky-3: #eef7ff;
  --accent: #2f7cf6;
  --accent-soft: #e8f1ff;
  --green: #138a4b;  --green-soft: #e6f6ed;
  --red: #c9322b;    --red-soft: #fdecea;
  --gold: #a86b00;   --gold-soft: #fdf3df;
  --violet: #6b46d9; --violet-soft: #f0ebff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(16, 40, 80, .04), 0 10px 30px -14px rgba(28, 82, 160, .18);
  --shadow-lg: 0 2px 4px rgba(16, 40, 80, .05), 0 24px 60px -24px rgba(28, 82, 160, .28);
  --ease: cubic-bezier(.23, 1, .32, 1);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); color: var(--ink); background: var(--page);
  font-size: 15px; line-height: 1.55; letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100dvh;
}
/* the sky: soft glow at the top, like morning light behind clouds */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60% 46% at 50% -6%, var(--sky-1) 0%, rgba(207, 230, 255, 0) 70%),
    radial-gradient(40% 30% at 12% 8%, var(--sky-2) 0%, rgba(227, 241, 255, 0) 70%),
    radial-gradient(40% 30% at 88% 6%, #e6f6ff 0%, rgba(230, 246, 255, 0) 70%),
    linear-gradient(180deg, #eaf4ff 0%, var(--page) 38%);
}
/* faint guide lines at the content edges */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, transparent calc(50% - 600px), rgba(120, 150, 190, .14) calc(50% - 600px), rgba(120, 150, 190, .14) calc(50% - 599px), transparent calc(50% - 599px)),
    linear-gradient(90deg, transparent calc(50% + 599px), rgba(120, 150, 190, .14) calc(50% + 599px), rgba(120, 150, 190, .14) calc(50% + 600px), transparent calc(50% + 600px));
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.03em; font-weight: 600; color: var(--ink); }
p { margin: 0; }
code, pre, .mono { font-family: var(--mono); font-size: .9em; }
::selection { background: #cfe3ff; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------------- top bar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  background: rgba(240, 247, 255, .72); border-bottom: 1px solid rgba(213, 222, 235, .7);
}
.topbar .wrap { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -0.03em; font-size: 17px; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-size: 14px;
  background: linear-gradient(145deg, #3d8bff 0%, #1f5fd1 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 12px -4px rgba(31, 95, 209, .6);
}
.brand small { font-weight: 500; color: var(--faint); font-size: 12px; letter-spacing: 0; margin-left: 2px; }
.nav { display: flex; justify-content: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  padding: 7px 13px; border-radius: 999px; font-size: 14px; color: var(--ink-2); white-space: nowrap;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.nav a:hover { background: rgba(10, 15, 28, .05); color: var(--ink); }
.nav a.on { background: var(--ink); color: #fff; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.search-mini { position: relative; }
.search-mini input {
  width: 190px; height: 36px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .8);
  padding: 0 14px 0 34px; font: inherit; font-size: 13.5px; color: var(--ink); outline: none;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease), width 220ms var(--ease);
}
.search-mini input:focus { border-color: #9cc3ff; box-shadow: 0 0 0 4px rgba(47, 124, 246, .12); width: 240px; }
.search-mini svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); }

/* ---------------------------------------------------------------- buttons, pills */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 18px;
  border-radius: 999px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink);
  transition: transform 140ms var(--ease), background-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.btn:hover { background: var(--surface-2); color: var(--ink); }
.btn:active { transform: scale(.97); }
.btn-ink {
  background: var(--ink); color: #fff; border-color: var(--ink);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--ink), 0 6px 16px -6px rgba(10, 15, 28, .45);
}
.btn-ink:hover { background: #1d2638; color: #fff; }
.btn-sm { height: 32px; padding: 0 13px; font-size: 13px; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: rgba(10, 15, 28, .05); }

.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 500; white-space: nowrap; background: var(--surface-2); color: var(--ink-2);
  border: 1px solid var(--line);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.pill.blue { background: var(--accent-soft); color: #1c5fd0; border-color: #d3e4ff; }
.pill.green { background: var(--green-soft); color: var(--green); border-color: #cdebd9; }
.pill.red { background: var(--red-soft); color: var(--red); border-color: #f6d3cf; }
.pill.gold { background: var(--gold-soft); color: var(--gold); border-color: #f3e0b5; }
.pill.violet { background: var(--violet-soft); color: var(--violet); border-color: #ddd2ff; }
.pill.muted { color: var(--faint); }
.pill.neutral { background: #fff; }

.badge-hero {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .78); border: 1px solid rgba(213, 222, 235, .9); font-size: 13px; color: var(--muted);
  box-shadow: 0 1px 2px rgba(16, 40, 80, .04);
}
.live { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }
.live.idle { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .18); }

.score {
  display: inline-grid; place-items: center; min-width: 38px; height: 26px; padding: 0 8px; border-radius: 8px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 600; background: var(--surface-2); color: var(--ink-2);
  border: 1px solid var(--line);
}
.score.hi { background: #e9f8ef; color: var(--green); border-color: #cdebd9; }
.score.mid { background: var(--accent-soft); color: #1c5fd0; border-color: #d3e4ff; }

/* ---------------------------------------------------------------- page heads */
main { padding: 40px 0 96px; }
.hero { padding: 28px 0 34px; text-align: left; }
.hero h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.05; letter-spacing: -0.045em; margin: 18px 0 12px; font-weight: 600; }
.hero p.lead { font-size: 17px; color: var(--muted); max-width: 62ch; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.head h1 { font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -0.04em; line-height: 1.1; }
.head p { color: var(--muted); margin-top: 6px; }
.eyebrow { font-size: 12.5px; font-weight: 500; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }

/* ---------------------------------------------------------------- surfaces */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.card-pad { padding: 22px 24px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px 0; }
.card-head h2 { font-size: 16px; letter-spacing: -0.02em; }
.card-head .more { font-size: 13.5px; color: var(--muted); }
.card-head .more:hover { color: var(--accent); }
.grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.grid > * { min-width: 0; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
@media (max-width: 960px) { .g-2, .g-3, .g-main { grid-template-columns: 1fr; } }

/* KPI band: one card, divided */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 18px; }
.kpi { padding: 20px 24px; border-left: 1px solid var(--line); }
.kpi:first-child { border-left: 0; }
.kpi .n { font-size: 34px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi .l { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
@media (max-width: 720px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kpi:nth-child(3) { border-left: 0; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* rows */
.rows { list-style: none; margin: 0; padding: 8px 0; }
.row { display: flex; align-items: center; gap: 14px; padding: 12px 24px; border-top: 1px solid var(--line); }
.rows .row:first-child { border-top: 0; }
a.row { transition: background-color 160ms var(--ease); }
a.row:hover { background: var(--surface-2); color: inherit; }
.row .main { flex: 1; min-width: 0; }
.row .t { font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .s { color: var(--muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .side { color: var(--faint); font-size: 13px; white-space: nowrap; }
.empty { padding: 26px 24px; color: var(--faint); font-size: 14px; }

/* "needs you" items */
.need { display: flex; gap: 14px; align-items: flex-start; padding: 16px 24px; border-top: 1px solid var(--line); }
.need:first-child { border-top: 0; }
.need-icon {
  flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: #1c5fd0; border: 1px solid #d3e4ff;
}
.need-icon.gold { background: var(--gold-soft); color: var(--gold); border-color: #f3e0b5; }
.need-icon.violet { background: var(--violet-soft); color: var(--violet); border-color: #ddd2ff; }
.need .main { flex: 1; min-width: 0; }
.need .t { font-weight: 500; }
.need .s { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.need .acts { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.cmd {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 6px 0 12px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); font-family: var(--mono); font-size: 12.5px;
}
.cmd button { height: 22px; padding: 0 9px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font: inherit; font-size: 11.5px; cursor: pointer; }
.cmd button:active { transform: scale(.96); }

/* table */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-weight: 500; color: var(--faint); font-size: 12.5px; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr { transition: background-color 160ms var(--ease); }
table.t tbody tr:hover { background: var(--surface-2); }
table.t .title { font-weight: 500; letter-spacing: -0.01em; }
table.t .sub { color: var(--muted); font-size: 13px; }
tr.click { cursor: pointer; }

/* filters */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters input[type=search], .filters select {
  height: 38px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; padding: 0 16px;
  font: inherit; font-size: 14px; color: var(--ink); outline: none;
}
.filters input[type=search] { min-width: 260px; }
.filters input:focus, .filters select:focus { border-color: #9cc3ff; box-shadow: 0 0 0 4px rgba(47, 124, 246, .12); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  height: 32px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .8);
  display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-2);
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.chip:hover { background: #fff; color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .c { color: var(--faint); font-variant-numeric: tabular-nums; }
.chip.on .c { color: rgba(255, 255, 255, .6); }

/* documents & files */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.doc {
  display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow); transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}
.doc:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: inherit; }
.doc .thumb { aspect-ratio: 3 / 3.6; background: linear-gradient(180deg, var(--sky-3), #fff); display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.doc .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.doc .meta { padding: 12px 14px; }
.doc .meta .t { font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc .meta .s { color: var(--faint); font-size: 12.5px; }

.list-docs { list-style: none; margin: 0; padding: 0; }
.list-docs a { display: flex; align-items: center; gap: 12px; padding: 12px 24px; border-top: 1px solid var(--line); transition: background-color 160ms var(--ease); }
.list-docs li:first-child a { border-top: 0; }
.list-docs a:hover { background: var(--surface-2); color: inherit; }
.ficon { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.ficon.md { color: #1c5fd0; background: var(--accent-soft); border-color: #d3e4ff; }
.ficon.pdf { color: var(--red); background: var(--red-soft); border-color: #f6d3cf; }
.ficon.image { color: var(--violet); background: var(--violet-soft); border-color: #ddd2ff; }
.ficon.dir { color: var(--gold); background: var(--gold-soft); border-color: #f3e0b5; }

.crumbs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { color: var(--line-2); }

.viewer { border-radius: var(--radius); overflow: hidden; }
.viewer iframe, .viewer object { width: 100%; height: 82vh; border: 0; display: block; background: #fff; }
.viewer img { max-width: 100%; display: block; margin: 0 auto; }

/* markdown */
.md { font-size: 15.5px; line-height: 1.7; color: var(--ink-2); overflow-wrap: anywhere; }
.md > *:first-child { margin-top: 0; }
.md h1 { font-size: 28px; margin: 1.4em 0 .5em; line-height: 1.2; }
.card .md h1 { font-size: 21px; margin: .2em 0 .6em; }
.card .md h2 { font-size: 18px; }
.md h2 { font-size: 21px; margin: 1.6em 0 .5em; padding-top: .6em; border-top: 1px solid var(--line); }
.md h3 { font-size: 17px; margin: 1.4em 0 .4em; }
.md p { margin: .75em 0; }
.md ul, .md ol { padding-left: 1.3em; margin: .6em 0; }
.md li { margin: .3em 0; position: relative; }
.md a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(47, 124, 246, .3); text-underline-offset: 3px; }
.md code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .86em; }
.md pre { position: relative; background: #0d1422; color: #dbe5f5; border-radius: 14px; padding: 16px 18px; overflow-x: auto; font-size: 13.5px; line-height: 1.6; }
.md pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.md blockquote { margin: 1em 0; padding: 10px 16px; border-left: 3px solid #9cc3ff; background: var(--sky-3); border-radius: 0 12px 12px 0; color: var(--ink-2); }
.md table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: 14px; display: block; overflow-x: auto; }
.md th, .md td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.md th { background: var(--surface-2); font-weight: 600; }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.md img { max-width: 100%; border-radius: 12px; border: 1px solid var(--line); }
a.pathlink { text-decoration: none; }
a.pathlink code { color: #1c5fd0; border-color: #d3e4ff; background: var(--accent-soft); }

/* copy buttons added by hub.js */
.copy-btn {
  position: absolute; top: 2px; right: -2px; opacity: 0; height: 24px; padding: 0 9px; border-radius: 999px;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); font: inherit; font-size: 11.5px; cursor: pointer;
  transition: opacity 160ms var(--ease), transform 140ms var(--ease);
}
.md li:hover > .copy-btn, .md pre:hover > .copy-btn, .md p:hover > .copy-btn, .md blockquote:hover > .copy-btn { opacity: 1; }
.copy-btn:active { transform: scale(.95); }
.copy-btn.ok { background: var(--green-soft); color: var(--green); border-color: #cdebd9; opacity: 1; }
.md pre > .copy-btn { top: 10px; right: 10px; background: rgba(255, 255, 255, .1); color: #dbe5f5; border-color: rgba(255, 255, 255, .15); }
@media (hover: none) { .copy-btn { opacity: 1; position: static; margin-left: 8px; vertical-align: middle; } .md pre > .copy-btn { position: absolute; } }
.md.copyable li { padding-right: 64px; }

/* code view */
.code { margin: 0; padding: 18px 20px; overflow-x: auto; font-size: 13px; line-height: 1.6; background: #fbfdff; }
.code pre { margin: 0; font-family: var(--mono); }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.tl-day { padding: 18px 24px 6px; font-size: 12.5px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
.tl { display: grid; grid-template-columns: 16px 1fr; gap: 14px; padding: 10px 24px 12px; }
.tl .dot { width: 9px; height: 9px; border-radius: 50%; background: #9cc3ff; margin-top: 8px; box-shadow: 0 0 0 4px var(--sky-3); }
.tl .role { font-size: 12.5px; color: var(--accent); font-weight: 500; }
.tl .what { color: var(--ink-2); }
.tl .res { color: var(--faint); font-size: 13px; margin-top: 2px; }

/* emails */
.mail { border-top: 1px solid var(--line); }
.mail:first-child { border-top: 0; }
.mail summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 14px 24px; transition: background-color 160ms var(--ease); }
.mail summary::-webkit-details-marker { display: none; }
.mail summary:hover { background: var(--surface-2); }
.mail .body { padding: 2px 24px 20px 72px; }
.mail pre.letter { white-space: pre-wrap; font-family: var(--sans); font-size: 14.5px; line-height: 1.65; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin: 0 0 12px; color: var(--ink-2); }
.avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 13px; color: #1c5fd0; background: var(--accent-soft); border: 1px solid #d3e4ff; }
@media (max-width: 720px) { .mail .body { padding-left: 24px; } }

/* projects */
.proj .shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 24px 20px; }
.proj .shots img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 10px; border: 1px solid var(--line); }

/* login */
.login-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.login { width: 100%; max-width: 400px; text-align: center; }
.login .card { padding: 30px 28px 26px; text-align: left; margin-top: 26px; }
.login h1 { font-size: 34px; letter-spacing: -0.045em; line-height: 1.1; margin-top: 18px; }
.login p.lead { color: var(--muted); margin-top: 8px; }
.field label { display: block; font-size: 13.5px; font-weight: 500; margin-bottom: 7px; }
.field input {
  width: 100%; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); padding: 0 14px; font: inherit; font-size: 15px;
  outline: none; background: #fff; transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.field input:focus { border-color: #9cc3ff; box-shadow: 0 0 0 4px rgba(47, 124, 246, .12); }
.alert { padding: 10px 14px; border-radius: 12px; font-size: 13.5px; margin-bottom: 14px; background: var(--red-soft); color: var(--red); border: 1px solid #f6d3cf; }
.alert.info { background: var(--accent-soft); color: #1c5fd0; border-color: #d3e4ff; }
.btn-block { width: 100%; height: 44px; margin-top: 18px; font-size: 15px; }

footer.foot { color: var(--faint); font-size: 12.5px; padding: 28px 0 0; text-align: center; }

/* entrance */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 520ms var(--ease) both; }
  .rise.d1 { animation-delay: 40ms; } .rise.d2 { animation-delay: 90ms; } .rise.d3 { animation-delay: 140ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

@media (max-width: 860px) {
  .topbar .wrap { grid-template-columns: auto 1fr; height: auto; padding-top: 10px; padding-bottom: 10px; row-gap: 8px; }
  .nav { grid-column: 1 / -1; order: 3; justify-content: flex-start; margin: 0 -4px; }
  .search-mini input, .search-mini input:focus { width: 150px; }
  .wrap { padding: 0 16px; }
  main { padding-top: 20px; }
  .card-head, .row, .need, .list-docs a { padding-left: 18px; padding-right: 18px; }
  .card-pad { padding: 18px; }
}
@media (max-width: 480px) {
  .search-mini { display: none; }
  .filters input[type=search] { min-width: 0; width: 100%; }
}
