:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#141012;--surface:#1e171a;--surface-2:#281f23;--surface-3:#33282d;--border:#3b2f34;--text:#f4ede5;--muted:#a8988e;--faint:#73655e;--amber:#e3a44b;--amber-strong:#f0b65e;--amber-ink:#241606;--bordeaux:#8f2b40;--bordeaux-soft:#4a1b26;--green:#7fb07a;--red:#e0675f;--radius:14px;--radius-sm:9px;--serif:"Fraunces", Georgia, "Times New Roman", serif;--sans:"Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;--tabbar-h:64px;--safe-bottom:env(safe-area-inset-bottom,0px)}*{box-sizing:border-box}html,body{margin:0;padding:0}body{background:var(--bg);color:var(--text);font-family:var(--sans);-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;font-size:16px;line-height:1.45}a{color:inherit;text-decoration:none}button{font:inherit;color:inherit}img{max-width:100%;display:block}h1,h2,h3{font-family:var(--serif);letter-spacing:-.01em;margin:0;font-weight:600}h1{font-size:1.7rem}h2{font-size:1.2rem}h3{font-size:1.02rem}p{margin:0}.app{min-height:100dvh}.page{max-width:720px;padding:16px 16px calc(var(--tabbar-h) + var(--safe-bottom) + 28px);margin:0 auto}.page-header{align-items:center;gap:10px;padding:6px 0 14px;display:flex}.page-header h1{flex:1;min-width:0}.page-header .icon-btn{flex:none}.stack{flex-direction:column;gap:12px;display:flex}.stack-lg{flex-direction:column;gap:22px;display:flex}.row{align-items:center;gap:10px;display:flex}.row-wrap{flex-wrap:wrap;gap:8px;display:flex}.between{justify-content:space-between}.grow{flex:1;min-width:0}.grid2{grid-template-columns:1fr 1fr;gap:12px;display:grid}@media (width<=380px){.grid2{grid-template-columns:1fr}}.muted{color:var(--muted)}.faint{color:var(--faint)}.small{font-size:.85rem}.tiny{font-size:.75rem}.center{text-align:center}.ellipsis{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.pre{white-space:pre-wrap}.hidden{display:none!important}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:14px}.card-link{transition:background .15s;display:block}.card-link:active{background:var(--surface-2)}.section{flex-direction:column;gap:12px;display:flex}.section-title{font-family:var(--sans);text-transform:uppercase;letter-spacing:.08em;color:var(--amber);font-size:.78rem;font-weight:600}details.fold{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius)}details.fold>summary{cursor:pointer;justify-content:space-between;align-items:center;padding:14px;font-weight:600;list-style:none;display:flex}details.fold>summary::-webkit-details-marker{display:none}details.fold>summary:after{content:"▾";color:var(--muted);transition:transform .2s}details.fold[open]>summary:after{transform:rotate(180deg)}details.fold>.fold-body{flex-direction:column;gap:12px;padding:0 14px 14px;display:flex}.divider{background:var(--border);height:1px;margin:4px 0}.btn{border:1px solid var(--border);background:var(--surface-2);min-height:44px;color:var(--text);cursor:pointer;white-space:nowrap;border-radius:999px;justify-content:center;align-items:center;gap:8px;padding:0 18px;font-weight:600;transition:transform 80ms,background .15s;display:inline-flex}.btn:active{transform:scale(.97)}.btn:disabled{opacity:.5;cursor:default}.btn-primary{background:var(--amber);border-color:var(--amber);color:var(--amber-ink)}.btn-primary:hover{background:var(--amber-strong)}.btn-danger{border-color:var(--bordeaux);color:#f2a0ad;background:0 0}.btn-ghost{background:0 0}.btn-block{width:100%}.btn-sm{min-height:34px;padding:0 12px;font-size:.88rem}.icon-btn{border:1px solid var(--border);background:var(--surface);cursor:pointer;border-radius:999px;justify-content:center;align-items:center;width:40px;height:40px;font-size:1.1rem;display:inline-flex}.link{color:var(--amber);cursor:pointer;background:0 0;border:0;padding:0;font-weight:500}.field{flex-direction:column;gap:6px;min-width:0;display:flex}.field>label,.label{color:var(--muted);font-size:.82rem;font-weight:500}.input,.select,.textarea{background:var(--surface-2);width:100%;min-height:44px;color:var(--text);border:1px solid var(--border);border-radius:var(--radius-sm);font:inherit;padding:10px 12px;font-size:16px}.textarea{resize:vertical;min-height:80px}.input:focus,.select:focus,.textarea:focus{outline:2px solid var(--amber);outline-offset:-1px;border-color:#0000}.input-unit{position:relative}.input-unit .unit{color:var(--muted);pointer-events:none;font-size:.9rem;position:absolute;top:50%;right:12px;transform:translateY(-50%)}.input-unit .input{padding-right:52px}.search-input{background:var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23a8988e' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m16 16-3.5-3.5'/%3E%3C/svg%3E") no-repeat 15px center;border:1px solid var(--border);width:100%;min-height:48px;color:var(--text);font:inherit;border-radius:999px;padding:0 16px 0 42px;font-size:16px}.search-input:focus{outline:2px solid var(--amber);outline-offset:-1px}.check{cursor:pointer;align-items:center;gap:10px;min-height:44px;display:inline-flex}.check input{width:20px;height:20px;accent-color:var(--amber)}.error{color:var(--red);font-size:.9rem}.notice{background:var(--bordeaux-soft);border:1px solid var(--bordeaux);color:#f6d3d9;border-radius:var(--radius-sm);padding:10px 12px;font-size:.9rem}.notice-ok{color:#cfe6cc;background:#1f2a1e;border-color:#3f5a3c}.chips{scrollbar-width:none;gap:8px;padding-bottom:2px;display:flex;overflow-x:auto}.chips::-webkit-scrollbar{display:none}.chip{background:var(--surface);border:1px solid var(--border);min-height:36px;color:var(--text);cursor:pointer;white-space:nowrap;border-radius:999px;flex:none;align-items:center;gap:6px;padding:0 14px;font-size:.9rem;display:inline-flex}.chip[aria-pressed=true],.chip.active{background:var(--amber);border-color:var(--amber);color:var(--amber-ink);font-weight:600}.tag{cursor:pointer;background:var(--surface-2);border:1px solid var(--border);min-height:32px;color:var(--text);border-radius:999px;align-items:center;padding:0 12px;font-size:.85rem;display:inline-flex}.tag[aria-pressed=true]{background:var(--bordeaux);color:#fff;border-color:#b2445b}.tag-static{cursor:default}.badge{background:var(--surface-3);color:var(--muted);border-radius:999px;align-items:center;padding:2px 8px;font-size:.72rem;font-weight:600;display:inline-flex}.badge-amber{color:var(--amber);background:#e3a44b29}.badge-green{color:var(--green);background:#7fb07a29}.badge-red{color:var(--red);background:#e0675f29}.stars{color:var(--amber);align-items:center;gap:2px;line-height:1;display:inline-flex}.stars svg{display:block}.stars-input{touch-action:none;-webkit-user-select:none;user-select:none;gap:4px;display:flex}.stars-input button{cursor:pointer;background:0 0;border:0;padding:2px}.slider-row{grid-template-columns:110px 1fr 28px;align-items:center;gap:10px;display:grid}.slider-row input[type=range]{width:100%;accent-color:var(--amber);height:28px}.slider-row .value{text-align:right;color:var(--muted);font-variant-numeric:tabular-nums}.slider-row.unset input[type=range]{opacity:.35}.meter{background:var(--surface-3);border-radius:999px;height:6px;overflow:hidden}.meter>span{background:var(--amber);border-radius:999px;height:100%;display:block}.item{align-items:center;gap:12px;display:flex}.thumb{background:var(--surface-2);border:1px solid var(--border);border-radius:12px;flex:none;justify-content:center;align-items:center;width:56px;height:56px;font-size:1.6rem;display:flex;overflow:hidden}.thumb img{object-fit:cover;width:100%;height:100%}.thumb-lg{width:96px;height:128px;font-size:2.6rem}.item-title{font-weight:600}.empty{text-align:center;color:var(--muted);flex-direction:column;align-items:center;gap:16px;padding:48px 12px;display:flex}.empty .big{font-size:3rem}.photo-grid{grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px;display:grid}.photo-grid .ph{aspect-ratio:1;background:var(--surface-2);border-radius:10px;position:relative;overflow:hidden}.photo-grid .ph img{object-fit:cover;width:100%;height:100%}.photo-grid .ph button{color:#fff;cursor:pointer;background:#0009;border:0;border-radius:999px;width:26px;height:26px;position:absolute;top:4px;right:4px}.hero{align-items:flex-start;gap:16px;display:flex}.hero-photo{background:var(--surface-2);border:1px solid var(--border);aspect-ratio:3/4;border-radius:12px;flex:none;justify-content:center;align-items:center;width:110px;font-size:3rem;display:flex;overflow:hidden}.hero-photo img{object-fit:cover;width:100%;height:100%}.kv{grid-template-columns:minmax(110px,40%) 1fr;gap:6px 12px;font-size:.92rem;display:grid}.kv dt{color:var(--muted)}.kv dd{overflow-wrap:anywhere;margin:0}.tabbar{z-index:20;height:calc(var(--tabbar-h) + var(--safe-bottom));padding-bottom:var(--safe-bottom);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-top:1px solid var(--border);background:#141012f0;grid-template-columns:repeat(5,1fr);display:grid;position:fixed;bottom:0;left:0;right:0}.tabbar a{color:var(--faint);flex-direction:column;justify-content:center;align-items:center;gap:3px;font-size:.68rem;font-weight:500;display:flex}.tabbar a.active{color:var(--amber)}.tabbar a svg{width:24px;height:24px}.tabbar .tab-add span.plus{background:var(--amber);width:50px;height:50px;color:var(--amber-ink);border-radius:999px;justify-content:center;align-items:center;margin-top:-14px;display:flex;box-shadow:0 6px 20px #e3a44b4d}.tabbar .tab-add span.plus svg{width:28px;height:28px}.sheet-backdrop{z-index:50;background:#0009;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet{background:var(--surface);border:1px solid var(--border);width:100%;max-width:720px;max-height:92dvh;padding:16px 16px calc(20px + var(--safe-bottom));border-bottom:0;border-radius:20px 20px 0 0;flex-direction:column;gap:14px;display:flex;overflow:auto}@media (width>=760px){.sheet-backdrop{align-items:center}.sheet{border-bottom:1px solid var(--border);border-radius:20px}}.scanner-video{aspect-ratio:4/3;object-fit:cover;background:#000;border-radius:12px;width:100%}.auth-page{background:radial-gradient(ellipse at top, #2c1a20 0%, var(--bg) 60%);justify-content:center;align-items:center;min-height:100dvh;padding:24px 16px;display:flex}.auth-card{flex-direction:column;gap:18px;width:100%;max-width:380px;display:flex}.brand{text-align:center;flex-direction:column;align-items:center;gap:6px;display:flex}.brand h1{color:var(--amber);font-size:2.4rem}.spinner{color:var(--muted);justify-content:center;padding:40px;display:flex}.sticky-actions{bottom:calc(var(--tabbar-h) + var(--safe-bottom) + 8px);z-index:5;gap:10px;padding-top:8px;display:flex;position:sticky}.sticky-actions .btn{flex:1;box-shadow:0 6px 18px #00000073}.row>.btn.grow{white-space:normal;text-align:center;min-width:0;padding:0 12px;line-height:1.2}.scanner{position:relative}.scanner-frame{border:2px solid var(--amber);pointer-events:none;border-radius:10px;position:absolute;inset:30% 12%;box-shadow:0 0 0 9999px #00000059}
