/* Vanalok EMS v2 demo — "Canopy" design system */
:root {
  --bg: #F6F4EE; --bg-2: #EFECE3; --panel: #FFFFFF; --panel-2: #FAF9F5;
  --ink: #10231C; --ink-2: #33463E; --muted: #6A7A72; --line: #E7E3D8; --line-2: #D9D4C6;
  --brand: #17806A; --brand-d: #0F5E4E; --brand-soft: #E3F1EC; --on-brand: #fff;
  --gold: #F2C200; --gold-d: #B58F00; --gold-soft: #FDF4CC;
  --deep: #0E2B23; --deep-2: #143A30; --on-deep: #E8F1EC; --on-deep-mut: #9DB8AD;
  --ok: #17806A; --ok-soft: #E1F2EA; --warn: #B87503; --warn-soft: #FDF0D5; --bad: #B8412B; --bad-soft: #FBE6E0; --info: #2663A6; --info-soft: #E3EDF9;
  --shadow: 0 1px 2px rgba(16,35,28,.05), 0 8px 24px -12px rgba(16,35,28,.14);
  --shadow-lg: 0 24px 60px -20px rgba(16,35,28,.35);
  --r: 18px; --r-sm: 12px; --pad: 20px; --gap: 18px;
  --f-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1512; --bg-2: #0F1C18; --panel: #13211C; --panel-2: #172822;
    --ink: #E7EFEA; --ink-2: #C3D1CA; --muted: #8A9C94; --line: #22332D; --line-2: #2E423B;
    --brand: #3FB596; --brand-d: #6CCDB2; --brand-soft: #173A31; --on-brand: #06231B;
    --gold: #F2C200; --gold-d: #E0B400; --gold-soft: #3A3210;
    --deep: #08110E; --deep-2: #10201B;
    --ok: #4CC19F; --ok-soft: #133A2F; --warn: #F0B454; --warn-soft: #3B2C10; --bad: #F08A73; --bad-soft: #3D1D16; --info: #7DB2F0; --info-soft: #152A42;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -14px rgba(0,0,0,.6); --shadow-lg: 0 30px 70px -20px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B1512; --bg-2: #0F1C18; --panel: #13211C; --panel-2: #172822;
  --ink: #E7EFEA; --ink-2: #C3D1CA; --muted: #8A9C94; --line: #22332D; --line-2: #2E423B;
  --brand: #3FB596; --brand-d: #6CCDB2; --brand-soft: #173A31; --on-brand: #06231B;
  --gold: #F2C200; --gold-d: #E0B400; --gold-soft: #3A3210;
  --deep: #08110E; --deep-2: #10201B;
  --ok: #4CC19F; --ok-soft: #133A2F; --warn: #F0B454; --warn-soft: #3B2C10; --bad: #F08A73; --bad-soft: #3D1D16; --info: #7DB2F0; --info-soft: #152A42;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -14px rgba(0,0,0,.6); --shadow-lg: 0 30px 70px -20px rgba(0,0,0,.7);
  color-scheme: dark;
}
:root[data-accent="ocean"] { --brand: #1F6FB2; --brand-d: #16548A; --brand-soft: #E2EDF8; }
:root[data-accent="marigold"] { --brand: #B87C00; --brand-d: #8C5E00; --brand-soft: #FBF0D6; }
:root[data-accent="plum"] { --brand: #7A4AC8; --brand-d: #5C349E; --brand-soft: #EEE6FA; }
:root[data-theme="dark"][data-accent="ocean"] { --brand: #6AA8E6; --brand-d: #93C1EF; --brand-soft: #16304A; }
:root[data-theme="dark"][data-accent="marigold"] { --brand: #E5AE2E; --brand-d: #F2C45C; --brand-soft: #3A2E10; }
:root[data-theme="dark"][data-accent="plum"] { --brand: #A585E4; --brand-d: #BFA6EE; --brand-soft: #2C2045; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"])[data-accent="ocean"] { --brand: #6AA8E6; --brand-d: #93C1EF; --brand-soft: #16304A; }
  :root:not([data-theme="light"])[data-accent="marigold"] { --brand: #E5AE2E; --brand-d: #F2C45C; --brand-soft: #3A2E10; }
  :root:not([data-theme="light"])[data-accent="plum"] { --brand: #A585E4; --brand-d: #BFA6EE; --brand-soft: #2C2045; }
}
:root[data-density="compact"] { --pad: 14px; --gap: 12px; --r: 14px; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14.5px/1.5 var(--f-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: 'cv11', 'ss01'; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.2; }
p { margin: 0; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--gold); color: #10231C; }
.ico { width: 18px; height: 18px; flex: none; }
.mut { color: var(--muted); }
.sm { font-size: 12.5px; }
.center { text-align: center; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
kbd { font: 600 10.5px/1 var(--f-sans); padding: 3px 6px; border-radius: 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--panel); color: var(--muted); white-space: nowrap; }
.boot { min-height: 100vh; display: grid; place-items: center; }
.boot img { width: 180px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; } }

/* ---------- buttons / inputs / pills ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 12px; font-weight: 600; font-size: 14px; white-space: nowrap; transition: transform .12s, background .15s, box-shadow .15s, border-color .15s; border: 1px solid transparent; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn.pri { background: var(--brand); color: var(--on-brand); box-shadow: 0 6px 18px -8px var(--brand); }
.btn.pri:hover { background: var(--brand-d); }
.btn.dark { background: var(--ink); color: var(--bg); }
.btn.ghost { background: var(--panel); border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--line-2); background: var(--panel-2); }
.btn.danger { color: var(--bad); }
.btn.sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 10px; }
.btn.lg { height: 50px; padding: 0 22px; font-size: 15.5px; border-radius: 14px; }
.btn.xl { height: 54px; width: 100%; font-size: 16px; border-radius: 16px; }
.btn[disabled] { opacity: .6; cursor: default; }
.btn kbd { background: transparent; }
.btn.pri kbd { border-color: rgba(255,255,255,.4); color: inherit; }
.ib { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 11px; color: var(--ink-2); position: relative; transition: background .15s; flex: none; }
.ib:hover { background: var(--bg-2); }
.ib.ok { color: var(--ok); background: var(--ok-soft); }
.ib.bad { color: var(--bad); background: var(--bad-soft); }
.ib.disabled { opacity: .35; pointer-events: none; }
.inp { height: 40px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--panel); width: 100%; min-width: 0; transition: border-color .15s, box-shadow .15s; }
textarea.inp { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.inp:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.inp:disabled { background: var(--panel-2); color: var(--ink-2); }
select.inp { appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 17px) 17px, calc(100% - 12px) 17px; background-size: 5px 5px; background-repeat: no-repeat; }
.pact select.inp { width: auto; }
.fl { display: grid; gap: 6px; }
.fl > span { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.check-l { display: inline-flex; gap: 8px; align-items: center; font-size: 13.5px; cursor: pointer; }
input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--brand); }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill .ico { width: 13px; height: 13px; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.info { background: var(--info-soft); color: var(--info); }
.pill.mute { background: var(--bg-2); color: var(--muted); }
.av { --c: #17806A; width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; font-size: 12.5px; letter-spacing: .02em; color: #fff; background: var(--c); background-image: linear-gradient(140deg, rgba(255,255,255,.22), rgba(0,0,0,.12)); flex: none; box-shadow: 0 0 0 2px var(--panel); }
.av.xs { width: 22px; height: 22px; font-size: 9px; }
.av.sm { width: 30px; height: 30px; font-size: 11px; }
.av.lg { width: 48px; height: 48px; font-size: 16px; }
.av.xl { width: 76px; height: 76px; font-size: 25px; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.eyebrow .ico { width: 15px; height: 15px; color: var(--brand); }

/* ---------- landing ---------- */
.land { --w: 1180px; }
.lnav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 24px; padding: 14px max(24px, calc((100vw - var(--w)) / 2)); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.lnav .brand img { height: 40px; display: block; }
.lnav nav { display: flex; gap: 26px; margin-left: auto; font-weight: 500; color: var(--ink-2); }
.lnav nav a:hover { color: var(--brand); }
.hero { max-width: var(--w); margin: 0 auto; padding: 72px 24px 56px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font: 400 clamp(44px, 6.4vw, 82px)/0.98 var(--f-serif); letter-spacing: -.02em; margin: 18px 0 20px; }
.hero h1 em { color: var(--brand); font-style: italic; }
.hero-t > p { font-size: 18px; color: var(--ink-2); max-width: 540px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 22px; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }
.ticks li { display: flex; gap: 6px; align-items: center; }
.ticks .ico { color: var(--brand); width: 16px; height: 16px; }
.hero-v { position: relative; min-height: 420px; }
.hero-v.tilt .hv-main { transform: perspective(1400px) rotateX(var(--rx)) rotateY(var(--ry)); }
.hv { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); }
.hv-main { padding: 22px; transition: transform .3s ease-out; position: relative; z-index: 1; }
.hv-h { display: flex; justify-content: space-between; align-items: center; font-weight: 600; margin-bottom: 14px; gap: 10px; flex-wrap: wrap; }
.hv-row { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.hv-heat { margin-top: 14px; }
.hv-float { position: absolute; z-index: 2; display: flex; gap: 10px; align-items: center; padding: 12px 14px; animation: float 6s ease-in-out infinite; font-size: 13px; }
.hv-float small { display: block; color: var(--muted); font-size: 11.5px; }
.hv-float .ico { color: var(--brand); width: 22px; height: 22px; }
.hv-float.a { left: -34px; bottom: 36px; }
.hv-float.b { right: -22px; top: -26px; display: block; animation-delay: -2s; }
.hv-float.b b { display: block; font-size: 20px; }
.hv-float.c { right: 8px; bottom: -28px; animation-delay: -4s; background: var(--deep); color: var(--on-deep); border-color: var(--deep-2); }
.hv-float.c .ico { color: var(--gold); }
.hv-float.c small { color: var(--on-deep-mut); }
.vchip { font: 600 11px/1 ui-monospace, Consolas, monospace; color: var(--brand); background: var(--brand-soft); padding: 4px 7px; border-radius: 6px; display: inline-block; margin-bottom: 6px; }
@keyframes float { 50% { transform: translateY(-8px); } }
.stats { max-width: var(--w); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats div { padding: 26px 20px; display: grid; gap: 2px; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats b { font: 400 52px/1 var(--f-serif); color: var(--brand); }
.stats span { color: var(--muted); font-size: 13.5px; }
.lsec { max-width: var(--w); margin: 0 auto; padding: 96px 24px 24px; }
.lsec h2 { font: 400 clamp(34px, 4.6vw, 56px)/1.02 var(--f-serif); letter-spacing: -.015em; margin: 10px 0 12px; }
.lsec .lead { color: var(--muted); font-size: 17px; margin-bottom: 36px; }
.kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); padding: 6px 10px; border-radius: 99px; background: var(--brand-soft); }
.fgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.fcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.fcard .ico { width: 38px; height: 38px; padding: 9px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); margin-bottom: 16px; }
.fcard h4 { font-size: 15.5px; margin-bottom: 6px; }
.fcard p { color: var(--muted); font-size: 13.5px; }
.lsec.dark { max-width: none; background: var(--deep); color: var(--on-deep); margin-top: 96px; padding: 96px max(24px, calc((100vw - var(--w)) / 2)); position: relative; overflow: hidden; }
.lsec.dark::before { content: ''; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px; background: radial-gradient(circle, rgba(242,194,0,.16), transparent 60%); pointer-events: none; }
.lsec.dark .kicker { background: rgba(242,194,0,.14); color: var(--gold); }
.lsec.dark .lead { color: var(--on-deep-mut); }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; position: relative; }
.bcard { background: var(--deep-2); border: 1px solid rgba(255,255,255,.07); border-radius: var(--r); padding: 22px; cursor: pointer; transition: transform .2s, border-color .2s, background .2s; display: flex; flex-direction: column; }
.bcard:hover { transform: translateY(-3px); border-color: rgba(242,194,0,.45); background: #17463a; }
.bcard.wide { grid-column: span 2; background: linear-gradient(135deg, #1a5244, #123a30); }
.bcard .ico { width: 26px; height: 26px; color: var(--gold); margin-bottom: 14px; }
.bcard h4 { font-size: 16px; margin-bottom: 6px; color: #fff; }
.bcard.wide h4 { font: 400 28px/1.1 var(--f-serif); }
.bcard p { color: var(--on-deep-mut); font-size: 13.5px; flex: 1; }
.try { display: inline-flex; gap: 6px; align-items: center; margin-top: 16px; font-size: 13px; font-weight: 600; color: var(--gold); }
.try .ico { width: 15px; height: 15px; transition: transform .2s; }
.bcard:hover .try .ico { transform: translateX(4px); }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 30px; counter-reset: s; }
.fstep { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; position: relative; }
.fstep:not(:last-child)::after { content: ''; position: absolute; right: -12px; top: 36px; width: 10px; height: 10px; border-top: 2px solid var(--line-2); border-right: 2px solid var(--line-2); transform: rotate(45deg); }
.fstep > span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); font-weight: 700; margin-bottom: 14px; }
.fstep.ok > span { background: var(--brand); color: var(--on-brand); }
.fstep h4 { margin-bottom: 6px; }
.fstep p { color: var(--muted); font-size: 13.5px; }
.fstep b { color: var(--ink); }
.seat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.seat-card { display: flex; align-items: center; gap: 16px; text-align: left; padding: 20px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s, border-color .2s; }
.seat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--brand); }
.seat-card > span:not(.av) { flex: 1; display: grid; gap: 2px; }
.seat-card small { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--brand); }
.seat-card b { font-size: 17px; }
.seat-card em { font-style: normal; color: var(--muted); font-size: 13.5px; }
.seat-card > .ico { color: var(--muted); transition: transform .2s, color .2s; }
.seat-card:hover > .ico { transform: translateX(4px); color: var(--brand); }
.lfoot { max-width: var(--w); margin: 80px auto 0; padding: 28px 24px 40px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.lfoot img { height: 30px; }

/* ---------- app shell ---------- */
.shell { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; background: var(--deep); color: var(--on-deep); display: flex; flex-direction: column; padding: 16px 12px 14px; overflow-y: auto; z-index: 40; }
.side .brand { display: block; background: #fff; border-radius: 14px; padding: 8px 14px; margin: 0 4px 18px; }
.side .brand img { height: 42px; display: block; margin: 0 auto; }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: 11px; color: var(--on-deep-mut); font-weight: 500; transition: background .15s, color .15s; position: relative; }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a.on { background: rgba(255,255,255,.1); color: #fff; }
.nav a.on::before { content: ''; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--gold); }
.nav a.on .ico { color: var(--gold); }
.nav-sep { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #5f7d72; padding: 16px 12px 6px; }
.cnt { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--gold); color: #1d1a05; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
.ai-cta { margin: 18px 2px 12px; display: flex; align-items: center; gap: 11px; padding: 12px; border-radius: 14px; text-align: left; background: linear-gradient(135deg, rgba(242,194,0,.2), rgba(63,181,150,.18)); border: 1px solid rgba(242,194,0,.28); transition: border-color .2s; }
.ai-cta:hover { border-color: var(--gold); }
.ai-cta .ico { color: var(--gold); width: 22px; height: 22px; }
.ai-cta span { flex: 1; display: grid; }
.ai-cta b { color: #fff; font-size: 13.5px; }
.ai-cta small { color: var(--on-deep-mut); font-size: 12px; }
.ai-cta kbd { background: transparent; color: var(--on-deep-mut); border-color: rgba(255,255,255,.2); }
.seat { margin-top: auto; padding: 12px 4px 0; border-top: 1px solid rgba(255,255,255,.08); }
.seat-l { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #5f7d72; margin-bottom: 8px; }
.seats { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.seats button { height: 30px; border-radius: 9px; font-size: 12px; font-weight: 600; color: var(--on-deep-mut); background: rgba(255,255,255,.05); }
.seats button:hover { color: #fff; }
.seats button.on { background: var(--gold); color: #1d1a05; }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; height: 68px; padding: 0 28px; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.crumb { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.crumb .ico { width: 14px; height: 14px; }
.crumb b { color: var(--ink); }
.search { margin-left: auto; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 8px 0 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); width: min(340px, 32vw); transition: border-color .15s; }
.search:hover { border-color: var(--line-2); }
.search span { flex: 1; text-align: left; font-size: 13.5px; }
.top-r { display: flex; align-items: center; gap: 4px; }
.live { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 99px; font-size: 12.5px; font-weight: 600; background: var(--bg-2); color: var(--muted); white-space: nowrap; margin-right: 6px; }
.live .ico { width: 14px; height: 14px; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.live.on { background: var(--ok-soft); color: var(--ok); }
.live.on i.pulse { background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: ping 1.8s infinite; }
.live.off i { background: var(--warn); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); } 100% { box-shadow: 0 0 0 9px transparent; } }
.dotc { position: absolute; top: 4px; right: 3px; min-width: 17px; height: 17px; border-radius: 99px; background: var(--bad); color: #fff; font: 700 10px/17px var(--f-sans); font-style: normal; padding: 0 4px; border: 2px solid var(--bg); }
.me-btn { display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; border-radius: 99px; margin-left: 6px; transition: background .15s; }
.me-btn:hover { background: var(--bg-2); }
.me-t { display: grid; text-align: left; line-height: 1.25; }
.me-t b { font-size: 13px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-t small { font-size: 11.5px; color: var(--muted); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.only-m { display: none; }
.view { padding: 28px 28px 60px; max-width: 1440px; width: 100%; margin: 0 auto; }
.view.enter > * { animation: rise .45s cubic-bezier(.2,.7,.2,1) both; }
.view.enter > *:nth-child(2) { animation-delay: .04s; } .view.enter > *:nth-child(3) { animation-delay: .08s; } .view.enter > *:nth-child(4) { animation-delay: .12s; } .view.enter > *:nth-child(5) { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.tabbar { display: none; }

/* ---------- page furniture ---------- */
.phead { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.phead h1 { font: 400 40px/1.05 var(--f-serif); letter-spacing: -.01em; }
.phead p { color: var(--muted); margin-top: 6px; }
.phead p kbd { margin: 0 1px; }
.pact { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hello { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.hello h1 { font: 400 clamp(34px, 4vw, 48px)/1.05 var(--f-serif); margin-top: 6px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: var(--pad); box-shadow: var(--shadow); min-width: 0; }
.ch { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; min-height: 28px; }
.ch h3 { font-size: 14.5px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.ch h3 .ico { color: var(--brand); }
.lnk { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--brand); white-space: nowrap; }
.lnk .ico { width: 14px; height: 14px; }
.stack { display: grid; gap: var(--gap); align-content: start; min-width: 0; }
.grid-2-1 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.bento-g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.span2 { grid-column: span 2; }
.span4 { grid-column: span 4; }
.row2 { grid-row: span 2; }
.card.center { text-align: center; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.card.report .row-actions, .card .row-actions { justify-content: flex-start; }
.card.center .row-actions { justify-content: center; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-bottom: var(--gap); }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'l i' 'v s' 'u s'; align-items: end; box-shadow: var(--shadow); min-width: 0; }
.kpi > .ico { grid-area: i; width: 32px; height: 32px; padding: 7px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); justify-self: end; align-self: start; }
.kpi > span { grid-area: l; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.kpi > b { grid-area: v; font-size: clamp(22px, 2.3vw, 30px); font-weight: 700; letter-spacing: -.02em; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.kpi > b em { font-style: normal; color: var(--muted); font-weight: 500; font-size: .6em; }
.kpi > small { grid-area: u; color: var(--muted); font-size: 12px; }
.kpi > .spark { grid-area: s; align-self: end; }
.empty { display: grid; place-items: center; text-align: center; gap: 8px; padding: 40px 16px; color: var(--muted); }
.empty > .ico { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); }
.empty h3 { color: var(--ink); font-size: 16px; }
.empty.sm { padding: 18px 8px; }
.empty.sm > .ico { width: 32px; height: 32px; padding: 7px; }
.note { display: flex; gap: 9px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; margin: 10px 0; }
.note .ico { margin-top: 1px; }
.note.ok { background: var(--ok-soft); color: var(--ok); }
.note.warn { background: var(--warn-soft); color: var(--warn); }
.note.bad { background: var(--bad-soft); color: var(--bad); }
.note.info { background: var(--info-soft); color: var(--info); }
.note b { color: inherit; }
.list { list-style: none; margin: 0; padding: 0; display: grid; }
.list li { border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list li > a, .list li.doff, .list li.lv, .dsec .list li { display: flex; align-items: center; gap: 10px; padding: 10px 2px; }
.list li > a:hover { color: var(--brand); }
.list li > a.on { color: var(--brand); font-weight: 600; }
.list li > a > span:not(.av):not(.pill), .list li.doff > span:not(.av), .list li.lv > span:not(.av) { flex: 1; min-width: 0; }
.list li > a > .ico:last-child { color: var(--muted); width: 15px; }
.list small { display: block; color: var(--muted); font-size: 12px; }
.list .ico.warn { color: var(--warn); }
.dsec .list li { justify-content: space-between; }
.acts { display: flex; gap: 4px; flex: none !important; }
.amt { font-variant-numeric: tabular-nums; white-space: nowrap; }
.amt.xl { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.up li { display: flex; gap: 12px; align-items: center; padding: 9px 0; }
.date-b { width: 46px; height: 48px; flex: none; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-content: center; text-align: center; font-size: 10.5px; font-weight: 600; text-transform: uppercase; line-height: 1.1; }
.date-b b { font-size: 19px; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.feed li { display: flex; gap: 10px; font-size: 13px; align-items: flex-start; }
.feed em { font-style: normal; color: var(--brand); }
.feed small { display: block; color: var(--muted); font-size: 11.5px; }
.tabs { display: flex; gap: 4px; margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; font-weight: 600; font-size: 13.5px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); border-color: var(--brand); }
.tabs a .ico { width: 16px; height: 16px; }
.tabs a b { font-size: 11.5px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--bg-2); display: grid; place-items: center; }
.tabs a.on b { background: var(--brand); color: var(--on-brand); }
.seg-btn { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.seg-btn > * { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 9px; font-weight: 600; font-size: 13px; color: var(--muted); }
.seg-btn .ico { width: 15px; height: 15px; }
.seg-btn .on { background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }
.srch { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); min-width: 0; }
.srch input { border: 0; outline: 0; background: transparent; width: 100%; min-width: 0; }
.srch .ico { color: var(--muted); }
.srch:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.tbl-wrap { overflow-x: auto; margin: 0 -2px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl td small { display: block; color: var(--muted); font-size: 12px; }
.tbl tfoot td { font-weight: 700; border-bottom: 0; }
.tbl tr.offrow td { background: var(--panel-2); color: var(--muted); }
.tbl .who, .who { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.ptag { --c: #17806A; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 7px; background: color-mix(in srgb, var(--c) 13%, transparent); color: var(--c); white-space: nowrap; margin: 1px 0; }
:root[data-theme="dark"] .ptag { color: color-mix(in srgb, var(--c) 60%, #fff); }
.hbars { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.hbars li { display: grid; grid-template-columns: minmax(90px, 1.2fr) 2fr auto; gap: 12px; align-items: center; font-size: 13px; }
.hbars li > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbars div { height: 10px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.hbars i { display: block; height: 100%; border-radius: 99px; animation: grow .8s cubic-bezier(.2,.7,.2,1) both; transform-origin: left; }
.hbars b { font-variant-numeric: tabular-nums; min-width: 48px; text-align: right; }
@keyframes grow { from { transform: scaleX(0); } }
.prog { height: 8px; border-radius: 99px; background: var(--bg-2); overflow: hidden; width: 140px; display: inline-block; vertical-align: middle; margin-right: 8px; }
.prog i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.prog i.low { background: var(--warn); }
.tbl.lb small { display: inline; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 13.5px; margin-bottom: 14px; }
.kv span { color: var(--muted); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.chips span, .chips button { display: inline-flex; gap: 5px; align-items: center; font-size: 12px; padding: 5px 10px; border-radius: 99px; background: var(--bg-2); color: var(--ink-2); }
.chips .ico { width: 14px; height: 14px; }
.chips.pick { justify-content: flex-start; }
.chips.pick button:hover { background: var(--brand-soft); color: var(--brand); }

/* ---------- charts ---------- */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .cl { font-size: 13px; fill: var(--muted); text-anchor: middle; font-family: var(--f-sans); }
.chart .cv { font-size: 12px; fill: var(--ink-2); text-anchor: middle; font-weight: 600; font-family: var(--f-sans); }
.chart .bar rect { transform-box: fill-box; transform-origin: bottom; animation: barUp .7s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d); }
.chart .bar:hover rect { filter: brightness(1.1); }
@keyframes barUp { from { transform: scaleY(0); } }
.chart .target { stroke: var(--gold-d); stroke-dasharray: 5 5; stroke-width: 1.5; }
.chart.area .line { stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: draw 1.2s ease forwards; }
.chart.area .dot { fill: var(--panel); stroke: var(--c); stroke-width: 2; opacity: 0; transition: opacity .15s; }
.chart.area:hover .dot { opacity: 1; }
.area-wrap { position: relative; }
.chart.area { height: 150px; }
.chart.area .dot { vector-effect: non-scaling-stroke; }
.area-x { position: relative; height: 22px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.area-x span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.area-x span.first { transform: none; }
.area-x span.last { transform: translateX(-100%); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.donut .track { stroke: var(--bg-2); }
.donut .dv { font: 700 22px var(--f-sans); fill: var(--ink); text-anchor: middle; dominant-baseline: middle; letter-spacing: -.02em; }
.donut .ds { font: 500 11px var(--f-sans); fill: var(--muted); text-anchor: middle; dominant-baseline: middle; }
.ring .dv { font-size: 20px; }
.ringv { transition: stroke-dasharray .8s; }
.donut-wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.donut-wrap .donut { flex: none; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; flex: 1; min-width: 180px; font-size: 13px; }
.legend li { display: flex; align-items: center; gap: 9px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend b { margin-left: auto; font-variant-numeric: tabular-nums; }
.ring-wrap { display: grid; place-items: center; padding: 6px 0; }
.heat { width: 100%; height: auto; display: block; margin: 0 auto; }
.heat .cl { font-size: 10px; fill: var(--muted); font-family: var(--f-sans); }
.heat rect, .heat-leg i { fill: var(--bg-2); }
.heat .h1, .heat-leg .h1 { fill: color-mix(in srgb, var(--brand) 22%, var(--bg-2)); background: color-mix(in srgb, var(--brand) 22%, var(--bg-2)); }
.heat .h2, .heat-leg .h2 { fill: color-mix(in srgb, var(--brand) 45%, var(--bg-2)); background: color-mix(in srgb, var(--brand) 45%, var(--bg-2)); }
.heat .h3, .heat-leg .h3 { fill: color-mix(in srgb, var(--brand) 72%, var(--bg-2)); background: color-mix(in srgb, var(--brand) 72%, var(--bg-2)); }
.heat .h4, .heat-leg .h4 { fill: var(--brand); background: var(--brand); }
.heat-leg { display: flex; align-items: center; gap: 4px; justify-content: flex-end; font-size: 11.5px; color: var(--muted); margin-top: 10px; }
.heat-leg i { width: 11px; height: 11px; border-radius: 3px; background: var(--bg-2); }
.heat-wrap { overflow-x: auto; }
.spark { display: block; }
.bal { display: flex; justify-content: space-around; gap: 6px; text-align: center; flex-wrap: wrap; }
.bal > div { display: grid; justify-items: center; gap: 4px; }
.bal small { font-size: 11.5px; color: var(--muted); }

/* ---------- home ---------- */
.brief { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r); margin-bottom: var(--gap); background: linear-gradient(120deg, var(--gold-soft), var(--brand-soft)); border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--line)); }
.brief-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--deep); color: var(--gold); flex: none; }
.brief-b { flex: 1; font-size: 13.5px; min-width: 0; }
.brief-b > b { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-2); margin-bottom: 2px; }
.brief-b ul { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 2px; }
.brief .btn { flex: none; }
.card.check { background: var(--deep); color: var(--on-deep); border-color: var(--deep-2); display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; }
.card.check::after { content: ''; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(242,194,0,.22), transparent 65%); pointer-events: none; }
.card.check .eyebrow { color: var(--on-deep-mut); }
.check-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.clock { font: 400 50px/1 var(--f-serif); letter-spacing: .01em; color: #fff; font-variant-numeric: tabular-nums; }
.check-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--on-deep-mut); }
.check-meta span { display: inline-flex; gap: 5px; align-items: center; }
.check-meta .ico { width: 15px; height: 15px; }
.card.check .btn.pri { background: var(--gold); color: #1d1a05; box-shadow: 0 10px 30px -10px rgba(242,194,0,.6); }
.card.check .btn.pri:hover { background: #ffd21f; }
.card.check .btn.dark { background: #fff; color: var(--deep); }
.card.check .btn.ghost { background: rgba(255,255,255,.08); color: var(--on-deep); border-color: rgba(255,255,255,.12); }
.card.check.is-in { background: linear-gradient(150deg, var(--deep), #174c3e); }
.hint { font-size: 12.5px; color: var(--on-deep-mut); display: flex; gap: 7px; align-items: flex-start; }
.hint .ico { width: 15px; height: 15px; margin-top: 2px; color: var(--gold); }
.hint.warn { color: #f5d06a; }
.presence { list-style: none; margin: 0; padding: 0; display: grid; }
.presence li a { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.presence li:last-child a { border-bottom: 0; }
.presence li a > span:nth-child(2) { flex: 1; min-width: 0; display: grid; }
.presence small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kudo-mini { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.kudo-mini > .ico { width: 14px; color: var(--muted); }
.kudo-mini p { flex-basis: 100%; margin-top: 8px; font: 400 18px/1.35 var(--f-serif); font-style: italic; }

/* ---------- attendance / calendar ---------- */
.calnav { display: inline-flex; align-items: center; gap: 6px; }
.calnav .ib { width: 30px; height: 30px; }
.cal-h, .cal-g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-h span { font-size: 11.5px; font-weight: 700; color: var(--muted); text-align: center; text-transform: uppercase; letter-spacing: .05em; padding-bottom: 4px; }
.cal-c { min-height: 78px; border-radius: 12px; padding: 7px 8px; background: var(--panel-2); border: 1px solid var(--line); position: relative; display: flex; flex-direction: column; gap: 3px; min-width: 0; overflow: hidden; }
.cal-c b { font-size: 13px; }
.cal-c small { font-size: 11px; line-height: 1.25; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cal-c.blank { background: none; border: 0; }
.cal-c.future { opacity: .7; }
.cal-c.present { background: var(--ok-soft); border-color: transparent; }
.cal-c.present small { color: var(--ok); font-weight: 600; }
.cal-c.late { background: var(--warn-soft); border-color: transparent; }
.cal-c.late small { color: var(--warn); font-weight: 600; }
.cal-c.leave { background: var(--info-soft); border-color: transparent; }
.cal-c.leave small { color: var(--info); font-weight: 600; }
.cal-c.off { background: repeating-linear-gradient(135deg, var(--panel-2) 0 6px, var(--bg-2) 6px 12px); }
.cal-c.absent { background: var(--bad-soft); border-color: transparent; }
.cal-c.absent small { color: var(--bad); font-weight: 600; }
.cal-c.dayoff { border: 2px dashed var(--gold-d); background: var(--gold-soft); }
.cal-c.dayoff.approved { border-style: solid; border-color: var(--brand); background: var(--brand-soft); }
.cal-c.dayoff small { color: var(--ink-2); font-weight: 600; }
.cal-c.today { box-shadow: 0 0 0 2px var(--brand); }
.cal-c .rep { position: absolute; right: 7px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.cal-leg { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; font-size: 12px; color: var(--muted); }
.cal-leg span { display: inline-flex; align-items: center; gap: 6px; }
.cal-leg i { width: 12px; height: 12px; border-radius: 4px; }
.cal-leg .present { background: var(--ok-soft); border: 1px solid var(--ok); }
.cal-leg .late { background: var(--warn-soft); border: 1px solid var(--warn); }
.cal-leg .leave { background: var(--info-soft); border: 1px solid var(--info); }
.cal-leg .off { background: repeating-linear-gradient(135deg, var(--panel-2) 0 3px, var(--line-2) 3px 6px); }
.cal-leg .pending { background: var(--gold-soft); border: 1.5px dashed var(--gold-d); }
.cal-leg .approved { background: var(--brand-soft); border: 1.5px solid var(--brand); }
.cal-leg .absent { background: var(--bad-soft); border: 1px solid var(--bad); }
.cal.team .cal-c { min-height: 72px; }
.avs { display: flex; flex-wrap: wrap; gap: 2px; margin-top: auto; }
.avs .pend { opacity: .45; }
.rules { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 13.5px; }
.rules li { display: flex; gap: 10px; align-items: flex-start; }
.rules .ico { color: var(--brand); margin-top: 1px; width: 17px; height: 17px; }

/* ---------- daily report ---------- */
.datebar { display: flex; align-items: center; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 2px; }
.datebar .inp { border: 0; height: 34px; width: auto; box-shadow: none; }
.datebar .ib { width: 34px; height: 34px; }
.wk { font-weight: 600; font-size: 13.5px; padding: 0 8px; white-space: nowrap; }
.timers .ch { flex-wrap: wrap; }
.tchips { display: flex; flex-wrap: wrap; gap: 8px; }
.tchip { --c: #17806A; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); font-size: 13px; font-weight: 600; transition: border-color .15s, background .15s; }
.tchip:hover { border-color: var(--c); }
.tchip > i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.tchip small { color: var(--muted); font-weight: 500; }
.tchip .ico { width: 14px; height: 14px; color: var(--muted); }
.tchip.run { background: var(--c); color: #fff; border-color: var(--c); box-shadow: 0 8px 20px -10px var(--c); }
.tchip.run > i { background: #fff; animation: pulse 1s infinite; }
.tchip.run .ico { color: #fff; }
.tchip.run b { font-variant-numeric: tabular-nums; }
.lock { display: flex; gap: 16px; padding: 26px; border-radius: var(--r); background: var(--panel); border: 1px dashed var(--line-2); }
.lock > .ico { width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-d); }
.lock h3 { font-size: 17px; margin-bottom: 6px; }
.lock p { color: var(--muted); margin-bottom: 14px; }
.elabel, .erow { display: grid; grid-template-columns: minmax(150px, 1.1fr) 2fr 88px 38px; gap: 8px; align-items: center; }
.elabel { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 6px; }
.erow { margin-bottom: 8px; }
.report .fl { margin-top: 14px; }
.report.ro [data-del] { display: none; }
.meter { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.meter > div:first-child { display: grid; font-size: 11.5px; color: var(--muted); }
.meter b { font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; }
.meter .bar { height: 8px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.meter .bar i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 99px; transition: width .3s; }
.meter .bar i.over { background: var(--warn); }
.meter small { color: var(--muted); font-size: 12px; }
.form-foot { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.form-foot > .mut:first-child { margin-right: auto; display: inline-flex; gap: 6px; align-items: center; font-size: 13px; }
.form-foot .ico { width: 16px; height: 16px; }
.dstat { margin-bottom: 8px; }

/* ---------- leave ---------- */
.bal-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-bottom: var(--gap); }
.bal-card { display: flex; align-items: center; gap: 14px; }
.bal-card b { display: block; }
.bal-card small { color: var(--muted); font-size: 12.5px; }
.form { display: grid; gap: 14px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { --c: #17806A; display: grid; gap: 2px; padding: 10px; border-radius: 12px; border: 1.5px solid var(--line); font-weight: 600; font-size: 13px; transition: border-color .15s, background .15s; height: 100%; }
.seg span small { font-weight: 500; color: var(--muted); font-size: 11.5px; }
.seg input:checked + span { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, var(--panel)); }
.seg input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.calc { padding: 14px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); }
.calc .note { margin-bottom: 0; }
.calc-n { display: flex; align-items: baseline; gap: 8px; }
.calc-n b { font: 400 40px/1 var(--f-serif); color: var(--brand); }
.calc p.mut { margin-top: 6px; display: flex; gap: 6px; align-items: center; }

/* ---------- expenses ---------- */
.claims { display: grid; gap: 8px; }
.claim { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto auto; gap: 16px; align-items: center; padding: 12px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); text-align: left; transition: border-color .15s, transform .15s, box-shadow .15s; }
.claim:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-1px); }
.cl-m { display: grid; min-width: 0; }
.cl-m small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-u { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--ink-2); }
.cl-d { color: var(--muted); font-size: 13px; white-space: nowrap; }
.claim .amt { font-weight: 700; min-width: 96px; text-align: right; }
.vtype { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font: 700 11.5px/1 var(--f-sans); letter-spacing: .03em; flex: none; }
.vtype.lg { width: 56px; height: 56px; font-size: 13px; }
.t-conveyance { background: var(--ok-soft); color: var(--ok); }
.t-adm { background: var(--info-soft); color: var(--info); }
.t-cash { background: var(--gold-soft); color: var(--gold-d); }
.t-bill { background: var(--bad-soft); color: var(--bad); }
.cf { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; }
.vpick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.vpick button { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; padding: 10px; border-radius: 14px; border: 1.5px solid var(--line); transition: border-color .15s, background .15s; }
.vpick button .vtype { grid-row: span 2; width: 38px; height: 38px; font-size: 10.5px; }
.vpick button b { font-size: 13px; }
.vpick button small { color: var(--muted); font-size: 11.5px; line-height: 1.3; }
.vpick button.on { border-color: var(--brand); background: var(--brand-soft); }
.lines-h { display: flex; justify-content: space-between; align-items: center; }
.lines-h h4 { font-size: 14px; }
.cline { display: flex; gap: 8px; align-items: flex-end; padding: 10px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); margin-bottom: 8px; flex-wrap: wrap; }
.cline .fl { flex: 1 1 110px; min-width: 0; }
.cline .fl.particulars { flex: 3 1 200px; }
.cline .fl.km, .cline .fl.amount { flex: 0 1 96px; }
.cline .fl.date { flex: 0 1 146px; }
.cline .fl > span { font-size: 11px; }
.cline .inp { height: 36px; }
.cf-r { position: sticky; top: 0; align-self: start; }
.paper { background: #fffdf7; color: #1b2a24; border-radius: 6px; padding: 22px; box-shadow: 0 1px 0 #e9e3cf, 0 18px 40px -18px rgba(0,0,0,.35); font-size: 12.5px; position: relative; overflow: hidden; border: 1px solid #ece5cf; }
.paper.scanning::after { content: ''; position: absolute; left: 0; right: 0; height: 60px; top: -60px; background: linear-gradient(180deg, transparent, rgba(23,128,106,.35), transparent); animation: scan 1.2s ease-in-out infinite; }
@keyframes scan { to { top: 100%; } }
.p-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid #1b2a24; margin-bottom: 12px; }
.p-head img { height: 34px; }
.p-head div { flex: 1; display: grid; }
.p-head b { font-size: 15px; }
.p-head small { color: #5d6b64; }
.p-no { font: 600 11.5px/1 ui-monospace, Consolas, monospace; padding: 6px 8px; border: 1px solid #1b2a24; border-radius: 4px; white-space: nowrap; }
.p-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; }
.paper table { width: 100%; border-collapse: collapse; }
.paper th, .paper td { border: 1px solid #cfc6ad; padding: 5px 6px; text-align: left; vertical-align: top; }
.paper th { background: #f4eedb; font-size: 11px; }
.paper td small { color: #7a6f55; }
.paper .num { text-align: right; }
.p-cash { line-height: 2.1; font-size: 13.5px; }
.p-cash u { text-decoration: none; border-bottom: 1px dotted #1b2a24; padding: 0 4px; font-weight: 600; }
.p-heads { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 11.5px; }
.p-total { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding: 10px 12px; background: #1b2a24; color: #fff; border-radius: 4px; }
.p-total b { font-size: 17px; }
.p-words { margin-top: 8px; font-size: 12px; color: inherit; }
.p-words i { font-family: var(--f-serif); font-size: 14px; }
.p-sign { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 34px; }
.p-sign span { border-top: 1px solid #1b2a24; padding-top: 5px; font-size: 10.5px; text-align: center; color: #5d6b64; }
.claim-d { display: grid; gap: 16px; }
.cd-top { display: flex; align-items: center; gap: 14px; }
.cd-top > div { flex: 1; display: grid; min-width: 0; }
.cd-top small { color: var(--muted); font-size: 12px; font-family: var(--f-serif); font-style: italic; font-size: 14px; }
.cd-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--ink-2); }
.cd-meta span { display: inline-flex; gap: 6px; align-items: center; }
.cd-meta .ico { width: 15px; height: 15px; color: var(--muted); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.steps li { display: grid; justify-items: center; text-align: center; gap: 3px; position: relative; font-size: 12.5px; }
.steps li::before { content: ''; position: absolute; top: 13px; left: -50%; right: 50%; height: 2px; background: var(--line); z-index: 0; }
.steps li:first-child::before { display: none; }
.steps li.done::before { background: var(--brand); }
.steps i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); border: 2px solid var(--line); z-index: 1; }
.steps i .ico { width: 14px; height: 14px; }
.steps li.done i { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.steps li.bad i { background: var(--bad); border-color: var(--bad); color: #fff; }
.steps small { color: var(--muted); font-size: 11.5px; max-width: 140px; }

/* ---------- approvals inbox ---------- */
.inbox { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--gap); align-items: start; }
.ib-list { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.ib-tools { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.ib-tools .srch { flex: 1; height: 36px; }
.bulk { display: none; align-items: center; gap: 8px; padding: 10px 14px; background: var(--brand-soft); border-bottom: 1px solid var(--line); font-size: 13px; flex-wrap: wrap; }
.bulk.show { display: flex; }
.bulk b { color: var(--brand); }
.bulk .btn:first-of-type { margin-left: auto; }
#ibRows { max-height: calc(100vh - 290px); overflow-y: auto; }
.ib-row { display: flex; align-items: flex-start; gap: 11px; padding: 13px 14px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .12s; position: relative; }
.ib-row:hover { background: var(--panel-2); }
.ib-row.on { background: var(--brand-soft); }
.ib-row.on::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand); }
.ib-row .pick { margin-top: 7px; }
.ib-t { flex: 1; display: grid; min-width: 0; gap: 1px; }
.ib-t em { font-style: normal; font-size: 13px; display: flex; gap: 6px; align-items: center; color: var(--ink-2); }
.ib-t em .ico { width: 14px; height: 14px; color: var(--brand); }
.ib-t small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ago { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.ib-pane { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); position: sticky; top: 88px; display: flex; flex-direction: column; min-height: 320px; }
.pane-h { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.pane-h h3 { font-size: 16px; }
.pane-h p { color: var(--muted); font-size: 13px; }
.pane-b { padding: 18px 20px; flex: 1; font-size: 13.5px; }
.pane-b h5 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 14px 0 4px; }
.pane-f { display: flex; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pane-f .inp { flex: 1 1 180px; }
.pane-f kbd { margin-left: 2px; }

/* ---------- people ---------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: var(--gap); }
.pcard { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 24px 16px 18px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.pcard:hover { transform: translateY(-3px); border-color: var(--brand); }
.pcard .av { margin-bottom: 8px; }
.pcard small { color: var(--muted); }
.pmeta { display: inline-flex; gap: 5px; align-items: center; font-size: 12px; color: var(--muted); margin: 4px 0 8px; }
.pmeta .ico { width: 13px; height: 13px; }
.pcard.slip > .ico { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); margin-bottom: 6px; }
.org-wrap { overflow-x: auto; padding: 30px 20px; }
.org, .org ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; position: relative; }
.org ul { padding-top: 24px; }
.org li { display: flex; flex-direction: column; align-items: center; padding: 24px 8px 0; position: relative; }
.org > li { padding-top: 0; }
.org li::before, .org li::after { content: ''; position: absolute; top: 0; height: 24px; border-top: 2px solid var(--line-2); width: 50%; }
.org li::before { right: 50%; }
.org li::after { left: 50%; border-left: 2px solid var(--line-2); }
.org li:first-child::before, .org li:last-child::after { border-top: 0; }
.org li:only-child::before { display: none; }
.org li:only-child { padding-top: 24px; }
.org > li::before, .org > li::after { display: none; }
.org ul::before { content: ''; position: absolute; top: 0; left: 50%; height: 24px; border-left: 2px solid var(--line-2); }
.org-n { display: grid; justify-items: center; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 150px; transition: border-color .15s, transform .15s; }
.org-n:hover { border-color: var(--brand); transform: translateY(-2px); }
.org-n b { font-size: 13px; margin-top: 6px; white-space: nowrap; }
.org-n small { color: var(--muted); font-size: 11.5px; white-space: nowrap; }

/* ---------- payroll ---------- */
.stepper { list-style: none; padding: 0; margin: 0 0 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.stepper li { display: flex; align-items: center; gap: 9px; padding: 8px 14px 8px 8px; border-radius: 99px; background: var(--bg-2); font-weight: 600; font-size: 13px; color: var(--muted); }
.stepper li i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); font-style: normal; font-size: 12px; }
.stepper li i .ico { width: 14px; height: 14px; }
.stepper li.on { background: var(--brand-soft); color: var(--brand); }
.stepper li.on i { background: var(--brand); color: var(--on-brand); }
.stepper li.done { color: var(--ok); }
.stepper li.done i { background: var(--ok); color: #fff; }
.slip-doc { background: #fffdf7; color: #1b2a24; padding: 22px; border-radius: 8px; border: 1px solid #ece5cf; }
.slip-doc .kv span { color: #5d6b64; }
.slip-doc .tbl th { color: #5d6b64; border-color: #e3dcc6; }
.slip-doc .tbl td { border-color: #e3dcc6; }
.slip-doc .two { margin-top: 10px; }

/* ---------- pulse ---------- */
.kudo { display: grid; gap: 12px; }
.k-top { display: flex; align-items: center; gap: 10px; }
.k-top > span:not(.av) { flex: 1; font-size: 13.5px; }
.k-top small { display: block; color: var(--muted); font-size: 12px; }
.kudo p { font: 400 22px/1.35 var(--f-serif); }
.like { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 99px; background: var(--bg-2); font-size: 13px; font-weight: 600; justify-self: start; transition: transform .15s; }
.like:active { transform: scale(.94); }
.like.on { background: var(--bad-soft); color: var(--bad); }
.like.on .ico { fill: currentColor; }
.ann h3 { font: 400 24px/1.15 var(--f-serif); margin: 8px 0 6px; }
.ann p { color: var(--ink-2); margin-bottom: 8px; }
.ann.pinned { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); background: linear-gradient(160deg, var(--gold-soft), var(--panel) 60%); }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 14px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { display: flex; gap: 14px; align-items: center; padding: 10px 0; position: relative; font-size: 13.5px; }
.timeline li > div { flex: 1; min-width: 0; }
.timeline em { font-style: normal; color: var(--brand); }
.timeline time { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* ---------- settings ---------- */
.setrow { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.setrow:last-child { border-bottom: 0; }
.setrow > span { display: grid; }
.setrow small { color: var(--muted); font-size: 12.5px; }
.swatches { display: flex; gap: 8px; }
.swatches button { width: 32px; height: 32px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 3px var(--panel); border: 2px solid transparent; }
.swatches button.on { border-color: var(--c); }

/* ---------- overlays ---------- */
.scrim { position: fixed; inset: 0; z-index: 100; background: rgba(8,20,16,.5); display: grid; place-items: center; padding: 20px; opacity: 0; transition: opacity .2s; }
.scrim.in { opacity: 1; }
.modal { color: var(--ink); background: var(--panel); border-radius: 22px; width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; box-shadow: var(--shadow-lg); transform: translateY(12px) scale(.98); transition: transform .25s cubic-bezier(.2,.8,.2,1); border: 1px solid var(--line); }
.scrim.in .modal { transform: none; }
.modal.sm { width: min(400px, 100%); }
.modal.lg { width: min(760px, 100%); }
.modal.xl { width: min(1120px, 100%); }
.modal.pal { width: min(620px, 100%); align-self: start; margin-top: 10vh; }
.modal.pal .mh { display: none; }
.modal.pal .mb { padding: 0; }
.mh { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 22px 0; }
.mh h3 { font: 400 26px/1.15 var(--f-serif); display: flex; gap: 8px; align-items: center; }
.mh h3 .ico { color: var(--gold-d); width: 22px; height: 22px; }
.mh p { color: var(--muted); font-size: 13px; margin-top: 3px; }
.mb { padding: 18px 22px 22px; }
.scrim.sheet { place-items: stretch end; padding: 0; grid-template-rows: minmax(0, 100%); }
.drawer { color: var(--ink); background: var(--panel); width: min(440px, 100vw); height: 100%; max-height: 100dvh; min-height: 0; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); transform: translateX(30px); transition: transform .25s cubic-bezier(.2,.8,.2,1); border-left: 1px solid var(--line); }
.scrim.in .drawer { transform: none; }
.drawer .mh { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.db { padding: 18px 22px; overflow-y: auto; overscroll-behavior: contain; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 16px; }
.dfoot { display: flex; gap: 8px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.dfoot.wrap { flex-wrap: wrap; }
.dsec h5 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; }
.dsec p { font-size: 13.5px; line-height: 1.9; }
.dsec p .ico { width: 15px; height: 15px; vertical-align: -3px; color: var(--muted); margin-right: 4px; }
.me-card { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 6px 0 4px; }
.me-card h3 { font: 400 26px/1.1 var(--f-serif); margin-top: 8px; }
.me-card p { color: var(--muted); font-size: 13.5px; }
.me-card .chips { margin-top: 10px; }
.mini-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-kpis div { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; display: grid; }
.mini-kpis b { font-size: 20px; }
.mini-kpis small { color: var(--muted); font-size: 11.5px; }
.row-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border-radius: 12px; text-align: left; transition: background .12s; }
.row-btn:hover { background: var(--bg-2); }
.row-btn.on { background: var(--brand-soft); }
.row-btn span { display: grid; }
.row-btn small { color: var(--muted); font-size: 12px; }
.nlist { display: grid; gap: 4px; }
.nitem { display: flex; gap: 12px; padding: 11px; border-radius: 12px; align-items: flex-start; }
.nitem:hover { background: var(--bg-2); }
.nitem .ico { color: var(--muted); margin-top: 2px; }
.nitem.new { background: var(--brand-soft); }
.nitem.new .ico { color: var(--brand); }
.nitem span { display: grid; font-size: 13.5px; }
.nitem b { font-weight: 500; }
.nitem small { color: var(--muted); font-size: 12px; }
.kb { display: grid; gap: 10px; }
.kb div { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.kb div:last-child { border-bottom: 0; }
.kb span { display: flex; gap: 4px; flex-wrap: wrap; }
.kb p { color: var(--muted); text-align: right; }
.pal-in { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.pal-in .ico { color: var(--brand); width: 20px; height: 20px; }
.pal-in input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 17px; min-width: 0; }
.pal-list { max-height: 50vh; overflow-y: auto; padding: 6px; }
.pal-g { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding: 10px 12px 4px; }
.pal-i { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border-radius: 11px; text-align: left; }
.pal-i > .ico { color: var(--muted); }
.pal-i span { flex: 1; display: grid; min-width: 0; }
.pal-i small { color: var(--muted); font-size: 12px; }
.pal-i.on { background: var(--brand-soft); }
.pal-i.on > .ico { color: var(--brand); }
.pal-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.pal-foot span { display: flex; gap: 4px; align-items: center; }
.pal-foot span:last-child { margin-left: auto; }
.pal .empty { gap: 12px; }
.ai-drawer { width: min(480px, 100vw); }
.ai-drawer .db { padding: 0; gap: 0; }
.ai { display: flex; flex-direction: column; height: 100%; }
.ai-log { flex: 1; overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.ai-msg { display: flex; gap: 10px; align-items: flex-start; }
.ai-msg.me { justify-content: flex-end; }
.ai-av { width: 30px; height: 30px; border-radius: 10px; background: var(--deep); color: var(--gold); display: grid; place-items: center; flex: none; }
.ai-av .ico { width: 16px; height: 16px; }
.bub { padding: 11px 14px; border-radius: 16px; font-size: 13.5px; max-width: 86%; line-height: 1.55; }
.bot .bub { background: var(--panel-2); border: 1px solid var(--line); border-top-left-radius: 5px; }
.me .bub { background: var(--brand); color: var(--on-brand); border-top-right-radius: 5px; }
.bub ul { margin: 6px 0; padding-left: 18px; }
.bub em { color: var(--muted); }
.ai-link { display: inline-block; margin-top: 6px; font-weight: 600; color: var(--brand); }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .25; transform: translateY(-2px); } }
.ai-sugg { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 20px; border-top: 1px solid var(--line); }
.ai-sugg button { font-size: 12.5px; padding: 6px 11px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); transition: border-color .15s, color .15s; }
.ai-sugg button:hover { border-color: var(--brand); color: var(--brand); }
.ai-in { display: flex; gap: 8px; padding: 12px 20px 18px; }
.ai-in input { flex: 1; height: 44px; padding: 0 14px; border-radius: 13px; border: 1px solid var(--line); background: var(--panel-2); outline: 0; min-width: 0; }
.ai-in input:focus { border-color: var(--brand); }
.ai-in .btn { height: 44px; width: 44px; padding: 0; }
.geo { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 10px 0 6px; }
.geo h4 { font-size: 16px; display: flex; gap: 6px; align-items: center; }
.geo h4 .ico { color: var(--ok); }
.radar { width: 150px; height: 150px; position: relative; display: grid; place-items: center; margin-bottom: 8px; }
.radar i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--brand); opacity: 0; animation: radar 1.8s ease-out infinite; }
.radar i:nth-child(2) { animation-delay: .6s; } .radar i:nth-child(3) { animation-delay: 1.2s; }
.radar span { width: 56px; height: 56px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; box-shadow: 0 10px 30px -10px var(--brand); z-index: 1; transition: transform .3s; }
.radar span .ico { width: 26px; height: 26px; }
.radar.done i { animation: none; opacity: 0; }
.radar.done span { transform: scale(1.12); background: var(--ok); }
@keyframes radar { from { transform: scale(.35); opacity: .9; } to { transform: scale(1); opacity: 0; } }
#toasts { position: fixed; z-index: 200; bottom: 22px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; width: min(520px, calc(100vw - 32px)); }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow-lg); font-size: 13.5px; font-weight: 500; animation: tin .3s cubic-bezier(.2,.8,.2,1); max-width: 100%; }
.toast .ico { color: var(--gold); }
.toast.bad .ico { color: #ff9b85; }
.toast.out { opacity: 0; transform: translateY(8px); transition: .25s; }
.tlink { margin-left: 6px; font-weight: 700; color: var(--gold); padding: 4px 8px; border-radius: 8px; }
.tlink:hover { background: rgba(255,255,255,.1); }
@keyframes tin { from { opacity: 0; transform: translateY(12px) scale(.96); } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 300; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; animation: fall 1.9s cubic-bezier(.25,.6,.4,1) forwards; }
@keyframes fall { to { transform: translate(var(--x), 105vh) rotate(var(--r)); opacity: .8; } }
.print-area { display: none; }

/* ---------- dark-mode touch-ups ---------- */
:root[data-theme="dark"] .side .brand, :root[data-theme="dark"] .lfoot img, :root[data-theme="dark"] .lnav .brand img { background: #fff; border-radius: 12px; }
:root[data-theme="dark"] .lnav .brand img, :root[data-theme="dark"] .lfoot img { padding: 4px 10px; }
:root[data-theme="dark"] .bcard:hover { background: #163f35; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .lnav .brand img, :root:not([data-theme="light"]) .lfoot img { background: #fff; border-radius: 12px; padding: 4px 10px; }
}

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .bento-g { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span4 { grid-column: span 2; }
  .row2 { grid-row: auto; }
  .fgrid, .bento { grid-template-columns: repeat(2, 1fr); }
  .search span { display: none; }
  .search { width: auto; }
  .search kbd { display: none; }
}
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; gap: 60px; }
  .hero-v { max-width: 560px; margin: 0 auto; width: 100%; }
  .grid-2-1, .grid-2, .inbox, .cf { grid-template-columns: minmax(0, 1fr); }
  .cf-r { position: static; }
  .ib-pane { position: static; }
  #ibRows { max-height: none; }
  .kpis, .bal-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: 1fr 1fr; }
  .fstep::after { display: none; }
  .me-t { display: none; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; width: 280px; transform: translateX(-100%); transition: transform .25s; box-shadow: var(--shadow-lg); }
  .side.open { transform: none; }
  .only-m { display: inline-grid; }
  .top { padding: 0 12px; gap: 8px; height: 60px; }
  .crumb span, .crumb .ico { display: none; }
  .view { padding: 18px 16px 110px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 50; background: var(--deep); border-radius: 20px; padding: 6px; box-shadow: var(--shadow-lg); }
  .tabbar > * { display: grid; justify-items: center; gap: 2px; padding: 7px 0; border-radius: 14px; color: var(--on-deep-mut); font-size: 10.5px; font-weight: 600; position: relative; }
  .tabbar .on { background: rgba(255,255,255,.1); color: #fff; }
  .tabbar .on .ico { color: var(--gold); }
  .tabbar .cnt { position: absolute; top: 2px; right: 18%; height: 17px; min-width: 17px; font-size: 10px; }
  #toasts { bottom: 96px; }
  .lnav nav { display: none; }
  .lnav .btn { margin-left: auto; }
  .live { display: none; }
}
@media (max-width: 640px) {
  .phead h1 { font-size: 32px; }
  .bento-g { grid-template-columns: minmax(0, 1fr); }
  .span2, .span4 { grid-column: auto; }
  .fgrid, .bento { grid-template-columns: 1fr; }
  .bcard.wide { grid-column: auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .flow, .seat-grid, .two, .vpick { grid-template-columns: 1fr; }
  .seg { grid-template-columns: 1fr 1fr; }
  .hv-float.a { left: -6px; bottom: -40px; }
  .hv-float.b { right: -6px; }
  .hv-float.c { display: none; }
  .hv-row { grid-template-columns: 1fr; justify-items: center; }
  .claim { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px 12px; }
  .claim .cl-u, .claim .cl-d { display: none; }
  .claim .pill { grid-column: 2 / 4; justify-self: start; }
  .claim .amt { min-width: 0; }
  .elabel { display: none; }
  .erow { grid-template-columns: 1fr 76px 38px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
  .erow select { grid-column: 1 / -1; }
  .cal-h, .cal-g { gap: 3px; }
  .cal-c { min-height: 52px; padding: 4px; border-radius: 8px; }
  .cal-c small { display: none; }
  .cal-c .rep { right: 4px; top: 6px; width: 5px; height: 5px; }
  .kpi > .spark { display: none; }
  .brief { flex-wrap: wrap; }
  .brief .btn { flex-basis: 100%; }
  .p-sign { grid-template-columns: 1fr 1fr; }
  .modal { border-radius: 20px 20px 0 0; align-self: end; max-height: 92vh; }
  .scrim:not(.sheet) { padding: 0; place-items: end center; }
  .modal.pal { margin-top: 0; }
  .hbars li { grid-template-columns: 1fr auto; }
  .hbars div { grid-column: 1 / -1; grid-row: 2; }
  .prog { width: 70px; }
  .me-btn { padding: 2px; margin-left: 0; }
  .top-r .ib { width: 34px; height: 34px; }
}

/* ---------- print ---------- */
@media print {
  body > *:not(.print-area) { display: none !important; }
  .print-area { display: block !important; }
  .print-area .paper, .print-area .slip-doc { box-shadow: none; border: 0; }
  @page { margin: 14mm; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
