/* FarmTrack website. Tokens come from the Android app (ui/theme/Color.kt, Type.kt). No inline styles anywhere: the CSP only allows this file. */

@font-face { font-family: "Nunito"; font-weight: 200 1000; font-style: normal; font-display: swap; src: url("/assets/fonts/nunito_variable.ttf") format("truetype"); }

:root {
  --bg: #F6F7F4; --surface: #FFFFFF; --text: #16201A; --muted: #5B6A5F;
  --primary: #315C3A; --onprimary: #FFFFFF; --onsoft: #315C3A; --soft: #DCEBDD; --line: #DDE3DC; --outline: #C9D2C8;
  --tan: #A27645; --tanink: #845D33; --warn: #8A5A00; --warnsoft: #FBEFD2; --err: #9B2C2C; --errsoft: #F6E1E1; --info: #2C4E5C; --infosoft: #D5E8EF;
  --primary-hover: #26492E; --sage: #6F8F58; --well: #F0F4EE; --glow: #DCEBDD;
  --shadow-float: 0 8px 24px -4px rgba(22, 32, 26, 0.06); --shadow-hover: 0 12px 32px -6px rgba(22, 32, 26, 0.09);
  --band-from: #1E4A2A; --band-to: #315C3A;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111827; --surface: #1F2937; --text: #F1F5F9; --muted: #AEB8C6;
    --primary: #22C55E; --onprimary: #052E16; --onsoft: #86EFAC; --soft: #14532D; --line: #374151; --outline: #6B7280;
    --tan: #F59E0B; --tanink: #F59E0B; --warn: #FCD34D; --warnsoft: rgba(245, 158, 11, 0.22); --err: #F87171; --errsoft: #7F1D1D; --info: #93C5FD; --infosoft: rgba(59, 130, 246, 0.24);
    --primary-hover: #16A34A; --sage: #14B8A6; --well: #182131; --glow: #14532D;
    --shadow-float: 0 8px 24px rgba(0, 0, 0, 0.45); --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.5);
    --band-from: #14532D; --band-to: #0F3D22;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.7 "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; }
img, svg { max-width: 100%; }
h1, h2, h3, .display { font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-weight: 800; letter-spacing: 0; line-height: 1.22; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--primary); color: var(--onprimary); padding: 10px 16px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 8px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.key { font-weight: 700; }
.mail { color: var(--primary); font-weight: 600; }
.todo { background: var(--warnsoft); color: var(--warn); border-radius: 6px; padding: 0 6px; font-weight: 600; }

/* Layout */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; margin: 0 auto; padding: 48px 24px 72px; display: flex; flex-direction: column; gap: 36px; }
.stack { display: flex; flex-direction: column; }
.gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-10 { gap: 10px; } .gap-12 { gap: 12px; } .gap-14 { gap: 14px; } .gap-16 { gap: 16px; } .gap-18 { gap: 18px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.row-20 { display: flex; flex-wrap: wrap; gap: 20px; }
.row-center { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
.section { padding-top: 64px; padding-bottom: 64px; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.t-lead { font-size: 17px; color: var(--muted); line-height: 1.7; }
.h1 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.15; }
.h2 { font-size: clamp(24px, 2.8vw, 32px); }
.h2s { font-size: 22px; }
.h3 { font-size: 18px; font-weight: 700; }

/* Header and footer */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--surface); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(10px)) { .site-header { background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); } }
.site-header .wrap, .site-header .wrap-wide { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo { width: 38px; height: 38px; border-radius: 10px; overflow: hidden; flex: none; display: block; }
.brand-name { font-family: "Nunito", sans-serif; font-weight: 800; font-size: 22px; }
.badge { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; padding: 0 12px; border-radius: 999px; font-weight: 700; font-size: 13px; background: var(--soft); color: var(--onsoft); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; margin-left: auto; }
.navlink { text-decoration: none; color: var(--muted); font-weight: 700; font-size: 15px; padding: 12px 4px; }
.navlink:hover, .navlink[aria-current] { color: var(--primary); }
.navlink[aria-current] { font-weight: 700; }
.site-footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 16px; }
.foot { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; padding-top: 40px; padding-bottom: 12px; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 0 36px; }
.foot-col { display: flex; flex-direction: column; }
.footlink { text-decoration: none; color: var(--muted); font-size: 15px; padding: 10px 0; display: inline-block; }
.footlink:hover { color: var(--primary); text-decoration: underline; }
.copy { font-size: 14px; color: var(--muted); padding-bottom: 28px; }

