:root{color-scheme:light dark;--bg: #f4f6f8;--bg-elevated: #ffffff;--text: #15202b;--text-muted: #5f6b7a;--border: #d8dee6;--accent: #2f6fed;--accent-soft: rgba(47, 111, 237, .12);--checked: #1f9d63;--shadow: 0 10px 30px rgba(15, 23, 42, .08);--radius: 14px;--radius-sm: 10px;font-family:Segoe UI,system-ui,-apple-system,sans-serif;line-height:1.45}@media(prefers-color-scheme:dark){:root{--bg: #0f1419;--bg-elevated: #171d24;--text: #e7edf4;--text-muted: #9aa7b5;--border: #2a3440;--accent: #6ea1ff;--accent-soft: rgba(110, 161, 255, .16);--checked: #3ecf8e;--shadow: 0 12px 32px rgba(0, 0, 0, .35)}}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(circle at top right,var(--accent-soft),transparent 40%),var(--bg);color:var(--text)}#root{min-height:100vh}.app{width:min(1080px,100%);margin:0 auto;padding:1.25rem 1rem 2.5rem}.app__header{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;margin-bottom:1rem}.app__header-actions{display:flex;flex-direction:column;align-items:flex-end;gap:.75rem}.auth-shell{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:1.5rem}.auth-card{width:min(420px,100%);display:flex;flex-direction:column;gap:1rem;background:var(--bg-elevated);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:1.5rem}.auth-field{display:flex;flex-direction:column;gap:.35rem;font-size:.92rem}.auth-field input{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--bg);color:var(--text);padding:.6rem .75rem}.auth-error{margin:0;color:#d64545;font-size:.9rem;font-weight:600}.button--primary{background:var(--accent);border-color:var(--accent);color:#fff}.app__eyebrow{margin:0 0 .25rem;color:var(--text-muted);font-size:.85rem;letter-spacing:.04em;text-transform:uppercase}.app h1{margin:0;font-size:clamp(1.35rem,2.8vw,2rem);line-height:1.15}.app__meta{margin:.45rem 0 0;color:var(--text-muted);font-size:.95rem}.nav{display:flex;gap:.5rem;background:var(--bg-elevated);border:1px solid var(--border);border-radius:999px;padding:.25rem;box-shadow:var(--shadow)}.nav__link{color:var(--text-muted);text-decoration:none;font-weight:600;font-size:.92rem;padding:.45rem .9rem;border-radius:999px;transition:background .15s ease,color .15s ease}.nav__link.is-active{background:var(--accent-soft);color:var(--accent)}.toolbar{margin-bottom:1rem}.toggle{display:inline-flex;align-items:center;gap:.55rem;background:var(--bg-elevated);border:1px solid var(--border);border-radius:999px;padding:.55rem .9rem;box-shadow:var(--shadow);font-size:.92rem;color:var(--text)}.toggle input{width:1rem;height:1rem;accent-color:var(--accent)}.panel{background:var(--bg-elevated);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.panel__header{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1rem 1.1rem;border-bottom:1px solid var(--border)}.panel__header h2{margin:0;font-size:1.1rem}.panel__subtitle{margin:.25rem 0 0;color:var(--text-muted);font-size:.9rem}.panel__controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:.55rem;min-width:0}.search-field{display:block;min-width:min(100%,14rem);flex:1 1 12rem}.search-field__input{width:100%;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--bg);color:var(--text);padding:.45rem .7rem;font-size:.92rem}.search-field__input:focus{outline:2px solid var(--accent);outline-offset:1px;border-color:var(--accent)}.search-field__input::placeholder{color:var(--text-muted)}.panel__empty{margin:0;padding:1.25rem 1.1rem;color:var(--text-muted);font-size:.92rem;text-align:center}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.stat-pill{background:var(--accent-soft);color:var(--accent);border-radius:999px;padding:.35rem .7rem;font-size:.85rem;font-weight:600;white-space:nowrap}.button{border:1px solid var(--border);background:var(--bg);color:var(--text);border-radius:var(--radius-sm);padding:.45rem .75rem;font-weight:600;cursor:pointer}.button--ghost:hover{border-color:var(--accent);color:var(--accent)}.item-list{list-style:none;margin:0;padding:0;max-height:calc(100vh - 240px);overflow:auto}.item-list--materials{max-height:calc(100vh - 220px)}.item-row{border-bottom:1px solid var(--border);position:relative;z-index:0}.item-row:hover,.item-row:focus-within{z-index:1}.item-row:last-child{border-bottom:none}.item-row__label{display:grid;grid-template-columns:auto auto 1fr auto;align-items:center;gap:.7rem;padding:.65rem 1rem;cursor:pointer}.item-row--static{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.7rem;padding:.65rem 1rem}.item-row.is-checked .item-row__name{color:var(--text-muted);text-decoration:line-through}.item-row.is-checked .item-row__count{color:var(--checked)}.item-row__name{font-weight:500}.item-row__count{font-variant-numeric:tabular-nums;font-weight:700;color:var(--accent)}.quantity{position:relative;justify-self:end;cursor:help}.quantity__value{font-variant-numeric:tabular-nums;font-weight:700;color:var(--accent)}.quantity__tooltip{position:absolute;right:0;top:calc(100% + .45rem);z-index:20;min-width:12rem;padding:.45rem .6rem;border-radius:8px;border:1px solid var(--border);background:var(--bg-elevated);color:var(--text);box-shadow:var(--shadow);font-size:.78rem;font-weight:600;line-height:1.35;white-space:nowrap;opacity:0;visibility:hidden;transform:translateY(-4px);transition:opacity .15s ease,transform .15s ease,visibility .15s ease;pointer-events:none}.quantity__tooltip--multiline{white-space:normal;min-width:14rem;max-width:min(20rem,90vw)}.quantity__tooltip-line{display:block}.quantity__tooltip-line+.quantity__tooltip-line{margin-top:.35rem;padding-top:.35rem;border-top:1px solid var(--border)}.quantity:hover .quantity__tooltip,.quantity:focus-visible .quantity__tooltip{opacity:1;visibility:visible;transform:translateY(0)}.quantity:focus{outline:none}.quantity:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:6px}.item-icon{width:28px;height:28px;image-rendering:pixelated;border-radius:6px;background:#7f7f7f1f}.item-icon--fallback{display:inline-flex;align-items:center;justify-content:center;font-size:.8rem;font-weight:700;color:var(--text-muted)}@media(max-width:720px){.app__header{flex-direction:column}.app__header-actions{width:100%;align-items:stretch}.nav{width:100%;justify-content:center}.panel__header{flex-direction:column;align-items:flex-start}.panel__controls{width:100%;justify-content:stretch}.panel__controls .button{width:100%}.item-list,.item-list--materials{max-height:none}}
