:root{--bg:#faf7f2;--surface:#fff;--surface-muted:#f3eee6;--border:#e8e0d4;--border-strong:#d6cbb9;--text:#2a2421;--text-secondary:#6e6259;--text-muted:#9a8e84;--owned-bg:#e7f5ec;--owned-text:#1f6f43;--owned-border:#b7e4c7;--wishlist-bg:#fdecef;--wishlist-text:#b9314f;--wishlist-border:#f7c2ce;--dup-bg:#f0ecfa;--dup-text:#5b3fa6;--dup-border:#d4c7f2;--secret-bg:linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fcd34d 100%);--secret-text:#854d0e;--shadow-sm:0 2px 8px #2a24210d;--shadow-md:0 8px 24px #2a242114;--shadow-lg:0 20px 50px #2a242129;--radius-sm:10px;--radius-md:16px;--radius-lg:22px;--radius-pill:999px}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{background-color:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;min-height:100dvh;margin:0;padding:0;font-family:Plus Jakarta Sans,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}h1,h2,h3,.font-display{letter-spacing:-.02em;font-family:Fraunces,Georgia,serif}button,input,select,textarea{color:inherit;font-family:inherit}.app-shell{min-height:100dvh;padding-bottom:calc(32px + env(safe-area-inset-bottom));flex-direction:column;display:flex}.top-header{z-index:40;-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--border);padding-top:env(safe-area-inset-top);background:#faf7f2e0;position:sticky;top:0}.header-inner{justify-content:space-between;align-items:center;gap:12px;max-width:1180px;margin:0 auto;padding:14px 20px;display:flex}.brand{cursor:pointer;text-align:left;background:0 0;border:none;align-items:center;gap:12px;padding:0;display:flex}.brand-icon{object-fit:cover;width:40px;height:40px;box-shadow:var(--shadow-sm);border:1px solid var(--border);border-radius:12px}.brand-title{color:var(--text);margin:0;font-size:1.35rem;font-weight:700;line-height:1.1}.brand-sub{color:var(--text-secondary);margin:2px 0 0;font-size:.76rem;font-weight:500}.header-actions{align-items:center;gap:8px;display:flex}.btn{border-radius:var(--radius-pill);border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer;justify-content:center;align-items:center;gap:6px;padding:8px 14px;font-size:.85rem;font-weight:600;transition:transform .14s,background-color .15s,border-color .15s,box-shadow .15s;display:inline-flex}.btn:hover{background:var(--surface-muted);border-color:var(--border-strong)}.btn:active{transform:scale(.97)}.btn-primary{background:var(--text);color:#fff;border-color:var(--text)}.btn-primary:hover{background:#3d3530;border-color:#3d3530}.btn-icon-only{width:38px;height:38px;padding:0}.offline-pill{border-radius:var(--radius-pill);color:#92400e;background:#fef3c7;border:1px solid #fde68a;align-items:center;gap:5px;padding:5px 10px;font-size:.75rem;font-weight:600;display:inline-flex}.tabs-bar{scrollbar-width:none;gap:8px;max-width:1180px;margin:0 auto;padding:0 20px 12px;display:flex;overflow-x:auto}.tabs-bar::-webkit-scrollbar{display:none}.tab-pill{border-radius:var(--radius-pill);border:1px solid var(--border);background:var(--surface);color:var(--text-secondary);cursor:pointer;white-space:nowrap;flex:none;align-items:center;gap:7px;padding:7px 14px;font-size:.84rem;font-weight:600;transition:all .15s;display:inline-flex}.tab-pill:hover{border-color:var(--border-strong);color:var(--text)}.tab-pill.active{background:var(--text);color:#fff;border-color:var(--text);box-shadow:var(--shadow-sm)}.tab-count{border-radius:var(--radius-pill);color:inherit;background:#0000000f;padding:1px 6px;font-size:.72rem}.tab-pill.active .tab-count{background:#ffffff38}.main-content{flex:1;width:100%;max-width:1180px;margin:0 auto;padding:20px}.stats-strip{grid-template-columns:repeat(6,1fr);gap:12px;margin-bottom:22px;display:grid}@media (width<=1024px){.stats-strip{grid-template-columns:repeat(3,1fr)}}.stat-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);box-shadow:var(--shadow-sm);padding:14px 16px}.stat-label{color:var(--text-secondary);text-transform:uppercase;letter-spacing:.04em;font-size:.76rem;font-weight:600}.stat-value-row{align-items:baseline;gap:6px;margin-top:4px;display:flex}.stat-value{font-family:Fraunces,Georgia,serif;font-size:1.55rem;font-weight:700;line-height:1.1}.stat-sub{color:var(--text-muted);font-size:.8rem;font-weight:500}.progress-track{border-radius:var(--radius-pill);background:var(--surface-muted);width:100%;height:7px;margin-top:8px;overflow:hidden}.progress-fill{border-radius:var(--radius-pill);height:100%;transition:width .35s cubic-bezier(.22,1,.36,1)}.overview-grid{grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:18px;display:grid}.collection-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);cursor:pointer;box-shadow:var(--shadow-sm);text-align:left;flex-direction:column;gap:14px;padding:16px;transition:transform .18s,box-shadow .18s,border-color .18s;display:flex}.collection-card:hover{box-shadow:var(--shadow-md);border-color:var(--border-strong);transform:translateY(-3px)}.collection-mosaic{grid-template-columns:repeat(4,1fr);gap:8px;display:grid}.mosaic-thumb{aspect-ratio:1;border:1px solid var(--border);background:#fff;border-radius:12px;position:relative;overflow:hidden}.mosaic-thumb img{object-fit:cover;width:100%;height:100%;display:block}.mosaic-thumb.is-owned:after{content:"✓";color:#fff;background:#1f6f43;border-radius:50%;justify-content:center;align-items:center;width:18px;height:18px;font-size:10px;font-weight:700;display:flex;position:absolute;bottom:4px;right:4px}.pkmn-logo-frame{background:var(--bg);border:1px solid var(--border);border-radius:14px;justify-content:center;align-items:center;height:76px;padding:10px 16px;display:flex;overflow:hidden}.pkmn-logo-frame img{object-fit:contain;max-width:100%;max-height:100%}.collection-card-header{justify-content:space-between;align-items:flex-start;gap:10px;display:flex}.collection-card-title{color:var(--text);margin:0;font-size:1.18rem;font-weight:700}.collection-card-sub{color:var(--text-secondary);margin:2px 0 0;font-size:.82rem}.collection-badge{border-radius:var(--radius-pill);white-space:nowrap;padding:4px 10px;font-size:.74rem;font-weight:700}.collection-hero{border-radius:var(--radius-lg);border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow-sm);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:14px;margin-bottom:18px;padding:18px 20px;display:flex}.collection-hero-left{align-items:center;gap:14px;display:flex}.collection-emoji-badge{border-radius:16px;justify-content:center;align-items:center;width:50px;height:50px;font-size:1.6rem;display:flex}.back-link{color:var(--text-secondary);cursor:pointer;background:0 0;border:none;align-items:center;gap:5px;margin-bottom:4px;padding:0;font-size:.8rem;font-weight:700;display:inline-flex}.back-link:hover{color:var(--text)}.sonny-mode-bar{background:var(--surface-muted);border:1px solid var(--border);border-radius:18px;flex-wrap:wrap;gap:4px;width:fit-content;max-width:100%;margin-bottom:12px;padding:4px;display:flex}.sonny-mode-btn{border-radius:var(--radius-pill);color:var(--text-secondary);cursor:pointer;background:0 0;border:none;padding:7px 14px;font-size:.82rem;font-weight:700;transition:all .15s}.sonny-mode-btn:hover{color:var(--text)}.sonny-mode-btn.active{background:var(--surface);color:var(--text);box-shadow:var(--shadow-sm)}.subtabs-bar{scrollbar-width:none;gap:7px;margin-bottom:16px;padding-bottom:4px;display:flex;overflow-x:auto}.subtabs-bar::-webkit-scrollbar{display:none}.subtab-pill{border-radius:var(--radius-pill);border:1px solid var(--border);background:var(--surface);color:var(--text-secondary);cursor:pointer;white-space:nowrap;flex:none;align-items:center;gap:6px;padding:6px 12px;font-size:.8rem;font-weight:600;transition:all .15s;display:inline-flex}.subtab-pill:hover{border-color:var(--border-strong);color:var(--text)}.subtab-pill.active{color:#fff;background:#e86a7d;border-color:#e86a7d}.subtab-pill.active .tab-count{background:#ffffff3d}.toolbar{flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:18px;display:flex}.search-box{flex:220px;min-width:190px;position:relative}.search-box svg{color:var(--text-muted);pointer-events:none;position:absolute;top:50%;left:13px;transform:translateY(-50%)}.search-input{border-radius:var(--radius-pill);border:1px solid var(--border);background:var(--surface);outline:none;width:100%;padding:10px 14px 10px 38px;font-size:.9rem;transition:border-color .15s,box-shadow .15s}.search-input:focus{border-color:var(--text);box-shadow:0 0 0 3px #2a242114}.filter-pills{flex-wrap:wrap;gap:6px;display:flex}.filter-pill{border-radius:var(--radius-pill);border:1px solid var(--border);background:var(--surface);color:var(--text-secondary);cursor:pointer;padding:8px 13px;font-size:.82rem;font-weight:600;transition:all .15s}.filter-pill:hover{border-color:var(--border-strong);color:var(--text)}.filter-pill.active{background:var(--text);color:#fff;border-color:var(--text)}.items-grid{grid-template-columns:repeat(auto-fill,minmax(215px,1fr));gap:16px;display:grid}.item-card{background:var(--surface);border:1.5px solid var(--border);border-radius:var(--radius-md);box-shadow:var(--shadow-sm);flex-direction:column;transition:transform .16s,box-shadow .16s,border-color .16s;display:flex;position:relative;overflow:hidden}.item-card:hover{box-shadow:var(--shadow-md);transform:translateY(-2px)}.item-card.status-owned{border-color:var(--owned-border)}.item-card.status-wishlist{border-color:var(--wishlist-border)}.item-card.status-duplicate{border-color:var(--dup-border)}.item-image-wrap{aspect-ratio:1;cursor:pointer;border-bottom:1px solid var(--surface-muted);background:#fff;position:relative;overflow:hidden}.item-image{object-fit:contain;width:100%;height:100%;padding:10px;transition:transform .25s,filter .2s,opacity .2s;display:block}.item-card:hover .item-image{transform:scale(1.04)}.item-card.status-unowned .item-image{opacity:.88}.item-top-badges{pointer-events:none;justify-content:space-between;align-items:flex-start;gap:6px;display:flex;position:absolute;top:10px;left:10px;right:10px}.rarity-badge{border-radius:var(--radius-pill);letter-spacing:.03em;text-transform:uppercase;padding:3px 8px;font-size:.68rem;font-weight:700}.rarity-Secret{background:var(--secret-bg);color:var(--secret-text);box-shadow:0 2px 8px #f59e0b40}.rarity-Special{color:#3730a3;background:#eef2ff}.rarity-Lucky{color:#166534;background:linear-gradient(135deg,#dcfce7 0%,#bbf7d0 100%);box-shadow:0 2px 8px #22c55e38}.qty-badge{border-radius:var(--radius-pill);background:var(--text);color:#fff;padding:3px 8px;font-size:.72rem;font-weight:700}.item-body{flex-direction:column;flex:1;gap:10px;padding:12px 13px 13px;display:flex}.item-meta{cursor:pointer}.item-title-row{justify-content:space-between;align-items:flex-start;gap:6px;display:flex}.item-price{color:var(--text-secondary);background:var(--surface-muted);border-radius:var(--radius-pill);white-space:nowrap;flex:none;padding:2px 7px;font-size:.78rem;font-weight:700}.item-name{color:var(--text);margin:0;font-size:.96rem;font-weight:700;line-height:1.25}.item-series{color:var(--text-secondary);margin:3px 0 0;font-size:.77rem}.item-actions{align-items:center;gap:6px;margin-top:auto;display:flex}.quick-btn{border:1px solid var(--border);background:var(--bg);color:var(--text-secondary);cursor:pointer;border-radius:10px;flex:1;justify-content:center;align-items:center;gap:5px;padding:7px 10px;font-size:.78rem;font-weight:600;transition:all .15s;display:inline-flex}.quick-btn:hover{border-color:var(--border-strong);color:var(--text)}.quick-btn.active-owned{background:var(--owned-bg);color:var(--owned-text);border-color:var(--owned-border)}.quick-btn.active-dup{background:var(--dup-bg);color:var(--dup-text);border-color:var(--dup-border)}.quick-btn-icon{flex:0 0 34px;padding:7px 0}.quick-btn.active-wishlist{background:var(--wishlist-bg);color:var(--wishlist-text);border-color:var(--wishlist-border)}.modal-backdrop{z-index:100;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:#1c171485;justify-content:center;align-items:center;padding:16px;animation:.15s fadeIn;display:flex;position:fixed;inset:0}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.modal-card{background:var(--surface);width:100%;max-width:480px;max-height:90dvh;box-shadow:var(--shadow-lg);border:1px solid var(--border);border-radius:24px;animation:.2s cubic-bezier(.22,1,.36,1) slideUp;overflow-y:auto}@keyframes slideUp{0%{opacity:0;transform:translateY(14px)scale(.98)}to{opacity:1;transform:translateY(0)scale(1)}}.modal-header{border-bottom:1px solid var(--border);background:var(--surface);z-index:2;justify-content:space-between;align-items:center;padding:16px 20px;display:flex;position:sticky;top:0}.modal-header h3{margin:0;font-size:1.15rem}.modal-body{flex-direction:column;gap:16px;padding:20px;display:flex}.detail-photo-frame{aspect-ratio:4/3;border:1px solid var(--border);background:#fff;border-radius:16px;justify-content:center;align-items:center;width:100%;padding:14px;display:flex}.detail-photo-frame img{object-fit:contain;max-width:100%;max-height:100%}.status-grid{grid-template-columns:repeat(2,1fr);gap:8px;display:grid}.status-option{border:1.5px solid var(--border);background:var(--bg);cursor:pointer;border-radius:12px;justify-content:center;align-items:center;gap:7px;padding:10px 12px;font-size:.85rem;font-weight:600;transition:all .15s;display:flex}.status-option.selected-unowned{background:var(--surface-muted);border-color:var(--text);color:var(--text)}.status-option.selected-owned{background:var(--owned-bg);border-color:var(--owned-text);color:var(--owned-text)}.status-option.selected-wishlist{background:var(--wishlist-bg);border-color:var(--wishlist-text);color:var(--wishlist-text)}.status-option.selected-duplicate{background:var(--dup-bg);border-color:var(--dup-text);color:var(--dup-text)}.field-group{flex-direction:column;gap:6px;display:flex}.field-label{color:var(--text-secondary);font-size:.8rem;font-weight:700}.field-input,.field-select,.field-textarea{border:1px solid var(--border);background:var(--bg);border-radius:12px;outline:none;width:100%;padding:10px 12px;font-size:.9rem}.field-input:focus,.field-select:focus,.field-textarea:focus{border-color:var(--text);background:var(--surface)}.stepper{background:var(--bg);border:1px solid var(--border);border-radius:12px;align-items:center;gap:12px;width:fit-content;padding:4px 8px;display:inline-flex}.stepper button{background:var(--surface);cursor:pointer;width:32px;height:32px;box-shadow:var(--shadow-sm);border:none;border-radius:8px;justify-content:center;align-items:center;font-size:1.1rem;font-weight:700;display:flex}.stepper span{text-align:center;min-width:24px;font-weight:700}.empty-state{text-align:center;background:var(--surface);border:1px dashed var(--border-strong);border-radius:var(--radius-lg);color:var(--text-secondary);padding:48px 20px}.toast{z-index:200;background:var(--text);color:#fff;border-radius:var(--radius-pill);box-shadow:var(--shadow-md);padding:10px 18px;font-size:.85rem;font-weight:600;position:fixed;bottom:24px;left:50%;transform:translate(-50%)}@media (width<=720px){.stats-strip{grid-template-columns:repeat(2,1fr)}.items-grid{grid-template-columns:repeat(2,1fr);gap:12px}.header-inner{padding:12px 14px}.tabs-bar{padding:0 14px 10px}.main-content{padding:14px}.brand-sub,.hide-mobile{display:none}}
