/* Flowmatic — malachite system.
   ink #10231C · malachite #0E7A5A · paper #F3F6F4 · white · line #D5DED9 · amber #F2B233 (pending only) */
:root {
  --ink: #10231c;
  --ink-2: #3c5249;
  --ink-3: #56685f;
  --mal: #0e7a5a;
  --mal-deep: #0a5c44;
  --mal-tint: #e3f1eb;
  --paper: #f3f6f4;
  --white: #ffffff;
  --line: #d5ded9;
  --amber: #f2b233;
  --amber-tint: #fdf3dc;
  --red: #b93a25;
  --red-tint: #f9e6e2;
  --sans: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 18px;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1rem/1.55 var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--mal-deep); text-underline-offset: 3px; }
a:hover { color: var(--mal); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 3px; }
code, pre, kbd, .mono { font-family: var(--mono); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 650; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 99; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 30px; width: auto; }
.side .brand img, .app-top .brand img { height: 26px; }
.site-foot .brand img { height: 28px; }

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 .95rem/1 var(--sans); padding: 12px 18px; border-radius: var(--r-sm);
  border: 1.5px solid transparent; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--mal); color: #fff; }
.btn-primary:hover { background: var(--mal-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); color: var(--ink); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; color: #fff; }
.btn-danger { background: var(--white); color: var(--red); border-color: #e6b8ae; }
.btn-danger:hover { background: var(--red-tint); color: var(--red); }
.btn-sm { padding: 8px 12px; font-size: .85rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

label { display: block; font-weight: 600; font-size: .9rem; margin: 0 0 6px; }
.hint { font-size: .82rem; color: var(--ink-3); margin-top: 6px; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], select, textarea {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink);
  padding: 11px 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--white);
}
textarea { font-family: var(--mono); font-size: .92rem; min-height: 180px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--mal); outline: none; box-shadow: 0 0 0 3px rgba(14,122,90,.16); }
.field { margin-bottom: 18px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; margin-bottom: 10px; }
.check input { width: 18px; height: 18px; accent-color: var(--mal); }
.form-grid { display: grid; gap: 0 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- flash ---------- */
.flashes { display: grid; gap: 8px; margin: 0 0 20px; }
.flash { padding: 12px 14px; border-radius: var(--r-sm); background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--mal); font-size: .95rem; }

/* ---------- public header ---------- */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(243,246,244,.92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid transparent; }
.site-head.scrolled { border-bottom-color: var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.site-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; }
.site-nav a:hover { color: var(--ink); }
.site-nav .btn { color: #fff; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; font: 600 .9rem var(--sans); color: var(--ink); }
@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 24px 18px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 12px; }
}

