/* =========================================================
   Bellaire Pointe Command Center: design system
   Evening garden (dark, default) and Morning (light).
   ========================================================= */
:root {
  --bg: #090f0c; --bg2: #0d1612; --bg3: #111c17;
  --panel: rgba(255, 255, 255, .035); --panel2: rgba(255, 255, 255, .06); --panel-solid: #101a15; --panel-pop: #14211b;
  --line: rgba(255, 255, 255, .075); --line2: rgba(255, 255, 255, .14);
  --ink: #eef2ea; --ink2: #c3cec5; --muted: #8d9b91; --faint: #5f6e65;
  --gold: #d8b44a; --gold2: #f1d27c; --gold3: #a8832a; --gold-ink: #1a1404; --gold-soft: rgba(216, 180, 74, .14);
  --sage: #3e5146; --sage2: #7fa58a; --sage-soft: rgba(127, 165, 138, .14);
  --c1: #4a90d9; --c2: #b08a1a; --c3: #d45a86; --c4: #8e7ce6; --c5: #2e9c70; --c6: #8a8f88;
  --good: #3fbf86; --warn: #e3a33b; --bad: #e5604f; --info: #6ea8e8;
  --good-soft: rgba(63, 191, 134, .13); --warn-soft: rgba(227, 163, 59, .14); --bad-soft: rgba(229, 96, 79, .14);
  --radius: 18px; --radius-sm: 12px; --radius-lg: 26px;
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .2);
  --shadow-pop: 0 30px 80px -20px rgba(0, 0, 0, .7);
  --glass: blur(18px) saturate(140%);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --side: 248px; --top: 68px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f3efe6; --bg2: #ebe5d8; --bg3: #e4ddce;
  --panel: rgba(255, 255, 255, .72); --panel2: rgba(255, 255, 255, .9); --panel-solid: #fffdf8; --panel-pop: #ffffff;
  --line: rgba(31, 42, 36, .09); --line2: rgba(31, 42, 36, .17);
  --ink: #1d2721; --ink2: #3a473f; --muted: #66746b; --faint: #98a39b;
  --gold: #a87e12; --gold2: #c69a2a; --gold3: #7d5d0c; --gold-ink: #fffaf0; --gold-soft: rgba(168, 126, 18, .12);
  --sage: #3e5146; --sage2: #4d6b56; --sage-soft: rgba(62, 81, 70, .1);
  --c1: #2f7bc0; --c2: #a87e12; --c3: #c2416e; --c4: #7a5fd0; --c5: #23845e; --c6: #858a83;
  --good: #1f9a64; --warn: #b9770e; --bad: #c8412f; --info: #2f7bc0;
  --good-soft: rgba(31, 154, 100, .11); --warn-soft: rgba(185, 119, 14, .12); --bad-soft: rgba(200, 65, 47, .1);
  --shadow: 0 18px 44px -22px rgba(52, 44, 20, .32), 0 1px 3px rgba(52, 44, 20, .08);
  --shadow-pop: 0 30px 70px -24px rgba(52, 44, 20, .4);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 14.5px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
svg { flex: none; }
:where(svg[aria-hidden="true"]) { width: 1.15em; height: 1.15em; vertical-align: -.18em; }
.tab svg { width: 16px; height: 16px; }
.media-thumb svg, .phone-img svg { width: 30px; height: 30px; }
::selection { background: var(--gold); color: var(--gold-ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -.01em; margin: 0; line-height: 1.12; font-variation-settings: 'opsz' 96; }
h1 { font-size: clamp(28px, 3.4vw, 44px); }
h2 { font-size: clamp(21px, 2vw, 27px); }
h3 { font-size: 18px; }
p { margin: 0 0 .7em; }
.mono { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .gold { color: var(--gold); }
.small { font-size: 12.5px; } .tiny { font-size: 11.5px; letter-spacing: .02em; }
.eyebrow { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.nowrap { white-space: nowrap; }
.right { text-align: right; } .center { text-align: center; }
.flex { display: flex; align-items: center; gap: 10px; } .flex-wrap { flex-wrap: wrap; } .between { justify-content: space-between; } .grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 12px; } .stack-sm > * + * { margin-top: 8px; } .stack-lg > * + * { margin-top: 20px; }
.hide { display: none !important; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- ambient background ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: radial-gradient(1200px 700px at 85% -10%, rgba(216, 180, 74, .09), transparent 60%), radial-gradient(900px 600px at -10% 20%, rgba(62, 81, 70, .5), transparent 60%), var(--bg); }
.aurora::before, .aurora::after { content: ''; position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: .22; animation: drift 38s ease-in-out infinite alternate; }
.aurora::before { background: radial-gradient(circle, #4a6b58, transparent 65%); left: -20vmax; bottom: -30vmax; }
.aurora::after { background: radial-gradient(circle, #6b5320, transparent 65%); right: -25vmax; top: -25vmax; animation-delay: -12s; }
:root[data-theme="light"] .aurora { background: radial-gradient(1000px 600px at 90% -10%, rgba(216, 180, 74, .16), transparent 60%), radial-gradient(900px 600px at -10% 30%, rgba(127, 165, 138, .22), transparent 60%), var(--bg); }
:root[data-theme="light"] .aurora::before, :root[data-theme="light"] .aurora::after { opacity: .12; }
.grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes drift { to { transform: translate(8vmax, -6vmax) scale(1.12); } }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 18px 14px 14px; border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 40%); backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); z-index: 20; }
:root[data-theme="light"] .side { background: rgba(255, 253, 248, .6); }
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 18px; }
.brand-mark { width: 42px; height: 42px; border-radius: 13px; background: radial-gradient(circle at 30% 25%, #fff8e1, #f2e3b8 45%, #d7c08a); display: grid; place-items: center; box-shadow: 0 6px 20px -6px rgba(216, 180, 74, .6), inset 0 1px 0 rgba(255, 255, 255, .8); overflow: hidden; }
.brand-mark img { width: 92%; height: auto; }
.brand-t { font-family: var(--display); font-size: 17px; line-height: 1.05; }
.brand-s { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav { flex: 1; overflow-y: auto; padding-right: 2px; scrollbar-width: thin; }
.nav-g { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); padding: 14px 10px 6px; font-weight: 700; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 11px; color: var(--ink2); font-weight: 600; font-size: 13.8px; position: relative; transition: background .2s, color .2s; }
.nav a svg { width: 18px; height: 18px; opacity: .8; }
.nav a:hover { background: var(--panel2); color: var(--ink); }
.nav a.active { background: linear-gradient(90deg, var(--gold-soft), transparent); color: var(--ink); }
.nav a.active::before { content: ''; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.nav a.active svg { color: var(--gold); opacity: 1; }
.nav .count { margin-left: auto; font-size: 11px; font-weight: 800; background: var(--gold); color: var(--gold-ink); border-radius: 20px; padding: 1px 7px; min-width: 20px; text-align: center; }
.side-foot { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 8px; }
.by { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; }
.by img { width: 34px; height: 30px; object-fit: contain; background: #fff; border-radius: 8px; padding: 2px; }
.by-t { font-size: 11px; color: var(--muted); line-height: 1.3; }
.by-t b { color: var(--ink); font-weight: 700; display: block; font-size: 12px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 15; height: var(--top); display: flex; align-items: center; gap: 12px; padding: 0 26px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); }
.top-title { font-family: var(--display); font-size: 20px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-title small { font-family: var(--font); font-size: 12px; color: var(--muted); margin-left: 8px; letter-spacing: .02em; }
.searchbtn { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer; min-width: 220px; transition: border-color .2s; }
.searchbtn:hover { border-color: var(--line2); }
.searchbtn svg { width: 17px; height: 17px; }
.searchbtn kbd { margin-left: auto; font-size: 11px; border: 1px solid var(--line2); border-radius: 6px; padding: 1px 6px; font-family: var(--font); }
.iconbtn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; position: relative; transition: border-color .2s, background .2s; }
.iconbtn:hover { border-color: var(--line2); background: var(--panel2); }
.iconbtn svg { width: 18px; height: 18px; }
.iconbtn .dotc { position: absolute; top: 6px; right: 6px; min-width: 16px; height: 16px; border-radius: 10px; background: var(--bad); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; padding: 0 4px; border: 2px solid var(--bg); }
.livepill { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; padding: 6px 11px; border-radius: 30px; border: 1px solid var(--line); background: var(--panel); color: var(--ink2); white-space: nowrap; }
.livepill i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 var(--good); animation: ping 2s infinite; }
.livepill.demo i { background: var(--warn); box-shadow: 0 0 0 0 var(--warn); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 40%, transparent); } 70% { box-shadow: 0 0 0 7px transparent; } }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: var(--gold-ink); background: linear-gradient(135deg, var(--gold2), var(--gold3)); flex: none; }
.avatar.sm { width: 30px; height: 30px; font-size: 11.5px; }
.avatar.ph { background: var(--panel2); color: var(--ink2); border: 1px solid var(--line); }

.view { padding: 26px 26px 90px; max-width: 1480px; width: 100%; margin: 0 auto; animation: viewIn .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } }
.view-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.view-h p { color: var(--muted); margin: 6px 0 0; max-width: 680px; }

