:root{--bg:#fbf7ef;--surface:#fff;--surface-2:#f3eee3;--text:#1f2a22;--muted:#66715f;--line:#e6dfcf;--green:#2f7d4f;--green-dark:#23633d;--green-soft:#e3f1e7;--sun:#f6c445;--sun-soft:#fdf1c9;--coral:#e8664a;--coral-soft:#fde4dd;--sky:#5aa9e6;--sky-soft:#e2f0fb;--radius:18px;--radius-sm:12px;--shadow:0 1px 2px #3c32140f, 0 4px 14px #3c321412;--font:ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI Variable Display", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;--tabbar-h:68px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--bg:#161b17;--surface:#1f2621;--surface-2:#273029;--text:#eef2ea;--muted:#a3ad9e;--line:#333d35;--green:#5cbf83;--green-dark:#7fd3a0;--green-soft:#213a2a;--sun-soft:#3d3418;--coral-soft:#452620;--sky-soft:#1d3142;--shadow:0 1px 2px #0000004d, 0 4px 14px #00000040}}*{box-sizing:border-box}html{scroll-padding-top:80px;scroll-padding-bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 20px);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}body{background:var(--bg);color:var(--text);font-family:var(--font);padding-bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 24px);margin:0;font-size:17px;line-height:1.45}body.bare{padding-bottom:32px}a{color:var(--green);text-underline-offset:2px;text-decoration-thickness:1.5px}h1,h2{letter-spacing:-.01em;margin:0 0 .4em;line-height:1.2}h1{font-size:1.7rem}h2{font-size:1.15rem}img{max-width:100%}code{background:var(--surface-2);border-radius:6px;padding:.1em .35em;font-size:.9em}q{font-style:italic}[hidden]{display:none!important}#top{z-index:10;padding:calc(10px + env(safe-area-inset-top)) 16px 10px;background:color-mix(in srgb, var(--bg) 88%, transparent);-webkit-backdrop-filter:blur(10px);justify-content:space-between;align-items:center;gap:12px;display:flex;position:sticky;top:0}.brand{color:var(--text);align-items:center;gap:10px;min-width:0;font-size:1.1rem;font-weight:800;text-decoration:none;display:flex}.brand span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.me-btn{background:var(--surface);width:42px;height:42px;box-shadow:var(--shadow);border-radius:50%;flex:none;place-items:center;font-size:1.4rem;text-decoration:none;display:grid}main{outline:none;max-width:760px;margin:0 auto;padding:8px 16px 0}#tabbar{z-index:20;height:calc(var(--tabbar-h) + env(safe-area-inset-bottom));padding:0 6px env(safe-area-inset-bottom);background:var(--surface);border-top:1px solid var(--line);grid-template-columns:repeat(5,1fr);align-items:end;display:grid;position:fixed;bottom:0;left:0;right:0;box-shadow:0 -4px 20px #3c32140f}#tabbar a{color:var(--muted);flex-direction:column;align-items:center;gap:2px;padding:10px 0;font-size:.72rem;font-weight:700;text-decoration:none;display:flex}#tabbar svg{fill:none;stroke:currentColor;stroke-width:1.9px;stroke-linecap:round;stroke-linejoin:round;width:26px;height:26px}#tabbar a.active{color:var(--green)}#tabbar a.active svg{stroke-width:2.3px}#tabbar .scan-tab{padding-bottom:12px}.scan-bubble{background:var(--sun);color:#3a2c00;width:64px;height:64px;box-shadow:0 6px 18px #f6c44573, 0 0 0 5px var(--surface);border-radius:50%;place-items:center;margin-top:-26px;transition:transform .15s;display:grid}#tabbar .scan-tab svg{stroke-width:2.2px;width:30px;height:30px}#tabbar .scan-tab:active .scan-bubble{transform:scale(.92)}@media (min-width:900px){#tabbar{border:1px solid var(--line);width:520px;height:var(--tabbar-h);border-radius:24px;padding-bottom:0;bottom:16px;left:50%;right:auto;transform:translate(-50%)}}.btn{background:var(--surface-2);min-height:46px;color:var(--text);font:inherit;cursor:pointer;touch-action:manipulation;border:0;border-radius:999px;justify-content:center;align-items:center;gap:8px;padding:10px 18px;font-weight:700;text-decoration:none;transition:transform .12s,background .15s,opacity .15s;display:inline-flex}.btn:active{transform:scale(.97)}.btn[disabled]{opacity:.6;pointer-events:none}.btn.is-busy:after{content:"";border:2.5px solid;border-right-color:#0000;border-radius:50%;width:16px;height:16px;animation:.7s linear infinite spin}.btn-primary{background:var(--green);color:#fff;box-shadow:0 4px 14px #2f7d4f47}@media (prefers-color-scheme:dark){.btn-primary{color:#0d1f14}}.btn-ghost{border:2px solid var(--line);background:0 0}.btn-danger-ghost{color:var(--coral);border:2px solid var(--coral-soft);background:0 0}.btn-big{width:100%;min-height:56px;font-size:1.1rem}.btn-small{min-height:36px;padding:6px 14px;font-size:.9rem}.link-btn{color:var(--green);font:inherit;cursor:pointer;background:0 0;border:0;padding:4px;font-weight:700;text-decoration:underline}.pulse{animation:1.6s ease-in-out 3 pulse}.card{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);margin:0 0 16px;padding:18px}section{margin:0 0 26px}.section-head{justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:10px;display:flex}.section-head h2{margin:0}.section-head a{font-size:.95rem;font-weight:700}.page-title{margin:8px 0 16px}.empty-line{color:var(--muted);margin:6px 0}.more-links{text-align:center;margin:18px 0}.hint{color:var(--muted);font-size:.9rem}.hint-box{background:var(--sun-soft);border-radius:var(--radius-sm);margin:0 0 14px;padding:12px 14px}.field-label{margin:16px 0 8px;font-weight:800}.big-emoji{margin-bottom:10px;font-size:3.4rem;line-height:1}.empty-state,.empty-hint{text-align:center;padding:30px 10px}.empty-hint.card{padding:26px 20px}.loading{justify-content:center;gap:8px;padding:60px 0;display:flex}.loading span{background:var(--green);border-radius:50%;width:12px;height:12px;animation:.9s ease-in-out infinite bounce}.loading span:nth-child(2){background:var(--sun);animation-delay:.15s}.loading span:nth-child(3){background:var(--coral);animation-delay:.3s}.hello{margin:10px 0 16px}.hello h1{margin-bottom:4px;font-size:1.6rem}.hello p{color:var(--muted);margin:0}.hello strong{color:var(--green)}.banner{border-radius:var(--radius);color:var(--text);align-items:center;gap:12px;margin-bottom:10px;padding:14px 16px;text-decoration:none;display:flex}.banner-late{background:var(--coral-soft)}.banner-soon{background:var(--sun-soft)}.banner-emoji{font-size:1.6rem}.action-tiles{grid-template-columns:1fr 1fr;gap:12px;margin:16px 0;display:grid}.tile{color:var(--text);box-shadow:var(--shadow);border-radius:22px;flex-direction:column;gap:2px;padding:18px 16px;text-decoration:none;transition:transform .12s;display:flex}.tile:active{transform:scale(.97)}.tile-scan{background:var(--sun);color:#3a2c00}.tile-add{background:var(--green-soft)}.tile-emoji{margin-bottom:6px;font-size:2rem}.tile strong{font-size:1.1rem}.tile small{opacity:.75}.stat-strip{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);justify-content:space-between;gap:8px;margin:0 0 22px;padding:14px 10px;list-style:none;display:flex}.stat-strip li{flex-direction:column;flex:1;align-items:center;display:flex}.stat-strip strong{color:var(--green);font-size:1.4rem}.stat-strip span{color:var(--muted);font-size:.8rem}.h-scroll{scroll-snap-type:x mandatory;scrollbar-width:none;grid-auto-columns:46%;grid-auto-flow:column;gap:12px;margin:0 -16px;padding:4px 16px 12px;display:grid;overflow-x:auto}.h-scroll::-webkit-scrollbar{display:none}.h-scroll>*{scroll-snap-align:start}@media (min-width:600px){.h-scroll{grid-auto-columns:30%}}.feed{margin:0;padding:0;list-style:none}.feed-item{border-bottom:1px solid var(--line);align-items:flex-start;gap:12px;padding:12px 0;display:flex}.feed-item p{margin:0}.feed-item a{color:var(--text);font-weight:700;text-decoration:none}.feed-item small{color:var(--muted)}.avatar{background:var(--surface-2);border-radius:50%;flex:none;place-items:center;width:38px;height:38px;font-size:1.3rem;line-height:1;display:inline-grid}.avatar-sm{vertical-align:middle;width:22px;height:22px;font-size:.85rem}.avatar-lg{width:52px;height:52px;font-size:1.8rem}.avatar-xl{background:var(--sun-soft);width:96px;height:96px;font-size:3.4rem}.avatar-grid{grid-template-columns:repeat(auto-fill,minmax(48px,1fr));gap:6px;display:grid}.avatar-choice{aspect-ratio:1;background:var(--surface-2);cursor:pointer;border:2px solid #0000;border-radius:14px;font-size:1.6rem;transition:transform .12s}.avatar-choice.selected{border-color:var(--green);background:var(--green-soft);transform:scale(1.08)}.item-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;display:grid}.item-card{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);color:var(--text);flex-direction:column;text-decoration:none;transition:transform .12s;display:flex;overflow:hidden}.item-card:active{transform:scale(.98)}.item-card .thumb{aspect-ratio:4/3;object-fit:cover;border-radius:0;width:100%}.item-card-text{flex-direction:column;align-items:flex-start;gap:3px;padding:10px 12px 12px;display:flex}.item-card-text strong{-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.25;display:-webkit-box;overflow:hidden}.item-card-text small{color:var(--muted);font-size:.82rem}.thumb{border-radius:var(--radius-sm);object-fit:cover;flex:none;width:56px;height:56px}.thumb-emoji{background:var(--cat,var(--surface-2));place-items:center;font-size:2rem;display:grid}.item-card .thumb-emoji{font-size:3rem}.cat-tools{--cat:#fde8d3}.cat-garden{--cat:#dff0d8}.cat-kitchen{--cat:#fbe0e0}.cat-tech{--cat:#dfe8fb}.cat-books{--cat:#f1e3fb}.cat-media{--cat:#e0f4f4}.cat-games{--cat:#fff1c7}.cat-outdoor{--cat:#dcf2e6}.cat-kids{--cat:#fde2ef}.cat-party{--cat:#fdeccf}.cat-misc{--cat:#ece8df}@media (prefers-color-scheme:dark){.thumb-emoji{background:color-mix(in srgb, var(--cat,var(--surface-2)) 18%, var(--surface-2))}}.pill{white-space:nowrap;border-radius:999px;align-items:center;gap:4px;padding:2px 10px;font-size:.78rem;font-weight:800;display:inline-flex}.pill-free{background:var(--green-soft);color:var(--green-dark)}.pill-out{background:var(--sky-soft);color:#22618f}.pill-late{background:var(--coral-soft);color:#a63b22}.pill-repair{background:var(--sun-soft);color:#7a5a00}@media (prefers-color-scheme:dark){.pill-out{color:#9ccdf3}.pill-late{color:#f6a693}.pill-repair{color:#f6d77a}}.search-box input{border:2px solid var(--line);background:var(--surface);border-radius:999px;width:100%;padding:14px 18px;font-size:1.05rem}.chips{scrollbar-width:none;gap:8px;margin:0 -16px;padding:12px 16px 4px;display:flex;overflow-x:auto}.chips::-webkit-scrollbar{display:none}.chips-wrap,.chips-choice{flex-wrap:wrap;margin:0;padding:4px 0;overflow:visible}.chips-small .chip{min-height:34px;padding:6px 12px;font-size:.85rem}.chip{border:2px solid var(--line);background:var(--surface);min-height:40px;color:var(--text);font:inherit;cursor:pointer;white-space:nowrap;border-radius:999px;flex:none;padding:8px 14px;font-size:.95rem;font-weight:700;transition:background .12s,border-color .12s,transform .12s}.chip.on{background:var(--green);border-color:var(--green);color:#fff}@media (prefers-color-scheme:dark){.chip.on{color:#0d1f14}}.chip:active{transform:scale(.95)}.result-count{color:var(--muted);margin:8px 0;font-size:.85rem}.item-detail{margin-top:4px}.item-hero{margin:0 -16px 14px}.hero-img{object-fit:cover;width:100%;max-height:46vh;display:block}.hero-img.thumb-emoji{height:32vh;font-size:6rem;display:grid}@media (min-width:760px){.item-hero{margin:0 0 14px}.hero-img{border-radius:var(--radius)}}.cat-label{color:var(--muted);font-size:.9rem;font-weight:700}.item-head h1{margin:2px 0 4px}.author{color:var(--muted);margin:0 0 6px}.item-meta{align-items:center;gap:10px;margin-bottom:16px;display:flex}.code-tag{color:var(--muted);font-family:ui-monospace,monospace;font-size:.85rem}.holder{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);align-items:center;gap:14px;margin-bottom:16px;padding:14px;display:flex}.holder.late{background:var(--coral-soft)}.holder div{flex-direction:column;display:flex}.holder small{color:var(--muted)}.item-actions{flex-direction:column;gap:10px;margin-bottom:18px;display:flex}.description{white-space:normal}.facts{gap:8px;margin:16px 0 24px;display:grid}.facts div{border-bottom:1px dashed var(--line);justify-content:space-between;gap:12px;padding-bottom:6px;display:flex}.facts dt{color:var(--muted)}.facts dd{text-align:right;margin:0;font-weight:700}.history{margin:0;padding:0;list-style:none}.history li{align-items:center;gap:10px;padding:6px 0;display:flex}.history a{color:var(--text);font-weight:700}.item-tools{flex-wrap:wrap;gap:10px;margin-top:10px;display:flex}.loan-list,.my-items{gap:10px;margin:0;padding:0;list-style:none;display:grid}.loan-row{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);padding:12px}.loan-row.late{background:var(--coral-soft)}.loan-main,.my-item{color:var(--text);align-items:center;gap:12px;text-decoration:none;display:flex}.loan-main>.grow,.my-item>.grow{flex-direction:column;flex:1;align-items:flex-start;gap:2px;min-width:0;display:flex}.loan-main small,.my-item small{color:var(--muted)}.loan-buttons{gap:8px;margin-top:10px;display:flex}.loan-buttons .btn{flex:1}.my-item{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);padding:10px 12px}.badge-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px;margin:0;padding:0;list-style:none;display:grid}.badge{text-align:center;border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow);opacity:.75;flex-direction:column;align-items:center;gap:2px;padding:14px 10px;display:flex}.badge.earned{opacity:1;background:linear-gradient(160deg, var(--sun-soft), var(--surface) 70%)}.badge-emoji{font-size:2.2rem}.badge:not(.earned) .badge-emoji{filter:grayscale();opacity:.6}.badge strong{font-size:.92rem;line-height:1.2}.badge small{color:var(--muted);font-size:.78rem;line-height:1.25}.progress{background:var(--surface-2);border-radius:3px;width:80%;height:6px;margin-top:6px;display:block;overflow:hidden}.progress span{background:var(--sun);border-radius:3px;height:100%;display:block}.badge-reveal span{font-size:5rem;animation:.6s cubic-bezier(.2,1.6,.4,1) pop-in;display:block}.choose-list{gap:8px;margin:8px 0;padding:0;list-style:none;display:grid}.input-row .icon-btn{width:48px;padding:0;font-size:1.25rem}.photo-preview{position:relative}.photo-source{color:#fff;background:#0009;border-radius:999px;padding:4px 10px;font-size:.8rem;font-weight:700;position:absolute;bottom:10px;left:10px}.lookup-note{background:var(--sky-soft);border-radius:var(--radius-sm);margin:0;padding:10px 14px;font-size:.92rem}.village-hero{text-align:center;background:linear-gradient(160deg, var(--green-soft), var(--surface) 75%)}.big-number{margin:4px 0;font-size:1.15rem}.big-number strong{color:var(--green);font-size:3rem;line-height:1.1;display:block}.village-hero .btn{margin-top:10px}.people{grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px;margin:0;padding:0;list-style:none;display:grid}.person{text-align:center;background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);color:var(--text);flex-direction:column;align-items:center;gap:4px;padding:14px 8px;text-decoration:none;display:flex}.person small{color:var(--muted);font-size:.78rem}.place-list{margin:0;padding:0;list-style:none}.place-list a{color:var(--text);text-decoration:none}.place-list p{margin:6px 0}.place-list small{color:var(--muted)}.profile-head{text-align:center;flex-direction:column;align-items:center;margin-top:10px;display:flex}.profile-head h1{margin:10px 0 0}.profile-head p{color:var(--muted);margin:4px 0}.profile-head .stat-strip{width:100%;margin-top:14px}.form{flex-direction:column;gap:16px;display:flex}label{flex-direction:column;gap:6px;font-weight:700;display:flex}label small{color:var(--muted);font-weight:400}fieldset{border:0;margin:0;padding:0}legend{margin-bottom:6px;padding:0;font-weight:700}input,textarea,select{font:inherit;color:var(--text);background:var(--bg);border:2px solid var(--line);border-radius:var(--radius-sm);width:100%;min-height:48px;padding:12px 14px;font-weight:400}input:focus,textarea:focus,select:focus{border-color:var(--green);outline:none}.check{flex-direction:row;align-items:center;gap:10px;font-weight:400}.check input{width:22px;height:22px;min-height:0;accent-color:var(--green)}.input-row{gap:8px;display:flex}.input-row input{flex:1;min-width:0}.input-row .btn{flex:none}.inline-label{margin-top:14px}.photo-pick{cursor:pointer}.photo-preview{border-radius:var(--radius);background:var(--surface-2);border:2px dashed var(--line);display:block;overflow:hidden}.photo-preview img{object-fit:cover;width:100%;max-height:300px;display:block}.photo-empty{flex-direction:column;justify-content:center;align-items:center;height:150px;font-size:3rem;display:flex}.photo-empty small{color:var(--muted);font-size:1rem}.code-input{text-transform:uppercase;letter-spacing:.15em;text-align:center;font-family:ui-monospace,monospace;font-size:1.4rem}.check-list{max-height:280px;margin:0 0 8px;padding:0;list-style:none;overflow-y:auto}.check-list li{padding:4px 0}.check-list small{color:var(--muted);font-family:ui-monospace,monospace}.stack{flex-direction:column;gap:10px;display:flex}.admin-list{margin:0;padding:0;list-style:none}.admin-list li{border-bottom:1px solid var(--line)}.admin-list li:last-child{border-bottom:0}.row-btn{width:100%;color:var(--text);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;gap:10px;padding:10px 0;display:flex}.row-btn small,.admin-list .row small{color:var(--muted);margin-left:auto;font-size:.85rem}.admin-list .row{justify-content:space-between;align-items:center;gap:10px;padding:10px 0;display:flex}.admin-list .row span{flex-direction:column;display:flex}.admin-list .row small{margin-left:0}.welcome{max-width:480px;padding-top:calc(28px + env(safe-area-inset-top));text-align:center;margin:0 auto}.welcome .form,.welcome .steps{text-align:left}.welcome-logo{margin-bottom:10px;animation:.7s cubic-bezier(.2,1.6,.4,1) pop-in}.lead{color:var(--muted);margin:0 0 22px;font-size:1.1rem}.lead-small{color:var(--muted);margin-top:-8px}.steps ol{margin:0;padding-left:1.3em}.steps li{margin:6px 0}.invite-hero{margin-bottom:10px;display:inline-block;position:relative}.wave{transform-origin:70% 70%;font-size:2.2rem;animation:1.4s ease-in-out 2 wave;position:absolute;top:-6px;right:-18px}.install p{margin:0 0 10px}.scan-page{margin:0 -16px}.scanner{aspect-ratio:3/4;background:#0f1511;width:100%;max-height:calc(100vh - 230px);position:relative;overflow:hidden}.sheet .scanner{border-radius:var(--radius);aspect-ratio:4/3}.scanner video{object-fit:cover;width:100%;height:100%;display:block}.scan-frame{pointer-events:none;place-items:center;display:grid;position:absolute;inset:0}.scan-frame span{aspect-ratio:1;border:4px solid var(--sun);border-radius:28px;width:min(64vw,260px);animation:2s ease-in-out infinite breathe;box-shadow:0 0 0 100vmax #00000059}.scanner.hit .scan-frame span{border-color:var(--green);transition:transform .2s;animation:none;transform:scale(1.08)}.scan-hint{color:#fff;text-align:center;background:#0000008c;border-radius:14px;margin:0;padding:10px 14px;font-weight:700;position:absolute;bottom:16px;left:16px;right:16px}.scan-fallback{flex-wrap:wrap;justify-content:center;gap:10px;padding:16px;display:flex}.scan-fallback label.btn{flex-direction:row}.sheet{background:var(--surface);width:100%;max-width:560px;max-height:92vh;color:var(--text);border:0;border-radius:24px 24px 0 0;margin:auto auto 0;padding:0;animation:.25s cubic-bezier(.2,.9,.3,1.1) sheet-in;box-shadow:0 -10px 40px #0003}.sheet.closing{animation:.18s ease-in forwards sheet-out}.sheet::backdrop{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#14191473}.sheet-body{padding:26px 20px calc(20px + env(safe-area-inset-bottom));flex-direction:column;gap:8px;display:flex;position:relative}.sheet-body h2{padding-right:40px}.sheet-body>.btn-big{margin-top:14px}.sheet-close{background:var(--surface-2);width:38px;height:38px;color:var(--text);cursor:pointer;border:0;border-radius:50%;font-size:1.5rem;line-height:1;position:absolute;top:14px;right:14px}@media (min-width:700px){.sheet{border-radius:24px;margin:auto}}.done-sheet{text-align:center;flex-direction:column;align-items:stretch;gap:10px;display:flex}.done-sheet h2{padding:0}.due-preview{color:var(--muted);margin:4px 0 0}.heart-btn{border:2px dashed var(--line);width:100%;min-height:52px;color:var(--text);font:inherit;cursor:pointer;background:0 0;border-radius:999px;justify-content:center;align-items:center;gap:10px;font-weight:800;display:flex}.heart-btn span{font-size:1.5rem}.heart-btn.on{border-style:solid;border-color:var(--sun);background:var(--sun-soft)}.heart-btn.pop span{animation:.45s cubic-bezier(.2,1.8,.4,1) pop-in}.link-sheet{text-align:center}.qr-big{background:#fff;border-radius:18px;width:min(70vw,260px);margin:10px auto;padding:12px}.qr-big svg{width:100%;height:auto;display:block}.link-box input{text-align:center;font-size:.85rem}.link-actions{justify-content:center;gap:10px;margin-top:12px;display:flex}.broken-note{margin-top:6px}#toasts{left:50%;bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 14px);z-index:100;pointer-events:none;flex-direction:column;gap:8px;width:min(92vw,440px);display:flex;position:fixed;transform:translate(-50%)}.toast{color:#fff;background:#1f2a22;border-radius:16px;padding:12px 18px;font-weight:700;transition:opacity .5s,transform .5s;animation:.25s cubic-bezier(.2,1.4,.4,1) toast-in;box-shadow:0 8px 24px #00000040}.toast-error{background:#a63b22}.toast-info{background:#22618f}.toast.out{opacity:0;transform:translateY(10px)}.confetti{pointer-events:none;z-index:200;position:fixed;inset:0;overflow:hidden}.confetti span{top:-20px;left:var(--x);background:var(--c);width:10px;height:14px;animation:fall var(--d) cubic-bezier(.25, .6, .5, 1) var(--delay) forwards;border-radius:3px;position:absolute}.confetti span.emoji{background:0 0;width:auto;height:auto;font-size:1.6rem}.label-sheet{background:var(--surface-2);border-radius:var(--radius);gap:6px;padding:10px;display:grid}.label-sheet.labels-small{grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}.label-sheet.labels-large{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}.label{color:#1d2b22;background:#fff;border-radius:8px;align-items:center;gap:10px;padding:10px;display:flex;overflow:hidden}.label-qr{flex:none;width:92px}.labels-large .label-qr{width:130px}.label-qr svg{width:100%;height:auto;display:block}.label-text{flex-direction:column;min-width:0;display:flex}.label-text strong{-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:.95rem;line-height:1.15;display:-webkit-box;overflow:hidden}.label-code{letter-spacing:.12em;margin-top:2px;font-family:ui-monospace,SF Mono,Menlo,monospace;font-size:1.1rem;font-weight:800}.label-text small{color:#55604f;margin-top:2px;font-size:.65rem;line-height:1.2}@media print{@page{size:A4;margin:0}body{background:#fff;padding:0}#top,#tabbar,#toasts,.no-print{display:none!important}main{max-width:none;padding:0}.label-sheet{background:0 0;border-radius:0;gap:0;padding:0}.label-sheet.labels-small{grid-template-columns:repeat(3,70mm);grid-auto-rows:37mm}.label-sheet.labels-large{grid-template-columns:repeat(2,105mm);grid-auto-rows:57mm;padding-top:6mm}.label{break-inside:avoid;border-radius:0;gap:3mm;padding:3mm}.labels-small .label-qr{width:28mm}.labels-large .label-qr{width:44mm}.labels-small .label-text strong{font-size:9pt}.labels-small .label-code{font-size:10pt}.labels-small .label-text small{font-size:6pt}.labels-large .label-text strong{font-size:12pt}.labels-large .label-code{font-size:14pt}.labels-large .label-text small{font-size:8pt}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes bounce{0%,to{transform:translateY(0)}50%{transform:translateY(-10px)}}@keyframes pulse{0%,to{box-shadow:0 4px 14px #2f7d4f47}50%{box-shadow:0 4px 14px #2f7d4f47,0 0 0 10px #2f7d4f2e}}@keyframes pop-in{0%{opacity:0;transform:scale(.3)}to{opacity:1;transform:scale(1)}}@keyframes wave{0%,to{transform:rotate(0)}25%{transform:rotate(18deg)}75%{transform:rotate(-10deg)}}@keyframes breathe{0%,to{transform:scale(1)}50%{transform:scale(1.04)}}@keyframes sheet-in{0%{opacity:0;transform:translateY(40px)}}@keyframes sheet-out{to{opacity:0;transform:translateY(40px)}}@keyframes toast-in{0%{opacity:0;transform:translateY(16px)scale(.95)}}@keyframes fall{to{transform:translate(var(--dx), 110vh) rotate(var(--r))}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