/* ---------- hero ---------- */
.hero { padding: 72px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { max-width: 13ch; }
.hero .lede { font-size: 1.2rem; color: var(--ink-2); max-width: 46ch; margin-bottom: 28px; }
.hero .fine { margin-top: 18px; font-size: .9rem; color: var(--ink-3); }
@media (max-width: 920px) { .hero { padding: 40px 0 56px; } .hero .wrap { grid-template-columns: 1fr; gap: 40px; } }

/* the verification receipt — the one memorable element */
.receipt {
  position: relative; background: var(--ink); color: #dfeae5; border-radius: var(--r-lg);
  padding: 26px 26px 22px; font-family: var(--mono); font-size: .92rem;
  box-shadow: 0 30px 60px -30px rgba(16,35,28,.55);
}
.receipt::before {
  /* malachite banding: concentric rings, the mineral's signature */
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .5;
  background: repeating-radial-gradient(circle at 105% -10%, rgba(46,170,125,.16) 0 9px, rgba(46,170,125,0) 9px 22px);
}
.receipt > * { position: relative; }
.receipt .req { color: #9fb8ad; margin-bottom: 18px; overflow-wrap: anywhere; }
.receipt .req b { color: #fff; font-weight: 500; }
.receipt .rows { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; }
.receipt .k { color: #86a397; }
.receipt .v { color: #fff; }
.receipt .name { font-family: var(--sans); font-size: 1.65rem; font-weight: 700; letter-spacing: -0.02em; color: #fff; line-height: 1.1; }
.receipt .ok { display: inline-flex; align-items: center; gap: 8px; color: #5fe0ae; }
.receipt .ok::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #5fe0ae; box-shadow: 0 0 0 4px rgba(95,224,174,.18); }
.receipt .caption { margin-top: 20px; padding-top: 14px; border-top: 1px dashed rgba(223,234,229,.2); font-family: var(--sans); font-size: .8rem; color: #86a397; }
.receipt .step { opacity: 0; transform: translateY(4px); animation: rcpt .45s ease-out forwards; }
.receipt .step:nth-child(1) { animation-delay: .15s; }
.receipt .step:nth-child(2) { animation-delay: .55s; }
.receipt .step:nth-child(3) { animation-delay: 1.05s; }
.receipt .step:nth-child(4) { animation-delay: 1.45s; }
@keyframes rcpt { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .receipt .step { animation: none; opacity: 1; transform: none; } }

/* ---------- sections ---------- */
.section { padding: 80px 0; }
.section.white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--ink-2); font-size: 1.08rem; }
@media (max-width: 640px) { .section { padding: 56px 0; } }

/* sequence: genuinely ordered steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 32px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 18px; }
.steps li::before { content: counter(s); display: block; font: 700 2.4rem/1 var(--sans); color: var(--mal); margin-bottom: 12px; letter-spacing: -0.03em; }
.steps p { color: var(--ink-2); margin: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* networks */
.networks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--white); }
.network { padding: 24px; border-right: 1px solid var(--line); }
.network:last-child { border-right: 0; }
.network .op { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
.network .pfx { font-family: var(--mono); font-size: .9rem; color: var(--ink-2); margin-top: 6px; }
@media (max-width: 720px) { .networks { grid-template-columns: 1fr; } .network { border-right: 0; border-bottom: 1px solid var(--line); } .network:last-child { border-bottom: 0; } }

/* developer split */
.dev { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
.dev ul { padding-left: 1.1em; color: var(--ink-2); }
.dev li { margin-bottom: 8px; }
@media (max-width: 920px) { .dev { grid-template-columns: 1fr; } }
pre.code {
  margin: 0; background: var(--ink); color: #dfeae5; border-radius: var(--r-md); padding: 20px 22px;
  font-size: .86rem; line-height: 1.6; overflow-x: auto; white-space: pre;
}
pre.code .c { color: #7f9b8f; }
pre.code .s { color: #9be8c6; }
pre.code .k { color: #f6cf72; }

/* services list (not cards) */
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc-list li { border-bottom: 1px solid var(--line); }
.svc-list a { display: grid; grid-template-columns: 260px 1fr max-content; gap: 24px; align-items: baseline; padding: 20px 4px; text-decoration: none; color: var(--ink); }
.svc-list a:hover { background: rgba(14,122,90,.04); }
.svc-list .t { font-weight: 650; font-size: 1.08rem; }
.svc-list .d { color: var(--ink-2); }
@media (max-width: 760px) { .svc-list a { grid-template-columns: 1fr; gap: 4px; } }

.tag { display: inline-block; white-space: nowrap; font-size: .78rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--paper); color: var(--ink-2); border: 1px solid var(--line); }
.tag.live { background: var(--mal-tint); color: var(--mal-deep); border-color: #bfe0d2; }
.tag.pending { background: var(--amber-tint); color: #7a5400; border-color: #f1dca5; }
.tag.fail { background: var(--red-tint); color: var(--red); border-color: #efc4ba; }
.tag.admin { background: var(--ink); color: #fff; border-color: var(--ink); }

.cta-band { background: var(--mal-deep); color: #fff; border-radius: var(--r-lg); padding: 44px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; color: #f2fbf7; }
.cta-band .btn-ink { background: var(--white); color: var(--ink); }
.cta-band .btn-ink:hover { background: var(--paper); }

/* ---------- footer ---------- */
.site-foot { padding: 56px 0 32px; color: var(--ink-2); font-size: .93rem; }
.site-foot .grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-foot h3 { font-size: .95rem; color: var(--ink); margin-bottom: 10px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 6px; }
.site-foot a { color: var(--ink-2); text-decoration: none; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }
.site-foot .base { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-3); font-size: .85rem; }
@media (max-width: 760px) { .site-foot .grid { grid-template-columns: 1fr; } }

/* ---------- content pages ---------- */
.page-head { padding: 56px 0 28px; }
.page-head p { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; }
.prose { max-width: 72ch; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 36px 40px; margin-bottom: 72px; }
.prose h2 { font-size: 1.3rem; margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.05rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
@media (max-width: 640px) { .prose { padding: 24px 20px; } }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 36px; }
.feature-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-grid h3 { margin-bottom: 6px; }
.feature-grid p { color: var(--ink-2); margin: 0; }
@media (max-width: 820px) { .feature-grid, .feature-grid.two { grid-template-columns: 1fr; } }

/* ---------- auth ---------- */
.auth { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 40px 16px 72px; }
.auth-card { width: 100%; max-width: 440px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 36px; }
.auth-card h1 { font-size: 1.75rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--ink-2); margin-bottom: 24px; }
.auth-card .btn-primary { width: 100%; padding: 14px; }
.auth-card .alt { margin-top: 20px; font-size: .92rem; color: var(--ink-2); text-align: center; }
.state-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px; font-size: 1.5rem; font-weight: 700; }
.state-icon.ok { background: var(--mal-tint); color: var(--mal-deep); }
.state-icon.wait { background: var(--amber-tint); color: #7a5400; }
.state-icon.bad { background: var(--red-tint); color: var(--red); }

/* ---------- app shell ---------- */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; background: linear-gradient(90deg, var(--ink) 248px, transparent 248px); }
.side { background: var(--ink); color: #c7d6cf; padding: 22px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 22px; }
.side .brand { padding: 0 8px; }
.side nav { display: grid; gap: 2px; }
.side .grp { font-size: .78rem; color: #7f9b8f; padding: 14px 10px 6px; }
.side nav a { display: flex; align-items: center; gap: 10px; color: #c7d6cf; text-decoration: none; padding: 9px 10px; border-radius: var(--r-sm); font-weight: 500; font-size: .94rem; }
.side nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side nav a[aria-current=page] { background: #1b3d30; color: #fff; box-shadow: inset 3px 0 0 #5fe0ae; }
.side .me { margin-top: auto; border-top: 1px solid rgba(255,255,255,.1); padding: 14px 10px 0; font-size: .88rem; }
.side .me b { display: block; color: #fff; font-weight: 600; }
.side .me a { color: #9fb8ad; }
.main { padding: 32px 40px 64px; min-width: 0; }
.main-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.main-head h1 { font-size: 1.85rem; margin: 0; }
.main-head p { margin: 4px 0 0; color: var(--ink-2); }
.app-top { display: none; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; background: none; }
  .side { position: fixed; inset: 0 30% 0 0; z-index: 40; transform: translateX(-100%); transition: transform .2s; height: auto; }
  .side.open { transform: none; }
  .app-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; background: var(--ink); }
  .app-top button { background: none; border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: var(--r-sm); padding: 6px 10px; font: 600 .85rem var(--sans); }
  .main { padding: 24px 18px 56px; }
}

.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; margin-bottom: 20px; }
.panel h2 { font-size: 1.1rem; margin-bottom: 14px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head h2 { margin: 0; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cols-main { display: grid; grid-template-columns: 1.3fr .7fr; gap: 20px; align-items: start; }
.cols-2 > *, .cols-main > *, .main { min-width: 0; }
@media (max-width: 1100px) { .cols-2, .cols-main { grid-template-columns: 1fr; } }

/* stat strip: one row, divided, not four floating cards */
.stats { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 20px; }
.stat { padding: 18px 22px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .n { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.stat .l { color: var(--ink-3); font-size: .88rem; }
.stat.good .n { color: var(--mal); }
.stat.bad .n { color: var(--red); }
@media (max-width: 720px) { .stats { grid-auto-flow: row; } .stat { border-right: 0; border-bottom: 1px solid var(--line); } .stat:last-child { border-bottom: 0; } }

.keybox { display: flex; gap: 8px; align-items: stretch; }
.keybox input { font-family: var(--mono); font-size: .9rem; background: var(--paper); }

table.t { width: 100%; border-collapse: collapse; font-size: .92rem; }
.t th { text-align: left; font-weight: 600; color: var(--ink-3); font-size: .82rem; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t td { padding: 11px 12px; border-bottom: 1px solid #e8eeea; vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t td.mono, .t .mono { font-family: var(--mono); font-size: .86rem; }
.t tbody tr:hover { background: #f8fbf9; }
.t a { font-weight: 500; }
.table-wrap { overflow-x: auto; margin: 0 -24px; padding: 0 24px; }
.empty { text-align: center; padding: 36px 16px; color: var(--ink-2); }
.empty p { margin-bottom: 14px; }

.result { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.result .top { padding: 20px 22px; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.result .who { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.result dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; padding: 16px 22px; background: var(--paper); border-top: 1px solid var(--line); font-size: .93rem; }
.result dt { color: var(--ink-3); }
.result dd { margin: 0; font-family: var(--mono); font-size: .88rem; }
.result.ok { border-color: #bfe0d2; }
.result.fail { border-color: #efc4ba; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs button { background: none; border: 0; padding: 10px 14px; font: 600 .92rem var(--sans); color: var(--ink-3); border-bottom: 2px solid transparent; cursor: pointer; margin-bottom: -1px; }
.tabs button[aria-selected=true] { color: var(--ink); border-bottom-color: var(--mal); }
[role=tabpanel][hidden] { display: none; }

.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.filters a { font-size: .86rem; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink-2); text-decoration: none; }
.filters a[aria-current=true] { background: var(--ink); color: #fff; border-color: var(--ink); }

.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 16px; font-size: .9rem; }

.endpoint { border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 18px; overflow: hidden; background: var(--white); }
.endpoint > header { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.endpoint .method { font: 600 .78rem var(--mono); padding: 4px 8px; border-radius: 4px; background: var(--mal-tint); color: var(--mal-deep); }
.endpoint .method.post { background: var(--amber-tint); color: #7a5400; }
.endpoint .path { font-family: var(--mono); font-weight: 500; }
.endpoint > div { padding: 16px 18px; }
.endpoint pre.code { border-radius: var(--r-sm); }

.bars { display: flex; align-items: flex-end; gap: 3px; height: 160px; padding-top: 8px; }
.bars span { flex: 1; background: var(--mal); border-radius: 2px 2px 0 0; min-height: 1px; opacity: .85; }
.bars span:hover { opacity: 1; }
.bars-axis { display: flex; justify-content: space-between; font-size: .78rem; color: var(--ink-3); margin-top: 6px; }
.hbar { display: grid; grid-template-columns: minmax(0, 110px) minmax(0, 1fr) 60px; gap: 10px; align-items: center; font-size: .9rem; margin-bottom: 8px; }
.hbar .track { background: var(--paper); border-radius: 3px; height: 10px; overflow: hidden; }
.hbar .fill { display: block; background: var(--mal); height: 100%; border-radius: 3px; }
.hbar > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

pre.json { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px; font-size: .82rem; overflow: auto; max-height: 480px; margin: 0; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; font-size: .94rem; }
.dl dt { color: var(--ink-3); }
.dl dd { margin: 0; overflow-wrap: anywhere; min-width: 0; }
details.raw summary { cursor: pointer; color: var(--mal-deep); font-size: .88rem; font-weight: 600; }

/* hero pipeline illustration */
.flow-panel { margin: 0; background: var(--ink); border-radius: var(--r-lg); padding: 18px 16px 14px; box-shadow: 0 30px 60px -30px rgba(16,35,28,.55); }
.flow-svg { display: block; width: 100%; height: auto; }
.flow-in { fill: none; stroke: var(--mal); stroke-width: 3; stroke-linecap: round; }
.flow-out { fill: none; stroke: #5fe0ae; stroke-width: 3; stroke-linecap: round; stroke-opacity: .55; }
.chip-in { fill: #17322a; stroke: #2c4a3f; }
.chip-out { fill: #1b3d30; stroke: #5fe0ae; stroke-opacity: .7; }
.chip-dot { fill: #5fe0ae; }
.chip-label { font-family: var(--mono); font-size: 12.5px; font-weight: 500; fill: #c7d6cf; }
.chip-label.out { fill: #fff; font-family: var(--sans); font-size: 14px; font-weight: 600; }
.hub { fill: var(--ink); stroke: #5fe0ae; stroke-width: 3; }
.hub-core { fill: #5fe0ae; }
.hub-pulse { fill: none; stroke: #5fe0ae; stroke-width: 2; }
.hub-label { font-family: var(--mono); font-size: 11.5px; fill: #9fb8ad; }
.pk-in { fill: #9be8c6; }
.pk-out { fill: #fff; }
.flow-caption { margin: 8px 4px 0; font-size: .82rem; color: #9fb8ad; }
@media (prefers-reduced-motion: reduce) { .packets, .hub-pulse { display: none; } }

/* ---------- admin lists + mobile tables ---------- */
.nowrap { white-space: nowrap; }
.flags { display: inline-flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.ulist { list-style: none; margin: 0; padding: 0; }
.ulist li { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; padding: 11px 0; border-bottom: 1px solid #e8eeea; }
.ulist li:last-child { border-bottom: 0; }
.ulist .who { min-width: 0; flex: 1 1 160px; }
.ulist .who a { font-weight: 500; overflow-wrap: anywhere; }
.ulist .who .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) {
  .panel { padding: 18px 16px; }
  .table-wrap { margin: 0; padding: 0; overflow: visible; }
  .stats { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
  .stat { padding: 14px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat:nth-last-child(-n+2):nth-child(odd), .stat:last-child { border-bottom: 0; }
  .stat .n { font-size: 1.5rem; }
  .main-head h1 { font-size: 1.5rem; }
  table.t.stack, .t.stack tbody, .t.stack tr, .t.stack td { display: block; width: 100%; }
  .t.stack thead { display: none; }
  .t.stack tr { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 4px 14px; margin-bottom: 10px; }
  .t.stack tr:last-child td { border-bottom: 1px solid #eef2ef; }
  .t.stack td { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 9px 0; border-bottom: 1px solid #eef2ef; text-align: right; overflow-wrap: anywhere; }
  .t.stack td:last-child, .t.stack tr:last-child td:last-child { border-bottom: 0; }
  .t.stack td::before { content: attr(data-label); flex: 0 0 auto; text-align: left; color: var(--ink-3); font-size: .82rem; font-weight: 600; white-space: nowrap; }
  .t.stack td[data-label=""] { justify-content: flex-end; }
  .t.stack td[data-label=""]::before { content: none; }
  .t.stack td > div { min-width: 0; }
}

.searchbar { display: flex; gap: 8px; margin-bottom: 14px; }
.searchbar input { flex: 1; min-width: 0; }
.h-sub { font-size: .86rem; font-weight: 600; color: var(--ink-3); margin: 16px 0 6px; }
.break { overflow-wrap: anywhere; margin: 0; }
.flash-error { border-left-color: var(--red); margin-bottom: 12px; overflow-wrap: anywhere; }
.cf-turnstile { margin: 4px 0 16px; min-height: 65px; }

/* ---------- billing ---------- */
input[type=date], input[type=file] { width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink); padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--white); }
input[type=date]:focus { border-color: var(--mal); outline: none; box-shadow: 0 0 0 3px rgba(14,122,90,.16); }
textarea.short { min-height: 84px; font-family: var(--sans); font-size: .95rem; }
textarea.tall { min-height: 170px; }
.form-grid.three { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 640px) { .form-grid.three { grid-template-columns: 1fr 1fr; } }
.item-row { border-top: 1px solid #e8eeea; padding-top: 14px; margin-top: 6px; }
.item-row:first-of-type { border-top: 0; padding-top: 0; }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1100px) { .cols-3 { grid-template-columns: 1fr; } }
.upload { display: grid; gap: 8px; margin-top: 12px; max-width: 460px; }
.upload label { margin: 0; }
.upload .btn { justify-self: start; }
.lockrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.lockrow .check { margin: 0; }
.lockrow input[type=date] { width: auto; }
.inline-reject { display: inline-flex; gap: 6px; }
.inline-reject input { width: 140px; padding: 7px 9px; font-size: .85rem; }
.billing-banner { margin-bottom: 18px; }

/* ---------- pricing ---------- */
.pricing-section { padding-top: 8px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 28px; }
.plan-name { font-size: 1.15rem; font-weight: 650; margin: 0 0 18px; }
.plan-price { margin: 0 0 6px; display: flex; align-items: baseline; gap: 6px; }
.plan-price .amount { font-size: clamp(2.4rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.plan-price .amount.talk { font-size: clamp(1.9rem, 3vw, 2.3rem); }
.plan-price .per { color: var(--ink-3); font-weight: 500; }
.plan-volume { font-weight: 600; color: var(--mal-deep); margin: 0 0 10px; }
.plan-summary { color: var(--ink-2); margin: 0 0 18px; }
.plan-features { list-style: none; margin: 0 0 26px; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; flex: 1; }
.plan-features li { position: relative; padding-left: 26px; }
.plan-features li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 12px; height: 7px; border-left: 2px solid var(--mal); border-bottom: 2px solid var(--mal); transform: rotate(-45deg); }
.plan .btn { align-self: flex-start; }
.plan-dark { background: var(--ink); border-color: var(--ink); color: #e6efe9; }
.plan-dark .plan-name, .plan-dark .amount { color: #fff; }
.plan-dark .plan-volume { color: #5fe0ae; }
.plan-dark .plan-summary { color: #c7d6cf; }
.plan-dark .plan-features { border-top-color: rgba(255,255,255,.14); }
.plan-dark .plan-features li::before { border-color: #5fe0ae; }
.plan-dark .btn-ink { background: #fff; color: var(--ink); }
.plan-dark .btn-ink:hover { background: var(--paper); }
.pricing-fine { margin: 22px 0 0; color: var(--ink-3); font-size: .92rem; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 520px; } }
.site-nav a[aria-current=page] { color: var(--ink); font-weight: 600; }

/* ---------- document viewer drawer ---------- */
.viewer { position: fixed; inset: 0; z-index: 100; }
.viewer[hidden] { display: none; }
.viewer-backdrop { position: absolute; inset: 0; background: rgba(16, 35, 28, .5); opacity: 0; transition: opacity .28s ease; }
.viewer.open .viewer-backdrop { opacity: 1; }
.viewer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(880px, 100vw); display: flex; flex-direction: column;
  background: #e9eeeb; box-shadow: -12px 0 40px rgba(16, 35, 28, .25); transform: translateX(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
.viewer.open .viewer-panel { transform: none; }
.viewer-bar { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 18px; background: var(--white); border-bottom: 1px solid var(--line); }
.viewer-title { flex: 1; min-width: 0; margin: 0; font-size: 1rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer-tools { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.vbtn { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid var(--line);
  border-radius: var(--r-sm); background: var(--white); color: var(--ink); font: 600 .9rem/1 var(--sans); text-decoration: none; cursor: pointer; }
.vbtn:hover { border-color: var(--ink-3); color: var(--ink); }
.vbtn:focus-visible { outline: 2px solid var(--mal); outline-offset: 2px; }
.vzoom { min-width: 58px; font-variant-numeric: tabular-nums; }
.vclose { font-size: 1.35rem; font-weight: 500; margin-left: 4px; }
.vpages { color: var(--ink-3); font-size: .85rem; padding: 0 8px; white-space: nowrap; }
.viewer-body { flex: 1; overflow: auto; padding: 16px; overscroll-behavior: contain; }
.viewer-body:focus { outline: none; }
.viewer-pages { display: grid; justify-items: center; gap: 16px; }
.viewer-page { background: #fff; box-shadow: 0 1px 3px rgba(16, 35, 28, .18), 0 6px 18px rgba(16, 35, 28, .08); line-height: 0; }
.viewer-page canvas { display: block; }
.viewer-img { display: block; max-width: none; background: #fff; box-shadow: 0 1px 3px rgba(16, 35, 28, .18); }
.viewer-status { margin: 24px auto; text-align: center; color: var(--ink-2); }
.viewer-status.error { color: var(--red); }
.viewer-status[hidden] { display: none; }
html.viewer-locked, html.viewer-locked body { overflow: hidden; }
@media (max-width: 640px) {
  .viewer-panel { width: 100vw; }
  .viewer-bar { flex-wrap: wrap; padding: 8px 10px; gap: 8px; }
  .viewer-title { flex-basis: calc(100% - 52px); order: 0; }
  .viewer-tools { order: 1; width: 100%; justify-content: space-between; }
  .vclose { position: absolute; top: 8px; right: 10px; }
  .vopen { display: none; }
  .viewer-body { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) { .viewer-backdrop, .viewer-panel { transition: none; } }

/* ---------- pager, sub-tabs, optional labels ---------- */
.pager { flex-wrap: wrap; }
.pager .btn[aria-disabled] { opacity: .45; pointer-events: none; }
.pager-nums { display: inline-flex; gap: 2px; align-items: center; }
.pager-nums a, .pager-nums .cur, .pager-nums .gap { min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-sm); text-decoration: none; font-variant-numeric: tabular-nums; }
.pager-nums a { color: var(--ink-2); }
.pager-nums a:hover { background: var(--paper); color: var(--ink); }
.pager-nums .cur { background: var(--ink); color: #fff; font-weight: 600; }
.pager-nums .gap { min-width: 18px; color: var(--ink-3); }
.pager-count { color: var(--ink-3); font-size: .85rem; margin: 12px 0 0; }
.pager .pager-count { margin: 0 0 0 6px; }
@media (max-width: 640px) { .pager { justify-content: center; } .pager-nums a:not([rel]), .pager-nums .gap { display: none; } .pager-nums .cur { display: inline-flex; } }
.subtabs { margin-top: -4px; overflow-x: auto; scrollbar-width: none; }
.subtabs button { white-space: nowrap; }
.opt { font-weight: 400; color: var(--ink-3); font-size: .82rem; margin-left: 4px; }
details.more { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 14px; margin: 4px 0 16px; background: var(--paper); }
details.more summary { cursor: pointer; font-weight: 600; font-size: .9rem; }

/* ---------- searchable dropdown ---------- */
.combo { position: relative; }
.combo input { padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.combo input[type=search]::-webkit-search-cancel-button { margin-right: 18px; }
.combo-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 12px 32px rgba(16, 35, 28, .16); max-height: 320px; overflow-y: auto; }
.combo-list[hidden] { display: none; }
.combo-list [role=option] { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; padding: 9px 12px; border-radius: var(--r-sm); cursor: pointer; }
.combo-list [role=option].active { background: var(--mal-tint); }
.combo-list [role=option][aria-disabled=true] { cursor: not-allowed; opacity: .6; }
.combo-label { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.combo-sub { grid-column: 1; font-size: .85rem; color: var(--ink-3); overflow-wrap: anywhere; }
.combo-note { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: .76rem; font-weight: 600; color: #7a5400; background: var(--amber-tint); border: 1px solid #f1dca5; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.combo-list mark { background: none; color: var(--mal-deep); text-decoration: underline; text-underline-offset: 2px; }
.combo-empty { padding: 10px 12px; color: var(--ink-3); font-size: .9rem; }
.req { font-weight: 400; color: var(--ink-3); font-size: .82rem; margin-left: 4px; }
.price-field.needs .req { color: var(--red); }
@media (max-width: 640px) { .combo-note { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 4px; } }

/* ---------- admin overview ---------- */
.kpis { grid-auto-columns: minmax(0, 1fr); }
.stat.warn .n { color: #a46a00; }
.delta { display: inline-block; margin-left: 8px; font-size: .78rem; font-weight: 600; padding: 1px 7px; border-radius: 999px; }
.delta.up { background: var(--mal-tint); color: var(--mal-deep); }
.delta.down { background: var(--red-tint); color: var(--red); }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; margin-bottom: 20px; align-items: stretch; }
.overview-grid.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.overview-grid > .panel { margin-bottom: 0; }
.col-stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.col-stack > .panel { margin-bottom: 0; }
.col-stack > .panel.grow { flex: 1; }
@media (max-width: 1100px) { .overview-grid, .overview-grid.even { grid-template-columns: 1fr; } }
.bars-split span { position: relative; background: #c9d8d0; opacity: 1; }
.bars-split span i { position: absolute; left: 0; right: 0; bottom: 0; background: var(--mal); border-radius: 2px 2px 0 0; }
.bars-axis .legend { display: inline-flex; align-items: center; gap: 6px; }
.bars-axis .k { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-left: 8px; }
.bars-axis .k.ok { background: var(--mal); }
.bars-axis .k.other { background: #c9d8d0; }
.attn { list-style: none; margin: 0; padding: 0; }
.attn li + li { border-top: 1px solid #e8eeea; }
.attn a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 2px; color: var(--ink); text-decoration: none; }
.attn a:hover span:first-child { text-decoration: underline; }
.attn .count { min-width: 34px; text-align: center; font-weight: 700; font-size: .9rem; padding: 3px 10px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.attn .count.pending { background: var(--amber-tint); color: #7a5400; }
.attn .count.fail { background: var(--red-tint); color: var(--red); }
.all-clear { margin: 0; color: var(--mal-deep); font-weight: 500; }
.dl.compact dt, .dl.compact dd { padding-top: 4px; padding-bottom: 4px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.mini-stats div { background: var(--white); padding: 14px 16px; display: grid; gap: 2px; }
.mini-stats b { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.mini-stats span { color: var(--ink-3); font-size: .85rem; }
@media (max-width: 640px) { .mini-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats.kpis { grid-template-columns: 1fr 1fr; } }

/* ---------- list toolkit ---------- */
.listbar { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.listbar input[type=search] { flex: 1 1 220px; min-width: 0; }
.listbar .list-sort { display: none; width: auto; flex: 1 1 160px; }
.listbar .clear { font-size: .88rem; }
th a.sort { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-3); text-decoration: none; }
th a.sort:hover, th a.sort.on { color: var(--ink); }
.sort-ind { font-size: .7rem; opacity: .45; }
th a.sort.on .sort-ind { opacity: 1; color: var(--mal); }
@media (max-width: 640px) { .listbar .list-sort { display: block; } .listbar .btn { flex: 0 0 auto; } }

/* ---------- yearly billing + receipts ---------- */
.plan-yearly { margin: 0 0 8px; color: var(--mal); font-weight: 600; font-size: .92rem; }
.plan-dark .plan-yearly { color: #9fe3c6; }
.cycle-choice { border: 0; padding: 0; margin: 4px 0 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.cycle { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: #fff; }
.cycle:has(input:checked) { border-color: var(--mal); box-shadow: 0 0 0 1px var(--mal) inset; background: #f3faf7; }
.cycle input { margin-top: 4px; accent-color: var(--mal); }
.cycle-body { display: flex; flex-direction: column; gap: 4px; }
.cycle-price { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; }
.cycle-price .per { font-size: .9rem; font-weight: 500; color: var(--ink-3); }
details.more { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
details.more > summary { cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--ink-2); }
details.more[open] > summary { margin-bottom: 10px; }

/* saved default view next to filter chips */
.filter-default { margin-left: auto; display: inline-flex; align-items: center; font-size: .84rem; }
.filter-default.is-default { color: var(--ink-3); }
.filter-default.is-default::before { content: "★"; color: var(--mal); margin-right: 5px; }
.filter-default .linklike { background: none; border: 0; padding: 6px 2px; color: var(--mal); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.filter-default .linklike:hover { color: var(--mal-deep); }
@media (max-width: 640px) { .filter-default { margin-left: 0; width: 100%; } }
.link-or-new { gap: 28px; }
.link-or-new .suggest { margin: 0 0 12px; }
.link-or-new .suggest li { align-items: center; }

/* ---------- dashboard notices (pinned banners) ---------- */
.notices { display: grid; gap: 10px; margin: 0 0 22px; }
.notice { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; padding: 14px 16px; border: 1px solid #bfe3d3; border-left: 4px solid var(--mal); border-radius: 10px; background: #f1faf6; }
.notice.important { border-color: #f1d39a; border-left-color: #c98a12; background: #fff8ea; }
.notice-text { min-width: 0; }
.notice-text strong { display: block; margin-bottom: 4px; }
.notice-text p { margin: 0 0 6px; color: var(--ink-2); font-size: .94rem; white-space: pre-line; }
.notice-text p:last-child { margin-bottom: 0; }
.notice-x button { border: 0; background: none; cursor: pointer; font-size: 1.3rem; line-height: 1; padding: 2px 8px; color: var(--ink-3); border-radius: 6px; }
.notice-x button:hover { background: rgba(0,0,0,.07); color: var(--ink); }
.notice-opts { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 4px; margin: 4px 0 6px; }
.notice-opts legend { font-weight: 600; font-size: .9rem; padding: 0 6px; }
.notice-edit { margin-top: 12px; }
.msg-body p { margin: 0 0 12px; white-space: pre-line; }
.radio-row { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.chips:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--mal-tint); font-size: .9rem; }
.chip small { color: var(--ink-3); margin-left: 6px; }
.chip button { border: 0; background: none; cursor: pointer; font-size: 1rem; line-height: 1; padding: 2px 5px; color: var(--ink-2); border-radius: 999px; }
.chip button:hover { background: rgba(0,0,0,.08); }
[data-show-when][hidden] { display: none; }

/* ---- security ---- */
.field-link { display: inline-block; margin-top: 6px; font-size: .875rem; }
.sec-you { margin: 0 0 14px; }
.sec-limits input[type=number] { width: 7.5em; }
.sec-limits select { min-width: 9em; }
.sec-limits td:first-child label { font-weight: 500; }
.sec-inline { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.sec-inline .field { flex: 1 1 160px; }
.sec-scope { border: 0; padding: 0; margin: 4px 0 0; display: flex; gap: 18px; flex-wrap: wrap; }
.sec-scope legend { font-weight: 600; font-size: .875rem; margin-bottom: 6px; }
.sec-block-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.sec-block-form .field { margin: 0; flex: 0 1 220px; }
.sec-block-form .sec-grow { flex: 1 1 240px; }
.sec-block-form .btn { margin-bottom: 2px; }
.tag.warn { background: #fdf0dc; color: #8a4b00; }
@media (max-width: 640px) { .sec-block-form .field, .sec-block-form .btn { flex: 1 1 100%; } }

/* ---- access log ---- */
.tag.bad { background: #fde8e8; color: #9b1c1c; border-color: #f5c2c2; }
.access td[data-label="What"] .tag + .tag { margin-left: 2px; }
.access .break { word-break: break-all; }
.filters a.chip-on { background: var(--mal-tint); color: var(--mal-deep); }

/* ---- details drawer ---- */
tr[data-drawer] { cursor: pointer; }
tr[data-drawer]:hover > td { background: #f6f9f7; }
tr[data-drawer].is-open > td { background: var(--mal-tint); }
.access-req .break { overflow-wrap: anywhere; }
html.drawer-lock { overflow: hidden; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(16, 35, 28, .36); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 91; width: min(560px, 100vw); display: flex; flex-direction: column;
  background: var(--white); border-left: 1px solid var(--line); box-shadow: -18px 0 48px rgba(16, 35, 28, .16);
  transform: translateX(104%); visibility: hidden; transition: transform .28s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .28s; }
.drawer.open { transform: none; visibility: visible; transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
.drawer:focus { outline: none; }
.drawer-bar { display: flex; justify-content: flex-end; padding: 10px 12px 0; }
.drawer-close { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.drawer-close:hover { background: var(--paper); }
.drawer-close:focus-visible { outline: 3px solid var(--mal); outline-offset: 2px; }
.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 26px 30px; }
.drawer-body.loading .drawer-content { opacity: .55; transition: opacity .15s; }
.drawer-head { padding: 4px 0 16px; }
.drawer-head p { margin: 0 0 6px; }
.drawer-head h2 { margin: 0 0 8px; font-size: 1.35rem; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.drawer-sec { border-top: 1px solid var(--line); padding: 16px 0 4px; }
.drawer-sec h3 { margin: 0 0 10px; font-size: .95rem; font-weight: 600; color: var(--ink-2); }
.drawer-sec .btn-row { margin: 4px 0 12px; }
.drawer-dl { margin: 0 0 12px; }
.drawer-dl dd { overflow-wrap: anywhere; }
pre.ua { margin: 6px 0 14px; padding: 10px 12px; background: var(--paper); border-radius: var(--r-sm); font: .78rem/1.5 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.drawer-list { list-style: none; margin: 0 0 12px; padding: 0; }
.drawer-list a { display: grid; grid-template-columns: auto auto 1fr auto; gap: 4px 10px; align-items: baseline; padding: 8px 10px; border-radius: var(--r-sm); color: inherit; text-decoration: none; }
.drawer-list a:hover { background: var(--paper); }
.drawer-list li.on a { background: var(--mal-tint); }
.drawer-list .break { overflow-wrap: anywhere; min-width: 0; }
.drawer-foot { border-top: 1px solid var(--line); margin: 8px 0 0; padding-top: 14px; font-size: .9rem; }
.drawer-skel { height: 14px; margin: 18px 0; border-radius: 6px; background: linear-gradient(90deg, var(--paper), #e7ede9, var(--paper)); background-size: 200% 100%; animation: skel 1.1s linear infinite; }
.drawer-skel.short { width: 55%; }
@keyframes skel { to { background-position: -200% 0; } }
.drawer-page .drawer-content { max-width: 720px; }
@media (max-width: 640px) {
  .drawer { width: 100vw; border-left: 0; }
  .drawer-body { padding: 0 18px 26px; }
  .drawer-list a { grid-template-columns: auto 1fr auto; }
  .drawer-list a > .break { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .drawer, .drawer.open, .drawer-backdrop { transition: none; }
  .drawer-skel { animation: none; }
}

/* ---- error pages ---- */
.err-card { text-align: left; }
.err-code { margin: 0 0 6px; font: 700 clamp(3.2rem, 9vw, 4.6rem)/1 var(--sans); letter-spacing: -.04em; color: var(--mal-tint); -webkit-text-stroke: 1.5px var(--mal); }
.err-card h1 { margin-top: 0; }
.err-card .btn-row { flex-wrap: wrap; }
.err-meta { margin-top: 18px; }

/* ---- user activity drawer ---- */
.drawer-crumb { margin: 0 0 8px; font-size: .9rem; }
.drawer-head h2 .tag { font-size: .72rem; }
.drawer-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; margin: 0 0 16px; }
.drawer-stats > div { background: var(--white); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.drawer-stats strong { font-size: 1.25rem; line-height: 1.1; }
.drawer-stats span { font-size: .78rem; color: var(--ink-3); }
.drawer-stats .bad strong { color: var(--red); }
.drawer-kv { list-style: none; margin: 0 0 10px; padding: 0; }
.drawer-kv li { display: grid; grid-template-columns: minmax(0, auto) 1fr auto; gap: 4px 12px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line); }
.drawer-kv li:last-child { border-bottom: 0; }
.drawer-kv li > span:nth-child(2) { min-width: 0; overflow-wrap: anywhere; }
.drawer-reqs a { grid-template-columns: auto 1fr auto; }
.drawer-reqs .req-from { grid-column: 2 / -1; }
@media (max-width: 640px) {
  .drawer-stats { grid-template-columns: repeat(2, 1fr); }
  .drawer-kv li { grid-template-columns: 1fr auto; }
  .drawer-kv li > span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .drawer-reqs .req-from { grid-column: 1 / -1; }
}
