/* Lariyo panels: super admin, client panel and the sign-in pages share this one system.
   Saral blue (#0062d6, deepened from #007bff so text and buttons pass AA) is the only accent; gradients are
   steps of that blue. Surfaces are glass (a translucent layer over softly coloured, slowly drifting blurred
   shapes) with a solid fallback. Text never sits on anything that drops body copy under 4.5:1: the shapes
   stay pale, and the muted ink is dark enough for the most tinted spot of the background. */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400 700; font-stretch: 85% 100%; font-display: swap;
  src: url("/fonts/plex-sans.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/plex-mono-500.woff2") format("woff2"); }

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("/fonts/inter-tight-latin.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("/fonts/jetbrains-mono-latin.woff2") format("woff2"); }

:root {
  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --surface-2: #EEF2F8;
  --line: #DDE3EE;
  --line-strong: #C5CEDD;
  --ink: #0A1633;
  --ink-2: #1E2A47;
  --ink-3: #5A6478;
  --brand: #2D6BFF;
  --brand-hover: #1F55E0;
  --link: #1F4FD1;   /* text links: a step deeper than the brand, 4.5:1 even on the most tinted spot of the background */
  --brand-tint: #E8EFFF;
  --brand-on: #FFFFFF;
  --ok: #3D6600;
  --ok-tint: #EEFBD6;
  --warn: #8f5000;
  --warn-tint: #fbf0de;
  --bad: #c0262d;
  --bad-tint: #fbe7e8;
  /* gradients: white text stays above 4.5:1 on every stop of --grad */
  --grad: linear-gradient(135deg,#1F4FD1 0%,#2D6BFF 100%);
  --grad-hover: linear-gradient(135deg,#14328F 0%,#1F4FD1 100%);
  --grad-mark: linear-gradient(140deg,#0A1633 10%,#2D6BFF 95%);
  --grad-wash: radial-gradient(120% 140% at 100% 0%, rgb(45 107 255 / .09), transparent 55%);
  /* glass: the card layer is nearly solid (text sits on it), the chrome layer is thinner and blurs what is behind */
  --card: rgb(255 255 255 / .9);
  --glass: rgb(255 255 255 / .68);
  --glass-solid: #ffffff;
  --glass-line: rgb(255 255 255 / .75);
  --blur: blur(18px) saturate(1.5);
  --blob-1: rgb(45 107 255 / .13);
  --blob-2: rgb(77 130 255 / .15);
  --blob-3: rgb(104 120 255 / .10);
  --focus: 0 0 0 3px rgb(45 107 255 / .28);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgb(10 22 51 / .05), 0 6px 20px -12px rgb(11 40 90 / .18);
  --shadow-lift: 0 2px 4px rgb(10 22 51 / .05), 0 16px 32px -16px rgb(0 70 160 / .32);
  --shadow-pop: 0 4px 10px rgb(10 22 51 / .08), 0 24px 48px -20px rgb(0 50 120 / .4);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --side-w: 252px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070D1F;
    --surface: #0C1530;
    --surface-2: #111C3B;
    --line: #1D2849;
    --line-strong: #2A3760;
    --ink: #F5F7FA;
    --ink-2: #C3CBDB;
    --ink-3: #A3ADC2;
    --brand: #4D82FF;
    --brand-hover: #7AA2FF;
    --link: #7AA2FF;
    --brand-tint: #14244F;
    --brand-on: #070D1F;
    --ok: #B6F23C;
    --ok-tint: #1C2A0A;
    --warn: #f0b155;
    --warn-tint: #2e220e;
    --bad: #ff8589;
    --bad-tint: #341518;
    --grad: linear-gradient(135deg, #5aa2ff 0%, #79b6ff 100%);
    --grad-hover: linear-gradient(135deg, #79b6ff 0%, #9ccaff 100%);
    --grad-mark: linear-gradient(140deg, #4a98ff 10%, #9ccaff 95%);
    --grad-wash: radial-gradient(120% 140% at 100% 0%, rgb(90 162 255 / .12), transparent 55%);
    --card: rgb(17 25 36 / .86);
    --glass: rgb(15 23 34 / .62);
    --glass-solid: #111924;
    --glass-line: rgb(255 255 255 / .07);
    --blob-1: rgb(45 107 255 / .30);
    --blob-2: rgb(40 120 230 / .20);
    --blob-3: rgb(96 90 230 / .16);
    --focus: 0 0 0 3px rgb(106 172 255 / .4);
    --shadow: 0 1px 0 rgb(255 255 255 / .03) inset, 0 8px 24px -14px rgb(0 0 0 / .6);
    --shadow-lift: 0 1px 0 rgb(255 255 255 / .05) inset, 0 18px 36px -16px rgb(0 0 0 / .75);
    --shadow-pop: 0 1px 0 rgb(255 255 255 / .06) inset, 0 28px 56px -20px rgb(0 0 0 / .85);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--line-strong) transparent; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
::selection { background: color-mix(in srgb, var(--brand) 24%, transparent); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: 26px; font-weight: 650; letter-spacing: -.02em; }
h2 { font-size: 17px; font-weight: 650; }
h3 { font-size: 15px; font-weight: 650; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: 13px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.ico { width: 18px; height: 18px; flex: none; display: block; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--surface); color: var(--brand); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 8px 12px; font-weight: 600; transition: top .15s var(--ease-out); }
.skip:focus { top: 12px; }

/* ── background: pale blurred shapes that drift slowly behind everything ───────────────── */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); pointer-events: none; }
.bg i { position: absolute; border-radius: 50%; filter: blur(72px); will-change: transform; animation: drift 46s ease-in-out infinite alternate; }
.bg i:nth-child(1) { width: 46vmax; height: 46vmax; left: -14vmax; top: -18vmax; background: var(--blob-1); }
.bg i:nth-child(2) { width: 38vmax; height: 38vmax; right: -12vmax; top: 18vh; background: var(--blob-2); animation-duration: 58s; animation-delay: -12s; }
.bg i:nth-child(3) { width: 34vmax; height: 34vmax; left: 28vw; bottom: -20vmax; background: var(--blob-3); animation-duration: 64s; animation-delay: -30s; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(6vmax, 4vmax, 0) scale(1.12); } }

/* glass: the thin layer for chrome (side menu, top bar, sign-in card, the tour). Solid where blur is not supported. */
.glass, .side, .mbar { background: var(--glass-solid); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .side, .mbar { background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
}

/* ── shell: side menu + page ───────────────────────────── */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.side { border-right: 1px solid var(--line); padding: 16px 12px 12px; position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; scrollbar-width: thin; }
.side-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px; color: var(--ink); font-weight: 650; font-size: 16px; letter-spacing: -.01em; border-radius: var(--radius-sm); }
.brand:hover { text-decoration: none; }
/* the mark: the same three stacked bars as the website and the favicon, filled with the blue gradient */
.brand-mark { width: 26px; height: 26px; flex: none; background: var(--grad-mark); -webkit-mask: url("/favicon.svg") center / contain no-repeat; mask: url("/favicon.svg") center / contain no-repeat; }
.brand small { display: block; font-size: 11.5px; font-weight: 500; color: var(--ink-3); letter-spacing: .01em; line-height: 1.3; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: 11.5px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .07em; padding: 0 10px 6px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--radius-sm); color: var(--ink-2); font-weight: 500; transition: background-color .15s ease, color .15s ease; }
.nav a > span:first-of-type { flex: 1; min-width: 0; }
.nav a .ico { color: var(--ink-3); transition: color .15s ease, transform .2s var(--ease-out); }
.nav a:hover { background: color-mix(in srgb, var(--brand) 8%, transparent); color: var(--ink); text-decoration: none; }
.nav a:hover .ico { color: var(--brand); }
.nav a:active .ico { transform: scale(.9); }
.nav a[aria-current="page"] { background: var(--brand-tint); color: var(--brand); font-weight: 600; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 16%, transparent); }
.nav a[aria-current="page"] .ico { color: var(--brand); }
.nav .count { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.side-foot { margin-top: auto; padding: 12px 10px 4px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3); display: grid; gap: 8px; }
.side-foot form { margin: 0; }
.side-foot .linkish { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); }
.side-foot .linkish:hover { color: var(--brand); text-decoration: none; }
.side-who { font-weight: 600; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid transparent; background: transparent; color: var(--ink-2); border-radius: var(--radius-sm); cursor: pointer; transition: background-color .15s ease, transform .16s var(--ease-out); }
.icon-btn:hover { background: color-mix(in srgb, var(--brand) 9%, transparent); color: var(--ink); }
.icon-btn:active { transform: scale(.94); }
.icon-btn .ico { width: 22px; height: 22px; }
.mbar, .side-close, .scrim { display: none; }
.main { padding: 30px 36px 72px; min-width: 0; }
.main:focus { outline: none; box-shadow: none; }
.wrap { max-width: 1180px; margin-inline: auto; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.head p { color: var(--ink-3); margin-top: 6px; max-width: 70ch; }
.crumb { font-size: 13px; color: var(--ink-3); margin-bottom: 6px; display: block; width: max-content; }
.crumb:hover { color: var(--brand); text-decoration: none; }

/* ── surfaces ──────────────────────────────────────────── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card.glass { background: var(--glass-solid); border-color: var(--glass-line); box-shadow: var(--shadow-pop); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .card.glass { background: var(--glass); } }
a.card, .card.stat { transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), border-color .2s ease; }
@media (hover: hover) {
  a.card:hover, .card.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: color-mix(in srgb, var(--brand) 26%, var(--line)); }
}
a.card:active { transform: translateY(0) scale(.99); }
.card-pad { padding: 20px 22px; }
.stack > * + * { margin-top: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.card-head p { color: var(--ink-3); font-size: 13.5px; margin-top: 2px; }
.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat { padding: 18px 20px; background-image: var(--grad-wash); }
.stat .label { color: var(--ink-3); font-size: 13px; font-weight: 500; }
.stat .value { font-size: 26px; font-weight: 650; margin-top: 6px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat .sub { color: var(--ink-3); font-size: 13px; margin-top: 2px; }

/* ── tables ────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; padding: 10px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr td { transition: background-color .12s ease; }
tbody tr:hover td { background: color-mix(in srgb, var(--brand) 5%, transparent); }
.card > .table-wrap:first-child, .card > .table-wrap:first-child table { border-radius: var(--radius) var(--radius) 0 0; }
.card > .table-wrap:first-child thead th:first-child { border-top-left-radius: var(--radius); }
.card > .table-wrap:first-child thead th:last-child { border-top-right-radius: var(--radius); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.row-title { font-weight: 600; color: var(--ink); }
.row-sub { font-size: 13px; color: var(--ink-3); margin-top: 1px; }
.empty { padding: 44px 22px; text-align: center; color: var(--ink-3); }
.empty h3 { color: var(--ink); margin-bottom: 6px; }
.empty .btn { margin-top: 14px; }

/* ── badges ────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge.plain::before { display: none; }
.badge.ok { background: var(--ok-tint); color: var(--ok); }
.badge.warn { background: var(--warn-tint); color: var(--warn); }
.badge.bad { background: var(--bad-tint); color: var(--bad); }
.badge.brand { background: var(--brand-tint); color: var(--brand); }

/* ── tabs ──────────────────────────────────────────────── */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 9px 12px; color: var(--ink-3); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }

/* ── forms ─────────────────────────────────────────────── */
.form { display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 12.5px; color: var(--ink-3); }
.req { color: var(--bad); margin-left: 2px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=tel], input[type=url], select, textarea {
  width: 100%; font: inherit; font-size: 14.5px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 9px 11px; min-height: 40px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
textarea.mono { font-family: var(--mono); font-size: 12.5px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--focus); }
input::placeholder, textarea::placeholder { color: var(--ink-3); opacity: .8; }
.check { display: flex; align-items: center; gap: 9px; font-weight: 500; color: var(--ink-2); }
.check input { width: 17px; height: 17px; accent-color: var(--brand); }
.secret-state { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-3); }
.section-title { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); font-weight: 650; padding-top: 6px; }
.inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inline > .field { flex: 1 1 160px; }
.code-input { font-family: var(--mono); font-size: 22px !important; letter-spacing: .35em; text-align: center; }

