/* IND4AI Research — client portal and Automation projects. The home page's colour chapters
   (night, deep, ice, paper, then highlighter amber and lime), Red Hat Display 900 + Red Hat Text,
   one radius: square. Motion: Emil Kowalski's curves; no glass, glows, gradients or resting shadows. */

:root {
  color-scheme: light;
  --night: #06080b;
  --deep: #0b2230;
  --ice: #bfe3ee;
  --paper: #f4f4f1;
  --paper-2: #e8e8e2;
  --paper-3: #dcddd5;
  --ink: #0a0b0d;
  --soft: #4b4f55;
  --frost: #eaf3f6;
  --frost-soft: #a9bcc4;
  --amber: #ffd23f;
  --lime: #c8f53c;
  --red: #8f2a2a;
  --red-on-dark: #ff8f80;
  /* text on the bright fields (lime, amber), in either theme; the dark slab of toasts, menus and the allowance card */
  --on-bright: #0a0b0d;
  --slab: #0a0b0d;
  /* quiet text on an inverted chip (ink ground, paper text) */
  --inv-soft: color-mix(in srgb, var(--paper) 68%, var(--ink));
  --btn-hover: #cfd0c7;
  /* a vault row lifted under the pointer: a bevel of light above, shade below (the user asked for it) */
  --row-hover: #efefe9;
  --bevel: inset 0 1px 0 rgba(255, 255, 255, 0.75), inset 1px 0 0 rgba(255, 255, 255, 0.45), inset 0 -2px 0 rgba(10, 11, 13, 0.07), inset -1px 0 0 rgba(10, 11, 13, 0.05);
  --lift-shadow: 0 18px 30px -20px rgba(10, 11, 13, 0.4);

  --font-display: "Red Hat Display", "Segoe UI", system-ui, sans-serif;
  --font-text: "Red Hat Text", "Segoe UI", system-ui, sans-serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-lead: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
  --step-head: clamp(2.25rem, 1.1rem + 4.2vw, 5rem);
  --m: clamp(1rem, 3.2vw, 3rem);
  --gutter: clamp(0.75rem, 1.6vw, 1.5rem);
  --header: 68px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --t-press: 160ms;
  --t-hover: 180ms;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 12px); }
