/* FeastVerge by VergeKits — styles.css (no framework). Dark first, light theme via [data-theme="light"]. */
@font-face { font-family: "InterFV"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --bg: #071016; --bg-2: #0a141b; --surface: #0e1a22; --surface-2: #13222c; --surface-3: #1b2f3a; --line: rgba(196,214,224,.09); --line-2: rgba(196,214,224,.16);
  --text: #f3f1ec; --text-2: #bfc6cb; --muted: #84919a; --navy: #0B151C;
  --orange: #EE7731; --orange-2: #E8651A; --gold: #E7C171; --accent: #A07CF0; --accent-soft: rgba(160,124,240,.14);
  --grad: linear-gradient(135deg,#F2C477 0%,#F08A3E 52%,#E8651A 100%); --glow: rgba(232,101,26,.55);
  --good: #34d399; --good-bg: rgba(52,211,153,.12); --warn: #fbbf24; --warn-bg: rgba(251,191,36,.12); --bad: #fb7185; --bad-bg: rgba(251,113,133,.12);
  --info: #60a5fa; --info-bg: rgba(96,165,250,.12);
  --c1: #A07CF0; --c2: #EE7731; --c3: #E7C171; --c4: #5fb3c9; --c5: #8fbf7a; --c6: #d98a8a;
  --r1: 10px; --r2: 14px; --r3: 20px; --r4: 26px; --ease: cubic-bezier(.2,.8,.2,1);
  --font: "InterFV", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow: 0 24px 60px -30px rgba(0,0,0,.75); --tab-h: 64px; --side-w: 256px;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f8f5ef; --bg-2: #f2eee6; --surface: #ffffff; --surface-2: #f6f2ea; --surface-3: #ece6db; --line: rgba(18,34,42,.09); --line-2: rgba(18,34,42,.16);
  --text: #12222a; --text-2: #3b4a52; --muted: #66747c; --accent-soft: rgba(124,88,214,.12); --accent: #7c58d6;
  --good: #0f9f6e; --good-bg: rgba(15,159,110,.10); --warn: #b7791f; --warn-bg: rgba(183,121,31,.12); --bad: #d23f5a; --bad-bg: rgba(210,63,90,.10); --info: #2563eb; --info-bg: rgba(37,99,235,.09);
  --c1: #7c58d6; --c4: #2f8aa3; --c5: #5f9a48; --shadow: 0 20px 50px -30px rgba(18,34,42,.35); color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; overscroll-behavior-y: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.num, .money, td.n, th.n { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#nl-badge-frame, #nl-hud-frame { display: none !important; }

/* ---------- splash ---------- */
.splash { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; background: radial-gradient(700px 400px at 50% 30%, rgba(232,101,26,.18), transparent 70%), var(--bg); transition: opacity .35s var(--ease); }
.splash.out { opacity: 0; pointer-events: none; }
.splash .badge { width: 132px; height: 132px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px rgba(231,193,113,.5), 0 0 60px 6px rgba(231,193,113,.25), 0 20px 60px -10px var(--glow); animation: pulse 2.4s var(--ease) infinite; }
.splash .badge img { width: 100%; height: 100%; }
.splash p { text-align: center; margin: 22px 0 0; color: var(--text-2); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; }
@keyframes pulse { 50% { box-shadow: 0 0 0 2px rgba(231,193,113,.6), 0 0 80px 14px rgba(231,193,113,.3), 0 20px 60px -10px var(--glow); } }

/* ---------- layout ---------- */
.app { min-height: 100vh; }
.side { display: none; }
.main { padding: 0 16px calc(var(--tab-h) + 96px + env(safe-area-inset-bottom)); max-width: 1200px; margin: 0 auto; }
.phead { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; margin: 0 -16px; background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.phead .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.phead .brand img { width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(231,193,113,.45); }
.wm { line-height: 1.05; }
.wm b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.wm small { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; font-variant: small-caps; }
.phead .sp { flex: 1; }
.ibtn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; flex: none; transition: background .15s, transform .15s; }
.ibtn:hover { background: var(--surface-2); }
.ibtn:active { transform: scale(.96); }
.ibtn svg { width: 20px; height: 20px; }

.demo-bar { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 6px 12px; background: linear-gradient(90deg, rgba(160,124,240,.22), rgba(238,119,49,.22)); color: var(--text); font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--line); text-align: center; cursor: pointer; border-left: 0; border-right: 0; border-top: 0; width: 100%; }
.demo-bar b { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

.ptitle { display: flex; align-items: flex-end; gap: 12px; padding: 20px 0 14px; }
.ptitle h1 { margin: 0; font-size: 24px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.ptitle p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.ptitle .grow { flex: 1; min-width: 0; }
.ptitle .back { margin-right: 2px; }
.ptitle .acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* tab bar (phone) — opaque so content never shows through */
.tabbar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60; height: var(--tab-h); display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border: 1px solid var(--line-2); border-radius: 22px; box-shadow: 0 18px 40px -12px rgba(0,0,0,.6), 0 0 0 6px var(--bg); }
.tabbar::before { content: ""; position: absolute; left: -10px; right: -10px; bottom: calc(-10px - env(safe-area-inset-bottom)); height: calc(20px + env(safe-area-inset-bottom)); background: var(--bg); z-index: -1; }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--muted); font-size: 11.5px; font-weight: 600; border-radius: 18px; margin: 5px 3px; min-height: 44px; white-space: nowrap; }
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a.on { color: var(--text); background: var(--surface-3); }
.tabbar a.on svg { color: var(--orange); }
.fab { position: fixed; right: 18px; bottom: calc(var(--tab-h) + 24px + env(safe-area-inset-bottom)); z-index: 61; width: 56px; height: 56px; border-radius: 18px; border: 0; background: var(--grad); color: #1a0c03; display: grid; place-items: center; box-shadow: 0 14px 30px -10px var(--glow); cursor: pointer; transition: transform .2s var(--ease); }
.fab:active { transform: scale(.94); }
.fab svg { width: 26px; height: 26px; }

@media (min-width: 1024px) {
  .app { display: grid; grid-template-columns: var(--side-w) 1fr; }
  .side { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 22px 14px 18px; border-right: 1px solid var(--line); background: var(--bg-2); overflow-y: auto; }
  .side .brand { display: flex; align-items: center; gap: 12px; padding: 4px 10px 18px; text-decoration: none; }
  .side .brand img { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(231,193,113,.5), 0 10px 26px -10px var(--glow); }
  .side .grp { margin: 14px 12px 6px; font-size: 11px; letter-spacing: .14em; font-weight: 700; color: var(--muted); text-transform: uppercase; }
  .side a.nav { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 2px 0; border-radius: 12px; text-decoration: none; color: var(--text-2); font-weight: 600; font-size: 14.5px; border: 1px solid transparent; }
  .side a.nav svg { width: 20px; height: 20px; flex: none; }
  .side a.nav:hover { background: var(--surface); color: var(--text); }
  .side a.nav.on { background: var(--surface-2); border-color: var(--line-2); color: var(--text); }
  .side a.nav.on::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--orange); }
  .side a.nav.on svg { color: var(--orange); }
  .side .cnt { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; font-size: 11px; font-weight: 700; display: grid; place-items: center; background: var(--bad-bg); color: var(--bad); }
  .side .foot { margin-top: auto; padding-top: 18px; }
  .side .bizcard { padding: 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13px; }
  .side .bizcard b { display: block; font-size: 13.5px; margin-bottom: 2px; }
  .side .bizcard span { color: var(--text-2); }
  .side .tag { margin: 16px 6px 0; font-size: 12px; color: var(--muted); font-style: italic; }
  .side .tag b { display: block; font-style: normal; color: var(--text-2); }
  .phead, .tabbar, .fab { display: none; }
  .main { padding: 8px 32px 48px; width: 100%; }
  .ptitle { padding: 26px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
  .ptitle h1 { font-size: 26px; }
  .desk-top { display: flex; }
}

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r3); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.card + .card, .stack > * + * { margin-top: 14px; }
.card.flush { padding: 0; overflow: hidden; }
.ch { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; min-height: 32px; }
.flush > .ch { padding: 16px 18px 0; }
.ch h2, .ch h3 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.ch .sub { color: var(--muted); font-size: 12.5px; }
.ch .grow { flex: 1; min-width: 0; }
.chip-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--orange); flex: none; }
.chip-ic svg { width: 17px; height: 17px; }
.chip-ic.v { color: var(--accent); background: var(--accent-soft); }
.chip-ic.g { color: var(--good); background: var(--good-bg); }
.chip-ic.w { color: var(--warn); background: var(--warn-bg); }
.chip-ic.r { color: var(--bad); background: var(--bad-bg); }
.chip-ic.b { color: var(--info); background: var(--info-bg); }
.link { color: var(--orange); font-weight: 600; font-size: 13.5px; text-decoration: none; background: none; border: 0; cursor: pointer; padding: 6px 0; }
.grid { display: grid; gap: 14px; }
.g2, .g3, .g4 { display: grid; gap: 14px; grid-template-columns: 1fr; }
.g2k { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
@media (min-width: 640px) { .g2 { grid-template-columns: 1fr 1fr; } .g4 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .g4 { grid-template-columns: repeat(4, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g64 { grid-template-columns: 1.6fr 1fr; } .g46 { grid-template-columns: 1fr 1.6fr; } }
.mt { margin-top: 14px; } .mt2 { margin-top: 22px; } .mb { margin-bottom: 14px; }
.muted { color: var(--muted); } .t2 { color: var(--text-2); } .small { font-size: 12.5px; } .tiny { font-size: 11.5px; }
.right { text-align: right; } .nowrap { white-space: nowrap; } .ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row { display: flex; align-items: center; gap: 10px; } .row.wrap { flex-wrap: wrap; } .row .grow { flex: 1; min-width: 0; }
.sep { height: 1px; background: var(--line); margin: 14px 0; border: 0; }

/* KPI */
.kpi { position: relative; padding: 16px; border-radius: var(--r3); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.kpi .lbl { font-size: 13px; color: var(--text-2); font-weight: 600; padding-right: 40px; }
.kpi .val { font-size: 25px; font-weight: 800; letter-spacing: -.02em; margin: 10px 0 2px; white-space: nowrap; }
.kpi .hint { font-size: 12.5px; color: var(--muted); }
.kpi .chip-ic { position: absolute; right: 14px; top: 14px; }
.kpi.kh .val { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kgrid { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
@media (min-width: 760px) { .kgrid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .kgrid.k6 { grid-template-columns: repeat(6, 1fr); } .kgrid.k4 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 380px) { .kpi .val { font-size: 21px; } }

/* hero banner */
.hero { position: relative; overflow: hidden; border-radius: var(--r4); min-height: 210px; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid var(--line-2); background: var(--surface-2); isolation: isolate; }
.hero .bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,16,22,.94) 0%, rgba(7,16,22,.78) 42%, rgba(7,16,22,.15) 100%), linear-gradient(0deg, rgba(7,16,22,.6), transparent 60%); }
.hero .logo { display: flex; align-items: center; gap: 10px; position: absolute; top: 18px; left: 22px; color: #f3f1ec; }
.hero .logo .mk { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #07090c; overflow: hidden; box-shadow: 0 0 0 1px rgba(231,193,113,.4), 0 10px 24px -8px rgba(231,193,113,.4); }
.hero .logo .mk img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero .logo b { font-size: 17px; letter-spacing: -.01em; } .hero .logo b span { color: var(--orange); font-size: 13px; letter-spacing: .06em; margin-left: 2px; }
.hero .logo small { display: block; color: rgba(243,241,236,.7); font-size: 11.5px; }
.hero h2 { margin: 56px 0 12px; color: #fff; font-size: clamp(24px, 6vw, 40px); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; max-width: 560px; }
.hero .pills { display: flex; gap: 8px; flex-wrap: wrap; }
.hero .pills a { padding: 7px 13px; border-radius: 999px; border: 1.5px solid rgba(238,119,49,.85); color: #fff; text-decoration: none; font-size: 13px; font-weight: 700; background: rgba(7,16,22,.35); min-height: 36px; display: inline-flex; align-items: center; }
@media (min-width: 1024px) { .hero { min-height: 270px; padding: 30px; } .hero .logo { left: 30px; top: 26px; } }

/* revenue card */
.rev { position: relative; overflow: hidden; }
.rev::before { content: ""; position: absolute; right: -80px; top: -120px; width: 380px; height: 300px; background: radial-gradient(closest-side, rgba(232,101,26,.25), transparent); pointer-events: none; }
.rev .eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--gold); text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.rev .big { font-size: 40px; font-weight: 800; letter-spacing: -.03em; margin: 6px 0 4px; line-height: 1.05; }
.delta { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: rgba(238,119,49,.14); color: #F6B27E; }
.delta.down { background: var(--bad-bg); color: var(--bad); }
[data-theme="light"] .delta { color: #b4511a; }
.spark { width: 100%; height: 150px; margin: 10px 0 8px; display: block; }
.mini3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); min-width: 0; }
.mini span { display: block; font-size: 11.5px; color: var(--gold); font-weight: 700; }
.mini b { font-size: 16px; white-space: nowrap; }
[data-theme="light"] .mini span, [data-theme="light"] .rev .eyebrow { color: #a5701b; }

/* segmented + tabs */
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { border: 0; background: transparent; color: var(--muted); font-weight: 700; font-size: 13px; padding: 0 14px; min-height: 36px; border-radius: 9px; cursor: pointer; white-space: nowrap; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 0 var(--line-2), 0 4px 12px -6px rgba(0,0,0,.5); }
[data-theme="light"] .seg button.on { background: #fff; }
.tabs { display: flex; gap: 6px; margin: 0 0 16px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; min-height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); font-weight: 700; font-size: 13.5px; cursor: pointer; }
.tabs button.on { background: var(--text); color: var(--bg); border-color: var(--text); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 13px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .15s var(--ease), background .15s, filter .15s; }
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.pri { background: var(--grad); color: #1a0c03; border: 0; box-shadow: 0 12px 26px -12px var(--glow); }
.btn.pri:hover { filter: brightness(1.05); }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 11px; }
.btn.danger { color: var(--bad); border-color: rgba(251,113,133,.35); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.qa { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.qa::-webkit-scrollbar { display: none; }
.qa .btn { flex: none; }

/* status pills */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--surface-3); color: var(--text-2); }
.pill svg { width: 13px; height: 13px; }
.pill.g { background: var(--good-bg); color: var(--good); } .pill.w { background: var(--warn-bg); color: var(--warn); } .pill.r { background: var(--bad-bg); color: var(--bad); }
.pill.b { background: var(--info-bg); color: var(--info); } .pill.v { background: var(--accent-soft); color: var(--accent); } .pill.o { background: rgba(238,119,49,.14); color: var(--orange); }
.tagv { display: inline-block; padding: 2px 8px; border-radius: 7px; font-size: 11.5px; font-weight: 700; background: var(--accent-soft); color: var(--accent); }

/* lists */
.list { margin: 0; padding: 0; list-style: none; }
.li { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-top: 1px solid var(--line); min-height: 60px; text-decoration: none; color: inherit; background: none; border-left: 0; border-right: 0; border-bottom: 0; width: 100%; text-align: left; cursor: pointer; }
.li:first-child { border-top: 0; }
.card:not(.flush) .li { padding-left: 0; padding-right: 0; }
.li:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.li .grow { flex: 1; min-width: 0; }
.li .t { font-weight: 700; font-size: 14.5px; display: block; }
.li .s { color: var(--muted); font-size: 12.5px; display: block; margin-top: 1px; }
.li .v { text-align: right; flex: none; }
.li .v b { display: block; font-size: 14.5px; }
.li .v small { color: var(--muted); font-size: 12px; }
.li .chev { color: var(--muted); width: 18px; height: 18px; flex: none; }
.thumb { width: 48px; height: 48px; border-radius: 12px; flex: none; overflow: hidden; background: var(--surface-3); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.date-chip { width: 48px; flex: none; text-align: center; border-radius: 12px; padding: 6px 0; background: var(--surface-2); border: 1px solid var(--line-2); line-height: 1.1; }
.date-chip small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; color: var(--orange); text-transform: uppercase; }
.date-chip b { font-size: 18px; }

/* photo placeholder */
.ph { position: relative; background: radial-gradient(120% 90% at 20% 10%, rgba(160,124,240,.35), transparent 60%), radial-gradient(100% 80% at 90% 100%, rgba(238,119,49,.35), transparent 60%), var(--surface-3); }
.ph img { width: 100%; height: 100%; object-fit: cover; }

/* menu cards */
.mcards { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (min-width: 760px) { .mcards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .mcards { grid-template-columns: repeat(4, 1fr); } }
.mcard { display: block; text-decoration: none; color: inherit; border-radius: var(--r3); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .2s var(--ease), border-color .2s; cursor: pointer; text-align: left; padding: 0; width: 100%; }
.mcard:hover { transform: translateY(-2px); border-color: var(--line-2); }
.mcard .pic { aspect-ratio: 4 / 3; }
.mcard .pic .tagv { position: absolute; left: 10px; top: 10px; background: rgba(7,16,22,.72); color: #d7c8ff; }
.mcard .body { padding: 12px 14px 14px; }
.mcard h3 { margin: 0 0 6px; font-size: 14.5px; line-height: 1.25; font-weight: 700; }
.mcard .kv { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-top: 3px; gap: 6px; }
.mcard .kv b { color: var(--text); font-weight: 700; }

/* forms */
.fgrid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.fgrid .full { grid-column: 1 / -1; }
@media (min-width: 900px) { .fgrid.f3 { grid-template-columns: repeat(3, 1fr); } .fgrid.f4 { grid-template-columns: repeat(4, 1fr); } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.field > small { color: var(--muted); font-size: 11.5px; }
.inp, .sel, textarea.inp { width: 100%; min-height: 46px; padding: 0 13px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--bg-2); color: var(--text); font-size: 15.5px; outline: none; transition: border-color .15s, box-shadow .15s; }
textarea.inp { padding: 11px 13px; min-height: 84px; resize: vertical; line-height: 1.4; }
.inp:focus, .sel:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(238,119,49,.18); }
.sel { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2384919a' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; }
[data-theme="light"] .inp, [data-theme="light"] .sel { background-color: #fff; }
.inp.n { text-align: right; font-variant-numeric: tabular-nums; }
.affix { position: relative; }
.affix .inp { padding-left: 34px; }
.affix i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-size: 14px; pointer-events: none; max-width: 24px; overflow: hidden; }
.affix.r .inp { padding-left: 13px; padding-right: 34px; }
.affix.r i { left: auto; right: 13px; }
.cbox { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-weight: 600; }
.cbox input { width: 20px; height: 20px; accent-color: var(--orange); }

/* calc rows (cost build-up) */
.calc { margin: 0; }
.calc .r { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.calc .r:first-child { border-top: 0; }
.calc .r .k { flex: 1; min-width: 0; }
.calc .r .k b { display: block; font-size: 14px; font-weight: 600; }
.calc .r .k small { color: var(--muted); font-size: 12px; }
.calc .r .v { font-weight: 700; text-align: right; white-space: nowrap; }
.calc .r.tot { border-top: 1.5px solid var(--line-2); padding-top: 14px; }
.calc .r.tot .k b { font-size: 15px; font-weight: 800; }
.calc .r.tot .v { font-size: 18px; font-weight: 800; }
.bigline { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); }
.bigline span { font-weight: 700; color: var(--text-2); }
.bigline b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.bigline.hl b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* tables */
.tw { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -18px; padding: 0 18px; }
.flush .tw { margin: 0; padding: 0; }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; background: var(--bg-2); white-space: nowrap; border-bottom: 1px solid var(--line); }
table.t td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t .n { text-align: right; white-space: nowrap; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
table.t td .inp, table.t td .sel { min-height: 40px; font-size: 14px; }
table.t tfoot td { font-weight: 800; border-top: 1.5px solid var(--line-2); }

/* editable line cards (phone-friendly) */
.lines { display: grid; gap: 10px; }
.lc { border: 1px solid var(--line-2); border-radius: 14px; padding: 12px; background: var(--bg-2); }
.lc .top { display: flex; gap: 8px; align-items: center; }
.lc .top .grow { flex: 1; min-width: 0; }
.lc .grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 8px; }
.lc .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 12.5px; color: var(--muted); gap: 8px; }
.lc .foot b { color: var(--text); font-size: 14px; }
.xbtn { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; flex: none; }
.xbtn:hover { color: var(--bad); border-color: rgba(251,113,133,.4); }
.xbtn svg { width: 16px; height: 16px; }

/* attention */
.att .li .chip-ic { width: 38px; height: 38px; border-radius: 12px; }
.count { min-width: 26px; height: 26px; padding: 0 8px; border-radius: 13px; display: grid; place-items: center; background: var(--surface-3); font-size: 12px; font-weight: 800; }

/* board / calendar */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.col { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r3); padding: 12px; scroll-snap-align: start; min-width: 0; }
.col h3 { margin: 2px 4px 10px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); display: flex; justify-content: space-between; align-items: center; }
.ecard { display: block; width: 100%; text-align: left; padding: 12px 13px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); margin-top: 8px; cursor: pointer; text-decoration: none; color: inherit; }
.ecard:hover { border-color: var(--line-2); }
.ecard .t { font-weight: 700; font-size: 14px; }
.ecard .s { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.ecard .kv { display: flex; justify-content: space-between; margin-top: 9px; font-size: 12.5px; gap: 8px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .dow { font-size: 11px; font-weight: 700; color: var(--muted); text-align: center; padding: 4px 0; letter-spacing: .06em; }
.cal .d { min-height: 64px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); padding: 5px; font-size: 12px; min-width: 0; }
.cal .d.o { opacity: .35; }
.cal .d.today { border-color: var(--orange); }
.cal .d .n { font-weight: 700; color: var(--text-2); font-size: 11.5px; }
.cal .ev { display: block; margin-top: 3px; padding: 2px 5px; border-radius: 6px; font-size: 10.5px; font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; background: var(--accent-soft); color: var(--accent); text-decoration: none; cursor: pointer; border: 0; width: 100%; text-align: left; }
.cal .ev.Confirmed { background: rgba(238,119,49,.16); color: var(--orange); } .cal .ev.Completed { background: var(--good-bg); color: var(--good); } .cal .ev.Cancelled { background: var(--surface-3); color: var(--muted); text-decoration: line-through; } .cal .ev.Inquiry { background: var(--info-bg); color: var(--info); }
@media (min-width: 1024px) { .cal .d { min-height: 96px; padding: 7px; } .cal .ev { font-size: 11.5px; } }

/* charts */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .grid line { stroke: var(--line); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--text-2); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.donut-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.donut-wrap svg { width: 170px; height: 170px; flex: none; }
.donut-wrap .legend { flex-direction: column; flex: 1; min-width: 160px; }
.donut-wrap .legend div { display: flex; justify-content: space-between; gap: 10px; }

/* self-check */
.ring { width: 92px; height: 92px; flex: none; }
.banner-ok { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: var(--r3); border: 1px solid rgba(52,211,153,.35); background: linear-gradient(135deg, rgba(52,211,153,.12), transparent 70%), var(--surface); }
.banner-ok.bad { border-color: rgba(251,113,133,.4); background: linear-gradient(135deg, rgba(251,113,133,.14), transparent 70%), var(--surface); }
.banner-ok h2 { margin: 6px 0 2px; font-size: 18px; }
.tr { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.tr:first-child { border-top: 0; }
.tr .ok { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--good-bg); color: var(--good); flex: none; }
.tr .ok.no { background: var(--bad-bg); color: var(--bad); }
.tr .ok svg { width: 14px; height: 14px; }
.tr .grow { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; }
.tr .grow small { display: block; font-weight: 500; color: var(--muted); font-size: 11.5px; }
.tr .ev2 { text-align: right; font-size: 11.5px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tr .ev2 b { color: var(--text-2); font-weight: 600; }

/* sheet (bottom sheet / dialog) */
.scrim { position: fixed; inset: 0; z-index: 900; background: rgba(2,6,9,.62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s var(--ease); }
.scrim.in { opacity: 1; }
.sheet { position: fixed; z-index: 901; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow: auto; background: var(--surface); border-radius: 24px 24px 0 0; border: 1px solid var(--line-2); padding: 8px 18px calc(22px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .32s var(--ease); box-shadow: 0 -30px 60px -20px rgba(0,0,0,.6); }
.sheet.in { transform: none; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 4px auto 12px; }
.sheet .sh { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sheet .sh h2 { margin: 0; font-size: 19px; flex: 1; letter-spacing: -.01em; }
.sheet .acts { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.sheet .acts .btn { flex: 1; }
@media (min-width: 760px) { .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: min(620px, 92vw); border-radius: 24px; transform: translate(-50%, -46%) scale(.98); opacity: 0; transition: transform .28s var(--ease), opacity .2s; padding: 20px 24px 24px; } .sheet.in { transform: translate(-50%, -50%); opacity: 1; } .sheet .grab { display: none; } .sheet.wide { width: min(860px, 94vw); } }
.clist { max-height: 52vh; overflow: auto; margin: 10px -6px 0; }
.copt { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 12px; cursor: pointer; border: 0; background: none; width: 100%; text-align: left; min-height: 48px; }
.copt:hover, .copt.on { background: var(--surface-2); }
.copt .flag { width: 34px; height: 24px; border-radius: 5px; background: var(--surface-3); display: grid; place-items: center; font-size: 10.5px; font-weight: 800; color: var(--text-2); flex: none; letter-spacing: .04em; }
.copt .grow { flex: 1; min-width: 0; }
.copt .grow b { display: block; font-size: 14.5px; }
.copt .grow small { color: var(--muted); font-size: 12px; }
.copt .sym { font-weight: 800; color: var(--gold); min-width: 40px; text-align: right; }

/* toast — top on phones so it never covers buttons or the tab bar */
.toasts { position: fixed; z-index: 1000; left: 50%; top: calc(66px + env(safe-area-inset-top)); transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100vw - 24px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface-3); border: 1px solid var(--line-2); box-shadow: 0 18px 40px -12px rgba(0,0,0,.6); font-size: 14px; font-weight: 600; animation: tin .3s var(--ease); }
.toast .grow { flex: 1; }
.toast button { border: 0; background: var(--grad); color: #1a0c03; font-weight: 800; border-radius: 10px; padding: 0 12px; min-height: 36px; cursor: pointer; }
@keyframes tin { from { opacity: 0; transform: translateY(-8px); } }
@media (min-width: 1024px) { .toasts { top: 22px; left: auto; right: 24px; transform: none; } }

/* empty + skeleton */
.empty { text-align: center; padding: 34px 18px; }
.empty .ei { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.empty .ei svg { width: 28px; height: 28px; }
.empty h3 { margin: 0 0 6px; font-size: 17px; }
.empty p { margin: 0 auto 16px; color: var(--muted); max-width: 360px; font-size: 14px; }
.skel { border-radius: 12px; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* more grid */
.more { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.more a { display: flex; flex-direction: column; gap: 10px; padding: 16px; min-height: 104px; border-radius: var(--r3); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: inherit; }
.more a b { font-size: 15px; } .more a small { color: var(--muted); font-size: 12.5px; }

/* settings */
.set .li { min-height: 56px; }
.lic-wrap { margin-top: 4px; }
.lic-wrap p { color: var(--text-2); }
.about { text-align: center; padding: 26px 18px; }
.about .badge { width: 104px; height: 104px; margin: 0 auto 14px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px rgba(231,193,113,.5), 0 0 50px 4px rgba(231,193,113,.22); }
.about .badge img { width: 100%; height: 100%; }
.about h3 { margin: 0; font-size: 19px; } .about p { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; }
.footer { text-align: center; color: var(--muted); font-size: 12.5px; padding: 30px 0 6px; }
.footer b { color: var(--text-2); }

/* document paper (quote / invoice) */
.paper { background: #fff; color: #12222a; border-radius: 20px; padding: 28px; box-shadow: var(--shadow); font-size: 13px; line-height: 1.45; }
.paper .ph1 { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.paper .who { display: flex; gap: 12px; align-items: center; min-width: 0; }
.paper .lg { width: 46px; height: 46px; border-radius: 12px; background: #12222a; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 16px; flex: none; overflow: hidden; }
.paper .lg img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.paper .who b { display: block; font-size: 15px; }
.paper .who small { display: block; color: #5b6970; font-size: 11.5px; }
.paper .ttl { text-align: right; }
.paper .ttl h2 { margin: 0; font-size: 26px; letter-spacing: -.02em; font-weight: 800; }
.paper .ttl small { color: #7a5a1c; font-weight: 700; font-size: 12px; letter-spacing: .06em; }
.paper .meta { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; padding: 14px 16px; margin: 22px 0 18px; border-radius: 12px; background: #f1f4f6; }
.paper .meta span { display: block; font-size: 10px; letter-spacing: .12em; font-weight: 800; color: #6b787e; text-transform: uppercase; }
.paper .meta b { font-size: 12.5px; }
.paper .meta small { display: block; color: #5b6970; font-size: 11px; }
.paper table { width: 100%; border-collapse: collapse; }
.paper th { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #6b787e; text-align: left; padding: 8px 6px; border-bottom: 2px solid #12222a; }
.paper td { padding: 10px 6px; border-bottom: 1px solid #e3e8eb; font-variant-numeric: tabular-nums; }
.paper .n { text-align: right; white-space: nowrap; }
.paper .tots { margin: 14px 0 0 auto; width: min(320px, 100%); }
.paper .tots div { display: flex; justify-content: space-between; padding: 4px 6px; }
.paper .tots .due { margin-top: 8px; padding: 12px 14px; border-radius: 10px; background: #12222a; color: #fff; font-weight: 800; font-size: 15px; }
.paper .sched { margin-top: 18px; border: 1px solid #e3e8eb; border-radius: 12px; padding: 12px 14px; }
.paper .sched h4, .paper .menu h4 { margin: 0 0 8px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #6b787e; }
.paper .sched div { display: flex; justify-content: space-between; padding: 3px 0; gap: 10px; }
.paper .menu { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: #faf7f1; border: 1px solid #efe7d7; }
.paper .menu ul { margin: 0; padding-left: 18px; columns: 2; }
.paper .terms { margin-top: 18px; padding-top: 12px; border-top: 1px solid #e3e8eb; font-size: 11.5px; color: #3b4a52; white-space: pre-line; }
.paper .terms b { color: #12222a; }
.paper .pf { margin-top: 18px; text-align: center; color: #84919a; font-size: 10.5px; }
@media (max-width: 560px) { .paper { padding: 18px; border-radius: 16px; font-size: 12px; } .paper .meta { grid-template-columns: 1fr 1fr; } .paper .ttl h2 { font-size: 20px; } .paper .menu ul { columns: 1; } }

/* print: only the paper */
#printRoot { display: none; }
@media print {
  html, body { background: #fff !important; }
  body > *:not(#printRoot) { display: none !important; }
  #printRoot { display: block !important; }
  #printRoot .paper { box-shadow: none; border-radius: 0; padding: 0; font-size: 11.5pt; }
  #printRoot .paper .meta, #printRoot .paper .tots .due { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #printRoot tr { page-break-inside: avoid; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; } }
.shot .toasts, .shot .demo-bar { display: none !important; }
.mcard .pic { position: relative; }
.mcard .pic .ph, .fillph .ph { position: absolute; inset: 0; }
.fillph { position: relative; }
.mainwrap { min-width: 0; }
.stack > .row { margin-top: 14px; }
.eyebrow svg { width: 15px; height: 15px; }
.delta svg { width: 13px; height: 13px; }
.affix i svg { width: 16px; height: 16px; display: block; }
.affix i { display: flex; align-items: center; }
.link svg, .small svg { width: 15px; height: 15px; }
html, body { overflow-x: hidden; }
.phead { margin: 0; }
.home-top { align-items: start; }
@media (max-width: 640px) { .spark { height: 110px; } .mini { padding: 8px 10px; } .mini b { font-size: 14px; } .mini span { font-size: 10.5px; } .hero .bg { background-position: 92% center; } .rev .big { font-size: 34px; } }
@media (max-width: 640px) {
  .ptitle { flex-wrap: wrap; align-items: center; }
  .ptitle .grow { flex: 1 1 calc(100% - 60px); }
  .ptitle .acts { width: 100%; justify-content: flex-start; }
  .ptitle .acts:empty { display: none; }
  .kpi { padding: 14px; }
  .kpi .val { font-size: 20px; margin-top: 8px; }
  .kpi .lbl { font-size: 12.5px; padding-right: 34px; min-height: 34px; }
  .kpi .chip-ic { width: 28px; height: 28px; right: 10px; top: 10px; }
  .kpi .hint { font-size: 11.5px; }
}
.g2 > *, .g3 > *, .g4 > *, .g2k > *, .fgrid > *, .grid3 > *, .kgrid > * { min-width: 0; }
select.sel { max-width: 100%; text-overflow: ellipsis; }
.cbtn { border: 1px solid var(--line-2) !important; border-radius: 14px; padding: 10px 14px !important; }
.cbtn .flag, .copt .flag { width: 34px; height: 24px; border-radius: 5px; background: var(--surface-3); display: grid; place-items: center; font-size: 10.5px; font-weight: 800; color: var(--text-2); flex: none; letter-spacing: .04em; }
@media (max-width: 1099px) { .first-phone { order: -1; } }