/* ---------- surfaces ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); position: relative; min-width: 0; }
.card.flat { box-shadow: none; }
.card.pad0 { padding: 0; overflow: hidden; }
.card.glow { background: linear-gradient(160deg, rgba(216, 180, 74, .09), transparent 45%), var(--panel); border-color: rgba(216, 180, 74, .22); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-t { font-weight: 800; font-size: 14.5px; letter-spacing: .01em; display: flex; align-items: center; gap: 9px; }
.card-t svg { width: 18px; height: 18px; color: var(--gold); }
.card-sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; font-weight: 500; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-12 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.g-32 { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.g-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.span2 { grid-column: span 2; }
.mt { margin-top: 18px; } .mt-s { margin-top: 10px; } .mt-l { margin-top: 28px; } .mb { margin-bottom: 18px; }
.sep { height: 1px; background: var(--line); margin: 14px 0; border: 0; }

/* ---------- KPI tiles (3D tilt) ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { padding: 16px 16px 12px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); position: relative; overflow: hidden; transform-style: preserve-3d; transition: transform .25s ease, border-color .25s; will-change: transform; min-width: 0; }
.kpi::after { content: ''; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .07), transparent 40%); pointer-events: none; }
.kpi:hover { border-color: var(--line2); }
.kpi-l { font-size: 12px; color: var(--muted); font-weight: 700; display: flex; align-items: center; gap: 7px; }
.kpi-l svg { width: 15px; height: 15px; color: var(--gold); }
.kpi-v { font-size: clamp(24px, 2.2vw, 31px); font-weight: 800; letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi-v small { font-size: 14px; color: var(--muted); font-weight: 700; margin-left: 2px; }
.kpi-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; min-height: 26px; }
.kpi-s { height: 26px; flex: 1; max-width: 110px; }
.delta { font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 20px; white-space: nowrap; }
.delta.up { color: var(--good); background: var(--good-soft); }
.delta.down { color: var(--bad); background: var(--bad-soft); }
.delta.flat { color: var(--muted); background: var(--panel2); }
.delta svg { width: 12px; height: 12px; }
.kpi-sub { font-size: 11.5px; color: var(--muted); }

/* ---------- buttons & controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line2); background: var(--panel2); font-weight: 700; font-size: 13.5px; cursor: pointer; white-space: nowrap; transition: transform .15s, background .2s, border-color .2s, box-shadow .2s; color: var(--ink); text-decoration: none; }
.btn:hover { border-color: var(--gold); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 17px; height: 17px; }
.btn-gold { background: linear-gradient(180deg, var(--gold2), var(--gold)); border-color: transparent; color: var(--gold-ink); box-shadow: 0 8px 24px -10px var(--gold), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-gold:hover { box-shadow: 0 10px 30px -8px var(--gold), inset 0 1px 0 rgba(255, 255, 255, .45); border-color: transparent; }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); background: var(--bad-soft); }
.btn-good { color: var(--good); border-color: color-mix(in srgb, var(--good) 40%, transparent); background: var(--good-soft); }
.btn-sm { height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 10px; }
.btn-xs { height: 26px; padding: 0 9px; font-size: 11.5px; border-radius: 8px; gap: 5px; }
.btn-xs svg { width: 13px; height: 13px; }
.btn-lg { height: 50px; padding: 0 22px; font-size: 15px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.loading { opacity: .6; pointer-events: none; }
.btn.loading::after { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn.armed { background: var(--bad); color: #fff; border-color: var(--bad); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 30px; background: var(--panel2); border: 1px solid var(--line); color: var(--ink2); white-space: nowrap; line-height: 1.5; }
.chip i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }
.chip svg { width: 12px; height: 12px; }
.chip.gold { background: var(--gold-soft); border-color: rgba(216, 180, 74, .3); color: var(--gold); }
.chip.good { background: var(--good-soft); color: var(--good); border-color: transparent; }
.chip.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.chip.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.chip.info { background: color-mix(in srgb, var(--info) 14%, transparent); color: var(--info); border-color: transparent; }
button.chip { cursor: pointer; }
button.chip:hover { border-color: var(--gold); }
button.chip.on { background: var(--gold); color: var(--gold-ink); border-color: transparent; }
.ai-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 20px; background: linear-gradient(90deg, rgba(142, 124, 230, .2), rgba(216, 180, 74, .2)); color: var(--ink2); border: 1px solid var(--line); }
.ai-badge svg { width: 11px; height: 11px; color: var(--gold); }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 9px; font-weight: 700; font-size: 12.5px; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.seg button.on { background: var(--panel-pop); color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
:root[data-theme="light"] .seg button.on { box-shadow: 0 2px 6px rgba(52, 44, 20, .14); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 10px 14px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; display: flex; align-items: center; gap: 8px; background: none; border-top: 0; border-left: 0; border-right: 0; }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--ink); border-bottom-color: var(--gold); }
.tab .count { font-size: 11px; background: var(--panel2); border-radius: 20px; padding: 0 7px; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .lbl { font-size: 12px; font-weight: 700; color: var(--ink2); letter-spacing: .01em; }
.input, .field input, .field select, .field textarea, select.input, textarea.input {
  width: 100%; height: 42px; padding: 0 13px; border-radius: 12px; border: 1px solid var(--line2); background: color-mix(in srgb, var(--bg) 55%, transparent); outline: none; transition: border-color .2s, box-shadow .2s; min-width: 0;
}
:root[data-theme="light"] .input, :root[data-theme="light"] .field input, :root[data-theme="light"] .field select, :root[data-theme="light"] .field textarea { background: #fffdf8; }
.field textarea, textarea.input { height: auto; min-height: 96px; padding: 11px 13px; resize: vertical; line-height: 1.55; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
select.input, .field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23999' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; }
.field small { color: var(--muted); font-size: 11.5px; }
.form-row { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.switch { position: relative; width: 44px; height: 25px; flex: none; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 30px; background: var(--panel2); border: 1px solid var(--line2); transition: .25s; cursor: pointer; }
.switch span::before { content: ''; position: absolute; width: 19px; height: 19px; left: 2px; top: 2px; border-radius: 50%; background: var(--ink2); transition: .25s cubic-bezier(.3, 1.4, .5, 1); }
.switch input:checked + span { background: var(--gold); border-color: transparent; }
.switch input:checked + span::before { transform: translateX(19px); background: #fff; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.check input { width: 18px; height: 18px; accent-color: var(--gold); }

/* ---------- lists & tables ---------- */
.list { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--line); min-width: 0; }
.row:last-child { border-bottom: 0; }
.row.click { cursor: pointer; border-radius: 10px; padding-left: 8px; padding-right: 8px; transition: background .15s; }
.row.click:hover { background: var(--panel2); }
.row-t { font-weight: 700; font-size: 13.5px; }
.row-s { color: var(--muted); font-size: 12.5px; }
.ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--panel2); flex: none; }
.ico svg { width: 17px; height: 17px; }
.ico.c1 { color: var(--c1); background: color-mix(in srgb, var(--c1) 15%, transparent); }
.ico.c2 { color: var(--c2); background: color-mix(in srgb, var(--c2) 18%, transparent); }
.ico.c3 { color: var(--c3); background: color-mix(in srgb, var(--c3) 15%, transparent); }
.ico.c4 { color: var(--c4); background: color-mix(in srgb, var(--c4) 15%, transparent); }
.ico.c5 { color: var(--c5); background: color-mix(in srgb, var(--c5) 16%, transparent); }
.ico.gold { color: var(--gold); background: var(--gold-soft); }
.table-wrap { overflow-x: auto; margin: 0 -4px; }
table.table { width: 100%; border-collapse: collapse; font-size: 13.2px; }
.table th { text-align: left; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: var(--panel); }
.empty { text-align: center; padding: 34px 16px; color: var(--muted); }
.empty svg { width: 34px; height: 34px; color: var(--faint); margin: 0 auto 10px; display: block; }
.skel { border-radius: 10px; background: linear-gradient(90deg, var(--panel) 25%, var(--panel2) 50%, var(--panel) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; min-height: 16px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.note { display: flex; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--panel2); border: 1px solid var(--line); font-size: 13px; color: var(--ink2); align-items: flex-start; }
.note svg { width: 18px; height: 18px; color: var(--gold); margin-top: 1px; }
.note.warn { background: var(--warn-soft); border-color: transparent; } .note.warn svg { color: var(--warn); }
.note.good { background: var(--good-soft); border-color: transparent; } .note.good svg { color: var(--good); }
.note.bad { background: var(--bad-soft); border-color: transparent; } .note.bad svg { color: var(--bad); }
.stars { color: var(--gold); letter-spacing: 1px; font-size: 13px; white-space: nowrap; }
.stars .off { color: var(--faint); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.dot.good { background: var(--good); box-shadow: 0 0 10px var(--good); } .dot.bad { background: var(--bad); box-shadow: 0 0 10px var(--bad); } .dot.warn { background: var(--warn); }

/* ---------- overlays ---------- */
.scrim { position: fixed; inset: 0; background: rgba(4, 8, 6, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 60; animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.modal { position: fixed; z-index: 61; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow: auto; background: var(--panel-pop); border: 1px solid var(--line2); border-radius: var(--radius-lg); box-shadow: var(--shadow-pop); animation: pop .3s cubic-bezier(.2, 1.2, .3, 1); }
.modal.wide { width: min(920px, calc(100vw - 32px)); }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -46%) scale(.97); } }
.modal-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 0; }
.modal-h h3 { font-size: 20px; }
.modal-b { padding: 16px 20px; }
.modal-f { padding: 0 20px 20px; display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.drawer { position: fixed; z-index: 61; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: var(--panel-pop); border-left: 1px solid var(--line2); box-shadow: var(--shadow-pop); display: flex; flex-direction: column; animation: slide .35s cubic-bezier(.2, .9, .2, 1); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer-h { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.drawer-b { flex: 1; overflow-y: auto; padding: 18px 20px 40px; }
.toasts { position: fixed; z-index: 80; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(460px, calc(100vw - 32px)); }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 14px; background: var(--panel-pop); border: 1px solid var(--line2); box-shadow: var(--shadow-pop); font-weight: 600; font-size: 13.5px; animation: toastIn .35s cubic-bezier(.2, 1.2, .3, 1); max-width: 100%; }
.toast svg { width: 18px; height: 18px; flex: none; }
.toast.good svg { color: var(--good); } .toast.bad svg { color: var(--bad); } .toast.info svg { color: var(--gold); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.96); } }
.pop { position: absolute; z-index: 40; background: var(--panel-pop); border: 1px solid var(--line2); border-radius: 16px; box-shadow: var(--shadow-pop); animation: fade .2s; }
.notif { right: 0; top: 46px; width: min(380px, calc(100vw - 24px)); max-height: 70vh; overflow-y: auto; }
.palette { position: fixed; z-index: 70; top: 12vh; left: 50%; transform: translateX(-50%); width: min(620px, calc(100vw - 24px)); background: var(--panel-pop); border: 1px solid var(--line2); border-radius: 20px; box-shadow: var(--shadow-pop); overflow: hidden; animation: pop2 .25s cubic-bezier(.2, 1.2, .3, 1); }
@keyframes pop2 { from { opacity: 0; transform: translate(-50%, -8px) scale(.98); } }
.palette input { width: 100%; border: 0; outline: 0; background: transparent; padding: 18px 20px; font-size: 16px; border-bottom: 1px solid var(--line); }
.palette .res { max-height: 52vh; overflow-y: auto; padding: 8px; }
.palette .it { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; cursor: pointer; }
.palette .it.sel, .palette .it:hover { background: var(--panel2); }
.palette .it svg { width: 17px; height: 17px; color: var(--gold); }
.tip { position: fixed; z-index: 90; pointer-events: none; background: var(--panel-pop); border: 1px solid var(--line2); border-radius: 12px; padding: 9px 11px; font-size: 12.5px; box-shadow: var(--shadow-pop); min-width: 120px; transition: opacity .12s; }
.tip b { display: block; font-size: 11.5px; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.tip .tr { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.tip .tr i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }

/* ---------- charts ---------- */
.chart { width: 100%; position: relative; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .grid-l { stroke: var(--line); stroke-width: 1; }
.chart .axis-t { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .lbl-t { fill: var(--ink2); font-size: 11.5px; font-weight: 700; font-family: var(--font); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--ink2); font-weight: 600; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.donut-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.donut-wrap .chart { width: 150px; flex: none; }
.funnel { display: flex; flex-direction: column; gap: 9px; }
.fstep { display: grid; grid-template-columns: 130px 1fr 64px; align-items: center; gap: 12px; }
.fstep .fl { font-weight: 700; font-size: 12.8px; color: var(--ink2); }
.fbar { height: 34px; border-radius: 10px; background: var(--panel2); position: relative; overflow: hidden; }
.fbar b { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 10px; background: linear-gradient(90deg, var(--gold3), var(--gold2)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 18px -8px var(--gold); transform-origin: left; animation: grow 1s cubic-bezier(.2, .8, .2, 1) both; display: flex; align-items: center; padding-left: 12px; color: var(--gold-ink); font-weight: 800; font-size: 13px; min-width: 38px; }
@keyframes grow { from { transform: scaleX(0); } }
.fstep .fr { font-size: 12px; color: var(--muted); font-weight: 700; text-align: right; }
.ring { position: relative; width: 104px; height: 104px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .rv { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-weight: 800; font-size: 20px; line-height: 1.05; }
.ring .rv small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 700; letter-spacing: .04em; margin-top: 2px; }
.bars-mini { display: flex; align-items: flex-end; gap: 3px; height: 54px; }
.bars-mini i { flex: 1; border-radius: 3px 3px 1px 1px; background: var(--good); min-height: 3px; position: relative; cursor: default; transition: opacity .2s; }
.bars-mini i:hover { opacity: .7; }

/* ---------- hero (overview) ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 10px; border-radius: var(--radius-lg); border: 1px solid var(--line); overflow: hidden; position: relative; min-height: 380px; background: radial-gradient(700px 400px at 78% 60%, rgba(216, 180, 74, .14), transparent 60%), radial-gradient(500px 300px at 10% 100%, rgba(62, 81, 70, .5), transparent 70%), linear-gradient(160deg, var(--bg3), var(--bg2)); box-shadow: var(--shadow); }
:root[data-theme="light"] .hero { background: radial-gradient(700px 400px at 78% 60%, rgba(216, 180, 74, .18), transparent 60%), radial-gradient(500px 300px at 10% 100%, rgba(127, 165, 138, .25), transparent 70%), linear-gradient(160deg, #fffdf6, #efe9dc); }
.hero-l { padding: 34px 10px 30px 34px; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; }
.hero-l h1 { margin: 10px 0 12px; }
.hero-l h1 em { font-style: italic; color: var(--gold); }
.hero-l .lead { font-size: 16px; color: var(--ink2); max-width: 520px; }
.hero-l .lead b { color: var(--ink); }
.hero-r { position: relative; min-height: 340px; }
.hero-r canvas, .scene canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.hero-legend { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; z-index: 2; }
.hero-legend .chip { background: color-mix(in srgb, var(--panel-pop) 70%, transparent); backdrop-filter: blur(8px); }
.hero-cap { position: absolute; top: 16px; right: 18px; z-index: 2; font-size: 11.5px; color: var(--muted); text-align: right; max-width: 220px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.brief { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.brief-i { display: flex; gap: 12px; padding: 14px; border-radius: 15px; background: var(--panel); border: 1px solid var(--line); cursor: pointer; transition: transform .2s, border-color .2s; align-items: flex-start; }
.brief-i:hover { transform: translateY(-2px); border-color: rgba(216, 180, 74, .4); }
.brief-n { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; color: var(--gold-ink); background: linear-gradient(135deg, var(--gold2), var(--gold3)); flex: none; font-size: 13px; }
.feed { max-height: 430px; overflow-y: auto; scrollbar-width: thin; }
.feed .row { animation: feedIn .5s cubic-bezier(.2, 1, .3, 1) both; }
@keyframes feedIn { from { opacity: 0; transform: translateX(-8px); } }
.occ { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-around; }
.occ > div { text-align: center; }
.occ .ol { font-weight: 700; font-size: 12.5px; margin-top: 6px; }
.occ .os { font-size: 11.5px; color: var(--muted); }

/* ---------- social ---------- */
.composer { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; }
.plat { display: flex; gap: 8px; }
.plat button { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line2); background: transparent; cursor: pointer; font-weight: 700; font-size: 13px; color: var(--muted); transition: .2s; }
.plat button svg { width: 17px; height: 17px; }
.plat button.on { color: var(--ink); border-color: var(--gold); background: var(--gold-soft); }
.media-pick { display: flex; gap: 10px; align-items: center; }
.media-thumb { width: 74px; height: 74px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line2); background: var(--panel2); display: grid; place-items: center; color: var(--faint); cursor: pointer; flex: none; overflow: hidden; }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.photo-grid button { border: 2px solid transparent; padding: 0; border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--panel2); aspect-ratio: 4/3; position: relative; }
.photo-grid button img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.photo-grid button:hover img { transform: scale(1.06); }
.photo-grid button.on { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.photo-grid button.on::after { content: '✓'; position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); font-weight: 900; font-size: 12px; display: grid; place-items: center; }
.photo-grid button span { position: absolute; left: 0; right: 0; bottom: 0; font-size: 10.5px; padding: 14px 6px 4px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); text-align: left; font-weight: 600; }
.phone { width: 300px; max-width: 100%; margin: 0 auto; border-radius: 34px; padding: 12px; background: linear-gradient(145deg, #1d2621, #0b100d); border: 1px solid rgba(255, 255, 255, .12); box-shadow: var(--shadow-pop), inset 0 0 0 2px rgba(255, 255, 255, .03); transform: perspective(1200px) rotateY(-10deg) rotateX(4deg); transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.phone:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }
.phone-s { border-radius: 24px; overflow: hidden; background: #fff; color: #111; font-size: 12.5px; }
.phone-h { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-weight: 700; }
.phone-h img { width: 28px; height: 28px; border-radius: 50%; object-fit: contain; background: #fff; border: 1px solid #eee; }
.phone-img { aspect-ratio: 1/1; background: #e9ece8; display: grid; place-items: center; color: #999; overflow: hidden; }
.phone-img img { width: 100%; height: 100%; object-fit: cover; }
.phone-t { padding: 10px 12px 14px; white-space: pre-wrap; line-height: 1.45; max-height: 210px; overflow: hidden; word-break: break-word; }
.phone-t .tag { color: #2a5db0; }
.phone-a { display: flex; gap: 14px; padding: 2px 12px 8px; color: #555; }
.phone-a svg { width: 19px; height: 19px; }
.qcard { display: flex; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); align-items: flex-start; }
.qcard img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal .dh { font-size: 11px; color: var(--muted); font-weight: 700; text-align: center; padding: 4px; }
.cal .dd { min-height: 76px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); padding: 5px; font-size: 11px; overflow: hidden; }
.cal .dd.today { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.cal .dd.out { opacity: .35; }
.cal .dn { font-weight: 800; color: var(--muted); margin-bottom: 3px; }
.cal .ev { display: block; border-radius: 5px; padding: 1px 5px; margin-bottom: 2px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 10.5px; }
.cal .ev.pub { background: color-mix(in srgb, var(--c5) 22%, transparent); color: var(--ink); }
.cal .ev.sch { background: color-mix(in srgb, var(--c1) 22%, transparent); color: var(--ink); }
.cal .ev.apr { background: var(--warn-soft); color: var(--ink); }
.cal .ev.evt { background: var(--gold-soft); color: var(--ink); }
.inbox { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 18px; min-height: 560px; }
.msg { display: flex; gap: 11px; padding: 12px; border-radius: 14px; cursor: pointer; border: 1px solid transparent; transition: background .15s; position: relative; }
.msg:hover { background: var(--panel2); }
.msg.on { background: var(--panel2); border-color: var(--line2); }
.msg.open::before { content: ''; position: absolute; left: 3px; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); transform: translateY(-50%); }
.bubble { padding: 12px 14px; border-radius: 16px; background: var(--panel2); max-width: 85%; white-space: pre-wrap; word-break: break-word; }
.bubble.me { background: var(--gold-soft); border: 1px solid rgba(216, 180, 74, .25); margin-left: auto; }

/* ---------- ads ---------- */
.camp { display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(5, minmax(0, 1fr)) 196px; gap: 12px; align-items: center; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.camp:last-child { border-bottom: 0; }
.camp.head { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding-top: 4px; padding-bottom: 8px; }
.camp .cv { font-weight: 800; font-variant-numeric: tabular-nums; }
.camp .cl { display: none; font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line2); border-radius: 10px; overflow: hidden; }
.stepper button { width: 28px; height: 30px; border: 0; background: var(--panel2); cursor: pointer; font-weight: 800; }
.stepper input { width: 58px; height: 30px; border: 0; text-align: center; background: transparent; font-weight: 800; outline: none; }
.adprev { border-radius: 16px; overflow: hidden; background: #fff; color: #1c1e21; border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 12.5px; }
.adprev .ah { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.adprev .ah img { width: 32px; height: 32px; border-radius: 50%; object-fit: contain; border: 1px solid #eee; }
.adprev .ah b { display: block; font-size: 13px; }
.adprev .ah small { color: #65676b; }
.adprev .at { padding: 0 12px 10px; line-height: 1.45; }
.adprev .ai { aspect-ratio: 1.91/1; background: #eee; overflow: hidden; }
.adprev .ai img { width: 100%; height: 100%; object-fit: cover; }
.adprev .af { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #f0f2f5; }
.adprev .af .grow small { color: #65676b; text-transform: uppercase; font-size: 10.5px; }
.adprev .af b { display: block; font-size: 13.5px; }
.adprev .cta { background: #e4e6eb; border-radius: 6px; padding: 7px 12px; font-weight: 700; white-space: nowrap; }
.rec { display: flex; gap: 14px; padding: 14px; border-radius: 15px; border: 1px solid var(--line); background: var(--panel); align-items: flex-start; }
.rec.applied { opacity: .55; }
.imp { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 20px; }
.imp.high { background: var(--gold-soft); color: var(--gold); } .imp.medium { background: color-mix(in srgb, var(--c1) 15%, transparent); color: var(--c1); } .imp.low { background: var(--panel2); color: var(--muted); }

/* ---------- receptionist ---------- */
.orb-wrap { position: relative; width: 150px; height: 150px; flex: none; display: grid; place-items: center; }
.orb { width: 92px; height: 92px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #fff6d8, var(--gold2) 22%, var(--gold) 46%, #6b4f12 80%); box-shadow: 0 0 60px -6px var(--gold), inset -8px -10px 24px rgba(0, 0, 0, .35); position: relative; z-index: 2; animation: breathe 4s ease-in-out infinite; }
.orb.off { filter: grayscale(1) brightness(.7); animation: none; box-shadow: none; }
.orb-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(216, 180, 74, .35); animation: ringOut 3.2s cubic-bezier(.2, .6, .3, 1) infinite; }
.orb-ring:nth-child(2) { animation-delay: 1.06s; } .orb-ring:nth-child(3) { animation-delay: 2.12s; }
.orb-wrap.off .orb-ring { display: none; }
.orb-wrap.talk .orb { animation: talk .5s ease-in-out infinite alternate; }
.orb-wrap.listen .orb-ring { border-color: var(--c5); }
@keyframes breathe { 50% { transform: scale(1.05); box-shadow: 0 0 80px 0 var(--gold), inset -8px -10px 24px rgba(0, 0, 0, .35); } }
@keyframes talk { to { transform: scale(1.1); } }
@keyframes ringOut { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.15); opacity: 0; } }
.callbox { display: flex; flex-direction: column; height: 520px; border-radius: var(--radius); border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 40%, transparent); overflow: hidden; }
.callbox-h { display: flex; align-items: center; gap: 14px; padding: 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.callbox-b { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.callbox-f { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.turn { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: 13.8px; line-height: 1.5; animation: feedIn .3s both; }
.turn.ai { background: var(--panel2); border-bottom-left-radius: 5px; }
.turn.caller { background: var(--gold-soft); border: 1px solid rgba(216, 180, 74, .22); margin-left: auto; border-bottom-right-radius: 5px; }
.turn small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 700; letter-spacing: .04em; margin-bottom: 3px; text-transform: uppercase; }
.wave { display: flex; align-items: center; gap: 3px; height: 26px; }
.wave i { width: 3px; border-radius: 3px; background: var(--gold); height: 6px; animation: wave 1s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: .1s; } .wave i:nth-child(3) { animation-delay: .2s; } .wave i:nth-child(4) { animation-delay: .3s; } .wave i:nth-child(5) { animation-delay: .4s; } .wave i:nth-child(6) { animation-delay: .5s; } .wave i:nth-child(7) { animation-delay: .6s; }
.wave.idle i { animation: none; height: 4px; opacity: .4; }
@keyframes wave { 50% { height: 24px; } }
.langs { display: flex; flex-wrap: wrap; gap: 8px; }
.lang { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line2); cursor: pointer; font-weight: 700; font-size: 13px; background: transparent; transition: .2s; }
.lang small { color: var(--muted); font-weight: 600; }
.lang.on { border-color: var(--gold); background: var(--gold-soft); }
.lang .need { font-size: 10px; color: var(--warn); font-weight: 800; }
.result { border-radius: 16px; padding: 14px; background: var(--good-soft); border: 1px solid color-mix(in srgb, var(--good) 35%, transparent); animation: pop3 .45s cubic-bezier(.2, 1.3, .3, 1); }
@keyframes pop3 { from { transform: scale(.94); opacity: 0; } }
.copybox { display: flex; gap: 8px; align-items: center; padding: 8px 8px 8px 12px; border-radius: 12px; border: 1px dashed var(--line2); font-family: ui-monospace, Consolas, monospace; font-size: 12px; word-break: break-all; }
.copybox span { flex: 1; min-width: 0; }

/* ---------- leads ---------- */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x proximity; }
.col { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; min-height: 440px; max-height: calc(100vh - 260px); scroll-snap-align: start; }
.col-h { padding: 12px 14px; display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; border-bottom: 1px solid var(--line); }
.col-h .n { margin-left: auto; font-size: 11.5px; color: var(--muted); background: var(--panel2); border-radius: 20px; padding: 1px 8px; }
.col-b { padding: 10px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; flex: 1; scrollbar-width: thin; }
.col.drop { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold), 0 0 30px -10px var(--gold); }
.lcard { padding: 11px 12px; border-radius: 13px; background: var(--panel-solid); border: 1px solid var(--line); cursor: grab; transition: transform .18s, box-shadow .18s, border-color .18s; }
:root[data-theme="light"] .lcard { background: #fff; }
.lcard:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line2); }
.lcard.drag { opacity: .45; }
.lcard-t { font-weight: 800; font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.lcard-m { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.lcard-f { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl { position: relative; padding-bottom: 14px; }
.tl::before { content: ''; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--panel-pop); border: 2px solid var(--gold); }
.tl .tt { font-size: 13px; }
.tl .ts { font-size: 11.5px; color: var(--muted); }
.units { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 5px; }
.unit { aspect-ratio: 1; border-radius: 7px; border: 0; cursor: pointer; font-size: 9.5px; font-weight: 800; color: rgba(255, 255, 255, .85); display: grid; place-items: center; transition: transform .15s; }
.unit:hover { transform: scale(1.15); z-index: 1; }
.unit.occupied { background: color-mix(in srgb, var(--sage2) 55%, var(--bg)); color: var(--ink2); }
.unit.reserved { background: var(--warn); }
.unit.available { background: var(--gold); color: var(--gold-ink); box-shadow: 0 0 14px -2px var(--gold); }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.plan-c { border-radius: 16px; border: 1px solid var(--line); overflow: hidden; background: var(--panel); transition: transform .3s; }
.plan-c:hover { transform: translateY(-4px) rotateX(4deg); }
.plan-c img { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: #fff; padding: 8px; }
.plan-c div { padding: 10px 12px; }
.daycol { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.daycol:last-child { border-bottom: 0; }
.daycol .dl { font-weight: 800; }
.daycol .dl small { display: block; color: var(--muted); font-weight: 600; font-size: 12px; }

/* ---------- site ---------- */
.status-big { display: flex; align-items: center; gap: 18px; }
.status-big .sb { width: 70px; height: 70px; border-radius: 22px; display: grid; place-items: center; background: var(--good-soft); color: var(--good); position: relative; }
.status-big .sb::after { content: ''; position: absolute; inset: -6px; border-radius: 26px; border: 2px solid var(--good); opacity: .35; animation: ringOut 2.6s infinite; }
.status-big .sb.down { background: var(--bad-soft); color: var(--bad); } .status-big .sb.down::after { border-color: var(--bad); }
.status-big .sb svg { width: 32px; height: 32px; }
.uptime { display: flex; gap: 3px; align-items: flex-end; height: 44px; }
.uptime i { flex: 1; height: 100%; border-radius: 4px; background: var(--good); opacity: .9; transition: transform .15s; cursor: default; }
.uptime i:hover { transform: scaleY(1.08); opacity: 1; }
.uptime i.w { background: var(--warn); } .uptime i.b { background: var(--bad); } .uptime i.n { background: var(--panel2); }
.gauges { display: flex; gap: 14px; flex-wrap: wrap; justify-content: space-around; }
.gauge { text-align: center; }
.gauge .ring { width: 92px; height: 92px; margin: 0 auto; }
.gauge .gl { font-size: 12px; font-weight: 700; margin-top: 6px; color: var(--ink2); }
.issue { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: flex-start; font-size: 13.2px; }
.issue:last-child { border-bottom: 0; }
.issue svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.issue.critical svg { color: var(--bad); } .issue.warning svg { color: var(--warn); } .issue.info svg { color: var(--info); } .issue.pass svg { color: var(--good); }

/* ---------- reports ---------- */
.months { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.month { padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; transition: transform .2s, border-color .2s; text-align: left; }
.month:hover { transform: translateY(-3px); border-color: var(--line2); }
.month.on { border-color: var(--gold); background: linear-gradient(160deg, var(--gold-soft), transparent), var(--panel); }
.month b { font-family: var(--display); font-weight: 500; font-size: 17px; display: block; }
.month .mn { display: flex; gap: 10px; font-size: 11.5px; color: var(--muted); margin-top: 6px; flex-wrap: wrap; }
.report-frame { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; min-height: 900px; box-shadow: var(--shadow); }

/* ---------- brochure studio ---------- */
.studio { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 18px; align-items: start; }
.opt-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.opt-card { border: 1px solid var(--line2); border-radius: 14px; padding: 10px; cursor: pointer; background: transparent; text-align: center; font-weight: 700; font-size: 12.5px; transition: .2s; }
.opt-card.on { border-color: var(--gold); background: var(--gold-soft); }
.opt-card .fold { height: 44px; display: flex; justify-content: center; gap: 2px; margin-bottom: 6px; perspective: 200px; }
.opt-card .fold i { width: 16px; background: var(--panel2); border: 1px solid var(--line2); border-radius: 2px; }
.opt-card .fold i:nth-child(1) { transform: rotateY(25deg); } .opt-card .fold i:nth-child(3) { transform: rotateY(-25deg); }
.swatch { display: flex; height: 22px; border-radius: 6px; overflow: hidden; margin-bottom: 6px; }
.swatch i { flex: 1; }
.bro-lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.bro-card { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); cursor: pointer; transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; transform-style: preserve-3d; }
.bro-card:hover { transform: perspective(900px) rotateY(-8deg) rotateX(3deg) translateY(-4px); box-shadow: var(--shadow-pop); }
.bro-card .bc-img { height: 150px; position: relative; overflow: hidden; }
.bro-card .bc-img img { width: 100%; height: 100%; object-fit: cover; }
.bro-card .bc-img .ov { position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(10, 20, 15, .85)); display: flex; align-items: flex-end; padding: 12px; color: #fff; font-family: var(--display); font-size: 17px; line-height: 1.15; }
.bro-card .bc-b { padding: 10px 12px; }
.gen-anim { display: grid; place-items: center; padding: 50px 20px; text-align: center; }
.paper3d { width: 150px; height: 110px; position: relative; perspective: 600px; margin-bottom: 18px; }
.paper3d i { position: absolute; top: 0; width: 50px; height: 110px; background: linear-gradient(160deg, #fffaf0, #e9e2cf); border: 1px solid #d8cfb6; transform-origin: left center; box-shadow: 0 10px 20px rgba(0, 0, 0, .2); }
.paper3d i:nth-child(1) { left: 0; transform-origin: right center; animation: foldL 2.4s ease-in-out infinite; }
.paper3d i:nth-child(2) { left: 50px; }
.paper3d i:nth-child(3) { left: 100px; animation: foldR 2.4s ease-in-out infinite; }
@keyframes foldL { 50% { transform: rotateY(-160deg); } }
@keyframes foldR { 50% { transform: rotateY(160deg); } }
.editor-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); position: sticky; top: calc(var(--top) + 10px); z-index: 5; backdrop-filter: var(--glass); margin-bottom: 18px; }
.bro-stage { overflow-x: auto; padding: 10px 0 30px; }
.bro-stage.three { perspective: 2200px; }

/* ---------- strategy ---------- */
.phases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; position: relative; }
.phase { border-radius: 18px; padding: 16px; border: 1px solid var(--line); background: var(--panel); position: relative; }
.phase .pn { font-family: var(--display); font-size: 40px; color: var(--gold); opacity: .35; position: absolute; right: 14px; top: 6px; }
.phase ul, .plain-ul { margin: 10px 0 0; padding-left: 18px; }
.phase li, .plain-ul li { margin-bottom: 6px; font-size: 13.2px; color: var(--ink2); }
.idea { padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; gap: 8px; transition: transform .25s; }
.idea:hover { transform: translateY(-3px); }
.idea .ih { font-style: italic; color: var(--ink2); font-family: var(--display); font-size: 15px; }
.moment { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.moment:last-child { border-bottom: 0; }
.moment .md { width: 52px; text-align: center; flex: none; border-radius: 12px; background: var(--panel2); padding: 6px 0; }
.moment .md b { display: block; font-size: 18px; line-height: 1; }
.moment .md small { font-size: 10.5px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.checklist label { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); cursor: pointer; align-items: flex-start; }
.checklist input { margin-top: 3px; accent-color: var(--gold); width: 17px; height: 17px; flex: none; }
.checklist input:checked + span { text-decoration: line-through; color: var(--muted); }

/* ---------- feedback ---------- */
.theme-c { padding: 13px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.theme-c q { display: block; font-family: var(--display); font-style: italic; color: var(--ink2); margin-top: 6px; font-size: 14px; }
.distrib .dr { display: grid; grid-template-columns: 34px 1fr 34px; gap: 10px; align-items: center; font-size: 12.5px; margin-bottom: 6px; }
.distrib .dr div { height: 10px; border-radius: 6px; background: var(--panel2); overflow: hidden; }
.distrib .dr b { display: block; height: 100%; background: var(--gold); border-radius: 6px; }
.qr { background: #fff; padding: 10px; border-radius: 14px; width: 150px; height: 150px; flex: none; }
.qr img, .qr canvas, .qr svg { width: 100%; height: 100%; }

/* ---------- copilot ---------- */
.fab { position: fixed; right: 22px; bottom: 22px; z-index: 50; width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer; background: radial-gradient(circle at 30% 25%, #fff7da, var(--gold2) 25%, var(--gold) 52%, #5e4510 92%); box-shadow: 0 14px 40px -8px var(--gold), inset -6px -8px 18px rgba(0, 0, 0, .3); display: grid; place-items: center; transition: transform .3s cubic-bezier(.2, 1.4, .4, 1); color: var(--gold-ink); }
.fab:hover { transform: scale(1.08) rotate(-8deg); }
.fab svg { width: 26px; height: 26px; }
.fab::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(216, 180, 74, .5); animation: ringOut 3s infinite; }
.copilot { position: fixed; right: 22px; bottom: 96px; z-index: 55; width: min(430px, calc(100vw - 24px)); height: min(640px, calc(100vh - 130px)); display: flex; flex-direction: column; background: var(--panel-pop); border: 1px solid var(--line2); border-radius: 24px; box-shadow: var(--shadow-pop); overflow: hidden; animation: popUp .35s cubic-bezier(.2, 1.2, .3, 1); transform-origin: bottom right; }
@keyframes popUp { from { opacity: 0; transform: scale(.9) translateY(16px); } }
.copilot-h { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: linear-gradient(120deg, var(--gold-soft), transparent); }
.copilot-b { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.copilot-f { padding: 10px; border-top: 1px solid var(--line); display: flex; gap: 8px; }
.copilot-f textarea { flex: 1; resize: none; height: 46px; min-height: 46px; max-height: 120px; border-radius: 14px; border: 1px solid var(--line2); background: transparent; padding: 12px; outline: none; }
.cm { max-width: 90%; padding: 11px 14px; border-radius: 16px; font-size: 13.6px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; animation: feedIn .3s both; }
.cm.user { margin-left: auto; background: linear-gradient(180deg, var(--gold2), var(--gold)); color: var(--gold-ink); border-bottom-right-radius: 5px; font-weight: 600; }
.cm.assistant { background: var(--panel2); border-bottom-left-radius: 5px; }
.sugg { display: flex; flex-wrap: wrap; gap: 6px; }
.typing { display: inline-flex; gap: 4px; padding: 14px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: bounce 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 30% { transform: translateY(-5px); opacity: 1; } 0%, 60%, 100% { opacity: .4; } }

/* ---------- settings ---------- */
.conn { display: flex; gap: 14px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); align-items: flex-start; }
.conn .ico { width: 44px; height: 44px; border-radius: 13px; }
.envs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.envs code { font-size: 11px; padding: 2px 7px; border-radius: 6px; background: var(--panel2); border: 1px solid var(--line); }
.incl { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.incl > div { padding: 14px; border-radius: 15px; border: 1px solid var(--line); background: var(--panel); }

/* ---------- mobile tab bar ---------- */
.tabbar { display: none; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; background: var(--panel-pop); border-top: 1px solid var(--line2); border-radius: 24px 24px 0 0; padding: 10px 16px calc(20px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-pop); animation: sheetUp .35s cubic-bezier(.2, 1, .3, 1); max-height: 80vh; overflow-y: auto; }
@keyframes sheetUp { from { transform: translateY(100%); } }
.sheet .grab { width: 44px; height: 5px; border-radius: 4px; background: var(--line2); margin: 0 auto 12px; }
.sheet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sheet-grid a { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 14px 6px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); font-size: 12px; font-weight: 700; text-align: center; }
.sheet-grid a svg { width: 22px; height: 22px; color: var(--gold); }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .camp { grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)) 196px; }
  .camp .hide-md { display: none; }
  .months { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  :root { --side: 78px; }
  .side { padding: 16px 10px; }
  .brand-t, .brand-s, .nav-g, .nav a span, .nav .count, .by-t { display: none; }
  .brand { justify-content: center; padding: 4px 0 16px; }
  .nav a { justify-content: center; padding: 11px; }
  .nav a.active::before { left: -10px; }
  .by { justify-content: center; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .composer, .studio { grid-template-columns: 1fr; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brief { grid-template-columns: 1fr; }
  .searchbtn { min-width: 0; }
  .searchbtn span, .searchbtn kbd { display: none; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .top { padding: 0 14px; height: 60px; --top: 60px; gap: 8px; }
  .top-title { font-size: 18px; }
  .top-title small { display: none; }
  .livepill { padding: 5px 9px; font-size: 10.5px; }
  .livepill span { display: none; }
  .view { padding: 16px 16px 120px; }
  .g2, .g3, .g-21, .g-12, .g-32 { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 13px 12px 10px; }
  .kpi-s { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-l { padding: 24px 20px 6px; }
  .hero-r { min-height: 300px; }
  .hero-cap { display: none; }
  .card { padding: 16px; border-radius: 16px; }
  .inbox { grid-template-columns: 1fr; min-height: 0; }
  .inbox.detail .inbox-list { display: none; }
  .inbox:not(.detail) .inbox-detail { display: none; }
  .camp { grid-template-columns: 1fr 1fr 1fr; row-gap: 10px; }
  .camp.head { display: none; }
  .camp .cname { grid-column: 1 / -1; }
  .camp .cl { display: block; }
  .camp .hide-md { display: block; }
  .camp .cact { grid-column: 1 / -1; }
  .fstep { grid-template-columns: 96px 1fr 48px; gap: 8px; }
  .form-row, .form-row.three { grid-template-columns: 1fr; }
  .months { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phases { grid-template-columns: 1fr; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opt-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cal .dd { min-height: 54px; padding: 3px; }
  .cal .ev { font-size: 0; height: 6px; padding: 0; }
  .callbox { height: 480px; }
  .drawer { width: 100vw; border-left: 0; }
  .modal { border-radius: 22px; }
  .fab { bottom: calc(78px + env(safe-area-inset-bottom)); right: 14px; width: 54px; height: 54px; }
  .copilot { right: 8px; left: 8px; width: auto; bottom: calc(80px + env(safe-area-inset-bottom)); height: calc(100vh - 160px); }
  .toasts { bottom: calc(86px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); border-top: 1px solid var(--line); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; color: var(--muted); padding: 6px 0; border: 0; background: none; position: relative; }
  .tabbar svg { width: 22px; height: 22px; }
  .tabbar .active { color: var(--gold); }
  .tabbar .count { position: absolute; top: 2px; left: 55%; background: var(--bad); color: #fff; font-size: 9.5px; border-radius: 10px; padding: 0 5px; }
  .kanban { grid-auto-columns: 84%; }
  .col { max-height: none; min-height: 300px; }
  .daycol { grid-template-columns: 64px minmax(0, 1fr); gap: 10px; }
  .daycol .flex { flex-wrap: wrap; row-gap: 4px; }
  .daycol .row { flex-wrap: wrap; }
  .bro-lib { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bro-card .bc-img { height: 110px; }
  .editor-bar { top: 70px; }
  .status-big { flex-wrap: wrap; }
}
@media (max-width: 420px) {
  .kpi-v { font-size: 22px; }
  .hero-actions .btn { flex: 1; }
  .bro-lib { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
@media print {
  body { background: #fff; }
  .side, .top, .tabbar, .fab, .copilot, .aurora, .grain { display: none !important; }
}

/* Vietnamese text needs a serif with full diacritics */
.ov[lang="vi"], [lang="vi"] > h1, [lang="vi"] > h2 { font-family: "Noto Serif", Georgia, serif; }