body { margin: 0; min-height: 100svh; background: var(--paper); color: var(--ink); font: 400 var(--step-body)/1.5 var(--font-text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.noscript { padding: 40px; text-align: center; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 900; letter-spacing: -0.02em; line-height: 0.95; text-transform: uppercase; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:where(svg[aria-hidden="true"]) { width: 18px; height: 18px; flex: none; }
.muted, .dim { color: var(--soft); }
.small, .fine { font-size: var(--step-small); }
.fine { color: var(--soft); margin-top: 10px; }
.center { text-align: center; }
.lede { margin-top: 18px; max-width: 46ch; font-size: var(--step-lead); line-height: 1.35; color: var(--soft); }
.grad-text { background: var(--lime); color: var(--ink); padding: 0 0.08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.rv:not(.in) { opacity: 0; transform: translateY(16px); }
.rv { transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }

/* ---------- loading ---------- */
.boot { min-height: 100svh; display: grid; place-items: center; background: var(--night); color: var(--frost); }
.boot-in { display: grid; justify-items: center; gap: 14px; }
.boot-name { font: 900 1.5rem/1 var(--font-display); text-transform: uppercase; letter-spacing: -0.01em; }
.boot .boot-mark { width: 64px; height: 64px; color: var(--frost); }
.boot p { font-size: var(--step-small); color: var(--frost-soft); }
.boot-line { position: relative; display: block; width: 168px; height: 3px; overflow: hidden; background: color-mix(in srgb, var(--frost) 15%, transparent); }
.boot-line::after { content: ""; position: absolute; inset: 0; width: 38%; background: var(--lime); animation: sweep 1.3s var(--ease-in-out) infinite; }
/* round seven: currents of characters behind the loading screen (drawn by app.js), as on the home page */
.boot { position: relative; overflow: hidden; }
.boot-in { position: relative; }
.boot-glyphs { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
@keyframes sweep { from { transform: translateX(-110%); } to { transform: translateX(280%); } }

/* the mark: the bars rise and the line draws itself */
.logo { width: 40px; height: 40px; flex: none; color: currentColor; }
.logo .mk-page { stroke-width: 1.6; }
.logo .mk-bar { transform-box: fill-box; transform-origin: 50% 100%; animation: mkbar 2.6s var(--ease-out) infinite; }
.logo .b2 { animation-delay: 90ms; } .logo .b3 { animation-delay: 180ms; } .logo .b4 { animation-delay: 270ms; }
.logo .mk-line { stroke: var(--lime); stroke-width: 2.2; stroke-dasharray: 18; stroke-dashoffset: 18; animation: mkline 2.6s var(--ease-out) infinite 300ms; }
@keyframes mkbar { 0% { transform: scaleY(0); } 30%, 100% { transform: scaleY(1); } }
@keyframes mkline { 0% { stroke-dashoffset: 18; } 40%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -18; } }

/* ---------- buttons: flat, square ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 44px; padding: 0 1.1em; border: 0; border-radius: 0; cursor: pointer; white-space: nowrap;
  background: var(--paper-3); color: var(--ink); font: 500 var(--step-small)/1 var(--font-text); text-decoration: none;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--lime); }
.btn-ghost { background: transparent; color: inherit; }
.btn-danger { background: var(--red); color: var(--frost); }
.btn-electric { background: var(--slab); color: var(--lime); }
.btn-lg { min-height: 52px; padding: 0 1.4em; font-size: var(--step-body); }
.btn-sm { min-height: 36px; padding: 0 0.85em; font-size: 13px; }
.btn-icon { width: 40px; min-height: 40px; padding: 0; }
.btn .arrow { display: inline-block; transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--btn-hover); }
  .btn-primary:hover { background: #d6ff52; }
  .btn-ghost:hover { background: color-mix(in srgb, currentColor 9%, transparent); }
  .btn-danger:hover { background: #7a2323; }
  .btn-electric:hover { background: #1c1e22; }
  .btn:hover .arrow { transform: translateX(4px); }
}
.btn.loading { color: transparent !important; pointer-events: none; }
.btn.loading::before { content: ""; position: absolute; width: 14px; height: 14px; border: 2px solid var(--ink); border-top-color: transparent; animation: spin 700ms linear infinite; }
.btn-danger.loading::before { border-color: var(--frost); border-top-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.linkish { padding: 0; border: 0; background: none; cursor: pointer; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.linkish[disabled] { text-decoration: none; color: var(--soft); cursor: default; }

/* ---------- header: the home page's, with links that act out where they go ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: clamp(12px, 2vw, 28px);
  min-height: var(--header); padding: env(safe-area-inset-top, 0px) var(--m) 0; background: var(--night); color: var(--frost);
}
.wordmark { margin-right: auto; font: 900 1.125rem/1 var(--font-display); letter-spacing: -0.01em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.site-nav { display: flex; gap: clamp(14px, 1.8vw, 26px); font-size: var(--step-small); font-weight: 500; }
.nv { display: inline-flex; align-items: center; gap: 7px; padding: 6px 0; text-decoration: none; transition: transform var(--t-press) var(--ease-out); }
.nv:active { transform: scale(0.97); }
.nv.on span { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 0.5em; }
.nv-g { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.nv-home .door { transform-box: fill-box; transform-origin: 0 50%; transition: transform 320ms var(--ease-out); }
.nv-auto .cog { transform-box: fill-box; transform-origin: 50% 50%; transition: transform 700ms var(--ease-in-out); }
.nv-key .shackle { transition: transform 280ms var(--ease-out); }
.nv-vault .dial { transform-box: fill-box; transform-origin: 50% 50%; transition: transform 700ms var(--ease-in-out); }
@media (hover: hover) and (pointer: fine) {
  .nv-home:hover .door, .nv-home:focus-visible .door { transform: perspective(20px) rotateY(-60deg); }
  .nv-auto:hover .c1, .nv-auto:focus-visible .c1 { transform: rotate(180deg); }
  .nv-auto:hover .c2, .nv-auto:focus-visible .c2 { transform: rotate(-240deg); }
  .nv-key:hover .shackle, .nv-key:focus-visible .shackle { transform: translateY(-2px); }
  .nv-vault:hover .dial, .nv-vault:focus-visible .dial { transform: rotate(270deg); }
}
.nv-chart rect { fill: currentColor; stroke: none; transform-box: fill-box; transform-origin: 50% 100%; }
@media (hover: hover) and (pointer: fine) {
  .nv-chart:hover .b1, .nv-chart:focus-visible .b1 { animation: barup 520ms var(--ease-out) both; }
  .nv-chart:hover .b2, .nv-chart:focus-visible .b2 { animation: barup 520ms var(--ease-out) 80ms both; }
  .nv-chart:hover .b3, .nv-chart:focus-visible .b3 { animation: barup 520ms var(--ease-out) 160ms both; }
}
@keyframes barup { from { transform: scaleY(0.15); } }
/* the theme switch: in dark the rays fold away, the sun shrinks and the moon comes up */
.theme-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; padding: 0; border: 0; background: color-mix(in srgb, currentColor 12%, transparent); color: inherit; cursor: pointer; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.theme-btn:active { transform: scale(0.97); }
.theme-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; overflow: visible; }
.theme-btn .rays, .theme-btn .sun, .theme-btn .moon { transform-box: fill-box; transform-origin: 50% 50%; transition: transform 360ms var(--ease-out), opacity 240ms ease; }
.theme-btn .moon { fill: currentColor; stroke: none; opacity: 0; transform: scale(0.4) rotate(-30deg); }
.theme-btn[aria-pressed="true"] .rays { transform: rotate(90deg) scale(0); opacity: 0; }
.theme-btn[aria-pressed="true"] .sun { transform: scale(0.4); opacity: 0; }
.theme-btn[aria-pressed="true"] .moon { transform: none; opacity: 1; }
@media (hover: hover) and (pointer: fine) { .theme-btn:hover { background: color-mix(in srgb, currentColor 20%, transparent); } }
.nav-right { display: flex; align-items: center; gap: 10px; }
.head-cta { min-height: 40px; }
.badge { padding: 5px 8px; background: var(--lime); color: var(--ink); font-size: 12px; font-weight: 500; }
.who { display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; border: 0; background: color-mix(in srgb, var(--frost) 10%, transparent); cursor: pointer; text-align: left; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.who:active { transform: scale(0.97); }
.who .wt { line-height: 1.2; }
.who .wt b { display: block; font-size: 13px; font-weight: 500; }
.who .wt span { font-size: 12px; color: var(--frost-soft); }
.who > svg { width: 16px; height: 16px; color: var(--frost-soft); }
@media (hover: hover) and (pointer: fine) { .who:hover { background: color-mix(in srgb, var(--frost) 18%, transparent); } }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: none; overflow: hidden; background: var(--lime); color: var(--ink); font: 900 13px/1 var(--font-display); }
.avatar img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.menu-btn { display: none; height: 40px; padding: 0 12px; border: 0; background: color-mix(in srgb, var(--frost) 12%, transparent); color: var(--frost); cursor: pointer; font-size: var(--step-small); font-weight: 500; transition: transform var(--t-press) var(--ease-out); }
.menu-btn:active { transform: scale(0.97); }

/* ---------- footer ---------- */
.site-foot { padding: 72px var(--m) 32px; background: var(--night); color: var(--frost); overflow: hidden; }
.foot-name { font: 900 clamp(2.5rem, 0.4rem + 8.6vw, 9rem)/0.86 var(--font-display); letter-spacing: -0.045em; text-transform: uppercase; white-space: nowrap; }
.foot-row { margin-top: 64px; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); row-gap: 40px; }
.places { grid-column: 1 / span 5; display: grid; gap: 14px; align-content: start; }
.places a { font-size: var(--step-lead); font-weight: 500; text-decoration: none; }
.places p { max-width: 40ch; color: var(--frost-soft); font-size: var(--step-small); }
.foot-cols { grid-column: 7 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; font-size: var(--step-small); }
.foot-cols h3 { font: 500 var(--step-small)/1.3 var(--font-text); text-transform: none; letter-spacing: 0; color: var(--frost-soft); }
.foot-cols ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.foot-cols a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .foot-cols a:hover, .places a:hover { text-decoration: underline; text-underline-offset: 4px; } }
.legal-line { margin-top: 56px; font-size: 13px; color: var(--frost-soft); max-width: 90ch; }

/* ---------- fields ---------- */
.field { position: relative; display: block; margin: 0 0 12px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 56px; padding: 24px 14px 8px; border: 0; border-radius: 0; background: var(--paper-2); outline: none;
  -webkit-appearance: none; appearance: none;
  transition: background-color var(--t-hover) ease;
}
.field textarea { min-height: 112px; padding-top: 28px; resize: vertical; line-height: 1.45; }
.field input[type="date"] { min-height: 56px; }
.field select { padding-right: 40px; cursor: pointer; }
.field input:focus, .field select:focus, .field textarea:focus { background: var(--paper-3); outline: 2px solid var(--ink); outline-offset: -2px; }
.field label { position: absolute; left: 14px; top: 18px; color: var(--soft); font-size: 15px; pointer-events: none; transform-origin: left top; transition: transform var(--t-hover) var(--ease-out), font-size var(--t-hover) var(--ease-out), color var(--t-hover) ease; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select + label, .field.filled label { transform: translateY(-10px); font-size: 12px; font-weight: 500; color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: transparent; }
.field input:focus::placeholder, .field textarea:focus::placeholder { color: var(--soft); }
.field .chev { position: absolute; right: 14px; top: 20px; width: 16px; height: 16px; color: var(--soft); pointer-events: none; }
.field .hint { display: block; margin: 6px 2px 0; font-size: 12.5px; color: var(--soft); }
.field .req { color: var(--red); margin-left: 2px; }
.field .eye { position: absolute; right: 8px; top: 8px; }
.field.has-eye input { padding-right: 52px; }
.caps { display: none; margin: 6px 2px 0; padding: 3px 7px; width: max-content; background: var(--amber); font-size: 12.5px; font-weight: 500; }
.caps.on { display: block; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.check-row { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 18px; font-size: var(--step-small); cursor: pointer; }
.check-row input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 4px 0 18px; flex-wrap: wrap; }

.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-size: var(--step-small); }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle .knob { position: relative; width: 40px; height: 24px; flex: none; background: color-mix(in srgb, var(--ink) 16%, transparent); transition: background-color 200ms ease; }
.toggle .knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: var(--paper); transition: transform 240ms var(--ease-out), background-color 200ms ease; }
.toggle input:checked + .knob { background: var(--ink); }
.toggle input:checked + .knob::after { transform: translateX(16px); background: var(--lime); }
.toggle input:focus-visible + .knob { outline: 2px solid var(--ink); outline-offset: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: var(--paper-2); font-size: 13px; font-weight: 500; cursor: pointer; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.chip-check span svg { width: 15px; height: 15px; }
.chip-check input:checked + span { background: var(--ink); color: var(--paper); }
.chip-check input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

.dropzone { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; margin-bottom: 12px; cursor: pointer; background: var(--paper-2); outline: 2px dashed color-mix(in srgb, var(--ink) 30%, transparent); outline-offset: -2px; transition: background-color var(--t-hover) ease, outline-color var(--t-hover) ease; }
.dropzone.over { background: var(--lime); outline-color: var(--ink); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .dz-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; background: var(--slab); color: var(--lime); }
.dropzone strong { display: block; font-weight: 500; }
.dropzone small { color: var(--soft); font-size: 12.5px; }
.dropzone .dz-clear { position: relative; z-index: 2; margin-left: auto; }
@media (hover: hover) and (pointer: fine) { .dropzone:hover { background: var(--paper-3); } }

.strength { height: 5px; margin: -4px 0 14px; overflow: hidden; background: color-mix(in srgb, var(--ink) 12%, transparent); }
.strength i { display: block; height: 100%; width: 0; transition: width 300ms var(--ease-out), background-color 300ms ease; }
.pw-tools { display: flex; gap: 8px; margin: -4px 0 14px; }
.logo-prev { display: grid; place-items: center; width: 56px; height: 56px; flex: none; overflow: hidden; background: #fff; }
.logo-prev img { max-width: 90%; max-height: 90%; object-fit: contain; }
.cred { margin-bottom: 14px; padding: 16px; background: var(--paper-2); font-size: 14px; line-height: 1.8; word-break: break-all; font-variant-numeric: tabular-nums; }
.cred span { color: var(--soft); }

.otp-row { display: flex; gap: 8px; margin: 10px 0 18px; }
.otp { width: 100%; max-width: 54px; height: 62px; padding: 0; border: 0; border-radius: 0; background: var(--paper-2); text-align: center; font: 900 1.6rem/1 var(--font-display); outline: none; transition: background-color var(--t-hover) ease; }
.otp:focus { outline: 2px solid var(--ink); outline-offset: -2px; background: var(--paper-3); }
.otp-row.full .otp { background: var(--lime); }

.alert { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; padding: 12px 14px; font-size: var(--step-small); }
.alert svg { width: 17px; height: 17px; margin-top: 2px; }
.alert-ok { background: var(--lime); }
.alert-info { background: var(--ice); }
.alert-warn { background: var(--amber); }
.alert-bad { background: var(--red); color: var(--frost); }
.alert a { font-weight: 500; }
.shake { animation: shake 420ms var(--ease-out); }
@keyframes shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }

/* ---------- sign in, sign up, codes ---------- */
.auth { display: grid; grid-template-columns: 1.1fr 0.9fr; min-height: calc(100svh - var(--header)); }
.auth-hero { display: grid; align-content: center; gap: 36px; padding: 72px var(--m); background: var(--night); color: var(--frost); }
.auth-hero h1 { font-size: var(--step-head); max-width: 11ch; }
.auth-hero .grad-text { background: none; color: var(--lime); padding: 0; }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; max-width: 30rem; }
.features li { display: grid; gap: 3px; padding-left: 18px; position: relative; }
.features li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px; background: var(--lime); }
.features b { font-weight: 500; }
.features span { color: var(--frost-soft); font-size: var(--step-small); }
.ticker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--frost-soft); }
.ticker .dot { width: 8px; height: 8px; background: var(--lime); animation: blink 2.4s steps(1) infinite; }
.auth-card { align-self: center; justify-self: center; width: min(460px, 100%); padding: 56px var(--m); }
.auth-card h2 { font-size: clamp(2rem, 1.4rem + 1.6vw, 2.75rem); }
.auth-card .sub { margin: 10px 0 24px; color: var(--soft); }
.auth-card > .btn-primary, .auth-card .btn-lg { width: 100%; }
.auth-card .foot { margin-top: 18px; text-align: center; color: var(--soft); font-size: 13px; }
.auth-card .foot a { font-weight: 500; }
.auth-solo { display: grid; place-items: center; padding: 48px var(--m) 96px; }
.auth-solo .auth-card { background: var(--paper); }

