:root{--ink:#183b35;--muted:#7b8984;--paper:#f5f6f2;--line:#e3e8df;--green:#286453;--soft:#eaf1e9;--warn:#946324}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:#273b34;font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft Yahei",sans-serif;font-size:14px}a{color:var(--green);text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select{outline-offset:4px}aside{width:236px;background:#fff;border-right:1px solid var(--line);position:fixed;inset:0 auto 0 0;padding:32px 20px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:11px;font-weight:700;font-size:20px;letter-spacing:1px;color:var(--ink)}.brand small{display:block;font-size:8px;letter-spacing:1.7px;margin-top:7px}.logo{background:var(--ink);color:#fff;border-radius:10px;font-family:Georgia,serif;font-size:36px;padding:3px 12px}.workspace{margin:40px 10px 15px;color:var(--muted);font-size:11px}.workspace span{float:right}nav a{display:flex;align-items:center;gap:15px;padding:14px;margin:4px 0;border-radius:8px;color:#728078}nav a.active{background:var(--soft);color:#214b3d;font-weight:600}nav b{margin-left:auto;font-size:11px;background:#dce8d9;padding:3px 6px;border-radius:5px}.sidebar-foot{margin-top:auto;font-size:12px}.sidebar-foot small{display:block;margin:8px 0 0 13px;color:var(--muted);font-size:10px}i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#629078;margin-right:6px}.main{margin-left:236px}header{height:80px;padding:0 36px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:22px;color:var(--muted);font-size:12px}header form{margin-left:auto;display:flex;gap:8px}header input{width:300px}.local{font-size:10px;letter-spacing:1px;border:1px solid var(--line);padding:6px 9px;border-radius:6px}main{padding:36px;min-height:calc(100vh - 130px);max-width:1660px;margin:auto}.heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px}h1{font-size:27px;font-weight:650;margin:0 0 9px;letter-spacing:.5px}h2{font-size:17px;margin:0 0 18px}h3{font-size:15px}.sub,p.hint{color:var(--muted);font-size:12px;line-height:1.8;margin:0}.eyebrow{font-size:10px;letter-spacing:2px;color:#719079;margin-bottom:12px}.badge{display:inline-block;border:1px solid #d8e5d5;border-radius:5px;background:#eff5ec;color:#4d6c4c;padding:4px 7px;font-size:10px;white-space:nowrap}.badge.warn{background:#fcf4e8;border-color:#ecdfc9;color:var(--warn)}.badge.error{background:#fbebea;color:#a05651;border-color:#efdbd9}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:25px}.stat{background:#fff;border:1px solid var(--line);border-radius:12px;padding:22px}.stat .label{font-size:12px;color:#6d7d74}.stat strong{display:block;font-size:34px;font-weight:550;margin:18px 0 9px;letter-spacing:-1px}.stat small{color:#93a095;font-size:11px}.panel{background:#fff;border:1px solid var(--line);border-radius:12px;padding:24px;margin-bottom:22px;overflow:auto}.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.panel-head h2{margin:0}.grid{display:grid;grid-template-columns:1.5fr 1fr;gap:22px}.notice{border:1px solid #e7deca;background:#fcf9f0;padding:15px 18px;border-radius:8px;color:#887043;font-size:12px;line-height:1.9;margin:0 0 24px}.filters{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:22px}input,select,textarea{padding:10px 12px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink)}textarea{width:100%;min-height:90px}button,.button{cursor:pointer;border:1px solid var(--line);border-radius:6px;background:#fff;padding:9px 13px;color:var(--green);font-size:12px}button:hover,.button:hover{background:var(--soft)}button.primary,.button.primary{background:var(--green);color:white;border-color:var(--green)}button:disabled{opacity:.5;cursor:default}table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}th{font-weight:500;color:#8a978e;background:#f9faf7;padding:12px 14px;white-space:nowrap}td{padding:17px 14px;border-bottom:1px solid #edf0e9;line-height:1.7;max-width:450px;overflow-wrap:anywhere}td strong{color:#315b49;font-size:13px}td small{display:block;color:var(--muted);font-size:10px}tr:last-child td{border-bottom:0}.empty{padding:50px 24px;text-align:center;color:#869187;font-size:13px;line-height:2.1}.bar{display:inline-block;width:60px;height:5px;background:#e9eee6;border-radius:5px;margin-right:8px}.bar span{display:block;background:#709571;height:100%;border-radius:5px}.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.muted{color:var(--muted)}.count{font-size:11px;color:#93a08f}.pagination{display:flex;justify-content:flex-end;gap:12px;align-items:center;margin-top:18px;font-size:12px}.review{padding:20px 0;border-bottom:1px solid var(--line)}.review h3{margin:10px 0}.review pre,.article-content{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.9;max-height:560px;overflow:auto;background:#fafbf8;padding:15px;border-radius:6px}.review .row{margin-top:12px}.review input{max-width:170px}.article{border-bottom:1px solid var(--line);padding:15px 0}.article p{color:#7c877e;line-height:1.8;font-size:12px}.kv{display:grid;grid-template-columns:130px 1fr;gap:14px;font-size:12px;line-height:1.8;overflow-wrap:anywhere}.kv dt{color:var(--muted)}.kv dd{margin:0}footer{padding:0 36px 24px;color:#a0aa9f;font-size:10px}footer span{float:right}#toast{position:fixed;bottom:24px;right:28px;max-width:500px;background:var(--ink);color:#fff;border-radius:8px;padding:15px 20px;display:none;z-index:10}.fact-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.section-title{margin:27px 0 12px;font-size:15px}.source-tile{background:#f8faf5;border:1px solid var(--line);padding:17px;border-radius:8px;margin:12px 0}.source-tile small{display:block;color:var(--muted);line-height:1.8;margin-top:8px}@media(max-width:1000px){aside{width:190px;padding:25px 14px}.main{margin-left:190px}main{padding:24px}.cards{grid-template-columns:repeat(2,1fr)}header{padding:0 24px}header input{width:220px}.grid{grid-template-columns:1fr}}@media(max-width:680px){aside{position:static;width:auto;padding:16px}.workspace,.sidebar-foot{display:none}nav{display:flex;flex-wrap:wrap;margin-top:12px}nav a{padding:8px;font-size:12px;gap:4px}.main{margin:0}header{height:auto;padding:15px}#crumb,.local{display:none}header form{width:100%}header input{width:100%}main{padding:18px}.heading{align-items:flex-start;gap:15px}h1{font-size:23px}.fact-form{grid-template-columns:1fr}.stat{padding:18px}.kv{grid-template-columns:90px 1fr}}

.actual-preview{display:block;max-width:100%;max-height:70vh;margin:16px auto;object-fit:contain}video.actual-preview{width:720px}
.product-list-link{display:flex;align-items:center;gap:12px;min-width:155px}.product-list-photo{width:48px;height:56px;object-fit:contain;background:#f5f6f3;border-radius:3px;flex:none}.product-list-photo[hidden]{display:none}.product-list-panel td{padding:10px 14px;vertical-align:middle}.product-list-panel .product-code{font-size:14px}.product-profile-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px;max-width:900px}.profile-field{display:flex;flex-direction:column;gap:7px;font-size:12px}.profile-field input,.profile-field select{width:100%}.profile-notes,.profile-save{grid-column:1/-1}.profile-notes textarea{min-height:110px}.profile-save{display:flex;align-items:center;flex-wrap:wrap;gap:15px;margin-top:4px}@media(max-width:680px){.product-profile-form{grid-template-columns:1fr}.product-list-panel{padding:14px}.product-list-panel table{min-width:640px}}
.product-detail-tabs{display:flex;gap:24px;border-bottom:1px solid var(--line);margin-bottom:22px;overflow:auto}.product-detail-tabs a{display:block;border-radius:0;padding:10px 0;margin:0;color:#718078;white-space:nowrap}.product-detail-tabs a[aria-current=page]{color:var(--ink);border-bottom:2px solid var(--ink);font-weight:600;background:none}.product-detail-tabs span{font-size:11px;margin-left:5px;color:var(--muted)}
.product-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,240px));gap:18px}.product-photo-card{min-width:0}.product-photo-open{display:block;width:100%;height:190px;padding:8px;border:1px solid var(--line);border-radius:6px;background:#f7f8f6;cursor:zoom-in}.product-photo-open img{display:block;width:100%;height:100%;object-fit:contain}.product-photo-open [hidden]{display:none}.product-photo-open:hover{border-color:#9aa99f;background:#f0f3ee}.photo-thumb-error{font-size:12px;line-height:1.8;color:var(--muted)}.product-photo-caption{padding:10px 0 0;font-size:12px;line-height:1.7}.product-photo-caption strong{display:block;font-weight:500;overflow-wrap:anywhere}.product-photo-caption small{display:block;font-size:11px;color:var(--muted)}
.photo-viewer-backdrop{position:fixed;inset:0;background:#17221fbb;z-index:1000}.photo-viewer-backdrop[hidden]{display:none}.product-photo-viewer{position:fixed;inset:0;margin:auto;z-index:1001;width:min(1440px,96vw);height:94vh;max-width:none;max-height:94vh;padding:0;overflow:hidden;border:1px solid #cdd3cd;border-radius:7px;background:#fff;color:#273b34}.product-photo-viewer:not([hidden]){display:grid;grid-template-rows:auto auto auto minmax(0,1fr) auto}.product-photo-viewer[hidden]{display:none}.photo-viewer-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 18px;border-bottom:1px solid var(--line);min-width:0}.photo-viewer-header>div{min-width:0}.photo-viewer-header strong{font-size:14px;display:block;overflow-wrap:anywhere}.photo-viewer-header small{color:var(--muted);font-size:11px;display:block;margin-top:3px}.photo-viewer-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:10px 18px;border-bottom:1px solid var(--line)}.photo-viewer-toolbar .row{gap:6px}.photo-viewer-toolbar button,.photo-viewer-toolbar .button{padding:7px 10px}.photo-viewer-toolbar a:not(.button){font-size:12px;margin-left:8px}.photo-toolbar-divider{height:22px;border-left:1px solid var(--line);margin:0 5px}.photo-viewer-toolbar output{min-width:45px;text-align:center;font-variant-numeric:tabular-nums;font-size:12px}#photo-viewer-status{font-size:12px;margin:0;padding:7px 18px;color:#66796c;background:#fafbf9;min-height:30px}.photo-viewer-stage{min-height:0;overflow:auto;background:#e9ece8;overscroll-behavior:contain;touch-action:pan-x pan-y}.photo-viewer-stage.pannable{cursor:grab;touch-action:none}.photo-viewer-stage.dragging{cursor:grabbing}.photo-viewer-frame{display:grid;place-items:center;min-width:100%;min-height:100%}.photo-viewer-image{display:block;max-width:none;max-height:none;object-fit:contain;user-select:none;pointer-events:none}.photo-viewer-image[hidden]{display:none}.photo-viewer-footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:9px 18px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}
@media(max-width:680px){.product-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.product-photo-open{height:160px}.product-detail-tabs{gap:18px}.photo-viewer-backdrop{position:fixed;inset:0;background:#17221fbb;z-index:1000}.photo-viewer-backdrop[hidden]{display:none}.product-photo-viewer{position:fixed;inset:0;margin:auto;z-index:1001;width:98vw;height:96vh;max-height:96vh}.photo-viewer-toolbar,.photo-viewer-header{padding:10px}.photo-viewer-toolbar .row{gap:4px}.photo-viewer-toolbar button{padding:6px 8px}.photo-toolbar-divider{display:none}.photo-viewer-footer{padding:8px 10px}}
.table-scroll{overflow:auto;max-width:100%}.table-scroll table{min-width:1430px}.table-scroll td{vertical-align:top}.table-scroll select{max-width:120px;min-width:80px}.intake-thumb{width:64px;height:64px;object-fit:contain;background:#f3f4f4}.thumb-button{border:0;padding:2px;display:flex;flex-direction:column;font-size:11px}.manual-fields{display:flex;gap:10px;flex-wrap:wrap;padding:12px 0}.manual-fields label{display:flex;flex-direction:column;gap:4px;font-size:12px}.manual-fields input{max-width:220px}.product-code{font-family:ui-monospace,monospace;white-space:nowrap}.taxonomy-options{display:flex;gap:8px;flex-wrap:wrap}.taxonomy-options input{width:110px}.photo-tools{display:flex;gap:8px;align-items:center;margin:12px 0}dialog{width:min(900px,90vw);max-height:90vh;overflow:auto;border:1px solid #ccc;border-radius:6px}dialog::backdrop{background:#0006}#folder-path{flex:1;min-width:320px}.filters{flex-wrap:wrap}pre{overflow:auto}

/* Shared checkbox dropdown for profile editing and product filters. */
.product-profile-panel{overflow:visible}.multi-select{position:relative;min-width:155px;max-width:100%;font-size:12px}.multi-select details{position:relative}.multi-select summary{display:flex;align-items:center;justify-content:space-between;gap:18px;list-style:none;cursor:pointer;background:#fff;border:1px solid var(--line);border-radius:6px;padding:10px 12px;min-height:39px;color:var(--ink)}.multi-select summary::-webkit-details-marker{display:none}.multi-select summary::after{content:'⌄';color:var(--muted)}.multi-select summary:focus-visible{outline:2px solid var(--green);outline-offset:2px}.multi-select [data-multi-count]{margin-left:auto;color:#718078;font-size:11px}.multi-select details[open] summary{border-color:#81978c}.multi-options{position:absolute;top:calc(100% + 5px);left:0;z-index:30;min-width:100%;width:max-content;max-width:min(360px,80vw);max-height:285px;overflow:auto;background:#fff;border:1px solid #cdd8d0;border-radius:6px;padding:5px;box-shadow:0 5px 18px #183b3512}.multi-options label{display:flex;gap:10px;align-items:center;padding:8px 10px;cursor:pointer;min-height:35px;white-space:nowrap;border-radius:3px}.multi-options label:hover{background:var(--soft)}.multi-options input[type=checkbox]{width:15px;height:15px;padding:0;margin:0;accent-color:var(--green);flex:none}.multi-selected{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin-top:6px}.multi-selected:empty{display:none}.selection-tag,.attribute-tag{display:inline-flex;align-items:center;gap:4px;background:#f1f4f0;border:1px solid var(--line);border-radius:4px;padding:3px 6px;line-height:1.4;font-size:11px;color:#365747}.selection-tag button{padding:0 3px;background:transparent;border:0;font-size:15px;line-height:1.1}.multi-clear{padding:3px 5px;font-size:11px;border:0;background:transparent;color:var(--muted)}.filters>.multi-select{flex:0 1 180px}.filters{align-items:flex-start}.attribute-tag{margin:2px 0}.manual-fields>.multi-select{max-width:220px}.table-scroll .multi-select{min-width:120px}
