:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN",sans-serif;color:#dee9e7;background:#0d1519;font-synthesis:none;--muted:#91a6ac;--line:#293a40;--cell:13px}*{box-sizing:border-box}body{margin:0}main{max-width:1040px;margin:auto;padding:64px 32px 36px}header{position:relative;margin-bottom:38px}.eyebrow{font-size:11px;letter-spacing:.18em;color:#9bb6b6;font-weight:650}.badge{position:absolute;right:0;top:0;border:1px solid #36504b;border-radius:20px;padding:7px 12px;font-size:11px;color:#a6c7bb}h1{font-size:clamp(30px,4.6vw,48px);line-height:1.5;letter-spacing:.035em;font-weight:550;margin:24px 0 12px}p{color:var(--muted);font-size:13px;line-height:1.9}h2{font-size:17px;font-weight:550;margin:0 0 6px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:30px}.stats div{border-top:1px solid var(--line);padding-top:19px}.stats small,.stats span{display:block;font-size:12px;color:var(--muted)}.stats strong{display:block;font-size:35px;font-weight:450;margin:12px 0 6px;font-variant-numeric:tabular-nums}.card{border:1px solid var(--line);border-radius:16px;padding:25px;background:#111e23;margin-bottom:20px}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:15px}.toolbar p{margin:0;font-size:11px}.controls{display:flex;gap:16px;align-items:center;font-size:12px}select,button{font:inherit;color:inherit;background:#17282e;border:1px solid #35494e;border-radius:6px;padding:7px 10px}button,select{cursor:pointer}.switch{display:flex;background:#0d171c;border-radius:8px;padding:3px}.switch button{border:0;background:none;color:var(--muted)}.switch [aria-pressed=true]{background:#2b4746;color:#e1f6ec}.hint{font-size:11px;margin:18px 0}.scroll{overflow-x:auto;padding:0 0 12px;scrollbar-color:#3c585a #111e23}.months{height:24px;position:relative;margin-left:26px;width:calc(53 * 17px);font-size:10px;color:var(--muted)}.months span{position:absolute}.calendar-row{display:flex;gap:12px}.calendar{display:grid;grid-template-rows:repeat(7,var(--cell));grid-auto-flow:column;grid-auto-columns:var(--cell);gap:4px}.weekdays{display:grid;grid-template-rows:repeat(7,var(--cell));gap:4px;font-size:9px;color:#7f999f;width:14px;flex-shrink:0;align-items:center}.day{padding:0;width:var(--cell);height:var(--cell);border-radius:3px;border:1px solid #405258;background:#18262c;position:relative}.day.partial:after{content:"";position:absolute;right:1px;top:1px;width:2px;height:2px;border-radius:50%;background:#e1f9ec}.day.selected{outline:2px solid #d1f4e5;outline-offset:2px}.unknown{background:repeating-linear-gradient(135deg,#18262c 0px,#18262c 3px,#2b3b42 3px,#2b3b42 4px)!important}.zero{background:#283a3f!important}.future{opacity:.18}.blank{visibility:hidden}.level1{background:#315b51!important}.level2{background:#437b65!important}.level3{background:#65a781!important}.level4{background:#a3d8a7!important}.legend{display:flex;gap:18px;flex-wrap:wrap;margin-top:12px;font-size:10px;color:var(--muted)}.legend span{display:flex;align-items:center;gap:5px}.legend i{display:inline-block;width:12px;height:12px;border-radius:3px;border:1px solid #405258}.details{min-height:170px}.details h2{margin:12px 0;color:#d4eee2}.details p{margin:7px 0}.detail-grid{display:flex;gap:32px;flex-wrap:wrap;font-size:13px;line-height:2;color:#bccdcf}.detail-grid b{color:#f0f7f3}footer{max-width:750px;padding:12px 4px}footer h2{font-size:13px;color:#b1c4c5}footer p{font-size:11px}button:focus-visible,select:focus-visible{outline:2px solid #d1f4e5;outline-offset:3px}@media(max-width:600px){main{padding:30px 18px}.badge{position:static;display:inline-block;margin-top:16px}h1{margin-top:18px}.stats{gap:12px}.stats strong{font-size:27px}.stats span,.stats small{font-size:10px}.card{padding:18px 14px}.toolbar{display:block}.controls{margin-top:16px;justify-content:space-between}.legend{gap:12px}.hint{line-height:1.8}.detail-grid{gap:18px}}

