:root{color-scheme:light;--bg:#f4f6f2;--surface:#fff;--soft:#eef2ec;--text:#20392f;--muted:#5b6d63;--line:#e0e7de;--control:#bcc9bf;--accent:#296549;--accent-soft:#e5eee5;--button-text:#fff;--warning:#84551d;--warning-soft:#f8efdd;--danger:#ab4034;--danger-soft:#f9e9e5;--radius:14px;--gap:16px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px}
:root[data-theme=dark]{color-scheme:dark;--bg:#14231f;--surface:#1b2d26;--soft:#22372d;--text:#e7eee6;--muted:#b0c0b4;--line:#344a3c;--control:#637e6d;--accent:#afd4b5;--accent-soft:#2d4936;--button-text:#172b1e;--warning:#edc188;--warning-soft:#463a26;--danger:#ffb3a4;--danger-soft:#482e29}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}[hidden]{display:none!important}::selection{background:var(--accent);color:var(--button-text)}*{scrollbar-color:var(--control) transparent;scrollbar-width:thin}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 16px;border:1px solid var(--control);border-radius:8px;background:var(--surface);color:var(--text);font-weight:550;cursor:pointer;text-decoration:none;line-height:1.35}button:hover,.button:hover{border-color:var(--accent);background:var(--soft)}button:disabled{opacity:.65;cursor:wait}.primary{background:var(--accent);border-color:var(--accent);color:var(--button-text)}.primary:hover{background:var(--accent);filter:brightness(.94)}.quiet{background:transparent;border-color:transparent}.danger{color:var(--danger)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:3px}a{color:var(--accent);text-underline-offset:4px}h1,h2,h3,p{margin-top:0}h1{font-size:30px;line-height:1.2;letter-spacing:-.03em;font-weight:600;margin-bottom:9px;text-wrap:balance}h2{font-size:19px;line-height:1.35;font-weight:600;letter-spacing:-.015em;margin-bottom:12px}h3{font-size:16px;margin-bottom:7px;font-weight:600}p{line-height:1.65;max-width:70ch}.muted,small{color:var(--muted)}small{font-size:12px;line-height:1.6}.num{font-variant-numeric:tabular-nums}svg.icon{width:19px;height:19px;flex:none;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}.icon-button{padding:10px;min-width:44px;border-color:transparent;background:transparent}.brand{display:flex;align-items:center;gap:10px;color:var(--text);text-decoration:none;font-size:25px;letter-spacing:-.035em;font-weight:650}.brand small{display:block;font-size:10px;font-weight:400;letter-spacing:0;margin-top:4px}.brand img{flex:none;border-radius:9px}.skip{position:fixed;top:-100px;left:16px;z-index:100;background:var(--surface);padding:14px}.skip:focus{top:12px}.shell{display:grid;grid-template-columns:228px minmax(0,1fr);min-height:100vh}.sidebar{height:100dvh;position:sticky;top:0;display:flex;flex-direction:column;padding:28px 16px 18px;overflow:auto}.sidebar>.brand{padding:0 8px 36px}.sidebar nav{display:grid;gap:6px}.sidebar nav a,.sidebar-bottom>a{display:flex;align-items:center;gap:11px;min-height:46px;padding:11px 13px;text-decoration:none;color:var(--muted);border-radius:8px}.sidebar a.active{background:var(--soft);color:var(--text);font-weight:600}.sidebar nav a:hover,.sidebar-bottom>a:hover{color:var(--text);background:var(--soft)}.sidebar-bottom{margin-top:auto;padding-top:32px}.sidebar-bottom>small{display:block;padding:10px 13px;font-size:11px}.sidebar-bottom .quiet{font-size:12px;justify-content:flex-start;width:100%;padding-left:13px}.sidebar-bottom .quiet span{margin-left:auto}.source-links{border-top:1px solid var(--line);margin-top:15px;padding:17px 13px 4px;display:grid;gap:9px;font-size:11px}.source-links a{color:var(--muted)}.appearance{padding:18px 13px 8px}.appearance label{font-size:11px;margin-bottom:7px}.appearance select{min-height:36px;padding:7px 9px;font-size:12px}.workspace{min-width:0}.topbar{height:68px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 36px;color:var(--muted);font-size:12px}.top-actions{display:flex;align-items:center;gap:12px}.avatar{height:30px;width:30px;border-radius:50%;display:grid;place-items:center;background:var(--soft);color:var(--text);font-size:12px;font-weight:600}main{background:var(--surface);border:1px solid var(--line);border-radius:16px;min-height:calc(100dvh - 76px);padding:32px;max-width:1500px;margin:0 8px 8px 0}main:focus{outline:none}.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:28px}.page-head p{color:var(--muted);margin-bottom:0;font-size:14px}.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:var(--soft);border-radius:var(--radius);margin-bottom:28px;padding:21px 0}.summary>div{padding:0 24px;border-right:1px solid var(--control)}.summary>div:last-child{border:0}.summary small{display:block;font-size:12px}.summary strong{font-size:28px;font-weight:400;letter-spacing:-.02em;display:block;margin-top:10px;font-variant-numeric:tabular-nums}.summary .attention{color:var(--warning)}.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:20px}.toolbar .search{max-width:320px;flex:1;min-width:180px}.toolbar select{width:auto;max-width:190px}.view-buttons{display:flex;margin-left:auto;gap:4px}.view-buttons button{padding:9px}.view-buttons .selected{background:var(--soft);border-color:var(--control)}input,select,textarea{display:block;width:100%;min-height:44px;padding:10px 12px;color:var(--text);background:var(--surface);border:1px solid var(--control);border-radius:8px;caret-color:var(--accent);min-width:0}input::placeholder{color:var(--muted);opacity:1}label{display:block;font-size:13px;color:var(--muted);margin-bottom:8px;font-weight:500}.field{margin-bottom:18px}.check{display:flex;align-items:center;gap:9px;margin:0;font-size:13px;min-height:44px}.check input{width:18px;min-height:18px;accent-color:var(--accent);margin:0}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(245px,100%),1fr));gap:var(--gap)}/* At 1440: 1440-228 sidebar-8 inset-66 main padding = 1138; four tracks plus three 16px gutters close the canvas. */
.set-card{display:flex;flex-direction:column;text-align:left;padding:0;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:var(--surface);min-width:0;color:var(--text);text-decoration:none}.set-card:hover{border-color:var(--accent)}.set-image{height:180px;background:var(--soft);display:flex;align-items:center;justify-content:center;padding:20px;position:relative}.set-image img{max-width:100%;max-height:100%;object-fit:contain}.set-image .placeholder{width:60px;height:60px;color:var(--muted);opacity:.55}.set-card-body{padding:19px;display:flex;flex:1;flex-direction:column}.set-card-body small{font-size:12px}.set-card h2{font-size:18px;margin:7px 0 9px;line-height:1.35}.set-card-body p{font-size:12px;color:var(--muted);margin:0 0 18px}.set-card-foot{border-top:1px solid var(--line);padding-top:13px;display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;font-size:12px}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:5px;padding:4px 7px;font-size:11px;font-weight:500;white-space:nowrap;background:var(--soft);color:var(--muted)}.badge.good{color:var(--accent);background:var(--accent-soft)}.badge.warn{color:var(--warning);background:var(--warning-soft)}.badge.bad{color:var(--danger);background:var(--danger-soft)}.section-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:28px 0 16px}.section-head h2{margin:0}.banner{padding:16px 19px;border-radius:10px;background:var(--soft);margin:0 0 20px;font-size:13px;line-height:1.65}.banner.warning{background:var(--warning-soft);color:var(--warning)}.banner.error{background:var(--danger-soft);color:var(--danger)}.empty{padding:52px 24px;text-align:center;background:var(--soft);border-radius:var(--radius)}.empty>svg{width:52px;height:52px;color:var(--accent);margin-bottom:20px}.empty p{max-width:480px;margin:0 auto 20px;color:var(--muted)}.empty .actions{justify-content:center}.empty h2{font-size:24px}.empty.compact{padding:30px 20px}.table-wrap{width:100%;overflow-x:auto;border:1px solid var(--line);border-radius:12px}table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}th{position:sticky;top:0;z-index:1;background:var(--surface);font-size:12px;color:var(--muted);font-weight:500;padding:13px 16px;white-space:nowrap}td{border-top:1px solid var(--line);padding:13px 16px;vertical-align:middle}td.num,th.num{text-align:right}.part-identity{display:flex;align-items:center;gap:12px;min-width:220px}.thumb{width:48px;height:48px;object-fit:contain;background:var(--soft);border-radius:7px;padding:3px}.thumb-fallback{display:grid;place-items:center;width:48px;height:48px;background:var(--soft);border-radius:7px;flex:none;color:var(--muted)}.part-identity small{display:block;margin-top:5px}.table-link{color:var(--text);font-weight:500;border:0;padding:0;background:none;min-height:32px;display:inline;text-align:left}.table-link:hover{background:none;color:var(--accent)}.missing-input{width:78px;text-align:right;display:inline-block}.missing-cell{display:flex;justify-content:flex-end;gap:7px;align-items:center}.missing-cell button{padding:8px 10px;min-height:44px}.row-links{display:flex;gap:12px;white-space:nowrap;font-size:12px}.row-links a{padding:7px 0}.paging{display:flex;justify-content:space-between;align-items:center;margin-top:16px;color:var(--muted);font-size:12px}.detail-top{display:grid;grid-template-columns:280px 1fr;gap:32px;margin-bottom:32px}.detail-art{height:240px;background:var(--soft);border-radius:var(--radius);display:grid;place-items:center;padding:24px}.detail-art img{max-height:100%;max-width:100%;object-fit:contain}.detail-art svg{width:70px;height:70px}.detail-meta{display:flex;gap:20px;flex-wrap:wrap;font-size:13px;color:var(--muted);margin:16px 0}.detail-flags{display:flex;gap:8px 22px;flex-wrap:wrap;margin:12px 0}.detail-label{display:flex;gap:8px;max-width:450px}.detail-label input{flex:1}.completion{margin:22px 0}.completion-label{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);margin-bottom:8px}.completion progress{width:100%;height:7px;accent-color:var(--accent)}.settings-row{display:grid;grid-template-columns:minmax(200px,.75fr) minmax(0,1.25fr);gap:32px;padding:28px 0;border-top:1px solid var(--line)}.settings-row:first-of-type{border-top:0}.settings-row>div>p{font-size:13px;color:var(--muted);max-width:43ch}.panel{background:var(--soft);border-radius:var(--radius);padding:24px;min-width:0}.panel>p{font-size:13px;color:var(--muted)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-grid .field{margin:0}.form-grid .wide{grid-column:1/-1}.add-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(240px,.75fr);gap:24px}.tabbar{display:flex;gap:20px;border-bottom:1px solid var(--line);margin-bottom:24px}.tabbar button{border:0;border-radius:0;background:none;padding:12px 0;border-bottom:2px solid transparent;color:var(--muted)}.tabbar button.active{border-bottom-color:var(--accent);color:var(--text)}.search-result{display:flex;width:100%;justify-content:space-between;align-items:center;padding:14px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none;text-align:left;font-size:13px}.search-result small{display:block;margin-top:5px}.job{padding:17px 0;border-top:1px solid var(--line);font-size:13px}.job:first-child{border-top:0}.job .row{margin:0 0 8px}.job progress{width:100%;accent-color:var(--accent);height:6px}.row{display:flex;justify-content:space-between;align-items:center;gap:14px}.auth-wrap{display:grid;grid-template-columns:1fr 1fr;min-height:100dvh}.auth-intro{padding:48px 64px;display:flex;flex-direction:column;justify-content:space-between;background:var(--soft)}.auth-intro h1{font-size:52px;font-weight:500;letter-spacing:-.035em;margin:60px 0 24px}.auth-intro p{color:var(--muted);max-width:390px}.auth-foot{font-size:12px;margin-bottom:0}.brick-mark{max-width:260px;color:var(--accent);margin:25px 0}.auth-form{padding:48px 40px;background:var(--surface);display:grid;align-items:center;justify-content:center}.auth-form>div{width:min(370px,100%)}.auth-form h2{font-size:28px;letter-spacing:-.025em}.auth-form p{font-size:14px;color:var(--muted)}.full{width:100%}.auth-form form{margin-top:28px}.password-row{position:relative}.password-row input{padding-right:65px}.password-row button{position:absolute;right:3px;top:3px;min-height:38px;padding:6px 9px;font-size:11px;border:0;background:none}.qr{width:190px;height:190px;background:#fff;padding:8px;border-radius:8px;margin:0 auto 18px;display:block}.code-list{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:18px;background:var(--soft);border-radius:8px;font-family:ui-monospace,monospace;font-size:13px;margin-bottom:20px;user-select:all}.secret{font-family:ui-monospace,monospace;word-break:break-all;font-size:13px!important}.error-text{color:var(--danger)!important;line-height:1.5;margin-top:16px}.form-error:empty{display:none}#notice{position:fixed;bottom:max(24px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);max-width:min(580px,calc(100% - 32px));z-index:100;background:var(--text);color:var(--surface);padding:14px 20px;border-radius:10px;box-shadow:0 8px 30px #0002;font-size:13px}dialog{padding:0;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--text);width:min(680px,calc(100% - 32px));max-height:85dvh;box-shadow:0 16px 60px #0003}dialog::backdrop{background:#10251c80}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 24px;border-bottom:1px solid var(--line)}.dialog-head h2{margin:0;font-size:21px}#dialog-body{padding:24px}#dialog-body img.enlarged{width:100%;max-height:60vh;object-fit:contain;background:var(--soft);border-radius:10px}.video-wrap{background:#10231b;border-radius:12px;overflow:hidden;margin:16px 0;position:relative;min-height:100px}.video-wrap video{display:block;width:100%;max-height:300px;object-fit:cover}.camera-hint{color:var(--muted);font-size:12px}.mobile-only{display:none}.back-link{display:inline-flex;gap:7px;align-items:center;margin-bottom:22px;font-size:13px;text-decoration:none}.instructions{display:flex;gap:10px;align-items:center;padding:12px 0;border-top:1px solid var(--line);font-size:13px}.instructions>a{flex:1}.help-list{margin:0;padding-left:20px;color:var(--muted);font-size:13px;line-height:1.9}.file-input{padding:9px;max-width:100%}.status-line{font-size:12px;color:var(--muted);margin:12px 0}.check-stack{display:grid;gap:4px}.print-only{display:none}@media(min-width:1500px){main{padding:40px}.topbar{padding:0 44px}}@media(max-width:1100px){.detail-top{grid-template-columns:220px 1fr;gap:24px}.settings-row{grid-template-columns:1fr;gap:8px}.settings-row>div>p{max-width:70ch}.auth-intro{padding:40px}.auth-intro h1{font-size:44px}.toolbar select{max-width:165px}.summary>div{padding:0 16px}}@media(max-width:760px){.shell{display:block}.sidebar{display:none;position:fixed;z-index:50;inset:0 auto 0 0;width:min(300px,88vw);background:var(--surface);border-right:1px solid var(--line);padding-top:max(22px,env(safe-area-inset-top));box-shadow:16px 0 50px #0002}.sidebar.open{display:flex}.mobile-only{display:inline-flex}.close-nav{margin:-20px 0 15px}.topbar{height:62px;padding:0 12px;justify-content:flex-start}.top-actions{margin-left:auto;gap:2px}.private-label{display:none}main{border-radius:0;border:0;border-top:1px solid var(--line);min-height:calc(100dvh - 62px);margin:0;padding:24px 18px max(32px,env(safe-area-inset-bottom))}.page-head{gap:16px;flex-wrap:wrap;margin-bottom:24px}h1{font-size:28px}.page-head .actions{width:100%}.page-head .actions .primary{flex:1}.summary{grid-template-columns:1fr 1fr;padding:0;margin-bottom:24px}.summary>div{padding:18px 20px;border-right:0}.summary>div:nth-child(odd){border-right:1px solid var(--line)}.summary>div:nth-child(-n+2){border-bottom:1px solid var(--line)}.summary strong{font-size:26px;margin-top:6px}.toolbar{gap:8px}.toolbar .search{max-width:none;flex-basis:100%}.toolbar select{flex:1;max-width:100%;font-size:13px}.view-buttons{margin-left:0}.grid{grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr))}.set-image{height:190px}.detail-top{grid-template-columns:1fr;gap:20px}.detail-art{height:220px}.detail-meta{gap:15px}.detail-flags{gap:5px 14px}.add-layout{grid-template-columns:1fr}.panel{padding:20px}.settings-row{padding:24px 0}.auth-wrap{display:block;min-height:100dvh;background:var(--surface)}.auth-intro{padding:28px 24px;background:var(--bg)}.auth-intro>div,.auth-foot{display:none}.auth-intro .brand small{display:none}.auth-form{padding:36px 24px 60px;display:block}.auth-form>div{width:100%;max-width:400px;margin:auto}.form-grid{grid-template-columns:1fr}.auth-form h2{font-size:27px}input,select,textarea{font-size:16px}.table-wrap{border-radius:8px}td,th{padding:12px}.part-identity{min-width:200px}.form-grid .wide{grid-column:auto}.paging{gap:8px}.paging .actions{flex-wrap:nowrap}.paging button{padding:8px 12px}.empty{padding:34px 20px}.empty h2{font-size:22px}.dialog-head,#dialog-body{padding:18px}.mobile-nav-shade{position:fixed;inset:0;z-index:49;background:#10251b80}.row{align-items:flex-start}.detail-label{max-width:none}.instructions{flex-wrap:wrap}.toolbar .check{font-size:12px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}@media print{.sidebar,.topbar,.actions,.toolbar,#notice,button,.back-link{display:none!important}.shell{display:block}main{padding:0;border:0}.table-wrap{overflow:visible;border:0}body{background:white;color:black}.summary{background:white}.print-only{display:block}}

code{overflow-wrap:anywhere;font-size:12px}summary{cursor:pointer;line-height:1.7}#sidebar.open{overscroll-behavior:contain}

@media(max-width:760px){.inventory-table{display:block}.inventory-table thead{display:none}.inventory-table tbody{display:block}.inventory-table tr{display:grid;grid-template-columns:1fr 1fr;gap:4px 20px;padding:16px;border-top:1px solid var(--line)}.inventory-table tr:first-child{border-top:0}.inventory-table td{display:flex;gap:8px;justify-content:space-between;align-items:center;text-align:left;border:0;padding:6px 0;min-width:0;flex-wrap:wrap}.inventory-table td:before{content:attr(data-label);color:var(--muted);font-size:12px}.inventory-table td:first-child{grid-column:1/-1;display:block;padding:0 0 10px;border-bottom:1px solid var(--line);margin-bottom:5px}.inventory-table td:first-child:before,.inventory-table .piece-links:before{display:none}.inventory-table .part-identity{min-width:0;width:100%;gap:8px}.inventory-table .part-identity>div{flex:1;min-width:0}.inventory-table .part-identity>.quiet{padding:0;flex:none}.inventory-table .table-link{line-height:1.5}.inventory-table .missing-column,.inventory-table .piece-links{grid-column:1/-1}.inventory-table .piece-links{padding-top:10px;border-top:1px solid var(--line)}.inventory-table .row-links{justify-content:space-between;width:100%}.inventory-table .missing-cell{margin-left:auto}.inventory-table .missing-cell .missing-input{width:84px}.detail-top+.section-head{flex-wrap:wrap}}

.location-editor{border-top:1px solid var(--line);padding-top:24px;margin-bottom:28px}.location-editor h2{margin-bottom:8px}.location-editor .status-line{margin:0 0 14px}.location-tags{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 14px}.location-tags:empty{display:none}.location-tag{display:inline-flex;align-items:center;gap:4px;max-width:100%;overflow-wrap:anywhere;border:1px solid var(--line);border-radius:6px;padding:5px 9px;background:var(--soft);font-size:12px;color:var(--text);line-height:1.5}.location-tag button{flex:none;border:0;background:transparent;padding:10px;min-width:44px;min-height:44px;margin:-5px -9px -5px 0}.location-tag button .icon{width:15px;height:15px}.location-editor .field{margin-bottom:0}.set-card-body>.location-tags{margin:0 0 16px}.part-identity .location-tags{margin:8px 0 0}.location-editor .detail-label{max-width:500px}
@media(max-width:760px){#set-theme,#set-location,#set-filter,#set-sort{flex:1 1 calc(50% - 4px);max-width:calc(50% - 4px)}.toolbar .view-buttons{margin-left:auto}}
