/* Home Depot integration details only; base components come from Lowe's. */
[hidden]{display:none!important}.hd-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:12px 0}.hd-toolbar h3{margin-right:auto}.hd-muted{color:var(--ink2);font-size:12px}.hd-pad{padding:16px}.hd-link{text-decoration:none;display:inline-block}.hd-table-wrap{overflow:auto}.hd-table{width:100%;border-collapse:collapse;text-align:left}.hd-table th{color:var(--ink3);font-size:12px;white-space:nowrap}.hd-table td,.hd-table th{padding:12px;border-bottom:1px solid var(--line);vertical-align:top}.hd-table td:first-child{min-width:240px}.hd-table .hd-title{font-size:12px;color:var(--ink2);max-width:400px;margin-top:4px}.hd-fields,.hd-roles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.hd-field{padding:10px 12px;border:1px solid var(--line);border-radius:8px;overflow-wrap:anywhere;font-size:12px}.hd-detail{margin-top:18px}.hd-conflict{color:var(--red);border-left:3px solid var(--red);padding:8px 12px;margin:10px 0;background:rgba(240,97,109,.08)}.hd-status{display:inline-block;font-size:11px;font-weight:700;border-radius:20px;padding:3px 8px;background:rgba(245,165,36,.12);color:var(--amber)}.hd-status.good{background:rgba(46,204,113,.1);color:var(--green)}.hd-pipeline{display:flex;gap:16px;flex-wrap:wrap}.hd-pipeline>div{flex:1;min-width:160px}.hd-stat-value{font-size:18px;font-weight:700;margin:4px 0}.hd-connection{font-size:12px;color:var(--ink2);margin:4px 0}.hd-table button{white-space:nowrap}.hd-disabled,button:disabled{opacity:.5;cursor:not-allowed}.hd-image-controls{position:fixed;left:50%;bottom:18px;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:10px;padding:10px;background:var(--card);border-radius:10px;z-index:10005;white-space:nowrap}.hd-image-controls a{text-decoration:none}.hd-image-error{font-size:11px;color:var(--red)}.hd-image-tile{display:inline-flex;flex-direction:column;gap:5px;min-width:0}.hd-image-tile span{font-size:10px;color:var(--ink2)}.hd-art-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px}.hd-art-grid button{padding:0;border:1px solid var(--line);background:var(--card2);border-radius:8px;overflow:hidden;cursor:zoom-in}.hd-art-grid img{display:block;width:100%;aspect-ratio:1;object-fit:contain;background:#fff}.hd-review-note{font-size:12px;color:var(--amber);margin:10px 0}.hd-art-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.hd-art-actions a{text-decoration:none}.hd-connection-error{color:var(--red)!important}
body[data-station="center"] .top{flex-wrap:wrap}body[data-station="center"] .tabs .tab,body[data-station="art"] .tabs .tab{border:0;background:none;font-family:inherit;text-decoration:none}body[data-station="center"] .tabs .tab.on{background:var(--brand)}body[data-station="art"] .tabs .tab.on{background:var(--amber)}body[data-station="art"] #list{grid-template-columns:repeat(auto-fill,minmax(min(520px,100%),1fr))}body[data-station="art"] #bigImg{max-height:calc(100vh - 110px)}body[data-station="art"] #bigPrev{left:18px;display:flex}body[data-station="art"] #bigNext{right:18px;display:flex}body[data-station="art"] .top .tabs{margin-left:12px}body[data-station="buy"] #q{width:100%}
@media(max-width:760px){.hd-fields,.hd-roles{grid-template-columns:1fr}body[data-station="center"] .top .tabs{margin-left:0}body[data-station="center"] .top .right{margin-left:0}body[data-station="art"] .wrap{padding:16px 12px}body[data-station="art"] .top{padding:12px}body[data-station="art"] .top .tabs{margin-left:0}.hd-image-controls{max-width:96vw;flex-wrap:wrap;width:max-content;white-space:normal}.hd-image-controls span{font-size:11px}body[data-station="buy"] .navbar .container-xl{gap:12px}body[data-station="center"] .wrap{padding:16px 12px}}

body[data-station="center"] a.hd-link{color:var(--ink2);background:var(--panel2);border:1px solid var(--line);border-radius:8px;padding:7px 12px;font-size:12px}body[data-station="center"] a.hd-link:hover{color:var(--ink);border-color:var(--brand)}
body[data-station="art"] #bigModeBar.hd-image-controls{display:flex;top:auto;bottom:18px}
body[data-station="art"] .hd-art-heading{flex:1;min-width:0}
body[data-station="art"] .hd-upload-label{position:relative;overflow:hidden;text-align:center;cursor:pointer}
body[data-station="art"] .hd-upload-label input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}
body[data-station="art"] .hd-check,body[data-station="art"] .hd-image-tile small{font-size:11px;color:var(--ink2)}
body[data-station="art"] .hd-review-input{min-width:0;width:100%;box-sizing:border-box;border:1px solid var(--line);background:var(--card);color:var(--ink);padding:6px;border-radius:6px}
body[data-station="art"] .hd-image-tile .hd-art-actions button{cursor:pointer;padding:5px 8px}
body[data-station="art"] .hd-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:8px;padding:12px}
body[data-station="art"] .hd-facts>div{display:flex;flex-direction:column;font-size:12px;overflow-wrap:anywhere;border-bottom:1px solid var(--line);padding:6px}
body[data-station="art"] #batchFiles{max-width:100%;margin:12px 0}