/* ---------- toasts ---------- */
.toasts { position: fixed; right: 16px; top: calc(var(--header) + 12px); z-index: 90; display: grid; gap: 8px; width: min(380px, calc(100vw - 32px)); }
.toast { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--slab); color: var(--frost); font-size: var(--step-small); animation: toast-in 280ms var(--ease-out); }
.toast.out { animation: toast-out 180ms ease forwards; }
.toast .ti { display: grid; place-items: center; width: 24px; height: 24px; flex: none; background: var(--ice); color: var(--ink); }
.toast .ti svg { width: 14px; height: 14px; }
.toast-ok .ti { background: var(--lime); }
.toast-bad .ti { background: var(--red-on-dark); }
.toast b { display: block; font-weight: 500; }
.toast span { color: var(--frost-soft); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(24px); } }
.burst { position: fixed; z-index: 95; width: 8px; height: 8px; pointer-events: none; }
.plane { position: fixed; z-index: 95; width: 18px; height: 18px; color: var(--ink); pointer-events: none; }
.plane svg { width: 18px; height: 18px; }

/* ---------- overlays: drawers, modals, menus ---------- */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(6, 8, 11, 0.56); animation: fade 200ms ease; }
@keyframes fade { from { opacity: 0; } }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(580px, 100vw); overflow-y: auto; overscroll-behavior: contain; padding: 28px 28px 56px; background: var(--paper); animation: slide 420ms var(--ease-drawer); }
.drawer.wide { width: min(1040px, 100vw); }
@keyframes slide { from { transform: translateX(100%); } }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.drawer-head h2 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem); }
.drawer-head p { margin-top: 8px; color: var(--soft); font-size: var(--step-small); }
.drawer h3 { margin: 30px 0 12px; font: 500 var(--step-small)/1.3 var(--font-text); text-transform: none; letter-spacing: 0; color: var(--soft); }
.drawer h4 { margin: 16px 0 8px; font-size: 13px; font-weight: 500; color: var(--soft); }
.modal-wrap { position: fixed; inset: 0; z-index: 61; display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.modal { width: min(460px, 100%); padding: 28px; background: var(--paper); animation: modal-in 220ms var(--ease-out); }
.modal.wide-modal { width: min(640px, 100%); }
@keyframes modal-in { from { opacity: 0; transform: scale(0.96); } }
.modal h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.modal > p { margin: 10px 0 18px; color: var(--soft); }
.modal .btns { display: flex; gap: 10px; justify-content: flex-end; margin-top: 10px; flex-wrap: wrap; }
.upsell .up-ico { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; background: var(--slab); color: var(--lime); }

.menu.pop { position: fixed; z-index: 70; min-width: 250px; max-width: calc(100vw - 16px); padding: 6px; background: var(--slab); color: var(--frost); animation: pop-in 160ms var(--ease-out); transform-origin: top right; }
@keyframes pop-in { from { opacity: 0; transform: scale(0.97); } }
.menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border: 0; background: transparent; color: inherit; cursor: pointer; text-align: left; font-size: var(--step-small); transition: background-color 120ms ease; }
.menu button svg { width: 16px; height: 16px; color: var(--frost-soft); }
.menu button:focus-visible { outline: 2px solid var(--lime); outline-offset: -2px; }
.menu button[disabled] { opacity: 0.5; cursor: default; }
.menu .mi { display: grid; line-height: 1.25; }
.menu .mi b { font-weight: 500; }
.menu .mi small { color: var(--frost-soft); font-size: 12px; }
.menu .danger, .menu .danger svg { color: var(--red-on-dark); }
.menu .mlock { margin-left: auto; }
.menu .mbadge { margin-left: auto; padding: 2px 6px; background: var(--lime); color: var(--ink); font-size: 11px; font-weight: 500; }
.menu hr { height: 6px; margin: 0; border: 0; }
.pop-head { display: grid; padding: 8px 10px 10px; font-size: var(--step-small); }
.pop-head span { color: var(--frost-soft); font-size: 12px; }
@media (hover: hover) and (pointer: fine) { .menu button:not([disabled]):hover { background: color-mix(in srgb, var(--paper) 12%, transparent); } .menu button:hover svg { color: var(--lime); } }

