/* Service Plus OS — design system v2 (premium) */
@property --a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
:root {
  --red: #e3221a; --red-2: #ff4a3f;
  --ok: #34c77b; --warn: #f5a524; --info: #5b95ff; --vio: #a58bff;
  --f-sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --r: 18px; --side: 262px;
}
[data-theme="dark"] {
  --frame: #040405; --bg: #09090b; --surface: #111215; --surface2: #17181c; --surface3: #1f2126;
  --line: rgba(255,255,255,.07); --line2: rgba(255,255,255,.13);
  --text: #f4f3f0; --muted: #8f8e8a; --muted2: #5f5e5b;
  --glow: rgba(227,34,26,.15); --shadow: 0 30px 70px -24px rgba(0,0,0,.8);
  --chip: rgba(255,255,255,.055); --grid: rgba(255,255,255,.028); --hi: rgba(255,255,255,.035); --edge: rgba(255,255,255,.06);
}
[data-theme="light"] {
  --frame: #dedad2; --bg: #f7f5f1; --surface: #ffffff; --surface2: #f5f3ee; --surface3: #ebe8e1;
  --line: rgba(13,14,16,.08); --line2: rgba(13,14,16,.17);
  --text: #0d0e10; --muted: #6b6a66; --muted2: #a09f9a;
  --glow: rgba(227,34,26,.09); --shadow: 0 30px 60px -28px rgba(50,35,20,.3);
  --chip: rgba(13,14,16,.05); --grid: rgba(13,14,16,.035); --hi: rgba(255,255,255,.7); --edge: rgba(255,255,255,.9);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--frame); color: var(--text); font: 400 14.5px/1.5 var(--f-sans); -webkit-font-smoothing: antialiased; overflow: hidden; transition: background .5s, color .4s; font-feature-settings: "ss01", "cv11"; }
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1000; opacity: .045; mix-blend-mode: overlay; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 6px; }
svg { display: block; }
[data-ic] svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.mono, .label { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; }
.label { color: var(--muted); }
.muted { color: var(--muted); } .t-red { color: var(--red-2); } .t-ok { color: var(--ok); } .t-warn { color: var(--warn); }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }

/* boot */
.boot { position: fixed; inset: 0; z-index: 2000; background: #050506; display: grid; place-items: center; transition: opacity .7s .1s, visibility .7s .1s; }
.boot.out { opacity: 0; visibility: hidden; }
.boot-in { display: grid; justify-items: center; gap: 20px; animation: rise .8s var(--ease) both; color: #f3f2ef; }
.boot-t { font-size: 22px; font-weight: 500; letter-spacing: -.02em; } .boot-t i { font-size: 1.15em; color: var(--red-2); }
.boot-bar { width: 160px; height: 2px; background: rgba(255,255,255,.1); border-radius: 2px; overflow: hidden; }
.boot-bar span { display: block; height: 100%; background: var(--red); transform-origin: left; animation: load 1s var(--ease) both; }
@keyframes load { from { transform: scaleX(0); } }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(145deg, var(--red-2), var(--red) 55%, #a8130d); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; letter-spacing: -.04em; box-shadow: 0 8px 24px -6px rgba(227,34,26,.6), inset 0 1px 0 rgba(255,255,255,.35); flex: none; }
.logo-mark.lg { width: 52px; height: 52px; border-radius: 15px; font-size: 24px; } .logo-mark.sm { width: 30px; height: 30px; border-radius: 9px; font-size: 13px; }
.logo-mark b { font-weight: 600; opacity: .85; margin-left: -1px; }

/* shell */
.app { display: grid; grid-template-columns: var(--side) 1fr; height: 100vh; transition: grid-template-columns .5s var(--ease); background: radial-gradient(600px 400px at 0% 100%, rgba(227,34,26,.07), transparent 70%), var(--frame); }
.app.collapsed { --side: 78px; }
.side { display: flex; flex-direction: column; padding: 14px 12px 14px 14px; gap: 6px; overflow: hidden; }
.ws { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; transition: .25s; text-align: left; border: 1px solid transparent; }
.ws:hover { background: var(--chip); border-color: var(--line); }
.ws-t { display: grid; line-height: 1.2; white-space: nowrap; flex: 1; } .ws-t strong { font-weight: 600; letter-spacing: -.02em; font-size: 15px; } .ws-t span { font-size: 11.5px; color: var(--muted); }
.ws-c { color: var(--muted); } .ws-c svg { width: 16px; height: 16px; }
.nav { display: grid; gap: 2px; position: relative; margin-top: 10px; }
.nav-g { font: 500 10px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted2); padding: 16px 12px 6px; white-space: nowrap; }
.nav-g:first-of-type { padding-top: 4px; }
.nav-i { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 11px; color: var(--muted); font-weight: 500; white-space: nowrap; transition: color .25s, background .25s; z-index: 1; }
.nav-i [data-ic] { transition: transform .4s var(--ease), color .25s; }
.nav-i:hover { color: var(--text); } .nav-i:hover [data-ic] { transform: scale(1.12) rotate(-4deg); }
.nav-i.on { color: var(--text); } .nav-i.on [data-ic] { color: var(--red-2); }
.nav-i .cnt { margin-left: auto; font: 500 10.5px var(--f-mono); padding: 2px 7px; border-radius: 99px; background: var(--chip); color: var(--muted); }
.nav-i .cnt.hot { background: var(--red); color: #fff; box-shadow: 0 0 14px rgba(227,34,26,.5); }
.nav-ind { position: absolute; left: 0; right: 0; top: 0; border-radius: 11px; background: linear-gradient(90deg, var(--glow), transparent 80%), var(--surface); box-shadow: inset 0 0 0 1px var(--line2), inset 0 1px 0 var(--edge), 0 8px 20px -10px rgba(0,0,0,.6); transition: transform .55s var(--ease), height .3s; z-index: 0; }
.side-foot { margin-top: auto; display: grid; gap: 10px; }
.goal { padding: 14px; border-radius: 16px; background: linear-gradient(160deg, rgba(227,34,26,.2), transparent 60%), var(--surface); border: 1px solid var(--line2); display: grid; gap: 10px; position: relative; overflow: hidden; }
.goal::after { content: ""; position: absolute; width: 120px; height: 120px; right: -40px; top: -50px; border-radius: 50%; background: radial-gradient(circle, rgba(255,74,63,.4), transparent 70%); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translate(-14px, 10px) scale(1.15); } }
.goal-h { display: flex; justify-content: space-between; align-items: baseline; position: relative; z-index: 1; } .goal b { font-size: 26px; font-weight: 500; letter-spacing: -.04em; } .goal small { color: var(--muted); font-size: 11.5px; }
.goal .meter { position: relative; z-index: 1; }
.me { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.me-t { display: grid; line-height: 1.2; min-width: 0; flex: 1; white-space: nowrap; } .me-t strong { font-weight: 600; font-size: 13px; } .me-t span { font-size: 11.5px; color: var(--muted); }
.betaline { display: flex; align-items: center; gap: 10px; padding: 0 6px; font-size: 12px; white-space: nowrap; } .betaline button { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line2); } .betaline button:hover { color: var(--text); }
.pill { font: 600 9.5px var(--f-mono); letter-spacing: .1em; padding: 3px 8px; border-radius: 99px; background: var(--red); color: #fff; }
.collapsed .ws-t, .collapsed .ws-c, .collapsed .cnt, .collapsed .nav-i span.t, .collapsed .me-t, .collapsed .goal, .collapsed .betaline, .collapsed .nav-g { display: none; }
.collapsed .nav-i, .collapsed .ws { justify-content: center; padding-inline: 0; } .collapsed .me { flex-direction: column; } .collapsed .me .icon-btn { transform: rotate(180deg); } .collapsed .nav { margin-top: 16px; }

.frame { padding: 10px 10px 10px 0; min-width: 0; height: 100vh; }
.main { display: flex; flex-direction: column; height: 100%; min-width: 0; position: relative; border-radius: 24px; border: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(800px 380px at 80% -10%, var(--glow), transparent 70%), radial-gradient(700px 400px at 5% 110%, rgba(120,90,255,.06), transparent 70%), linear-gradient(var(--grid) 1px, transparent 1px) 0 0/100% 64px, var(--bg);
  box-shadow: inset 0 1px 0 var(--edge), 0 40px 80px -30px rgba(0,0,0,.7); }
.top { display: grid; grid-template-columns: 1fr minmax(260px, 520px) 1fr; align-items: center; gap: 16px; padding: 12px 24px; border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); background: color-mix(in srgb, var(--bg) 60%, transparent); z-index: 4; }
.crumb { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; } .crumb b { color: var(--text); font-weight: 600; } .crumb .sep { opacity: .35; }
.cmdbar { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 12px; background: var(--chip); border: 1px solid var(--line); color: var(--muted); transition: .3s var(--ease); width: 100%; }
.cmdbar:hover { border-color: var(--line2); color: var(--text); box-shadow: 0 0 0 4px var(--glow); } .cb-t { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; }
kbd { font: 500 10.5px var(--f-mono); padding: 2px 6px; border-radius: 6px; background: var(--chip); border: 1px solid var(--line); color: var(--muted); }
.top-r { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.rel { position: relative; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: var(--muted); border: 1px solid transparent; transition: .25s; position: relative; }
.icon-btn:hover { color: var(--text); background: var(--chip); border-color: var(--line); }
.dot-n { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--bg); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 2px var(--bg), 0 0 0 0 rgba(227,34,26,.55); } 70%, 100% { box-shadow: 0 0 0 2px var(--bg), 0 0 0 8px rgba(227,34,26,0); } }
.view { flex: 1; overflow-y: auto; padding: 32px 36px 70px; scroll-behavior: smooth; }
.view > * { max-width: 1520px; margin-inline: auto; }
.view.enter { animation: viewin .6s var(--ease); } @keyframes viewin { from { opacity: .0; filter: blur(8px); transform: translateY(10px) scale(.995); } }

/* buttons / chips */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 11px; font-weight: 500; border: 1px solid var(--line2); background: var(--surface2); box-shadow: inset 0 1px 0 var(--edge); transition: transform .3s var(--ease), background .25s, border-color .25s, box-shadow .3s; white-space: nowrap; }
.btn:hover { background: var(--surface3); transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn.primary { background: linear-gradient(180deg, #ff5a4f, var(--red) 70%); border-color: rgba(255,120,110,.4); color: #fff; box-shadow: 0 10px 26px -10px rgba(227,34,26,.8), inset 0 1px 0 rgba(255,255,255,.3); }
.btn.primary:hover { box-shadow: 0 14px 32px -10px rgba(227,34,26,.95), inset 0 1px 0 rgba(255,255,255,.3); background: linear-gradient(180deg, #ff6a5f, #ea281f 70%); }
.btn.ghost { background: transparent; box-shadow: none; } .btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 9px; } .btn.ok { color: var(--ok); }
.btn [data-ic] svg { width: 16px; height: 16px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 6px 13px; border-radius: 99px; background: var(--chip); border: 1px solid var(--line); color: var(--muted); font-weight: 500; font-size: 13px; transition: .25s var(--ease); display: inline-flex; gap: 7px; align-items: center; }
.chip:hover { color: var(--text); border-color: var(--line2); transform: translateY(-1px); }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip small { font: 500 10.5px var(--f-mono); opacity: .65; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 500; background: var(--chip); white-space: nowrap; }
.tag i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.tag.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 13%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 22%, transparent); }
.tag.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 13%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 22%, transparent); }
.tag.red { color: var(--red-2); background: color-mix(in srgb, var(--red) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--red) 25%, transparent); }
.tag.info { color: var(--info); background: color-mix(in srgb, var(--info) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--info) 22%, transparent); }
.tag.mute { color: var(--muted); }
.sdot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }

