:root{--font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, "Courier New", monospace;--font-ui: var(--font-mono);--text-xs: 11px;--text-sm: 12px;--text-md: 13px;--text-lg: 15px;--text-xl: 18px;--shadow-sm: none;--shadow-md: none;--shadow-lg: 0 2px 8px rgba(0, 0, 0, .25);--glass: var(--bg-secondary);--accent-soft: color-mix(in srgb, var(--accent-primary) 10%, transparent);--success-soft: color-mix(in srgb, var(--accent-success) 12%, transparent);--warning-soft: color-mix(in srgb, var(--accent-warning) 14%, transparent);--error-soft: color-mix(in srgb, var(--accent-error) 12%, transparent);--spring: cubic-bezier(.32, .72, 0, 1);--space-1: 4px;--space-2: 8px;--space-3: 12px;--space-4: 16px;--space-5: 24px;--space-6: 32px;--radius-sm: 2px;--radius-md: 4px;--radius-lg: 6px;--bg-primary: #1a1b26;--bg-secondary: #24283b;--bg-tertiary: #292e42;--bg-hover: #3b4261;--text-primary: #c0caf5;--text-secondary: #a9b1d6;--text-muted: #565f89;--accent-primary: #7aa2f7;--accent-secondary: #bb9af7;--accent-success: #9ece6a;--accent-warning: #e0af68;--accent-error: #f7768e;--border-color: #3b4261;--input-bg: #1a1b26;--table-header: #292e42;--table-row-alt: #1f2335;--color-company: #7dcfff;--color-project: #bb9af7;--color-precinct: #f7768e;--color-stage: #9ece6a;--color-lot: #e0af68;--color-subgroup: #73daca;--border-subtle: rgba(255, 255, 255, .06);--separator: rgba(255, 255, 255, .08);--hover-tint: rgba(255, 255, 255, .03)}[data-theme=tokyo-night]{--bg-primary: #e9ecf5;--bg-secondary: #dde1ed;--bg-tertiary: #c6cddf;--bg-hover: #aab3cc;--text-primary: #05050e;--text-secondary: #1e233d;--text-muted: #3a3f5c;--accent-primary: #0a3166;--accent-secondary: #5a1580;--accent-success: #075019;--accent-warning: #6d3a00;--accent-error: #7c100c;--border-color: #4d5572;--input-bg: #ffffff;--table-header: #c6cddf;--table-row-alt: #dce1ee;--color-company: #001f3a;--color-project: #2a0550;--color-precinct: #4a0805;--color-stage: #032e0e;--color-lot: #3a1c00;--color-subgroup: #022818;--border-subtle: rgba(0, 0, 0, .3);--separator: rgba(0, 0, 0, .4);--hover-tint: rgba(10, 49, 102, .14)}[data-theme=tokyo-night] body,[data-theme=tokyo-night] input,[data-theme=tokyo-night] select,[data-theme=tokyo-night] button,[data-theme=tokyo-night] textarea{font-weight:500}[data-theme=tokyo-night] strong,[data-theme=tokyo-night] th,[data-theme=tokyo-night] h1,[data-theme=tokyo-night] h2,[data-theme=tokyo-night] h3,[data-theme=tokyo-night] h4{font-weight:700}[data-theme=tokyo-night] td,[data-theme=tokyo-night] label,[data-theme=tokyo-night] span,[data-theme=tokyo-night] div,[data-theme=tokyo-night] p,[data-theme=tokyo-night] a{font-weight:500}[data-theme=tokyo-night] th{background:#3a3f5c;color:#f5f6fa}[data-theme=tokyo-night] tbody tr:hover td{background:color-mix(in srgb,#0a3166 12%,transparent)}[data-theme=pastel] body,[data-theme=pastel] input,[data-theme=pastel] select,[data-theme=pastel] button,[data-theme=pastel] textarea{font-weight:500}[data-theme=pastel] strong,[data-theme=pastel] th,[data-theme=pastel] h1,[data-theme=pastel] h2,[data-theme=pastel] h3,[data-theme=pastel] h4{font-weight:700}[data-theme=pastel] td,[data-theme=pastel] label,[data-theme=pastel] span,[data-theme=pastel] div,[data-theme=pastel] p,[data-theme=pastel] a{font-weight:500}[data-theme=pastel] th{background:#525e80;color:#f5f6fa}[data-theme=pastel] tbody tr:hover td{background:color-mix(in srgb,#2e5ed0 10%,transparent)}[data-theme=console]{--bg-primary: rgba(10, 10, 10, .82);--bg-secondary: rgba(20, 20, 20, .78);--bg-tertiary: rgba(30, 30, 30, .75);--bg-hover: rgba(42, 42, 42, .8);--bg-solid: #0a0a0a;--text-primary: #33ff33;--text-secondary: #22cc22;--text-muted: #117711;--accent-primary: #33ff33;--accent-secondary: #00ffff;--accent-success: #33ff33;--accent-warning: #ffff00;--accent-error: #ff3333;--border-color: rgba(51, 255, 51, .35);--input-bg: rgba(10, 10, 10, .9);--table-header: rgba(26, 26, 26, .8);--table-row-alt: rgba(15, 15, 15, .6);--color-company: #00ffff;--color-project: #ff00ff;--color-precinct: #ff3333;--color-stage: #33ff33;--color-lot: #ffff00;--color-subgroup: #00ff99;--terminal-glow: 0 0 80px rgba(51, 255, 51, .04);--border-subtle: rgba(51, 255, 51, .1);--separator: rgba(51, 255, 51, .15);--hover-tint: rgba(51, 255, 51, .05)}[data-theme=ocean]{--bg-primary: #1e3a5f;--bg-secondary: #264b7a;--bg-tertiary: #2d5a94;--bg-hover: #3d6aa4;--text-primary: #ffffff;--text-secondary: #e0e8f0;--text-muted: #8fa8c8;--accent-primary: #5dade2;--accent-secondary: #af7ac5;--accent-success: #58d68d;--accent-warning: #f4d03f;--accent-error: #ec7063;--border-color: #5dade2;--input-bg: #1a3050;--table-header: #2d5a94;--table-row-alt: #234a74;--color-company: #85c1e9;--color-project: #c39bd3;--color-precinct: #f1948a;--color-stage: #82e0aa;--color-lot: #f7dc6f;--color-subgroup: #76d7c4;--border-subtle: rgba(255, 255, 255, .06);--separator: rgba(255, 255, 255, .08);--hover-tint: rgba(255, 255, 255, .03)}[data-theme=high-contrast]{--bg-primary: #000000;--bg-secondary: #0a0a0a;--bg-tertiary: #1a1a1a;--bg-hover: #2a2a2a;--text-primary: #ffffff;--text-secondary: #f0f0f0;--text-muted: #b0b0b0;--accent-primary: #00d4ff;--accent-secondary: #ff00ff;--accent-success: #00ff00;--accent-warning: #ffff00;--accent-error: #ff0000;--border-color: #ffffff;--input-bg: #000000;--table-header: #1a1a1a;--table-row-alt: #0f0f0f;--color-company: #00d4ff;--color-project: #ff00ff;--color-precinct: #ff0000;--color-stage: #00ff00;--color-lot: #ffff00;--color-subgroup: #00ffcc;--border-subtle: rgba(255, 255, 255, .1);--separator: rgba(255, 255, 255, .12);--hover-tint: rgba(255, 255, 255, .05)}[data-theme=vibrant]{--bg-primary: #120024;--bg-secondary: #1a0038;--bg-tertiary: #24004f;--bg-hover: #350070;--text-primary: #f0e6ff;--text-secondary: #d4bfff;--text-muted: #8866bb;--accent-primary: #ff3cac;--accent-secondary: #00f5d4;--accent-success: #7dff3c;--accent-warning: #ffe63c;--accent-error: #ff3c5e;--border-color: #5b2d8e;--input-bg: #0e001c;--table-header: #24004f;--table-row-alt: #17002e;--color-company: #00d9ff;--color-project: #ff3cac;--color-precinct: #ff6b6b;--color-stage: #7dff3c;--color-lot: #ffe63c;--color-subgroup: #00f5d4;--border-subtle: rgba(255, 255, 255, .06);--separator: rgba(255, 255, 255, .08);--hover-tint: rgba(255, 255, 255, .03)}[data-theme=retro]{--bg-primary: #1c1410;--bg-secondary: #2a1f18;--bg-tertiary: #362a20;--bg-hover: #4a3a2c;--text-primary: #ffd9a0;--text-secondary: #d4a868;--text-muted: #8a6840;--accent-primary: #ff9b3c;--accent-secondary: #e8c547;--accent-success: #88b84a;--accent-warning: #e8c547;--accent-error: #d45050;--border-color: #5a4430;--input-bg: #18110c;--table-header: #362a20;--table-row-alt: #231a14;--color-company: #ff9b3c;--color-project: #e8c547;--color-precinct: #d45050;--color-stage: #88b84a;--color-lot: #d4a868;--color-subgroup: #6db89a;--border-subtle: rgba(255, 255, 255, .06);--separator: rgba(255, 255, 255, .08);--hover-tint: rgba(255, 255, 255, .03)}[data-theme=pastel]{--bg-primary: #f0f4ff;--bg-secondary: #e4ecfc;--bg-tertiary: #d0dbf3;--bg-hover: #b8c9ef;--text-primary: #1a2a52;--text-secondary: #2a3d74;--text-muted: #525e80;--accent-primary: #2e5ed0;--accent-secondary: #6a46c5;--accent-success: #2a8a5c;--accent-warning: #8a6020;--accent-error: #b03848;--border-color: #5a6a99;--input-bg: #ffffff;--table-header: #d0dbf3;--table-row-alt: #dde6f8;--color-company: #0a2f70;--color-project: #38208a;--color-precinct: #7a1828;--color-stage: #0f5236;--color-lot: #5a3a08;--color-subgroup: #0a4a46;--border-subtle: rgba(0, 0, 0, .26);--separator: rgba(0, 0, 0, .36);--hover-tint: rgba(46, 94, 208, .12)}[data-theme=slate]{--bg-primary: #0f172a;--bg-secondary: #1e293b;--bg-tertiary: #334155;--bg-hover: #475569;--text-primary: #f1f5f9;--text-secondary: #cbd5e1;--text-muted: #94a3b8;--accent-primary: #3b82f6;--accent-secondary: #8b5cf6;--accent-success: #22c55e;--accent-warning: #f59e0b;--accent-error: #ef4444;--border-color: #475569;--input-bg: #1e293b;--table-header: #334155;--table-row-alt: #1a2438;--color-company: #60a5fa;--color-project: #a78bfa;--color-precinct: #f87171;--color-stage: #4ade80;--color-lot: #fbbf24;--color-subgroup: #2dd4bf;--border-subtle: rgba(255, 255, 255, .08);--separator: rgba(255, 255, 255, .1);--hover-tint: rgba(59, 130, 246, .08)}[data-theme=paper]{--bg-primary: #fafafa;--bg-secondary: #f4f4f5;--bg-tertiary: #e4e4e7;--bg-hover: #d4d4d8;--text-primary: #18181b;--text-secondary: #27272a;--text-muted: #52525b;--accent-primary: #2563eb;--accent-secondary: #7c3aed;--accent-success: #15803d;--accent-warning: #b45309;--accent-error: #b91c1c;--border-color: #71717a;--input-bg: #ffffff;--table-header: #e4e4e7;--table-row-alt: #efeff1;--color-company: #1e3a8a;--color-project: #5b21b6;--color-precinct: #991b1b;--color-stage: #14532d;--color-lot: #78350f;--color-subgroup: #134e4a;--border-subtle: rgba(0, 0, 0, .22);--separator: rgba(0, 0, 0, .32);--hover-tint: rgba(37, 99, 235, .1)}[data-theme=forest]{--bg-primary: #0f1a14;--bg-secondary: #18271e;--bg-tertiary: #20382b;--bg-hover: #2d4a3a;--text-primary: #e2f0e7;--text-secondary: #b8d4c2;--text-muted: #6f8a7a;--accent-primary: #10b981;--accent-secondary: #84cc16;--accent-success: #34d399;--accent-warning: #eab308;--accent-error: #f43f5e;--border-color: #2d4a3a;--input-bg: #0c1611;--table-header: #20382b;--table-row-alt: #14241a;--color-company: #5eead4;--color-project: #a3e635;--color-precinct: #fb7185;--color-stage: #34d399;--color-lot: #facc15;--color-subgroup: #67e8f9;--border-subtle: rgba(255, 255, 255, .06);--separator: rgba(255, 255, 255, .08);--hover-tint: rgba(16, 185, 129, .08)}[data-theme=solar]{--bg-primary: #fbf5e8;--bg-secondary: #f3ead2;--bg-tertiary: #e8dab2;--bg-hover: #d9c898;--text-primary: #3a2a10;--text-secondary: #5a4220;--text-muted: #6e572e;--accent-primary: #b45309;--accent-secondary: #9333ea;--accent-success: #4d7c0f;--accent-warning: #b91c1c;--accent-error: #991b1b;--border-color: #7d6a3d;--input-bg: #fffcf2;--table-header: #e8dab2;--table-row-alt: #f3ead2;--color-company: #1e3a8a;--color-project: #581c87;--color-precinct: #7f1d1d;--color-stage: #1a4314;--color-lot: #5c2e00;--color-subgroup: #155e63;--border-subtle: rgba(60, 42, 16, .24);--separator: rgba(60, 42, 16, .36);--hover-tint: rgba(180, 83, 9, .12)}[data-theme=mono]{--bg-primary: #0a0a0a;--bg-secondary: #171717;--bg-tertiary: #262626;--bg-hover: #404040;--text-primary: #fafafa;--text-secondary: #d4d4d4;--text-muted: #a3a3a3;--accent-primary: #e5e5e5;--accent-secondary: #a3a3a3;--accent-success: #d4d4d4;--accent-warning: #a3a3a3;--accent-error: #fafafa;--border-color: #525252;--input-bg: #0a0a0a;--table-header: #262626;--table-row-alt: #141414;--color-company: #fafafa;--color-project: #d4d4d4;--color-precinct: #a3a3a3;--color-stage: #e5e5e5;--color-lot: #d4d4d4;--color-subgroup: #a3a3a3;--border-subtle: rgba(255, 255, 255, .08);--separator: rgba(255, 255, 255, .12);--hover-tint: rgba(255, 255, 255, .05)}[data-theme=cosmic]{--bg-primary: #14082b;--bg-secondary: #1f0f3f;--bg-tertiary: #2d165a;--bg-hover: #3f1e7a;--text-primary: #f3e8ff;--text-secondary: #d8b4fe;--text-muted: #9d7bcc;--accent-primary: #a855f7;--accent-secondary: #ec4899;--accent-success: #34d399;--accent-warning: #fbbf24;--accent-error: #fb7185;--border-color: #5b2d8e;--input-bg: #100525;--table-header: #2d165a;--table-row-alt: #1a0c35;--color-company: #c084fc;--color-project: #f472b6;--color-precinct: #fb7185;--color-stage: #4ade80;--color-lot: #fbbf24;--color-subgroup: #67e8f9;--border-subtle: rgba(255, 255, 255, .06);--separator: rgba(255, 255, 255, .1);--hover-tint: rgba(168, 85, 247, .1)}[data-theme=pro-light]{--font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;--radius-sm: 6px;--radius-md: 8px;--radius-lg: 12px;--bg-primary: #f6f7f9;--bg-secondary: #ffffff;--bg-tertiary: #f1f3f6;--bg-hover: #e9ecf2;--text-primary: #101828;--text-secondary: #475467;--text-muted: #667085;--accent-primary: oklch(.55 .21 275);--accent-secondary: #7c3aed;--accent-success: #067647;--accent-warning: #b54708;--accent-error: #b42318;--border-color: #d0d5dd;--border-subtle: #e4e7ec;--input-bg: #ffffff;--table-header: #f8f9fb;--table-row-alt: #fafbfc;--color-company: #175cd3;--color-project: #6938ef;--color-precinct: #c01048;--color-stage: #067647;--color-lot: #b54708;--color-subgroup: #0e7090;--separator: rgba(16, 24, 40, .1);--hover-tint: rgba(79, 70, 229, .06);--glass: rgba(255, 255, 255, .78);--accent-soft: #eef1ff;--success-soft: #e7f6ef;--warning-soft: #fdf1e2;--error-soft: #fdecec;--shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);--shadow-md: 0 1px 3px rgba(16, 24, 40, .08), 0 4px 12px rgba(16, 24, 40, .05);--shadow-lg: 0 8px 16px rgba(16, 24, 40, .1), 0 20px 48px rgba(16, 24, 40, .12)}[data-theme=pro-dark]{--font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;--radius-sm: 6px;--radius-md: 8px;--radius-lg: 12px;--bg-primary: #0c111d;--bg-secondary: #121826;--bg-tertiary: #1a2233;--bg-hover: #232c40;--text-primary: #f2f4f7;--text-secondary: #98a2b3;--text-muted: #667085;--accent-primary: oklch(.62 .19 275);--accent-secondary: #8b5cf6;--accent-success: #75e0a7;--accent-warning: #fec84b;--accent-error: #fda29b;--border-color: #344054;--border-subtle: #232c40;--input-bg: #0c111d;--table-header: #1a2233;--table-row-alt: #101726;--color-company: #84adff;--color-project: #a48afb;--color-precinct: #fd6f8e;--color-stage: #47cd89;--color-lot: #fdb022;--color-subgroup: #22ccee;--separator: rgba(255, 255, 255, .08);--hover-tint: rgba(99, 102, 241, .1);--glass: rgba(18, 24, 38, .72);--accent-soft: #1f2447;--success-soft: #0f2a1d;--warning-soft: #33230b;--error-soft: #3a1512;--shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);--shadow-md: 0 1px 3px rgba(0, 0, 0, .5), 0 6px 16px rgba(0, 0, 0, .35);--shadow-lg: 0 8px 16px rgba(0, 0, 0, .5), 0 24px 56px rgba(0, 0, 0, .55)}[data-theme=pro-light] body,[data-theme=pro-dark] body{line-height:1.5;-webkit-font-smoothing:antialiased}[data-theme=pro-light] th,[data-theme=pro-dark] th,[data-theme=pro-light] strong,[data-theme=pro-dark] strong{font-weight:600}html[data-theme^=pro-] input,html[data-theme^=pro-] textarea,html[data-theme^=pro-] select{border-radius:var(--radius-md);transition:border-color .15s,box-shadow .15s}html[data-theme^=pro-] input:focus,html[data-theme^=pro-] textarea:focus,html[data-theme^=pro-] select:focus{border-color:var(--accent-primary);box-shadow:0 0 0 3px var(--accent-soft)}html[data-theme^=pro-] .btn-primary,html[data-theme^=pro-] .btn-secondary,html[data-theme^=pro-] .btn-cancel,html[data-theme^=pro-] .btn-danger{border-radius:var(--radius-md);font-weight:600;box-shadow:var(--shadow-sm);transition:background .15s,border-color .15s,transform .12s var(--spring)}html[data-theme^=pro-] .btn-primary:active,html[data-theme^=pro-] .btn-secondary:active{transform:scale(.97)}html[data-theme^=pro-] ::-webkit-scrollbar{width:10px;height:10px}html[data-theme^=pro-] ::-webkit-scrollbar-track{background:transparent;border:none}html[data-theme^=pro-] ::-webkit-scrollbar-thumb{background:var(--border-color);border:2px solid transparent;background-clip:padding-box;border-radius:999px}html[data-theme^=pro-] ::-webkit-scrollbar-thumb:hover{background:var(--text-muted);background-clip:padding-box}html[data-theme^=pro-] [data-tip]:hover:after,html[data-theme^=pro-] [data-tip]:focus-visible:after{border-radius:var(--radius-md);border-color:var(--border-subtle);padding:4px 9px;box-shadow:var(--shadow-md);font-weight:500}html[data-theme^=pro-] button:focus-visible,html[data-theme^=pro-] a:focus-visible,html[data-theme^=pro-] [role=button]:focus-visible{outline:2px solid var(--accent-primary);outline-offset:2px;border-radius:var(--radius-sm)}[data-theme=paper] body,[data-theme=paper] input,[data-theme=paper] select,[data-theme=paper] button,[data-theme=paper] textarea,[data-theme=solar] body,[data-theme=solar] input,[data-theme=solar] select,[data-theme=solar] button,[data-theme=solar] textarea{font-weight:500}[data-theme=paper] strong,[data-theme=paper] th,[data-theme=paper] h1,[data-theme=paper] h2,[data-theme=paper] h3,[data-theme=paper] h4,[data-theme=solar] strong,[data-theme=solar] th,[data-theme=solar] h1,[data-theme=solar] h2,[data-theme=solar] h3,[data-theme=solar] h4{font-weight:700}[data-theme=paper] th{background:#d4d4d8;color:#18181b}[data-theme=solar] th{background:#d9c898;color:#3a2a10}[data-theme=paper] tbody tr:hover td{background:color-mix(in srgb,#2563eb 8%,transparent)}[data-theme=solar] tbody tr:hover td{background:color-mix(in srgb,#b45309 10%,transparent)}*{box-sizing:border-box}html,body{margin:0;padding:0;overflow:hidden;height:100%;width:100%;position:fixed}body{font-family:var(--font-ui);background:var(--bg-primary);color:var(--text-primary);line-height:1.6}a{color:var(--accent-primary);text-decoration:none}a:hover{text-decoration:underline}button{font-family:var(--font-ui)}button:focus-visible,a:focus-visible,[role=button]:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--accent-primary);outline-offset:1px}input,textarea,select{font-family:var(--font-ui);background:var(--input-bg);color:var(--text-primary);border:1px solid var(--border-color)}input:focus,textarea:focus,select:focus{outline:none;border-color:var(--accent-primary);box-shadow:0 0 5px color-mix(in srgb,var(--accent-primary) 40%,transparent)}::-webkit-scrollbar{width:12px;height:12px}::-webkit-scrollbar-track{background:var(--bg-primary);border:1px solid var(--border-color)}::-webkit-scrollbar-thumb{background:var(--border-color);border:1px solid var(--bg-primary)}::-webkit-scrollbar-thumb:hover{background:var(--accent-primary)}[data-tip]{position:relative}[data-tip]:hover:after,[data-tip]:focus-visible:after{content:attr(data-tip);position:absolute;top:calc(100% + 4px);right:0;z-index:1000;white-space:nowrap;background:var(--bg-tertiary);color:var(--text-primary);border:1px solid var(--border-color);padding:2px var(--space-2);font-size:var(--text-xs);font-family:var(--font-ui);font-weight:500;line-height:1.5;pointer-events:none;box-shadow:0 2px 8px #00000040}[data-tip][data-tip-pos=left]:hover:after,[data-tip][data-tip-pos=left]:focus-visible:after{top:50%;right:calc(100% + 6px);transform:translateY(-50%)}[data-theme=console] body{background:#0a0a0a}[data-theme=console] ::-webkit-scrollbar-track{background:#0a0a0a99}[data-theme=console] ::-webkit-scrollbar-thumb{background:#33ff3340;border-color:transparent}[data-theme=console] body:after{content:"";position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:9999;background:repeating-linear-gradient(0deg,transparent,transparent 2px,rgba(0,0,0,.06) 2px,rgba(0,0,0,.06) 4px);mix-blend-mode:multiply}[data-theme=console] input:focus,[data-theme=console] textarea:focus,[data-theme=console] select:focus{box-shadow:0 0 8px #33ff334d,0 0 2px #33ff3380}.focus-pulse{animation:focusPulse 1.9s ease-out 1;border-radius:6px}@keyframes focusPulse{0%{box-shadow:0 0 #e0af6800;outline:2px solid var(--accent-primary);outline-offset:3px;background-color:#e0af684d}18%{box-shadow:0 0 0 5px #e0af6852;outline:2px solid var(--accent-primary);outline-offset:3px;background-color:#e0af684d}to{box-shadow:0 0 #e0af6800;outline:2px solid transparent;outline-offset:3px;background-color:#e0af6800}}