/* the interactive edition, inside the page */
.modal-wrap.wide { padding: 12px; }
.viewer { display: flex; flex-direction: column; width: min(1320px, 100%); height: min(92svh, 1000px); background: var(--ink); animation: modal-in 220ms var(--ease-out); }
.viewer-bar { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; color: var(--paper); }
.viewer-bar b { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 500; }
.viewer-bar .btn-ghost { color: var(--paper); }
.v-dots { display: none; }
.v-tag { padding: 3px 7px; background: var(--lime); color: var(--ink); font-size: 12px; font-weight: 500; white-space: nowrap; }
.spacer { flex: 1; }
.viewer-body { position: relative; flex: 1; background: #fff; }
.viewer-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity 300ms ease; }
.loaded .viewer-frame { opacity: 1; }
.viewer-load { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--soft); }
.loaded .viewer-load { display: none; }

/* ---------- the vault ---------- */
.in-vault { background: var(--paper-2); }
.page { max-width: 1360px; margin: 0 auto; padding: 44px var(--m) 96px; }
.hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 28px; flex-wrap: wrap; margin-bottom: 28px; }
.hello h1 { font-size: clamp(2.25rem, 1rem + 4vw, 4.5rem); }
.hello h1 + p { margin-top: 14px; color: var(--soft); }
.hello-side { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* the allowance or the credits: a ring on an ink card */
.allowance { --tone: var(--lime); display: flex; align-items: center; gap: 14px; min-width: 260px; padding: 12px 18px 12px 12px; background: var(--slab); color: var(--frost); }
.allowance[data-tone="warn"], .allowance[data-tone="hot"] { --tone: var(--amber); }
.allowance[data-tone="full"] { --tone: var(--red-on-dark); }
.al-ringbox { position: relative; width: 54px; height: 54px; flex: none; }
.al-ring { width: 54px; height: 54px; transform: rotate(-90deg); }
.al-track { fill: none; stroke: color-mix(in srgb, var(--frost) 16%, transparent); stroke-width: 6; }
.al-arc { fill: none; stroke: var(--tone); stroke-width: 6; transition: stroke-dashoffset 1s var(--ease-out), stroke 300ms ease; }
.al-ico { position: absolute; inset: 0; display: grid; place-items: center; color: var(--tone); }
.al-ico svg { width: 18px; height: 18px; }
.al-label { display: block; font-size: 12px; color: var(--frost-soft); }
.al-count { margin-top: 2px; font: 900 1.9rem/1.05 var(--font-display); font-variant-numeric: tabular-nums; }
.al-lim { font-size: 1.1rem; color: var(--frost-soft); }
.al-sub { display: block; margin-top: 2px; font-size: 12px; color: var(--frost-soft); }
.allowance[data-tone="full"] .al-sub, .allowance[data-tone="hot"] .al-sub { color: var(--tone); }
.w-top { display: flex; align-items: center; gap: 8px; }
.w-btns { display: flex; gap: 6px; margin-top: 8px; }
.allowance .btn-ghost { color: var(--frost); }
.drawer .allowance { margin: 10px 0 4px; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); margin-bottom: var(--gutter); }
.kpi { padding: 18px 20px; background: var(--paper); transition: background-color 400ms ease; }
.kpi .k-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--soft); font-size: var(--step-small); }
.kpi .k-ico svg { width: 18px; height: 18px; }
.kpi .k-val { margin-top: 10px; font: 900 clamp(2rem, 1.4rem + 1.6vw, 2.75rem)/1 var(--font-display); font-variant-numeric: tabular-nums; }
.kpi .k-sub { margin-top: 6px; font-size: 12.5px; color: var(--soft); }
.kpi.live { background: var(--amber); }
.kpi.live .k-top, .kpi.live .k-sub { color: var(--ink); }

.section { margin-bottom: var(--gutter); padding: clamp(18px, 2.4vw, 32px); background: var(--paper); }
.section.flows { background: var(--ice); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(1.5rem, 1rem + 1.4vw, 2.25rem); }
.section-head h2 .count { padding: 4px 8px; background: var(--ink); color: var(--paper); font: 500 13px/1 var(--font-text); letter-spacing: 0; }
.section-head p { margin-top: 8px; max-width: 64ch; color: var(--soft); font-size: var(--step-small); }
.section.flows .section-head p { color: var(--ink); }

/* report types and a client's workflows */
.types { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin-bottom: 20px; }
.type-card { position: relative; display: block; padding: 18px; border: 0; background: var(--paper-2); color: var(--ink); text-align: left; cursor: pointer; transition: background-color 200ms ease, color 200ms ease, transform var(--t-press) var(--ease-out); }
.type-card:active { transform: scale(0.98); }
.section.flows .type-card:not([aria-pressed="true"]) { background: var(--paper); }
.type-card[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.type-card .tc-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; padding-right: 26px; }
.type-card .tc-ico { display: grid; place-items: center; width: 38px; height: 38px; flex: none; background: var(--paper-3); transition: background-color 200ms ease, color 200ms ease; }
.type-card[aria-pressed="true"] .tc-ico { background: var(--lime); color: var(--ink); }
.type-card b { font: 900 1.05rem/1.1 var(--font-display); text-transform: uppercase; }
.type-card .tc-time { margin-left: auto; font-size: 12px; color: var(--soft); white-space: nowrap; }
.type-card[aria-pressed="true"] .tc-time { color: var(--inv-soft); }
.type-card p { margin: 0 0 12px; color: var(--soft); font-size: var(--step-small); }
.type-card[aria-pressed="true"] p { color: var(--inv-soft); }
.outs { display: flex; flex-wrap: wrap; gap: 6px; }
.out-chip { padding: 4px 8px; background: color-mix(in srgb, var(--ink) 8%, transparent); font-size: 12px; font-weight: 500; }
.type-card[aria-pressed="true"] .out-chip { background: color-mix(in srgb, var(--paper) 14%, transparent); }
.out-chip.flow { background: var(--ice); }
.type-card .tick { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 22px; height: 22px; background: var(--lime); color: var(--ink); opacity: 0; transform: scale(0.5); transition: opacity 200ms ease, transform 240ms var(--ease-out); }
.type-card .tick svg { width: 13px; height: 13px; }
.type-card[aria-pressed="true"] .tick { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) { .type-card:not([aria-pressed="true"]):hover { background: var(--paper-3); } }

