.pill{white-space:nowrap;border-radius:999px;align-items:center;min-height:24px;padding:2px 10px;font-size:13px;font-weight:600;display:inline-flex}.pill-owned,.pill-public{background:var(--owned-bg);color:var(--owned-text)}.pill-ordered{background:var(--ordered-bg);color:var(--ordered-text)}.pill-need{background:var(--need-bg);color:var(--need-text)}.pill-private,.pill-read_only{background:var(--bg);color:var(--muted);border:1px solid var(--chip-line)}.sheet{background:0 0;border:0;width:100%;max-width:none;height:100dvh;max-height:none;margin:0;padding:0}.sheet::backdrop{background:#1c1b1959}.sheet-body{max-height:85dvh;padding:8px 16px calc(16px + env(safe-area-inset-bottom));background:var(--surface);border-radius:16px 16px 0 0;position:absolute;bottom:0;left:0;right:0;overflow:auto}.sheet-handle{background:var(--chip-line);border-radius:2px;width:40px;height:4px;margin:4px auto 8px}.sheet-head{justify-content:space-between;align-items:center;gap:8px;display:flex}.sheet-head h2{margin:0;font-size:18px}.sheet-close{min-width:var(--tap);min-height:var(--tap);background:0 0;border:0;font-size:24px}@media (width>=1000px){.sheet-body{border-radius:var(--radius);width:min(520px,92vw);inset:50% auto auto 50%;transform:translate(-50%,-50%)}.sheet-handle{display:none}}.confirm{gap:12px;display:grid}.confirm p{margin:0}.confirm-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.chips{gap:8px;display:flex;overflow-x:auto}.chip{min-height:var(--tap);border:1px solid var(--chip-line);background:var(--surface);white-space:nowrap;border-radius:999px;padding:0 14px}.chip[aria-pressed=true]{background:var(--text);border-color:var(--text);color:var(--surface)}.segmented{border:1px solid var(--chip-line);border-radius:var(--radius);background:var(--bg);grid-auto-columns:1fr;grid-auto-flow:column;gap:4px;padding:4px;display:grid}.segmented button{min-height:var(--tap);border-radius:var(--radius-sm);background:0 0;border:0;font-weight:600}.segmented button[aria-pressed=true]{background:var(--surface);box-shadow:0 1px 2px #0000001f}.segmented button.seg-owned[aria-pressed=true]{background:var(--owned-bg);color:var(--owned-text)}.segmented button.seg-ordered[aria-pressed=true]{background:var(--ordered-bg);color:var(--ordered-text)}.segmented button.seg-need[aria-pressed=true]{background:var(--need-bg);color:var(--need-text)}.segmented button:disabled{cursor:default}.switch-row{min-height:var(--tap);justify-content:space-between;align-items:center;gap:12px;display:flex}.sync-indicator{min-height:var(--tap);border:1px solid var(--chip-line);background:var(--surface);white-space:nowrap;border-radius:999px;align-items:center;gap:6px;padding:0 10px;font-size:13px;font-weight:600;display:inline-flex}.sync-dot{background:var(--owned-text);border-radius:50%;width:8px;height:8px}.sync-pending .sync-dot,.sync-offline .sync-dot,.sync-server_unreachable .sync-dot{background:var(--ordered-text)}.sync-auth_required .sync-dot{background:var(--need-text)}.sync-indicator[aria-busy=true] .sync-dot{animation:1s ease-in-out infinite sync-pulse}@keyframes sync-pulse{50%{opacity:.3}}@media (prefers-reduced-motion:reduce){.sync-indicator[aria-busy=true] .sync-dot{animation:none}}.sync-alert{background:var(--need-text);color:#fff;border-radius:50%;place-items:center;width:18px;height:18px;font-size:12px;display:inline-grid}.sync-overview{gap:10px;display:grid}.sync-overview p{margin:0}.sync-overview h3{color:var(--muted);letter-spacing:.04em;text-transform:uppercase;margin:8px 0 0;font-size:13px}.sync-overview ul{gap:6px;margin:0;padding:0;list-style:none;display:grid}.sync-overview li{border-radius:var(--radius-sm);background:var(--bg);padding:8px 10px}.sync-overview li.sync-rejection{background:var(--need-bg);color:var(--need-text);gap:6px;display:grid}.sync-state{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.splash{place-items:center;min-height:100vh;display:grid}.app-header{z-index:5;padding:calc(8px + env(safe-area-inset-top)) 12px 8px;background:var(--bg);border-bottom:1px solid var(--line);align-items:center;gap:8px;display:flex;position:sticky;top:0}.app-switch{min-height:var(--tap);background:0 0;border:0;align-items:center;gap:6px;max-width:55vw;padding:0 8px;font-size:18px;font-weight:700;display:inline-flex}.app-switch-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.app-header-badge{display:none}.app-header-slot{flex:1;min-width:0}.avatar{width:var(--tap);height:var(--tap);background:var(--accent);color:var(--accent-text);border:0;border-radius:50%;flex:none;font-weight:700}.profile{gap:8px;display:grid}.profile p{margin:0}.profile-name{font-weight:700}@media (width>=1000px){.app-header{gap:12px;padding:10px 20px}.app-header-badge{display:inline-flex}.app-switch{max-width:360px}}.card-image{object-fit:contain;background:var(--bg);border-radius:6px;display:block}.card-image.placeholder{background:repeating-linear-gradient(45deg, var(--bg), var(--bg) 6px, var(--line) 6px, var(--line) 12px)}.card-image.thumb{width:48px;height:64px}.collection-page{flex-direction:column;min-height:100vh;display:flex}.collection-list{flex-direction:column;gap:10px;padding:10px 12px 96px;display:flex}.search-box{width:100%;min-height:var(--tap);border:1px solid var(--chip-line);background:var(--surface);border-radius:999px;padding:0 14px}.app-header-slot .search-box{max-width:420px}.card-toolbar{gap:8px;display:grid}.card-toolbar-row{justify-content:space-between;align-items:center;gap:8px;display:flex}.sort-select select{min-height:var(--tap);border:1px solid var(--chip-line);border-radius:var(--radius-sm);background:var(--surface);padding:0 10px}.card-rows{gap:6px;margin:0;padding:0;list-style:none;display:grid}.card-row{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);min-height:64px;color:inherit;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:10px;padding:8px 10px;text-decoration:none;display:grid}.card-row-text{min-width:0;display:grid}.card-row-text b,.card-row-text small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.card-row-text small{color:var(--muted)}.card-row-end{justify-items:end;gap:4px;font-size:14px;display:grid}.group-head{grid-template-columns:auto auto minmax(0,1fr);align-items:center;gap:10px;padding:10px 4px 2px;display:grid}.group-head progress{width:100%;height:6px;accent-color:var(--accent)}.fab{right:16px;bottom:calc(16px + env(safe-area-inset-bottom));background:var(--accent);width:56px;height:56px;color:var(--accent-text);border-radius:50%;place-items:center;font-size:28px;text-decoration:none;display:grid;position:fixed;box-shadow:0 4px 12px #0003}.card-list-empty{text-align:center;padding:24px 0}.collection-page.desktop .collection-main{flex:1;grid-template-columns:minmax(0,1fr) 380px;min-height:0;display:grid}.collection-page.desktop .collection-list{padding:16px 20px;overflow:auto}.collection-detail{background:var(--surface);border-left:1px solid var(--line);overflow:auto}.detail-empty{padding:24px}.card-table{border-collapse:collapse;background:var(--surface);width:100%}.card-table th,.card-table td{border-bottom:1px solid var(--line);text-align:left;padding:8px 10px;font-size:14px}.card-table thead th{color:var(--muted);font-size:13px;font-weight:600}.card-table .num{text-align:right;white-space:nowrap}.card-table tbody tr[data-testid=card-row]{cursor:pointer}.card-table tbody tr[aria-current=true]{background:var(--owned-bg)}.card-table .group-row th{background:var(--bg);font-size:13px}.card-table .card-name{color:inherit;align-items:center;gap:10px;text-decoration:none;display:flex}.card-table .card-name .card-image{width:32px;height:44px}.card-table small{color:var(--muted);display:block}.page{flex-direction:column;min-height:100vh;display:flex}.switcher{gap:12px;display:grid}.switcher-group h3{color:var(--muted);letter-spacing:.04em;text-transform:uppercase;margin:4px 0;font-size:13px}.switcher-group ul{gap:6px;margin:0;padding:0;list-style:none;display:grid}.switcher-item{border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);text-align:left;justify-content:space-between;align-items:center;gap:12px;width:100%;min-height:56px;padding:8px 12px;display:flex}.switcher-item[aria-current=true]{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}.switcher-text{min-width:0;display:grid}.switcher-text b{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.switcher-text small{color:var(--muted)}.switcher-actions{gap:8px;display:grid}.empty-state{text-align:center;flex:1;place-content:center;justify-items:center;gap:12px;padding:24px 16px;display:grid}.empty-state h1{margin:0;font-size:22px}.empty-state p{max-width:34ch;margin:0}.new-collection{gap:12px;display:grid}.new-collection p{margin:0}.card-detail{touch-action:pan-y;gap:14px;padding:0 16px 24px;display:grid}.detail-bar{z-index:4;min-height:52px;padding:env(safe-area-inset-top) 8px 0;background:var(--surface);border-bottom:1px solid var(--line);grid-template-columns:1fr auto 1fr;align-items:center;margin:0 -16px;display:grid;position:sticky;top:0}.detail-bar a{min-height:var(--tap);color:var(--accent);align-items:center;padding:0 8px;font-weight:600;text-decoration:none;display:inline-flex}.detail-bar .detail-edit{justify-self:end}.detail-title{font-weight:700}.detail-hero{place-items:center;padding-top:8px;display:grid}.detail-image{aspect-ratio:63/88;border-radius:12px;width:min(70vw,260px);height:auto}.detail-names h1{margin:0;font-size:24px}.detail-names p{color:var(--muted);margin:2px 0 0}.detail-set{color:var(--muted);align-items:center;gap:8px;margin:0;display:flex}.detail-symbol{width:20px;height:20px}.detail-facts{grid-template-columns:1fr 1fr;gap:8px;margin:0;display:grid}.detail-facts div{border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);padding:10px 12px}.detail-facts .wide{grid-column:1/-1}.detail-facts dt{color:var(--muted);font-size:12px}.detail-facts dd{margin:2px 0 0;font-weight:600}.detail-nav{grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;display:grid}.detail-nav a:not(.button){min-height:var(--tap);color:var(--accent);align-items:center;text-decoration:none;display:inline-flex}.detail-nav .next{justify-self:end}.image-field-label{color:var(--muted);font-size:13px}.image-field-row{align-items:center;gap:12px;display:flex}.image-field-preview{width:72px;height:100px}.image-field-symbol{width:40px;height:40px}.image-field-actions{flex-wrap:wrap;gap:8px;display:flex}.image-field .button.disabled{opacity:.5;pointer-events:none}.card-form{gap:16px;padding:0 16px 32px;display:grid}.form-bar{z-index:4;min-height:52px;padding:env(safe-area-inset-top) 8px 0;background:var(--surface);border-bottom:1px solid var(--line);grid-template-columns:1fr auto 1fr;align-items:center;margin:0 -16px;display:grid;position:sticky;top:0}.form-bar a,.form-save{min-height:var(--tap);color:var(--accent);background:0 0;border:0;align-items:center;padding:0 8px;font-weight:600;text-decoration:none;display:inline-flex}.form-save{justify-self:end}.form-title{margin:0;font-size:16px}.card-form fieldset{border:0;gap:12px;margin:0;padding:0;display:grid}.card-form legend{color:var(--muted);letter-spacing:.04em;text-transform:uppercase;margin-bottom:4px;font-size:13px}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.form-grid input,.form-grid select,.form-grid textarea{width:100%;min-width:0}.form-error{border-radius:var(--radius-sm);background:var(--need-bg);color:var(--need-text);margin:12px 0 0;padding:10px 12px}.card-form-message{gap:8px;padding:24px 16px;display:grid}.card-form-message p{margin:0}.switch-row input[type=checkbox]{width:24px;height:24px;accent-color:var(--accent)}.login{place-items:center;min-height:100vh;padding:24px 16px;display:grid}.login-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);gap:14px;width:min(100%,380px);padding:24px;display:grid}.login-card h1{margin:0;font-size:26px}.login-card p{margin:0}.login-offline{border-radius:var(--radius-sm);background:var(--ordered-bg);color:var(--ordered-text);padding:10px 12px}.login-error{color:var(--danger)}.pwa-banner{left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));z-index:20;border-radius:var(--radius);background:var(--text);color:var(--surface);flex-wrap:wrap;align-items:center;gap:8px;padding:10px 12px;display:flex;position:fixed;box-shadow:0 6px 20px #00000040}.pwa-banner span{flex:200px}@media (width>=1000px){.pwa-banner{width:440px;left:auto}}:root{--bg:#f6f5f2;--surface:#fff;--text:#1c1b19;--muted:#8a8578;--line:#ebe8e1;--chip-line:#e2dfd6;--accent:#2f5d50;--accent-text:#fff;--owned-bg:#dcefe6;--owned-text:#1f6b4c;--ordered-bg:#fbecd0;--ordered-text:#8a5a00;--need-bg:#f6e0e3;--need-text:#9b2c42;--danger:#9b2c42;--radius:12px;--radius-sm:10px;--tap:44px;--font:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}*,:before,:after{box-sizing:border-box}html,body{height:100%;margin:0}body{background:var(--bg);color:var(--text);font-family:var(--font);-webkit-font-smoothing:antialiased;font-size:16px;line-height:1.4}#root{min-height:100%}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}a{color:var(--accent)}:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.visually-hidden{clip:rect(0 0 0 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.muted{color:var(--muted)}.button{min-height:var(--tap);border:1px solid var(--chip-line);border-radius:var(--radius-sm);background:var(--surface);color:var(--text);justify-content:center;align-items:center;gap:6px;padding:0 16px;font-weight:600;text-decoration:none;display:inline-flex}.button.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}.button.danger{color:var(--danger)}.button:disabled{opacity:.5;cursor:default}.field{gap:4px;display:grid}.field label{color:var(--muted);font-size:13px}.field input,.field select,.field textarea{min-height:var(--tap);border:1px solid var(--chip-line);border-radius:var(--radius-sm);background:var(--surface);padding:8px 12px}.field .error{color:var(--danger);font-size:13px}.field .hint{color:var(--muted);font-size:13px}
