/* Orbitrix · Compliance-Ready Reports — demo styles */
:root {
  --brand: #5B4BF5; --brand-2: #7C6CFF; --brand-ink: #3A2CC9; --brand-bg: #EFEDFF;
  --navy: #0A0F1F; --navy-2: #121a33; --navy-3: #1b2547;
  --ink: #0D1324; --ink-2: #3B4462; --muted: #6B7390; --faint: #98A0B8;
  --bg: #F3F5FA; --card: #FFFFFF; --line: #E4E7EF; --line-2: #EEF0F6;
  --green: #119C4F; --green-bg: #E4F6EB; --amber: #B96404; --amber-bg: #FFF3DD;
  --red: #E5484D; --red-bg: #FFEDED; --blue: #0E7AE6; --blue-bg: #E6F1FD; --pink: #DB2777;
  --radius: 16px; --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(13,19,36,.06), 0 1px 1px rgba(13,19,36,.04);
  --shadow: 0 1px 2px rgba(13,19,36,.05), 0 8px 24px -8px rgba(13,19,36,.12);
  --shadow-lg: 0 24px 64px -16px rgba(10,15,31,.35);
  --ease: cubic-bezier(.2,.8,.2,1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --sidebar: 264px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
a { color: var(--brand); text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select { font: inherit; color: inherit; }
.num, .money, td.m, .kpi-value { font-variant-numeric: tabular-nums; }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i-sm { width: 15px; height: 15px; }
.i-lg { width: 22px; height: 22px; }
[hidden] { display: none !important; }

/* ---------- boot ---------- */
.boot { position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; background: var(--navy); color: #c9cfe6; z-index: 100; transition: opacity .5s var(--ease), visibility .5s; }
.boot.out { opacity: 0; visibility: hidden; }
.boot-ring { width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgba(255,255,255,.12); border-top-color: var(--brand-2); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; background: radial-gradient(120% 60% at 0% 0%, #1d2350 0%, var(--navy) 55%); color: #c9cfe6; padding: 22px 16px 16px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 11px; min-height: 40px; padding: 0 6px; }
.logo-slot.logo-icon img { width: 34px; height: 34px; max-width: none; max-height: none; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 6px 18px -6px rgba(124,108,255,.55); }
.topbar .logo-slot.logo-icon img { width: 32px; height: 32px; box-shadow: 0 4px 12px -4px rgba(10,15,31,.45); }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: .26em; color: #fff; line-height: 1; }
.wordmark span { background: linear-gradient(135deg, #fff 55%, #a78bfa 56%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.product-name { font-family: var(--display); font-weight: 700; color: #fff; font-size: 13px; letter-spacing: .02em; padding: 0 6px; opacity: .9; margin-top: -6px; }
.logo-slot { display: inline-flex; align-items: center; justify-content: center; }
.logo-slot img { display: block; max-height: 34px; max-width: 200px; }
.logo-slot.logo-icon img { max-height: 30px; max-width: 30px; }
.logo-placeholder { border: 1.5px dashed rgba(124,108,255,.8); color: #b9b2ff; background: rgba(91,75,245,.08); border-radius: 8px; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 6px 9px; line-height: 1.25; text-align: center; }
.topbar .logo-placeholder { color: var(--brand); background: var(--brand-bg); }
.biz-card { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 10px; text-align: left; color: inherit; transition: background .2s; }
.biz-card:hover { background: rgba(255,255,255,.09); }
.biz-avatar { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, #f7c948, #e8833a); color: #3b2300; font-weight: 800; display: grid; place-items: center; font-size: 12px; }
.biz-meta { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.biz-meta strong { color: #fff; font-size: 13px; }
.biz-meta small { color: #8e97b8; font-size: 11.5px; }
.nav { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.nav-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: #6c7598; padding: 12px 10px 6px; font-weight: 600; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; color: #b5bcd8; font-weight: 500; position: relative; transition: background .2s, color .2s; }
.nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav a.active { background: rgba(124,108,255,.16); color: #fff; }
.nav a.active::before { content: ""; position: absolute; left: -16px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand-2); }
.nav .count { margin-left: auto; font-size: 11px; font-weight: 700; background: var(--red); color: #fff; border-radius: 99px; padding: 1px 7px; }
.nav .count.amber { background: #f59e0b; color: #3b2300; }
.side-cta { margin-top: auto; position: relative; overflow: hidden; border-radius: 14px; padding: 16px; background: linear-gradient(140deg, #3c2fd0, #5B4BF5 60%, #8b7dff); color: #fff; }
.side-cta strong { font-family: var(--display); font-size: 15px; display: block; }
.side-cta p { margin: 4px 0 12px; font-size: 12.5px; opacity: .85; }
.side-cta-glow { position: absolute; width: 160px; height: 160px; right: -60px; top: -70px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.35), transparent 65%); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translate(-14px, 10px); } }

.main { min-width: 0; display: flex; flex-direction: column; }
.disclaimer-bar { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 12px; color: #5a4300; background: linear-gradient(90deg, #FFF6DE, #FFF1D0); border-bottom: 1px solid #f3e1ad; padding: 7px 16px; text-align: center; }
.disclaimer-bar .i { width: 15px; height: 15px; color: var(--amber); }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 28px; background: rgba(243,245,250,.82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.topbar-left > div { min-width: 0; }
.topbar-right { flex: none; }
@media (max-width: 1240px) { .topbar .chip-date { display: none; } #resetBtn { font-size: 0; gap: 0; padding: 9px 10px; } #resetBtn .i { width: 18px; height: 18px; } }
.crumb { font-size: 12px; color: var(--muted); font-weight: 500; }
.page-title { margin: 0; font-family: var(--display); font-size: 22px; letter-spacing: -.01em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #5B4BF5, #a78bfa); color: #fff; font-weight: 700; font-size: 12.5px; display: grid; place-items: center; box-shadow: 0 0 0 3px #fff; }
.view { padding: 8px 28px 40px; outline: none; flex: 1; }
.foot { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; padding: 18px 28px 26px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); }
.foot-dis { max-width: 720px; }
.bottomnav { display: none; }
.mobile-only { display: none !important; }

/* ---------- primitives ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 11px; padding: 9px 15px; font-weight: 600; font-size: 13.5px; white-space: nowrap; transition: transform .15s var(--ease), background .2s, box-shadow .2s, border-color .2s, opacity .2s; user-select: none; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -6px rgba(91,75,245,.65), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-primary:hover { background: var(--brand-ink); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-3); }
.btn-light { background: #fff; color: var(--brand-ink); }
.btn-light:hover { background: #f3f1ff; }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line); background: #fff; }
.btn-ghost:hover { border-color: #cfd4e2; background: #fafbfe; }
.btn-success { background: var(--green); color: #fff; box-shadow: 0 6px 16px -6px rgba(17,156,79,.6); }
.btn-success:hover { background: #0d8442; }
.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 9px; }
.btn-lg { padding: 12px 20px; font-size: 15px; border-radius: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.icon-btn { position: relative; width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--ink-2); transition: background .2s, transform .15s; }
.icon-btn:hover { background: #fafbfe; }
.icon-btn:active { transform: scale(.95); }
.badge { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); animation: pop .5s var(--ease); }
@keyframes pop { 0% { transform: scale(0); } 60% { transform: scale(1.2); } 100% { transform: scale(1); } }
.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 99px; padding: 4px 10px; font-size: 12px; font-weight: 600; background: #fff; border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.chip-date::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(17,156,79,.18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(17,156,79,0); } }
.link { color: var(--brand); font-weight: 600; background: none; border: 0; padding: 0; display: inline-flex; align-items: center; gap: 4px; }
.link:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }
.strong { font-weight: 700; }
.row { display: flex; align-items: center; gap: 10px; }
.row-wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.mt0 { margin-top: 0; } .mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; padding: 3px 9px 3px 8px; border-radius: 99px; white-space: nowrap; transition: background .4s, color .4s; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.done { color: var(--green); background: var(--green-bg); }
.status.soon { color: var(--amber); background: var(--amber-bg); }
.status.overdue { color: var(--red); background: var(--red-bg); }
.status.upcoming { color: var(--blue); background: var(--blue-bg); }
.status.flash { animation: flashDone 1.2s var(--ease); }
@keyframes flashDone { 0% { transform: scale(1); } 30% { transform: scale(1.18); box-shadow: 0 0 0 8px rgba(17,156,79,.15); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(17,156,79,0); } }
.agency { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--ink-2); }
.agency i { width: 8px; height: 8px; border-radius: 3px; display: inline-block; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 20px; }
.card-h { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.card-h h3 { margin: 0; font-size: 14.5px; font-family: var(--display); }
.card-h .sub { color: var(--muted); font-size: 12.5px; }
.card-b { padding: 16px 20px; }
.lift { transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.lift:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d9ddea; }
h2.section { font-family: var(--display); font-size: 16px; margin: 26px 0 12px; display: flex; align-items: center; gap: 8px; }

/* ---------- entrance animation ---------- */
.stagger > * { animation: rise .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.view.leaving { opacity: 0; transform: translateY(4px); transition: opacity .14s, transform .14s; }
.fade-in { animation: fade .35s var(--ease) both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- overview ---------- */
.hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; margin-top: 8px; }
.hello { padding: 24px; position: relative; overflow: hidden; }
.hello h2 { font-family: var(--display); font-size: 24px; margin: 0 0 6px; letter-spacing: -.01em; }
.hello p { margin: 0; color: var(--ink-2); max-width: 560px; }
.hello-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hello-pills .chip b { font-weight: 800; }
.feature { background: linear-gradient(150deg, var(--navy) 0%, #1a1f4d 55%, #31279a 100%); color: #dfe3f5; border: 0; padding: 22px; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.feature::after { content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(124,108,255,.55), transparent 65%); animation: float 7s ease-in-out infinite; }
.feature .eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: #a8a2ff; font-weight: 700; }
.feature h3 { font-family: var(--display); color: #fff; font-size: 19px; margin: 6px 0 2px; }
.feature .count-big { font-family: var(--display); font-size: 46px; font-weight: 800; color: #fff; line-height: 1; letter-spacing: -.02em; }
.feature .count-big small { font-size: 16px; font-weight: 600; color: #b9bfdc; margin-left: 4px; }
.feature .meta { display: flex; gap: 18px; margin: 16px 0 18px; flex-wrap: wrap; }
.feature .meta div { display: flex; flex-direction: column; }
.feature .meta span { font-size: 11.5px; color: #9aa2c6; }
.feature .meta b { color: #fff; font-size: 15px; }
.feature .btn { position: relative; z-index: 1; margin-top: auto; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.kpi { padding: 16px 18px; position: relative; overflow: hidden; cursor: pointer; text-align: left; }
.kpi-label { color: var(--muted); font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.kpi-label .dot { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; }
.kpi-value { font-family: var(--display); font-size: 27px; font-weight: 800; margin-top: 8px; letter-spacing: -.02em; line-height: 1.1; }
.kpi-foot { font-size: 12px; color: var(--muted); margin-top: 4px; }
.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; margin-top: 18px; }
.grid-2b { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.list { list-style: none; margin: 0; padding: 0; }
.li { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line-2); cursor: pointer; transition: background .2s; }
.li:first-child { border-top: 0; }
.li:hover { background: #fafbff; }
.li-date { width: 46px; flex: none; text-align: center; border-radius: 10px; background: var(--bg); padding: 5px 0; line-height: 1.1; }
.li-date b { display: block; font-family: var(--display); font-size: 17px; }
.li-date span { font-size: 10.5px; color: var(--muted); text-transform: uppercase; font-weight: 700; letter-spacing: .05em; }
.li-main { flex: 1; min-width: 0; }
.li-main .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-main .s { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-amt { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.bars { display: flex; flex-direction: column; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 96px 1fr 104px; align-items: center; gap: 12px; font-size: 13px; }
.bar-track { height: 10px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; width: 0; transition: width 1.1s var(--ease); }
.problem { display: flex; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line-2); cursor: pointer; transition: background .2s; align-items: flex-start; }
.problem:hover { background: #fffafa; }
.problem:first-child { border-top: 0; }
.p-ico { width: 30px; height: 30px; border-radius: 9px; background: var(--red-bg); color: var(--red); display: grid; place-items: center; flex: none; }
.empty-ok { padding: 26px 20px; text-align: center; color: var(--green); font-weight: 600; }
.ring-wrap { display: flex; align-items: center; gap: 18px; }
.ring { width: 92px; height: 92px; flex: none; }
.ring circle { fill: none; stroke-width: 9; }
.ring .bg { stroke: var(--line-2); }
.ring .fg { stroke: var(--green); stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--ease), stroke .4s; transform: rotate(-90deg); transform-origin: 50% 50%; }
.ring text { font-family: var(--display); font-weight: 800; font-size: 20px; fill: var(--ink); }
.cta-band { margin-top: 22px; border-radius: var(--radius); padding: 22px 24px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: linear-gradient(120deg, #ffffff, #f2f0ff); border: 1px solid #e3dffd; }
.cta-band h3 { margin: 0; font-family: var(--display); font-size: 17px; }
.cta-band p { margin: 2px 0 0; color: var(--ink-2); }

/* ---------- calendar ---------- */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0 16px; }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 3px; position: relative; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font-weight: 600; font-size: 12.5px; color: var(--muted); position: relative; z-index: 1; transition: color .2s; }
.seg button.on { color: var(--ink); background: var(--bg); box-shadow: var(--shadow-sm); }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.fchip { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 5px 11px; font-size: 12px; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; transition: all .2s; }
.fchip i { width: 8px; height: 8px; border-radius: 3px; }
.fchip.off { opacity: .45; }
.fchip:hover { border-color: #cfd4e2; }
.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.cal { overflow: hidden; }
.cal-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.cal-head h3 { margin: 0; font-family: var(--display); font-size: 16px; min-width: 150px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-dow { padding: 8px 10px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 700; border-bottom: 1px solid var(--line-2); }
.cal-day { min-height: 104px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 6px; display: flex; flex-direction: column; gap: 3px; transition: background .2s; }
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day.other { background: #fbfcfe; }
.cal-day.other .d { color: #c3c8d6; }
.cal-day .d { font-size: 12px; font-weight: 600; color: var(--ink-2); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.cal-day.today .d { background: var(--brand); color: #fff; box-shadow: 0 4px 10px -3px rgba(91,75,245,.6); }
.pill { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; padding: 3px 6px; border-radius: 6px; border: 0; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; transition: transform .15s, box-shadow .2s; }
.pill:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.pill i { width: 6px; height: 6px; border-radius: 2px; flex: none; }
.pill.done { background: #f1f8f3; color: #2f6b47; text-decoration: none; }
.pill.done span { opacity: .75; }
.pill.soon { background: var(--amber-bg); color: #7a4200; box-shadow: inset 0 0 0 1px #f5d48a; }
.pill.overdue { background: var(--red-bg); color: #a3171c; box-shadow: inset 0 0 0 1px #f8bcbe; }
.pill.upcoming { background: var(--blue-bg); color: #0a4f96; }
.pill.featured { animation: glow 2.2s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: inset 0 0 0 1px #f5d48a, 0 0 0 4px rgba(245,158,11,.22); } }
.agenda .group-h { padding: 10px 20px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--faint); background: #fbfcfe; border-top: 1px solid var(--line-2); }
.agenda .group-h:first-child { border-top: 0; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); padding: 12px 16px; border-top: 1px solid var(--line-2); }

/* ---------- drawer / modal / popover / toast ---------- */
.scrim { position: fixed; inset: 0; background: rgba(10,15,31,.38); backdrop-filter: blur(2px); z-index: 60; opacity: 0; transition: opacity .3s; }
.scrim.on { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); background: #fff; z-index: 61; box-shadow: var(--shadow-lg); transform: translateX(105%); transition: transform .42s var(--ease); display: flex; flex-direction: column; }
.drawer.on { transform: none; }
.drawer-h { padding: 20px 22px 16px; border-bottom: 1px solid var(--line-2); display: flex; gap: 12px; align-items: flex-start; }
.drawer-h h3 { margin: 4px 0 2px; font-family: var(--display); font-size: 19px; }
.drawer-b { padding: 18px 22px; overflow-y: auto; flex: 1; }
.drawer-f { padding: 16px 22px; border-top: 1px solid var(--line-2); display: flex; gap: 10px; flex-wrap: wrap; }
.close { margin-left: auto; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; flex: none; }
.close:hover { background: var(--bg); }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 9px 14px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 14px 26px; font-size: 13px; }
.timeline li::before { content: ""; position: absolute; left: 7px; top: 18px; bottom: -2px; width: 2px; background: var(--line-2); }
.timeline li:last-child::before { display: none; }
.timeline .tdot { position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: grid; place-items: center; }
.timeline .tdot.ok { border-color: var(--green); background: var(--green); color: #fff; }
.timeline .tdot.next { border-color: var(--brand); }
.timeline .tdot .i { width: 10px; height: 10px; stroke-width: 3; }
.box { border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.box-soft { background: var(--bg); border: 0; border-radius: 12px; padding: 14px; }
.lock-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.lock { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--brand); background: var(--brand-bg); border-radius: 99px; padding: 2px 8px; border: 0; }
.modal-wrap { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(10,15,31,.45); backdrop-filter: blur(3px); animation: fade .25s both; }
.modal { width: min(480px, 100%); background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); padding: 26px; animation: modalIn .4s var(--ease) both; max-height: calc(100vh - 32px); overflow-y: auto; }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.modal h3 { font-family: var(--display); font-size: 20px; margin: 12px 0 6px; }
.modal p { color: var(--ink-2); margin: 0 0 12px; }
.modal-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-bg); color: var(--brand); }
.modal-ico.green { background: var(--green-bg); color: var(--green); }
.modal-ico.red { background: var(--red-bg); color: var(--red); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.feature-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.feature-list li { display: flex; gap: 8px; font-size: 13px; color: var(--ink-2); }
.feature-list .i { color: var(--brand); margin-top: 1px; }
.popover { position: absolute; right: 28px; top: calc(100% - 4px); width: 380px; max-width: calc(100vw - 24px); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); z-index: 40; overflow: hidden; animation: popIn .3s var(--ease) both; }
@keyframes popIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.pop-h { display: flex; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.pop-h b { font-family: var(--display); }
.notif { display: flex; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line-2); cursor: pointer; }
.notif:hover { background: #fafbff; }
.notif.unread { background: #faf9ff; }
.notif.unread .t::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); margin-left: 6px; vertical-align: middle; }
.notif .t { font-weight: 600; font-size: 13px; }
.notif .s { font-size: 12px; color: var(--muted); }
.n-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.pop-f { padding: 10px 16px; border-top: 1px solid var(--line-2); font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--navy); color: #fff; padding: 11px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 13.5px; animation: toastIn .45s var(--ease) both; max-width: calc(100vw - 32px); }
.toast .i { color: #7ee2a8; }
.toast.out { animation: toastOut .3s ease both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

/* ---------- reports index ---------- */
.rep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.rep-card { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.rep-card .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-bg); color: var(--brand); }
.rep-card h3 { margin: 0; font-size: 15px; font-family: var(--display); }
.rep-card .fr { font-size: 12px; color: var(--muted); }
.rep-card .src { font-size: 12px; color: var(--ink-2); display: flex; gap: 6px; flex-wrap: wrap; }
.src-tag { background: var(--bg); border-radius: 6px; padding: 2px 7px; font-weight: 600; font-size: 11.5px; }
.select { appearance: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 32px 8px 11px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7390' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center; font-weight: 600; font-size: 13px; min-width: 0; }
.select:focus, .input:focus { outline: 2px solid rgba(91,75,245,.35); outline-offset: 1px; border-color: var(--brand); }
.input { border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; background: #fff; font-size: 13.5px; min-width: 0; width: 100%; transition: border-color .2s, box-shadow .2s; }
.input.invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(229,72,77,.12); }
.input.mono { font-family: ui-monospace, "SF Mono", Consolas, monospace; letter-spacing: .03em; }

/* ---------- report workspace ---------- */
.ws-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 16px; }
.stepper { display: flex; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 10px; font-size: 12.5px; font-weight: 600; color: var(--muted); transition: all .35s var(--ease); }
.step .n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); font-size: 11px; font-weight: 800; transition: all .35s var(--ease); }
.step.on { color: var(--ink); background: var(--brand-bg); }
.step.on .n { background: var(--brand); color: #fff; }
.step.ok { color: var(--green); }
.step.ok .n { background: var(--green); color: #fff; }
.step-sep { width: 16px; height: 2px; background: var(--line); border-radius: 2px; }
.ws { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.ws-side { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 14px; }
.paper { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.paper-ribbon { background: repeating-linear-gradient(-45deg, #fff4f4, #fff4f4 10px, #ffecec 10px, #ffecec 20px); color: #b4232a; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-align: center; padding: 6px; border-bottom: 1px solid #f7d3d4; }
.paper-head { display: flex; gap: 16px; padding: 18px 22px; border-bottom: 2px solid var(--ink); align-items: flex-start; }
.paper-head .form-id { border: 2px solid var(--ink); border-radius: 6px; padding: 6px 10px; text-align: center; font-weight: 800; font-family: var(--display); line-height: 1.1; flex: none; }
.paper-head .form-id small { display: block; font-size: 9.5px; letter-spacing: .08em; font-weight: 700; color: var(--muted); }
.paper-head h2 { margin: 0; font-family: var(--display); font-size: 17px; }
.paper-head .p { color: var(--muted); font-size: 12.5px; }
.part-h { background: var(--ink); color: #fff; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; padding: 6px 22px; }
.fields { display: grid; grid-template-columns: repeat(2, 1fr); }
.field { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 8px 22px; }
.field:nth-child(2n) { border-right: 0; }
.field label { display: block; font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.field div { font-weight: 600; font-size: 13px; font-family: ui-monospace, "SF Mono", Consolas, monospace; letter-spacing: .01em; }
.field.wide { grid-column: 1 / -1; border-right: 0; }
.lines { width: 100%; border-collapse: collapse; }
.lines td { padding: 8px 22px; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.lines td.ln { width: 54px; color: var(--muted); font-weight: 700; font-size: 12px; padding-right: 0; }
.lines td.m { text-align: right; font-weight: 600; white-space: nowrap; font-family: ui-monospace, "SF Mono", Consolas, monospace; }
.lines tr.strong td { font-weight: 700; background: #fafbfe; }
.lines tr.total td { font-weight: 800; background: var(--brand-bg); color: var(--brand-ink); border-bottom: 0; font-size: 14px; }
.lines tr.changed td.m { animation: changed 1.6s var(--ease); }
@keyframes changed { 0%, 30% { background: #fff1c2; } 100% { background: transparent; } }
.sched-tabs { display: flex; gap: 4px; padding: 10px 16px 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.sched-tabs button { border: 0; background: none; padding: 8px 10px; font-weight: 600; font-size: 12.5px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.sched-tabs button.on { color: var(--brand); border-bottom-color: var(--brand); }
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.t th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 9px 12px; border-bottom: 1px solid var(--line); background: #fbfcfe; white-space: nowrap; position: sticky; top: 0; }
table.t td { padding: 8px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
table.t th.m, table.t td.m { text-align: right; }
table.t td.m { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 12px; }
table.t tr.flag td { background: #fff6f6; }
table.t tr.flag td:first-child { box-shadow: inset 3px 0 0 var(--red); }
table.t tfoot td { font-weight: 800; background: #fafbfe; border-top: 2px solid var(--ink); border-bottom: 0; }
table.t tbody tr { transition: background .2s; }
table.t tbody tr:hover td { background: #fafbff; }
.missing { color: var(--red); font-weight: 700; font-family: var(--font); font-size: 11.5px; background: var(--red-bg); border-radius: 6px; padding: 1px 7px; }
.notes { padding: 14px 22px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); display: grid; gap: 4px; }
.paper-foot { padding: 12px 22px; font-size: 11px; color: var(--faint); border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

.check-card { overflow: hidden; }
.check-head { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line-2); transition: background .5s; }
.check-head.pass { background: linear-gradient(120deg, #eafaf0, #fff); }
.check-head.fail { background: linear-gradient(120deg, #fff1f1, #fff); }
.check-head h3 { margin: 0; font-family: var(--display); font-size: 15px; }
.check-ring { width: 52px; height: 52px; flex: none; }
.check-ring circle { fill: none; stroke-width: 5; }
.check-ring .bg { stroke: var(--line-2); }
.check-ring .fg { stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset 1s var(--ease), stroke .5s; }
.check-ring text { font-family: var(--display); font-weight: 800; font-size: 15px; }
.issue { border-bottom: 1px solid var(--line-2); padding: 14px 18px; transition: background .3s; overflow: hidden; }
.issue.resolving { animation: resolve .6s var(--ease) forwards; }
@keyframes resolve { 0% { background: #eafaf0; } 100% { background: #eafaf0; opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; } }
.issue-h { display: flex; gap: 10px; align-items: flex-start; }
.issue-h .p-ico { width: 26px; height: 26px; border-radius: 8px; }
.issue-h .p-ico .i { width: 15px; height: 15px; }
.issue-t { font-weight: 700; font-size: 13.5px; }
.issue-d { font-size: 12.5px; color: var(--ink-2); margin: 6px 0 0 36px; }
.how { margin: 8px 0 0 36px; font-size: 12.5px; background: var(--bg); border-radius: 10px; padding: 9px 11px; color: var(--ink-2); }
.how b { color: var(--ink); }
.fix { margin: 10px 0 0 36px; display: grid; gap: 8px; animation: rise .35s var(--ease) both; }
.fix-row { display: flex; gap: 8px; align-items: center; }
.fix-item { border: 1px solid var(--line); border-radius: 10px; padding: 9px; display: grid; gap: 7px; }
.fix-item .lbl { font-size: 12px; font-weight: 600; }
.passed { padding: 12px 18px; }
.passed summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--green); list-style: none; display: flex; align-items: center; gap: 6px; }
.passed summary::-webkit-details-marker { display: none; }
.passed ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.passed li { display: flex; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.passed li .i { color: var(--green); width: 15px; height: 15px; margin-top: 2px; }
.pass-banner { padding: 16px 18px; display: flex; gap: 12px; align-items: center; background: linear-gradient(120deg, #eafaf0, #f6fdf8); position: relative; overflow: hidden; }
.pass-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.8) 50%, transparent 70%); transform: translateX(-100%); animation: sheen 1.6s .2s var(--ease) both; }
@keyframes sheen { to { transform: translateX(100%); } }
.pass-ico { width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; animation: pop .6s var(--ease) both; flex: none; }
.pass-ico .i { stroke-width: 3; }
.export-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.export-btns .btn { flex-direction: column; gap: 4px; padding: 12px 6px; }
.export-btns .btn small { font-weight: 500; font-size: 11px; opacity: .7; }
.est { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.est b { font-family: var(--display); font-size: 24px; letter-spacing: -.01em; }

/* skeleton */
.sk { background: linear-gradient(90deg, #eef0f6 0%, #f7f8fb 50%, #eef0f6 100%); background-size: 200% 100%; animation: shimmer 1.1s linear infinite; border-radius: 6px; height: 12px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* generation overlay */
.gen-overlay { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(10,15,31,.55); backdrop-filter: blur(6px); animation: fade .25s both; padding: 16px; }
.gen-card { width: min(440px, 100%); background: #fff; border-radius: 22px; padding: 26px; box-shadow: var(--shadow-lg); animation: modalIn .4s var(--ease) both; }
.gen-card h3 { margin: 0 0 4px; font-family: var(--display); font-size: 18px; }
.gen-steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.gen-steps li { display: flex; gap: 12px; align-items: center; font-size: 13.5px; color: var(--faint); transition: color .3s; }
.gen-steps li .gs { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex: none; transition: all .3s var(--ease); }
.gen-steps li.run { color: var(--ink); }
.gen-steps li.run .gs { border-color: var(--brand); border-top-color: transparent; animation: spin .7s linear infinite; }
.gen-steps li.ok { color: var(--ink-2); }
.gen-steps li.ok .gs { background: var(--green); border-color: var(--green); color: #fff; animation: pop .4s var(--ease); }
.gen-steps li .gs .i { width: 13px; height: 13px; stroke-width: 3; }
.gen-bar { height: 6px; border-radius: 99px; background: var(--line-2); margin-top: 20px; overflow: hidden; }
.gen-bar div { height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), #9b8cff); border-radius: 99px; transition: width .35s var(--ease); }

/* history */
.h-row { cursor: pointer; }
.h-detail td { background: #fbfcfe !important; white-space: normal; }
.file-chip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 3px 8px; font-size: 11.5px; font-weight: 700; color: var(--ink-2); margin-right: 4px; transition: all .2s; }
.file-chip:hover { border-color: var(--brand); color: var(--brand); }
.file-chip .i { width: 13px; height: 13px; }
.h-cards { display: none; }
.search { position: relative; }
.search .i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--faint); width: 16px; height: 16px; }
.search .input { padding-left: 32px; width: 240px; }
.tabs { display: flex; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px; overflow-x: auto; max-width: 100%; }
.tabs a { padding: 7px 12px; border-radius: 9px; font-weight: 600; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.tabs a.on { background: var(--bg); color: var(--ink); box-shadow: var(--shadow-sm); }
.info-strip { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px dashed #d5d0fb; border-radius: 12px; padding: 12px 14px; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.rules-table td:first-child { font-weight: 600; }
code.cfg { background: var(--navy); color: #c7c1ff; border-radius: 6px; padding: 2px 7px; font-size: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .ws { grid-template-columns: minmax(0, 1fr); }
  .ws-side { position: static; }
  .cal-layout { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  :root { --sidebar: 0px; }
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .desktop-only { display: none !important; }
  .mobile-only { display: inline-flex !important; }
  .topbar { padding: 10px 16px; }
  .page-title { font-size: 18px; }
  .view { padding: 6px 16px 96px; }
  .foot { padding: 16px 16px 96px; }
  .hero, .grid-2, .grid-2b { grid-template-columns: minmax(0, 1fr); }
  .bottomnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottomnav a, .bottomnav button { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; font-weight: 600; color: var(--muted); padding: 5px 0; border: 0; background: none; position: relative; }
  .bottomnav .on { color: var(--brand); }
  .bottomnav .i { width: 21px; height: 21px; }
  .bottomnav .dot { position: absolute; top: 2px; right: calc(50% - 16px); width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px #fff; }
  .popover { right: 12px; }
  .disclaimer-bar { font-size: 11px; padding: 6px 12px; }
  .cal-day { min-height: 58px; padding: 4px; }
  .cal-day .pill span { display: none; }
  .cal-day .pill { width: auto; padding: 4px; }
  .cal-dow { padding: 6px 4px; text-align: center; font-size: 10px; }
  .h-table { display: none; }
  .h-cards { display: grid; gap: 10px; }
  .search .input { width: 100%; }
  .search { flex: 1; }
}
@media (max-width: 560px) {
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 13px; }
  .kpi-value { font-size: 21px; }
  .feature .count-big { font-size: 38px; }
  .fields { grid-template-columns: 1fr; }
  .field { border-right: 0; padding: 8px 14px; }
  .paper-head, .lines td { padding-left: 14px; padding-right: 14px; }
  .part-h { padding: 6px 14px; }
  .bar-row { grid-template-columns: 78px 1fr 88px; font-size: 12px; }
  .kv { grid-template-columns: 110px 1fr; }
  .li { padding: 11px 14px; }
  .hello { padding: 18px; }
  .hello h2 { font-size: 20px; }
  .chip-date { display: none; }
  .export-btns { grid-template-columns: 1fr 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  .sidebar, .topbar, .disclaimer-bar, .bottomnav, .foot, .ws-side, .ws-top { display: none !important; }
  .app { display: block; } .view { padding: 0; } .ws { display: block; } .paper { box-shadow: none; border: 0; }
}
.cal-day { min-width: 0; overflow: hidden; }
@media (max-width: 560px) { .cal-day .pill { font-size: 0; justify-content: center; padding: 5px 0; } .cal-day .pill i { width: 8px; height: 8px; border-radius: 50%; } }

/* full-version features */
button.avatar { border: 0; cursor: pointer; padding: 0; }
.avatar.acct { background: linear-gradient(135deg, #0f9d58, #34d399); }
.sim { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--amber); background: var(--amber-bg); border-radius: 99px; padding: 2px 8px; }
.h3 { font-family: var(--display); font-size: 15px; margin: 0 0 4px; }
.fchip.sel { background: var(--brand-bg); border-color: var(--brand-2); color: var(--brand-ink); }
.person { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.person .li-main { min-width: 170px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.bubble { background: var(--brand-bg); border-radius: 16px 16px 16px 4px; padding: 12px 14px; font-size: 13px; }
.comment { border-top: 1px solid var(--line-2); padding-top: 10px; margin-top: 10px; overflow-wrap: anywhere; }
.biz-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.biz-stats div { background: var(--bg); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; }
.biz-stats b { font-family: var(--display); font-size: 17px; }
.biz-stats span { font-size: 11px; color: var(--muted); }
.field-l { display: block; margin-top: 12px; }
.field-l .input { margin-top: 4px; font-weight: 400; }
.photo { display: block; max-width: 100%; max-height: 180px; border-radius: 10px; margin-top: 10px; }
.rule-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.rule-grid label { display: flex; flex-direction: column; gap: 4px; }
.ws-side .row .select { flex: none; }
.grid-2 > *, .grid-2b > * { min-width: 0; }
@media (max-width: 960px) { .toasts { bottom: calc(76px + env(safe-area-inset-bottom)); width: max-content; max-width: calc(100vw - 32px); } }
