body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0}code{font-family:var(--font-mono)}*,:before,:after{box-sizing:border-box}html{scroll-behavior:smooth}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:var(--font-sans)!important;font-size:var(--text-base)!important;line-height:var(--leading-normal)!important;background:linear-gradient(var(--border-subtle) 1px, transparent 1px) 0 0 / 100% 30px, linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px) 0 0 / 30px 100%, radial-gradient(1100px 540px at 88% -8%, var(--accent-subtle), transparent 60%), var(--background)!important;color:var(--text-primary)!important;margin:0!important;padding:0!important}h1,h2,h3,h4,h5,h6{letter-spacing:-.01em;font-family:var(--font-display)!important}.app-shell{background:var(--background);flex-direction:column;min-height:100vh;display:flex}.app-main{width:100%;max-width:1400px;animation:pageEnter .5s var(--ease-out) forwards;flex:1;margin:0 auto;padding:2rem 1.5rem 3rem}@keyframes pageEnter{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}.skip-link{background:var(--accent);color:var(--accent-foreground);border-radius:var(--radius-md);z-index:1000;transition:top .2s var(--ease-out);padding:.5rem 1rem;font-weight:600;text-decoration:none;position:absolute;top:-50px;left:1rem}.skip-link:focus{top:1rem}.app-header{z-index:100;-webkit-backdrop-filter:blur(16px);transition:background .3s var(--ease-out);justify-content:space-between;align-items:center;gap:2rem;display:flex;position:sticky;top:0;border-bottom:1px solid var(--border-subtle)!important;box-shadow:none!important;background:#111827d9!important;padding:.75rem 1.5rem!important}.light .app-header,body.light .app-header{background:#ffffffd9!important}.brand{align-items:center;gap:.75rem;display:flex}.brand img{object-fit:contain;border-radius:var(--radius-md)!important;width:auto!important;height:44px!important;box-shadow:var(--shadow-sm)!important;filter:invert()hue-rotate(160deg)brightness(1.1)!important;background:0 0!important;margin-right:0!important;padding:0!important}.light .brand img,body.light .brand img{filter:invert()hue-rotate(180deg)!important;box-shadow:var(--shadow-md)!important}.brand h1{letter-spacing:-.02em;color:var(--text-primary)!important;margin:0!important;font-size:1.25rem!important;font-weight:700!important}.brand p{letter-spacing:.01em;color:var(--text-muted)!important;margin:.125rem 0 0!important;font-size:.75rem!important}.header-actions{flex-wrap:nowrap;align-items:center;gap:.75rem;display:flex}.app-nav{z-index:99;-webkit-backdrop-filter:blur(16px);justify-content:center;align-items:center;gap:.25rem;display:flex;position:sticky;top:60px;border-bottom:1px solid var(--border-subtle)!important;box-shadow:none!important;background:#111827d9!important;padding:.5rem 1.5rem!important}.light .app-nav,body.light .app-nav{background:#ffffffd9!important}.app-nav a{align-items:center;gap:.5rem;display:flex;border-radius:var(--radius-md)!important;color:var(--text-muted)!important;transition:all .2s var(--ease-out)!important;margin:0!important;padding:.5rem 1rem!important;font-size:.875rem!important;font-weight:500!important;text-decoration:none!important}.app-nav a:hover{color:var(--text-primary)!important;background:var(--surface-2)!important}.app-nav a.active{color:var(--accent)!important;background:var(--accent-muted,#06b6d426)!important}nav a{color:var(--text-muted)!important;font-weight:500!important;text-decoration:none!important}nav a:hover{color:var(--text-primary)!important}.user-chip{transition:background .2s var(--ease-out);align-items:center;gap:.75rem;display:inline-flex;background:var(--surface-2)!important;border-radius:var(--radius-full)!important;color:var(--text-primary)!important;padding:.35rem .85rem!important}.user-chip:hover{background:var(--surface-3)!important}.user-chip .avatar{justify-content:center;align-items:center;display:flex;background:linear-gradient(135deg, var(--accent) 0%, #22d3ee 100%)!important;color:#0a0f1a!important;border-radius:50%!important;width:32px!important;height:32px!important;font-size:.8rem!important;font-weight:700!important}.user-chip .user-meta{flex-direction:column;line-height:1.25;display:flex}.user-chip .user-meta span:first-child{font-size:.875rem;font-weight:600}.user-chip .muted{color:var(--text-muted)!important;font-size:.75rem!important}button,.button{cursor:pointer;justify-content:center;align-items:center;gap:.5rem;display:inline-flex;border-radius:var(--radius-md)!important;font-family:var(--font-display)!important;background:var(--accent)!important;color:var(--accent-foreground)!important;transition:all .2s var(--ease-out)!important;box-shadow:0 2px 8px var(--accent-glow,#ff7a1833)!important;border:none!important;margin:0!important;padding:.625rem 1.25rem!important;font-size:.875rem!important;font-weight:600!important}button:hover,.button:hover{transform:translateY(-2px);background:var(--accent-hover)!important;box-shadow:0 4px 16px var(--accent-glow,#ff7a184d)!important}button:active,.button:active{transform:scale(.98)!important}button:disabled,.button:disabled{opacity:.5;cursor:not-allowed;transform:none!important}.button.primary-cta{background:linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%)!important;color:#0a0f1a!important;box-shadow:0 4px 16px var(--accent-glow,#ff7a184d)!important}.button.primary-cta:hover{box-shadow:0 8px 24px var(--accent-glow,#ff7a1866)!important}.button.ghost,.ghost-button{color:var(--text-secondary)!important;border:1px solid var(--border)!important;box-shadow:none!important;background:0 0!important}.button.ghost:hover,.ghost-button:hover{background:var(--surface-2)!important;color:var(--text-primary)!important;border-color:var(--border)!important}.link-button{color:var(--accent)!important;box-shadow:none!important;background:0 0!important;padding:0!important}.link-button:hover{background:0 0!important;text-decoration:underline!important}.danger-zone button{background:var(--destructive)!important;color:#fff!important}.danger-zone button:hover{background:#e11d48!important}input,select,textarea{width:100%;border:1px solid var(--input-border,var(--border))!important;border-radius:var(--radius-md)!important;background:var(--input-bg,var(--surface-2))!important;color:var(--input-text,var(--text-primary))!important;font-family:var(--font-display)!important;margin:0!important;padding:.75rem 1rem!important;font-size:.95rem!important;transition:border-color .2s,box-shadow .2s!important}input::placeholder,textarea::placeholder{color:var(--text-muted)!important}input:focus,select:focus,textarea:focus{border-color:var(--accent)!important;box-shadow:0 0 0 3px var(--accent-muted,#ff7a1826)!important;outline:none!important}label{display:block;color:var(--text-secondary)!important;margin-bottom:.375rem!important;font-size:.875rem!important;font-weight:500!important}.form-field{flex-direction:column;gap:.375rem;margin-bottom:1rem;display:flex}.form-field small{color:var(--text-muted);font-size:.75rem}.form-grid{grid-template-columns:repeat(12,1fr);gap:1rem;display:grid}.col-3{grid-column:span 3}.col-4{grid-column:span 4}.col-6{grid-column:span 6}.col-12{grid-column:span 12}@media (width<=768px){.col-3,.col-4,.col-6{grid-column:span 12}}.password-field{position:relative}.password-field input{padding-right:100px!important}.password-field button{position:absolute;top:50%;right:.5rem;transform:translateY(-50%);padding:.35rem .75rem!important;font-size:.75rem!important}.card{background:var(--card)!important;border:1px solid var(--border-subtle)!important;border-radius:var(--radius-lg)!important;box-shadow:var(--shadow-card)!important;transition:all .3s var(--ease-out)!important}.card:hover{border-color:var(--border)!important}.stat-card{animation:fadeUp .5s var(--ease-out) forwards;opacity:0;align-items:flex-start;gap:1rem;display:flex;background:var(--surface-1)!important;border:1px solid var(--border-subtle)!important;border-radius:var(--radius-lg)!important;box-shadow:var(--shadow-card)!important;transition:all .3s var(--ease-out)!important;padding:1.25rem!important}.stat-card:first-child{animation-delay:.1s}.stat-card:nth-child(2){animation-delay:.15s}.stat-card:nth-child(3){animation-delay:.2s}.stat-card:nth-child(4){animation-delay:.25s}.stat-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-hover,0 8px 32px #0000004d)!important;border-color:var(--accent)!important}.stat-icon{border-radius:var(--radius-md);flex-shrink:0;justify-content:center;align-items:center;width:44px;height:44px;display:flex}.stat-content{flex:1}.stat-value{line-height:1.2;font-family:var(--font-mono)!important;color:var(--text-primary)!important;font-size:1.75rem!important;font-weight:600!important}.cmdk-overlay{z-index:2000;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);animation:cmdkFade .15s var(--ease-out);background:#00000080;justify-content:center;align-items:flex-start;padding:12vh 1rem 1rem;display:flex;position:fixed;inset:0}.cmdk-panel{background:var(--popover,var(--surface-1));border:1px solid var(--border);border-radius:var(--radius-lg);width:min(580px,94vw);box-shadow:var(--shadow-xl), 0 0 0 1px var(--border-subtle);animation:cmdkPop .18s var(--ease-spring);overflow:hidden}.cmdk-input-row{border-bottom:1px solid var(--border);align-items:center;gap:.65rem;padding:.85rem 1rem;display:flex}.cmdk-search-icon{color:var(--text-muted);flex:none}.cmdk-input{font-family:var(--font-sans);flex:1;font-size:1rem;color:var(--text-primary)!important;background:0 0!important;border:none!important;outline:none!important;padding:0!important}.cmdk-kbd{font-family:var(--font-mono);color:var(--text-muted);border:1px solid var(--border);background:var(--surface-2);border-radius:6px;padding:2px 6px;font-size:.7rem}.cmdk-list{max-height:52vh;margin:0;padding:.4rem;list-style:none;overflow-y:auto}.cmdk-item{border-radius:var(--radius-md);cursor:pointer;color:var(--text-secondary);border-left:2px solid #0000;justify-content:space-between;align-items:center;gap:1rem;padding:.6rem .7rem;display:flex}.cmdk-item.is-active{background:var(--accent-muted);color:var(--text-primary);border-left-color:var(--accent)}.cmdk-item-label{font-weight:500}.cmdk-item-section{font-family:var(--font-mono);text-transform:uppercase;letter-spacing:.08em;color:var(--text-muted);font-size:.68rem}.cmdk-empty{text-align:center;color:var(--text-muted);padding:1.5rem}@keyframes cmdkFade{0%{opacity:0}to{opacity:1}}@keyframes cmdkPop{0%{opacity:0;transform:translateY(-8px)scale(.98)}to{opacity:1;transform:none}}@media (prefers-reduced-motion:reduce){.cmdk-overlay,.cmdk-panel{animation:none}}.cmdk-hint{cursor:pointer;align-items:center;gap:.4rem;display:inline-flex;background:var(--surface-2)!important;color:var(--text-muted)!important;border:1px solid var(--border)!important;border-radius:var(--radius-md)!important;box-shadow:none!important;padding:.4rem .6rem!important}.cmdk-hint:hover{color:var(--text-primary)!important;border-color:var(--accent)!important;transform:none!important}.cmdk-hint kbd{font-family:var(--font-mono);font-size:.72rem}@media (width<=640px){.cmdk-hint{display:none}}.error-boundary{justify-content:center;align-items:center;min-height:60vh;padding:2rem;display:flex}.error-boundary-content{text-align:center;max-width:400px}.error-boundary-content svg{color:var(--destructive);margin-bottom:1rem}.error-boundary-content h2{color:var(--text-primary);margin:0 0 .5rem;font-size:1.5rem}.error-boundary-content p{color:var(--text-secondary);margin:0 0 1.5rem}.error-boundary .error-details{text-align:left;background:var(--surface-2);border-radius:var(--radius-md);margin-bottom:1.5rem;padding:1rem;font-size:.75rem}.error-boundary .error-details summary{cursor:pointer;color:var(--text-secondary);margin-bottom:.5rem}.error-boundary .error-details pre{white-space:pre-wrap;word-break:break-word;color:var(--destructive);margin:0;overflow-x:auto}.error-boundary .error-actions{justify-content:center;gap:.75rem;display:flex}.confirm-dialog-overlay{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:1000;background:#0009;justify-content:center;align-items:center;padding:1rem;animation:.15s ease-out fadeIn;display:flex;position:fixed;inset:0}.confirm-dialog{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);width:100%;max-width:400px;padding:1.5rem;animation:.2s ease-out slideUp;box-shadow:0 20px 40px #0000004d}.confirm-dialog h3{color:var(--text-primary);margin:0 0 .5rem;font-size:1.125rem}.confirm-dialog p{color:var(--text-secondary);margin:0 0 1.5rem;line-height:1.5}.confirm-dialog-actions{justify-content:flex-end;gap:.75rem;display:flex}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.skeleton{background:linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);background-size:200% 100%;animation:1.5s ease-in-out infinite shimmer}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.skeleton-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden}.skeleton-card-content{flex-direction:column;gap:.5rem;padding:1rem;display:flex}.skeleton-spool-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:1rem;display:grid}.skeleton-spool-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);flex-direction:column;align-items:center;gap:.75rem;padding:1rem;display:flex}.skeleton-spool-info{flex-direction:column;align-items:center;gap:.375rem;width:100%;display:flex}.skeleton-stats-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1rem;margin-bottom:1.5rem;display:grid}.skeleton-stat-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);flex-direction:column;align-items:center;gap:.5rem;padding:1.25rem;display:flex}.skeleton-table{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden}.skeleton-table-header,.skeleton-table-row{gap:1rem;padding:.75rem 1rem;display:flex}.skeleton-table-header{background:var(--surface-2);border-bottom:1px solid var(--border)}.skeleton-table-row{border-bottom:1px solid var(--border-subtle)}.skeleton-table-row:last-child{border-bottom:none}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.material-section{animation:fadeUp .5s var(--ease-out) forwards;opacity:0;margin-bottom:2.5rem}.material-section:first-child{animation-delay:.3s}.material-section:nth-child(2){animation-delay:.4s}.material-section:nth-child(3){animation-delay:.5s}.material-header{align-items:center;gap:1rem;margin-bottom:1rem;display:flex}.material-name{color:var(--text-primary)!important;margin:0!important;font-size:1.125rem!important;font-weight:600!important}.material-line{background:linear-gradient(90deg, var(--border) 0%, transparent 100%);flex:1;height:1px}.material-count{color:var(--text-muted);font-size:.8rem;font-family:var(--font-mono)}.spool-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:1rem;display:grid}.color-tile,.spool-card{text-align:center;cursor:pointer;animation:popIn .4s var(--ease-spring) forwards;opacity:0;position:relative;overflow:hidden;transform:scale(.9);background:var(--surface-1)!important;border:1px solid var(--border-subtle)!important;border-radius:var(--radius-lg)!important;transition:all .3s var(--ease-out)!important;box-shadow:var(--shadow-card)!important;min-width:auto!important;margin:0!important;padding:1.25rem!important}.color-tile:first-child,.spool-card:first-child{animation-delay:50ms}.color-tile:nth-child(2),.spool-card:nth-child(2){animation-delay:.1s}.color-tile:nth-child(3),.spool-card:nth-child(3){animation-delay:.15s}.color-tile:nth-child(4),.spool-card:nth-child(4){animation-delay:.2s}.color-tile:nth-child(5),.spool-card:nth-child(5){animation-delay:.25s}.color-tile:nth-child(6),.spool-card:nth-child(6){animation-delay:.3s}.color-tile:nth-child(7),.spool-card:nth-child(7){animation-delay:.35s}.color-tile:nth-child(8),.spool-card:nth-child(8){animation-delay:.4s}.color-tile:before,.spool-card:before{content:"";background:var(--spool-color,var(--accent));opacity:0;height:3px;transition:opacity .3s var(--ease-out);position:absolute;top:0;left:0;right:0}.color-tile:hover,.spool-card:hover{box-shadow:var(--shadow-hover,0 8px 32px #0000004d)!important;border-color:var(--accent)!important;transform:translateY(-4px)scale(1)!important}.color-tile:hover:before,.spool-card:hover:before{opacity:1}.color-tile.low-stock,.spool-card.low-stock,.spool-card[data-low-stock=true]{animation:popIn .4s var(--ease-spring) forwards, lowStockPulse 2s ease-in-out infinite!important;border-color:#f43f5e66!important}.color-tile.low-stock:before,.spool-card.low-stock:before,.spool-card[data-low-stock=true]:before{background:var(--destructive)!important;opacity:1!important}@keyframes lowStockPulse{0%,to{box-shadow:0 0 0 2px #f43f5e33}50%{box-shadow:0 0 0 4px #f43f5e26,0 0 16px #f43f5e33}}.low-badge{background:var(--destructive);color:#fff;width:20px;height:20px;animation:badgePop .3s var(--ease-spring);border-radius:50%;justify-content:center;align-items:center;font-size:.7rem;font-weight:700;display:flex;position:absolute;top:.5rem;right:.5rem}@keyframes badgePop{0%{transform:scale(0)}70%{transform:scale(1.2)}to{transform:scale(1)}}.spool-visual{width:64px;height:48px;margin:0 auto .75rem}.spool-visual svg{width:100%;height:100%}.spool-color-name{margin-bottom:.25rem;color:var(--text-primary)!important;font-size:.95rem!important;font-weight:600!important}.spool-count{font-family:var(--font-mono)!important;color:var(--accent)!important;font-size:1.5rem!important;font-weight:700!important}.spool-meta{margin-top:.25rem;color:var(--text-muted)!important;font-size:.75rem!important}.spool-weight{margin-top:.5rem;font-family:var(--font-mono)!important;color:var(--text-secondary)!important;font-size:.8rem!important}.stock-bar,.stock-bar-bg{margin-top:.75rem;overflow:hidden;background:var(--surface-3)!important;border-radius:2px!important;height:4px!important}.stock-fill,.stock-bar-fill{height:100%!important;transition:width .5s var(--ease-out)!important;border-radius:2px!important}.stock-fill.high,.stock-bar-fill.high{background:var(--success)!important}.stock-fill.medium,.stock-bar-fill.medium{background:var(--warning)!important}.stock-fill.low,.stock-bar-fill.low{background:var(--destructive)!important}.stock-bar-fill{background:var(--accent)!important}.spool-rack{margin-bottom:1.5rem;background:var(--surface-2)!important;border-radius:var(--radius-lg)!important;grid-template-columns:repeat(auto-fill,minmax(32px,1fr))!important;gap:.5rem!important;padding:1rem!important;display:grid!important}.spool-rack-square{cursor:pointer;animation:rackPop .22s var(--ease-spring) forwards;opacity:0;position:relative;transform:scale(.8);border-radius:var(--radius-sm)!important;border:2px solid var(--border)!important;width:32px!important;height:32px!important;transition:all .2s var(--ease-out)!important}.spool-rack-square:first-child{animation-delay:20ms}.spool-rack-square:nth-child(2){animation-delay:40ms}.spool-rack-square:nth-child(3){animation-delay:60ms}.spool-rack-square:nth-child(4){animation-delay:80ms}.spool-rack-square:nth-child(5){animation-delay:.1s}.spool-rack-square:nth-child(6){animation-delay:.12s}.spool-rack-square:nth-child(7){animation-delay:.14s}.spool-rack-square:nth-child(8){animation-delay:.16s}.spool-rack-square:nth-child(9){animation-delay:.18s}.spool-rack-square:nth-child(10){animation-delay:.2s}@keyframes rackPop{0%{opacity:0;transform:scale(.8)}80%{opacity:1;transform:scale(1.08)}to{opacity:1;transform:scale(1)}}.spool-rack-square:hover{z-index:2;border-color:var(--accent)!important;transform:translateY(-2px)scale(1.05)!important;box-shadow:0 4px 12px #ff7a1833!important}.spool-rack-square.low{border-color:var(--destructive)!important;animation:rackPop .22s var(--ease-spring) forwards, lowStockPulse 1.5s ease-in-out infinite!important}.spool-rack-fillbar{border-radius:0 0 var(--radius-sm) var(--radius-sm);background:var(--accent);position:absolute;bottom:0;left:0;height:4px!important}.spool-tooltip{white-space:nowrap;opacity:0;pointer-events:none;z-index:10;position:absolute;bottom:calc(100% + 8px);left:50%;transform:translate(-50%)translateY(8px);background:var(--popover)!important;color:var(--text-primary)!important;border-radius:var(--radius-md)!important;box-shadow:var(--shadow-lg)!important;padding:.5rem .75rem!important;font-size:.8rem!important;transition:opacity .2s,transform .2s!important}.spool-rack-square:hover .spool-tooltip,.spool-rack-square:focus .spool-tooltip{opacity:1;transform:translate(-50%)translateY(0)}.spool-rack-legend{color:var(--text-muted);flex-wrap:wrap;gap:1rem;margin-top:.75rem;font-size:.8rem;display:flex}.legend-dot{border-radius:50%;width:10px;height:10px;margin-right:.4rem;display:inline-block}.tag{text-transform:uppercase;letter-spacing:.02em;align-items:center;gap:.25rem;display:inline-flex;background:var(--accent)!important;color:var(--accent-foreground)!important;border-radius:var(--radius-full)!important;padding:.2rem .6rem!important;font-size:.7rem!important;font-weight:600!important}.tag.warning{background:var(--warning)!important;color:#0a0f1a!important}.tag.danger{background:var(--destructive)!important;color:#fff!important}.tag.success{background:var(--success)!important;color:#fff!important}.eyebrow{text-transform:uppercase;letter-spacing:.2em;margin-bottom:.5rem;color:var(--accent)!important;font-size:.75rem!important;font-weight:600!important}.home-wrapper{max-width:1200px;margin:0 auto}.hero{animation:fadeUp .6s var(--ease-out) forwards;grid-template-columns:1.2fr 1fr;gap:3rem;display:grid;background:var(--surface-1)!important;border:1px solid var(--border-subtle)!important;border-radius:var(--radius-xl)!important;box-shadow:var(--shadow-xl,0 16px 48px #0006)!important;padding:3rem!important}.hero .eyebrow{color:var(--accent)!important;margin:0 0 .5rem!important}.hero h1{letter-spacing:-.03em!important;color:var(--text-primary)!important;margin:0 0 1rem!important;font-size:clamp(1.75rem,4vw,2.5rem)!important;font-weight:700!important;line-height:1.2!important}.hero-copy{max-width:500px;color:var(--text-secondary)!important;font-size:1rem!important;line-height:1.6!important}.hero-actions{flex-wrap:wrap;gap:.75rem;margin-top:1.5rem;display:flex}.hero-points{flex-direction:column;gap:.75rem;display:flex;margin:0!important;padding:0!important;list-style:none!important}.hero-points li{transition:all .2s var(--ease-out);background:var(--surface-2)!important;border-left:3px solid var(--accent)!important;border-radius:0 var(--radius-md) var(--radius-md) 0!important;color:var(--text-secondary)!important;padding:1rem 1.25rem!important;font-size:.95rem!important}.hero-points li:hover{transform:translate(4px);background:var(--surface-3)!important}@media (width<=900px){.hero{grid-template-columns:1fr;padding:2rem!important}}.auth-card{animation:fadeUp .5s var(--ease-out) forwards;background:var(--surface-1)!important;border:1px solid var(--border-subtle)!important;border-radius:var(--radius-xl)!important;max-width:440px!important;box-shadow:var(--shadow-xl,0 16px 48px #0006)!important;margin:2rem auto!important;padding:2.5rem!important}.auth-logo{justify-content:center;align-items:center;gap:.75rem;margin-bottom:1.5rem;display:flex}.auth-logo img{object-fit:contain;border-radius:var(--radius-lg)!important;width:auto!important;height:72px!important;box-shadow:var(--shadow-md)!important;filter:invert()hue-rotate(160deg)brightness(1.1)!important;background:0 0!important;padding:0!important}.light .auth-logo img,body.light .auth-logo img{filter:invert()hue-rotate(180deg)!important;box-shadow:var(--shadow-lg)!important}.auth-logo span{letter-spacing:-.02em;color:var(--text-primary)!important;font-size:1.5rem!important;font-weight:700!important}.auth-card h2{text-align:center;color:var(--text-primary)!important;margin:0 0 .5rem!important;font-size:1.5rem!important;font-weight:700!important}.auth-card form{flex-direction:column;gap:1rem;margin-top:1.5rem;display:flex}.status-text{margin-top:.5rem;font-size:.875rem;font-weight:500}.status-text.error{color:var(--destructive)!important}.status-text.success{color:var(--success)!important}.settings-wrapper{max-width:1000px;margin:0 auto;padding:0 1rem 3rem}.settings-wrapper h1{color:var(--text-primary)!important;margin-bottom:.5rem!important;font-size:2rem!important;font-weight:700!important}.settings-grid{grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:1.5rem;display:grid}.settings-card{animation:fadeUp .5s var(--ease-out) forwards;opacity:0;flex-direction:column;gap:1rem;display:flex;background:var(--surface-1)!important;border:1px solid var(--border-subtle)!important;border-radius:var(--radius-lg)!important;box-shadow:var(--shadow-card)!important;padding:1.75rem!important}.settings-card:first-child{animation-delay:.1s}.settings-card:nth-child(2){animation-delay:.15s}.settings-card:nth-child(3){animation-delay:.2s}.settings-card:nth-child(4){animation-delay:.25s}.settings-card h2{color:var(--text-primary)!important;margin:0!important;font-size:1.125rem!important;font-weight:600!important}.settings-card .muted{color:var(--text-muted)!important;margin:0!important;font-size:.875rem!important}.settings-form{flex-direction:column;gap:.75rem;display:flex}.settings-form button{align-self:flex-start}.profile-preview{justify-content:center;margin-bottom:1rem;display:flex}.profile-preview img{object-fit:cover;border-radius:50%!important;width:100px!important;height:100px!important;box-shadow:0 4px 16px #0003!important}.placeholder-avatar{justify-content:center;align-items:center;display:flex;background:var(--surface-3)!important;width:100px!important;height:100px!important;color:var(--text-primary)!important;border-radius:50%!important;font-size:2.5rem!important;font-weight:700!important;box-shadow:0 4px 16px #0003!important}.profile-meta{flex-direction:column;gap:.5rem;margin-bottom:1rem;padding:1rem;display:flex;background:var(--surface-2)!important;border-radius:var(--radius-md)!important;font-size:.875rem!important}.profile-meta strong{color:var(--text-muted)!important;font-weight:500!important}.profile-actions{flex-wrap:wrap;justify-content:center;align-items:center;gap:.75rem;display:flex}.danger-zone{border-color:var(--destructive)!important;background:#f43f5e0d!important}.danger-zone p{color:var(--text-secondary)!important;font-size:.875rem!important}.status-banner{margin-bottom:1.5rem;border-radius:var(--radius-md)!important;padding:.875rem 1.25rem!important;font-weight:500!important}.status-banner.status-success{color:var(--success)!important;border:1px solid var(--success)!important;background:#10b98126!important}.status-banner.status-error{color:var(--destructive)!important;border:1px solid var(--destructive)!important;background:#f43f5e26!important}.upload-button{cursor:pointer;transition:all .2s var(--ease-out);align-items:center;gap:.5rem;display:inline-flex;background:var(--accent)!important;color:var(--accent-foreground)!important;border-radius:var(--radius-md)!important;padding:.625rem 1rem!important;font-size:.875rem!important;font-weight:600!important}.upload-button:hover{background:var(--accent-hover)!important}.upload-button input{display:none}.danger-zone{background:#f43f5e14!important;border:1px solid #f43f5e33!important}.danger-zone h2{color:var(--destructive)!important}.status-banner{animation:fadeUp .3s var(--ease-out) forwards;align-items:center;gap:.75rem;display:flex;border-radius:var(--radius-md)!important;margin-bottom:1.5rem!important;padding:.875rem 1.25rem!important;font-weight:500!important}.status-success{color:var(--success)!important;background:#10b9811a!important;border:1px solid #10b98133!important}.status-error{color:var(--destructive)!important;background:#f43f5e1a!important;border:1px solid #f43f5e33!important}.chart-card{animation:fadeUp .5s var(--ease-out) forwards;opacity:0;margin-bottom:1.5rem;background:var(--surface-1)!important;border:1px solid var(--border-subtle)!important;border-radius:var(--radius-lg)!important;box-shadow:var(--shadow-card)!important;padding:1.5rem!important}.chart-card h3{color:var(--text-primary)!important;margin:0 0 1rem!important;font-size:1.125rem!important;font-weight:600!important}.chart-legend{color:var(--text-muted);flex-wrap:wrap;gap:1.5rem;margin-top:1rem;font-size:.8rem;display:flex}.chart-legend span{align-items:center;gap:.4rem;display:inline-flex}.chart-tooltip{pointer-events:none;z-index:100;position:absolute;background:var(--popover)!important;color:var(--text-primary)!important;border-radius:var(--radius-md)!important;box-shadow:var(--shadow-lg)!important;padding:.5rem .75rem!important;font-size:.8rem!important}.bar-list{flex-direction:column;gap:1rem;margin-top:1rem;display:flex}.bar-row{grid-template-columns:1fr auto;align-items:center;gap:.5rem;display:grid}.bar-row>div:first-child{justify-content:space-between;width:100%;display:flex}.bar-row small{color:var(--text-muted);font-size:.8rem}.bar-row span{color:var(--text-primary);font-weight:600}.bar-track{border-radius:var(--radius-full);background:var(--surface-3);grid-column:1/-1;height:8px;overflow:hidden}.bar-fill{background:var(--accent);border-radius:var(--radius-full);height:100%;transition:width .5s var(--ease-out)}.spool-form{padding:1.5rem!important}.form-stepper{border-bottom:1px solid var(--border-subtle);flex-wrap:wrap;gap:1.5rem;margin-bottom:1.5rem;padding-bottom:1rem;display:flex}.form-stepper span{color:var(--text-muted);align-items:center;gap:.5rem;font-size:.875rem;display:inline-flex}.form-stepper .step-dot{border:2px solid var(--border);width:24px;height:24px;transition:all .2s var(--ease-out);border-radius:50%;justify-content:center;align-items:center;font-size:.75rem;font-weight:600;display:inline-flex}.form-stepper .completed{color:var(--accent)!important}.form-stepper .completed .step-dot{border-color:var(--accent)!important;background:var(--accent-muted)!important;color:var(--accent)!important}.form-section{margin-bottom:1rem;border:1px solid var(--border-subtle)!important;border-radius:var(--radius-md)!important;background:var(--surface-1)!important;padding:1.25rem!important}.form-section h4{color:var(--text-primary)!important;margin:0 0 1rem!important;font-size:1rem!important;font-weight:600!important}.banner{animation:bannerIn .3s var(--ease-out) forwards;justify-content:space-between;align-items:center;gap:1rem;display:flex;background:var(--accent)!important;color:var(--accent-foreground)!important;border-radius:var(--radius-md)!important;box-shadow:0 4px 16px var(--accent-glow)!important;padding:.875rem 1.25rem!important;font-weight:500!important}.banner-dismiss{color:inherit!important;border-radius:var(--radius-md)!important;box-shadow:none!important;background:#fff3!important;padding:.375rem .875rem!important;font-size:.8rem!important}.banner-dismiss:hover{background:#ffffff4d!important}.banner.closing{animation:bannerOut .2s var(--ease-out) forwards}@keyframes bannerIn{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}@keyframes bannerOut{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-8px)}}@keyframes fadeUp{0%{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}@keyframes popIn{to{opacity:1;transform:scale(1)}}.fade-in{animation:fadeUp .3s var(--ease-out) forwards}::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-track{background:var(--scrollbar-track,var(--surface-1))}::-webkit-scrollbar-thumb{background:var(--scrollbar-thumb,var(--surface-3));border-radius:var(--radius-full)}::-webkit-scrollbar-thumb:hover{background:var(--scrollbar-thumb-hover,var(--border))}@media (width<=768px){.app-header{flex-wrap:wrap;gap:.75rem;padding:.75rem 1rem!important}.brand img{width:36px!important;height:36px!important}.brand h1{font-size:1.1rem!important}.brand p{display:none}.app-nav{justify-content:flex-start;top:56px;overflow-x:auto;padding:.5rem 1rem!important}.app-nav a{padding:.5rem .75rem!important;font-size:.8rem!important}.app-main{padding:1.5rem 1rem 2rem}.stats-grid,.spool-grid{grid-template-columns:repeat(2,1fr)}.user-chip .user-meta span:last-child{display:none}}@media (width<=480px){.stats-grid{grid-template-columns:1fr}.header-actions{gap:.5rem}.user-chip{padding:.25rem .5rem!important}.user-chip .user-meta{display:none}}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.text-muted{color:var(--text-muted)!important}.text-accent{color:var(--accent)!important}.text-success{color:var(--success)!important}.text-warning{color:var(--warning)!important}.text-danger{color:var(--destructive)!important}.font-mono{font-family:var(--font-mono)!important}.dashboard-container{max-width:1200px;margin:0 auto}.stats-grid{grid-template-columns:repeat(4,1fr);gap:1rem;margin-bottom:2rem;display:grid}.stat-card{text-align:center;animation:fadeUp .4s var(--ease-out) forwards;opacity:0;transition:transform .2s var(--ease-out), box-shadow .2s var(--ease-out);flex-direction:column;align-items:center;display:flex;background:var(--surface-1)!important;border:1px solid var(--border-subtle)!important;border-radius:var(--radius-lg)!important;padding:1.25rem!important}.stat-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg)!important}.stat-card.accent-destructive{border-color:var(--destructive)!important;background:#f43f5e14!important}.stat-card.accent-destructive .stat-icon,.stat-card.accent-destructive .stat-value{color:var(--destructive)!important}.stat-icon{color:var(--accent);margin-bottom:.5rem}.stat-value{line-height:1.2;font-size:2rem!important;font-weight:700!important;font-family:var(--font-mono)!important;color:var(--text-primary)!important}.stat-label{text-transform:uppercase;letter-spacing:.05em;margin-top:.25rem;color:var(--text-muted)!important;font-size:.8rem!important}.spool-rack-section{margin-bottom:1.5rem;background:var(--surface-1)!important;border:1px solid var(--border-subtle)!important;border-radius:var(--radius-lg)!important;padding:1.5rem!important}.spool-rack-section .section-header{justify-content:space-between;align-items:center;margin-bottom:1rem;display:flex}.spool-rack-section .section-header h2{color:var(--text-primary)!important;margin:0!important;font-size:1rem!important;font-weight:600!important}.spool-rack-legend .legend-dot.active{background:var(--accent)!important}.spool-rack-legend .legend-dot.low{background:var(--destructive)!important}.spool-rack-legend .legend-stat{font-family:var(--font-mono)!important}.dashboard-controls{flex-wrap:wrap;align-items:center;gap:1rem;margin-bottom:1.5rem;padding:1rem;display:flex;background:var(--surface-1)!important;border:1px solid var(--border-subtle)!important;border-radius:var(--radius-lg)!important}.dashboard-controls label{cursor:pointer;white-space:nowrap;color:var(--text-secondary)!important;align-items:center!important;gap:.5rem!important;font-size:.875rem!important;display:inline-flex!important}.dashboard-controls input[type=checkbox]{accent-color:var(--accent);cursor:pointer;width:18px!important;height:18px!important;margin:0!important}.dashboard-controls select{min-width:140px}.dashboard-controls span{color:var(--text-muted)!important;font-size:.875rem!important}.material-sections{margin-top:2rem}.material-section{animation:fadeUp .4s var(--ease-out) forwards;margin-bottom:2.5rem}.material-header{cursor:pointer;width:100%;color:inherit;font:inherit;text-align:left;background:0 0;border:0;align-items:center;gap:.75rem;margin-bottom:1rem;padding:.5rem 0;display:flex}.material-header h2{white-space:nowrap;color:var(--text-primary)!important;margin:0!important;font-size:1.25rem!important;font-weight:700!important}.material-header .material-meta{white-space:nowrap;color:var(--text-muted)!important;font-size:.875rem!important;font-family:var(--font-mono)!important}.material-header .material-line{background:var(--border-subtle);flex:1;height:1px;margin-left:1rem}.collapse-btn{cursor:pointer;transition:all .2s var(--ease-out);justify-content:center;align-items:center;display:flex;background:var(--surface-2)!important;border:1px solid var(--border-subtle)!important;border-radius:var(--radius-md)!important;width:28px!important;height:28px!important;color:var(--text-muted)!important;padding:0!important}.collapse-btn:hover{background:var(--surface-3)!important;color:var(--text-primary)!important}.material-rack{margin-bottom:1rem;margin-left:2.5rem}.empty-state{text-align:center;color:var(--text-muted);padding:3rem 2rem}.empty-state svg{opacity:.5;margin-bottom:1rem}.empty-state p{margin:0}.empty-state--branded{flex-direction:column;align-items:center;gap:.5rem;padding:3.5rem 2rem;display:flex}.empty-state-gauge{opacity:.85;margin-bottom:.5rem;animation:4s ease-in-out infinite emptyGaugeFloat}@keyframes emptyGaugeFloat{0%,to{transform:translateY(0)}50%{transform:translateY(-5px)}}.empty-state-title{color:var(--text-primary);margin:0;font-size:1.1rem;font-weight:600;font-family:var(--font-display)!important}.empty-state-message{max-width:32ch;color:var(--text-muted);margin:0 0 .75rem!important}@media (prefers-reduced-motion:reduce){.empty-state-gauge{animation:none}}.spool-spinner{color:var(--text-muted);flex-direction:column;justify-content:center;align-items:center;gap:.85rem;padding:2.75rem 1rem;display:flex}.spool-spinner-svg{transform-origin:50%;animation:1s linear infinite spoolSpin}@keyframes spoolSpin{to{transform:rotate(360deg)}}.spool-spinner-label{font-family:var(--font-display);letter-spacing:.02em;font-size:.9rem}.spool-coil{transition:r .6s var(--ease-out)}@media (prefers-reduced-motion:reduce){.spool-spinner-svg{animation:none}.spool-coil{transition:none}}.spool-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:1rem;margin-left:2.5rem;display:grid}.spool-card{text-align:center;cursor:pointer;transition:all .2s var(--ease-out);flex-direction:column;align-items:center;min-width:140px;display:flex;position:relative;background:var(--surface-1)!important;border:1px solid var(--border-subtle)!important;border-radius:var(--radius-lg)!important;padding:1.25rem 1rem 1rem!important}.spool-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg)!important;border-color:var(--border)!important}.spool-card.low-stock{animation:2s infinite lowStockPulse;border-color:var(--destructive)!important;box-shadow:0 0 0 2px #f43f5e33!important}.spool-card.faded{opacity:.4}.spool-visual{margin-bottom:.75rem}.spool-info{width:100%}.spool-color-name{text-transform:capitalize;margin-bottom:.25rem;color:var(--spool-text,var(--spool-accent,var(--accent)))!important;font-size:.95rem!important;font-weight:600!important}.spool-count{line-height:1.1;font-size:2rem!important;font-weight:700!important;font-family:var(--font-mono)!important;color:var(--text-primary)!important}.spool-count .reserve-badge{margin-left:.25rem;color:var(--text-muted)!important;font-size:.875rem!important;font-weight:500!important}.spool-label{text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted)!important;font-size:.75rem!important}.spool-weight{margin-top:.375rem;font-size:.875rem!important;font-family:var(--font-mono)!important;color:var(--text-secondary)!important}.spool-weight .reserve-weight{color:var(--text-muted)!important;font-size:.75rem!important}.spool-card .stock-bar{width:100%;height:4px;margin-top:.75rem;overflow:hidden;background:var(--surface-3)!important;border-radius:var(--radius-full)!important}.spool-card .stock-bar-fill{height:100%;transition:width .4s var(--ease-out);background:var(--spool-accent,var(--accent))!important;border-radius:var(--radius-full)!important}.spool-card .reserve-tag{position:absolute;top:.5rem;right:.5rem;background:var(--surface-3)!important;color:var(--text-muted)!important;padding:.15rem .4rem!important;font-size:.6rem!important}.banner.warning{margin-bottom:1.5rem;background:linear-gradient(135deg, var(--warning) 0%, #fb923c 100%)!important;color:#1a1a1a!important}.banner-content{align-items:flex-start;gap:.75rem;display:flex}.banner-icon{flex-shrink:0;margin-top:.125rem}.banner-list{margin:.5rem 0 0!important;padding:0!important;list-style:none!important}.banner-list li{cursor:pointer;opacity:.9;padding:.25rem 0;transition:opacity .15s}.banner-list li:hover{opacity:1;text-decoration:underline}.low-stock-total{opacity:.7!important;margin-top:.15rem!important;font-size:.8em!important;font-style:italic!important}.expand-panel{animation:expandIn .3s var(--ease-spring,cubic-bezier(.34, 1.56, .64, 1)) forwards;transform-origin:top;margin-top:.5rem;background:var(--surface-1)!important;border:1px solid var(--border-subtle)!important;border-radius:var(--radius-md)!important;padding:1rem!important}.expand-panel ul{margin:0!important;padding:0!important;list-style:none!important}.expand-panel li{border-bottom:1px solid var(--border-subtle);padding:.75rem 0}.expand-panel li:last-child{border-bottom:none}.expand-panel .spool-detail-card{animation:cardSlideIn .25s var(--ease-out) backwards}.expand-panel .spool-detail-card:first-child{animation-delay:50ms}.expand-panel .spool-detail-card:nth-child(2){animation-delay:.1s}.expand-panel .spool-detail-card:nth-child(3){animation-delay:.15s}.expand-panel .spool-detail-card:nth-child(4){animation-delay:.2s}.expand-panel .spool-detail-card:nth-child(5){animation-delay:.25s}.expand-panel .spool-detail-card:nth-child(n+6){animation-delay:.3s}@keyframes expandIn{0%{opacity:0;transform:translateY(-12px)scaleY(.95)}to{opacity:1;transform:translateY(0)scaleY(1)}}@keyframes cardSlideIn{0%{opacity:0;transform:translateY(-8px)scale(.98)}to{opacity:1;transform:translateY(0)scale(1)}}.jump-highlight{animation:1.2s ease-out jumpPulse}@keyframes jumpPulse{0%{box-shadow:0 0 0 0 var(--accent)}50%{box-shadow:0 0 0 8px #0000}to{box-shadow:none}}.spool-detail-card.highlighted{animation:3s ease-out forwards spoolHighlight;position:relative}.spool-detail-card.highlighted:before{content:"";border-radius:calc(var(--radius-md) + 3px);background:linear-gradient(90deg, var(--accent), var(--accent-hover,#0891b2), var(--accent));z-index:-1;background-size:200% 100%;animation:1s ease-in-out 3 highlightGlow;position:absolute;inset:-3px}@keyframes spoolHighlight{0%{transform:scale(1.02)}20%{transform:scale(1)}to{transform:scale(1)}}@keyframes highlightGlow{0%,to{opacity:1;background-position:0%}50%{opacity:.7;background-position:100%}}.modal-overlay{-webkit-backdrop-filter:blur(4px);z-index:var(--z-modal,300);animation:modalFadeIn .2s var(--ease-out) forwards;background:#0009;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;inset:0}@keyframes modalFadeIn{0%{opacity:0}to{opacity:1}}.modal-content{width:100%;max-width:680px;max-height:90vh;animation:modalSlideUp .3s var(--ease-spring) forwards;padding:1.5rem;overflow-y:auto;background:var(--card)!important;border:1px solid var(--border-subtle)!important;border-radius:var(--radius-xl)!important;box-shadow:var(--shadow-xl), 0 0 60px #0000004d!important}@keyframes modalSlideUp{0%{opacity:0;transform:translateY(20px)scale(.98)}to{opacity:1;transform:translateY(0)scale(1)}}.modal-header{border-bottom:1px solid var(--border-subtle);justify-content:space-between;align-items:flex-start;margin-bottom:1rem;padding-bottom:1rem;display:flex}.modal-header h3{font-size:var(--text-xl)!important;color:var(--text-primary)!important;margin:0 0 .25rem!important}.modal-header .form-note{font-size:var(--text-sm)!important;color:var(--text-muted)!important;margin:0!important}.modal-close{cursor:pointer;justify-content:center;align-items:center;display:flex;color:var(--text-muted)!important;border-radius:var(--radius-md)!important;transition:all .15s var(--ease-out)!important;background:0 0!important;border:none!important;padding:.5rem!important}.modal-close:hover{background:var(--surface-2)!important;color:var(--text-primary)!important;box-shadow:none!important;transform:none!important}.modal-footer{border-top:1px solid var(--border-subtle);justify-content:flex-end;gap:.75rem;margin-top:1.5rem;padding-top:1.5rem;display:flex}.modal-content .form-stepper{margin-bottom:1.5rem}.modal-content .form-section{margin-bottom:1.25rem}.add-spool-modal{width:95vw!important;max-width:800px!important}.add-spool-modal .form-grid{grid-template-columns:repeat(12,1fr)!important;gap:1.25rem 1rem!important}.add-spool-modal .form-grid .col-3{min-width:0;grid-column:span 3!important}.add-spool-modal .form-grid .col-4{min-width:0;grid-column:span 4!important}.add-spool-modal .form-grid .col-6{min-width:0;grid-column:span 6!important}.add-spool-modal .form-grid .col-8{min-width:0;grid-column:span 8!important}.add-spool-modal label{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:var(--text-secondary)!important;margin-bottom:.375rem!important;font-size:.8125rem!important;font-weight:500!important;display:block!important}.add-spool-modal input,.add-spool-modal select{width:100%!important;min-height:42px!important;padding:.625rem .75rem!important;font-size:.9375rem!important}.add-spool-modal .form-section h4{margin-bottom:1rem!important;font-size:1rem!important;font-weight:600!important}@media (width<=640px){.add-spool-modal{width:100%!important;max-width:100%!important;margin:.5rem!important}.add-spool-modal .form-grid .col-3,.add-spool-modal .form-grid .col-4,.add-spool-modal .form-grid .col-6,.add-spool-modal .form-grid .col-8{grid-column:span 12!important}}@media (width>=641px) and (width<=768px){.add-spool-modal .form-grid .col-3,.add-spool-modal .form-grid .col-4{grid-column:span 6!important}}.add-spool-btn{font-size:var(--text-sm)!important;align-items:center!important;gap:.5rem!important;padding:.5rem 1rem!important;display:inline-flex!important}.add-spool-btn svg{flex-shrink:0}.section-header{justify-content:space-between;align-items:center;margin-bottom:1rem;display:flex}.section-header h2{margin:0!important}@media (width<=768px){.modal-content{max-width:100%;max-height:95vh;padding:1rem;border-radius:var(--radius-lg)!important}.modal-header{flex-direction:column;gap:.5rem}.modal-close{position:absolute;top:1rem;right:1rem}.modal-footer{flex-direction:column}.modal-footer button{width:100%}.add-spool-btn span{display:none}.add-spool-btn{padding:.5rem!important}}.spool-grid-item.is-expanded{grid-column:1/-1}.horizontal-spool-panel{animation:panelSlideDown .25s var(--ease-out) forwards;width:100%;margin-top:.75rem;padding:1rem;background:var(--surface-1)!important;border:1px solid var(--border-subtle)!important;border-radius:var(--radius-lg)!important}@keyframes panelSlideDown{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.horizontal-spool-list{flex-flow:wrap;gap:.75rem;display:flex}.empty-spools-notice{color:var(--text-muted);font-style:italic;font-size:var(--text-sm);padding:.5rem}.refills-section{border-top:1px solid var(--border-subtle);margin-top:1rem;padding-top:1rem}.refills-header{font-weight:600;font-size:var(--text-xs);color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;margin-bottom:.5rem}.refill-chip{font-size:var(--text-sm);align-items:center;gap:.75rem;padding:.5rem .75rem;display:inline-flex;background:var(--surface-2)!important;border:1px dashed var(--border)!important;border-radius:var(--radius-full,9999px)!important}.refill-chip-info{align-items:center;gap:.5rem;display:flex}.refill-chip-weight{font-weight:700;font-family:var(--font-mono);color:var(--text-primary)}.refill-chip-manufacturer{color:var(--text-muted);font-size:var(--text-xs)}.refill-chip-subtype{font-size:var(--text-xs);color:var(--text-secondary);background:var(--surface-3);border-radius:var(--radius-sm,4px);text-transform:lowercase;padding:.125rem .375rem;font-weight:500}.refill-chip-actions{align-items:center;gap:.375rem;display:flex}.refill-chip-action{cursor:pointer;white-space:nowrap;background:var(--accent)!important;color:#fff!important;border-radius:var(--radius-full,9999px)!important;transition:all .15s var(--ease-out)!important;border:none!important;padding:.25rem .625rem!important;font-size:.7rem!important;font-weight:600!important}.refill-chip-action:hover{background:var(--accent-hover,#0891b2)!important;box-shadow:none!important;transform:none!important}.refill-chip-delete{cursor:pointer;opacity:.6;justify-content:center;align-items:center;width:1.25rem;height:1.25rem;line-height:1;display:flex;color:var(--text-muted)!important;border-radius:var(--radius-full,9999px)!important;transition:all .15s var(--ease-out)!important;background:0 0!important;border:none!important;padding:0!important;font-size:1rem!important;font-weight:400!important}.refill-chip-delete:hover{opacity:1;color:var(--danger,#dc2626)!important;background:color-mix(in oklch, var(--danger,#dc2626) 10%, transparent)!important}.refill-delete-confirm{align-items:center;gap:.25rem;display:flex}.refill-delete-yes{cursor:pointer;background:var(--danger,#dc2626)!important;color:#fff!important;border-radius:var(--radius-sm,4px)!important;border:none!important;padding:.125rem .375rem!important;font-size:.65rem!important;font-weight:600!important}.refill-delete-no{cursor:pointer;color:var(--text-muted)!important;background:0 0!important;border:none!important;padding:.125rem .375rem!important;font-size:.65rem!important;font-weight:500!important}.refill-delete-no:hover{color:var(--text-primary)!important}.refill-chip.assembling{border-style:solid;flex-wrap:wrap;padding:.625rem .875rem;border-color:var(--accent)!important;background:color-mix(in oklch, var(--accent) 5%, var(--surface-1))!important}.refill-assemble-form{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.refill-assemble-form select{max-width:140px;font-size:var(--text-xs)!important;border:1px solid var(--border)!important;border-radius:var(--radius-sm)!important;background:var(--surface-1)!important;color:var(--text-primary)!important;padding:.25rem .5rem!important}.refill-or{font-size:var(--text-xs);color:var(--text-muted)}.refill-assemble-form .btn-assemble{cursor:pointer;background:var(--accent)!important;color:#fff!important;border-radius:var(--radius-sm)!important;border:none!important;padding:.25rem .5rem!important;font-size:.7rem!important;font-weight:600!important}.refill-assemble-form .btn-assemble:disabled{opacity:.5;cursor:not-allowed}.refill-assemble-form .btn-cancel{cursor:pointer;color:var(--text-muted)!important;background:0 0!important;border:none!important;padding:.25rem .5rem!important;font-size:.7rem!important;font-weight:500!important}.refill-assemble-form .btn-cancel:hover{color:var(--text-primary)!important}.spool-detail-card{min-width:220px;max-width:280px;transition:all .15s var(--ease-out);flex-direction:column;gap:.5rem;padding:.875rem;display:flex;position:relative;background:var(--card)!important;border:1px solid var(--border)!important;border-radius:var(--radius-md)!important}.spool-detail-card:hover{border-color:var(--accent)!important;box-shadow:var(--shadow-md)!important}.spool-detail-card.low-stock{border-color:var(--destructive)!important;background:color-mix(in oklch, var(--destructive) 5%, var(--card))!important}.spool-detail-card.editing{min-width:320px;max-width:400px}.spool-detail-header{justify-content:space-between;align-items:baseline;gap:.5rem;display:flex}.spool-detail-weight{font-size:var(--text-xl)!important;font-weight:700!important;font-family:var(--font-mono)!important;color:var(--text-primary)!important}.spool-detail-card.low-stock .spool-detail-weight{color:var(--destructive)!important}.spool-detail-manufacturer{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:var(--text-sm)!important;color:var(--text-secondary)!important;font-weight:500!important}.spool-detail-meta{flex-wrap:wrap;gap:.375rem;display:flex}.spool-detail-type,.spool-detail-subtype{background:var(--surface-2)!important;border-radius:var(--radius-sm)!important;color:var(--text-muted)!important;padding:.125rem .375rem!important;font-size:.7rem!important}.spool-detail-subtype{background:var(--accent-subtle,#ff7a181a)!important;color:var(--accent)!important}.spool-detail-nfc{align-items:center;gap:.375rem;display:flex;color:var(--accent)!important;font-size:.7rem!important;font-family:var(--font-mono)!important}.spool-detail-notes{text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.4;display:-webkit-box;overflow:hidden;font-size:var(--text-xs)!important;color:var(--text-muted)!important}.spool-detail-actions{gap:.375rem;margin-top:.25rem;display:flex}.spool-detail-actions button{cursor:pointer;flex:1;border-radius:var(--radius-sm)!important;transition:all .15s var(--ease-out)!important;border:none!important;justify-content:center!important;align-items:center!important;gap:.25rem!important;padding:.375rem .5rem!important;font-size:.7rem!important;font-weight:600!important;display:inline-flex!important}.spool-detail-actions .btn-primary{background:var(--accent)!important;color:var(--text-on-accent,#fff)!important}.spool-detail-actions .btn-primary:hover{background:var(--accent-hover,#0891b2)!important;box-shadow:none!important;transform:none!important}.spool-detail-actions .btn-ghost{background:var(--surface-2)!important;color:var(--text-secondary)!important}.spool-detail-actions .btn-ghost:hover{background:var(--surface-3)!important;box-shadow:none!important;transform:none!important}.spool-detail-actions .btn-danger{flex:none;color:var(--destructive)!important;background:0 0!important;padding:.375rem!important}.spool-detail-actions .btn-danger:hover{background:color-mix(in oklch, var(--destructive) 10%, transparent)!important;box-shadow:none!important;transform:none!important}.btn-link.remove-nfc{cursor:pointer;opacity:.7;text-decoration:underline;color:var(--text-muted)!important;background:0 0!important;border:none!important;padding:.25rem 0!important;font-size:.65rem!important}.btn-link.remove-nfc:hover{opacity:1;color:var(--destructive)!important}.spool-usage-form{border-top:1px solid var(--border-subtle);gap:.375rem;margin-top:.5rem;padding-top:.5rem;display:flex}.spool-usage-form input{flex:1;min-width:0;font-size:var(--text-sm)!important;border:1px solid var(--border)!important;border-radius:var(--radius-sm)!important;background:var(--surface-1)!important;padding:.375rem!important}.spool-usage-form button{cursor:pointer;border-radius:var(--radius-sm)!important;border:none!important;padding:.375rem .625rem!important;font-size:.7rem!important;font-weight:600!important}.spool-usage-form button[type=submit]{background:var(--accent)!important;color:#fff!important}.spool-usage-form button[type=button]{background:var(--surface-2)!important;color:var(--text-secondary)!important}.spool-detail-error{margin-top:.25rem;font-size:var(--text-xs)!important;color:var(--destructive)!important}.spool-edit-form{flex-direction:column;gap:.625rem;display:flex}.spool-edit-form .edit-row{flex-wrap:wrap;gap:.5rem;display:flex}.spool-edit-form label{flex-direction:column;flex:1;gap:.25rem;min-width:80px;display:flex}.spool-edit-form label span{text-transform:uppercase;letter-spacing:.03em;color:var(--text-muted)!important;font-size:.65rem!important;font-weight:600!important}.spool-edit-form input[type=text],.spool-edit-form input[type=number]{width:100%;font-size:var(--text-sm)!important;border:1px solid var(--border)!important;border-radius:var(--radius-sm)!important;background:var(--surface-1)!important;padding:.375rem!important}.spool-edit-form .checkboxes{margin-top:.25rem}.spool-edit-form .checkbox-label{min-width:auto;flex-direction:row!important;align-items:center!important;gap:.375rem!important}.spool-edit-form .checkbox-label input{width:auto}.spool-edit-form .checkbox-label span{text-transform:none;font-size:var(--text-sm)!important;color:var(--text-secondary)!important}.edit-actions{border-top:1px solid var(--border-subtle);gap:.375rem;margin-top:.375rem;padding-top:.5rem;display:flex}.edit-actions button{cursor:pointer;flex:1;border-radius:var(--radius-sm)!important;border:none!important;padding:.5rem!important;font-size:.75rem!important;font-weight:600!important}.edit-actions .btn-primary{background:var(--accent)!important;color:#fff!important}.edit-actions .btn-ghost{background:var(--surface-2)!important;color:var(--text-secondary)!important}.edit-actions .btn-danger{background:color-mix(in oklch, var(--destructive) 15%, transparent)!important;color:var(--destructive)!important}@media (width<=640px){.spool-detail-card{flex:calc(50% - .375rem);min-width:150px;max-width:none}.spool-detail-card.editing{min-width:100%;max-width:none}.horizontal-spool-list{gap:.5rem}}.analytics-page{animation:pageEnter .5s var(--ease-out,cubic-bezier(.16, 1, .3, 1)) forwards}.analytics-loading{text-align:center;color:var(--text-muted,#9ca3af);padding:4rem 2rem;font-size:1rem}.analytics-error{color:var(--destructive);background:#f43f5e1a;border:1px solid #f43f5e4d;border-radius:.75rem;margin-bottom:1.5rem;padding:1rem}.analytics-header{justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:2rem;display:flex}.analytics-title{letter-spacing:-.03em;color:var(--foreground,#f9fafb)!important;margin:0!important;font-size:2rem!important;font-weight:700!important}.analytics-subtitle{color:var(--muted-foreground,#9ca3af)!important;margin-top:.25rem!important;font-size:.95rem!important}.time-filter{background:var(--popover,#1f2937);border:1px solid var(--border,#374151);color:var(--foreground,#d1d5db);cursor:pointer;border-radius:.75rem;padding:.5rem 1rem;font-size:.875rem;font-weight:500;transition:all .2s}.time-filter:hover{background:var(--accent,var(--accent));color:var(--accent-foreground,#0a0f1a);border-color:var(--accent,var(--accent))}.analytics-stats-grid{grid-template-columns:repeat(4,1fr);gap:1rem;margin-bottom:2rem;display:grid}.analytics-stat-card{background:var(--popover,#111827);opacity:0;border:1px solid #ffffff0f;border-radius:1rem;padding:1.25rem;transition:all .3s;animation:.5s forwards fadeUp;box-shadow:0 4px 24px #0006}.analytics-stat-card:first-child{animation-delay:.1s}.analytics-stat-card:nth-child(2){animation-delay:.15s}.analytics-stat-card:nth-child(3){animation-delay:.2s}.analytics-stat-card:nth-child(4){animation-delay:.25s}.analytics-stat-card:hover{border-color:var(--accent,var(--accent));transform:translateY(-2px);box-shadow:0 8px 32px #00000080,0 0 24px #ff7a1826}.stat-header{justify-content:space-between;align-items:center;margin-bottom:.75rem;display:flex}.stat-icon{border-radius:.75rem;justify-content:center;align-items:center;width:40px;height:40px;display:flex}.stat-icon.cyan{color:var(--accent);background:#ff7a1826}.stat-icon.green{color:var(--success);background:#10b98126}.stat-icon.amber{color:var(--warn);background:#f59e0b26}.stat-icon.rose{color:var(--destructive);background:#f43f5e26}.stat-value{color:var(--foreground,#f9fafb);font-family:JetBrains Mono,Fira Code,monospace;font-size:1.75rem;font-weight:600;line-height:1.2}.stat-value span{opacity:.7;font-size:.875rem}.stat-label{color:var(--muted-foreground,#9ca3af);margin-top:.25rem;font-size:.8rem}.analytics-content-grid{grid-template-columns:1fr 340px;gap:1.5rem;margin-bottom:2rem;display:grid}.analytics-charts-column{flex-direction:column;gap:1.5rem;display:flex}.analytics-card{background:var(--popover,#111827);opacity:0;border:1px solid #ffffff0f;border-radius:1rem;animation:.6s .3s forwards fadeUp;overflow:hidden;box-shadow:0 4px 24px #0006}.analytics-card .card-header{border-bottom:1px solid #ffffff0f;justify-content:space-between;align-items:center;padding:1.25rem 1.5rem;display:flex}.analytics-card .card-title{align-items:center;gap:.75rem;display:flex;color:var(--foreground,#f9fafb)!important;margin:0!important;font-size:1rem!important;font-weight:600!important}.card-title-icon{border-radius:.5rem;justify-content:center;align-items:center;width:32px;height:32px;display:flex}.card-title-icon.cyan{color:var(--accent);background:#ff7a1826}.card-title-icon.green{color:var(--success);background:#10b98126}.card-title-icon.amber{color:var(--warn);background:#f59e0b26}.card-title-icon.rose{color:var(--destructive);background:#f43f5e26}.analytics-card .card-body{padding:1.5rem}.analytics-chart{max-width:100%;display:block}.chart-line-animated{stroke-dasharray:1000;stroke-dashoffset:1000px;animation:1.5s .5s forwards drawLine}@keyframes drawLine{to{stroke-dashoffset:0}}.chart-legend{border-top:1px solid #ffffff0f;justify-content:center;align-items:center;gap:1.5rem;margin-top:1rem;padding-top:1rem;display:flex}.legend-item{color:var(--muted-foreground,#9ca3af);align-items:center;gap:.5rem;font-size:.8rem;display:flex}.legend-dot{border-radius:50%;width:10px;height:10px}.chart-empty{text-align:center;color:var(--muted-foreground,#9ca3af);padding:2rem;font-size:.9rem}.cost-bars{flex-direction:column;gap:1rem;display:flex}.cost-item{align-items:center;gap:1rem;display:flex}.cost-label{width:50px;color:var(--foreground,#d1d5db);font-size:.875rem;font-weight:600}.cost-bar-container{background:var(--popover,#1f2937);border-radius:.5rem;flex:1;height:28px;overflow:hidden}.cost-bar{border-radius:.5rem;align-items:center;height:100%;padding-left:.75rem;transition:width .8s;display:flex}.cost-bar-label{color:#0a0f1a;font-family:JetBrains Mono,monospace;font-size:.75rem;font-weight:600}.cost-value{color:var(--foreground,#f9fafb);text-align:right;width:70px;font-family:JetBrains Mono,monospace;font-size:.875rem;font-weight:600}.cost-summary{border-top:1px solid #ffffff0f;justify-content:space-between;align-items:center;margin-top:1rem;padding-top:1rem;display:flex}.cost-total{color:var(--muted-foreground,#9ca3af);font-size:.875rem}.cost-total strong{color:var(--foreground,#f9fafb);font-family:JetBrains Mono,monospace;font-size:1.125rem}.insights-card{animation-delay:.35s!important}.ai-badge{text-transform:uppercase;letter-spacing:.05em;color:var(--warn);background:#f59e0b33;border-radius:.375rem;align-items:center;gap:.25rem;padding:.2rem .5rem;font-size:.65rem;font-weight:600;display:inline-flex}.insights-list{flex-direction:column;gap:.75rem;display:flex}.insight-item{background:var(--popover,#1f2937);cursor:pointer;opacity:0;border:1px solid #ffffff0f;border-radius:.75rem;padding:1rem;transition:all .25s;animation:.4s cubic-bezier(.34,1.56,.64,1) forwards slideInRight;transform:translate(20px)}.insight-item:first-child{animation-delay:.4s}.insight-item:nth-child(2){animation-delay:.55s}.insight-item:nth-child(3){animation-delay:.7s}.insight-item:nth-child(4){animation-delay:.85s}@keyframes slideInRight{to{opacity:1;transform:translate(0)}}.insight-item:hover{border-color:var(--accent,var(--accent));background:#374151cc;transform:translate(4px)}.insight-header{align-items:flex-start;gap:.75rem;margin-bottom:.5rem;display:flex}.insight-icon{font-size:1.25rem;line-height:1}.insight-type{text-transform:uppercase;letter-spacing:.05em;border-radius:.375rem;padding:.2rem .5rem;font-size:.7rem;font-weight:600}.insight-type.tip{color:var(--accent);background:#ff7a1826}.insight-type.warning{color:var(--warn);background:#f59e0b26}.insight-type.trend{color:var(--success);background:#10b98126}.insight-text{color:var(--muted-foreground,#d1d5db)!important;margin:0!important;font-size:.875rem!important;line-height:1.5!important}.insight-text strong{color:var(--foreground,#f9fafb)}.insights-cta{border-top:1px solid #ffffff0f;margin-top:1rem;padding-top:1rem}.insights-cta-btn{background:linear-gradient(135deg, var(--accent,var(--accent)) 0%, var(--accent-2) 100%);color:#0a0f1a;cursor:pointer;border:none;border-radius:.75rem;justify-content:center;align-items:center;gap:.5rem;width:100%;padding:.75rem 1rem;font-size:.875rem;font-weight:600;transition:all .2s;display:flex}.insights-cta-btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 8px 20px #ff7a184d}.insights-cta-btn:disabled{opacity:.6;cursor:not-allowed}.insights-cta-btn .ai-badge{color:#0a0f1a;background:#0003}.depletion-card{animation-delay:.4s!important}.depletion-list{flex-direction:column;gap:.75rem;display:flex}.depletion-item{background:var(--popover,#1f2937);cursor:pointer;opacity:0;border-radius:.75rem;align-items:center;gap:1rem;padding:.875rem 1rem;transition:all .15s;animation:.3s forwards slideInLeft;display:flex;transform:translate(-20px)}.depletion-item:first-child{animation-delay:.45s}.depletion-item:nth-child(2){animation-delay:.53s}.depletion-item:nth-child(3){animation-delay:.61s}.depletion-item:nth-child(4){animation-delay:.69s}.depletion-item:nth-child(5){animation-delay:.77s}.depletion-item:nth-child(6){animation-delay:.85s}@keyframes slideInLeft{to{opacity:1;transform:translate(0)}}.depletion-item:hover{background:#374151cc;transform:translate(4px)}.depletion-item.critical{border-left:3px solid var(--destructive)}.depletion-item.warning{border-left:3px solid var(--warn)}.depletion-item.ok{border-left:3px solid var(--success)}.depletion-status{border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:24px;height:24px;display:flex}.depletion-status.critical{color:var(--destructive);background:#f43f5e26}.depletion-status.warning{color:var(--warn);background:#f59e0b26}.depletion-status.ok{color:var(--success);background:#10b98126}.depletion-info{flex:1;min-width:0}.depletion-name{color:var(--foreground,#f9fafb);align-items:center;gap:.5rem;font-size:.875rem;font-weight:600;display:flex}.depletion-material{color:var(--muted-foreground,#9ca3af);background:#374151cc;border-radius:.375rem;padding:.1rem .4rem;font-size:.7rem;font-weight:500}.depletion-bar-container{background:#374151cc;border-radius:3px;height:6px;margin-top:.5rem;overflow:hidden}.depletion-bar{border-radius:3px;height:100%;transition:width .6s}.depletion-bar.critical{background:var(--destructive)}.depletion-bar.warning{background:var(--warn)}.depletion-bar.ok{background:var(--success)}.depletion-meta{text-align:right;flex-shrink:0}.depletion-remaining{color:var(--foreground,#f9fafb);font-family:JetBrains Mono,monospace;font-size:.875rem;font-weight:600}.depletion-days{color:var(--muted-foreground,#9ca3af);margin-top:.125rem;font-size:.75rem}.depletion-days.critical{color:var(--destructive)}.depletion-days.warning{color:var(--warn)}.print-history-card{margin-top:1.5rem;animation-delay:.5s!important}.coming-badge{text-transform:uppercase;letter-spacing:.05em;background:linear-gradient(135deg, var(--accent,var(--accent)) 0%, var(--accent-2) 100%);color:#0a0f1a;border-radius:.375rem;padding:.25rem .6rem;font-size:.65rem;font-weight:700}.print-history-teaser{text-align:center;padding:1rem 0}.print-history-teaser p{color:var(--muted-foreground,#9ca3af)!important;margin-bottom:1.5rem!important;font-size:.9rem!important}.printer-grid{grid-template-columns:repeat(3,1fr);gap:1rem;display:grid}.printer-card{background:var(--popover,#1f2937);text-align:center;opacity:0;border:1px solid #ffffff0f;border-radius:.75rem;padding:1.25rem 1rem;transition:all .2s;animation:.5s cubic-bezier(.34,1.56,.64,1) forwards popIn;transform:scale(.9)}.printer-card:first-child{animation-delay:.55s}.printer-card:nth-child(2){animation-delay:.65s}.printer-card:nth-child(3){animation-delay:.75s}.printer-card:hover{border-color:var(--accent,var(--accent));transform:translateY(-4px);box-shadow:0 8px 32px #00000080,0 0 24px #ff7a1826}.printer-icon{margin-bottom:.5rem;font-size:2rem}.printer-name{color:var(--foreground,#f9fafb);margin-bottom:.25rem;font-size:.875rem;font-weight:600}.printer-status{color:var(--accent,var(--accent));font-size:.75rem;font-weight:500}.printer-status.planned{color:var(--muted-foreground,#9ca3af)}.projects-list{flex-direction:column;gap:.75rem;display:flex}.project-item{background:var(--popover,#1f2937);border:1px solid #ffffff0f;border-radius:.75rem;padding:1rem}.project-header{align-items:baseline;gap:.5rem;margin-bottom:.5rem;display:flex}.project-header strong{color:var(--foreground,#f9fafb)}.project-desc{color:var(--muted-foreground,#9ca3af);font-size:.875rem}.project-meta{color:var(--accent,var(--accent));font-size:.875rem}@media (width<=1024px){.analytics-content-grid{grid-template-columns:1fr}.analytics-stats-grid{grid-template-columns:repeat(2,1fr)}}@media (width<=768px){.analytics-header{flex-direction:column;align-items:flex-start}.printer-grid{grid-template-columns:1fr}}@media (width<=480px){.analytics-stats-grid{grid-template-columns:1fr}}.project-item{background:var(--surface-2);border-radius:var(--radius-md);border:1px solid var(--border-subtle);transition:all .2s var(--ease-out);justify-content:space-between;align-items:flex-start;gap:1rem;padding:1rem;display:flex}.project-item:hover{border-color:var(--accent)}.project-content{flex:1;min-width:0}.project-actions{flex-shrink:0;gap:.5rem;display:flex}.project-actions button{padding:.25rem .75rem!important;font-size:.75rem!important}.project-status-badge{text-transform:capitalize;letter-spacing:.03em;border-radius:999px;padding:.15rem .55rem;font-size:.65rem;font-weight:600;line-height:1.4;display:inline-block}.status-active{color:#22c55e;background:#22c55e26}.status-completed{color:#818cf8;background:#6366f126}.status-archived{color:#9ca3af;background:#9ca3af2e}.status-filter{color:var(--text-muted,#888);align-items:center;gap:.4rem;font-size:.78rem;display:flex}.status-filter select{background:var(--surface-2,#1e1e1e);color:var(--text,#e0e0e0);border:1px solid var(--border,#333);border-radius:var(--radius-sm,4px);cursor:pointer;padding:.25rem .5rem;font-size:.78rem}.budget-progress{flex-direction:column;gap:.35rem;display:flex}.budget-progress-bar{background:var(--surface-2,#1e1e1e);border-radius:3px;height:6px;overflow:hidden}.budget-progress-bar-lg{border-radius:5px;height:10px}.budget-progress-fill{border-radius:inherit;background:#22c55e;height:100%;transition:width .4s}.budget-progress-fill.near-budget{background:var(--warn)}.budget-progress-fill.over-budget{background:#ef4444}.budget-progress-label{color:var(--text-muted,#888);font-size:.7rem}.over-budget-text{color:#ef4444}.project-link{color:var(--accent,#60a5fa);font-weight:600;text-decoration:none}.project-link:hover{text-decoration:underline}.form-row{gap:.75rem;display:flex}.form-row .form-group{flex:1}.bulk-assign-toolbar{background:var(--surface-2,#1e1e1e);border:1px solid var(--border,#333);border-radius:var(--radius-md,6px);align-items:center;gap:.5rem;margin-bottom:.5rem;padding:.5rem .75rem;font-size:.8rem;display:flex}.bulk-assign-toolbar select{background:var(--surface-1,#121212);color:var(--text,#e0e0e0);border:1px solid var(--border,#333);border-radius:var(--radius-sm,4px);flex:1;padding:.3rem .5rem;font-size:.78rem}.bulk-assign-toolbar button{white-space:nowrap}.history-checkbox{width:16px;height:16px;accent-color:var(--accent,#60a5fa);cursor:pointer;flex-shrink:0}.history-entry.select-mode{grid-template-columns:auto 80px 60px 1fr}.select-toggle-btn{border:1px solid var(--border,#333);border-radius:var(--radius-sm,4px);color:var(--text-muted,#888);cursor:pointer;background:0 0;padding:.2rem .5rem;font-size:.7rem}.select-toggle-btn:hover{background:var(--surface-2,#1e1e1e);color:var(--text,#e0e0e0)}.select-toggle-btn.active{background:var(--accent,#60a5fa);color:#fff;border-color:var(--accent,#60a5fa)}.project-detail-page{flex-direction:column;gap:1.25rem;max-width:800px;margin:0 auto;padding:1.5rem 1rem;display:flex}.project-detail-header{flex-direction:column;gap:.75rem;display:flex}.project-detail-back{color:var(--text-muted,#888);align-items:center;gap:.35rem;font-size:.82rem;font-weight:500;text-decoration:none;display:inline-flex}.project-detail-back:hover{color:var(--text,#e0e0e0)}.project-detail-title-row{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:1rem;display:flex}.project-detail-name{margin:0;font-size:1.5rem;font-weight:700}.project-detail-desc{color:var(--text-muted,#888);margin:.25rem 0 0;font-size:.88rem}.project-detail-title-meta{flex-shrink:0;align-items:center;gap:.75rem;display:flex}.project-detail-date{color:var(--text-muted,#888);font-size:.75rem}.project-detail-stats{grid-template-columns:repeat(3,1fr);gap:.75rem;display:grid}.project-stat-card{background:var(--surface-1,#121212);border:1px solid var(--border,#333);border-radius:var(--radius-md,6px);text-align:center;padding:1rem}.project-stat-value{color:var(--text,#e0e0e0);font-size:1.5rem;font-weight:700}.project-stat-label{color:var(--text-muted,#888);text-transform:uppercase;letter-spacing:.04em;margin-top:.2rem;font-size:.72rem}.materials-breakdown{flex-direction:column;gap:.6rem;display:flex}.material-row{grid-template-columns:120px 1fr auto;align-items:center;gap:.75rem;font-size:.82rem;display:grid}.material-name{white-space:nowrap;text-overflow:ellipsis;font-weight:600;overflow:hidden}.material-bar-container{background:var(--surface-2,#1e1e1e);border-radius:4px;height:8px;overflow:hidden}.material-bar{background:var(--accent,#60a5fa);border-radius:inherit;min-width:4px;height:100%;transition:width .4s}.material-stats{white-space:nowrap;gap:.5rem;font-size:.78rem;display:flex}.material-cost{color:var(--text-muted,#888)}.project-timeline{flex-direction:column;gap:.35rem;display:flex}.timeline-entry{border-bottom:1px solid var(--border,#222);justify-content:space-between;padding:.35rem 0;font-size:.8rem;display:flex}.timeline-entry:last-child{border-bottom:none}.timeline-date{color:var(--text-muted,#888)}.timeline-grams{font-weight:600}.project-detail-actions{border-top:1px solid var(--border,#222);flex-wrap:wrap;gap:.75rem;padding-top:.5rem;display:flex}.project-detail-actions .btn-primary{background:var(--accent,#60a5fa);color:#fff;border-radius:var(--radius-md,6px);cursor:pointer;border:none;align-items:center;gap:.35rem;padding:.5rem 1rem;font-size:.82rem;font-weight:600;text-decoration:none;display:inline-flex}.project-detail-actions .btn-primary:hover{background:var(--accent-hover,#0891b2)}.project-detail-actions .btn-danger{color:#ef4444;background:#ef44441f;border:1px solid #ef444440}.project-detail-actions .btn-danger:hover{background:#ef444438}.project-detail-error{text-align:center;color:var(--text-muted,#888);padding:3rem 1rem}.project-detail-error .btn-ghost{color:var(--accent,#60a5fa);margin-top:1rem;text-decoration:none;display:inline-block}@media (width<=600px){.project-detail-stats{grid-template-columns:1fr}.material-row{grid-template-columns:1fr;gap:.25rem}.project-detail-title-row{flex-direction:column}}.spool-usage-form.expanded{background:var(--surface-2);border-radius:var(--radius-md);flex-direction:column;gap:.5rem;margin-top:.5rem;padding:.75rem;display:flex}.usage-form-row{gap:.5rem;display:flex}.usage-form-row input{flex:1;min-width:80px}.usage-form-row .project-select{flex:1.5;min-width:120px}.usage-form-actions{justify-content:flex-end;gap:.5rem;display:flex}.usage-form-actions button{padding:.375rem .75rem!important;font-size:.8rem!important}.modal-overlay{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:1000;background:#0009;justify-content:center;align-items:center;animation:.2s fadeIn;display:flex;position:fixed;inset:0}.modal-content{background:var(--surface-1);border:1px solid var(--border);border-radius:var(--radius-lg);width:100%;max-width:420px;max-height:90vh;box-shadow:var(--shadow-xl);animation:slideUp .25s var(--ease-out);overflow:auto}.modal-header{border-bottom:1px solid var(--border-subtle);justify-content:space-between;align-items:center;padding:1rem 1.25rem;display:flex}.modal-header h3{color:var(--text-primary);margin:0;font-size:1.1rem;font-weight:600}.modal-close{color:var(--text-muted);cursor:pointer;background:0 0;border:none;padding:.25rem;font-size:1.5rem;line-height:1;transition:color .2s}.modal-close:hover{color:var(--text-primary)}.modal-body{padding:1.25rem}.modal-body .form-group{flex-direction:column;gap:.5rem;margin-bottom:1rem;display:flex}.modal-body .form-group:last-child{margin-bottom:0}.modal-body .form-group span{color:var(--text-secondary);font-size:.875rem;font-weight:500}.modal-body input,.modal-body textarea{border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface-2);color:var(--text-primary);padding:.625rem .75rem;font-size:.9rem;transition:border-color .2s,box-shadow .2s}.modal-body input:focus,.modal-body textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-muted,#ff7a1826);outline:none}.modal-body textarea{resize:vertical;min-height:80px}.modal-footer{border-top:1px solid var(--border-subtle);background:var(--surface-2);border-radius:0 0 var(--radius-lg) var(--radius-lg);justify-content:flex-end;gap:.75rem;padding:1rem 1.25rem;display:flex}.btn-sm{padding:.375rem .75rem!important;font-size:.8rem!important}.btn-ghost{border:1px solid var(--border)!important;color:var(--text-secondary)!important;background:0 0!important}.btn-ghost:hover{background:var(--surface-2)!important;color:var(--text-primary)!important}.btn-danger{background:var(--destructive)!important;color:var(--destructive-foreground)!important;border:none!important}.btn-danger:hover{filter:brightness(1.1)}.btn-danger.btn-sm{color:var(--destructive)!important;border:1px solid var(--destructive)!important;background:0 0!important}.btn-danger.btn-sm:hover{background:var(--destructive)!important;color:var(--destructive-foreground)!important}.spool-detail-overlay{justify-content:center;align-items:center;display:flex}.spool-detail-panel-container{width:95%;max-width:420px;max-height:90vh;position:relative;overflow-y:auto}.spool-card:after{content:"";border-radius:inherit;background:radial-gradient(130% 95% at 50% -12%, color-mix(in srgb, var(--spool-accent,var(--accent)) 20%, transparent), transparent 72%);opacity:.85;pointer-events:none;z-index:0;position:absolute;inset:0}.spool-card>*{z-index:1;position:relative}.spool-detail-panel{animation:detailPanelEnter .3s var(--ease-out) forwards;box-shadow:var(--shadow-xl);padding:1.25rem;background:var(--card)!important;border:1px solid var(--border)!important;border-radius:var(--radius-lg)!important}@keyframes detailPanelEnter{0%{opacity:0;transform:translateY(20px)scale(.95)}to{opacity:1;transform:translateY(0)scale(1)}}.spool-detail-panel-header{justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1rem;display:flex}.spool-detail-panel-title{flex-direction:column;gap:.25rem;display:flex}.spool-detail-panel-manufacturer{font-size:var(--text-lg)!important;color:var(--text-primary)!important;font-weight:600!important}.spool-detail-panel-material{font-size:var(--text-sm)!important;color:var(--text-secondary)!important}.spool-detail-panel-subtype{border-radius:var(--radius-sm);width:fit-content;padding:.125rem .5rem;font-size:var(--text-xs)!important;background:var(--accent-subtle,#06b6d41a)!important;color:var(--accent)!important}.spool-detail-panel-close{cursor:pointer;border-radius:var(--radius-sm);transition:all .15s var(--ease-out);padding:.25rem;color:var(--text-muted)!important;background:0 0!important;border:none!important}.spool-detail-panel-close:hover{background:var(--surface-2)!important;color:var(--text-primary)!important}.spool-detail-panel-current{border-bottom:1px solid var(--border-subtle);align-items:baseline;gap:.5rem;margin-bottom:1.25rem;padding-bottom:1rem;display:flex}.spool-detail-panel-weight{font-size:2rem!important;font-weight:700!important;font-family:var(--font-mono)!important;color:var(--accent)!important}.spool-detail-panel-weight-label{font-size:var(--text-sm)!important;color:var(--text-muted)!important}.spool-detail-panel-graph{margin-bottom:1.25rem}.spool-detail-panel-graph-title{text-transform:uppercase;letter-spacing:.05em;margin-bottom:.75rem;font-size:var(--text-xs)!important;color:var(--text-muted)!important;font-weight:600!important}.usage-graph{width:100%;height:auto;display:block}.usage-graph .graph-label{fill:var(--text-muted);font-size:10px;font-family:var(--font-mono)}.usage-graph .graph-line{stroke-dasharray:1000;stroke-dashoffset:1000px;animation:.8s ease-out .2s forwards graphDraw}.usage-graph .graph-area{opacity:0;animation:.5s ease-out .4s forwards graphFadeIn}.usage-graph .graph-point{opacity:0;animation:.3s ease-out forwards graphPointPop}.usage-graph .graph-point:first-child{animation-delay:.5s}.usage-graph .graph-point:nth-child(2){animation-delay:.55s}.usage-graph .graph-point:nth-child(3){animation-delay:.6s}.usage-graph .graph-point:nth-child(4){animation-delay:.65s}.usage-graph .graph-point:nth-child(5){animation-delay:.7s}.usage-graph .graph-point:nth-child(6){animation-delay:.75s}.usage-graph .graph-point:nth-child(n+7){animation-delay:.8s}@keyframes graphDraw{to{stroke-dashoffset:0}}@keyframes graphFadeIn{to{opacity:1}}@keyframes graphPointPop{0%{opacity:0;transform:scale(0)}60%{transform:scale(1.3)}to{opacity:1;transform:scale(1)}}.spool-detail-panel-history{margin-bottom:1.25rem}.spool-detail-panel-history-title{text-transform:uppercase;letter-spacing:.05em;margin-bottom:.5rem;font-size:var(--text-xs)!important;color:var(--text-muted)!important;font-weight:600!important}.spool-detail-panel-history-list{flex-direction:column;gap:.25rem;max-height:200px;display:flex;overflow-y:auto}.history-entry{background:var(--surface-1);border-radius:var(--radius-sm);grid-template-columns:80px 60px 1fr;gap:.75rem;padding:.5rem .625rem;animation:.2s ease-out backwards historyEntrySlide;display:grid;font-size:var(--text-sm)!important}@keyframes historyEntrySlide{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.history-entry:hover{background:var(--surface-2);transition:all .15s var(--ease-out);transform:translate(4px)}.history-entry-date{color:var(--text-muted)!important;font-family:var(--font-mono)!important;font-size:var(--text-xs)!important}.history-entry-amount{color:var(--destructive)!important;font-family:var(--font-mono)!important;font-weight:600!important}.history-entry-project{white-space:nowrap;text-overflow:ellipsis;align-items:center;display:flex;overflow:hidden;color:var(--text-secondary)!important}.history-assign-btn{border:1px dashed var(--border-subtle);cursor:pointer;color:var(--text-muted);opacity:0;background:0 0;border-radius:4px;align-items:center;padding:2px 6px;transition:all .15s;display:inline-flex}.history-entry:hover .history-assign-btn{opacity:1}.history-assign-btn:hover{border-color:var(--accent);color:var(--accent);background:var(--surface-2)}.history-project-tag{background:var(--surface-2);border:1px solid var(--border-subtle);cursor:pointer;color:var(--text-secondary);font-size:var(--text-xs);white-space:nowrap;text-overflow:ellipsis;border-radius:4px;max-width:100%;padding:1px 8px;transition:all .15s;overflow:hidden}.history-project-tag:hover{border-color:var(--accent);color:var(--accent)}.history-project-select{outline:none;max-width:100%;font-size:var(--text-xs)!important;border:1px solid var(--accent)!important;background:var(--surface-1)!important;color:var(--text-primary)!important;border-radius:4px!important;padding:1px 4px!important}.history-more{text-align:center;padding:.5rem;font-size:var(--text-xs)!important;color:var(--text-muted)!important}.spool-detail-panel-no-history{background:var(--surface-1);border-radius:var(--radius-md);flex-direction:column;align-items:center;gap:.5rem;margin-bottom:1.25rem;padding:1.5rem;display:flex;color:var(--text-muted)!important}.spool-detail-panel-no-history svg{opacity:.5}.spool-detail-panel-no-history span{font-size:var(--text-sm)!important}.spool-detail-panel-actions{gap:.5rem;display:flex}.spool-detail-panel-actions button{cursor:pointer;transition:all .15s var(--ease-out);flex:1;gap:.375rem;font-size:var(--text-sm)!important;border-radius:var(--radius-md)!important;border:none!important;justify-content:center!important;align-items:center!important;padding:.625rem 1rem!important;font-weight:500!important;display:inline-flex!important}.spool-detail-panel-actions .btn-primary{background:var(--accent)!important;color:var(--text-on-accent,#fff)!important}.spool-detail-panel-actions .btn-primary:hover{filter:brightness(1.1)}.spool-detail-panel-actions .btn-ghost{background:var(--surface-2)!important;color:var(--text-secondary)!important}.spool-detail-panel-actions .btn-ghost:hover{background:var(--surface-3)!important}.spool-detail-loading{border-radius:var(--radius-lg);background:#0000004d;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.spool-detail-loading .loading-spinner{border:3px solid var(--border);border-top-color:var(--accent);border-radius:50%;width:32px;height:32px;animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media (width<=480px){.spool-detail-panel{padding:1rem}.spool-detail-panel-weight{font-size:1.75rem!important}.history-entry{grid-template-columns:70px 50px 1fr;gap:.5rem;padding:.375rem .5rem}}
