/* incdai by INCPRITECH: INCPRITECH paper + teal, DM Sans throughout, Syne Mono only for code. */
:root {
  --paper: #f5f4f0;
  --paper-2: #ecebe5;
  --raise: #ffffff;
  --ink: #15171a;
  --ink-2: #4a4f57;
  --muted: #6c717a;
  --line: #dedcd4;
  --teal: #17b8a8;          /* buttons and fills */
  --teal-ink: #0b6e65;      /* teal used as text: AA on paper */
  --blue: #2f5de8;          /* links */
  --deep: #0f1b1a;          /* the device and code surfaces */
  --hi: #ffffff;
  --lo: #d9d7cf;
  --r: 14px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Syne Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); font-weight: 700; letter-spacing: -0.022em; line-height: 1.06; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
code, pre, kbd { font-family: var(--mono); }

/* ── header & footer ── */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; height: 64px; }
.mark { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
.mark .logo { display: block; width: 26px; height: 26px; }
.mark .word, .foot .mark { font-family: "Outfit", var(--sans); font-weight: 600; letter-spacing: -0.02em; }
.foot .mark { font-size: 1.3rem; }
.mark .word { font-size: 1.38rem; line-height: 1; transform: translateY(-1px); }
.by { display: inline-flex; align-items: baseline; gap: 6px; margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--line); font-size: .76rem; font-weight: 500; line-height: 18px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.by strong { font: 700 .92rem var(--mono); letter-spacing: -.03em; color: var(--teal-ink); }
.by:hover strong { color: #095a53; }
.links { display: flex; align-items: center; gap: 2px; margin-left: 32px; }
.links a { padding: 6px 12px; border-radius: 8px; font-size: .92rem; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: color .15s, background .15s; }
.links a:hover, .links a[aria-current] { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; padding-left: 16px; }
.top-actions .short { display: none; }
.top-actions .btn { min-height: 34px; padding: 0 14px; border-radius: 8px; font-size: .88rem; font-weight: 600; transform: none; }
.top-actions .btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.top-actions .btn.ghost:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 30%, transparent); }
.foot { margin-top: 96px; border-top: 1px solid var(--line); padding: 48px 0 40px; color: var(--ink-2); font-size: .95rem; }
.foot-in { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: 32px 48px; }
.foot-brand p { max-width: 40ch; margin-top: 12px; }
.foot nav { display: grid; gap: 9px; align-content: start; }
.foot nav p { font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.foot nav a { color: var(--ink-2); text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.foot .fine { grid-column: 1 / -1; color: var(--muted); font-size: .85rem; }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 0; cursor: pointer;
  font: 600 1rem var(--sans); color: #fff; background: var(--teal-ink); text-decoration: none; transition: background .2s, transform .2s var(--ease); }
.btn:hover { background: #095a53; transform: translateY(-1px); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.btn.quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.quiet:hover { box-shadow: inset 0 0 0 1.5px var(--ink); background: transparent; }
.btn[disabled] { opacity: .55; cursor: wait; }

/* ── neumorphic surface (used sparingly: the device, the code line, the forms) ── */
.raised { background: var(--paper); border-radius: 22px; box-shadow: -10px -10px 24px var(--hi), 12px 14px 30px var(--lo); }
.inset { background: var(--paper); border-radius: 12px; box-shadow: inset 4px 4px 9px var(--lo), inset -4px -4px 9px var(--hi); }

/* ── hero ── */
.hero { padding: 64px 0 40px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { max-width: 13ch; }
.hero .lede { margin-top: 22px; font-size: 1.2rem; color: var(--ink-2); max-width: 44ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.install { margin-top: 40px; max-width: 560px; }
.install .code { display: flex; align-items: center; gap: 12px; padding: 16px 16px 16px 20px; background: var(--deep); color: #d6efe9; border-radius: 14px; font-size: .86rem; overflow-x: auto; }
.install .code code { white-space: nowrap; flex: 1; }
.install .code .tag { color: #7fd8cd; } .install .code .attr { color: #9db6ff; } .install .code .val { color: #f2d79b; }
.install p { margin-top: 10px; font-size: .92rem; color: var(--muted); }
.copy { flex: none; border: 0; cursor: pointer; font: 600 .8rem var(--sans); color: var(--deep); background: #d6efe9; padding: 7px 12px; border-radius: 8px; }

/* the device: a small business website with incdai answering in Swahili */
.device { padding: 14px; }
.device .bar { display: flex; align-items: center; gap: 6px; padding: 4px 6px 12px; }
.device .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--lo); }
.device .bar span { margin-left: 10px; flex: 1; font-size: .78rem; color: var(--muted); background: var(--paper-2); border-radius: 8px; padding: 5px 10px; }
.screen { position: relative; border-radius: 14px; overflow: hidden; background: #fffdf7; height: 560px; }
.site-hdr { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid #efe9db; font-weight: 700; color: #6b3a14; }
.site-hdr small { font-weight: 500; color: #a0806a; }
.site-body { padding: 22px 20px; color: #5c4632; }
.site-body h4 { margin: 0 0 6px; font-size: 1.35rem; color: #3b220e; line-height: 1.2; }
.site-body p { font-size: .88rem; max-width: 22ch; }
.dish { margin-top: 18px; display: grid; gap: 8px; max-width: 176px; }
.dish span { display: flex; justify-content: space-between; font-size: .82rem; padding-bottom: 6px; border-bottom: 1px dashed #e6dcc6; }
.chat { position: absolute; right: 14px; bottom: 14px; width: min(268px, calc(100% - 28px)); border-radius: 18px; overflow: hidden; background: #fff;
  box-shadow: 0 24px 50px -18px rgba(15, 27, 26, .45), 0 0 0 1px rgba(15, 27, 26, .06); font-size: .84rem; }
.chat-h { display: flex; align-items: center; gap: 9px; padding: 11px 12px; background: var(--deep); color: #fff; }
.chat-h b { font-size: .95rem; } .chat-h small { display: block; opacity: .7; font-size: .7rem; }
.chat-l { padding: 12px; display: grid; gap: 8px; min-height: 196px; align-content: start; }
.msg { max-width: 88%; padding: 8px 11px; border-radius: 14px; line-height: 1.45; }
.msg.u { justify-self: end; background: var(--teal-ink); color: #fff; border-top-right-radius: 4px; }
.msg.b { background: #f1f2f1; border-top-left-radius: 4px; color: var(--ink); }
.msg .caret { display: inline-block; width: 2px; height: 1em; vertical-align: -.12em; background: var(--teal); margin-left: 1px; animation: blink .9s steps(1) infinite; }
.wa { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; justify-self: start; font-size: .75rem; font-weight: 600; color: #128c4b; background: rgba(37,211,102,.14); padding: 5px 10px; border-radius: 999px; }
@keyframes blink { 50% { opacity: 0; } }

/* ── sections ── */
.section { padding: 88px 0 0; }
.section > .wrap > h2 { max-width: 22ch; }
.section .intro { margin-top: 14px; color: var(--ink-2); font-size: 1.1rem; max-width: 58ch; }
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 18px; border-top: 2px solid var(--ink); }
.steps li::before { content: counter(step); display: block; font-weight: 700; font-size: .95rem; color: var(--teal-ink); margin-bottom: 8px; }
.steps p { margin-top: 8px; color: var(--ink-2); }

.who { margin-top: 36px; border-top: 1px solid var(--line); }
.who-row { display: grid; grid-template-columns: 200px minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.who-row h3 { font-size: 1.05rem; }
.who-row p { color: var(--ink-2); }
.who-row q { quotes: none; font-style: normal; color: var(--ink); font-weight: 500; padding: 6px 12px; border-radius: 10px; background: var(--raise); box-shadow: 0 1px 0 var(--line); justify-self: start; }
.who-row q[lang="sw"]::after { content: " · Swahili"; color: var(--muted); font-weight: 400; font-size: .85em; }

.feats { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.feats div { padding: 20px 0; border-top: 1px solid var(--line); }
.feats p { margin-top: 6px; color: var(--ink-2); }

.table-wrap { margin-top: 32px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .97rem; }
th, td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-weight: 600; color: var(--ink); border-bottom: 2px solid var(--ink); }
tbody th { font-weight: 500; color: var(--ink-2); width: 30%; }

.plans { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.plan { padding: 26px; }
.plan h3 { font-size: 1.1rem; }
.plan .amount { margin-top: 10px; font-size: 1.7rem; font-weight: 700; letter-spacing: -0.02em; }
.plan .amount small { font-size: .9rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { margin: 16px 0 22px; padding-left: 18px; color: var(--ink-2); }
.plan li { margin: 5px 0; }
.plan.main { background: var(--deep); color: #eaf3f1; box-shadow: none; }
.plan.main .amount small, .plan.main ul { color: #a9c2bd; }
.plan.main .btn { background: var(--teal); color: var(--deep); }
.note { margin-top: 18px; color: var(--muted); font-size: .92rem; }

.faq { margin-top: 28px; max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.4rem; font-weight: 400; color: var(--muted); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--ink-2); max-width: 64ch; }

.closing { margin-top: 96px; padding: 48px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.closing p { margin-top: 10px; color: var(--ink-2); }

/* ── docs ── */
.docs { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; padding-top: 40px; }
.docs-nav { position: sticky; top: 92px; align-self: start; font-size: .93rem; }
.docs-nav p { font-weight: 600; margin: 18px 0 6px; color: var(--ink); }
.docs-nav p:first-child { margin-top: 0; }
.docs-nav ul { list-style: none; margin: 0; padding: 0; }
.docs-nav a { display: block; padding: 5px 10px; margin-left: -10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; }
.docs-nav a:hover { color: var(--ink); }
.docs-nav a[aria-current] { background: var(--raise); color: var(--ink); font-weight: 600; box-shadow: 0 1px 0 var(--line); }
.prose { max-width: 72ch; min-width: 0; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.7rem); }
.prose .lede { margin-top: 12px; font-size: 1.15rem; color: var(--ink-2); }
.prose h2 { font-size: 1.45rem; margin: 44px 0 10px; }
.prose h3 { margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 12px 0; }
.prose li { margin: 4px 0; }
.prose :not(pre) > code { font-size: .88em; background: var(--paper-2); padding: 2px 6px; border-radius: 6px; }
.prose pre { margin: 16px 0; padding: 16px 18px; background: var(--deep); color: #d6efe9; border-radius: 12px; overflow-x: auto; font-size: .85rem; line-height: 1.6; }
.prose table { font-size: .92rem; margin: 16px 0; }
.prose td code, .prose th code { white-space: nowrap; }
.callout { margin: 18px 0; padding: 14px 16px; border-left: 3px solid var(--teal); background: var(--raise); border-radius: 0 10px 10px 0; color: var(--ink-2); }
.next { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ── responsive ── */
@media (max-width: 980px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .who-row { grid-template-columns: 1fr; gap: 8px; }
  .plans { grid-template-columns: 1fr; max-width: 520px; }
  .foot-in { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .docs { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .prose table { display: block; overflow-x: auto; }
  .prose td code { overflow-wrap: anywhere; }
  .docs-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px 18px; }
  .docs-nav p { width: 100%; }
  .docs-nav ul { display: flex; flex-wrap: wrap; gap: 0 12px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .steps, .feats { grid-template-columns: 1fr; }
  .closing { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand, .foot .fine { grid-column: 1 / -1; }
  .closing { padding: 28px; }
  .screen { height: 540px; }
}
@media (max-width: 920px) { .links { display: none; } }
@media (max-width: 560px) {
  .top-in { height: 58px; }
  .by { display: none; }
  .top-actions { gap: 6px; }
  .top-actions .btn { padding: 0 11px; font-size: .84rem; }
}
@media (max-width: 400px) { .top-actions .long { display: none; } .top-actions .short { display: inline; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ── dashboard ── */
.app { padding-top: 40px; min-height: 60vh; }
.muted { color: var(--muted); }
.auth { display: grid; place-items: center; padding: 24px 0; }
.auth-card { width: min(460px, 100%); padding: 32px; }
.auth-card h1 { font-size: 1.8rem; letter-spacing: -0.02em; }
.auth-card .muted { margin-top: 8px; }
.account-stage { position: relative; min-height: calc(100vh - 104px); }
.account-preview { padding: 34px 0 70px; filter: saturate(.7); opacity: .78; }
.preview-head { display: flex; justify-content: space-between; margin-bottom: 20px; }.preview-head span { width: 210px; height: 30px; border-radius: 10px; background: var(--raise); border: 1px solid var(--line); }.preview-head span:last-child { width: 120px; }
.preview-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }.preview-kpis i { height: 110px; border-radius: 18px; background: var(--raise); border: 1px solid var(--line); box-shadow: 0 8px 28px rgb(15 27 26 / 7%); }
.preview-grid { display: grid; grid-template-columns: 1.7fr .8fr; gap: 14px; margin-top: 14px; }.preview-grid > div { height: 330px; border-radius: 20px; background: var(--raise); border: 1px solid var(--line); padding: 28px; }.preview-grid svg { width: 100%; height: 100%; }.preview-grid path { fill: none; stroke: var(--teal); stroke-width: 5; stroke-linecap: round; }
.account-scrim { position: fixed; inset: 0; z-index: 20; background: rgb(1 7 7 / 64%); backdrop-filter: blur(9px) saturate(.75); -webkit-backdrop-filter: blur(9px) saturate(.75); animation: account-fade .22s ease-out both; }
.account-open, .account-open body { overflow: hidden; overscroll-behavior: none; }
.account-modal { position: fixed; top: 84px; right: max(20px, calc((100vw - 1200px) / 2)); z-index: 21; display: flex; flex-direction: column; width: min(460px, calc(100vw - 40px)); max-height: calc(100vh - 104px); overflow: hidden; border: 1px solid color-mix(in srgb, var(--line) 82%, transparent); border-radius: 22px; background: color-mix(in srgb, var(--raise) 92%, transparent); box-shadow: 0 32px 90px rgb(0 0 0 / 52%), inset 0 1px 0 rgb(255 255 255 / 8%); backdrop-filter: blur(24px) saturate(1.15); -webkit-backdrop-filter: blur(24px) saturate(1.15); animation: account-float .24s cubic-bezier(.16,1,.3,1) both; }
.account-modal-head { z-index: 2; display: flex; flex: none; justify-content: space-between; gap: 18px; align-items: center; padding: 22px 24px 17px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--raise) 88%, transparent); backdrop-filter: blur(18px); }
.account-modal-head h1 { font-size: 1.35rem; }.account-modal-head p { margin-top: 3px; color: var(--muted); font-size: .82rem; }.account-close { width: 34px; height: 34px; display: grid; place-items: center; flex: none; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: var(--paper); font-size: 1.35rem; line-height: 1; text-decoration: none; }
.account-modal-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px 24px 26px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.account-modal-body::-webkit-scrollbar { width: 6px; }.account-modal-body::-webkit-scrollbar-thumb { border-radius: 99px; background: var(--line); }
.account-tabs { display: flex; gap: 4px; margin-bottom: 22px; padding: 4px; border-radius: 12px; background: var(--paper); box-shadow: inset 2px 2px 7px rgb(0 0 0 / 10%); }.account-tabs button { flex: 1; padding: 10px; border: 1px solid transparent; border-radius: 9px; color: var(--muted); background: transparent; cursor: pointer; font: 700 .82rem var(--sans); }.account-tabs button[aria-selected=true] { color: var(--ink); border-color: var(--line); background: var(--raise); box-shadow: 0 3px 10px rgb(0 0 0 / 14%); }
.account-form { display: grid; gap: 15px; }.account-form label { gap: 7px; color: var(--ink-2); font-size: .7rem; font-weight: 750; letter-spacing: .065em; text-transform: uppercase; }.account-form input { min-height: 47px; border: 1px solid var(--line); background: var(--paper); box-shadow: inset 2px 2px 7px rgb(0 0 0 / 12%); font-size: .94rem; text-transform: none; letter-spacing: 0; }.account-form input:focus { border-color: var(--teal); box-shadow: inset 2px 2px 7px rgb(0 0 0 / 12%), 0 0 0 3px color-mix(in srgb, var(--teal) 18%, transparent); outline: 0; }
.input-shell { position: relative; display: block; }.input-shell input { padding-right: 62px; }.input-shell:has(.field-icon) input { padding-left: 42px; }.field-icon { position: absolute; z-index: 1; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font: 700 .85rem var(--mono); }.lock-icon { width: 12px; height: 11px; border: 1.5px solid currentColor; border-radius: 3px; }.lock-icon::before { content: ""; position: absolute; width: 7px; height: 7px; left: 1px; top: -7px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 6px 6px 0 0; }
.reveal { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); border: 0; padding: 4px; color: var(--teal-ink); background: transparent; cursor: pointer; font: 700 .7rem var(--sans); }.account-submit { width: 100%; min-height: 48px; margin-top: 2px; }.account-switch { margin-top: 17px; text-align: center; color: var(--muted); font-size: .8rem; }.account-switch .link { font-size: inherit; color: var(--teal); }.account-form .form-msg { margin: -5px 0 0; text-transform: none; letter-spacing: 0; }
@keyframes account-fade { from { opacity: 0; } } @keyframes account-float { from { opacity: 0; transform: translateY(-9px) scale(.965); } }
@media (max-width: 640px) { .account-preview { padding-top: 20px; }.preview-kpis { grid-template-columns: 1fr 1fr; }.preview-grid { grid-template-columns: 1fr; }.account-modal { inset: auto 0 0; width: 100%; max-height: 94vh; border-radius: 24px 24px 0 0; animation-name: account-sheet; }.account-modal::before { content: ""; display: block; width: 36px; height: 4px; margin: 10px auto -6px; border-radius: 99px; background: var(--line); }.account-modal-head { padding-top: 20px; }.account-scrim { background: rgb(1 7 7 / 70%); } @keyframes account-sheet { from { opacity: .4; transform: translateY(100%); } } }
.stack { display: grid; gap: 14px; margin-top: 22px; }
label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--ink); }
input, select, textarea { font: 400 1rem var(--sans); color: var(--ink); width: 100%; min-width: 0; padding: 11px 13px; border: 0; border-radius: 10px; background: var(--paper);
  box-shadow: inset 3px 3px 7px var(--lo), inset -3px -3px 7px var(--hi); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
input[type=color] { height: 46px; padding: 6px; cursor: pointer; }
input[type=checkbox] { width: auto; box-shadow: none; }
textarea { resize: vertical; }
.form-msg { min-height: 1.4em; font-size: .92rem; }
.form-msg.ok { color: var(--teal-ink); } .form-msg.err { color: #b42318; }
.switch { margin-top: 18px; font-size: .92rem; color: var(--ink-2); }
.link { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--blue); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row.between { justify-content: space-between; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.keybox { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 22px 0; padding: 16px; border-radius: 12px; background: var(--deep); color: #d6efe9; }
.keybox dt { color: #8fb3ad; font-size: .85rem; } .keybox dd { margin: 0; font-family: var(--mono); word-break: break-all; }
.dash-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: end; }
.dash-head h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.dash-head .muted { margin-top: 6px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.stats div { padding: 16px 18px; border-radius: 14px; background: var(--raise); box-shadow: 0 1px 0 var(--line); }
.stats b { display: block; font-size: 1.6rem; letter-spacing: -0.02em; }
.stats span { font-size: .85rem; color: var(--muted); }
.tabs { display: flex; gap: 4px; margin: 28px 0 22px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 12px 14px; font: 600 .95rem var(--sans); color: var(--ink-2); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button[aria-selected=true] { color: var(--ink); border-bottom-color: var(--teal-ink); }
.profile { display: grid; gap: 22px; }
fieldset { border: 0; margin: 0; padding: 22px; border-radius: 18px; background: var(--raise); box-shadow: 0 1px 0 var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
legend { float: left; width: 100%; font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; }
fieldset .wide, fieldset .repeat, fieldset .hint, fieldset > .btn { grid-column: 1 / -1; }
fieldset > .btn { justify-self: start; }
.hint { margin: 0; color: var(--muted); font-size: .9rem; }
.repeat { display: grid; gap: 12px; }
.rep { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.rep .wide { grid-column: 1 / -1; }
.rep .link { justify-self: start; font-size: .85rem; color: #b42318; }
.savebar { position: sticky; bottom: 0; display: flex; justify-content: flex-end; align-items: center; gap: 16px; padding: 14px 0; background: linear-gradient(transparent, var(--paper) 30%); }
.code-line { display: flex; gap: 12px; align-items: center; margin: 16px 0; padding: 16px 16px 16px 20px; background: var(--deep); color: #d6efe9; border-radius: 14px; font-size: .86rem; }
.code-line code { flex: 1; overflow-x: auto; white-space: nowrap; }
.list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.list li { padding: 14px 16px; border-radius: 12px; background: var(--raise); box-shadow: 0 1px 0 var(--line); display: grid; gap: 4px; }
.list time { font-size: .82rem; color: var(--muted); }
.list .ok, .list .miss { font-size: .78rem; font-weight: 600; } .list .ok { color: var(--teal-ink); } .list .miss { color: #b45309; }
.app h2 { font-size: 1.4rem; }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  fieldset, .rep { grid-template-columns: 1fr; padding: 16px; }
  .auth-card { padding: 24px; }
}

/* ── role-based platform dashboard ── */
.platform-shell { padding-bottom: 48px; }
.platform-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 8px 0 26px; }
.platform-head h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
.platform-kicker { margin-bottom: 7px; color: var(--teal-ink); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.compact { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .82rem; }
.compact select { width: auto; min-width: 105px; padding: 8px 32px 8px 10px; background: var(--raise); box-shadow: inset 0 0 0 1px var(--line); }
.platform-nav { display: flex; gap: 7px; padding: 6px; margin-bottom: 22px; border: 1px solid var(--line); border-radius: 13px; background: color-mix(in srgb, var(--raise) 72%, transparent); overflow-x: auto; }
.platform-nav button { flex: none; border: 0; border-radius: 9px; padding: 9px 16px; color: var(--muted); background: transparent; cursor: pointer; font: 650 .9rem var(--sans); }
.platform-nav button[aria-current=page] { color: #fff; background: var(--deep); box-shadow: 0 5px 14px rgb(15 27 26 / 16%); }
.platform-status { margin: -10px 0 18px; color: var(--teal-ink); font-size: .85rem; }
.platform-status.err { color: #b42318; }
.platform-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.admin-kpi { min-height: 136px; display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--raise); box-shadow: 0 7px 22px rgb(15 27 26 / 5%); }
.admin-kpi span { color: var(--muted); font-size: .78rem; font-weight: 650; }
.admin-kpi strong { margin: auto 0 1px; font-size: clamp(1.65rem, 3vw, 2.2rem); line-height: 1; letter-spacing: -.04em; }
.admin-kpi small { color: var(--muted); font-size: .75rem; }
.admin-kpi.primary { border-top: 3px solid var(--teal); }
.admin-kpi.good strong { color: var(--teal-ink); }
.admin-kpi.warn { border-top: 3px solid #e69b38; }
.platform-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr); gap: 16px; margin-bottom: 16px; }
.platform-card { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--raise); box-shadow: 0 7px 24px rgb(15 27 26 / 5%); }
.platform-card > header { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.platform-card h2 { font-size: 1.1rem; }
.platform-card header p { margin-top: 4px; color: var(--muted); font-size: .8rem; }
.trend-card { grid-row: span 2; }
.chart-wrap { min-height: 270px; display: grid; align-items: center; }
.trend-svg { width: 100%; overflow: visible; }
.chart-grid line { stroke: var(--line); stroke-width: 1; }
.chart-grid text { fill: var(--muted); font: 11px var(--sans); }
.line-total, .line-unanswered { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; }
.line-total { stroke: var(--teal-ink); }
.line-unanswered { stroke: #e69b38; stroke-width: 2.2; }
.point-total { fill: var(--raise); stroke: var(--teal-ink); stroke-width: 2; }
.legend { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .72rem; white-space: nowrap; }
.legend i { width: 9px; height: 9px; border-radius: 50%; margin-left: 5px; }
.legend-q { background: var(--teal-ink); } .legend-u { background: #e69b38; }
.donut-wrap { display: flex; align-items: center; justify-content: space-around; gap: 20px; padding: 4px 0 8px; }
.donut { width: 140px; height: 140px; flex: none; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--teal) var(--coverage), #f1d7ac 0); position: relative; }
.donut::after { content: ""; position: absolute; inset: 16px; border-radius: inherit; background: var(--raise); }
.donut > div { position: relative; z-index: 1; display: grid; text-align: center; }
.donut strong { font-size: 1.65rem; line-height: 1; }.donut span { color: var(--muted); font-size: .72rem; }
.donut-wrap dl { margin: 0; min-width: 110px; }.donut-wrap dl div { padding: 9px 0; border-bottom: 1px solid var(--line); }.donut-wrap dt { color: var(--muted); font-size: .76rem; }.donut-wrap dd { margin: 0; font-weight: 700; }
.bar-list { display: grid; gap: 15px; }
.bar-row { display: grid; grid-template-columns: 115px minmax(60px, 1fr) 44px; align-items: center; gap: 10px; }
.bar-row > div:first-child { display: grid; }.bar-row b { font-size: .82rem; }.bar-row span { color: var(--muted); font-size: .7rem; }.bar-row strong { text-align: right; font-size: .82rem; }
.bar-track { height: 8px; overflow: hidden; border-radius: 99px; background: var(--paper-2); }.bar-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal-ink), var(--teal)); }
.activity-card { margin-bottom: 16px; }
.table-wrap { width: 100%; overflow-x: auto; }
.admin-table { width: 100%; min-width: 700px; border-collapse: collapse; font-size: .82rem; }
.admin-table th { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--muted); text-align: left; font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; }
.admin-table td { padding: 13px 12px; border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent); vertical-align: middle; }
.admin-table tbody tr:hover { background: color-mix(in srgb, var(--teal) 5%, transparent); }
.admin-table td:first-child b, .admin-table td:first-child small { display: block; }.admin-table td:first-child small { color: var(--muted); font-size: .7rem; }
.admin-table select { min-width: 105px; padding: 7px 28px 7px 9px; border-radius: 8px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: .78rem; }
.status-pill { display: inline-flex; padding: 3px 8px; border-radius: 99px; font-size: .68rem; font-weight: 750; text-transform: capitalize; }.status-pill.active { color: #086058; background: #d9f6f1; }.status-pill.paused { color: #91550d; background: #fff0d6; }
.admin-toolbar { align-items: end !important; }.admin-toolbar input { width: min(260px, 52vw); }.admin-toolbar select { width: 130px; }
.quality-grid { grid-template-columns: minmax(0, 1.45fr) minmax(280px, .65fr); }
.quality-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; max-height: 620px; overflow: auto; }
.quality-list li { padding: 15px 2px; border-bottom: 1px solid var(--line); }.quality-list li > div { display: flex; justify-content: space-between; gap: 12px; }.quality-list b { font-size: .82rem; }.quality-list span { color: var(--muted); font-size: .7rem; white-space: nowrap; }.quality-list p { margin-top: 5px; color: var(--ink-2); font-size: .88rem; line-height: 1.45; }
.health-list { margin: 0; }.health-list div { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); }.health-list dt { color: var(--muted); font-size: .8rem; }.health-list dd { margin: 0; text-align: right; font-size: .8rem; font-weight: 700; }.health-list .good { color: var(--teal-ink); }.health-list .warn { color: #a45b08; }
.empty { padding: 30px 12px; color: var(--muted); text-align: center; font-size: .86rem; }
@media (max-width: 1040px) { .platform-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }.platform-grid { grid-template-columns: 1fr 1fr; }.trend-card { grid-column: 1 / -1; grid-row: auto; } }
@media (max-width: 720px) { .platform-head { align-items: start; flex-direction: column; }.platform-head .row { width: 100%; }.platform-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }.platform-grid, .quality-grid { grid-template-columns: 1fr; }.trend-card { grid-column: auto; }.platform-card { padding: 17px; }.platform-card > header, .admin-toolbar { flex-direction: column; }.donut-wrap { justify-content: start; }.bar-row { grid-template-columns: 100px minmax(50px, 1fr) 40px; } }