.gen-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; animation: rise 320ms var(--ease-out); }
.section.flows .field input, .section.flows .field select, .section.flows .field textarea, .section.flows .dropzone { background: var(--paper); }
.gen-form .full { grid-column: 1 / -1; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.gen-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.ga-left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cost-note { display: inline-flex; align-items: center; gap: 8px; font-size: var(--step-small); color: var(--soft); }
.section.flows .cost-note { color: var(--ink); }
.cn-lock { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; background: var(--amber); color: var(--ink); font-size: 12px; }
.cn-lock svg { width: 13px; height: 13px; }
.regen-note { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 12px 14px; background: var(--amber); }
.regen-note b { font-weight: 500; }
.regen-note > div { flex: 1; font-size: var(--step-small); }
.out-of-credits { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; padding: 14px 16px; background: var(--amber); }
.out-of-credits b { display: block; font-weight: 500; }
.out-of-credits span { font-size: var(--step-small); }

/* the Generate button turns into two turning gears, then hands itself back */
.btn.gearing, .btn.gearing:disabled { opacity: 1; cursor: progress; pointer-events: none; background: var(--slab); color: var(--lime); }
.gears { width: 24px !important; height: 24px !important; overflow: visible; }
.gears path, .gears circle { fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linejoin: round; }
.gears .g1 { transform-origin: 10px 10px; animation: spin 0.6s linear infinite; }
.gears .g2 { transform-origin: 18px 18.2px; animation: spin 0.6s linear infinite reverse; }

/* the design picker: a little page in each design's colours */
.design-row { margin: 6px 0 18px; }
.design-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; font-size: var(--step-small); color: var(--soft); }
.design-head b { color: var(--ink); font-weight: 500; }
.designs { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 8px; }
.design-tile { position: relative; display: grid; gap: 8px; padding: 8px 8px 10px; border: 0; background: var(--paper-2); text-align: left; cursor: pointer; transition: background-color 200ms ease, color 200ms ease, transform var(--t-press) var(--ease-out); }
.design-tile:active { transform: scale(0.97); }
.design-tile[aria-checked="true"] { background: var(--ink); color: var(--paper); }
.dz-page { position: relative; display: block; height: 72px; overflow: hidden; }
.dz-cover { position: relative; display: block; height: 46%; }
.dz-cover i { position: absolute; left: 10%; bottom: 18%; width: 34%; height: 4px; }
.dz-lines { display: grid; gap: 4px; padding: 7px 10% 0; }
.dz-lines i { display: block; height: 3px; width: 100%; background: rgba(120, 130, 150, 0.35); }
.dz-lines i:nth-child(2) { width: 82%; } .dz-lines i:nth-child(3) { width: 91%; }
.dz-name { overflow: hidden; font-size: 12.5px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.dz-tick { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 20px; height: 20px; background: var(--lime); color: var(--ink); opacity: 0; transform: scale(0.5); transition: opacity 200ms ease, transform 240ms var(--ease-out); }
.dz-tick svg { width: 12px; height: 12px; }
.design-tile[aria-checked="true"] .dz-tick { opacity: 1; transform: none; }
.design-tile.locked { cursor: help; }
.design-tile.locked .dz-page { filter: grayscale(0.7); opacity: 0.6; }
.dz-lock { position: absolute; top: 34px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; background: var(--ink); color: var(--paper); font-size: 11px; white-space: nowrap; }
.dz-lock svg { width: 12px; height: 12px; }

/* the reports list: each row a block, no rules */
.search { position: relative; }
.search input { width: 240px; height: 40px; padding: 0 12px 0 36px; border: 0; border-radius: 0; background: var(--paper-2); outline: none; }
.search input:focus { outline: 2px solid var(--ink); outline-offset: -2px; }
.search svg { position: absolute; left: 11px; top: 11px; width: 17px; height: 17px; color: var(--soft); }
.seg { display: inline-flex; flex-wrap: wrap; padding: 3px; background: var(--paper-2); }
.seg button { min-height: 34px; padding: 0 12px; border: 0; background: transparent; color: var(--soft); font-size: 13px; font-weight: 500; cursor: pointer; transition: background-color 160ms ease, color 160ms ease; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.seg-row { display: flex; align-items: center; gap: 12px; margin: 4px 0 6px; }
.table-wrap { overflow-x: auto; }
.vault { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.vault th { padding: 0 14px 2px; text-align: left; font-size: 12.5px; font-weight: 500; color: var(--soft); white-space: nowrap; }
.vault td { padding: 14px; background: var(--paper-2); vertical-align: middle; transition: background-color 300ms ease; }
.vault tbody tr { transition: opacity 300ms ease, transform 300ms var(--ease-out); }
.vault tr.fresh td { animation: fresh 2.4s ease; }
@media (min-width: 721px) {
  .vault.reports { display: grid; border-spacing: 0; }
  .vault.reports thead, .vault.reports tbody { display: grid; gap: 6px; }
  .vault.reports tr { display: grid; grid-template-columns: minmax(0, 2.5fr) minmax(0, 0.95fr) minmax(0, 0.7fr) minmax(0, 1.2fr) minmax(max-content, 1.25fr); align-items: center; column-gap: 14px; }
  .vault.reports thead tr { padding: 0 14px; }
  .vault.reports tbody tr { padding: 14px; background: var(--paper-2); }
  .vault.reports td, .vault.reports th { display: block; padding: 0; background: none; }
  .vault.reports .th-end { text-align: right; }
  .vault.reports tr.fresh { animation: fresh 2.4s ease; }
  .vault.reports tr.just-started { animation: started 2.4s ease; }
}
.vault.reports tbody tr { position: relative; transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px)); transition: transform 460ms var(--ease-out), box-shadow 460ms var(--ease-out), background-color 240ms ease, opacity 300ms ease; }
@media (hover: hover) and (pointer: fine) {
  .vault.reports tbody tr:hover { --lift: -3px; background: var(--row-hover); box-shadow: var(--bevel), var(--lift-shadow); } /* taste-skill-ignore: the user asked for a bevelled 3D lift on hover */
}
.vault.reports tbody tr.leaving { opacity: 0.35; transform: perspective(1100px) translateX(12px); }
/* a report being made: raised, edged in lime, a light passing over it, its icon at work */
.vault.reports tbody tr.running { --lift: -4px; background: var(--paper); box-shadow: var(--bevel), var(--lift-shadow); } /* taste-skill-ignore: the running report sits raised above the finished ones (the user asked for it) */
.vault.reports tbody tr.running::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--lime); }
.vault.reports tbody tr.running::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 34%; background: color-mix(in srgb, var(--lime) 16%, transparent); pointer-events: none; animation: rowsweep 2.8s var(--ease-in-out) infinite; }
@keyframes rowsweep { 0% { transform: translateX(0); opacity: 0; } 15%, 85% { opacity: 1; } 100% { transform: translateX(194%); opacity: 0; } }
.vault.reports tbody tr.running td { position: relative; z-index: 1; }
.vault tr.running .r-ico { background: var(--lime); color: var(--on-bright); animation: bob 1.8s var(--ease-in-out) infinite; }
@keyframes bob { 50% { transform: translateY(-3px) rotate(-5deg); } }
.stage { display: block; margin-top: 8px; font-size: 12.5px; font-weight: 500; }
/* waiting in the queue: quieter, counting down */
.vault.reports tbody tr.waiting { background: color-mix(in srgb, var(--paper-2) 55%, transparent); }
.vault tr.waiting .r-ico { opacity: 0.55; }
.pill-queued { background: var(--paper-3); color: var(--ink); }
.pill-queued svg { width: 14px; height: 14px; }
.eta.wait { font-weight: 500; color: var(--ink); }
/* the design a report was made in, quietly */
.dsn { display: inline-flex; align-items: center; gap: 5px; }
.dsn i { display: block; width: 9px; height: 9px; }
/* paging: 10 a page or all */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.pg-count { font-size: var(--step-small); color: var(--soft); }
.pg-nums { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 36px; min-height: 36px; padding: 0 10px; border: 0; background: var(--paper-2); color: var(--ink); font-size: 13px; font-weight: 500; cursor: pointer; transition: background-color 160ms ease, transform var(--t-press) var(--ease-out); }
.pg-btn:active { transform: scale(0.97); }
.pg-btn[aria-current="page"] { background: var(--ink); color: var(--paper); }
.pg-btn[disabled] { opacity: 0.4; cursor: default; }
.pg-btn svg { width: 15px; height: 15px; }
.pg-prev { transform: rotate(90deg); } .pg-next { transform: rotate(-90deg); }
.pg-gap { padding: 0 4px; color: var(--soft); }
@media (hover: hover) and (pointer: fine) { .pg-btn:not([disabled]):not([aria-current]):hover { background: var(--paper-3); } }
.vault tr.just-started td { animation: started 2.4s ease; }
.vault tr.leaving { opacity: 0.35; transform: translateX(12px); }
@keyframes fresh { 0%, 30% { background: var(--lime); } }
@keyframes started { 0%, 30% { background: var(--ice); } }
.r-title { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.r-ico { display: grid; place-items: center; width: 38px; height: 38px; flex: none; background: var(--paper-3); }
.r-ico svg { width: 18px; height: 18px; }
.r-title b { display: block; font-weight: 500; overflow-wrap: anywhere; }
.r-title small { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; font-size: 12px; color: var(--soft); }
.type-tag { padding: 3px 7px; background: var(--ink); color: var(--paper); font-size: 11.5px; font-weight: 500; }
.type-tag.sector { background: var(--deep); color: var(--frost); }
.type-tag.flow { background: var(--ice); color: var(--ink); }
.type-tag.regen { background: var(--amber); color: var(--ink); }
.job { font-variant-numeric: tabular-nums; }
.r-note { margin-top: 10px; max-width: 64ch; padding: 10px 12px; background: var(--ice); font-size: var(--step-small); white-space: pre-line; }
.when b { display: block; font-weight: 500; white-space: nowrap; }
.when small, .built { font-size: 12px; color: var(--soft); white-space: nowrap; }
.size { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pill { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.pill .pd { width: 7px; height: 7px; background: currentColor; }
.pill-ready { background: var(--lime); color: var(--ink); }
.pill-processing { background: var(--amber); color: var(--ink); }
.pill-processing .pd { animation: blink 1.1s steps(1) infinite; }
.pill-failed { background: var(--red); color: var(--frost); }
@keyframes blink { 50% { opacity: 0; } }
.scan { position: relative; width: 170px; height: 4px; margin-top: 9px; overflow: hidden; background: color-mix(in srgb, var(--ink) 12%, transparent); }
.scan i { position: absolute; top: 0; bottom: 0; left: 0; background: var(--ink); transition: width 1s linear; }
.scan::after { content: ""; position: absolute; inset: 0; width: 30%; background: var(--lime); mix-blend-mode: multiply; animation: sweep 1.5s linear infinite; }
.eta { display: block; margin-top: 6px; font-size: 12px; color: var(--soft); font-variant-numeric: tabular-nums; }
.err { display: block; margin-top: 6px; max-width: 280px; font-size: 12.5px; color: var(--red); }
.files { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; }
.file-btn, .act-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 6px; border: 0; background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, opacity 300ms ease, transform var(--t-press) var(--ease-out); }
.act-btn { padding: 0 10px; }
.act-btn svg { width: 16px; height: 16px; }
.mail-btn { width: 36px; padding: 0; justify-content: center; }
.file-btn:active, .act-btn:active { transform: scale(0.97); }
.file-btn .fx { padding: 4px 5px; font-size: 10.5px; font-weight: 500; letter-spacing: 0.04em; }
.fx-pdf { background: var(--red); color: var(--frost); }
.fx-xlsx { background: var(--lime); color: var(--ink); }
.fx-html { background: var(--ice); color: var(--ink); }
.file-btn small { font-size: 12px; color: var(--soft); font-variant-numeric: tabular-nums; }
.file-btn.busy, .act-btn.busy { opacity: 0.6; pointer-events: none; }
.file-btn.locked { opacity: 0.7; }
.file-btn .got-tick, .file-btn .lock-tick { display: none; }
.file-btn.got { opacity: 0.5; }
.file-btn.got .got-tick, .file-btn.locked .lock-tick { position: absolute; top: -6px; right: -6px; display: grid; place-items: center; width: 16px; height: 16px; background: var(--lime); }
.file-btn.locked .lock-tick { background: var(--ink); color: var(--paper); }
.file-btn .got-tick svg, .file-btn .lock-tick svg { width: 10px; height: 10px; }
.file-btn.hop { animation: hop 900ms cubic-bezier(0.3, 0.7, 0.3, 1.3); }
@keyframes hop { 0% { transform: none; opacity: 1; } 16% { transform: translateY(2px) scale(1.08, 0.86); opacity: 1; } 40% { transform: translateY(-16px) rotate(-8deg); } 60% { transform: translateY(0) rotate(4deg) scale(1.06, 0.92); opacity: 1; } 78% { transform: translateY(-3px); } 100% { transform: none; opacity: 0.5; } }
.file-btn .quip { position: absolute; bottom: calc(100% + 4px); left: 50%; padding: 3px 6px; background: var(--ink); color: var(--lime); font-size: 12px; white-space: nowrap; pointer-events: none; animation: quip 1.3s var(--ease-out) forwards; background: var(--slab); }
@keyframes quip { 0% { opacity: 0; transform: translate(-50%, 6px); } 20%, 70% { opacity: 1; transform: translate(-50%, -4px); } 100% { opacity: 0; transform: translate(-50%, -18px); } }
@media (hover: hover) and (pointer: fine) { .file-btn:hover, .act-btn:hover { background: var(--ink); color: var(--paper); } .file-btn:hover small { color: var(--inv-soft); } .file-btn.got:hover { opacity: 0.9; } }

.empty { padding: 48px 20px 40px; text-align: center; }
.empty-mark { width: 64px; height: 64px; margin: 0 auto 16px; }
.empty h3 { font-size: 1.6rem; }
.empty p { max-width: 44ch; margin: 10px auto 0; color: var(--soft); }
.empty.slim { padding: 24px 12px; }
.sk { position: relative; overflow: hidden; background: var(--paper-3); }
.sk::after { content: ""; position: absolute; inset: 0; width: 40%; background: color-mix(in srgb, var(--paper) 55%, transparent); animation: sweep 1.4s linear infinite; }

/* ---------- Analytics: hours and money back ---------- */
.an-band { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--gutter); margin-bottom: var(--gutter); }
.an-out { display: grid; align-content: center; gap: 8px; padding: clamp(22px, 3vw, 44px); background: var(--lime); color: var(--on-bright); }
.an-big { font: 900 clamp(4rem, 2rem + 8vw, 9rem)/0.85 var(--font-display); letter-spacing: -0.045em; }
.an-line { font-size: var(--step-lead); line-height: 1.3; }
.an-line strong { font: 900 1.15em/1 var(--font-display); }
.an-minus { margin-top: 8px; max-width: 44ch; }
.an-controls { padding: clamp(18px, 2.4vw, 32px); background: var(--paper); }
.an-controls h2 { font-size: clamp(1.5rem, 1rem + 1.4vw, 2.25rem); }
.an-controls > p { margin: 8px 0 18px; color: var(--soft); }
.an-sliders { display: grid; gap: 18px; }
.an-slide { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 12px; font-size: var(--step-small); }
.an-slide output { font: 900 1.3rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.an-slide input { grid-column: 1 / -1; width: 100%; margin: 0; accent-color: var(--ink); cursor: pointer; }
.an-months { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; height: 240px; }
.an-m { display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 6px; height: 100%; text-align: center; }
.an-m i { display: block; background: var(--ink); transition: height 600ms var(--ease-out); }
.an-v { min-height: 1em; font: 900 1rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.an-l { font-size: 12px; color: var(--soft); }
.an-table { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.an-table th { padding: 0 14px 2px; text-align: left; font-size: 12.5px; font-weight: 500; color: var(--soft); }
.an-table td { padding: 12px 14px; background: var(--paper-2); }
.an-table td.num { font-variant-numeric: tabular-nums; }

/* ---------- the control room ---------- */
.client-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.client-cell b { display: block; font-weight: 500; }
.client-cell small { display: block; overflow: hidden; color: var(--soft); font-size: 12.5px; text-overflow: ellipsis; }
.status-btn { padding: 0; border: 0; background: none; cursor: pointer; }
.acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.banner:empty { display: none; }
.ucell { display: grid; gap: 4px; min-width: 112px; }
.ucell b { font-weight: 500; font-variant-numeric: tabular-nums; }
.ucell small { font-size: 12px; color: var(--soft); }
.ubar { display: block; width: 112px; height: 4px; overflow: hidden; background: color-mix(in srgb, var(--ink) 12%, transparent); }
.ubar i { display: block; height: 100%; background: var(--ink); }
.ucell[data-tone="warn"] .ubar i, .ucell[data-tone="hot"] .ubar i { background: var(--amber); }
.ucell[data-tone="full"] .ubar i { background: var(--red); }
.ucell[data-tone="full"] b { color: var(--red); }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.leads { display: grid; gap: 8px; }
.lead { padding: 14px 16px; background: var(--paper-2); }
.lead-top { display: flex; justify-content: space-between; gap: 12px; }
.lead-top b { font-weight: 500; }
.lead-top small { color: var(--soft); font-size: 12px; white-space: nowrap; }
.lead p { margin: 6px 0 8px; font-size: var(--step-small); white-space: pre-line; }
.lead-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; }
.lead-meta a, .lead-meta span { display: inline-flex; align-items: center; gap: 6px; }
.lead-meta svg { width: 15px; height: 15px; }
.demo-list { display: grid; gap: 6px; }
.demo-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--paper-2); }
.demo-item.removing { opacity: 0.45; }
.di-n { font: 900 1.1rem/1 var(--font-display); width: 1.4em; }
.di-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.di-main small { color: var(--soft); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inline-edit { width: 100%; padding: 4px 6px; border: 0; background: transparent; font-weight: 500; outline: none; }
.inline-edit:focus { background: var(--paper); }

/* a client's custom workflows, in Edit client */
.flow-slots { display: grid; gap: 10px; }
.flow-slot { padding: 16px; background: var(--paper-2); transition: background-color 240ms ease; }
.flow-slot.on { background: var(--ice); }
.flow-slot .field input, .flow-slot .field select, .flow-slot .field textarea { background: var(--paper); }
.fs-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.fs-head b { font: 900 1rem/1 var(--font-display); text-transform: uppercase; }
.fq-rows { display: grid; gap: 8px; margin-bottom: 10px; }
.fq-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; grid-template-areas: "q a e" "x x x"; gap: 8px; align-items: start; padding: 8px; background: color-mix(in srgb, var(--paper) 55%, transparent); }
.fq-row > :nth-child(1) { grid-area: q; } .fq-row > :nth-child(2) { grid-area: a; } .fq-row > :nth-child(3) { grid-area: x; } .fq-row > :nth-child(4) { grid-area: e; }
.fq-row .field { margin: 0; }
.fq-end { display: flex; align-items: center; gap: 6px; min-height: 56px; }

/* billing (credits) */
.plan-card { padding: 16px 18px; background: var(--paper-2); }
.plan-card.none b { font-weight: 500; }
.pc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.pc-name { font: 900 1.2rem/1 var(--font-display); text-transform: uppercase; }
.pc-meta { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0; font-size: 13px; }
.pc-meta span { display: inline-flex; align-items: center; gap: 6px; }
.pc-meta svg { width: 15px; height: 15px; }
.grants { display: grid; gap: 6px; }
.grant { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; background: var(--paper-2); }
.grant.spent { opacity: 0.5; }
.g-l b, .g-r b { display: block; font-weight: 500; }
.g-l small, .g-r small { font-size: 12px; color: var(--soft); }
.g-r { text-align: right; }
.g-bar { height: 4px; background: color-mix(in srgb, var(--ink) 12%, transparent); }
.g-bar i { display: block; height: 100%; background: var(--ink); }
.plan-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 500; }
.plan-chip[data-metal="bronze"] { background: #b8733a; color: var(--ink); }
.plan-chip[data-metal="silver"] { background: var(--paper-3); color: var(--ink); }
.plan-chip[data-metal="gold"] { background: var(--amber); color: var(--ink); }
.plan-chip[data-metal="electric"] { background: var(--lime); color: var(--ink); }

/* ---------- the portal's own pages: policies, contact ---------- */
.legal { max-width: 900px; margin: 0 auto; padding: 64px var(--m) 96px; }
.legal h1 { font-size: var(--step-head); }
.legal > .muted { margin-top: 12px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 28px 0; }
.legal-nav a { padding: 8px 12px; background: var(--paper-2); font-size: var(--step-small); font-weight: 500; text-decoration: none; transition: background-color var(--t-hover) ease; }
.legal-nav a.on { background: var(--ink); color: var(--paper); }
@media (hover: hover) and (pointer: fine) { .legal-nav a:not(.on):hover { background: var(--paper-3); } }
.legal-body h2 { margin: 30px 0 10px; font-size: 1.25rem; }
.legal-body p { max-width: 68ch; margin: 0 0 12px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--gutter); margin-top: 36px; }
.contact-card { padding: clamp(18px, 2.4vw, 28px); background: var(--paper-2); }
.contact-card h3 { margin-bottom: 16px; font-size: 1.25rem; }
.contact-card > p { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; overflow-wrap: anywhere; }
.contact-card .field input, .contact-card .field select, .contact-card .field textarea { background: var(--paper); }
.contact-form .btn-primary { margin-top: 6px; }

