.view-toggle{border:1px solid var(--border-strong);border-radius:var(--radius-xs);background:var(--surface);flex:none;display:inline-flex;overflow:hidden}.view-toggle-btn{width:38px;min-height:36px;color:var(--text-muted);background:0 0;border:0;border-radius:0;place-items:center;padding:0;display:grid}.view-toggle-btn+.view-toggle-btn{border-left:1px solid var(--border)}.view-toggle-btn svg{width:18px;height:18px}.view-toggle-btn:hover{background:var(--surface-2);color:var(--text)}.view-toggle-btn[aria-pressed=true]{background:var(--primary-soft);color:var(--primary)}.view-toggle-btn:focus-visible{outline:2px solid var(--primary);outline-offset:-2px}.item-table-wrap{max-height:calc(100dvh - var(--appbar-h) - var(--sat) - 40px);background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);min-height:200px;box-shadow:var(--shadow);overflow:auto}.item-table{border-collapse:separate;border-spacing:0;font-variant-numeric:tabular-nums;width:100%;min-width:1000px;font-size:.875rem;line-height:1.3}.item-table thead th{z-index:2;text-align:left;vertical-align:middle;white-space:nowrap;letter-spacing:.04em;text-transform:uppercase;height:38px;color:var(--text-muted);background:var(--surface);border-bottom:1px solid var(--border-strong);padding:0 12px;font-size:12px;font-weight:600;position:sticky;top:0}.item-table th.num,.item-table td.num{text-align:right}.item-table tbody td{vertical-align:middle;white-space:nowrap;border-bottom:1px solid var(--border);height:44px;padding:4px 12px}.item-table tbody tr:last-child>td{border-bottom:0}.item-table tbody tr{cursor:pointer}@media (hover:hover){.item-table tbody tr:hover>td{background:var(--surface-2)}}.item-table tbody tr:focus-visible{outline:2px solid var(--primary);outline-offset:-2px}.item-table tbody tr:focus-visible>td{background:var(--primary-soft)}.item-table tbody tr.draft>td:first-child{border-left:3px dashed color-mix(in srgb, var(--warn) 60%, transparent);padding-left:9px}.item-table .it-col-thumb{width:36px}.item-table tbody td.it-col-thumb{padding:4px 0 4px 12px}.it-thumb{background:var(--surface-2);width:36px;height:36px;color:var(--text-faint);border-radius:8px;place-items:center;display:grid;overflow:hidden}.it-thumb img{object-fit:cover;width:100%;height:100%}.it-thumb svg{opacity:.7;width:18px;height:18px}.item-table .it-col-sku{width:104px}.it-sku{letter-spacing:.02em;font-size:.8rem}.item-table .it-col-name{white-space:normal;min-width:220px}.it-name{text-overflow:ellipsis;white-space:nowrap;max-width:420px;color:var(--text);font-weight:600;text-decoration:none;display:block;overflow:hidden}.it-name.empty{color:var(--text-faint);font-weight:500}.it-desc{text-overflow:ellipsis;white-space:nowrap;max-width:420px;color:var(--text-muted);margin-top:1px;font-size:.75rem;overflow:hidden}.item-table .it-col-cat{width:150px}.item-table .it-col-cat .chip{max-width:150px}.it-hint{text-overflow:ellipsis;white-space:nowrap;max-width:150px;color:var(--warn);margin-top:2px;font-size:.7rem;overflow:hidden}.item-table .it-col-bin{width:80px}.item-table .it-col-fn{width:140px}.item-table .it-col-qty{width:84px}.it-qty{font-weight:600}.it-unit{color:var(--text-muted);margin-left:4px;font-size:.78rem}.item-table .it-col-ref{width:120px}.it-ref{vertical-align:bottom;text-overflow:ellipsis;white-space:nowrap;max-width:120px;font-size:.8rem;display:inline-block;overflow:hidden}.item-table .it-col-ai{width:170px}.it-ai{align-items:center;gap:6px;display:inline-flex}.item-table .it-col-updated{width:120px;color:var(--text-muted);font-size:.8rem}.it-dash{color:var(--text-faint)}:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#f3f4f6;--surface:#fff;--surface-2:#eef0f3;--surface-3:#e3e6ea;--text:#15171c;--text-muted:#6b7280;--text-faint:#9aa1ab;--border:#e2e5e9;--border-strong:#cfd4da;--primary:#0f766e;--primary-hover:#0b5f59;--primary-soft:#d9f0ec;--primary-contrast:#fff;--danger:#dc2626;--danger-soft:#fee2e2;--ok:#15803d;--ok-soft:#dcfce7;--info:#2563eb;--info-soft:#dbeafe;--warn:#b45309;--warn-soft:#fef3c7;--grey:#6b7280;--grey-soft:#e5e7eb;--radius:14px;--radius-sm:9px;--radius-xs:6px;--shadow:0 1px 2px #1018280d, 0 6px 20px #1018280f;--shadow-lg:0 20px 60px #10182840;--appbar-h:52px;--tabbar-h:62px;--sat:env(safe-area-inset-top,0px);--sab:env(safe-area-inset-bottom,0px);--sal:env(safe-area-inset-left,0px);--sar:env(safe-area-inset-right,0px);--font:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Thai", "Sarabun", "Helvetica Neue", Arial, sans-serif;--mono:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#0f1216;--surface:#171b21;--surface-2:#1f242b;--surface-3:#2a3038;--text:#e9ecf1;--text-muted:#9aa3b0;--text-faint:#6c7581;--border:#262c34;--border-strong:#363e48;--primary:#2dd4bf;--primary-hover:#5eead4;--primary-soft:#2dd4bf29;--primary-contrast:#06201d;--danger:#f87171;--danger-soft:#f8717129;--ok:#4ade80;--ok-soft:#4ade8029;--info:#60a5fa;--info-soft:#60a5fa2e;--warn:#fbbf24;--warn-soft:#fbbf2429;--grey:#9aa3b0;--grey-soft:#9aa3b02e;--shadow:0 1px 2px #0006, 0 6px 20px #00000059}}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{font-family:var(--font);color:var(--text);background:var(--bg);-webkit-tap-highlight-color:transparent;overscroll-behavior-y:none;margin:0;font-size:15px;line-height:1.45}h1,h2,h3,h4{letter-spacing:-.01em;margin:0;font-weight:650}h1{font-size:1.35rem}h2{font-size:1.1rem}h3{font-size:1rem}p{margin:0}a{color:var(--primary);text-decoration:none}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}img,video{max-width:100%;display:block}[hidden]{display:none!important}.sr-only{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.muted{color:var(--text-muted)}.faint{color:var(--text-faint)}.small{font-size:.85rem}.mono{font-family:var(--mono);font-size:.85em}.nowrap{white-space:nowrap}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.row{align-items:center;gap:8px;display:flex}.row.wrap{flex-wrap:wrap}.row.between{justify-content:space-between}.col{flex-direction:column;gap:8px;display:flex}.grow{flex:auto;min-width:0}.stack>*+*,.mt{margin-top:12px}.mt-lg{margin-top:20px}.center{text-align:center}.app{flex-direction:column;min-height:100dvh;display:flex}.appbar{z-index:30;padding-top:var(--sat);background:color-mix(in srgb, var(--surface) 88%, transparent);-webkit-backdrop-filter:saturate(160%)blur(14px);border-bottom:1px solid var(--border);position:sticky;top:0}.appbar-inner{height:var(--appbar-h);padding:0 calc(14px + var(--sar)) 0 calc(14px + var(--sal));align-items:center;gap:12px;max-width:1100px;margin:0 auto;display:flex}.brand{letter-spacing:.04em;white-space:nowrap;flex:none;align-items:center;gap:9px;font-size:.92rem;font-weight:750;display:flex}.brand-mark{background:var(--primary);width:26px;height:26px;color:var(--primary-contrast);border-radius:8px;flex:none;place-items:center;display:grid}.brand-mark svg{width:17px;height:17px}.appbar-title{color:var(--text-muted);white-space:nowrap;text-overflow:ellipsis;min-width:0;font-size:.95rem;font-weight:600;overflow:hidden}.appbar-title:before{content:"/";color:var(--text-faint);margin:0 8px 0 0}.appbar-user{color:var(--text-muted);white-space:nowrap;flex:none;align-items:center;gap:8px;margin-left:auto;font-size:.85rem;display:flex}.avatar{background:var(--primary-soft);width:28px;height:28px;color:var(--primary);border-radius:50%;place-items:center;font-size:.8rem;font-weight:700;display:grid}.appbar nav.tabs-desktop{display:none}.page{width:100%;max-width:1100px;padding:14px calc(14px + var(--sar)) calc(var(--tabbar-h) + var(--sab) + 24px) calc(14px + var(--sal));flex:1;margin:0 auto}.page-center{place-items:center;min-height:100dvh;padding:20px;display:grid}.tabbar{z-index:30;padding-bottom:var(--sab);background:color-mix(in srgb, var(--surface) 92%, transparent);-webkit-backdrop-filter:saturate(160%)blur(14px);border-top:1px solid var(--border);position:fixed;bottom:0;left:0;right:0}.tabbar-inner{height:var(--tabbar-h);max-width:640px;margin:0 auto;display:flex}.tab{color:var(--text-muted);background:0 0;border:0;border-radius:10px;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:3px;min-width:0;padding:6px 2px;font-size:.72rem;font-weight:550;display:flex}.tab svg{width:24px;height:24px}.tab.active{color:var(--primary)}.tab.active svg{filter:drop-shadow(0 2px 6px color-mix(in srgb, var(--primary) 35%, transparent))}.tab:active{background:var(--surface-2)}@media (min-width:768px){.tabbar{display:none}.page{padding:22px 24px 48px}.appbar nav.tabs-desktop{gap:2px;margin-left:16px;display:flex}.tabs-desktop .tab{flex-direction:row;gap:7px;padding:7px 12px;font-size:.9rem}.tabs-desktop .tab svg{width:18px;height:18px}.tabs-desktop .tab.active{background:var(--primary-soft)}.tabs-desktop .tab:hover{background:var(--surface-2)}}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:14px}.card.flat{box-shadow:none}.card.pad-0{padding:0;overflow:hidden}.card-title{justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px;display:flex}.card-title h2{font-size:1rem}.section-title{letter-spacing:.08em;text-transform:uppercase;color:var(--text-muted);margin:18px 0 8px;font-size:.78rem;font-weight:700}.btn{border-radius:var(--radius-sm);border:1px solid var(--border-strong);background:var(--surface);min-height:44px;color:var(--text);-webkit-user-select:none;user-select:none;justify-content:center;align-items:center;gap:8px;padding:0 16px;font-size:.95rem;font-weight:600;text-decoration:none;transition:background .15s,transform 50ms,border-color .15s;display:inline-flex}.btn:hover{background:var(--surface-2)}.btn:active{transform:scale(.98)}.btn:disabled{opacity:.55;cursor:not-allowed;transform:none}.btn svg{flex:none;width:20px;height:20px}.btn.primary{background:var(--primary);border-color:var(--primary);color:var(--primary-contrast)}.btn.primary:hover{background:var(--primary-hover);border-color:var(--primary-hover)}.btn.danger{color:var(--danger);border-color:color-mix(in srgb, var(--danger) 40%, transparent);background:var(--surface)}.btn.danger:hover{background:var(--danger-soft)}.btn.danger.solid{background:var(--danger);color:#fff;border-color:var(--danger)}.btn.ghost{background:0 0;border-color:#0000}.btn.ghost:hover{background:var(--surface-2)}.btn.soft{background:var(--primary-soft);color:var(--primary);border-color:#0000}.btn.sm{border-radius:var(--radius-xs);min-height:34px;padding:0 12px;font-size:.85rem}.btn.sm svg{width:16px;height:16px}.btn.xs{border-radius:var(--radius-xs);min-height:28px;padding:0 9px;font-size:.78rem}.btn.block{width:100%}.btn.big{border-radius:var(--radius);min-height:64px;font-size:1.1rem}.btn.big svg{width:28px;height:28px}.btn.icon{width:40px;min-height:40px;padding:0}.btn.icon.sm{width:34px;min-height:34px}.btn-row{flex-wrap:wrap;gap:8px;display:flex}.btn-row>.btn{flex:auto}.field{flex-direction:column;gap:5px;min-width:0;display:flex}.field>label,.field-label{color:var(--text-muted);font-size:.8rem;font-weight:600}.field-hint{color:var(--text-faint);font-size:.78rem}.input,.select,.textarea{border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface);width:100%;min-height:44px;color:var(--text);appearance:none;outline:none;padding:9px 12px;transition:border-color .15s,box-shadow .15s}.input:focus,.select:focus,.textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-soft)}.input::placeholder,.textarea::placeholder{color:var(--text-faint)}.input.sm,.select.sm{min-height:38px;padding:6px 10px;font-size:.9rem}.textarea{resize:vertical;min-height:88px;line-height:1.45}.select{background-image:linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);background-position:calc(100% - 17px),calc(100% - 12px);background-repeat:no-repeat;background-size:5px 5px,5px 5px;padding-right:34px}.form-grid{grid-template-columns:1fr;gap:12px;display:grid}.form-grid .span-2{grid-column:1/-1}@media (min-width:560px){.form-grid{grid-template-columns:1fr 1fr}}input[type=color].color-input{border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface);width:44px;height:44px;padding:3px}.checkbox{cursor:pointer;align-items:center;gap:8px;min-height:40px;font-size:.92rem;display:inline-flex}.checkbox input{width:20px;height:20px;accent-color:var(--primary);margin:0}.switch{background:var(--surface-3);border:0;border-radius:13px;flex:none;width:44px;height:26px;padding:0;transition:background .15s;position:relative}.switch:after{content:"";background:#fff;border-radius:50%;width:20px;height:20px;transition:transform .15s;position:absolute;top:3px;left:3px;box-shadow:0 1px 3px #0000004d}.switch[aria-checked=true]{background:var(--primary)}.switch[aria-checked=true]:after{transform:translate(18px)}.form-error{color:var(--danger);background:var(--danger-soft);border-radius:var(--radius-sm);padding:10px 12px;font-size:.9rem}.form-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:8px;display:flex}.chip{background:var(--grey-soft);color:var(--text);white-space:nowrap;text-overflow:ellipsis;border:1px solid #0000;border-radius:999px;align-items:center;gap:6px;max-width:100%;padding:3px 10px 3px 8px;font-size:.78rem;font-weight:600;line-height:1.4;display:inline-flex;overflow:hidden}.chip-dot{background:currentColor;border-radius:50%;flex:none;width:8px;height:8px}.chip.cat{--c:var(--grey);background:color-mix(in srgb, var(--c) 16%, var(--surface));border-color:color-mix(in srgb, var(--c) 35%, transparent)}.chip.cat .chip-dot{background:var(--c)}.chip.none{color:var(--text-muted);border-style:dashed;border-color:var(--border-strong);background:0 0}.chip.sm{padding:2px 8px 2px 7px;font-size:.72rem}.filter-chip{border:1px solid var(--border-strong);background:var(--surface);min-height:36px;color:var(--text);white-space:nowrap;border-radius:999px;flex:none;align-items:center;gap:6px;padding:0 13px;font-size:.86rem;font-weight:600;display:inline-flex}.filter-chip .count{color:var(--text-muted);background:var(--surface-2);text-align:center;border-radius:999px;min-width:20px;padding:0 7px;font-size:.75rem}.filter-chip.active{background:var(--text);color:var(--bg);border-color:var(--text)}.filter-chip.active .count{color:inherit;background:#ffffff2e}.filter-chip .chip-dot{width:9px;height:9px}.chips-scroll{scrollbar-width:none;-webkit-overflow-scrolling:touch;gap:8px;padding:2px 0 6px;display:flex;overflow-x:auto}.chips-scroll::-webkit-scrollbar{display:none}.badge{letter-spacing:.01em;white-space:nowrap;background:var(--grey-soft);color:var(--grey);border-radius:6px;align-items:center;gap:5px;padding:2px 8px;font-size:.74rem;font-weight:700;display:inline-flex}.badge .badge-dot{background:currentColor;border-radius:50%;width:7px;height:7px}.badge.pending{background:var(--grey-soft);color:var(--grey)}.badge.processing{background:var(--info-soft);color:var(--info)}.badge.processing .badge-dot{animation:1.1s ease-in-out infinite pulse}.badge.done{background:var(--ok-soft);color:var(--ok)}.badge.failed{background:var(--danger-soft);color:var(--danger)}.badge.skipped{background:var(--surface-3);color:var(--text-muted)}.badge.uploading{background:var(--warn-soft);color:var(--warn)}.badge.uploading .badge-dot{animation:1.1s ease-in-out infinite pulse}.badge.error{background:var(--danger-soft);color:var(--danger)}.badge.conf{background:var(--surface-2);color:var(--text-muted);font-family:var(--mono);font-weight:600}@keyframes pulse{0%,to{opacity:1}50%{opacity:.35}}.item-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}@media (min-width:560px){.item-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}}@media (min-width:900px){.item-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width:1200px){.item-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}.item-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);color:inherit;flex-direction:column;text-decoration:none;transition:transform .1s,box-shadow .15s;display:flex;overflow:hidden}.item-card:active{transform:scale(.985)}@media (hover:hover){.item-card:hover{box-shadow:0 8px 28px #1018281f}}.thumb{aspect-ratio:1;background:var(--surface-2);color:var(--text-faint);place-items:center;display:grid;position:relative;overflow:hidden}.thumb img{object-fit:cover;width:100%;height:100%}.thumb svg{opacity:.6;width:34px;height:34px}.thumb .badge{position:absolute;top:8px;left:8px}.thumb .media-count{color:#fff;background:#0000008c;border-radius:999px;padding:1px 7px;font-size:.7rem;position:absolute;bottom:8px;right:8px}.item-card-body{flex-direction:column;gap:6px;min-width:0;padding:10px 11px 11px;display:flex}.item-name{-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;font-size:.95rem;font-weight:650;line-height:1.3;display:-webkit-box;overflow:hidden}.item-name.empty{color:var(--text-faint);font-weight:500}.item-meta{color:var(--text-muted);flex-wrap:wrap;align-items:center;gap:6px;font-size:.78rem;display:flex}.ai-hint{color:var(--warn);background:var(--warn-soft);-webkit-line-clamp:2;line-clamp:2;border-radius:6px;-webkit-box-orient:vertical;padding:3px 7px;font-size:.75rem;display:-webkit-box;overflow:hidden}.queue-row{border-top:1px solid var(--border);color:inherit;background:var(--surface);grid-template-columns:64px 1fr auto;align-items:center;gap:12px;padding:10px 12px;text-decoration:none;display:grid}.queue-row:first-child{border-top:0}.queue-row:active{background:var(--surface-2)}.queue-row .thumb{border-radius:var(--radius-sm);width:64px}.queue-main{flex-direction:column;gap:4px;min-width:0;display:flex}.queue-title{-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;font-weight:600;line-height:1.3;display:-webkit-box;overflow:hidden}.queue-side{flex-direction:column;align-items:flex-end;gap:6px;display:flex}.gallery{-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;gap:10px;padding:2px 0 8px;display:flex;overflow-x:auto}.gallery-item{border-radius:var(--radius-sm);background:var(--surface-2);scroll-snap-align:start;border:1px solid var(--border);flex:none;width:150px;height:150px;position:relative;overflow:hidden}.gallery-item img,.gallery-item video{object-fit:cover;width:100%;height:100%}.gallery-item video{background:#000}.gallery-item .kind{color:#fff;background:#0000008c;border-radius:999px;padding:1px 7px;font-size:.68rem;position:absolute;top:6px;left:6px}.gallery-item .del{color:#fff;background:#0009;border:0;border-radius:50%;place-items:center;width:28px;height:28px;display:grid;position:absolute;top:6px;right:6px}.gallery-item .del svg{width:14px;height:14px}.gallery-item button.open{background:0 0;border:0;width:100%;height:100%;padding:0;position:absolute;inset:0}.gallery-add{border-radius:var(--radius-sm);border:2px dashed var(--border-strong);width:150px;height:150px;color:var(--text-muted);background:0 0;flex-direction:column;flex:none;justify-content:center;align-items:center;gap:6px;font-size:.85rem;font-weight:600;display:flex}.gallery-add svg{width:26px;height:26px}@media (min-width:768px){.gallery-item,.gallery-add{width:190px;height:190px}}.lightbox{z-index:60;background:#000000eb;place-items:center;padding:10px;display:grid;position:fixed;inset:0}.lightbox img{object-fit:contain;max-width:100%;max-height:100dvh}.lightbox .close{top:calc(10px + var(--sat));color:#fff;background:#ffffff26;border:0;border-radius:50%;place-items:center;width:44px;height:44px;display:grid;position:absolute;right:12px}.lightbox .close svg{width:22px;height:22px}.tag-list{flex-wrap:wrap;gap:6px;display:flex}.tag{background:var(--surface-2);border-radius:999px;align-items:center;gap:4px;padding:4px 6px 4px 10px;font-size:.82rem;display:inline-flex}.tag button{background:var(--surface-3);width:20px;height:20px;color:var(--text-muted);border:0;border-radius:50%;place-items:center;padding:0;display:grid}.tag button svg{width:11px;height:11px}.attr-row{grid-template-columns:1fr 1.6fr auto;align-items:center;gap:8px;display:grid}.attr-row .key{color:var(--text-muted);padding-left:2px;font-size:.85rem;font-weight:600}.kv{grid-template-columns:auto 1fr;gap:4px 12px;font-size:.9rem;display:grid}.kv dt{color:var(--text-muted)}.kv dd{margin:0}.list{flex-direction:column;display:flex}.list-row{border-top:1px solid var(--border);align-items:center;gap:12px;padding:12px 14px;display:flex}.list-row:first-child{border-top:0}.color-dot{border-radius:50%;flex:none;width:14px;height:14px;box-shadow:inset 0 0 0 1px #0000001f}.color-dot.lg{width:22px;height:22px}.modal-backdrop{z-index:50;background:#0a0c108c;justify-content:center;align-items:flex-end;padding:0;animation:.15s ease-out fade;display:flex;position:fixed;inset:0}.modal{background:var(--surface);width:100%;max-width:560px;max-height:calc(100dvh - 40px);box-shadow:var(--shadow-lg);padding-bottom:var(--sab);border-radius:18px 18px 0 0;flex-direction:column;animation:.2s ease-out sheet;display:flex}.modal-head{justify-content:space-between;align-items:center;gap:10px;padding:14px 16px 6px;display:flex}.modal-body{padding:8px 16px 16px;overflow-y:auto}.modal.sm{max-width:400px}@media (min-width:560px){.modal-backdrop{align-items:center;padding:20px}.modal{border-radius:16px;padding-bottom:0}}@keyframes fade{0%{opacity:0}to{opacity:1}}@keyframes sheet{0%{opacity:.6;transform:translateY(24px)}to{opacity:1;transform:none}}.toast-host{left:0;right:0;bottom:calc(var(--tabbar-h) + var(--sab) + 12px);z-index:70;pointer-events:none;flex-direction:column;align-items:center;gap:8px;padding:0 14px;display:flex;position:fixed}@media (min-width:768px){.toast-host{bottom:24px}}.toast{pointer-events:auto;background:var(--text);width:100%;max-width:480px;color:var(--bg);box-shadow:var(--shadow-lg);border-radius:12px;align-items:center;gap:10px;padding:11px 14px;font-size:.9rem;animation:.2s ease-out sheet;display:flex}.toast.error{background:var(--danger);color:#fff}.toast.success{background:var(--ok);color:#fff}.toast.warn{background:var(--warn);color:#fff}.spinner{border:2.5px solid var(--surface-3);border-top-color:var(--primary);border-radius:50%;flex:none;width:22px;height:22px;animation:.7s linear infinite spin}.spinner.sm{border-width:2px;width:16px;height:16px}.spinner.lg{border-width:3px;width:34px;height:34px}@keyframes spin{to{transform:rotate(360deg)}}.empty{text-align:center;color:var(--text-muted);flex-direction:column;align-items:center;gap:8px;padding:36px 16px;display:flex}.empty svg{opacity:.4;width:42px;height:42px}.empty .title{color:var(--text);font-weight:600}.capture-hero{gap:10px;display:grid}.capture-hero .btn.big{box-shadow:0 8px 24px color-mix(in srgb, var(--primary) 30%, transparent)}.capture-secondary{grid-template-columns:1fr 1fr;gap:10px;display:grid}.capture-form{top:calc(var(--appbar-h) + var(--sat) + 8px);z-index:5;position:sticky}@media (min-width:768px){.capture-layout{grid-template-columns:360px 1fr;align-items:start;gap:20px;display:grid}.capture-form{top:calc(var(--appbar-h) + 22px)}}.login-card{width:100%;max-width:380px}.login-logo{flex-direction:column;align-items:center;gap:10px;margin-bottom:22px;display:flex}.login-logo .brand-mark{border-radius:16px;width:56px;height:56px}.login-logo .brand-mark svg{width:34px;height:34px}.detail-grid{grid-template-columns:1fr;gap:14px;display:grid}@media (min-width:900px){.detail-grid{grid-template-columns:1.3fr 1fr;align-items:start}}details.raw summary{cursor:pointer;color:var(--text-muted);padding:6px 0;font-size:.88rem;font-weight:600}pre.json{background:var(--surface-2);border-radius:var(--radius-sm);max-height:320px;font-size:.75rem;font-family:var(--mono);margin:8px 0 0;padding:10px;overflow-x:auto}.advice{background:var(--primary-soft);color:var(--text);border-radius:var(--radius-sm);padding:10px 12px;font-size:.9rem}.suggest-box{border:1px dashed var(--warn);background:var(--warn-soft);border-radius:var(--radius-sm);flex-direction:column;gap:8px;padding:10px 12px;display:flex}.proposal{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);cursor:pointer;grid-template-columns:auto 1fr;gap:12px;padding:12px;display:grid}.proposal.checked{border-color:var(--primary);background:color-mix(in srgb, var(--primary-soft) 55%, var(--surface))}.proposal input{width:22px;height:22px;accent-color:var(--primary);margin-top:2px}.summary-box{background:var(--surface-2);border-radius:var(--radius-sm);white-space:pre-wrap;padding:12px;font-size:.92rem}.role-pill{background:var(--surface-2);color:var(--text-muted);border-radius:6px;padding:2px 8px;font-size:.72rem;font-weight:700}.role-pill.admin{background:var(--info-soft);color:var(--info)}.disabled-row{opacity:.55}.camera-sheet{z-index:90;color:#fff;overscroll-behavior:contain;background:#000;flex-direction:column;display:flex;position:fixed;inset:0}.camera-video{object-fit:cover;background:#000;width:100%;height:100%;position:absolute;inset:0}.camera-video.mirror{transform:scaleX(-1)}.camera-flash{opacity:.85;pointer-events:none;background:#fff;animation:.12s ease-out reverse fade;position:absolute;inset:0}.camera-top{padding:calc(10px + var(--sat)) 12px 10px;background:linear-gradient(#0000008c,#0000);justify-content:space-between;align-items:center;gap:8px;display:flex;position:relative}.camera-icon-btn{color:#fff;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#ffffff29;border:0;border-radius:50%;place-items:center;width:44px;height:44px;display:grid}.camera-icon-btn svg{width:22px;height:22px}.camera-icon-btn.placeholder{background:0 0}.camera-status{text-align:center;text-shadow:0 1px 2px #0009;flex:1;font-size:.9rem;font-weight:600}.camera-status .muted-light{color:#ffffffbf;font-weight:500}.camera-rec{font-variant-numeric:tabular-nums;background:#dc2626d9;border-radius:999px;align-items:center;gap:6px;padding:4px 10px;display:inline-flex}.camera-rec .dot{background:#fff;border-radius:50%;width:8px;height:8px;animation:1s ease-in-out infinite pulse}.camera-error{border-radius:var(--radius);text-align:center;background:#141418eb;gap:12px;padding:18px;display:grid;position:absolute;top:50%;left:16px;right:16px;transform:translateY(-50%)}.camera-error p{margin:0;line-height:1.5}.camera-bottom{padding:12px 16px calc(18px + var(--sab));background:linear-gradient(#0000,#000000a6);gap:14px;margin-top:auto;display:grid;position:relative}.camera-batch{color:#111;background:#ffffffeb;border-color:#0000;justify-self:center}.camera-modes{justify-content:center;gap:6px;display:flex}.camera-modes button{color:#fffc;background:#ffffff24;border:0;border-radius:999px;align-items:center;gap:6px;padding:8px 16px;font-size:.9rem;font-weight:600;display:inline-flex}.camera-modes button svg{width:18px;height:18px}.camera-modes button.on{color:#111;background:#fff}.camera-modes button:disabled{opacity:.5}.camera-controls{grid-template-columns:1fr auto 1fr;align-items:center;display:grid}.camera-side{color:#fff;background:0 0;border:0;flex-direction:column;justify-self:center;align-items:center;gap:2px;min-width:64px;font-size:.8rem;font-weight:600;display:inline-flex}.camera-side svg{width:26px;height:26px}.camera-done{border-radius:12px;padding:6px 10px}.camera-shutter{background:0 0;border:5px solid #fff;border-radius:50%;place-items:center;width:78px;height:78px;padding:0;transition:transform 80ms;display:grid}.camera-shutter:active{transform:scale(.94)}.camera-shutter .inner{background:#fff;border-radius:50%;width:62px;height:62px;transition:all .15s}.camera-shutter.video .inner{background:#dc2626}.camera-shutter.recording .inner{background:#dc2626;border-radius:8px;width:30px;height:30px}.camera-shutter:disabled{opacity:.4}.camera-fallback{color:#fff;background:#ffffff24;border:0;border-radius:999px;justify-self:center;padding:8px 14px;font-size:.85rem;text-decoration:underline}.fn-badge{background:var(--surface-2);color:var(--text-muted);white-space:nowrap;border:1px solid #0000;border-radius:6px;align-items:center;gap:4px;padding:2px 8px;font-size:.76rem;font-weight:600;line-height:1.5;display:inline-flex}.fn-badge.sm{padding:1px 6px;font-size:.7rem}.fn-compute{color:#5b21b6;background:#ede9fe}.fn-communication{color:#1d4ed8;background:#dbeafe}.fn-power{color:#c2410c;background:#ffedd5}.fn-sensor{color:#15803d;background:#dcfce7}.fn-output{color:#be185d;background:#fce7f3}.fn-storage{color:#0369a1;background:#e0f2fe}.fn-passive{color:#475569;background:#f1f5f9}.fn-mechanical{color:#b45309;background:#fef3c7}.fn-tool{color:#a16207;background:#fef9c3}.fn-other{background:var(--surface-2);color:var(--text-muted)}@media (prefers-color-scheme:dark){:root:not([data-theme=light]) .fn-compute{color:#ddd6fe;background:#3b2a6e}:root:not([data-theme=light]) .fn-communication{color:#bfdbfe;background:#1e3a8a}:root:not([data-theme=light]) .fn-power{color:#fed7aa;background:#7c2d12}:root:not([data-theme=light]) .fn-sensor{color:#bbf7d0;background:#14532d}:root:not([data-theme=light]) .fn-output{color:#fbcfe8;background:#831843}:root:not([data-theme=light]) .fn-storage{color:#bae6fd;background:#0c4a6e}:root:not([data-theme=light]) .fn-passive{color:#e2e8f0;background:#334155}:root:not([data-theme=light]) .fn-mechanical{color:#fde68a;background:#78350f}:root:not([data-theme=light]) .fn-tool{color:#fef08a;background:#713f12}}.mode-toggle{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;padding:4px 2px 0;display:flex}.hide-narrow{display:none}@media (min-width:480px){.hide-narrow{display:inline}}.spin{animation:.8s linear infinite spin}.photo-strip{-webkit-overflow-scrolling:touch;scrollbar-width:none;gap:8px;padding:2px 0 6px;display:flex;overflow-x:auto}.photo-strip::-webkit-scrollbar{display:none}.photo-strip-item{border-radius:var(--radius-sm);background:var(--surface-2);border:1px solid var(--border);width:92px;height:92px;color:var(--text-faint);flex:none;place-items:center;display:grid;position:relative;overflow:hidden}.photo-strip-item img{object-fit:cover;width:100%;height:100%}.photo-strip-item svg{width:28px;height:28px}.photo-strip-item .kind{color:#fff;background:#0000008c;border-radius:999px;padding:1px 6px;font-size:.65rem;position:absolute;bottom:5px;left:5px}.photo-strip-item .del{color:#fff;background:#0000009e;border:0;border-radius:50%;place-items:center;width:26px;height:26px;padding:0;display:grid;position:absolute;top:4px;right:4px}.photo-strip-item .del svg{width:13px;height:13px}.photo-strip-add{border-radius:var(--radius-sm);border:2px dashed var(--border-strong);width:92px;height:92px;color:var(--text-muted);background:0 0;flex:none;place-items:center;display:grid}.photo-strip-add svg{width:26px;height:26px}@media (min-width:768px){.photo-strip-item,.photo-strip-add{width:110px;height:110px}}.progress-card{border-radius:var(--radius-sm);background:var(--primary-soft);border:1px solid color-mix(in srgb, var(--primary) 30%, transparent);align-items:center;gap:14px;margin-top:12px;padding:14px;display:flex}.progress-title{font-weight:650}.badge.draft{background:var(--warn-soft);color:var(--warn)}.item-card.draft{border-style:dashed;border-color:color-mix(in srgb, var(--warn) 50%, var(--border))}.item-meta .sku{color:var(--text);font-weight:700}.filter-chip.mono{font-family:var(--mono);letter-spacing:.02em}.filter-chip.draft{border-color:color-mix(in srgb, var(--warn) 55%, transparent);color:var(--warn)}.filter-chip.draft.active{background:var(--warn);border-color:var(--warn);color:#fff}.draft-banner{border-radius:var(--radius-sm);background:var(--warn-soft);border:1px dashed var(--warn);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;padding:10px 14px;display:flex}.chip.mono-chip{font-family:var(--mono);letter-spacing:.03em;background:var(--surface-2);border-color:var(--border-strong);color:var(--text);text-decoration:none}.mono-input{font-family:var(--mono);letter-spacing:.04em;text-transform:uppercase}.mono-input-wrap input{font-family:var(--mono);letter-spacing:.04em}.input.invalid{border-color:var(--danger);box-shadow:0 0 0 3px var(--danger-soft)}.field-error{color:var(--danger);font-size:.8rem;font-weight:600}.detail-ids{gap:10px}.sku-big{letter-spacing:.04em;font-size:1.15rem;font-weight:700}.review-page{padding-bottom:84px}.ai-card .ai-name{letter-spacing:-.01em;font-size:1.35rem;font-weight:700;line-height:1.25}.gallery-add-col{flex-direction:column;flex:none;align-items:center;gap:6px;display:flex}.gallery-add-col .gallery-add{height:112px}@media (min-width:768px){.gallery-add-col .gallery-add{height:150px}}.sticky-bar{left:0;right:0;bottom:calc(var(--tabbar-h) + var(--sab));z-index:25;padding:10px calc(12px + var(--sar)) 10px calc(12px + var(--sal));background:color-mix(in srgb, var(--surface) 92%, transparent);-webkit-backdrop-filter:saturate(160%)blur(14px);border-top:1px solid var(--border);position:fixed}.sticky-bar-inner{gap:8px;max-width:1100px;margin:0 auto;display:flex}.sticky-bar-inner .btn.grow{flex:auto}@media (min-width:768px){.sticky-bar{padding:12px 24px calc(12px + var(--sab));bottom:0}.review-page{padding-bottom:60px}}.chip-select{flex-wrap:wrap;gap:6px;display:flex}.chip-select .filter-chip{min-height:32px;padding:0 11px;font-size:.82rem}.chip-select .filter-chip.active{background:var(--primary);border-color:var(--primary);color:var(--primary-contrast)}.chip-select .filter-chip .chip-dot{width:8px;height:8px}.bin-photo-pick{align-items:flex-start;gap:12px;display:flex}.bin-photo-preview{border-radius:var(--radius-sm);background:var(--surface-2);border:1px solid var(--border);width:108px;height:108px;color:var(--text-faint);flex:none;place-items:center;display:grid;overflow:hidden}.bin-photo-preview img{object-fit:cover;width:100%;height:100%}.bin-photo-preview svg{opacity:.6;width:38px;height:38px}.analysis-note{color:var(--primary);flex-direction:column;gap:4px;display:flex}.menu-pop{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);min-width:150px;box-shadow:var(--shadow-lg);z-index:10;flex-direction:column;padding:4px;animation:.12s ease-out fade;display:flex;position:absolute;top:38px;right:0}.menu-pop button{border-radius:var(--radius-xs);text-align:left;color:var(--text);background:0 0;border:0;align-items:center;gap:8px;padding:10px 12px;font-size:.9rem;font-weight:600;display:flex}.menu-pop button:hover{background:var(--surface-2)}.menu-pop button.danger{color:var(--danger)}.menu-pop button svg{width:17px;height:17px}.camera-strip{scrollbar-width:none;gap:8px;padding:4px 2px;display:flex;overflow-x:auto}.camera-strip::-webkit-scrollbar{display:none}.camera-strip-item{color:#fff;background:#ffffff1f;border:2px solid #ffffffb3;border-radius:10px;flex:none;place-items:center;width:56px;height:56px;display:grid;position:relative;overflow:hidden}.camera-strip-item img{object-fit:cover;width:100%;height:100%}.camera-strip-item .n{background:#0009;border-radius:6px;padding:0 5px;font-size:.65rem;font-weight:700;position:absolute;bottom:2px;left:3px}.camera-strip-item .del{color:#fff;background:#000000b3;border:0;border-radius:50%;place-items:center;width:20px;height:20px;padding:0;display:grid;position:absolute;top:-2px;right:-2px}.camera-strip-item .del svg{width:12px;height:12px}.camera-done.ready{color:#111;background:#fff;border-radius:12px}.saved-banner{border-radius:var(--radius);background:var(--primary-soft);color:var(--text);border:1px solid color-mix(in srgb, var(--primary) 30%, transparent);align-items:center;gap:10px;padding:10px 12px;display:flex}.saved-banner>svg{width:22px;height:22px;color:var(--primary);flex:none}.saved-banner .saved-title{font-size:.92rem;font-weight:700}.saved-banner .btn.sm{white-space:nowrap}.location-btn-row{flex-wrap:wrap;align-items:center;gap:10px;margin-top:2px;display:flex}.location-btn{white-space:nowrap;align-self:flex-start}.location-btn.loading{color:var(--primary);border-color:color-mix(in srgb, var(--primary) 40%, transparent);background:var(--primary-soft);opacity:1}.location-hint{align-items:center;gap:4px;font-size:.78rem;display:inline-flex}.location-hint svg{color:var(--primary);flex:none}.location-row{border-top:1px dashed var(--border);margin-top:10px;padding-top:10px}.location-row-title{color:var(--text-muted);flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:6px;font-size:.8rem;font-weight:600;display:flex}.location-strip{padding-bottom:4px}.location-strip .gallery-item,.location-strip .gallery-add{width:96px;height:96px}.location-strip .gallery-item{border-color:color-mix(in srgb, var(--primary) 35%, var(--border))}.location-add{text-align:center;gap:4px;padding:4px;font-size:.72rem;line-height:1.2}.location-add svg{width:22px;height:22px}@media (min-width:768px){.location-strip .gallery-item,.location-strip .gallery-add{width:120px;height:120px}}:root{--label-font:"Barlow Condensed", "Arial Narrow", "Roboto Condensed", var(--font);--paper:#fff8e6;--paper-edge:#e6d9b8;--ink:#17130f;--crate:#4a5a80;--crate-2:#405072;--crate-rim:#5b6c95;--ledge:#d9d6cf;--ledge-edge:#b9b5ac;--ledge-shadow:#1018281a}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--paper:#efe4c6;--paper-edge:#b9aa82;--ink:#17130f;--crate:#3a4666;--crate-2:#313c59;--crate-rim:#4c5a7f;--ledge:#2b3139;--ledge-edge:#1c2027;--ledge-shadow:#00000080}}.storeroom-head{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.storeroom-head h1{letter-spacing:-.02em;font-size:1.5rem}.storeroom-head p{max-width:34ch;margin:2px 0 0}.storeroom-head .btn{flex:none}.storeroom-facts{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.fact{border-radius:var(--radius-sm);background:var(--surface);border:1px solid var(--border);min-width:0;color:inherit;flex-direction:column;gap:2px;padding:10px 12px;text-decoration:none;display:flex}.fact-n{font-family:var(--label-font);letter-spacing:.01em;font-variant-numeric:tabular-nums;font-size:1.7rem;font-weight:700;line-height:1}.fact-l{color:var(--text-muted);font-size:.74rem;line-height:1.3}.fact.link:hover{border-color:var(--border-strong)}.fact.attention{background:var(--warn-soft);border-color:color-mix(in srgb, var(--warn) 35%, transparent)}.fact.attention .fact-n{color:var(--warn)}.fact.attention .fact-l{color:var(--warn);font-weight:600}.storeroom-search{align-items:center;display:flex;position:relative}.storeroom-search>svg{width:18px;height:18px;color:var(--text-faint);pointer-events:none;position:absolute;left:12px}.storeroom-search .input{padding-left:38px;padding-right:40px}.storeroom-search .btn{position:absolute;right:4px}.shelf{padding-bottom:14px;position:relative}.shelf+.shelf{margin-top:22px}.shelf-head{justify-content:space-between;align-items:baseline;gap:10px;margin:0 2px 10px;display:flex}.shelf-head h2{letter-spacing:.01em;font-size:.95rem;font-weight:700}.shelf-count{color:var(--text-muted);text-align:right;font-size:.78rem}.shelf-row{overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:none;align-items:flex-end;gap:14px;margin:0 -2px;padding:8px 2px 18px;display:flex;overflow-x:auto}.shelf-row::-webkit-scrollbar{display:none}.shelf-ledge{background:var(--ledge);height:12px;box-shadow:0 10px 18px -8px var(--ledge-shadow), inset 0 -4px 0 var(--ledge-edge);border-radius:3px;position:absolute;bottom:0;left:-6px;right:-6px}@media (min-width:900px){.shelf-row{flex-wrap:wrap;overflow:visible}}.crate{scroll-snap-align:start;background:var(--surface);border:1px solid var(--border);width:172px;box-shadow:0 1px 0 var(--border-strong), 0 10px 22px -12px #10182847;animation:.4s cubic-bezier(.2,.7,.2,1) both crate-in;animation-delay:calc(var(--i,0) * 45ms);border-radius:12px 12px 8px 8px;flex:none;position:relative}@media (min-width:560px){.crate{width:196px}}.crate.is-empty{opacity:.92}.crate-link{color:inherit;border-radius:inherit;outline:none;flex-direction:column;text-decoration:none;display:flex}.crate-link:focus-visible{box-shadow:0 0 0 3px var(--primary-soft), 0 0 0 5px var(--primary)}.crate-link:hover .crate-face img{transform:scale(1.03)}.crate-link:hover .crate-open,.crate-link:focus-visible .crate-open{color:var(--primary);transform:translate(2px)}.crate-face{aspect-ratio:5/4;background:var(--surface-2);border-radius:11px 11px 0 0;position:relative;overflow:visible}.crate-face img,.crate-blank{object-fit:cover;border-radius:11px 11px 0 0;width:100%;height:100%;transition:transform .35s;position:absolute;inset:0}.crate-blank{background:linear-gradient(180deg, var(--crate-rim) 0 9%, transparent 9%), repeating-linear-gradient(90deg, var(--crate) 0 11px, var(--crate-2) 11px 20px)}.crate-blank:after{content:"";background:#00000038;border-radius:999px;height:18%;position:absolute;top:34%;left:14%;right:14%;box-shadow:inset 0 3px 6px #00000059}.sticker{z-index:1;background:var(--paper);color:var(--ink);border:1px solid var(--paper-edge);border-radius:3px;align-items:center;padding:3px 11px 2px;transition:transform .2s;display:inline-flex;position:absolute;bottom:-11px;left:10px;transform:rotate(-1.4deg);box-shadow:0 2px 4px #0000002e,0 6px 14px -6px #00000059}.sticker:before{content:"";background:#ffffff8c;border:1px solid #0000000f;width:34px;height:11px;position:absolute;top:-6px;left:50%;transform:translate(-50%)rotate(2deg)}.crate-link:hover .sticker{transform:rotate(-.4deg)translateY(-1px)}.sticker-code{font-family:var(--label-font);letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;font-size:1.45rem;font-weight:700;line-height:1}.crate-body{flex-direction:column;gap:7px;min-width:0;padding:18px 11px 10px;display:flex}.crate-name{-webkit-line-clamp:2;line-clamp:2;letter-spacing:0;-webkit-box-orient:vertical;min-height:2.6em;font-size:.9rem;font-weight:650;line-height:1.3;display:-webkit-box;overflow:hidden}.crate-name.is-placeholder{color:var(--text-faint);font-weight:500}.crate-tags{flex-wrap:wrap;gap:4px;max-height:3.2em;margin:0;padding:0;list-style:none;display:flex;overflow:hidden}.crate-tag{--c:var(--grey);max-width:100%;color:var(--text);background:color-mix(in srgb, var(--c) 14%, var(--surface));border:1px solid color-mix(in srgb, var(--c) 32%, transparent);border-radius:999px;align-items:center;gap:5px;padding:1px 7px 1px 6px;font-size:.7rem;line-height:1.5;display:inline-flex}.crate-tag .dot{background:var(--c);border-radius:50%;flex:none;width:7px;height:7px}.crate-tag.fn{background:var(--surface-2);border-color:var(--border);color:var(--text-muted)}.crate-foot{border-top:1px dashed var(--border);justify-content:space-between;align-items:baseline;gap:8px;margin-top:auto;padding-top:4px;display:flex}.crate-count{color:var(--text-muted);font-size:.8rem}.crate-count b{font-family:var(--label-font);color:var(--text);letter-spacing:.02em;margin-right:2px;font-size:1.25rem;font-weight:700}.crate.is-empty .crate-count{color:var(--text-faint);font-style:italic}.crate-open{color:var(--text-faint);white-space:nowrap;font-size:.74rem;transition:color .15s,transform .15s}.crate-menu{z-index:2;position:absolute;top:6px;right:6px}.crate-menu-btn{color:#111;background:#ffffffe0;border:0;border-radius:50%;place-items:center;width:32px;height:32px;padding:0;display:grid;box-shadow:0 1px 3px #0003}.crate-menu-btn svg{width:18px;height:18px}.crate-menu-btn:focus-visible{outline:3px solid var(--primary-soft)}@media (prefers-color-scheme:dark){:root:not([data-theme=light]) .crate-menu-btn{color:#fff;background:#14161ad9}}.shelf-empty .shelf-row{flex-wrap:wrap;align-items:center;gap:18px;padding-top:12px}.crate.ghost{border:2px dashed var(--border-strong);box-shadow:none;background:0 0;width:150px;animation:none}.crate.ghost .crate-face{aspect-ratio:5/4;background:repeating-linear-gradient(90deg, transparent 0 11px, color-mix(in srgb, var(--border-strong) 45%, transparent) 11px 20px);border-radius:10px}.crate.ghost .sticker{opacity:.75}.shelf-empty-copy{flex-direction:column;flex:200px;align-items:flex-start;gap:8px;min-width:0;display:flex}.shelf-empty-copy h2{font-size:1.15rem}.shelf-empty-copy p{color:var(--text-muted);margin:0;font-size:.9rem;line-height:1.5}.shelf-nomatch{color:var(--text-muted);border:1px dashed var(--border-strong);border-radius:var(--radius);flex-wrap:wrap;justify-content:center;align-items:center;gap:12px;padding:28px 12px;display:flex}@keyframes crate-in{0%{opacity:0;transform:translateY(14px)scale(.98)}to{opacity:1;transform:none}}@media (prefers-reduced-motion:reduce){.crate{animation:none}.crate-face img,.sticker,.crate-open{transition:none}}.sidebar{display:none}.app-main{flex-direction:column;flex:auto;width:100%;min-width:0;min-height:100dvh;display:flex}@media (min-width:768px){.tabs-desktop .tab{white-space:nowrap;flex:none}}@media (min-width:1024px){.app{flex-direction:row;align-items:stretch}.sidebar{box-sizing:border-box;background:var(--surface);border-right:1px solid var(--border);flex-direction:column;flex:none;gap:18px;width:236px;height:100dvh;padding:18px 14px 16px;display:flex;position:sticky;top:0}.sidebar-brand{padding:4px 8px;font-size:.98rem}.sidebar-brand .brand-mark{border-radius:9px;width:30px;height:30px}.sidebar-nav{flex-direction:column;gap:2px;display:flex}.side-link{color:var(--text-muted);text-align:left;cursor:pointer;background:0 0;border:0;border-radius:10px;align-items:center;gap:11px;width:100%;padding:10px 12px;font-size:.95rem;font-weight:600;text-decoration:none;display:flex}.side-link svg{flex:none;width:20px;height:20px}.side-link:hover{background:var(--surface-2);color:var(--text)}.side-link.active{background:var(--primary-soft);color:var(--primary)}.side-link:focus-visible{outline:3px solid var(--primary-soft);outline-offset:1px}.sidebar-foot{border-top:1px solid var(--border);flex-direction:column;gap:6px;margin-top:auto;padding-top:12px;display:flex}.sidebar-user{align-items:center;gap:10px;min-width:0;padding:4px 8px;display:flex}.sidebar-user .avatar{width:34px;height:34px;font-size:.9rem}.sidebar-user-text{flex-direction:column;min-width:0;font-size:.9rem;font-weight:600;line-height:1.25;display:flex}.appbar .brand,.appbar nav.tabs-desktop{display:none}.appbar-title:before{content:none;margin:0}.appbar-title{color:var(--text);font-size:1rem;font-weight:700}.appbar-inner,.page{max-width:1280px}.page{padding:24px 32px 56px}.chips-scroll{flex-wrap:wrap;overflow:visible}.crate{width:216px}.storeroom-facts{max-width:720px}}.dropzone{text-align:center;border:2px dashed var(--border-strong);border-radius:var(--radius);background:var(--surface);min-height:220px;color:var(--text-muted);cursor:pointer;flex-direction:column;justify-content:center;align-items:center;gap:10px;padding:26px 20px;transition:border-color .15s,background .15s,transform .15s;display:flex}.dropzone:hover{border-color:var(--primary);background:color-mix(in srgb, var(--primary-soft) 40%, var(--surface))}.dropzone.dragging{border-color:var(--primary);background:var(--primary-soft);color:var(--primary);transform:scale(1.01)}.dropzone:focus-visible{outline:3px solid var(--primary-soft)}.dropzone>svg{opacity:.55;width:40px;height:40px}.dropzone-title{color:var(--text);font-size:1.05rem;font-weight:700}.dropzone-hint{max-width:42ch;font-size:.85rem;line-height:1.5}.dropzone kbd{font-family:var(--mono);background:var(--surface-2);border:1px solid var(--border-strong);color:var(--text);border-bottom-width:2px;border-radius:5px;padding:0 6px;font-size:.78rem}.dropzone-actions{flex-wrap:wrap;justify-content:center;gap:8px;margin-top:4px;display:flex}@media (min-width:1024px){.capture-layout{grid-template-columns:minmax(0,1fr) 400px;gap:28px}.capture-layout>.stack{display:contents}.capture-hero{grid-area:1/1/span 3;align-self:start}.saved-banner{grid-area:auto/1/auto/-1}.capture-form{grid-area:1/2;position:static}.capture-layout>section[aria-label=ร่างที่ยังไม่บันทึก],.capture-layout>.draft-list{grid-column:2}.photo-strip{flex-wrap:wrap;overflow:visible}.photo-strip-item,.photo-strip-add{width:132px;height:132px}}.field.has-error label{color:var(--danger)}.input.invalid,.input.invalid:focus{border-color:var(--danger);box-shadow:0 0 0 3px var(--danger-soft)}.field-error:before{content:"⚠ "}