/* ── buttons ───────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: 14px; font-weight: 600; min-height: 38px; padding: 8px 15px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; white-space: nowrap; box-shadow: 0 1px 1px rgb(10 22 51 / .04); transition: background-color .15s ease, border-color .15s ease, box-shadow .2s var(--ease-out), transform .16s var(--ease-out); }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--grad); border-color: transparent; color: var(--brand-on); box-shadow: 0 1px 2px rgb(0 60 140 / .25), 0 8px 18px -10px rgb(0 88 196 / .7); }
.btn.primary:hover { background: var(--grad-hover); box-shadow: 0 1px 2px rgb(0 60 140 / .3), 0 12px 22px -10px rgb(0 88 196 / .8); }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.btn.danger:hover { background: var(--bad-tint); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink-2); box-shadow: none; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.sm { min-height: 32px; padding: 5px 11px; font-size: 13px; }
.btn.block { width: 100%; }
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.actions.end { justify-content: flex-end; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--link); cursor: pointer; font-weight: 500; border-radius: 4px; }
.linkish:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── notices ───────────────────────────────────────────── */
.note { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; border: 1px solid; }
.note.ok { background: var(--ok-tint); border-color: color-mix(in srgb, var(--ok) 30%, transparent); color: var(--ok); }
.note.bad { background: var(--bad-tint); border-color: color-mix(in srgb, var(--bad) 30%, transparent); color: var(--bad); }
.note.warn { background: var(--warn-tint); border-color: color-mix(in srgb, var(--warn) 30%, transparent); color: var(--warn); }
.note.info { background: var(--brand-tint); border-color: color-mix(in srgb, var(--brand) 25%, transparent); color: var(--ink-2); }
.note strong { color: inherit; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }

/* ── key/value lists ───────────────────────────────────── */
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 0; font-size: 14px; }
.kv dt { color: var(--ink-3); padding: 9px 0; border-bottom: 1px solid var(--line); }
.kv dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--line); word-break: break-word; }
.kv dt:last-of-type, .kv dd:last-of-type { border-bottom: 0; }
.secret-box { font-family: var(--mono); font-size: 12.5px; white-space: pre-wrap; word-break: break-all; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; max-height: 260px; overflow: auto; }

/* ── sign-in: see "sign-in pages" below ── */
.qr { display: grid; place-items: center; padding: 14px; background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--line); width: max-content; margin: 0 auto; }
.qr img { width: 184px; height: 184px; image-rendering: pixelated; display: block; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; font-family: var(--mono); font-size: 15px; }
.codes span { padding: 8px; text-align: center; background: var(--surface-2); border-radius: 6px; }

/* ── responsive ────────────────────────────────────────── */
@media (max-width: 1060px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .form-grid, .grid-2 { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
  .kv dt { border-bottom: 0; padding-bottom: 0; }
}
@media (max-width: 520px) { .grid-4 { gap: 12px; } .stat { padding: 14px 16px; } .stat .value { font-size: 21px; overflow-wrap: anywhere; } }
@media (max-width: 340px) { .grid-4 { grid-template-columns: 1fr; } }
.edit-grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
@media (max-width: 1060px) { .edit-grid { grid-template-columns: 1fr; } }

/* ── small utilities (the CSP forbids inline style attributes) ── */
.u-mt6 { margin-top: 6px; } .u-mt8 { margin-top: 8px; } .u-mt12 { margin-top: 12px; } .u-mt16 { margin-top: 16px; }
.u-mb4 { margin-bottom: 4px; } .u-mb10 { margin-bottom: 10px; } .u-mb16 { margin-bottom: 16px; }
.u-gap-sm-md { margin: 6px 0 12px; } .u-gap-sm-sm { margin: 6px 0 10px; } .u-gap-qr { margin: 10px 0 18px; }
.u-grow { flex: 1; min-width: 0; } .u-w92 { width: 92px; flex: none; } .u-nowrap { white-space: nowrap; }
.u-w110 { width: 110px; flex: none; } .u-w160 { width: 160px; flex: none; }
.u-center { text-align: center; } .u-short { min-height: 64px; } .u-pre { white-space: pre-wrap; }
.u-between { justify-content: space-between; } .u-plainlink { color: inherit; } .u-plainlink:hover { text-decoration: none; }

/* ── collapsible cards ── */
details.card > summary { list-style: none; cursor: pointer; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary.summary { border-bottom: 0; }
details.card[open] > summary.summary { border-bottom: 1px solid var(--line); }
details.card > summary.summary::after { content: "+"; font-size: 20px; color: var(--ink-3); font-weight: 400; }
details.card[open] > summary.summary::after { content: "−"; }
details.inline-menu > summary { list-style: none; display: inline-flex; }
details.inline-menu > summary::-webkit-details-marker { display: none; }

/* ── invoice paper (A4) ── */
.paper { background: #fff; color: #111827; border: 1px solid var(--line); border-radius: var(--radius); padding: 44px 48px; max-width: 860px; font-size: 14px; line-height: 1.5; position: relative; box-shadow: var(--shadow); }
.paper.is-void::after { content: "VOID"; position: absolute; inset: 40% 0 auto; text-align: center; font-size: 110px; font-weight: 800; color: rgb(192 38 45 / .14); transform: rotate(-18deg); pointer-events: none; }
.paper-head { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 22px; border-bottom: 2px solid #0062d6; }
.paper-seller { font-size: 20px; font-weight: 750; letter-spacing: -.01em; margin-bottom: 4px; }
.paper-small { font-size: 12.5px; color: #4b5563; }
.paper-title { text-align: right; }
.paper-doc { font-size: 22px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; color: #0062d6; margin-bottom: 10px; }
.paper-meta { display: grid; grid-template-columns: auto auto; gap: 2px 14px; margin: 0; font-size: 13px; justify-content: end; }
.paper-meta dt { color: #6b7280; } .paper-meta dd { margin: 0; font-weight: 600; text-align: right; }
.paper-buyer { padding: 20px 0; }
.paper-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #6b7280; margin-bottom: 4px; }
.paper-strong { font-weight: 700; font-size: 15.5px; }
.paper-lines { width: 100%; border-collapse: collapse; margin-top: 4px; }
.paper-lines th { background: #f3f6fa; color: #374151; font-size: 11.5px; padding: 9px 10px; border-bottom: 1px solid #d1d9e4; text-transform: uppercase; letter-spacing: .05em; }
.paper-lines td { padding: 10px; border-bottom: 1px solid #e5e9f0; vertical-align: top; }
.paper-lines .sn { width: 44px; } .paper-lines tbody tr:hover td { background: transparent; }
.paper-bottom { display: grid; grid-template-columns: 1fr 300px; gap: 28px; margin-top: 18px; }
.paper-totals { display: grid; grid-template-columns: 1fr auto; gap: 5px 16px; margin: 0; align-self: start; }
.paper-totals dt { color: #4b5563; } .paper-totals dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.paper-totals .grand { font-weight: 750; color: #111827; font-size: 15px; border-top: 1px solid #d1d9e4; padding-top: 6px; }
.paper-foot { margin-top: 34px; padding-top: 14px; border-top: 1px solid #e5e9f0; display: grid; gap: 4px; }
@media (max-width: 700px) { .paper { padding: 24px 18px; } .paper-head, .paper-bottom { display: grid; grid-template-columns: 1fr; } .paper-title { text-align: left; } .paper-meta { justify-content: start; } }
@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff; }
  .side, .mbar, .scrim, .bg, .skip, .tour, .no-print, .head { display: none !important; }
  .shell { display: block; } .main { padding: 0; } .wrap { max-width: none; }
  .paper { border: 0; box-shadow: none; padding: 0; max-width: none; border-radius: 0; }
  .paper-lines th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* grid columns must be allowed to shrink below their widest table (the table scrolls inside its card) */
.grid > * { min-width: 0; }

/* ── client panel ── */
.hello { font-size: 30px; font-weight: 650; letter-spacing: -.025em; }
.steps { display: grid; gap: 10px; counter-reset: step; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.steps li::before { content: counter(step); width: 26px; height: 26px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.codeblock { position: relative; font-family: var(--mono); font-size: 12.5px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; white-space: pre-wrap; word-break: break-all; margin-top: 8px; }
.key-once { font-family: var(--mono); font-size: 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--ok-tint); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); word-break: break-all; }
.value-lg { font-size: 30px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .small-value { font-size: 15px; display: flex; gap: 6px; padding-top: 6px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; border-top: 1px solid var(--line); }
.media-item { margin: 0; display: grid; gap: 6px; align-content: start; }
.media-item img, .media-file { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); }
.media-file { display: grid; place-items: center; font-weight: 700; color: var(--ink-3); }
.media-item figcaption { display: grid; gap: 1px; word-break: break-word; }
.thread .msg.from-saral { border-left: 3px solid var(--brand); }
.log-box { max-height: 70vh; font-size: 12px; line-height: 1.5; }

/* ── intake: signup, checkout by QR, proofs, checklist ─────────────────────────────────── */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pay-qrs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.pay-qr { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; text-align: center; background: var(--surface); }
.pay-qr img { width: 100%; max-width: 260px; height: auto; border-radius: 6px; background: #fff; display: block; margin: 0 auto 8px; }
.pay-amount { display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: baseline; }
.pay-amount .value-lg { margin: 0; }
.proof-img { max-width: 100%; max-height: 78vh; border: 1px solid var(--line); border-radius: var(--radius-sm); display: block; background: #fff; }
.proof-thumb { width: 54px; height: 54px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); display: block; }
/* checklist: see "setup card" below */
.dns-table td.mono, .dns-table .mono { word-break: break-all; }
.u-hidden { display: none; }

/* ── Lariyo AI: the task's progress lines ───────────────────────────────────────────────── */
.ai-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ai-msg { display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 9px 12px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; }
.ai-msg .ai-when { color: var(--ink-3); font-size: 12px; padding-top: 2px; font-variant-numeric: tabular-nums; }
.ai-msg .ai-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.ai-msg.client { background: var(--brand-tint); border-color: color-mix(in srgb, var(--brand) 25%, transparent); }
.ai-msg.step { background: transparent; border-color: transparent; padding-top: 2px; padding-bottom: 2px; color: var(--ink-2); }
.ai-msg.question { background: var(--warn-tint); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.ai-msg.done { background: var(--ok-tint); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.ai-msg.failed { background: var(--bad-tint); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
/* task chat: whoever writes sits on the right, Lariyo AI on the left, newest at the bottom */
.ai-chat .ai-msg { grid-template-columns: 1fr; gap: 2px; max-width: 92%; justify-self: start; }
.ai-chat .ai-msg .ai-when { order: 2; padding-top: 0; }
.ai-chat .ai-msg .ai-who { order: 1; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.ai-chat .ai-msg .ai-body { order: 3; }
.ai-chat .ai-msg.mine { justify-self: end; background: var(--brand-tint); border-color: color-mix(in srgb, var(--brand) 25%, transparent); }
.ai-chat .ai-msg.theirs { background: var(--surface); border-color: var(--line); }
.ai-chat .ai-msg.step .ai-who, .ai-chat .ai-msg.status .ai-who { display: none; }
.ai-chat .ai-msg.step { max-width: 100%; }
.ai-compose { border-top: 1px solid var(--line); padding-top: 14px; }
.ai-compose textarea { min-height: 76px; }
.plain-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; }

/* Settings → Servers: the ports a provider firewall must let in */
.fw-list { margin: 6px 0 4px; padding-left: 18px; display: grid; gap: 4px; max-width: 520px; }
.fw-list .mono { font-size: 12px; }

/* ── the menu on small screens: a top bar and a slide-in drawer ────────────────────────────
   Without script (.js is set in <head>) the menu simply sits above the page, every link reachable. */
@media (max-width: 899.98px) {
  .shell { display: block; }
  .mbar { display: flex; align-items: center; gap: 6px; position: sticky; top: 0; z-index: 20; padding: 8px 12px; border-bottom: 1px solid var(--line); }
  .mbar .brand { flex: 1; min-width: 0; }
  .mbar .icon-btn { display: none; }
  .side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .side-top .brand { display: none; }
  .main { padding: 22px 16px 56px; }
  .js .mbar .icon-btn { display: grid; }
  .js .side { position: fixed; inset: 0 auto 0 0; z-index: 40; width: min(304px, 86vw); height: 100dvh; border-right: 1px solid var(--line); border-bottom: 0; box-shadow: var(--shadow-pop);
    background: var(--glass-solid); -webkit-backdrop-filter: none; backdrop-filter: none; transform: translateX(-104%); visibility: hidden; transition: transform .3s var(--ease-drawer), visibility 0s linear .3s; }
  .js .side-top .brand { display: flex; }
  .js .side-close { display: grid; }
  .js .nav-open .side { transform: none; visibility: visible; transition: transform .3s var(--ease-drawer), visibility 0s; }
  .js .scrim { display: block; position: fixed; inset: 0; z-index: 30; background: rgb(8 16 30 / .45); opacity: 0; transition: opacity .25s ease; }
  .js .nav-open .scrim { opacity: 1; }
  .nav a { padding: 10px; }
}
@media print { .shell { display: block; } .main { padding: 0; } .wrap { max-width: none; } }

/* ── sign-in pages: the form on glass, beside it how Lariyo works ───────────────── */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 500px); gap: 64px; justify-content: center; align-items: center; padding: 32px 24px; }
.auth-card { width: 100%; animation: rise .32s var(--ease-out) backwards; }
.auth-card .brand { justify-content: center; margin-bottom: 18px; font-size: 19px; padding: 0; }
.auth-card .brand-mark { width: 30px; height: 30px; }
.auth-card .card-pad { padding: 28px 28px 26px; }
.auth-card h1 { font-size: 22px; text-align: center; }
.auth-card .lede { text-align: center; color: var(--ink-3); margin: 6px 0 20px; font-size: 14px; }
.auth-show { align-self: start; position: sticky; top: max(32px, calc(50dvh - 280px)); animation: rise .4s var(--ease-out) .08s backwards; }
.show { border: 1px solid var(--glass-line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); }
.show-title { font-size: 24px; font-weight: 650; letter-spacing: -.02em; max-width: 16ch; }
.show-stage { position: relative; height: 212px; margin: 22px 0 20px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(90% 120% at 0% 0%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 60%), radial-gradient(80% 110% at 100% 100%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 60%), var(--surface); }
.show-scene { position: absolute; inset: 0; display: grid; align-content: center; padding: 20px 22px; opacity: 0; animation: scene 9s linear infinite backwards; }
.show-scene.s2 { animation-delay: 3s; } .show-scene.s3 { animation-delay: 6s; }
@keyframes scene { 0% { opacity: 0; transform: translateY(8px); } 3.5%, 30% { opacity: 1; transform: none; } 33.3%, 100% { opacity: 0; transform: translateY(-6px); } }
.bubble { max-width: 84%; padding: 10px 14px; border-radius: 16px; font-size: 14px; font-weight: 500; line-height: 1.35; }
.bubble.me { justify-self: end; background: var(--grad); color: var(--brand-on); border-bottom-right-radius: 5px; box-shadow: 0 10px 20px -12px rgb(0 88 196 / .7); }
.bubble.ai { justify-self: start; margin-top: 12px; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 5px; animation: pop 9s var(--ease-out) infinite backwards; }
.type { display: block; white-space: nowrap; overflow: hidden; text-overflow: clip; animation: typing 9s steps(34, end) infinite backwards; }
@keyframes typing { 0%, 3% { clip-path: inset(0 100% 0 0); } 16%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes pop { 0%, 17% { opacity: 0; transform: scale(.92); } 20%, 100% { opacity: 1; transform: none; } }
.dots { display: flex; gap: 5px; padding: 4px 2px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: dot 1s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: none; opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
.mock { position: relative; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow-lift); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--surface-2); min-height: 30px; }
.mock-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.mock-url { margin-left: 8px; flex: 1; min-width: 0; font: 500 11px/1 var(--mono); color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; }
.blk { display: block; border-radius: 6px; background: var(--surface-2); height: 26px; transform-origin: 50% 100%; }
.blk.b1 { grid-column: 1 / -1; height: 46px; background: var(--grad-mark); opacity: .9; }
.blk.b5 { grid-column: 1 / 3; height: 10px; }
.s2 .blk { animation: build 9s var(--ease-out) infinite backwards; }
.s2 .b1 { animation-delay: 3.25s; } .s2 .b2 { animation-delay: 3.6s; } .s2 .b3 { animation-delay: 3.85s; } .s2 .b4 { animation-delay: 4.1s; } .s2 .b5 { animation-delay: 4.45s; }
@keyframes build { 0% { opacity: 0; transform: translateY(8px) scale(.94); } 3.5%, 100% { opacity: 1; transform: none; } }
.live-pill { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 8px; border-radius: 999px; background: var(--ok); color: #fff; font-size: 12.5px; font-weight: 650; box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--ok) 80%, transparent); animation: live 9s var(--ease-out) 6s infinite backwards; }
.live-pill .ico { width: 15px; height: 15px; }
@keyframes live { 0%, 7% { opacity: 0; transform: scale(.9) translateY(4px); } 10.5%, 100% { opacity: 1; transform: none; } }
.show-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.show-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 12px; animation: step 9s linear infinite backwards; }
.show-steps li.st2 { animation-delay: 3s; } .show-steps li.st3 { animation-delay: 6s; }
@keyframes step { 0% { background-color: transparent; } 3.5%, 30% { background-color: color-mix(in srgb, var(--brand) 10%, transparent); } 33.3%, 100% { background-color: transparent; } }
.show-steps .ico { width: 34px; height: 34px; padding: 8px; border-radius: 10px; color: var(--brand); background: var(--brand-tint); }
.show-steps strong { display: block; font-size: 14.5px; font-weight: 650; }
.show-steps span { display: block; font-size: 13.5px; color: var(--ink-3); }
@media (prefers-color-scheme: dark) { .live-pill { color: #04180f; } }
@media (max-width: 899.98px) {
  .auth { grid-template-columns: minmax(0, 440px); gap: 24px; align-items: start; padding: 28px 16px 40px; }
  .auth-show { position: static; }
  .show { padding: 20px; border-radius: 18px; }
  .show-title { font-size: 19px; max-width: none; }
  .show-stage { height: 190px; margin: 16px 0 14px; }
  .auth-card .card-pad { padding: 22px 20px; }
}

/* ── setup card: the checklist with its progress ──────────────────────────────────────── */
.setup-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.setup-count { font: 650 13px/1 var(--font); font-variant-numeric: tabular-nums; color: var(--brand); background: var(--brand-tint); padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.setup-bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 14px 0 4px; box-shadow: inset 0 0 0 1px var(--line); }
.setup-fill { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--grad-mark); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); animation: fill .6s var(--ease-out) .15s backwards; }
.setup-fill.s0 { --p: 0; } .setup-fill.s1 { --p: .1667; } .setup-fill.s2 { --p: .3333; } .setup-fill.s3 { --p: .5; } .setup-fill.s4 { --p: .6667; } .setup-fill.s5 { --p: .8333; } .setup-fill.s6 { --p: 1; }
@keyframes fill { from { transform: scaleX(0); } }
.checklist { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.checklist > li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.checklist > li:first-child { border-top: 0; padding-top: 0; }
.checklist .tick { position: relative; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; font-size: 0; color: transparent; }
.checklist .done .tick { background: var(--ok); border-color: var(--ok); animation: tick .3s var(--ease-out) backwards; }
.checklist .tick::after { position: absolute; inset: 0; margin: auto; }
.checklist .done .tick::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1.5px) rotate(-45deg); }
.checklist > li:nth-child(2) .tick { animation-delay: .06s; } .checklist > li:nth-child(3) .tick { animation-delay: .12s; } .checklist > li:nth-child(4) .tick { animation-delay: .18s; }
.checklist > li:nth-child(5) .tick { animation-delay: .24s; } .checklist > li:nth-child(6) .tick { animation-delay: .3s; }
@keyframes tick { from { opacity: 0; transform: scale(.6); } }
.checklist .now .tick { border-color: var(--brand); }
.checklist .now .tick::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.checklist .now .tick::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--brand); animation: ring 2s var(--ease-out) infinite; }
@keyframes ring { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(1.9); } }
.checklist .done strong { color: var(--ink-2); }
.checklist ol { margin: 6px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); }
@media (prefers-color-scheme: dark) { .checklist .done .tick::after { border-color: #04180f; } }

/* ── empty states with a hint of what comes next: three bars stack up (the mark), the button nudges ── */
.empty.hint::before { content: ""; display: block; width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 14px; background-color: var(--brand-tint);
  background-image: linear-gradient(var(--brand), var(--brand)), linear-gradient(var(--brand), var(--brand)), linear-gradient(var(--brand), var(--brand));
  background-repeat: no-repeat; background-position: 12px 13px, 12px 23px, 12px 33px; background-size: 28px 6px, 20px 6px, 12px 6px; animation: stack 3.2s var(--ease-out) infinite; }
@keyframes stack {
  0% { background-size: 0 6px, 0 6px, 0 6px; }
  18% { background-size: 28px 6px, 0 6px, 0 6px; }
  34% { background-size: 28px 6px, 20px 6px, 0 6px; }
  50%, 88% { background-size: 28px 6px, 20px 6px, 12px 6px; opacity: 1; }
  100% { background-size: 28px 6px, 20px 6px, 12px 6px; opacity: .35; }
}
.empty.hint .btn::after { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("/assets/panel/arrow.svg") center / contain no-repeat; mask: url("/assets/panel/arrow.svg") center / contain no-repeat; animation: nudge 1.8s var(--ease-out) infinite; }
@keyframes nudge { 0%, 55%, 100% { transform: none; } 75% { transform: translateX(4px); } }

/* ── the first-visit tour (js/tour.js): a small card that points at menu items ─────────── */
.tour { position: fixed; z-index: 60; width: min(320px, calc(100vw - 24px)); padding: 16px 16px 14px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line)); box-shadow: var(--shadow-pop);
  opacity: 0; transform: translateY(6px) scale(.97); transition: opacity .2s var(--ease-out), transform .2s var(--ease-out), left .25s var(--ease-out), top .25s var(--ease-out); }
.tour.glass { background: var(--surface); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .tour.glass { background: color-mix(in srgb, var(--surface) 86%, transparent); } }
.tour.is-on { opacity: 1; transform: none; }
.tour-step { font-size: 12px; font-weight: 600; color: var(--brand); font-variant-numeric: tabular-nums; }
.tour h2 { font-size: 16px; margin-top: 4px; }
.tour p { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.tour-actions { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.tour-actions .u-grow { flex: 1; }
.tour-dots { display: flex; gap: 5px; margin-top: 12px; }
.tour-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); transition: background-color .2s ease, transform .2s var(--ease-out); }
.tour-dots i.on { background: var(--brand); transform: scale(1.3); }
.nav a.tour-target { background: var(--brand-tint); color: var(--brand); box-shadow: 0 0 0 2px var(--brand), 0 0 0 7px color-mix(in srgb, var(--brand) 18%, transparent); animation: target 1.6s ease-in-out infinite; }
.nav a.tour-target .ico { color: var(--brand); }
@keyframes target { 50% { box-shadow: 0 0 0 2px var(--brand), 0 0 0 11px color-mix(in srgb, var(--brand) 6%, transparent); } }
.side-tour[hidden] { display: none !important; }

/* ── motion: the page rises in once; nothing here blocks a click ──────────────────────── */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.wrap > * { animation: rise .3s var(--ease-out) backwards; }
.wrap > :nth-child(2) { animation-delay: .04s; } .wrap > :nth-child(3) { animation-delay: .08s; } .wrap > :nth-child(4) { animation-delay: .12s; } .wrap > :nth-child(n+5) { animation-delay: .16s; }
.note { animation: rise .25s var(--ease-out) backwards; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  /* the how-it-works loop stands still on its last picture: the site, live */
  .show-scene.s3 { opacity: 1; }
  .checklist .now .tick::before { display: none; }
  .tour { opacity: 1; transform: none; }
}
@media print { *, *::before, *::after { animation: none !important; } }

/* ── small fits ── */
.badge.role-tag { background: var(--brand-tint); color: var(--brand); font-size: 12px; letter-spacing: 0; align-self: center; flex: none; }
.card-pad > h2 + .ai-log, .card-pad > h2 + .ai-chat { margin-top: 14px; }
/* on a phone a table with several headed columns scrolls sideways inside its card instead of crushing its text */
@media (max-width: 640px) { .table-wrap > table:has(thead th + th + th) { min-width: 560px; } .table-wrap td:first-child { min-width: 132px; } }
/* the spacing utilities again, last, so they win over a component's own margin (a list's "margin: 0") */
.u-mt6 { margin-top: 6px; } .u-mt8 { margin-top: 8px; } .u-mt12 { margin-top: 12px; } .u-mt16 { margin-top: 16px; }
.u-mb4 { margin-bottom: 4px; } .u-mb10 { margin-bottom: 10px; } .u-mb16 { margin-bottom: 16px; }

/* ── usage (phase 6): server-drawn SVG bar charts and limit meters ─────────────────────── */
.u-chart { display: block; width: 100%; height: auto; }
.u-bar { fill: var(--brand); opacity: .85; }
.u-bar:hover { opacity: 1; }
.u-axis { fill: var(--ink-3); font-size: 11px; }
.u-axis-line { stroke: var(--line); stroke-width: 1; }
.u-meter { display: block; width: 100%; height: 8px; margin-top: 10px; accent-color: var(--brand); }
.u-meter.warn { accent-color: var(--warn); }
.u-meter.bad { accent-color: var(--bad); }

/* Lariyo brand (Brand Guidelines v1.0, Dec 2026): Inter Tight headings, the Lift logo on the sign-in pages */
h1, h2, h3 { font-family: "Inter Tight", var(--font); font-weight: 600; letter-spacing: -.02em; }
.brand-logo { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 8px; }
.brand-logo .lariyo-logo { display: block; height: 26px; width: auto; }
.lariyo-logo .lg-ink { fill: #0A1633; }
.lariyo-logo .lg-lift { fill: #2D6BFF; }
@media (prefers-color-scheme: dark) { .lariyo-logo .lg-ink { fill: #F5F7FA; } .lariyo-logo .lg-lift { fill: #4D82FF; } }
@media (max-width: 640px) { .brand-logo .lariyo-logo { height: 24px; } }
.prewrap { white-space: pre-wrap; }
.msg-list { list-style: none; margin: 0; padding: 8px 20px 18px; display: grid; gap: 8px; }
.client-notice { margin-bottom: 16px; }
.client-notice .notice-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