/* ---------- Demo and Pricing (switched off in config.js; kept working) ---------- */
.sx { padding: 64px var(--m); }
.sx-head h2 { font-size: clamp(2rem, 1rem + 3vw, 3.5rem); }
.sx-head p { margin-top: 12px; max-width: 60ch; color: var(--soft); }
.demo-head h1, .pricing-head h1 { font-size: var(--step-head); }
.demo-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.demo-tab { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 0; background: var(--paper-2); cursor: pointer; text-align: left; }
.demo-tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.demo-tab small { display: block; font-size: 12px; opacity: 0.7; }
.demo-wrap { display: grid; grid-template-columns: 1fr 320px; gap: var(--gutter); }
.demo-frame { position: relative; height: 75vh; background: var(--ink); display: flex; flex-direction: column; }
.demo-side { display: grid; gap: 10px; align-content: start; }
.dl-card { display: flex; align-items: center; gap: 12px; padding: 12px; border: 0; background: var(--paper-2); text-align: left; cursor: pointer; }
.dl-t { flex: 1; display: grid; }
.dl-t small { color: var(--soft); font-size: 12px; }
.side-note { display: flex; gap: 8px; font-size: 13px; color: var(--soft); }
.cur-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.tax-note { color: var(--soft); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gutter); }
.plans-2 { margin-top: var(--gutter); }
.plan { position: relative; display: grid; gap: 12px; align-content: start; padding: 24px; background: var(--paper-2); }
.plan h3 { font-size: 1.6rem; }
.pl-top { display: flex; justify-content: space-between; gap: 8px; }
.pl-blurb, .pl-fine { color: var(--soft); font-size: var(--step-small); }
.price b { font: 900 2.4rem/1 var(--font-display); }
.price span { color: var(--soft); margin-left: 6px; }
.per s { color: var(--soft); margin-left: 6px; }
.save { padding: 2px 6px; background: var(--lime); font-size: 12px; font-weight: 500; }
.ribbon { position: absolute; top: -10px; right: 16px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; background: var(--ink); color: var(--lime); font-size: 12px; }
.feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: var(--step-small); }
.feats li { display: flex; gap: 8px; }
.feats li.no { color: var(--soft); }
.qty { display: flex; align-items: center; gap: 8px; }
.q-v { font: 900 1.4rem/1 var(--font-display); min-width: 2ch; text-align: center; }
.zap-layer { display: none; }
.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 160px 1fr 140px; gap: 12px; align-items: center; }
.bar-track { height: 14px; background: var(--paper-2); }
.bar-fill { display: block; height: 100%; width: var(--w); background: var(--ink); }
.calc-box { padding: 24px; background: var(--paper-2); }
.calc-row { display: grid; grid-template-columns: 150px 1fr 200px auto; gap: 12px; align-items: center; padding: 8px 0; }
.calc-row.best { background: var(--lime); }
.calc-track { height: 10px; background: var(--paper-3); }
.calc-track i { display: block; height: 100%; background: var(--ink); }
.faq { display: grid; gap: 6px; }
.faq-item { padding: 14px 16px; background: var(--paper-2); }
.faq-item summary { display: flex; justify-content: space-between; gap: 12px; cursor: pointer; font-weight: 500; list-style: none; }
.faq-item p { margin-top: 10px; color: var(--soft); }
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--gutter); }
.trust-item { display: flex; gap: 10px; }
.trust-item small { display: block; color: var(--soft); }
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin: 0 var(--m) 64px; background: var(--ink); color: var(--paper); }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.checkout { width: min(560px, 100%); position: relative; }
.co-x { position: absolute; top: 12px; right: 12px; }
.co-plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin: 14px 0; }
.co-plan, .co-opt { display: grid; gap: 2px; padding: 10px 12px; border: 0; background: var(--paper-2); text-align: left; cursor: pointer; }
.co-plan[aria-pressed="true"], .co-opt[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.co-renew { display: grid; gap: 6px; margin-bottom: 14px; }
.co-sum { display: grid; gap: 6px; margin: 14px 0; font-size: var(--step-small); }
.co-sum div, .co-total { display: flex; justify-content: space-between; gap: 12px; }
.co-total b { font: 900 1.6rem/1 var(--font-display); }
.co-pay { width: 100%; margin-top: 14px; }
.co-secure { display: flex; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--soft); }
.celebrate { text-align: center; }
.cel-ring { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 14px; background: var(--lime); }