/* page head */
.ph { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.ph h1 { font-size: clamp(30px, 3vw, 46px); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.ph h1 .serif { font-size: 1.12em; color: var(--red-2); }
.ph p { color: var(--muted); margin-top: 10px; font-size: 14.5px; }
.ph-r { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tools { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 18px; }
.sfield { display: flex; align-items: center; gap: 9px; padding: 8px 13px; border-radius: 11px; background: var(--surface); border: 1px solid var(--line); min-width: 280px; color: var(--muted); transition: .3s; }
.sfield:focus-within { border-color: var(--red); box-shadow: 0 0 0 4px var(--glow); color: var(--text); }
.sfield input { background: none; border: 0; outline: 0; flex: 1; min-width: 0; }

/* cards */
.card { background: linear-gradient(180deg, var(--hi), transparent 45%), var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; position: relative; transition: border-color .3s, transform .5s var(--ease), box-shadow .5s; box-shadow: inset 0 1px 0 var(--edge), 0 1px 2px rgba(0,0,0,.2); }
.spot::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--glow), transparent 60%); z-index: 0; }
.spot::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s; padding: 1px; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.28), transparent 70%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.spot:hover::before, .spot:hover::after { opacity: 1; }
.card > * { position: relative; z-index: 1; }
.card-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; }
.card-h h3 { font-size: 15px; font-weight: 600; letter-spacing: -.015em; }
.card-h .sub { font-size: 12.5px; color: var(--muted); }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: 1fr 1fr; } .g4 { grid-template-columns: repeat(4, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g-main { grid-template-columns: 1.7fr 1fr; } .g-cards { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
@media (max-width: 1200px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g-main, .g3, .g2 { grid-template-columns: 1fr; } .top { grid-template-columns: 1fr auto; } .cmdbar { display: none; } }
@media (max-width: 760px) { .app { grid-template-columns: 1fr; } .side { display: none; } .frame { padding: 0; } .main { border-radius: 0; } .view { padding: 20px 16px 50px; } .g4 { grid-template-columns: 1fr; } }
.grid + .grid, .grid + .card, .card + .grid { margin-top: 16px; }

.hero { overflow: hidden; padding: 26px 26px 18px; }
.hero::before { content: ""; position: absolute; width: 520px; height: 320px; right: -120px; top: -160px; background: radial-gradient(closest-side, rgba(227,34,26,.22), transparent); filter: blur(10px); pointer-events: none; z-index: 0; opacity: 1 !important; }
.hero-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.hero-val { display: flex; align-items: center; gap: 14px; font-size: clamp(40px, 4.6vw, 68px); font-weight: 500; letter-spacing: -.055em; line-height: 1.05; margin: 10px 0 6px; font-variant-numeric: tabular-nums; }
.hero-val .cur, .kpi-val .cur { font-size: .55em; color: var(--muted); font-weight: 400; margin-left: 2px; }
.hero-val .delta { font: 500 12px var(--f-mono); letter-spacing: 0; padding: 4px 9px; align-self: center; margin-top: 6px; }
.hero { display: flex; flex-direction: column; } .hero #revChart { flex: 1; display: flex; align-items: flex-end; } .hero #revChart svg { width: 100%; }
.hero-sub { color: var(--muted); font-size: 13.5px; } .hero-sub b { color: var(--text); font-weight: 500; }
.legend-i { display: flex; gap: 18px; margin-top: 6px; font-size: 12.5px; color: var(--muted); } .legend-i span { display: inline-flex; align-items: center; gap: 8px; } .legend-i i { width: 14px; height: 3px; border-radius: 3px; background: var(--red-2); box-shadow: 0 0 10px var(--red); } .legend-i i.d { background: none; border-top: 2px dashed var(--muted); box-shadow: none; height: 0; }
.kpi { padding: 20px 20px 16px; overflow: hidden; }
.kpi-top { display: flex; justify-content: space-between; align-items: center; }
.kpi-val { font-size: 36px; font-weight: 500; letter-spacing: -.05em; margin: 12px 0 2px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi-sub { font-size: 12.5px; color: var(--muted); }
.delta { font: 500 11px var(--f-mono); padding: 3px 8px; border-radius: 99px; } .delta.up { color: var(--ok); background: color-mix(in srgb, var(--ok) 13%, transparent); } .delta.dn { color: var(--red-2); background: color-mix(in srgb, var(--red) 14%, transparent); }
.kpi .spark { position: absolute; right: 0; bottom: 0; left: 0; height: 50px; opacity: .95; pointer-events: none; z-index: 0; }
.kpi-body { position: relative; z-index: 1; padding-bottom: 32px; }

/* insights (AI) */
.insights { border: 1px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, conic-gradient(from var(--a), transparent 0 55%, rgba(227,34,26,.9) 78%, #ff9a5c 88%, transparent 96%) border-box; animation: spin 7s linear infinite; display: flex; flex-direction: column; }
@keyframes spin { to { --a: 360deg; } }
.ai-h { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; } .ai-orb { width: 34px; height: 34px; border-radius: 11px; background: conic-gradient(from 180deg, #ff4a3f, #ff9a5c, #a58bff, #ff4a3f); display: grid; place-items: center; color: #fff; box-shadow: 0 0 24px rgba(255,74,63,.5); animation: spin2 6s linear infinite; position: relative; } .ai-orb::after { content: ""; position: absolute; inset: 1.5px; border-radius: 9.5px; background: var(--surface); } .ai-orb span { position: relative; z-index: 1; color: var(--red-2); }
@keyframes spin2 { to { transform: rotate(360deg); } } .ai-orb span { animation: spin2 6s linear infinite reverse; }
.ai-h h3 { font-size: 15px; font-weight: 600; } .ai-h p { font-size: 12.5px; color: var(--muted); }
.ins { display: flex; gap: 12px; padding: 13px; border-radius: 14px; background: var(--surface2); border: 1px solid var(--line); margin-bottom: 10px; transition: .35s var(--ease); animation: rise .7s var(--ease) both; animation-delay: calc(var(--i) * 140ms + 400ms); align-items: flex-start; }
.ins:hover { transform: translateY(-2px); border-color: var(--line2); } .ins:last-child { margin: 0; }
.ins b { display: block; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; margin-bottom: 3px; } .ins span.s { font-size: 12.5px; color: var(--muted); line-height: 1.45; display: block; }
.ins .btn { margin-top: 10px; }
.a-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.a-ic.red { background: color-mix(in srgb, var(--red) 16%, transparent); color: var(--red-2); } .a-ic.warn { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); } .a-ic.info { background: color-mix(in srgb, var(--info) 16%, transparent); color: var(--info); } .a-ic.ok { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }

/* charts */
.chart { width: 100%; height: auto; overflow: visible; }
.chart text { font: 500 10.5px var(--f-mono); fill: var(--muted); }
.chart .grid-l { stroke: var(--line); stroke-dasharray: 2 6; }
.area-line { fill: none; stroke: var(--red-2); stroke-width: 2.6; stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(255,74,63,.6)); }
.area-fill { animation: fade 1.4s ease .3s both; } @keyframes fade { from { opacity: 0; } }
.tline { fill: none; stroke: var(--text); stroke-opacity: .4; stroke-width: 1.4; stroke-dasharray: 4 6; }
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s var(--ease) .25s forwards; } @keyframes draw { to { stroke-dashoffset: 0; } }
.xh { opacity: 0; transition: opacity .2s; pointer-events: none; } .xh.on { opacity: 1; }
.xh line { stroke: var(--line2); stroke-dasharray: 3 4; } .xh .c1 { fill: var(--bg); stroke: var(--red-2); stroke-width: 2.5; } .xh .c2 { fill: var(--muted); }
.donut-wrap { display: grid; grid-template-columns: 170px 1fr; gap: 18px; align-items: center; }
.donut circle.seg { fill: none; stroke-width: 15; transition: stroke-width .25s, opacity .25s; transform: rotate(-90deg); transform-origin: 50% 50%; animation: dseg 1.2s var(--ease) both; cursor: pointer; stroke-linecap: butt; }
@keyframes dseg { from { stroke-dasharray: 0 999; } }
.donut:hover circle.seg { opacity: .3; } .donut circle.seg.hl { opacity: 1 !important; stroke-width: 19; }
.donut text { fill: var(--text); text-anchor: middle; } .donut .big { font: 500 21px var(--f-sans); letter-spacing: -.04em; } .donut .sm { font: 500 9px var(--f-mono); fill: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.legend { display: grid; gap: 6px; font-size: 13px; } .legend div { display: flex; align-items: center; gap: 9px; padding: 4px 8px; margin: 0 -8px; border-radius: 8px; transition: background .2s; } .legend div:hover, .legend div.hl { background: var(--chip); }
.legend b { margin-left: auto; font: 500 12px var(--f-mono); color: var(--muted); }
/* map */
.mapwrap { display: grid; grid-template-columns: 1fr 210px; gap: 20px; align-items: center; }
.map .land { fill: url(#gLand); stroke: var(--line2); stroke-width: 1.2; stroke-linejoin: round; }
.map .dots circle { fill: var(--muted2); opacity: .35; }
.cdot { fill: var(--red-2); filter: drop-shadow(0 0 10px rgba(255,74,63,.9)); cursor: pointer; transition: r .3s var(--ease); }
.cring { fill: none; stroke: var(--red-2); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ring 2.8s ease-out infinite; }
@keyframes ring { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
.map text { font: 500 10px var(--f-mono); fill: var(--muted); letter-spacing: .04em; }
.crow { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 9px; margin: 0 -8px; font-size: 13px; transition: .2s; } .crow:hover { background: var(--chip); } .crow b { margin-left: auto; font: 500 12px var(--f-mono); color: var(--muted); } .crow .n { width: 18px; color: var(--muted2); font: 500 11px var(--f-mono); }

/* lists */
.task { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--line); cursor: pointer; transition: .25s var(--ease); }
.task:last-child { border: 0; } .task:hover { padding-left: 8px; }
.chk { width: 20px; height: 20px; border-radius: 7px; border: 1.5px solid var(--line2); display: grid; place-items: center; flex: none; transition: .35s var(--ease); color: transparent; }
.chk svg { width: 13px; height: 13px; stroke-width: 3; }
.task.done .chk { background: var(--ok); border-color: var(--ok); color: #fff; transform: scale(1.1); box-shadow: 0 0 14px color-mix(in srgb, var(--ok) 60%, transparent); }
.task.done .tx { text-decoration: line-through; color: var(--muted); }
.task .tx { flex: 1; transition: .3s; } .task time { font: 500 11px var(--f-mono); color: var(--muted); }
.alert { display: flex; gap: 12px; padding: 12px; border-radius: 13px; background: var(--surface2); border: 1px solid var(--line); margin-bottom: 10px; align-items: center; transition: .3s var(--ease); }
.alert:hover { border-color: var(--line2); transform: translateX(3px); } .alert:last-child { margin: 0; }
.alert .tx { flex: 1; min-width: 0; line-height: 1.3; } .alert .tx b { display: block; font-weight: 500; } .alert .tx span { font-size: 12.5px; color: var(--muted); }
.rank { display: grid; gap: 15px; } .rank-r { display: grid; gap: 7px; cursor: pointer; } .rank-r > div:first-child { display: flex; align-items: center; gap: 10px; } .rank-r b { margin-left: auto; font: 500 12.5px var(--f-mono); }
.meter { height: 6px; border-radius: 6px; background: var(--chip); overflow: hidden; } .meter i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #b8160f, var(--red-2)); transform-origin: left; animation: load 1.2s var(--ease) .2s both; box-shadow: 0 0 12px rgba(255,74,63,.4); }
.meter.g i { background: linear-gradient(90deg, #1f9e5a, var(--ok)); box-shadow: 0 0 12px rgba(52,199,123,.35); } .meter.w i { background: linear-gradient(90deg, #c9820c, var(--warn)); box-shadow: 0 0 12px rgba(245,165,36,.35); }
.av { border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-weight: 600; flex: none; letter-spacing: -.02em; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 0 0 2px var(--surface); }

/* table */
.tbl-wrap { overflow-x: auto; padding: 0 !important; }
table { width: 100%; border-collapse: collapse; min-width: 1000px; }
th { text-align: left; font: 500 10.5px var(--f-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(8px); z-index: 2; }
th.sort { cursor: pointer; user-select: none; transition: color .2s; } th.sort:hover { color: var(--text); } th.sort::after { content: "↕"; margin-left: 6px; opacity: .35; } th.sort.asc::after { content: "↑"; opacity: 1; color: var(--red-2); } th.sort.desc::after { content: "↓"; opacity: 1; color: var(--red-2); }
td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr { cursor: pointer; transition: background .25s; animation: rise .55s var(--ease) both; animation-delay: calc(var(--i) * 26ms); position: relative; }
tbody tr:hover { background: linear-gradient(90deg, var(--glow), transparent 40%), var(--surface2); } tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--red); } tbody tr:last-child td { border: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.cell { display: flex; align-items: center; gap: 12px; min-width: 0; } .cell > div { min-width: 0; line-height: 1.3; } .cell b { font-weight: 500; display: block; } .cell small { color: var(--muted); font-size: 12px; }
.thumb { width: 42px; height: 42px; border-radius: 12px; background-size: cover; background-position: center; flex: none; box-shadow: inset 0 0 0 1px var(--line2), 0 6px 14px -6px rgba(0,0,0,.6); position: relative; overflow: hidden; }
.thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 40%, rgba(0,0,0,.4)); }
.empty { padding: 48px; text-align: center; color: var(--muted); }
.progress { display: flex; align-items: center; gap: 10px; min-width: 120px; } .progress .meter { flex: 1; } .progress small { font: 500 11px var(--f-mono); color: var(--muted); width: 34px; text-align: right; }
.tl { position: relative; height: 6px; border-radius: 6px; background: var(--chip); min-width: 110px; } .tl i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: linear-gradient(90deg, var(--info), var(--vio)); box-shadow: 0 0 10px rgba(91,149,255,.4); } .tl i.w { background: linear-gradient(90deg, #c9820c, var(--warn)); } .tl em { position: absolute; top: -3px; width: 2px; height: 12px; background: var(--text); border-radius: 2px; }
.tl-w { display: grid; gap: 6px; } .tl-w small { font-size: 11.5px; color: var(--muted); }

/* pipeline */
.funnel { display: flex; margin-bottom: 18px; filter: drop-shadow(0 12px 20px rgba(0,0,0,.25)); }
.fseg { position: relative; padding: 14px 18px 14px 28px; margin-left: -10px; min-width: 120px; clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%, 18px 50%); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 30%, var(--surface)), color-mix(in srgb, var(--c) 8%, var(--surface))); animation: fseg .9s var(--ease) both; animation-delay: calc(var(--i) * 90ms); transition: flex .8s var(--ease); }
.fseg:first-child { margin-left: 0; clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%); border-radius: 14px 0 0 14px; } .fseg:last-child { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 18px 50%); border-radius: 0 14px 14px 0; }
.fseg b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; } .fseg span { font: 500 10.5px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); } .fseg::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--c); box-shadow: 0 0 14px var(--c); }
@keyframes fseg { from { opacity: 0; transform: translateX(-30px); } }
.kanban { display: grid; grid-template-columns: repeat(5, minmax(212px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 10px; align-items: start; max-width: none !important; }
.col { background: color-mix(in srgb, var(--surface) 50%, transparent); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; min-height: 420px; transition: .35s var(--ease); }
.col.over { border-color: var(--red); background: var(--glow); box-shadow: 0 0 0 4px var(--glow), 0 0 40px -10px var(--red); transform: translateY(-2px); }
.col-h { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 12px; }
.col-h h3 { font-size: 13.5px; font-weight: 600; display: flex; gap: 8px; align-items: center; } .col-h h3 small { font: 500 10.5px var(--f-mono); color: var(--muted); background: var(--chip); padding: 1px 7px; border-radius: 99px; }
.col-h .sum { font: 500 12px var(--f-mono); color: var(--muted); }
.col-bar { height: 3px; border-radius: 3px; margin: 0 6px 12px; background: var(--chip); overflow: hidden; } .col-bar i { display: block; height: 100%; background: var(--c); box-shadow: 0 0 10px var(--c); animation: load 1s var(--ease) both; transform-origin: left; }
.deal { background: linear-gradient(180deg, var(--hi), transparent), var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 13px; margin-bottom: 10px; cursor: grab; transition: transform .4s var(--ease), border-color .25s, box-shadow .4s, opacity .25s; animation: rise .55s var(--ease) both; animation-delay: calc(var(--i) * 40ms); display: grid; gap: 10px; box-shadow: inset 0 1px 0 var(--edge); }
.deal:hover { transform: translateY(-4px) rotate(-.4deg); border-color: var(--line2); box-shadow: var(--shadow), inset 0 1px 0 var(--edge); }
.deal.drag { opacity: .35; transform: scale(.96) rotate(2deg); } .deal:active { cursor: grabbing; }
.deal-t { font-weight: 500; line-height: 1.3; letter-spacing: -.01em; }
.deal-m { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.deal-v { font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em; } .deal-v small { font-weight: 400; color: var(--muted); font-size: 11.5px; }
.deal-f { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }
.deal-p { height: 3px; border-radius: 3px; background: var(--chip); overflow: hidden; } .deal-p i { display: block; height: 100%; border-radius: 3px; }
.hot { font: 600 9.5px var(--f-mono); letter-spacing: .08em; color: #fff; background: linear-gradient(90deg, #ff8a4c, var(--red)); padding: 2px 7px; border-radius: 99px; margin-left: 8px; vertical-align: middle; }
.stat-strip { display: flex; gap: 28px; flex-wrap: wrap; } .stat-strip div { display: grid; } .stat-strip b { font-size: 26px; font-weight: 500; letter-spacing: -.045em; font-variant-numeric: tabular-nums; } .stat-strip span { font-size: 12px; color: var(--muted); }
.burst { position: fixed; width: 8px; height: 8px; border-radius: 2px; pointer-events: none; z-index: 1500; animation: burst 1.1s var(--ease) forwards; }
@keyframes burst { to { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); opacity: 0; } }

/* clients */
.client { cursor: pointer; display: grid; gap: 14px; padding: 0 !important; overflow: hidden; animation: rise .6s var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
.client:hover { transform: translateY(-5px); box-shadow: var(--shadow), inset 0 1px 0 var(--edge); }
.cover { height: 74px; position: relative; background: radial-gradient(circle at 20% 120%, hsl(var(--h) 60% 50% / .38), transparent 55%), radial-gradient(circle at 90% -20%, hsl(calc(var(--h) + 50) 60% 55% / .26), transparent 55%), linear-gradient(135deg, hsl(var(--h) 40% 14%), hsl(calc(var(--h) + 30) 40% 9%)); }
.cover::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 18px 18px; mask-image: linear-gradient(180deg, #000, transparent); -webkit-mask-image: linear-gradient(180deg, #000, transparent); }
.cover .since { position: absolute; right: 14px; top: 12px; font: 500 10px var(--f-mono); letter-spacing: .1em; color: rgba(255,255,255,.7); z-index: 1; }
[data-theme="light"] .cover { filter: saturate(.8) brightness(1.5) contrast(.9); }
.client-b { padding: 0 20px 20px; display: grid; gap: 14px; margin-top: -30px; position: relative; z-index: 2; }
.client-h { display: flex; gap: 13px; align-items: flex-start; } .client-h .ring { margin-top: 34px; } .client-h .av { box-shadow: 0 0 0 4px var(--surface), 0 10px 20px -6px rgba(0,0,0,.6) !important; }
.client-t { padding-top: 34px; } .client-t h3 { font-size: 15.5px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; } .client-t p { font-size: 12.5px; color: var(--muted); }
.ring { margin-left: auto; position: relative; width: 46px; height: 46px; flex: none; } .ring svg { transform: rotate(-90deg); } .ring circle { fill: none; stroke-width: 4; } .ring .bg { stroke: var(--chip); } .ring .fg { stroke-linecap: round; filter: drop-shadow(0 0 4px currentColor); animation: ringin 1.4s var(--ease) both; } .ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 500 11.5px var(--f-mono); }
@keyframes ringin { from { stroke-dashoffset: 126; } }
.client-s { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); } .client-s div { display: grid; } .client-s b { font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; } .client-s span { font-size: 11.5px; color: var(--muted); }
.svc-chips { display: flex; gap: 6px; flex-wrap: wrap; } .svc-chip { white-space: nowrap; font-size: 11.5px; padding: 3px 9px; border-radius: 99px; background: var(--chip); display: inline-flex; gap: 6px; align-items: center; box-shadow: inset 0 0 0 1px var(--line); }

/* planner */
.planner th, .planner td { padding: 9px 8px; text-align: center; } .planner th:first-child, .planner td:first-child { text-align: left; padding-left: 16px; } .planner table { min-width: 860px; }
.shift { width: 44px; height: 34px; border-radius: 10px; font: 600 12px var(--f-mono); display: inline-grid; place-items: center; transition: transform .3s var(--ease), background .25s; border: 1px solid transparent; user-select: none; }
.shift:hover { transform: scale(1.15); } .shift:active { transform: scale(.9); }
.shift.R { background: color-mix(in srgb, var(--info) 17%, transparent); color: var(--info); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--info) 25%, transparent); } .shift.P { background: color-mix(in srgb, var(--warn) 17%, transparent); color: var(--warn); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 25%, transparent); } .shift.N { background: color-mix(in srgb, var(--vio) 20%, transparent); color: var(--vio); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--vio) 28%, transparent); } .shift.O { color: var(--muted2); border-color: var(--line); }
.planner tr.cov td { background: var(--surface2); font: 500 12px var(--f-mono); color: var(--muted); }
.planner tbody tr { cursor: default; }

