:root{--navy: #0f172a;--navy-2: #111827;--ink: #172033;--muted: #64748b;--line: #e5e7eb;--card: #ffffff;--soft: #f8fafc;--accent: #111827;--ok: #15803d;--warn: #b45309;--danger: #b91c1c;--shadow: 0 10px 30px rgba(15, 23, 42, .06);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#0f172a;background:#f6f7fb;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%;text-size-adjust:100%}html,body{margin:0;padding:0;min-height:100%}body{background:#f6f7fb}button,input,select,textarea{font:inherit}button{cursor:pointer}img,svg{max-width:100%}[hidden]{display:none!important}#app{min-height:100vh;min-height:100dvh}:focus-visible{outline:2px solid #64748b;outline-offset:2px}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}.shell{min-height:100vh;min-height:100dvh;display:grid;grid-template-columns:250px minmax(0,1fr)}.main{min-width:0;min-height:100vh;min-height:100dvh}.sidebar{background:var(--navy);color:#fff;padding:24px 16px;display:flex;flex-direction:column;position:sticky;top:0;align-self:start;height:100vh;height:100dvh;overflow-y:auto}.brand{padding:4px 10px 24px;margin-bottom:18px;border-bottom:1px solid rgba(255,255,255,.1)}.brand strong{display:block;font-size:20px;letter-spacing:.08em}.brand small{color:#94a3b8}.sidebar-footer{margin-top:auto;padding:16px 10px 0;color:#94a3b8;font-size:12px}.nav{display:grid;gap:6px}.nav button{border:0;color:#cbd5e1;background:transparent;text-align:left;padding:11px 12px;border-radius:10px;transition:background .15s ease,color .15s ease}.nav button:hover{color:#fff;background:#ffffff14}.nav button.active,.nav button[aria-current=page]{color:#fff;font-weight:600;background:#ffffff29;box-shadow:inset 3px 0 #fff}.nav button:focus-visible{outline-color:#fff;outline-offset:-2px}.topbar{position:sticky;top:0;z-index:20;min-height:72px;padding:0 28px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px}.topbar h1{margin:0;font-size:20px}.user-chip{display:flex;align-items:center;gap:12px;min-width:0}.avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#e2e8f0;font-weight:700;flex:0 0 auto}.content{width:100%;max-width:1440px;margin:0 auto;padding:28px}.page-head{display:flex;gap:18px;justify-content:space-between;align-items:flex-start;margin-bottom:22px}.page-head h2{margin:0 0 6px;font-size:28px}.page-head p{margin:0;color:var(--muted)}.actions{display:flex;gap:10px;flex-wrap:wrap}.btn{border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:10px;padding:10px 14px;font-weight:600;transition:background .15s ease,border-color .15s ease}.btn:hover{border-color:#cbd5e1;background:var(--soft)}.btn:disabled{opacity:.6;cursor:not-allowed}.btn.primary{background:var(--navy);color:#fff;border-color:var(--navy)}.btn.primary:hover{background:#1e293b}.btn.ghost{background:transparent}.btn.danger{color:var(--danger)}.grid{display:grid;gap:16px}.grid.stats{grid-template-columns:repeat(4,minmax(0,1fr))}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.card{background:var(--card);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}.card.pad{padding:18px}.card-title{padding:16px 18px;border-bottom:1px solid var(--line);display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px}.card-title strong{font-size:15px}.card-body,.stat{padding:18px}.label,.stat .label{color:var(--muted);font-size:13px}.card-body .label{margin-bottom:4px;font-size:12px;font-weight:700}.stat .value{margin-top:6px;font-size:30px;font-weight:750}.stat .meta{margin-top:6px;color:var(--muted);font-size:12px}.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}table{width:100%;border-collapse:collapse}th,td{padding:13px 14px;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap}th{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}td{font-size:14px}tr:last-child td{border-bottom:0}.clickable{cursor:pointer}.clickable:hover td{background:#fafafa}.clickable:focus-visible{outline-offset:-2px}.form{display:grid;gap:14px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.field{display:grid;gap:7px;min-width:0}.field.full{grid-column:1 / -1}.field label{font-size:12px;color:var(--muted);font-weight:700}.field input,.field select,.field textarea{width:100%;border:1px solid #dbe1ea;border-radius:10px;padding:10px 11px;background:#fff;color:var(--ink);outline:none}.field input:focus,.field select:focus,.field textarea:focus{border-color:#94a3b8;box-shadow:0 0 0 3px #94a3b824}.field textarea{min-height:110px;resize:vertical}.form-footer{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;padding-top:4px}.badge{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:700;background:#f1f5f9;color:#475569}.badge.ok{background:#ecfdf5;color:#166534}.badge.warn{background:#fff7ed;color:#9a3412}.badge.info{background:#eff6ff;color:#1d4ed8}.badge.danger{background:#fef2f2;color:#991b1b}.timeline{display:grid;gap:12px}.timeline-item{position:relative;padding:14px 14px 14px 18px;border:1px solid var(--line);border-radius:12px;background:#fff}.timeline-item:before{content:"";position:absolute;left:0;top:13px;bottom:13px;width:3px;background:#cbd5e1;border-radius:3px}.timeline-top{display:flex;justify-content:space-between;gap:12px}.timeline-type{font-weight:700}.timeline-meta{color:var(--muted);font-size:12px}.timeline-note{margin-top:9px;color:#334155;line-height:1.5;white-space:pre-wrap}.empty{padding:36px 18px;text-align:center;color:var(--muted)}.notice{padding:12px 14px;border-radius:10px;background:#f8fafc;color:#475569;border:1px solid var(--line)}.alert{padding:12px 14px;border-radius:10px;background:#fef2f2;color:#991b1b;border:1px solid #fecaca}.toast{position:fixed;right:22px;bottom:22px;z-index:100;background:#111827;color:#fff;padding:12px 15px;border-radius:10px;box-shadow:var(--shadow)}.login{min-height:100vh;min-height:100dvh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at top left,#e2e8f0,transparent 35%),#f8fafc}.login-card{width:min(430px,100%);background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 18px 50px #0f172a1a;padding:28px}.login-brand{margin-bottom:26px}.login-brand strong{display:block;font-size:28px;letter-spacing:.08em}.login-brand span{color:var(--muted)}.login-card h1{margin:0 0 8px;font-size:24px}.login-card p{margin:0 0 20px;color:var(--muted)}.search{display:flex;gap:10px;align-items:center;margin-bottom:14px}.search input{flex:1;min-width:0;border:1px solid var(--line);border-radius:10px;padding:10px 12px}.modal{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:20px;background:#0f172a73}.modal-panel{width:min(760px,100%);max-height:90vh;max-height:90dvh;overflow:auto;background:#fff;border-radius:16px;box-shadow:0 24px 70px #0003}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px;border-bottom:1px solid var(--line)}.modal-head h3{margin:0}.modal-body{padding:20px}.icon-btn{border:0;background:transparent;color:var(--muted);font-size:20px}@media(max-width:1100px){.shell{grid-template-columns:210px minmax(0,1fr)}.content{padding:22px}.topbar{padding:0 22px}.grid.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:800px){.shell{display:block}.sidebar{position:sticky;top:0;z-index:40;height:auto;align-self:auto;overflow-y:visible;padding:10px 12px}.brand{margin:0;padding:8px 6px 10px;border:0;display:flex;align-items:center;justify-content:space-between}.sidebar-footer{display:none}.nav{grid-auto-flow:column;grid-auto-columns:max-content;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}.nav::-webkit-scrollbar{display:none}.nav button{white-space:nowrap;min-height:44px}.nav button.active,.nav button[aria-current=page]{box-shadow:inset 0 -3px #fff}.topbar{position:static;min-height:60px;padding:10px 16px;gap:12px}.topbar h1{font-size:18px}#user-email{display:none}.content{padding:18px 14px calc(18px + env(safe-area-inset-bottom))}.page-head{display:grid;gap:12px;margin-bottom:16px}.page-head h2{font-size:22px}.grid.two,.grid.three,.form-grid{grid-template-columns:1fr}.stat .value{font-size:26px}.field input,.field select,.field textarea,.search input{font-size:16px}.btn{min-height:44px}.modal{padding:12px;align-items:end}.modal-panel{max-height:92vh;max-height:92dvh}.modal-head{padding:14px 16px}.modal-body{padding:16px}.toast{left:14px;right:14px;bottom:calc(14px + env(safe-area-inset-bottom))}}@media(max-width:600px){.grid.stats{grid-template-columns:1fr}.grid[style*=grid-template-columns]{grid-template-columns:1fr!important}.actions,.form-footer{flex-direction:column;align-items:stretch}.actions .btn,.form-footer .btn,.page-head>.btn{width:100%}.card-body,.card-title,.card.pad,.login{padding:14px}.login-card{padding:22px 18px}th,td{padding:11px 10px}}.viz-root{--viz-grid: #e1e0d9;--viz-axis: #c3c2b7;--viz-muted: #898781;--viz-track: #cde2fb;display:grid;grid-template-columns:minmax(0,1fr);gap:16px}.viz-root>*,.viz-root .grid>*,.viz-goals>*{min-width:0}.viz-note{margin:0;color:var(--muted);font-size:12px}.viz-row{margin:0}.viz-svg{display:block;width:100%;height:auto;overflow:visible}.viz-grid{stroke:var(--viz-grid);stroke-width:1;shape-rendering:crispEdges}.viz-baseline{stroke:var(--viz-axis)}.viz-tick{fill:var(--muted);font-size:11px;font-variant-numeric:tabular-nums}.viz-today{fill:var(--ink);font-weight:700}.viz-value{fill:var(--ink);font-size:12px;font-weight:700}.viz-hit{cursor:default;outline:none}.viz-hit:focus-visible{outline:2px solid var(--ink);outline-offset:2px}g.viz-hit:hover path,g.viz-hit:focus path{opacity:.82}.viz-hero-row{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:14px}.viz-hero-value{font-size:48px;font-weight:750;line-height:1.05;margin:4px 0}.viz-hero-split{display:flex;gap:28px}.viz-hero-split strong{font-size:20px}.viz-meter{position:relative;height:10px;border-radius:999px;background:var(--viz-track)}.viz-meter-fill{height:100%;border-radius:999px;transition:width .5s ease}.viz-meter-marker{position:absolute;top:-4px;width:2px;height:18px;margin-left:-1px;background:var(--ink);border-radius:1px}.viz-goals{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}.viz-goal .value{font-size:26px}.viz-status{display:inline-flex;align-items:center;gap:6px;margin-top:10px;font-size:12px;font-weight:700;color:var(--ink)}.viz-status-icon{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;font-size:10px;color:#fff;background:var(--status, var(--viz-muted))}.viz-goals-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px;align-items:end}.viz-donut{display:flex;flex-wrap:wrap;align-items:center;gap:20px}.viz-donut-svg{width:180px;flex:0 0 auto}.viz-donut-total{fill:var(--ink);font-size:28px;font-weight:750}.viz-legend{display:flex;flex-wrap:wrap;gap:8px 18px;margin:12px 0 0;padding:0;list-style:none;font-size:13px;color:var(--ink)}.viz-legend-col{flex-direction:column;margin:0;flex:1;min-width:160px}.viz-legend-item{display:flex;align-items:center;gap:8px}.viz-legend-item strong{margin-left:auto;padding-left:12px;color:var(--muted);font-weight:600;font-variant-numeric:tabular-nums}.viz-swatch{width:10px;height:10px;border-radius:3px;flex:0 0 auto}.viz-hbars{display:grid;gap:10px}.viz-hbar-row{display:grid;grid-template-columns:minmax(90px,140px) 1fr;align-items:center;gap:12px;font-size:13px;border-radius:6px}.viz-hbar-row[role=button]{cursor:pointer}.viz-hbar-row[role=button]:hover .viz-hbar-label{text-decoration:underline}.viz-hbar-label{color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.viz-hbar-track{display:flex;align-items:center;gap:8px;min-height:20px}.viz-hbar-fill{height:18px;border-radius:0 4px 4px 0;transition:width .5s ease}.viz-hbar-value{font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums}.viz-stack{display:flex;gap:2px;height:28px}.viz-stack-seg{display:grid;place-items:center;min-width:4px;font-size:12px;font-weight:700}.viz-stack-seg:first-child{border-radius:4px 0 0 4px}.viz-stack-seg:last-child{border-radius:0 4px 4px 0}.viz-stack-seg:only-child{border-radius:4px}.viz-table{margin-top:12px;font-size:13px}.viz-table summary{cursor:pointer;color:var(--muted)}.viz-table .table-wrap{max-height:220px;overflow:auto;margin-top:8px}.viz-tip{position:fixed;z-index:60;padding:6px 10px;border-radius:8px;background:var(--navy);color:#fff;font-size:12px;font-weight:600;pointer-events:none;box-shadow:var(--shadow);white-space:nowrap}.viz-skeleton{border-radius:8px;background:linear-gradient(90deg,#eef0f4 25%,#f6f7fb 37%,#eef0f4 63%);background-size:400% 100%;animation:viz-shimmer 1.4s ease infinite}.viz-skeleton-title{height:12px;width:40%;margin-bottom:12px}.viz-skeleton-value{height:28px;width:55%;margin-bottom:12px}.viz-skeleton-bar{height:10px;width:100%;border-radius:999px}.viz-skeleton-chart{height:200px;width:100%}@keyframes viz-shimmer{0%{background-position:100% 50%}to{background-position:0 50%}}@media(prefers-reduced-motion:reduce){.viz-skeleton{animation:none}.viz-meter-fill,.viz-hbar-fill{transition:none}}@media(max-width:1100px){.viz-goals{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){.viz-goals{grid-template-columns:repeat(2,minmax(0,1fr))}.viz-hero-value{font-size:40px}.viz-hbar-row{grid-template-columns:96px 1fr}}@media(max-width:420px){.viz-goals{grid-template-columns:1fr}}