/* ---------- tablet ---------- */
@media (max-width: 1080px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .files { flex-wrap: wrap; }
  .foot-cols, .places { grid-column: 1 / -1; }
  .admin-grid { grid-template-columns: 1fr; }
  .demo-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .site-nav { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .site-head.open .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; display: grid; gap: 4px; padding: 12px var(--m) 24px; background: var(--night);
    animation: sheet 260ms var(--ease-out);
  }
  .site-head.open .nv { padding: 12px 0; font: 900 1.6rem/1 var(--font-display); text-transform: uppercase; }
  .site-head.open .nv-g { width: 22px; height: 22px; }
  .auth { grid-template-columns: 1fr; min-height: 0; }
  .auth-hero { padding: 48px var(--m) 40px; gap: 24px; }
  .auth-card { padding: 40px var(--m) 64px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@keyframes sheet { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- phone ---------- */
@media (max-width: 720px) {
  :root { --header: 60px; }
  .head-cta { display: none; }
  .who { padding: 3px; }
  .who .wt, .who > svg, .nav-right .badge { display: none; }
  .features { display: none; }
  .page { padding: 28px var(--m) 72px; }
  .hello { margin-bottom: 20px; }
  .hello-side, .hello .toolbar { width: 100%; }
  .allowance { flex: 1; min-width: 0; }
  .kpis { gap: 8px; }
  .kpi { padding: 14px; }
  .gen-form, .row2 { grid-template-columns: 1fr; gap: 0; }
  .gen-actions .btn-lg { width: 100%; }
  .toolbar, .search { width: 100%; }
  .search input { width: 100%; }
  .vault thead { display: none; }
  .vault, .vault tbody, .vault tr, .vault td { display: block; width: 100%; }
  .vault tr { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; margin-bottom: 8px; padding: 12px; background: var(--paper-2); }
  .vault td { padding: 6px 0; background: transparent; }
  .vault td:nth-child(1), .vault td:nth-child(4), .vault td:nth-child(5), .vault td:nth-child(6) { grid-column: 1 / -1; }
  .vault td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 4px; font-size: 12px; font-weight: 500; color: var(--soft); }
  .vault td:nth-child(1)::before { display: none; }
  .vault tr.fresh { animation: fresh 2.4s ease; }
  .vault.reports tbody tr.running { background: var(--paper); }
  .an-band { grid-template-columns: 1fr; }
  .an-months { height: 180px; gap: 6px; }
  .an-table thead { display: none; }
  .an-table, .an-table tbody, .an-table tr, .an-table td { display: block; width: 100%; }
  .an-table tr { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 8px; padding: 12px; background: var(--paper-2); }
  .an-table td { padding: 4px 0; background: none; }
  .an-table td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 500; color: var(--soft); }
  .files, .acts { justify-content: flex-start; }
  .drawer { padding: 20px 16px 40px; }
  .fq-row { grid-template-columns: 1fr auto; grid-template-areas: "q q" "a a" "x x" "e e"; }
  .fq-end { min-height: 0; justify-content: space-between; }
  .grant { grid-template-columns: 1fr auto; }
  .g-bar { grid-column: 1 / -1; grid-row: 2; }
  .toasts { top: calc(var(--header) + 8px); right: 8px; width: calc(100vw - 16px); }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .bar-row, .calc-row { grid-template-columns: 1fr; }
}

/* ---------- the dark theme (one switch for the home page, the portal and Automation projects) ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #121a1f; --paper-2: #1a242b; --paper-3: #253038; --ice: #12313f;
  --ink: #eaf3f6; --soft: #a9bcc4; --red: #a8372f;
  --slab: #222c34; --btn-hover: #2f3a43; --row-hover: #212b33;
  --bevel: inset 0 1px 0 rgba(255, 255, 255, 0.09), inset 1px 0 0 rgba(255, 255, 255, 0.05), inset 0 -2px 0 rgba(0, 0, 0, 0.4), inset -1px 0 0 rgba(0, 0, 0, 0.25);
  --lift-shadow: 0 20px 34px -18px rgba(0, 0, 0, 0.75);
}
:root[data-theme="dark"] .in-vault { background: #0d1317; }
:root[data-theme="dark"] .vault.reports tbody tr.running::after { background: color-mix(in srgb, var(--lime) 8%, transparent); }
:root[data-theme="dark"] :is(.err, .field .req, .ucell[data-tone="full"] b) { color: var(--red-on-dark); }
:root[data-theme="dark"] :is(.btn-primary, .badge, .avatar, .alert-ok, .alert-warn, .kpi.live, .pill-ready, .pill-processing, .fx-xlsx, .type-tag.regen, .cn-lock, .regen-note,
  .out-of-credits, .dropzone.over, .otp-row.full .otp, .grad-text, .type-card .tick, .dz-tick, .v-tag, .menu .mbadge, .save, .an-out, .toast-ok .ti, .caps, .file-btn.got .got-tick, .plan-chip[data-metal]) {
  --ink: #0a0b0d; --soft: #4b4f55; --paper: #f4f4f1; --paper-2: #e8e8e2; --paper-3: #dcddd5;
  color: var(--ink);
}
:root[data-theme="dark"] .auth-hero .grad-text { color: var(--lime); }
:root[data-theme="dark"] .an-slide input { accent-color: var(--lime); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .rv:not(.in) { opacity: 1; transform: none; }
}