@media(max-width:600px){.stats strong{font-size:24px;white-space:nowrap}}
.inventory h2{margin-top:12px}.inventory h3{font-size:14px;margin:26px 0 10px;color:#b9d4cb}.inventory h4{font-size:13px;font-weight:550;margin:0 0 6px}.inventory-item{padding:16px 0;border-top:1px solid var(--line)}.inventory-item small{font-size:11px;color:#91a6ac}.inventory-item p{font-size:12px;margin:8px 0 0}.usage-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:22px 0}.usage-summary>div{background:#192b30;border-radius:9px;padding:14px}.usage-summary strong{font-size:14px;font-weight:550}.usage-summary p{font-size:11px;line-height:1.8;margin:8px 0 0}@media(max-width:600px){.usage-summary{grid-template-columns:1fr}.usage-summary>div{padding:12px}}
.app-header{margin-bottom:24px}.app-header>div{display:flex;align-items:center;justify-content:space-between;gap:14px}.app-header h1{font-size:23px;font-weight:600;margin:0;line-height:1.4;letter-spacing:0}.app-header .badge{position:static;white-space:nowrap;margin:0}.app-header nav{display:flex;gap:24px;border-bottom:1px solid var(--line);padding:20px 0 13px}.app-header nav a{font-size:13px;color:#c8dfd6;text-decoration:none}.inventory{margin:0 0 40px}.inventory-heading{display:flex;align-items:center;justify-content:space-between}.inventory-heading h2{margin:0;font-size:19px}.inventory-heading>span{font-size:12px;color:var(--muted)}.catalog-note{margin:8px 0 16px;font-size:11px}.category-filter{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:15px}.category-filter button{font-size:12px;border-radius:20px;padding:9px 13px}.category-filter button[aria-pressed=true]{background:#42695b;color:#f0fff6;border-color:#769e87}#inventory{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.inventory .inventory-item{border:1px solid var(--line);padding:14px;border-radius:12px;background:#111e23;min-width:0}.inventory .inventory-item h3{font-size:13px;line-height:1.65;color:#e0eee8;margin:12px 0 8px;min-height:43px}.product-photo{margin:0;background:#fff;border-radius:7px;overflow:hidden;position:relative}.product-photo img{width:100%;height:180px;object-fit:contain;display:block}.product-photo figcaption{font-size:9px;text-align:center;background:#e6ebea;color:#405652;padding:6px 4px}.product-photo a{color:inherit;text-decoration:underline}.photo-missing{display:flex;height:208px;align-items:center;justify-content:center;font-size:11px;color:#697f78;background:#e8eeeb}.item-status{display:inline-block;font-size:10px;border:1px solid #3b5558;color:#aec5c2;border-radius:5px;padding:4px 7px}.item-status.pending{color:#e9d0a1;border-color:#756347;background:#302a21}.inventory dl{display:grid;grid-template-columns:60px 1fr;gap:8px 9px;font-size:11px;line-height:1.6;margin:15px 0 0}.inventory dt{color:#90a9ae}.inventory dd{margin:0;overflow-wrap:anywhere;color:#d4e5df}.inventory .item-caveat{font-size:10px;line-height:1.6;color:#9bb1b3;margin-top:12px}.inventory .usage-summary{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 18px}.inventory .usage-summary>div{padding:7px 10px;border-radius:6px}.inventory .usage-summary strong{font-size:10px}.activity-title{font-size:19px;margin:10px 0 22px;scroll-margin-top:20px}#supplies{scroll-margin-top:20px}@media(max-width:600px){main{padding-top:22px}.app-header h1{font-size:20px}.app-header .badge{font-size:9px;padding:5px 8px}#inventory{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.inventory .inventory-item{padding:10px}.product-photo img{height:135px}.product-photo figcaption{font-size:8px}.photo-missing{height:160px}.inventory dl{grid-template-columns:1fr;gap:2px;font-size:11px}.inventory dd{margin-bottom:7px}.inventory .inventory-item h3{font-size:12px;min-height:60px}.category-filter{gap:5px}.category-filter button{font-size:11px;padding:8px 10px}}@media(max-width:350px){#inventory{grid-template-columns:1fr}}
@media(min-width:351px) and (max-width:600px){.inventory dl{grid-template-columns:43px minmax(0,1fr);gap:7px 5px;font-size:10px}.inventory dd{margin:0}.inventory .inventory-item h3{font-size:12px}.inventory .item-caveat{font-size:9px}}
.spending-card{background:#172a2c;border:1px solid #3a5756;border-radius:12px;padding:22px;margin:0 0 28px}.spending-card h2{font-size:14px;color:#bad0c8;margin-bottom:12px}.spending-card h2 span{font-size:10px;font-weight:400;color:#a0b6b4;margin-left:8px}.spending-card strong{font-size:38px;line-height:1.2;font-weight:550;font-variant-numeric:tabular-nums}.spending-card p{font-size:11px;margin:10px 0 0}.spending-card #spending-note{border-top:1px solid #344b4c;padding-top:12px}.inventory .purchase-price{font-size:20px;color:#e2f4e7;margin:12px 0 2px;font-weight:550}.inventory .price-basis{font-size:9px;line-height:1.6;color:#9db6b2;display:block}@media(max-width:600px){.spending-card{padding:18px}.spending-card strong{font-size:34px}.inventory .purchase-price{font-size:17px;line-height:1.5}}
.monthly-spending-card{border:1px solid var(--line);border-radius:16px;padding:25px;background:#111e23;margin:0 0 28px}.monthly-spending-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.monthly-spending-heading h2{margin:0}.monthly-spending-badge{font-size:10px;color:var(--muted);border:1px solid var(--line);padding:5px 8px;border-radius:5px;white-space:nowrap}.monthly-spending-figure{margin:18px 0 4px}.monthly-spending-chart svg{display:block;width:100%;height:auto}.monthly-spending-card p{font-size:11px;line-height:1.8;margin:10px 0 0}@media(max-width:600px){.monthly-spending-card{padding:18px 14px}}

/* stock tracking (added 2026-11-13) */
.stock-block{margin-top:14px;border-top:1px dashed var(--line);padding-top:12px}
.stock-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.stock-label{font-size:10px;letter-spacing:.08em;color:#9bb6b6;font-weight:650}
.stock-badge{font-size:10px;color:#f2c94c;border:1px solid #756347;background:#302a21;border-radius:5px;padding:3px 7px;white-space:nowrap}
.stock-remaining{font-size:12px!important;color:#d4e5df;font-variant-numeric:tabular-nums}
.stock-bar{height:8px;border-radius:4px;background:#18262c;border:1px solid #405258;overflow:hidden;margin-top:8px}
.stock-fill{height:100%;background:#65a781}
.stock-low .stock-fill{background:#d99a3d}
.stock-history{list-style:none;margin:10px 0 0;padding:0;font-size:11px;color:var(--muted);line-height:1.8}
.stock-note{font-size:11px;color:var(--muted)}

/* filament count under spending (added 2026-11-18) */
.spending-card #filament-count{border-top:1px solid #344b4c;padding-top:12px;display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.spending-card #filament-count .filament-count-text{font-size:13px;color:#d4e5df}
.spending-card #filament-count a{font-size:12px;color:#a3d8a7;text-decoration:underline;white-space:nowrap}

/* filament management page (added 2026-11-18) */
.fil-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-bottom:30px}
.fil-summary div{border-top:1px solid var(--line);padding-top:19px}
.fil-summary small,.fil-summary span{display:block;font-size:12px;color:var(--muted)}
.fil-summary strong{display:block;font-size:32px;font-weight:450;margin:12px 0 6px;font-variant-numeric:tabular-nums}
@media(max-width:600px){.fil-summary{grid-template-columns:repeat(2,1fr);gap:12px}.fil-summary strong{font-size:24px;white-space:nowrap}}
.fil-ams-card{border:1px solid var(--line);border-radius:16px;padding:25px;background:#111e23;margin:0 0 28px}
.fil-ams-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.fil-ams-heading h2{margin:0}
.fil-ams-trays{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px}
.ams-tray{border:1px solid var(--line);border-radius:10px;padding:12px;background:#0d171c;min-width:0}
.ams-tray.ams-empty{opacity:.45}
.ams-slot{display:block;font-size:10px;letter-spacing:.08em;color:#9bb6b6;font-weight:650;margin-bottom:8px}
.ams-swatch{display:inline-block;width:14px;height:14px;border-radius:50%;border:1px solid #405258;vertical-align:-2px;margin-right:8px;background:#18262c}
.ams-name{font-size:13px;font-weight:550;color:#e0eee8}
.ams-remain{display:block;font-size:12px;color:#d4e5df;margin-top:8px;font-variant-numeric:tabular-nums}
.ams-inuse{display:inline-block;font-size:10px;color:#0d1519;background:#a3d8a7;border-radius:5px;padding:3px 7px;margin-top:8px;font-weight:650}
.fil-note{font-size:11px;line-height:1.8;margin:14px 0 0}
@media(max-width:600px){.fil-ams-card{padding:18px 14px}.fil-ams-trays{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
.fil-list-section #fil-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
@media(max-width:600px){.fil-list-section #fil-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
@media(max-width:350px){.fil-list-section #fil-list{grid-template-columns:1fr}}
.fil-back{margin:10px 0 0}
.fil-back a{color:#c8dfd6;font-size:13px}