/* Buttons and chips */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 10px; font: 700 15px/1 "Nunito", sans-serif; transition: background-color .15s, border-color .15s, color .15s, transform .15s; text-decoration: none; border: 0; cursor: pointer; text-align: center; }
.btn-sm { min-height: 40px; }
.btn-primary { background: var(--primary); color: var(--onprimary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn:active { transform: scale(0.98); }
.btn-ghost { border: 1.5px solid var(--outline); color: var(--text); background: var(--surface); }
.btn-ghost:hover { background: var(--soft); color: var(--onsoft); border-color: var(--sage); }
.btn-light { background: #FFFFFF; color: #194425; }
.btn-light:hover { background: #DCEBDD; }
.btn-outline-light { border: 1.5px solid #FFFFFF; color: #FFFFFF; }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; background: var(--soft); font-weight: 600; font-size: 15px; }
.pill { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.pill-green { background: var(--soft); color: var(--onsoft); }
.pill-line { border: 1px solid var(--outline); color: var(--muted); font-weight: 600; }
.protag { font: 700 12px "Nunito", sans-serif; color: var(--onsoft); background: var(--soft); border-radius: 999px; padding: 3px 10px; margin-left: 6px; vertical-align: 3px; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.card-pad { padding: 24px; }
.card-pad-l { padding: 28px; }
.card-link { flex: 1 1 320px; text-decoration: none; display: flex; flex-direction: column; gap: 14px; padding: 24px; }
.card-link { transition: border-color .15s, box-shadow .15s, transform .15s; position: relative; }
.card-link:hover { border-color: var(--sage); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card-link::after { content: "\2192"; position: absolute; right: 22px; bottom: 18px; color: var(--primary); font-weight: 700; opacity: 0; transition: opacity .15s; }
.card-link:hover::after { opacity: 1; }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.num-tag { font: 800 13px "Nunito", sans-serif; color: var(--muted); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.ico { width: 44px; height: 44px; border-radius: 12px; background: var(--soft); display: flex; align-items: center; justify-content: center; color: var(--primary); flex: none; }
.card-text { color: var(--muted); font-size: 15px; line-height: 1.65; }

/* Landing */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 44px; padding-top: 56px; padding-bottom: 48px; }
.hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-text .t-lead { max-width: 520px; }
.hero-art { flex: 1 1 420px; min-width: 0; }
.art { border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: #B7D8B9; aspect-ratio: 3 / 2; }
.art svg { width: 100%; height: 100%; display: block; }
.small { font-size: 15px; color: var(--muted); }
.kicker { font-size: 18px; color: var(--muted); font-weight: 500; font-family: "Nunito", sans-serif; }
.chart { display: flex; align-items: flex-end; gap: 14px; height: 200px; border-bottom: 1px solid var(--line); padding: 0 4px; }
.chart-col { flex: 1 1 0; min-width: 0; display: flex; align-items: flex-end; justify-content: center; gap: 4px; height: 172px; margin-bottom: 8px; }
.bar { width: 16px; border-radius: 5px 5px 0 0; }
.bar-in { background: var(--primary); } .bar-ex { background: var(--tan); }
.i1 { height: 96px; } .i2 { height: 110px; } .i3 { height: 102px; } .i4 { height: 128px; } .i5 { height: 120px; } .i6 { height: 148px; }
.e1 { height: 74px; } .e2 { height: 80px; } .e3 { height: 88px; } .e4 { height: 92px; } .e5 { height: 86px; } .e6 { height: 98px; }
.chart-labels { display: flex; gap: 14px; padding: 0 4px; font-size: 13px; color: var(--muted); }
.chart-labels span { flex: 1 1 0; text-align: center; }
.legend { display: inline-flex; gap: 16px; font-size: 14px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.stat { font-family: "Nunito", sans-serif; font-weight: 800; font-size: 34px; line-height: 1.1; color: var(--primary); font-variant-numeric: tabular-nums; }
.stat small { font-size: 18px; color: var(--muted); font-weight: 500; }
.plan-free { background: var(--bg); }
.plan-pro { border: 2px solid var(--primary); box-shadow: var(--shadow-float); }
.ticks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ticks li { display: flex; gap: 10px; }
.ticks li::before { content: "\2713"; color: var(--primary); font-weight: 700; }
.pillar { padding: 28px; flex: 1 1 280px; display: flex; flex-direction: column; gap: 12px; }
.status-band { background: linear-gradient(135deg, var(--band-from), var(--band-to)); color: #FFFFFF; border-radius: 24px; padding: 36px 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
.status-band p { opacity: 0.92; }

/* Landing redesign: hero band, preview card, tiles */
.hero-band { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-band::before { content: ""; position: absolute; left: 50%; top: -260px; width: 1300px; height: 620px; margin-left: -650px; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent); opacity: 0.7; pointer-events: none; }
.hero-band .hero { position: relative; }
.hero-badge { align-self: flex-start; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 5px 14px; border-radius: 999px; background: var(--soft); color: var(--onsoft); font-weight: 700; font-size: 13px; }
.hero-badge .pip { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); display: inline-block; }
.hero-badge .sep { opacity: 0.5; }
.accent { color: var(--tanink); display: block; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--muted); }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-float); }
.card-art { aspect-ratio: 16 / 6; background: #B7D8B9; overflow: hidden; }
.card-art svg { width: 100%; height: 100%; display: block; }
.hc-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 16px; }
.hc-name { font: 800 18px "Nunito", sans-serif; }
.hc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hc-stats > div { background: var(--well); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hc-stats .lab { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.hc-stats .val { font: 800 20px "Nunito", sans-serif; color: var(--primary); font-variant-numeric: tabular-nums; }
.hc-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hc-list li { display: flex; align-items: center; gap: 12px; background: var(--well); border-radius: 12px; padding: 10px 12px; }
.hc-list .grow { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; font-size: 15px; }
.hc-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--surface); display: flex; align-items: center; justify-content: center; flex: none; }
.hc-ico svg { width: 22px; height: 22px; }
.pill-err { background: var(--errsoft); color: var(--err); }
.pill-warn { background: var(--warnsoft); color: var(--warn); }
@media (prefers-color-scheme: dark) { .pill-err { color: #FECACA; } .pill-warn { color: #FCD34D; } }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--onsoft); }
.sec-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.tiles { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.tile { background: var(--well); border: 1px solid transparent; border-radius: 16px; padding: 20px 12px 18px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; transition: border-color .15s, box-shadow .15s; }
.tile:hover { border-color: var(--sage); box-shadow: var(--shadow-hover); }
.tile .small { font-size: 13px; line-height: 1.35; }
.t-ico { width: 60px; height: 60px; border-radius: 16px; background: var(--surface); display: flex; align-items: center; justify-content: center; margin-bottom: 8px; border: 1px solid var(--line); }
.t-ico svg { width: 36px; height: 36px; }
@media (max-width: 520px) { .hero-band::before { top: -300px; } .hc-stats .val { font-size: 19px; } }

/* Manual: calm reading layout */
.manual { display: flex; flex-wrap: wrap; gap: 40px 48px; align-items: flex-start; padding-top: 28px; padding-bottom: 64px; }
.m-side { flex: 0 0 240px; max-width: 100%; position: sticky; top: 84px; align-self: flex-start; max-height: calc(100vh - 100px); overflow-y: auto; }
.m-main { flex: 1 1 520px; min-width: 0; max-width: 680px; display: flex; flex-direction: column; gap: 22px; }
.m-toc { flex: 0 0 180px; position: sticky; top: 84px; align-self: flex-start; display: flex; flex-direction: column; gap: 2px; }
.m-toc .label { font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; padding-bottom: 8px; }
.m-toc a { display: block; padding: 5px 0 5px 12px; text-decoration: none; color: var(--muted); font-size: 14px; border-left: 2px solid var(--line); }
.m-toc a:hover { color: var(--primary); border-left-color: var(--primary); }
.m-menu-btn { display: none; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-weight: 700; cursor: pointer; }
.m-menu-now { font-weight: 600; font-size: 14px; color: var(--muted); }
.m-menu-btn::after { content: "\25BE"; color: var(--muted); }
.m-nav { display: flex; flex-direction: column; gap: 14px; }
.side-list { display: flex; flex-direction: column; gap: 2px; }
.side-list a, .side-list span { display: flex; align-items: center; min-height: 38px; padding: 0 12px; border-radius: 10px; text-decoration: none; font-size: 15px; font-weight: 600; color: var(--muted); }
.side-list a:hover { background: var(--well); color: var(--text); }
.side-list a.on { background: var(--soft); color: var(--onsoft); font-weight: 800; }
.side-list .soon { color: var(--muted); opacity: 0.7; }
.side-item { display: flex; flex-direction: column; }
.side-sub { display: flex; flex-direction: column; margin: 2px 0 8px 18px; padding-left: 6px; border-left: 2px solid var(--line); }
.side-sub a { min-height: 34px; font-size: 14px; font-weight: 500; border-radius: 8px; }
.side-sub a[aria-current] { color: var(--primary); font-weight: 800; background: transparent; }
.worker { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 14px; font-weight: 700; cursor: pointer; color: var(--muted); }
.worker input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--outline); flex: none; transition: background-color .15s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); transition: transform .15s; }
.worker input:checked ~ .sw { background: var(--primary); }
.worker input:checked ~ .sw::after { transform: translateX(16px); }
.worker input:focus-visible ~ .sw { outline: 3px solid var(--primary); outline-offset: 2px; }
.pn { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 8px; }
.pn a { flex: 1 1 240px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 12px 16px; text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.pn a:hover { border-color: var(--sage); }
.pn .next { text-align: right; }
.pn small { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.step { display: flex; gap: 14px; align-items: flex-start; padding: 2px 0; }
.num { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--soft); color: var(--onsoft); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; margin-top: 2px; }
.m-all-head { align-items: center; }
.m-sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; align-items: start; }
.m-sec { padding: 0; }
.m-sec > summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; position: relative; padding-right: 44px; }
.m-sec > summary::-webkit-details-marker { display: none; }
.m-sec > summary::after { content: "+"; position: absolute; right: 18px; top: 16px; font-size: 22px; font-weight: 700; color: var(--primary); line-height: 1; }
.m-sec[open] > summary::after { content: "\2212"; }
.m-sec-name { font-weight: 800; font-size: 17px; }
.m-sec-blurb { font-size: 14px; color: var(--muted); line-height: 1.5; }
.m-sec-count { font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--onsoft); margin-top: 4px; }
.m-sec:hover { border-color: var(--sage); }
.m-sec[open] { border-color: var(--sage); }
.m-links { list-style: none; padding: 0 20px 16px; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.m-links a { display: block; padding: 9px 0; text-decoration: none; font-size: 15px; font-weight: 600; border-bottom: 1px solid var(--line); }
.m-links li:last-child a { border-bottom: 0; }
.m-links a:hover { color: var(--primary); }
.m-live { }
.m-sec:not(.m-live) { padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; opacity: 0.75; }
.m-sec:not(.m-live) .m-sec-name { color: var(--muted); }
@media (max-width: 860px) {
  .manual { gap: 16px; padding-top: 16px; }
  .m-side { position: static; flex: 1 1 100%; max-height: none; overflow: visible; }
  .m-menu-btn { display: flex; }
  .m-nav { display: none; padding-top: 12px; }
  #m-menu:checked ~ .m-nav { display: flex; }
  #m-menu:focus-visible ~ .m-menu-btn { outline: 3px solid var(--primary); outline-offset: 2px; }
  .m-toc { display: none; }
}
@media (max-width: 1180px) { .m-toc { display: none; } }

/* Steps */

/* Tables and lists */
.tablebox { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
th { text-align: left; padding: 10px 12px; border-bottom: 2px solid var(--line); }
td { padding: 14px 12px; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--muted); }
td:first-child, th:first-child { padding-left: 0; }
td.k { color: var(--text); font-weight: 600; }
.bullets { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.callout { border-radius: 16px; padding: 20px 24px; display: flex; flex-direction: column; gap: 8px; }
.callout-warn { background: var(--warnsoft); } .callout-warn .callout-title { color: var(--warn); }
.callout-info { background: var(--infosoft); } .callout-info .callout-title { color: var(--info); }
.callout-green { background: var(--soft); } .callout-green .callout-title { color: var(--onsoft); }
.callout-title { font-weight: 700; }
.toc-pills { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; }
.toc-pills a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--soft); text-decoration: none; font-size: 14px; font-weight: 600; }
.toc-pills a:hover { background: var(--primary); color: var(--onprimary); }
.sec { scroll-margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }

/* Manual */
.manual:has(#worker:checked) .owner-only { display: none; }
.crumbs { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.kinds { display: flex; flex-direction: column; gap: 16px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--outline); font-weight: 600; font-size: 15px; cursor: pointer; }
.tab:hover { background: var(--soft); }
.panel { display: none; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; flex-direction: column; gap: 8px; }
#k-pigs:checked ~ .tabs .t-pigs, #k-goats:checked ~ .tabs .t-goats, #k-cattle:checked ~ .tabs .t-cattle, #k-chickens:checked ~ .tabs .t-chickens, #k-tilapia:checked ~ .tabs .t-tilapia { background: var(--primary); color: var(--onprimary); border-color: var(--primary); }
#k-pigs:checked ~ .p-pigs, #k-goats:checked ~ .p-goats, #k-cattle:checked ~ .p-cattle, #k-chickens:checked ~ .p-chickens, #k-tilapia:checked ~ .p-tilapia { display: flex; }
#k-pigs:focus-visible ~ .tabs .t-pigs, #k-goats:focus-visible ~ .tabs .t-goats, #k-cattle:focus-visible ~ .tabs .t-cattle, #k-chickens:focus-visible ~ .tabs .t-chickens, #k-tilapia:focus-visible ~ .tabs .t-tilapia { outline: 3px solid var(--primary); outline-offset: 2px; }

/* Install page */
.install { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.i-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.seg-wrap { align-self: flex-start; display: inline-flex; gap: 4px; padding: 4px; border-radius: 16px; background: var(--soft); }
.seg { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; font-weight: 600; font-size: 16px; cursor: pointer; border-radius: 12px; }
#m-scan:checked ~ .seg-wrap .seg-scan, #m-phone:checked ~ .seg-wrap .seg-phone { background: var(--primary); color: var(--onprimary); }
#m-scan:focus-visible ~ .seg-wrap .seg-scan, #m-phone:focus-visible ~ .seg-wrap .seg-phone { outline: 3px solid var(--primary); outline-offset: 2px; }
.txt-phone, .play-card { display: none; }
.install:has(#m-phone:checked) .txt-scan, .install:has(#m-phone:checked) .qr-card { display: none; }
.install:has(#m-phone:checked) .txt-phone { display: block; }
.install:has(#m-phone:checked) .play-card { display: flex; }
.stage { flex: 1 1 420px; min-width: 0; display: flex; justify-content: center; }
.stage-in { position: relative; width: 430px; max-width: 100%; height: 640px; }
.phone { position: absolute; left: 0; top: 0; width: 290px; height: 610px; border-radius: 46px; background: #16201A; padding: 11px; box-shadow: 0 24px 48px rgba(22, 32, 26, 0.22); }
.screen { width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #F6F7F4; position: relative; display: flex; flex-direction: column; color: #16201A; }
.notch { position: absolute; top: 10px; left: 50%; margin-left: -34px; width: 68px; height: 18px; border-radius: 999px; background: #16201A; z-index: 2; }
.screen svg.hero-svg { width: 100%; height: 150px; display: block; flex: none; }
.s-body { padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.s-brand { display: flex; align-items: center; gap: 10px; }
.s-logo { width: 36px; height: 36px; border-radius: 10px; overflow: hidden; flex: none; }
.s-title { font-family: "Nunito", sans-serif; font-weight: 700; font-size: 18px; line-height: 1.1; display: block; }
.s-tag { font-size: 10px; color: #5B6A5F; display: block; }
.s-h { font-family: "Nunito", sans-serif; font-weight: 700; font-size: 22px; margin-top: 4px; }
.s-sub { font-size: 11px; color: #5B6A5F; line-height: 1.4; }
.fld { height: 46px; border: 1.5px solid #C9D2C8; border-radius: 12px; background: #F6F7F4; display: flex; align-items: center; padding: 0 14px; color: #5B6A5F; font-size: 14px; }
.s-link { font-size: 12px; font-weight: 700; color: #315C3A; }
.s-link.right { align-self: flex-end; }
.s-link.mid { text-align: center; }
.s-btn { height: 40px; border-radius: 999px; background: #DDE3DC; color: #4A5A4E; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; margin-top: auto; }
.qr-card { position: absolute; right: 0; bottom: 18px; width: 208px; background: #FFFFFF; color: #16201A; border-radius: 22px; padding: 16px 16px 14px; box-shadow: 0 16px 36px rgba(22, 32, 26, 0.24); border: 1px solid #DDE3DC; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.qr-card svg { width: 168px; height: 168px; }
.qr-card strong { font-size: 14px; }
.play-card { position: absolute; right: 0; bottom: 18px; width: 220px; background: var(--surface); border-radius: 22px; padding: 18px; box-shadow: 0 16px 36px rgba(22, 32, 26, 0.24); border: 1px solid var(--line); flex-direction: column; gap: 10px; }
.paths { flex: 1 1 440px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.paths-b { flex: 1 1 340px; padding: 32px; display: flex; flex-direction: column; gap: 16px; background: var(--soft); border-color: transparent; }

/* Small helpers */
.narrow-text { max-width: 640px; }
.row-between { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; }
.align-stretch { align-items: stretch; }
.chart-card { flex: 2 1 520px; min-width: 0; max-width: 100%; position: relative; overflow: hidden; }
.stat-col { flex: 1 1 260px; }
.grow { flex: 1; }
.grow-text { flex: 1 1 420px; }
.plan { flex: 1 1 360px; padding: 28px; }
.plan-h { font-size: 22px; }
.status-wrap { padding-bottom: 80px; }
.foot-brand { max-width: 320px; }
.chips-row { margin-top: 16px; }
section#animals { padding-top: 56px; padding-bottom: 64px; }
.flat { flex: 1 1 240px; }
.right { text-align: right; }
.badge-start { align-self: flex-start; }
.lead-18 { font-size: 18px; }
.install-main { padding-top: 56px; padding-bottom: 80px; }
.qr-card img { width: 168px; height: 168px; display: block; }
.play-h { font-size: 16px; }
.sec.gap-10 { gap: 10px; } .sec.gap-16 { gap: 16px; } .sec.gap-20 { gap: 20px; }
.h1.art-h1 { font-size: clamp(28px, 3.4vw, 36px); }
.art-h2 { font-size: 21px; }
.crumb-now { color: var(--text); }
.helpful { align-items: center; gap: 12px 16px; }
.foot-s { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 36px; padding-top: 32px; padding-bottom: 32px; }
.m-intro { max-width: 720px; }
.start-card { flex: 1 1 280px; max-width: none; }
.err { color: var(--err); }
.warn-btn { border-color: var(--warn); color: var(--warn); }
.h3s { font-size: 20px; }
.faq-q { margin: 0; font: 700 17px/1.4 "Nunito", sans-serif; }
.callout-big { font-size: 21px; color: var(--primary); }
.bullets-8 { gap: 8px; }
table.wide { min-width: 560px; }
.err-page { text-align: center; align-items: center; }
.manual-home:has(#worker:checked) .owner-only { display: none; }
figure.shot { margin: 0; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
figure.shot img { width: min(100%, 270px); height: auto; border: 1px solid var(--line); border-radius: 20px; display: block; }
figure.shot figcaption { font-size: 14px; color: var(--muted); max-width: 270px; }
[hidden] { display: none !important; }
.input { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--outline); background: var(--surface); color: var(--text); font: 400 16px/1.4 "Nunito", sans-serif; }
.input:focus-visible { outline: 3px solid var(--primary); outline-offset: 1px; }
textarea.input { padding: 12px 14px; }
.pill-warn { background: var(--warnsoft); color: var(--warn); }
.seg-wrap { max-width: 100%; }
@media (max-width: 520px) {
  .seg-wrap { align-self: stretch; }
  .seg { flex: 1 1 0; justify-content: center; padding: 0 10px; font-size: 15px; text-align: center; }
  .status-band { padding: 32px 24px; }
  .card-pad-l, .paths, .paths-b, .plan { padding: 24px; }
}

/* Print: manual articles print cleanly */
@media print {
  .site-header, .site-footer, .m-side, .m-toc, .tabs, .pn, .worker { display: none !important; }
  .panel { display: flex !important; }
  body { background: #fff; color: #000; }
}

/* Admin sign-in */
.adm-body { min-height: 100vh; display: flex; flex-direction: column; }
.adm-body .adm-main { flex: 1 0 auto; width: 100%; padding-top: 40px; padding-bottom: 56px; background-image: radial-gradient(var(--line) 1.4px, transparent 1.4px); background-size: 28px 28px; background-position: 14px 14px; }
.adm-restricted { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--muted); }
.adm-pub { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 800; }
.adm-foot-l { display: inline-flex; align-items: center; gap: 8px; }
.adm-body .site-footer .foot-cols { align-items: center; gap: 0 28px; }
.adm-body .site-footer .foot-cols .small { padding: 0; }
.adm-solo { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.adm-solo[hidden], .adm-split[hidden], .adm-app[hidden] { display: none; }
.adm-card { padding: 36px; box-shadow: var(--shadow-float); border-radius: 24px; }
.adm-card #view-login { display: flex; flex-direction: column; gap: 24px; }
.adm-tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--soft); color: var(--onsoft); font-weight: 800; font-size: 13px; }
.adm-h1 { font-size: clamp(26px, 3.4vw, 32px); }
.adm-notice { display: flex; gap: 14px; align-items: flex-start; background: var(--well); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; color: var(--muted); }
.adm-notice > svg { flex: none; margin-top: 2px; color: var(--primary); }
.adm-notice strong { display: block; color: var(--text); font-size: 15px; margin-bottom: 2px; }
.adm-notice p { font-size: 14px; line-height: 1.55; }
.adm-form { display: flex; flex-direction: column; gap: 18px; }
.adm-field { display: flex; flex-direction: column; gap: 6px; }
.adm-label { font-weight: 800; font-size: 14px; }
.adm-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.adm-link { background: none; border: 0; padding: 4px 0; font: 800 14px "Nunito", sans-serif; color: var(--primary); cursor: pointer; }
.adm-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.adm-icon-field { position: relative; display: block; }
.adm-icon-field > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.adm-icon-field .input { padding-left: 44px; min-height: 50px; border-radius: 12px; }
.adm-pw .input { padding-right: 76px; }
.adm-show { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--primary); font: 800 14px "Nunito", sans-serif; cursor: pointer; }
.adm-show:hover { background: var(--soft); }
.adm-note { min-height: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.adm-note:empty { display: none; }
.adm-note.err { color: var(--err); font-weight: 700; }
.adm-note.ok { color: var(--onsoft); font-weight: 700; }
.adm-go { width: 100%; min-height: 52px; gap: 10px; font-size: 16px; border-radius: 12px; }
.adm-go:disabled { opacity: 0.6; cursor: default; }
.adm-help { text-align: center; border-top: 1px solid var(--line); padding-top: 18px; line-height: 1.7; }
.adm-facts3 { list-style: none; padding: 0; margin-top: 4px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.adm-facts3 li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.adm-f3-h { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.adm-f3-i { color: var(--primary); display: inline-flex; }
.adm-f3-i svg { width: 18px; height: 18px; }
.adm-facts3 strong { font-size: 15px; line-height: 1.3; }
.adm-facts3 .small { font-size: 13px; line-height: 1.4; }
@media (max-width: 560px) { .adm-card { padding: 26px 20px; border-radius: 20px; } .adm-facts3 { grid-template-columns: 1fr; } .adm-restricted { display: none; } }

/* Admin console: app shell */
.adm-in .site-header, .adm-in .site-footer { display: none; }
.adm-in .adm-main { max-width: none; padding: 0; background-image: none; }
.adm-in .adm-main.wrap-wide { max-width: none; padding: 0; }
.adm-app { display: flex; min-height: 100vh; background: var(--bg); }
.adm-app[hidden], .adm-split[hidden] { display: none; }
.adm-side { flex: 0 0 248px; background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.adm-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 4px 8px 12px; }
.adm-brand .logo { width: 38px; height: 38px; }
.adm-brand strong { display: block; font-weight: 800; font-size: 18px; line-height: 1.1; }
.adm-brand small { color: var(--muted); font-weight: 700; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.adm-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.adm-nav-h { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 14px 12px 6px; }
.adm-nav-h:first-child { padding-top: 0; }
.adm-nav-i { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: 10px; text-decoration: none; font-weight: 700; font-size: 15px; color: var(--muted); }
.adm-nav-i svg { flex: none; }
.adm-nav-i.on { background: var(--soft); color: var(--onsoft); box-shadow: inset 3px 0 0 var(--primary); border-radius: 4px 10px 10px 4px; }
.adm-nav-i.soon { opacity: 0.6; cursor: default; }
.adm-nav-i em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; background: var(--well); color: var(--muted); border-radius: 999px; padding: 2px 8px; }
.adm-back { font-size: 14px; font-weight: 700; color: var(--muted); text-decoration: none; padding: 10px 12px; border-top: 1px solid var(--line); }
.adm-back:hover { color: var(--primary); }
.adm-content { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.adm-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 32px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.adm-crumbs { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.adm-crumbs strong { color: var(--text); }
.adm-me { display: flex; align-items: center; gap: 12px; }
.adm-me-t { display: flex; flex-direction: column; line-height: 1.25; text-align: right; min-width: 0; }
.adm-me-t strong { font-size: 14px; overflow-wrap: anywhere; }
.adm-me-t small { color: var(--muted); font-size: 12px; font-weight: 700; }
.adm-me .btn { gap: 8px; }
.adm-page { padding: 28px 32px 48px; display: flex; flex-direction: column; gap: 24px; width: 100%; max-width: 1180px; }
.adm-title { display: flex; flex-direction: column; gap: 6px; }
.adm-h1 { font-size: clamp(26px, 3vw, 32px); }
.adm-av { flex: none; width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 800 14px "Nunito", sans-serif; letter-spacing: 0.02em; }
.adm-av-l { width: 52px; height: 52px; font-size: 18px; }
.av-0 { background: #DCEBDD; color: #194425; } .av-1 { background: #F3DEC5; color: #5B3A12; } .av-2 { background: #D5E8EF; color: #1F4252; } .av-3 { background: #E4E3F4; color: #38356E; }
.av-me { width: 36px; height: 36px; background: var(--primary); color: var(--onprimary); }
@media (prefers-color-scheme: dark) { .av-0 { background: #14532D; color: #BBF7D0; } .av-1 { background: #78350F; color: #FDE68A; } .av-2 { background: #1E3A8A; color: #BFDBFE; } .av-3 { background: #3B2F7A; color: #DDD6FE; } }
.adm-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.adm-tile { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; }
.adm-ti { position: absolute; right: 16px; top: 16px; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.t-green { background: var(--soft); color: var(--onsoft); } .t-teal { background: #D5EFEA; color: #0F5A52; } .t-tan { background: #F3DEC5; color: #6B4A1F; } .t-grey { background: var(--well); color: var(--muted); }
@media (prefers-color-scheme: dark) { .t-teal { background: #134E4A; color: #99F6E4; } .t-tan { background: #78350F; color: #FDE68A; } }
.adm-tile .lab { font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); max-width: calc(100% - 48px); }
.adm-tile .val { font: 800 32px "Nunito", sans-serif; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1.2; }
.adm-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.adm-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.adm-search { flex: 1 1 260px; position: relative; display: block; }
.adm-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.adm-search input { width: 100%; min-height: 42px; padding: 0 14px 0 40px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--well); color: var(--text); font: 400 15px "Nunito", sans-serif; }
.adm-search input:focus-visible { outline: 3px solid var(--primary); outline-offset: 1px; background: var(--surface); }
.adm-chips { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.adm-chip { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1.5px solid transparent; background: var(--well); color: var(--muted); font: 800 14px "Nunito", sans-serif; cursor: pointer; }
.adm-chip:hover { color: var(--text); }
.adm-chip.on { background: var(--soft); color: var(--onsoft); border-color: var(--sage); }
.adm-icon-btn { width: 42px; height: 42px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.adm-icon-btn:hover { color: var(--primary); border-color: var(--sage); }
.adm-note:empty { display: none; }
.adm-panel > .adm-note { padding: 12px 20px 0; }
.adm-head, .adm-open { display: grid; grid-template-columns: minmax(200px, 2.4fr) 110px minmax(100px, 1fr) 120px 120px 20px; align-items: center; gap: 12px; padding: 0 20px; }
.adm-head { min-height: 40px; background: var(--well); border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }
.adm-list { display: flex; flex-direction: column; }
.adm-item + .adm-item { border-top: 1px solid var(--line); }
.adm-open { width: 100%; min-height: 68px; background: transparent; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.adm-open:hover { background: var(--well); }
.adm-open:focus-visible { outline: 3px solid var(--primary); outline-offset: -3px; }
.adm-who-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.adm-id { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.adm-email { overflow-wrap: anywhere; font-weight: 800; font-size: 15px; }
.adm-cell { min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--muted); }
.adm-type { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: 14px; color: var(--text); }
.adm-type::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }
.adm-type.k-worker::before { background: #14B8A6; } .adm-type.k-superadmin::before { background: var(--tan); } .adm-type.k-applicant::before, .adm-type.k-orphan::before { background: #9AA3AF; }
.adm-plan { align-self: flex-start; font-weight: 800; font-size: 13px; border-radius: 999px; padding: 2px 10px; }
.adm-plan.is-pro { background: #F3DEC5; color: #5B3A12; } .adm-plan.is-free { background: var(--well); color: var(--muted); }
@media (prefers-color-scheme: dark) { .adm-plan.is-pro { background: #78350F; color: #FDE68A; } }
.adm-plan-cell small { font-size: 12px; text-transform: capitalize; }
.adm-dash { color: var(--muted); }
.adm-chev { color: var(--muted); font-size: 22px; line-height: 1; text-align: right; }
.adm-open:hover .adm-chev { color: var(--primary); }
.adm-empty { padding: 40px 20px; text-align: center; }
@media (max-width: 960px) {
  .adm-app { flex-direction: column; }
  .adm-content { flex: 1 1 auto; }
  .adm-side { flex: none; width: 100%; height: auto; position: sticky; top: 0; z-index: 6; flex-direction: row; align-items: center; gap: 8px; padding: 8px 12px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .adm-brand { padding: 0 8px 0 0; } .adm-brand span:last-child { display: none; }
  .adm-nav { flex-direction: row; gap: 6px; flex: 0 0 auto; }
  .adm-nav-h, .adm-nav-i.soon, .adm-back { display: none; }
  button.adm-nav-i { width: auto; white-space: nowrap; min-height: 40px; }
  .adm-bar { position: static; }
  .adm-bar { padding: 12px 16px; }
  .adm-me-t { display: none; }
  .adm-page { padding: 20px 16px 40px; }
  .adm-head { display: none; }
  .adm-chev { display: none; }
}
.adm-dialog { position: fixed; inset: 0 0 0 auto; margin: 0 0 0 auto; width: min(460px, 100vw); height: 100vh; max-height: none; padding: 0; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: var(--surface); color: var(--text); box-shadow: var(--shadow-float); overflow-y: auto; }
.adm-dialog::backdrop { background: rgba(11, 15, 23, 0.55); backdrop-filter: blur(2px); }
.adm-dlg { padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.adm-dlg-head { display: flex; align-items: center; gap: 14px; }
.adm-dlg-t { flex: 1; min-width: 0; }
.adm-x { flex: none; width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; }
.adm-x:hover { background: var(--well); color: var(--text); }
.adm-dl { display: grid; grid-template-columns: 110px 1fr; gap: 0; margin: 0; font-size: 15px; background: var(--well); border-radius: 14px; padding: 6px 16px; }
.adm-dl dt, .adm-dl dd { padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.adm-dl dt:nth-last-of-type(1), .adm-dl dd:last-of-type { border-bottom: 0; }
.adm-dl dt { color: var(--muted); font-weight: 700; }
.adm-dl dd { overflow-wrap: anywhere; font-weight: 600; }
.adm-dlg-actions { display: flex; flex-direction: column; gap: 10px; }
.adm-dlg-actions .btn { width: 100%; }
.adm-del { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--line); padding-top: 18px; }
.adm-warn { background: var(--errsoft); color: var(--err); border-radius: 12px; padding: 12px 14px; font-weight: 700; font-size: 14px; line-height: 1.55; }
@media (prefers-color-scheme: dark) { .adm-warn { color: #FECACA; } }
.btn-danger { background: #9B2C2C; color: #FFFFFF; }
.btn-danger:hover { background: #7F1D1D; }
.btn-danger:disabled { opacity: 0.6; cursor: default; }
@media (prefers-color-scheme: dark) { .btn-danger { background: #F87171; color: #450A0A; } .btn-danger:hover { background: #EF4444; } }
.adm-pill { align-self: flex-start; }
.adm-page[hidden] { display: none; }
button.adm-nav-i { width: 100%; border: 0; background: transparent; font-family: inherit; text-align: left; cursor: pointer; }
button.adm-nav-i:hover { background: var(--well); color: var(--text); }
button.adm-nav-i.on { background: var(--soft); color: var(--onsoft); box-shadow: inset 3px 0 0 var(--primary); border-radius: 4px 10px 10px 4px; }
button.adm-nav-i:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.t-red { background: var(--errsoft); color: var(--err); }
@media (prefers-color-scheme: dark) { .t-red { color: #FECACA; } }
.adm-head-s, .adm-open-s { grid-template-columns: minmax(200px, 2.2fr) 80px minmax(130px, 1fr) minmax(130px, 1fr) minmax(110px, 1fr) 20px; }
.adm-open-s { display: grid; align-items: center; gap: 12px; padding: 0 20px; width: 100%; min-height: 68px; background: transparent; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.adm-open-s:hover { background: var(--well); }
.adm-open-s:focus-visible { outline: 3px solid var(--primary); outline-offset: -3px; }
.adm-src { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: 14px; color: var(--text); }
.adm-src::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9AA3AF; }
.adm-src.s-play::before { background: #14B8A6; } .adm-src.s-grant::before { background: var(--tan); }
.adm-st { align-self: flex-start; font-weight: 800; font-size: 13px; border-radius: 999px; padding: 2px 10px; background: var(--well); color: var(--muted); }
.adm-st.ok { background: var(--soft); color: var(--onsoft); } .adm-st.warn { background: var(--warnsoft); color: var(--warn); } .adm-st.bad { background: var(--errsoft); color: var(--err); }
@media (prefers-color-scheme: dark) { .adm-st.warn { color: #FCD34D; } .adm-st.bad { color: #FECACA; } }
.adm-hint { font-size: 14px; color: var(--muted); line-height: 1.55; }
@media (max-width: 960px) {
}
@media (max-width: 1179px) {
  .adm-head { display: none; }
  .adm-open, .adm-open-s { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 14px 18px; min-height: 0; }
  .adm-open .adm-who-cell, .adm-open-s .adm-who-cell { flex: 1 1 100%; }
  .adm-open .adm-cell, .adm-open-s .adm-cell { flex: 0 0 auto; flex-direction: row; align-items: center; gap: 8px; padding-left: 50px; }
  .adm-open .adm-cell + .adm-cell, .adm-open-s .adm-cell + .adm-cell { padding-left: 0; }
  .adm-open .adm-cell[data-label]::before, .adm-open-s .adm-cell[data-label]::before { content: attr(data-label); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
  .adm-chev { display: none; }
}
.adm-sub { font-size: 13px; font-weight: 700; color: var(--onsoft); }
.adm-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 760px) { .adm-grid2 { grid-template-columns: minmax(0, 1fr); } }
.adm-card2 { padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.adm-ch { font-size: 18px; }
.adm-chart { margin-top: 10px; min-width: 0; }
.adm-chart svg { display: block; width: 100%; height: auto; }
.ch-bar { fill: var(--primary); } .ch-bar-t { fill: #14B8A6; } .ch-bar-a { fill: var(--tan); } .ch-bar-g { fill: var(--outline); }
.ch-lab { fill: var(--muted); font: 700 12px "Nunito", sans-serif; }
.ch-val { fill: var(--text); font: 800 13px "Nunito", sans-serif; }
.ch-axis { stroke: var(--line); stroke-width: 1; }
.adm-legend { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; margin-top: 6px; }
.adm-legend li { display: inline-flex; align-items: center; gap: 8px; }
.adm-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.i-p { background: var(--primary); } .i-t { background: #14B8A6; } .i-a { background: var(--tan); } .i-g { background: var(--outline); }
.adm-fair { display: flex; align-items: baseline; gap: 12px; margin-top: 8px; }
.adm-fair .val { font: 800 40px "Nunito", sans-serif; color: var(--text); font-variant-numeric: tabular-nums; }
.adm-table { min-width: 680px; font-size: 14px; }
.adm-table th { font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--well); }
.adm-table td { padding: 12px; border-bottom: 1px solid var(--line); color: var(--text); }
.adm-table td:first-child, .adm-table th:first-child { padding-left: 12px; }
.adm-table .num-c { text-align: right; font-variant-numeric: tabular-nums; }
.adm-table tr:last-child td { border-bottom: 0; }
.adm-flag { display: inline-block; border-radius: 999px; padding: 2px 10px; font-weight: 800; font-size: 13px; background: var(--well); color: var(--muted); }
.adm-flag.on { background: var(--warnsoft); color: var(--warn); }
@media (prefers-color-scheme: dark) { .adm-flag.on { color: #FCD34D; } }
.adm-tiles-6 { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 1360px) { .adm-tiles-6 { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 520px) { .adm-tiles-6 { grid-template-columns: repeat(2, 1fr); } }
.rb-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 32px; align-items: center; gap: 10px; min-height: 34px; }
.rb-l { font-size: 14px; font-weight: 700; color: var(--muted); }
.rb-track { display: block; min-width: 0; }
.rb-svg { display: block; }
.rb-v { font-size: 14px; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.adm-chart svg text { font-size: 12px; }
.adm-audit { min-width: 720px; }
.adm-audit td { vertical-align: top; }
.adm-audit .when { white-space: nowrap; color: var(--muted); }
.adm-audit .what { font-weight: 800; }
.adm-audit .det { color: var(--muted); max-width: 360px; overflow-wrap: anywhere; }
.adm-act { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; }
.adm-act::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }
.adm-act.g-accounts::before { background: var(--err); } .adm-act.g-plans::before { background: var(--tan); } .adm-act.g-self::before { background: #9AA3AF; }

/* System health */
.adm-banner { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--soft); color: var(--onsoft); }
.adm-banner > div { flex: 1 1 auto; min-width: 0; }
.adm-banner strong { font: 800 18px "Nunito", sans-serif; display: block; }
.adm-banner p { margin: 2px 0 0; }
.adm-banner-i { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--primary); color: var(--onprimary); }
.adm-banner.warn { background: var(--warnsoft); color: var(--warn); border-color: transparent; }
.adm-banner.warn .adm-banner-i { background: var(--tan); color: #fff; }
@media (prefers-color-scheme: dark) { .adm-banner.warn { color: #FCD34D; } }
.adm-checks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1279px) { .adm-checks { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .adm-checks { grid-template-columns: 1fr; } }
.adm-banner.ok .i-warn, .adm-banner.warn .i-ok { display: none; }
.adm-check { background: var(--well); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.adm-check h3 { margin: 0; font: 800 15px "Nunito", sans-serif; color: var(--muted); }
.adm-check .hd { font: 800 20px "Nunito", sans-serif; color: var(--text); line-height: 1.25; }
.adm-check p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.adm-check .when { font-size: 13px; color: var(--muted); margin-top: auto; }
.adm-st { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 2px 10px; font: 800 13px "Nunito", sans-serif; background: var(--soft); color: var(--onsoft); }
.adm-st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.adm-st.warn { background: var(--warnsoft); color: var(--warn); } .adm-st.warn::before { background: var(--tan); }
.adm-st.info { background: var(--infosoft); color: var(--info); } .adm-st.info::before { background: #60A5FA; }
@media (prefers-color-scheme: dark) { .adm-st.warn { color: #FCD34D; } .adm-st.info { color: #93C5FD; } }
.adm-attn { min-width: 720px; }
.adm-attn td { vertical-align: top; }
.adm-foot-note { padding: 0 4px; }

/* Plans and limits */
.adm-limits { min-width: 720px; }
.adm-limits td { vertical-align: top; }
.adm-limits .lim { font-weight: 800; }
.adm-limits .lim small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; line-height: 1.4; max-width: 340px; }
.adm-limits .now { font: 800 18px "Nunito", sans-serif; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.adm-limits .src { color: var(--muted); font-size: 14px; max-width: 300px; }
.adm-feats { list-style: none; margin: 0; padding: 4px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.adm-feats li { background: var(--well); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.adm-feats strong { display: block; font: 800 15px "Nunito", sans-serif; color: var(--text); }
.adm-feats span { font-size: 14px; line-height: 1.5; color: var(--muted); }

/* Settings */
.adm-checks-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1279px) { .adm-checks-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .adm-checks-3 { grid-template-columns: 1fr; } }
.adm-admins { min-width: 560px; }
.adm-kv { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.adm-kv > div { background: var(--well); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; min-width: 0; }
.adm-kv dt { font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.adm-kv dd { margin: 4px 0 0; font: 800 16px "Nunito", sans-serif; color: var(--text); overflow-wrap: anywhere; }

/* Two-step sign-in */
.adm-steps { margin: 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.5; color: var(--text); }
.adm-actions { padding: 12px 0 0; }
.adm-key { margin: 6px 0 14px; padding: 14px 16px; border-radius: 12px; background: var(--well); border: 1px solid var(--line); font: 800 20px ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.08em; overflow-wrap: anywhere; user-select: all; }
.adm-inline { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.adm-inline .adm-label { flex: 1 0 100%; }
.adm-inline .input { flex: 0 1 200px; }
#mfa-form .adm-link { align-self: center; }
.adm-form[hidden] { display: none; }
.adm-actions { padding-bottom: 14px; }