/* popovers / overlays */
.pop { position: absolute; right: 0; top: calc(100% + 10px); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(20px); border: 1px solid var(--line2); border-radius: 16px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.96); transform-origin: top right; transition: .35s var(--ease); z-index: 50; }
.pop.open { opacity: 1; visibility: visible; transform: none; }
.menu { width: 230px; padding: 6px; } .menu button { display: flex; width: 100%; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-align: left; transition: .2s; } .menu button:hover { background: var(--chip); padding-left: 16px; } .menu [data-ic] { color: var(--red-2); }
.notif { width: 390px; padding: 8px; max-height: 70vh; overflow: auto; } .notif h4 { padding: 10px 12px 6px; font-weight: 600; } .notif .n { display: flex; gap: 12px; padding: 11px 12px; border-radius: 12px; } .notif .n:hover { background: var(--chip); } .notif .n b { font-weight: 500; display: block; line-height: 1.3; } .notif .n span { font-size: 12.5px; color: var(--muted); } .notif .n time { margin-left: auto; font: 500 11px var(--f-mono); color: var(--muted); white-space: nowrap; }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: .45s; z-index: 60; } .overlay.open { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 10px; right: 10px; bottom: 10px; width: min(600px, calc(100vw - 20px)); background: var(--surface); border: 1px solid var(--line2); border-radius: 24px; z-index: 70; transform: translateX(110%); transition: transform .6s var(--ease); display: flex; flex-direction: column; box-shadow: var(--shadow); overflow: hidden; }
.drawer.open { transform: none; }
.dr-h { padding: 24px 28px 18px; border-bottom: 1px solid var(--line); display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; background: radial-gradient(400px 160px at 0 0, var(--glow), transparent); }
.dr-h h2 { font-size: 24px; font-weight: 500; letter-spacing: -.035em; line-height: 1.15; margin: 8px 0 4px; } .dr-h p { color: var(--muted); font-size: 13px; }
.dr-b { padding: 24px 28px 30px; overflow-y: auto; flex: 1; display: grid; gap: 24px; align-content: start; }
.dr-f { padding: 16px 28px; border-top: 1px solid var(--line); display: flex; gap: 10px; flex-wrap: wrap; background: var(--surface2); }
.dr-b h4 { font: 500 10.5px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.dr-b > div { animation: rise .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 200ms); }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; } .kv div { display: grid; gap: 2px; } .kv span { font-size: 12px; color: var(--muted); } .kv b { font-weight: 500; font-variant-numeric: tabular-nums; }
.mini { display: grid; gap: 2px; } .mini-r { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; cursor: pointer; transition: .25s var(--ease); } .mini-r:hover { background: var(--chip); transform: translateX(3px); } .mini-r .grow { flex: 1; min-width: 0; line-height: 1.3; } .mini-r small { display: block; color: var(--muted); font-size: 12px; }
.steps { display: flex; gap: 6px; } .steps i { flex: 1; height: 6px; border-radius: 6px; background: var(--chip); transition: .5s var(--ease); } .steps i.on { background: var(--red); box-shadow: 0 0 12px rgba(227,34,26,.6); }
.hero-img { height: 130px; border-radius: 16px; background-size: cover; background-position: center; position: relative; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line2); } .hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(8,9,11,.8)); }
.sumbox { grid-column: 1 / -1; padding: 14px; border-radius: 13px; background: var(--surface2); border: 1px dashed var(--line2); display: grid; gap: 6px; } .sumbox div { display: flex; justify-content: space-between; } .sumbox div:last-child { font-weight: 600; font-size: 17px; padding-top: 8px; border-top: 1px solid var(--line); }
/* invoice paper */
.paper { background: #fbfaf7; color: #14151a; border-radius: 12px; padding: 26px; font-size: 12px; line-height: 1.45; box-shadow: 0 30px 50px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.08); position: relative; overflow: hidden; transform: rotate(-.4deg); }
.paper::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.6) 50%, transparent 60%); transform: translateX(-100%); animation: sheen 2.4s .6s var(--ease) forwards; pointer-events: none; } @keyframes sheen { to { transform: translateX(100%); } }
.paper-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding-bottom: 16px; border-bottom: 2px solid #14151a; } .paper-h b { font-size: 13px; display: block; } .paper small { color: #6b6a66; font-size: 11px; display: block; }
.paper-no { text-align: right; font: 500 10px var(--f-mono); letter-spacing: .1em; color: #6b6a66; } .paper-no b { font: 600 17px var(--f-sans); letter-spacing: -.02em; color: #14151a; margin-top: 2px; }
.paper-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 16px 0; } .paper-2 h6 { margin: 0 0 4px; font: 500 9.5px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #8a8985; }
.paper table { min-width: 0; margin-top: 4px; } .paper th { position: static; background: none; backdrop-filter: none; color: #8a8985; padding: 8px 0; border-bottom: 1px solid #d9d6cf; font-size: 9.5px; } .paper td { padding: 10px 0; border-bottom: 1px solid #ece9e2; } .paper tbody tr { animation: none; cursor: default; } .paper tbody tr:hover { background: none; } .paper tbody tr:hover td:first-child { box-shadow: none; }
.paper-tot { display: grid; gap: 5px; margin: 14px 0 0 auto; width: 55%; } .paper-tot div { display: flex; justify-content: space-between; } .paper-tot div:last-child { border-top: 2px solid #14151a; padding-top: 8px; margin-top: 4px; font-size: 15px; font-weight: 700; }
.paper-f { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 18px; gap: 14px; } .qr { width: 74px; height: 74px; background: #fff; padding: 4px; border: 1px solid #d9d6cf; border-radius: 6px; }
.stamp { position: absolute; right: 22px; top: 96px; font: 700 22px var(--f-mono); letter-spacing: .12em; padding: 6px 14px; border: 3px solid; border-radius: 10px; transform: rotate(-12deg) scale(1.6); opacity: 0; animation: stamp .5s var(--ease) 1s forwards; mix-blend-mode: multiply; } @keyframes stamp { to { opacity: .85; transform: rotate(-12deg) scale(1); } } .stamp.ok { color: #1f9e5a; border-color: #1f9e5a; } .stamp.bad { color: #d4231b; border-color: #d4231b; }

.modal-wrap, .palette-wrap { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(0,0,0,.55); backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: .4s; padding: 20px; }
.palette-wrap { place-items: start center; padding-top: 14vh; z-index: 90; }
.modal-wrap.open, .palette-wrap.open { opacity: 1; visibility: visible; }
.modal { width: min(540px, 100%); background: var(--surface); border: 1px solid var(--line2); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); transform: translateY(26px) scale(.95); transition: .55s var(--ease); max-height: 90vh; overflow: auto; }
.open .modal { transform: none; }
.modal h2 { font-size: 24px; font-weight: 500; letter-spacing: -.035em; margin-bottom: 4px; } .modal > p { color: var(--muted); margin-bottom: 20px; }
.form { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; } .fld { display: grid; gap: 6px; } .fld.w { grid-column: 1 / -1; } .fld span { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.fld input, .fld select, .fld textarea { background: var(--surface2); border: 1px solid var(--line2); border-radius: 12px; padding: 11px 13px; outline: 0; transition: .25s; width: 100%; } .fld input:focus, .fld select:focus { border-color: var(--red); box-shadow: 0 0 0 4px var(--glow); }
.form-f { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.palette { width: min(660px, 100%); background: color-mix(in srgb, var(--surface) 94%, transparent); border: 1px solid var(--line2); border-radius: 22px; box-shadow: var(--shadow), 0 0 0 1px var(--line); overflow: hidden; transform: translateY(-16px) scale(.96); transition: .5s var(--ease); } .open .palette { transform: none; }
.palette-in { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); color: var(--muted); } .palette-in input { flex: 1; background: none; border: 0; outline: 0; font-size: 17px; color: var(--text); }
.palette-l { max-height: 50vh; overflow: auto; padding: 8px; } .palette-l h5 { margin: 12px 12px 4px; font: 500 10px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted2); }
.pi { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; cursor: pointer; } .pi.sel { background: var(--chip); box-shadow: inset 2px 0 0 var(--red); } .pi small { margin-left: auto; color: var(--muted); font-size: 12px; } .pi [data-ic] { color: var(--muted); }
.palette-f { display: flex; gap: 18px; padding: 11px 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); background: var(--surface2); } .palette-f span { display: inline-flex; gap: 6px; align-items: center; }
.tip { position: fixed; z-index: 1100; pointer-events: none; padding: 10px 13px; border-radius: 12px; background: var(--text); color: var(--bg); font-size: 12.5px; line-height: 1.4; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; box-shadow: var(--shadow); white-space: nowrap; } .tip.on { opacity: 1; transform: none; } .tip b { display: block; font-size: 15px; letter-spacing: -.02em; }
.toasts { position: fixed; bottom: 24px; right: 24px; z-index: 1200; display: grid; gap: 10px; justify-items: end; }
.toast { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(20px); border: 1px solid var(--line2); box-shadow: var(--shadow); animation: toast .6s var(--ease) both; max-width: 400px; position: relative; overflow: hidden; } .toast.out { animation: toastout .35s forwards; }
.toast .tbar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--ok); transform-origin: left; animation: tbar 3.4s linear forwards; } .toast.warn .tbar { background: var(--warn); } @keyframes tbar { to { transform: scaleX(0); } }
.toast .ti { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); flex: none; } .toast.warn .ti { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); } .toast .ti svg { width: 16px; height: 16px; }
@keyframes toast { from { opacity: 0; transform: translateY(24px) scale(.9); } } @keyframes toastout { to { opacity: 0; transform: translateX(30px); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.rv { animation: rise .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; animation-iteration-count: 1 !important; } }