body[data-station="center"] [data-panel="catalog"] .hd-table-wrap{max-height:560px;overflow:auto}
body[data-station="center"] .hd-staff-form{margin:16px 0;padding:16px;border:1px solid var(--line);border-radius:12px}
body[data-station="center"] .hd-staff-form h3{margin:0 0 8px}
body[data-station="center"] .hd-staff-intro{margin:0 0 20px;line-height:1.7}
body[data-station="center"] .hd-staff-identity,body[data-station="center"] .hd-staff-assignment{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}
body[data-station="center"] .hd-staff-assignment{margin-top:20px}
body[data-station="center"] .hd-staff-field{display:flex;flex-direction:column;gap:8px;min-width:0}
body[data-station="center"] .hd-staff-field>label{display:block;font-weight:650;line-height:1.5}
body[data-station="center"] .hd-staff-field .hd-required{margin-left:6px;font-weight:400}
body[data-station="center"] .hd-staff-field small{line-height:1.6}
body[data-station="center"] .hd-staff-permissions{min-width:0;margin:0;padding:12px;border:1px solid var(--line);border-radius:10px}
body[data-station="center"] .hd-staff-permissions legend{padding:0 6px;font-weight:650;font-size:13px}
body[data-station="center"] .hd-staff-permissions>p{margin:0 0 12px;line-height:1.6}
body[data-station="center"] .hd-staff-form .hd-staff-permission{display:flex;flex-direction:row;align-items:flex-start;gap:10px;padding:12px;border:1px solid var(--line);border-radius:8px;cursor:pointer;background:var(--bg2)}
body[data-station="center"] .hd-staff-permission+.hd-staff-permission{margin-top:10px}
body[data-station="center"] .hd-staff-permission>input[type="checkbox"]{box-sizing:border-box;width:17px;max-width:17px;height:17px;flex:0 0 17px;margin:2px 0 0}
body[data-station="center"] .hd-staff-permission>span{flex:1;min-width:0;line-height:1.6}
body[data-station="center"] .hd-staff-permission strong{display:block;font-size:13px;font-weight:650}
body[data-station="center"] .hd-staff-permission small{display:block;margin-top:3px;font-size:12px;color:var(--ink2)}
body[data-station="center"] .hd-staff-permission:has(input:checked){border-color:var(--brand);background:var(--brand-soft)}
body[data-station="center"] .hd-staff-permission:focus-within{outline:2px solid var(--brand);outline-offset:2px}
body[data-station="center"] .hd-staff-permissions>a{display:inline-block;margin-top:12px;color:var(--hd-brand-ink)}
@media(max-width:680px){body[data-station="center"] .hd-staff-identity,body[data-station="center"] .hd-staff-assignment{grid-template-columns:1fr;gap:16px}}
body[data-station="center"] .hd-staff-form input.acc-search,body[data-station="center"] .hd-staff-form select{width:100%;box-sizing:border-box}
body[data-station="center"] .hd-staff-form select{background:var(--panel2);color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:8px}
body[data-station="center"] #staffOneTimeKey{flex:1;min-width:220px;font-family:Consolas,monospace}
body[data-station="center"] .hd-required,body[data-station="art"] .hd-required{color:var(--red);font-size:11px}

body[data-station="center"] .hd-auto-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;margin:16px 0}
body[data-station="center"] .hd-auto-plan{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:12px;margin:16px 0}
body[data-station="center"] .hd-auto-step{display:flex;gap:12px;padding:16px;align-items:flex-start}
body[data-station="center"] .hd-auto-step h3{margin:0 0 8px;font-size:14px}
body[data-station="center"] .hd-auto-step p{color:var(--ink2);font-size:12px;line-height:1.8;margin:0 0 12px}
body[data-station="center"] .hd-auto-number{background:var(--brand-soft);color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:6px 10px;font-weight:700}
body[data-station="center"] .hd-auto-note{line-height:1.9;color:var(--ink2);font-size:13px}
body[data-station="center"] [data-panel="automation"] .hd-table-wrap{max-height:460px;overflow:auto}
body[data-station="center"] [data-panel="automation"] td{overflow-wrap:anywhere}
body[data-station="center"] [data-panel="automation"] details>summary{cursor:pointer;padding:14px 0;color:var(--ink);font-weight:700}
@media(max-width:600px){body[data-station="center"] .hd-auto-plan,body[data-station="center"] .hd-auto-grid{grid-template-columns:1fr}}

/* Owner-requested HD identity: orange actions; semantic success/error colors stay intact. */
body[data-station="center"],body[data-station="art"],body[data-station="buy"]{--brand:#f96302;--brand-d:#c94f00;--brand-soft:rgba(249,99,2,.14);--hd-brand-ink:#ffad73;--hd-brand-glow:rgba(249,99,2,.24)}
body[data-station="center"] .top,body[data-station="art"] .top,body[data-station="buy"] .navbar{border-top:3px solid var(--brand)}
body[data-station] .hd-brand-mark,body[data-station="center"] .logo{width:40px;height:40px;flex:none;display:flex;align-items:center;justify-content:center;border-radius:9px;background:var(--brand);color:#1c1008;font-weight:900;letter-spacing:-1px;box-shadow:0 4px 16px var(--hd-brand-glow)}
body[data-station="center"] .tab.on{box-shadow:0 2px 10px var(--hd-brand-glow);color:#1c1008}
body[data-station="center"] button.primary{color:#1c1008;font-weight:750}
body[data-station="center"] button.primary:hover{color:#fff}
body[data-station="center"] a.tbtn:not(.pool){background:var(--brand-soft);border-color:var(--brand);color:var(--hd-brand-ink)}
body[data-station="center"] .pill.on,body[data-station="center"] .acc-av{color:var(--hd-brand-ink)}
body[data-station="art"] .tabs .tab.on,body[data-station="art"] .btn.pri{background:var(--brand);border-color:var(--brand);color:#1c1008}
body[data-station="art"] .btn:hover,body[data-station="art"] .s:focus{border-color:var(--brand)}
body[data-station="buy"]{--tblr-primary:#c94f00;--tblr-primary-rgb:201,79,0}
body[data-station="buy"] .btn-primary{--tblr-btn-bg:var(--brand-d);--tblr-btn-border-color:var(--brand-d);--tblr-btn-hover-bg:#a64000;--tblr-btn-hover-border-color:#a64000;--tblr-btn-active-bg:#a64000;--tblr-btn-active-border-color:#a64000;--tblr-btn-color:#fff;background-color:var(--brand-d);border-color:var(--brand-d);color:#fff}
body[data-station="buy"] .btn-outline-primary{color:var(--brand-d);border-color:var(--brand-d)}
body[data-station="buy"] .hd-brand-badge{background:var(--brand-soft);color:var(--brand-d)}
/* The imported art theme uses !important on primary controls; keep HD overrides scoped. */
body[data-station="art"] .tabs .tab.on,body[data-station="art"] .btn.pri{background:var(--brand)!important;color:#1c1008!important;box-shadow:0 3px 12px var(--hd-brand-glow)!important}
body[data-station="art"] input.s:focus,body[data-station="art"] .hd-review-input:focus{border-color:var(--brand)!important;box-shadow:0 0 0 3px var(--brand-soft)}
body[data-station="art"] select:hover{border-color:var(--brand);box-shadow:0 3px 12px var(--hd-brand-glow)}
body[data-station="art"] .bigmode.on{background:var(--brand);color:#1c1008;box-shadow:0 3px 12px var(--hd-brand-glow)}
/* Keep every card and its editing state in the DOM; defer offscreen layout/paint.
   The intrinsic block size is an initial estimate; auto remembers measured sizes. */
@supports (content-visibility:auto){
 body[data-station="art"] #list>.card{content-visibility:auto;contain-intrinsic-block-size:auto 900px}
}

/* HD controls share existing station tokens; the purchase station stays Tabler light. */
body[data-station]{
 --hd-surface:var(--panel,var(--card));--hd-surface-raised:var(--panel2,var(--card2));
 --hd-control-bg:var(--bg2,var(--card));--hd-control-ink:var(--ink);
 --hd-control-muted:var(--ink2);--hd-control-line:var(--line2,var(--line));
 --hd-scroll-thumb:var(--line2,var(--line));--hd-focus:var(--brand);
 --hd-popup-shadow:0 12px 34px rgba(0,0,0,.35);
}
body[data-station="center"],body[data-station="art"]{color-scheme:dark}
body[data-station="buy"]{
 color-scheme:light;--hd-surface:var(--tblr-bg-surface,#fff);
 --hd-surface-raised:var(--tblr-bg-surface-secondary,#f6f8fb);
 --hd-control-bg:var(--tblr-bg-surface,#fff);--hd-control-ink:var(--tblr-body-color,#182433);
 --hd-control-muted:var(--tblr-secondary,#667382);--hd-control-line:var(--tblr-border-color,#dce1e7);
 --hd-scroll-thumb:var(--tblr-border-color-dark,#b8c4ce);--hd-focus:var(--brand-d);
 --hd-popup-shadow:var(--tblr-box-shadow-dropdown,0 8px 24px rgba(24,36,51,.14));
}
/* Viewport scrollbars belong to html, not the body or the table scroll regions. */
html:has(>body[data-station="center"]),html:has(>body[data-station="art"]){color-scheme:dark;scrollbar-width:thin;scrollbar-color:var(--line2,var(--line)) var(--bg)}
html:has(>body[data-station="buy"]){color-scheme:light;scrollbar-width:thin;scrollbar-color:var(--tblr-border-color-dark,#b8c4ce) var(--tblr-body-bg,#f6f8fb)}
body[data-station],body[data-station] *{scrollbar-width:thin;scrollbar-color:var(--hd-scroll-thumb) transparent}
body[data-station]::-webkit-scrollbar,body[data-station] *::-webkit-scrollbar{width:12px;height:12px}
body[data-station]::-webkit-scrollbar-track,body[data-station] *::-webkit-scrollbar-track{background:transparent}
body[data-station]::-webkit-scrollbar-thumb,body[data-station] *::-webkit-scrollbar-thumb{background:var(--hd-scroll-thumb);border:3px solid transparent;background-clip:padding-box;border-radius:12px}
body[data-station]::-webkit-scrollbar-thumb:hover,body[data-station] *::-webkit-scrollbar-thumb:hover{background-color:var(--hd-control-muted)}
body[data-station]::-webkit-scrollbar-corner,body[data-station] *::-webkit-scrollbar-corner{background:transparent}

/* Text controls exclude compact and hidden native controls, so checkboxes never stretch. */
body[data-station] :is(input:where(:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="hidden"]):not([type="color"]):not([type="button"]):not([type="submit"]):not([type="reset"])),textarea,select:not(.hd-select-native)){
 box-sizing:border-box;max-width:100%;min-width:0;font:inherit;color:var(--hd-control-ink);
 background-color:var(--hd-control-bg);border:1px solid var(--hd-control-line);border-radius:9px;
 transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease;
}
body[data-station] :is(input:where(:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="hidden"]):not([type="color"]):not([type="button"]):not([type="submit"]):not([type="reset"])),select:not(.hd-select-native)){min-height:38px;padding:8px 12px}
body[data-station] textarea{padding:10px 12px;min-height:88px;line-height:1.6;resize:vertical}
body[data-station] :is(input,textarea)::placeholder{color:var(--hd-control-muted);opacity:.8}
body[data-station] select:not(.hd-select-native){padding-right:34px}
body[data-station="art"] select:not(.hd-select-native){background-image:var(--caret)!important;background-size:13px!important;background-position:right 10px center!important;box-shadow:none}
body[data-station] select:is([multiple],[size]:not([size="1"])):not(.hd-select-native){height:auto;min-height:112px;padding:8px;background-image:none!important}
body[data-station] select option{background:var(--hd-surface);color:var(--hd-control-ink)}
body[data-station] :is(input[type="checkbox"],input[type="radio"]){width:17px;height:17px;min-width:17px;min-height:17px;flex:none;accent-color:var(--hd-focus);vertical-align:middle;cursor:pointer}
body[data-station] input[type="range"]{accent-color:var(--hd-focus);max-width:100%}
body[data-station] :is(input,textarea,select):focus{border-color:var(--hd-focus)!important;box-shadow:0 0 0 3px var(--brand-soft)}
body[data-station] :is(button,a,input,textarea,select,summary,[tabindex]):focus-visible{outline:2px solid var(--hd-focus)!important;outline-offset:3px}
body[data-station] .hd-upload-label:focus-within{outline:2px solid var(--hd-focus);outline-offset:3px}
body[data-station] :is(button,input,select,textarea):disabled,body[data-station] [aria-disabled="true"]{opacity:.5;cursor:not-allowed;box-shadow:none;filter:none}
body[data-station] :is(input,textarea)[readonly]{background-color:var(--hd-surface-raised)}
body[data-station="buy"] .searchbox{transition:border-color .16s ease,box-shadow .16s ease}
body[data-station="buy"] .searchbox:focus-within{border-color:var(--hd-focus);box-shadow:0 0 0 3px var(--brand-soft)}
body[data-station="buy"] .searchbox input{border:0;background:transparent;box-shadow:none;padding:0;min-height:28px}

/* The native element remains focusable/validatable and available to form automation. */
body[data-station] :is(.hd-select,.hd-file-control){position:relative;max-width:100%;min-width:0;vertical-align:middle}
body[data-station] .hd-select{display:inline-flex;min-width:140px}
body[data-station] :is(.hd-select-native,.hd-file-native,.hd-select-caption){position:absolute!important;width:1px!important;height:1px!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;opacity:0!important;clip-path:inset(50%);overflow:hidden;white-space:nowrap;pointer-events:none}
body[data-station] :is(.hd-select-trigger,.hd-file-button){display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:38px;max-width:100%;padding:8px 12px;border:1px solid var(--hd-control-line);border-radius:9px;background:var(--hd-control-bg);color:var(--hd-control-ink);font:inherit;font-weight:600;line-height:1.4;cursor:pointer;transition:border-color .16s ease,background-color .16s ease,box-shadow .16s ease,transform .12s ease}
body[data-station] .hd-select-trigger{width:100%;justify-content:space-between;text-align:left}
body[data-station] .hd-select-value{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body[data-station] .hd-select-chevron{width:7px;height:7px;flex:none;margin:0 2px 4px 8px;font-size:0;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);opacity:.7;transition:transform .16s ease}
body[data-station] .hd-select.is-open .hd-select-chevron{transform:translateY(3px) rotate(225deg)}
body[data-station] .hd-select:is(.is-open,:focus-within) .hd-select-trigger{border-color:var(--hd-focus);box-shadow:0 0 0 3px var(--brand-soft)}
body[data-station] .hd-select.is-invalid .hd-select-trigger{border-color:var(--red,var(--tblr-danger));outline-color:var(--red,var(--tblr-danger))}
body[data-station] .hd-select.is-disabled .hd-select-trigger{opacity:.5;cursor:not-allowed;box-shadow:none;transform:none}
body[data-station] .hd-select-popup{position:fixed;z-index:11000;display:flex;flex-direction:column;box-sizing:border-box;max-width:calc(100vw - 24px);padding:6px;border:1px solid var(--hd-control-line);border-radius:12px;background:var(--hd-surface);color:var(--hd-control-ink);box-shadow:var(--hd-popup-shadow);overflow:hidden;isolation:isolate}
body[data-station] .hd-select-search{flex:none;width:100%;margin:0 0 6px}
body[data-station] .hd-select-options{min-height:0;overflow:auto;overscroll-behavior:contain;scroll-padding:6px}
body[data-station] .hd-select-option{display:flex;align-items:center;gap:8px;min-height:40px;box-sizing:border-box;padding:9px 10px;border:1px solid transparent;border-radius:7px;font-size:13px;line-height:1.5;overflow-wrap:anywhere;cursor:pointer;transition:background-color .12s ease,border-color .12s ease}
body[data-station] .hd-select-option[aria-selected="true"]{background:var(--brand-soft);font-weight:700}
body[data-station] .hd-select-option[aria-selected="true"]::after{content:"✓";margin-left:auto;padding-left:8px;color:var(--hd-focus);font-weight:800}
body[data-station] .hd-select-option.is-active{border-color:var(--hd-focus);background:var(--brand-soft)}
body[data-station] .hd-select-option[aria-disabled="true"]{opacity:.45;cursor:not-allowed}
body[data-station] .hd-select-group{padding:10px 10px 5px;color:var(--hd-control-muted);font-size:11px;font-weight:700}
body[data-station] .hd-select-empty{padding:18px 12px;color:var(--hd-control-muted);font-size:13px;text-align:center}
body[data-station] .hd-file-control{display:inline-flex;align-items:center;flex-wrap:wrap;gap:8px}
body[data-station] .hd-file-button{flex:none}
body[data-station] .hd-file-name{flex:1;min-width:100px;max-width:100%;font-size:12px;line-height:1.5;color:var(--hd-control-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body[data-station] .hd-file-control:focus-within .hd-file-button{border-color:var(--hd-focus);box-shadow:0 0 0 3px var(--brand-soft)}
body[data-station] input[type="file"]:not(.hd-file-native){max-width:100%;min-width:0;font:inherit;color:var(--hd-control-muted)}
body[data-station] input[type="file"]::file-selector-button{padding:8px 12px;margin-right:10px;border:1px solid var(--hd-control-line);border-radius:8px;background:var(--hd-control-bg);color:var(--hd-control-ink);font:inherit;cursor:pointer}

/* Existing confirmation component: above the image viewer, within small screens. */
body[data-station] .hd-dialog-backdrop{position:fixed;inset:0;z-index:12000;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(0,0,0,.55);backdrop-filter:blur(3px);box-sizing:border-box}
body[data-station] .hd-dialog{box-sizing:border-box;width:440px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:auto;padding:24px;border:1px solid var(--hd-control-line);border-radius:12px;background:var(--hd-surface);color:var(--hd-control-ink);box-shadow:var(--hd-popup-shadow);animation:hd-detail-reveal .16s ease-out}
body[data-station] .hd-dialog-title{margin:0 0 12px;font-size:18px;font-weight:750;line-height:1.5}
body[data-station] .hd-dialog-copy{margin:0;line-height:1.8;font-size:14px;color:var(--hd-control-muted);white-space:pre-wrap;overflow-wrap:anywhere}
body[data-station] .hd-dialog-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin-top:24px}
body[data-station] .hd-dialog-actions button{min-height:40px;padding:9px 16px;border:1px solid var(--hd-control-line);border-radius:8px;background:var(--hd-surface-raised);color:var(--hd-control-ink);font:inherit;font-weight:650;cursor:pointer}
body[data-station] .hd-dialog-actions button.primary{border-color:var(--hd-focus);background:var(--hd-focus);color:var(--bg,#fff)}
body[data-station] .hd-dialog-actions button.hd-dialog-danger{border-color:var(--red,var(--tblr-danger));background:var(--red,var(--tblr-danger));color:var(--bg,#fff)}

/* Art/collection headers use normal flow; tall mobile navigation no longer covers work. */
body[data-station="art"]>header.top{position:relative;top:auto;z-index:5}
body[data-station] :is(.top,.hd-toolbar,.hd-art-actions,.bar){min-width:0}
body[data-station="center"] .hd-product-filters{flex-wrap:wrap}
body[data-station="center"] .hd-product-filters>.t{flex:none;white-space:nowrap}
body[data-station="center"] .hd-product-filters #q{flex:1;min-width:180px}
body[data-station] .tabs{max-width:100%;min-width:0;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scroll-padding:8px}
body[data-station] .tabs .tab{flex:none;white-space:nowrap;line-height:1.5}
body[data-station] :is(.card,.hd-detail,.hd-field,.hd-auto-step){min-width:0}
body[data-station] .hd-fields>label{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0}
body[data-station] .hd-fields>label:has(>input:is([type="checkbox"],[type="radio"])){flex-direction:row;align-items:flex-start}
body[data-station] .hd-fields>label>:is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea,.hd-select){width:100%}
body[data-station="art"] :is(.card,.card:hover){transform:none;will-change:auto}
body[data-station="art"] .card:hover{border-color:var(--hd-control-line);box-shadow:0 5px 15px rgba(0,0,0,.28)}
body[data-station="art"] .wrap>section.card+section.card{margin-top:16px}
body[data-station] .hd-table-wrap{position:relative;max-width:100%;scrollbar-gutter:stable;overscroll-behavior:contain;border-radius:9px}
body[data-station] .hd-table{border-collapse:separate;border-spacing:0}
body[data-station] .hd-table thead th{position:sticky;top:0;z-index:2;background:var(--hd-surface-raised);color:var(--hd-control-muted);box-shadow:inset 0 -1px 0 var(--hd-control-line);font-weight:700}
body[data-station] .hd-table tbody tr{transition:background-color .14s ease}
body[data-station] details>summary{cursor:pointer;line-height:1.5;min-height:38px;box-sizing:border-box;padding:9px 2px;color:var(--hd-control-ink);border-radius:6px;transition:color .14s ease,background-color .14s ease}
body[data-station] details>summary::marker{color:var(--hd-focus)}
body[data-station] details[open]>summary{margin-bottom:8px;color:var(--hd-control-ink)}
body[data-station] details[open]>*:not(summary){animation:hd-detail-reveal .16s ease-out}
@keyframes hd-detail-reveal{from{opacity:.6}to{opacity:1}}

/* Feedback is transient: completed states keep their existing static semantic colors. */
body[data-station="center"] .live .d{animation:none}
body[data-station] :is(button,.btn,.tab,a.hd-link,summary){-webkit-tap-highlight-color:var(--brand-soft);touch-action:manipulation}
body[data-station] :is(button,.btn,.tab,a.hd-link){transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease,color .16s ease,transform .12s ease}
body[data-station] :is(.btn,.primary,.ghost,.tab,.hd-select-trigger,.hd-file-button):not(:disabled):not([aria-disabled="true"]):active{transform:translateY(1px);filter:brightness(.96)}
body[data-station] :is(button,.btn):disabled{transform:none}
body[data-station] :is(button,.btn)[data-loading="true"][aria-busy="true"]{cursor:progress}
body[data-station] :is(button,.btn)[data-loading="true"][aria-busy="true"]::after{content:"";display:inline-block;vertical-align:-2px;flex:none;width:12px;height:12px;margin-left:8px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:hd-busy-spin .7s linear infinite}
body[data-station] :is(.card,.hd-table-wrap,.hd-detail,#list)[data-loading="true"][aria-busy="true"]{position:relative}
body[data-station] :is(.card,.hd-table-wrap,.hd-detail,#list)[data-loading="true"][aria-busy="true"]::after{content:"";position:absolute;left:0;right:0;top:0;height:2px;border-radius:2px;background:linear-gradient(90deg,transparent,var(--hd-focus),transparent);background-size:200% 100%;animation:hd-busy-line 1.3s ease-in-out infinite;pointer-events:none;z-index:3}
@keyframes hd-busy-spin{to{transform:rotate(360deg)}}
@keyframes hd-busy-line{from{background-position:100% 0}to{background-position:-100% 0}}
@media(hover:hover){
 body[data-station] :is(.hd-select-trigger,.hd-file-button):not(:disabled):hover{border-color:var(--hd-focus);background-color:var(--hd-surface-raised)}
 body[data-station] .hd-select-option:not([aria-disabled="true"]):hover{background:var(--brand-soft)}
 body[data-station] .hd-table tbody tr:hover{background:var(--brand-soft)}
 body[data-station] details>summary:hover{color:var(--hd-focus)}
 body[data-station] .hd-art-grid button:hover{border-color:var(--hd-focus);box-shadow:0 0 0 2px var(--brand-soft)}
}
@media(max-width:760px){
 body[data-station="art"]>header.top{gap:12px;padding:12px}
 body[data-station="art"] .top .r{width:100%;margin-left:0;gap:8px}
 body[data-station="art"] .top .r #q{flex:1;width:140px;min-width:120px}
 body[data-station="art"] .wrap>.bar .tabs{width:100%}
 body[data-station] .hd-toolbar{gap:8px}
 body[data-station] .hd-toolbar>label{max-width:100%;min-width:0}
 body[data-station] .hd-file-control{width:100%}
 body[data-station] .hd-auto-plan,body[data-station] .hd-auto-grid{grid-template-columns:1fr}
 body[data-station="center"] #staffOneTimeKey{min-width:0;width:100%}
 body[data-station="center"] .hd-product-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 body[data-station="center"] .hd-product-filters>.t,body[data-station="center"] .hd-product-filters #q{grid-column:1/-1;width:100%}
 body[data-station="center"] .hd-product-filters>.line{display:none}
 body[data-station="center"] .hd-product-filters>:is(.hd-select,select){min-width:0;width:100%}
 body[data-station="buy"] .row:has(.searchbox)>.col{order:3;flex:0 0 100%;max-width:100%}
 body[data-station="buy"] .row:has(.searchbox)>.col-auto:not(#backlog){flex:0 0 50%;max-width:50%}
 body[data-station="buy"] .row:has(.searchbox)>.col-auto :is(.hd-select,select){width:100%;min-width:0}
 body[data-station="buy"] .row:has(.searchbox)>#backlog{order:4;flex:0 0 100%;max-width:100%}
}
@media(prefers-reduced-motion:reduce){
 body[data-station],body[data-station] *,body[data-station] *::before,body[data-station] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
 body[data-station] :is(.btn,.primary,.ghost,.tab,.hd-select-trigger,.hd-file-button):active{transform:none!important}
 body[data-station] .card:hover{transform:none!important}
}

/* Daily work comes first; configuration and history use explicit disclosure. */
body[data-station="center"] .hd-home-heading h2{font-size:22px;margin:8px 0}
body[data-station="center"] .hd-home-heading p{margin:0 0 18px;font-size:13px}
body[data-station="center"] .hd-daily-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}
body[data-station="center"] a.hd-daily-action{display:flex;gap:12px;padding:20px;text-decoration:none;color:var(--ink);border:1px solid var(--line);border-radius:12px;transition:border-color .16s ease,background-color .16s ease}
body[data-station="center"] a.hd-daily-action:hover{border-color:var(--brand);background:var(--panel2)}
body[data-station="center"] .hd-daily-action h3{margin:0 0 8px;font-size:16px}
body[data-station="center"] .hd-daily-action p{font-size:12px;color:var(--ink2);line-height:1.7;margin:0 0 14px}
body[data-station="center"] .hd-daily-action strong{font-size:12px;color:var(--hd-brand-ink)}
body[data-station="center"] .hd-action-number{display:flex;align-items:center;justify-content:center;flex:0 0 28px;height:28px;border-radius:8px;color:var(--hd-brand-ink);background:var(--brand-soft);font-weight:700}
body[data-station="center"] .hd-overview-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
body[data-station="center"] .hd-home-notice{margin:0;padding:10px 0;color:var(--ink2);font-size:13px;line-height:1.7;overflow-wrap:anywhere}
body[data-station="center"] .hd-home-notice.hd-connection-error{padding:12px;border-left:3px solid var(--red);background:rgba(240,97,109,.08);border-radius:6px}
body[data-station="center"] .hd-home-image-status{display:flex;align-items:center;gap:12px;margin-top:8px}
body[data-station="center"] .hd-home-image-status>.hd-home-notice{flex:1;min-width:0}
body[data-station="center"] .hd-home-image-status>button{flex:none}
body[data-station="center"] .hd-last-check{margin:12px 0}
body[data-station="center"] .hd-disclosure{padding:0;margin:12px 0;overflow:hidden}
body[data-station="center"] details.hd-disclosure>summary{padding:16px;margin:0;min-height:52px;font-size:14px;font-weight:650}
body[data-station="center"] .hd-disclosure>summary small{font-size:12px;font-weight:400;color:var(--ink2);margin-left:12px}
body[data-station="center"] .hd-disclosure[open]>summary{border-bottom:1px solid var(--line)}
body[data-station="center"] .hd-disclosure-body{padding:16px;min-width:0}
body[data-station] .hd-inline-help{margin:12px 0}
body[data-station] .hd-inline-help>summary{color:var(--ink2);font-size:12px}
body[data-station="center"] #message:not(.hd-connection-error){background:transparent;border-color:transparent;color:var(--ink3);padding:0 2px;margin:6px 0 16px}
@media(max-width:760px){
 body[data-station="center"] .hd-daily-actions{grid-template-columns:1fr;gap:10px}
 body[data-station="center"] a.hd-daily-action{padding:16px}
 body[data-station="center"] .hd-daily-action p{margin-bottom:8px}
 body[data-station="center"] .hd-home-image-status{align-items:flex-start;flex-direction:column;gap:2px}
 body[data-station="center"] .hd-disclosure>summary small{display:block;margin:5px 0 0 16px}
 body[data-station="center"] .hd-disclosure-body{padding:12px}
 body[data-station="center"] .hd-overview-kpis{gap:8px}
 body[data-station="center"] .hd-overview-kpis .kpi{padding:12px 10px}
 body[data-station="center"] .hd-overview-kpis .num{font-size:24px}
}
/* Seller account cards: scoped to HD account management. */
.hd-shops .acc-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.hd-shops h2{margin:0;font-size:18px}.hd-shops .acc-head p{margin:8px 0}
.hd-shops .hd-shop-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,370px),1fr));gap:14px;margin:16px 0}
.hd-shops .hd-shop-card{border:1px solid var(--line);border-radius:12px;padding:16px;background:var(--panel)}
.hd-shops .hd-shop-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.hd-shops h3{margin:0;overflow-wrap:anywhere;font-size:16px}.hd-shops .hd-shop-heading .hd-status{flex-shrink:0}
.hd-shops .hd-shop-pools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}
.hd-shops .hd-shop-pool{display:flex;flex-direction:column;gap:8px;padding:14px;border:1px solid var(--line);border-radius:9px;text-decoration:none;color:var(--ink);background:var(--bg2);transition:border-color .15s,background .15s}
.hd-shops a.hd-shop-pool:hover{border-color:var(--brand);background:var(--panel2)}
.hd-shops a.hd-shop-pool:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
.hd-shops a.hd-shop-pool:active{background:var(--brand-soft)}
.hd-shops .hd-shop-pool small{color:var(--ink2);line-height:1.5}.hd-shops .hd-shop-pool-unavailable{opacity:.7}
.hd-shops .hd-shop-foot{margin:14px 0 0;font-size:12px}
@media(max-width:520px){.hd-shops .hd-shop-pools{grid-template-columns:1fr}.hd-shops .acc-head .hd-toolbar{width:100%}.hd-shops .acc-search{width:100%}}
@media(prefers-reduced-motion:reduce){.hd-shops .hd-shop-pool{transition:none}}
/* Scoped list selection: never stretch checkboxes with generic form rules. */
.hd-batch-collector .hd-table-wrap{max-height:480px;overflow:auto;margin-top:12px}
.hd-batch-collector .hd-table th:first-child{width:60px}
.hd-batch-collector .hd-table th:last-child{width:190px}
.hd-batch-collector input[type="checkbox"]{appearance:auto;width:18px;min-width:18px;height:18px;margin:0;accent-color:var(--brand);cursor:pointer}
.hd-batch-collector .hd-table td{vertical-align:middle;padding:12px;overflow-wrap:anywhere}
.hd-batch-collector .hd-toolbar{display:flex;flex-wrap:wrap;gap:8px}
.hd-batch-collector button:disabled{opacity:.5;cursor:not-allowed}

/* Store-first dashboard: scoped to HD center only. */
body[data-station="center"] .hd-store-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:16px;}
body[data-station="center"] .hd-home-stores {margin:20px 0;}
body[data-station="center"] .hd-store-grid h3 {margin:0 0 12px;overflow-wrap:anywhere;}
body[data-station="center"] .hd-progress-kpi {display:block;padding:0;border:0;border-radius:12px;background:transparent;color:inherit;text-align:left;font:inherit;cursor:pointer;min-width:0;}
body[data-station="center"] .hd-progress-kpi .kpi {height:100%;box-sizing:border-box;}
body[data-station="center"] .hd-progress-kpi:hover .kpi {border-color:var(--brand);}
body[data-station="center"] .hd-progress-kpi:focus-visible {outline:2px solid var(--brand);outline-offset:3px;}
body[data-station="center"] .hd-progress-kpi:active {transform:translateY(1px);}

.hd-pagination fieldset {display:flex;align-items:center;flex-wrap:wrap;gap:12px;border:0;margin:0;padding:8px 0;min-width:0;}
.hd-pagination label {display:flex;align-items:center;gap:8px;white-space:nowrap;}
.hd-pagination input[data-page-number] {width:86px;min-width:0;box-sizing:border-box;}
.hd-pagination select[data-page-size] {min-width:100px;}
.hd-pagination [data-page-error] {color:var(--red);font-size:12px;}

/* HD station alignment contract: tables retain readable columns, controls share
   a baseline, and only the table region scrolls on smaller screens. */
body[data-station] .hd-table{min-width:680px;table-layout:auto;line-height:1.6}
body[data-station] .hd-table :is(th,td){vertical-align:middle;padding:14px 12px}
body[data-station] .hd-table td{overflow-wrap:anywhere}
body[data-station] .hd-table th{font-weight:650}
body[data-station] .hd-table td:first-child{min-width:200px}
body[data-station] .hd-table .hd-status{white-space:nowrap;overflow-wrap:normal;flex:none;line-height:20px;padding:3px 10px}
body[data-station] .hd-status{white-space:nowrap;vertical-align:middle}
body[data-station] .hd-table .hd-toolbar{margin:0;gap:8px;align-items:center}
body[data-station] .hd-row-actions{display:flex;align-items:center;gap:6px;flex-wrap:nowrap;margin:0}
body[data-station] .hd-row-actions>button{flex:none;min-height:34px;padding:6px 9px}
body[data-station="center"] #staffAdmin .hd-table{table-layout:fixed;min-width:1080px}
body[data-station="center"] #staffAdmin th:nth-child(1){width:23%}
body[data-station="center"] #staffAdmin th:nth-child(2){width:23%}
body[data-station="center"] #staffAdmin th:nth-child(3){width:21%}
body[data-station="center"] #staffAdmin th:nth-child(4){width:8%}
body[data-station="center"] #staffAdmin th:nth-child(5){width:25%}
body[data-station="center"] #staffRows .hd-muted{margin-top:4px}
body[data-station="center"] #staffAdmin .hd-table :is(th,td):nth-child(4){text-align:center}
body[data-station="center"] #inventorySettings .hd-table :is(th,td):nth-child(2),
body[data-station="center"] #inventorySettings .hd-table :is(th,td):nth-child(3){white-space:nowrap;min-width:100px;font-variant-numeric:tabular-nums}
body[data-station] .hd-toolbar{column-gap:12px;row-gap:10px;align-items:center}
body[data-station] :is(.hd-toolbar,.hd-art-actions,.hd-pagination,.bar) :is(button.primary,button.ghost,a.ghost,.btn){display:inline-flex;align-items:center;justify-content:center;min-height:38px;box-sizing:border-box;line-height:1.4;text-align:center;flex-shrink:0}
body[data-station] .hd-toolbar>:is(h2,h3,p){margin-top:0;margin-bottom:0}
body[data-station] .hd-toolbar>label:has(select){display:inline-flex;align-items:center;gap:10px;flex-wrap:wrap}
body[data-station="center"] .acc-search:where(:not(#q):not(#staffOneTimeKey)){width:240px}
body[data-station="center"] .acc-search:where(:not(#q):not(#staffOneTimeKey)):focus{width:240px}
body[data-station="center"] .hd-staff-field .acc-search,
body[data-station="center"] .hd-staff-field .acc-search:focus{width:100%}
body[data-station="center"] #accounts>.card+ .card{margin-top:20px}
body[data-station="center"] #staffAdmin>.hd-toolbar:first-child{margin-top:0}
body[data-station="center"] .hd-table-wrap+.hd-toolbar{margin-bottom:0}
body[data-station] .hd-pagination fieldset{width:100%;column-gap:12px;row-gap:10px;align-items:center}
body[data-station] .hd-pagination label{margin:0;line-height:1.5}
body[data-station] .hd-pagination input[data-page-number]{height:38px}
body[data-station] .hd-pagination .hd-select{min-width:100px}
body[data-station] .hd-login-fields{display:flex;flex-wrap:wrap;align-items:flex-end;gap:16px;margin:0 0 16px}
body[data-station] .hd-login-field{display:flex;flex:0 1 280px;flex-direction:column;gap:8px;min-width:0}
body[data-station] .hd-login-field>label{font-weight:650;line-height:1.5}
body[data-station] .hd-login-field>input.s{width:100%;min-width:0;height:40px}
body[data-station] .hd-login-fields>button{height:40px;padding:8px 16px}
body[data-station="center"] #imageKeyForm{align-items:flex-end}
body[data-station="center"] #imageKeyForm>label{display:grid;grid-template-columns:max-content max-content;align-items:center;gap:8px;min-width:0}
body[data-station="center"] #imageKeyForm>label>input{grid-column:1/-1}
body[data-station="art"] .hd-art-heading{min-width:0;flex:1}
body[data-station="art"] .chead{align-items:flex-start;gap:12px}
body[data-station="art"] .chead>.tag{flex:none;white-space:nowrap;margin-top:2px}
body[data-station="art"] .hd-art-actions{align-items:center;gap:10px}
body[data-station="art"] .hd-image-tile>.hd-art-actions{padding:0;margin:8px 0}
body[data-station="art"] .hd-image-tile>.hd-check{align-items:flex-start;line-height:1.6}
body[data-station="art"] .hd-image-tile>.hd-check>input{margin-top:3px}
body[data-station="art"] #staffStatus{flex:1;min-width:180px;margin:0}
body[data-station="art"] .wrap>.bar{margin-top:16px;gap:12px}
body[data-station="buy"] .navbar .container-xl{gap:12px}
body[data-station="buy"] .row:has(.searchbox){align-items:center}
body[data-station="buy"] .row:has(.searchbox) .searchbox{min-height:38px;box-sizing:border-box}
body[data-station="buy"] .card-body .d-flex.gap-2>.btn{margin-left:0}
@media(max-width:760px){
 body[data-station] .hd-toolbar>:is(h2,h3){flex-basis:100%}
 body[data-station="center"] :is(#staffSearch,#shopSearch,#catalogSearch){width:100%;flex-basis:100%}
 body[data-station="center"] .acc-search:where(:not(#q):not(#staffOneTimeKey)){max-width:100%}
 body[data-station] .hd-login-field{flex:1 1 220px}
 body[data-station] .hd-pagination fieldset{gap:10px}
 body[data-station] .hd-pagination label{flex-wrap:wrap}
 body[data-station="art"] .top .r .stat{max-width:100%;overflow-wrap:anywhere}
}
@media(max-width:480px){
 body[data-station="center"] #staffAdmin>[aria-label="员工岗位分区"]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 body[data-station] .hd-login-field{flex-basis:100%}
 body[data-station] .hd-login-fields>button{width:100%}
 body[data-station="center"] .hd-home-image-status>button{align-self:flex-start}
}

/* Store onboarding only; reuse the existing HD admin palette and controls. */
body[data-station="center"] #shopSettings .hd-shop-steps{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0 24px;padding:0}
body[data-station="center"] #shopSettings .hd-shop-steps li{min-width:0;border:1px solid var(--line);border-radius:10px;background:var(--panel2);padding:14px;line-height:1.7}
body[data-station="center"] #shopSettings .hd-shop-steps strong{display:block;color:var(--ink);margin-bottom:6px}
body[data-station="center"] #shopSettings .hd-shop-steps span{color:var(--ink2);font-size:12px}
body[data-station="center"] #shopSettings .hd-shop-owner-field{border-left:3px solid var(--amber);padding-left:14px}
body[data-station="center"] #shopSettings .hd-shop-owner-field .hd-status{color:var(--amber);margin-left:8px}
body[data-station="center"] #shopSettings .hd-shop-next{margin-top:20px;padding:14px;border:1px solid var(--line);border-radius:10px;line-height:1.8}
body[data-station="center"] #shopSettings .hd-shop-next summary{cursor:pointer;font-weight:650;color:var(--ink)}
body[data-station="center"] #shopSettings .hd-shop-next li{padding:4px 0;color:var(--ink2)}
body[data-station="center"] #shopSettings .hd-shop-next ol{margin:10px 0 0;padding-left:22px}
body[data-station="center"] #shopSettings .hd-shop-owner-note{margin-top:16px;border:1px solid var(--line);border-radius:10px;padding:14px}
body[data-station="center"] #shopSettings .hd-shop-owner-note label{display:block;font-weight:650;margin-bottom:10px}
body[data-station="center"] #shopSettings .hd-shop-owner-note textarea{box-sizing:border-box;width:100%;resize:vertical;min-height:200px;line-height:1.7;background:var(--bg2);color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:12px;font:inherit;white-space:pre-wrap}
body[data-station="center"] #shopSettings #shopEditorHelp{line-height:1.8;margin:18px 0 12px}
body[data-station="center"] #shopSettings #shopEditorIntro{line-height:1.8}
@media(max-width:760px){body[data-station="center"] #shopSettings .hd-shop-steps{grid-template-columns:1fr}body[data-station="center"] #shopSettings .hd-staff-identity{grid-template-columns:1fr}}

/* Store connection lamps: scoped, text + colour, responsive without clipping. */
.hd-store-lights{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0}
.hd-store-light{display:flex;align-items:flex-start;gap:9px;padding:12px;border:1px solid #303a49;border-radius:10px;background:#10151c;min-width:0}
.hd-store-light strong,.hd-store-light small{display:block;overflow-wrap:anywhere}
.hd-store-light small{margin-top:5px;color:#a9b8cb;line-height:1.5}
.hd-store-dot{flex:0 0 9px;height:9px;border-radius:50%;margin-top:5px;background:#e4a43b}
.hd-store-light.is-ready .hd-store-dot{background:#35c781;box-shadow:0 0 0 3px #35c78116}
@media(max-width:1050px){.hd-store-lights{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.hd-store-lights{grid-template-columns:1fr}}
/* Host connections are scoped to the store cards. */
.hd-host-panel{margin-top:16px;padding:16px;border:1px solid var(--line,#232a35);border-radius:12px;background:var(--bg2,#0f1218)}
.hd-host-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.hd-host-windows{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:12px 0}
.hd-host-window{display:grid;grid-template-columns:1fr;gap:8px;padding:12px;background:var(--panel,#14181f);border-radius:8px;border:1px solid var(--line,#232a35)}
.hd-host-window .hd-status{justify-self:start;white-space:nowrap}
.hd-host-window small{line-height:1.5;color:var(--ink2,#a3adbd)}

/* HD dropdown layout: preserve native values/events and body-mounted popup. */
body[data-station] .hd-select:has(>select.form-select){width:100%}
body[data-station] .hd-select-trigger{box-sizing:border-box;min-width:0;align-items:center}
body[data-station] .hd-select-value{flex:1 1 auto;display:block;line-height:1.4}
body[data-station] .hd-select-chevron{display:block;box-sizing:border-box;align-self:center;margin:0 2px 3px 4px}
body[data-station] .hd-select-popup{min-width:0}
body[data-station] .hd-select-search{box-sizing:border-box;min-width:0;max-width:100%}
body[data-station] .hd-select-options{min-width:0;overflow-x:hidden;overflow-y:auto}
body[data-station] .hd-select-option{position:relative;display:block;max-width:100%;white-space:normal;overflow-wrap:anywhere;padding-right:34px}
body[data-station] .hd-select-option[aria-selected="true"]::after{position:absolute;right:10px;top:9px;margin:0;padding:0}
body[data-station] .hd-select-group,body[data-station] .hd-select-empty{min-width:0;white-space:normal;overflow-wrap:anywhere}

/* 2026-11-19 Claude（HD 窗口）：调度台简单总览，只作用于调度台。 */
body[data-station="center"] .hd-simple{margin:4px 0 18px}
body[data-station="center"] .hd-simple-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:0 0 12px}
body[data-station="center"] .hd-simple-head h2{margin:0;font-size:18px;font-weight:750;color:var(--ink)}
body[data-station="center"] .hd-simple-head .hd-select,body[data-station="center"] .hd-simple-head select{width:300px;max-width:60%}
body[data-station="center"] .hd-simple-status{padding:13px 16px;border-radius:12px;border:1px solid var(--line);background:#fff;font-size:14px;line-height:2;margin-bottom:14px}
body[data-station="center"] .hd-simple-status.is-ok{border-left:4px solid var(--green)}
body[data-station="center"] .hd-simple-status.is-todo{border-left:4px solid var(--amber)}
body[data-station="center"] .hd-simple-status.is-bad{border-left:4px solid var(--red)}
body[data-station="center"] .hd-simple-status b{margin-right:8px}
body[data-station="center"] .hd-simple-chip{display:inline-block;font-size:12.5px;font-weight:700;border-radius:20px;padding:2px 10px;margin:2px 6px 2px 0;background:#f2f4f7;color:var(--ink2)}
body[data-station="center"] .hd-simple-chip.is-ok{background:rgba(24,121,78,.1);color:var(--green)}
body[data-station="center"] .hd-simple-chip.is-todo{background:rgba(245,165,36,.14);color:#9a6500}
body[data-station="center"] .hd-simple-chip.is-bad{background:rgba(180,35,53,.1);color:var(--red)}
body[data-station="center"] .hd-simple-flow{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
body[data-station="center"] .hd-simple-step{background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:6px;min-width:0}
body[data-station="center"] .hd-simple-step-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
body[data-station="center"] .hd-simple-step-top b{font-size:14px}
body[data-station="center"] .hd-simple-no{width:24px;height:24px;flex:0 0 24px;border-radius:50%;background:var(--brand-soft);color:var(--brand);font-weight:800;display:inline-flex;align-items:center;justify-content:center;font-size:13px}
body[data-station="center"] .hd-simple-who{margin-left:auto;font-size:11px;color:var(--ink3);background:#f2f4f7;border-radius:20px;padding:2px 8px}
body[data-station="center"] .hd-simple-num{font-size:32px;font-weight:800;line-height:1.15;color:var(--ink)}
body[data-station="center"] .hd-simple-num small{font-size:13px;font-weight:600;color:var(--ink3)}
body[data-station="center"] .hd-simple-num.is-text{font-size:17px;font-weight:700;padding:7px 0}
body[data-station="center"] .hd-simple-step p{margin:0;font-size:12.5px;color:var(--ink2);line-height:1.6;flex:1}
body[data-station="center"] .hd-simple-split{font-size:12px;color:var(--ink3)}
body[data-station="center"] .hd-simple-actions{display:flex;gap:6px;flex-wrap:wrap}
body[data-station="center"] .hd-simple-alert{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px;padding:12px 16px;border:1px solid rgba(180,35,53,.35);border-left:4px solid var(--red);border-radius:12px;background:rgba(180,35,53,.05)}
body[data-station="center"] .hd-simple-alert b{color:var(--red)}
body[data-station="center"] .hd-simple-alert span{color:var(--ink2);font-size:13px;flex:1}
body[data-station="center"] .hd-simple-stores{margin-top:14px;display:flex;flex-direction:column;gap:8px}
body[data-station="center"] .hd-simple-store{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:#fff;border:1px solid var(--line);border-radius:10px;padding:10px 14px}
body[data-station="center"] .hd-simple-right{margin-left:auto}
body[data-station="center"] .hd-simple-test{padding:2px 4px}
body[data-station="center"] .hd-simple-links{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
body[data-station="center"] .hd-more{margin-top:20px}
body[data-station="center"] .hd-page-actions #todo{display:none}
@media(max-width:1100px){body[data-station="center"] .hd-simple-flow{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){body[data-station="center"] .hd-simple-flow{grid-template-columns:1fr}body[data-station="center"] .hd-simple-head .hd-select,body[data-station="center"] .hd-simple-head select{max-width:100%;width:100%}}
