/* ws19c: 3D dist 7/8/9px text -> 10/11px (ws19b only covered 9px; 8px .h3d-result-promises small etc. remained) */
.h3d-pill{font-size:11px}
.h3d-section-heading>div>span,.h3d-workspace-heading>div>span{font-size:11px}
.h3d-mode-card>small{font-size:10px}
.h3d-reference-copy small{font-size:10px}
.h3d-task-result-copy small{font-size:10px}
.h3d-task-result-actions button{font-size:10px}
.h3d-task-result-empty{font-size:11px}
.h3d-result-heading-actions>small{font-size:11px}
.h3d-result-promises small{font-size:10px}
.h3d-current-result-summary small,.h3d-current-result-summary em{font-size:11px}
.h3d-current-result-error small{font-size:11px}
.h3d-result-recent-head small{font-size:10px}
.h3d-inline-viewer-bar{font-size:11px}
.h3d-task-detail dt{font-size:10px}
.h3d-task-detail dd{font-size:11px}
.h3d-field>span small,.h3d-field>span output,.h3d-output-block>span small{font-size:11px}
.h3d-model-card-top small{font-size:10px}
.h3d-model-readiness{font-size:10px}
.h3d-capability-chips span{font-size:10px}
.h3d-model-footer{font-size:10px}
.h3d-model-footer strong{font-size:11px}
.h3d-truth-label{font-size:11px}
.h3d-face-count-heading small{font-size:10px}
.h3d-face-count-input>span:last-child{font-size:11px}
.h3d-range-scale small{font-size:10px}
.h3d-range-scale output{font-size:11px}
.h3d-face-count-help{font-size:10px}
.h3d-locked-setting small{font-size:10px}
.h3d-toggle-row small{font-size:10px}
.h3d-format-grid label span{font-size:10px}
.h3d-storage-card p{font-size:11px}
.h3d-storage-card ul{font-size:10px}
.h3d-retention-number small{font-size:11px}
.h3d-spec-row small{font-size:10px}
.h3d-spec-contract>code{font-size:10px}
.h3d-cost-row small{font-size:10px}
.h3d-submit-card>p{font-size:10px}
.h3d-file-badge{font-size:11px}
.h3d-file-badge small{font-size:10px}
.h3d-viewer-loading span,.h3d-viewer-error span{font-size:11px}
.h3d-viewer-error button{font-size:11px}
.h3d-demo-watermark,.h3d-drop-hint{font-size:10px}
.h3d-viewer-statusbar{font-size:10px}
.h3d-inspector-tabs button{font-size:11px}
.h3d-choice-row button,.h3d-surface-grid button{font-size:10px}
.h3d-detail-list dt{font-size:11px}
.h3d-detail-list dd{font-size:11px}
.h3d-mini-empty{font-size:10px}
.h3d-stat-grid small{font-size:10px}
.h3d-view-buttons button{font-size:10px}
.h3d-animation-list strong{font-size:11px}
.h3d-animation-list small,.h3d-animation-list time{font-size:10px}
.h3d-animation-controls button,.h3d-animation-controls select{font-size:10px}
.h3d-animation-seek>span{font-size:10px}
.h3d-empty-state>p{font-size:11px}
.h3d-task-summary-grid small{font-size:10px}
.h3d-task-list-head small{font-size:10px}
.h3d-task-loading span{font-size:11px}
.h3d-task-error p{font-size:11px}
.h3d-task-error button{font-size:11px}
.h3d-task-title-row small{font-size:10px}
.h3d-task-status{font-size:10px}
.h3d-task-meta{font-size:10px}
.h3d-progress-row strong{font-size:10px}
.h3d-footer{font-size:10px}
.h3d-inspector-tabs button{font-size:10px}
.h3d-workspace-ui66 .h3d-section-heading>div>span{font-size:11px}
.h3d-history-rail .h3d-thumbnail-label{font-size:11px}
@media(min-width:781px){
.h3d-creation-pane{height:calc(100dvh - 138px)}
.h3d-workspace-ui66 .h3d-creation-controls{padding:12px 14px 32px;scroll-padding-bottom:32px}
.h3d-workspace-ui66 .h3d-creation-controls>.h3d-panel{margin:0 0 12px}
.h3d-workspace-ui66 .h3d-creation-controls>.h3d-panel:last-of-type{margin-bottom:4px}
.h3d-workspace-ui66 .h3d-section-heading{margin-bottom:8px;gap:6px}
.h3d-workspace-ui66 .h3d-mode-grid{gap:6px}
.h3d-workspace-ui66 .h3d-mode-card{min-height:38px;padding:7px 9px}
.h3d-workspace-ui66 .h3d-reference-slot{min-height:124px;height:auto;max-height:none}
.h3d-workspace-ui66 .h3d-prompt-field{margin:2px 0 8px;gap:6px}
.h3d-workspace-ui66 .h3d-prompt-field textarea{min-height:84px;padding:9px 11px 10px}
.h3d-workspace-ui66 .h3d-submit-card{padding:11px 14px}
}
/* 3D Viewer Controls Guide Bar (Night & Day Unified, Single-Row Desktop Fit) */
.h3d-controls-guide{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 8px;margin-top:10px;padding:7px 10px;border-radius:10px;background:rgba(255,255,255,.03);border:1px solid rgba(224,182,94,.14);box-sizing:border-box;min-width:0}
.h3d-guide-item{display:inline-flex;align-items:center;gap:4px;font-size:11px;line-height:1.35;color:rgba(232,223,206,.74);white-space:nowrap}
.h3d-guide-item kbd{display:inline-flex;align-items:center;justify-content:center;min-width:16px;height:16px;padding:0 4px;border-radius:4px;background:rgba(255,255,255,.07);border:1px solid rgba(224,182,94,.22);font-size:10px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#f0ca7f;font-weight:600;line-height:1}
button.h3d-guide-key{appearance:none;-webkit-appearance:none;display:inline-flex;align-items:center;gap:5px;height:24px;padding:0 8px;margin:0;border-radius:6px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.11);color:rgba(245,239,230,.88);font-size:11px;font-family:inherit;font-weight:500;line-height:1;cursor:pointer;transition:background .16s ease,border-color .16s ease,color .16s ease;white-space:nowrap;box-shadow:none}
button.h3d-guide-key:first-of-type{margin-left:auto}
@media(max-width:1100px){button.h3d-guide-key:first-of-type{margin-left:0}}
button.h3d-guide-key kbd{display:inline-flex;align-items:center;justify-content:center;min-width:16px;height:16px;padding:0 4px;border-radius:4px;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.14);font-size:10px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#f5efe6;font-weight:600;line-height:1}
button.h3d-guide-key:hover,button.h3d-guide-key.is-active,button.h3d-guide-key[aria-pressed="true"]{background:rgba(224,182,94,.16);border-color:rgba(224,182,94,.45);color:#f3cd78}
button.h3d-guide-key:hover kbd,button.h3d-guide-key.is-active kbd,button.h3d-guide-key[aria-pressed="true"] kbd{background:rgba(224,182,94,.22);border-color:rgba(224,182,94,.48);color:#fff7e6}
html[data-hhv-appearance=day] .h3d-controls-guide,html.hhd4-day .h3d-controls-guide,html[data-hh-appearance=day] .h3d-controls-guide,html[data-theme=light] .h3d-controls-guide{background:rgba(255,255,255,.88);border-color:rgba(201,146,47,.22);box-shadow:0 2px 10px rgba(168,121,40,.06)}
html[data-hhv-appearance=day] .h3d-guide-item,html.hhd4-day .h3d-guide-item,html[data-hh-appearance=day] .h3d-guide-item,html[data-theme=light] .h3d-guide-item{color:#5c4d3a}
html[data-hhv-appearance=day] .h3d-guide-item kbd,html.hhd4-day .h3d-guide-item kbd,html[data-hh-appearance=day] .h3d-guide-item kbd,html[data-theme=light] .h3d-guide-item kbd{background:rgba(201,146,47,.1);border-color:rgba(201,146,47,.28);color:#8c5a09}
html[data-hhv-appearance=day] button.h3d-guide-key,html.hhd4-day button.h3d-guide-key,html[data-hh-appearance=day] button.h3d-guide-key,html[data-theme=light] button.h3d-guide-key{background:#f8f4ec;border-color:rgba(168,121,40,.22);color:#2c2419}
html[data-hhv-appearance=day] button.h3d-guide-key kbd,html.hhd4-day button.h3d-guide-key kbd,html[data-hh-appearance=day] button.h3d-guide-key kbd,html[data-theme=light] button.h3d-guide-key kbd{background:#fff;border-color:rgba(168,121,40,.28);color:#6e4708}
html[data-hhv-appearance=day] button.h3d-guide-key:hover,html[data-hhv-appearance=day] button.h3d-guide-key.is-active,html[data-hhv-appearance=day] button.h3d-guide-key[aria-pressed="true"],html.hhd4-day button.h3d-guide-key:hover,html.hhd4-day button.h3d-guide-key.is-active,html[data-hh-appearance=day] button.h3d-guide-key:hover,html[data-hh-appearance=day] button.h3d-guide-key.is-active,html[data-theme=light] button.h3d-guide-key:hover,html[data-theme=light] button.h3d-guide-key.is-active{background:#fdf3dc;border-color:#c9922f;color:#8a5a00}
html[data-hhv-appearance=day] button.h3d-guide-key:hover kbd,html[data-hhv-appearance=day] button.h3d-guide-key.is-active kbd,html[data-hhv-appearance=day] button.h3d-guide-key[aria-pressed="true"] kbd,html.hhd4-day button.h3d-guide-key:hover kbd,html.hhd4-day button.h3d-guide-key.is-active kbd,html[data-hh-appearance=day] button.h3d-guide-key:hover kbd,html[data-hh-appearance=day] button.h3d-guide-key.is-active kbd{background:#fae5b8;border-color:#c9922f;color:#6e4708}
@media(min-width:1200px){html body.hanhai-3d-standalone .h3d-controls-guide,html body .h3d-controls-guide{flex-wrap:nowrap!important;padding:6px 9px!important;gap:4px 6px!important}html body.hanhai-3d-standalone .h3d-controls-guide .h3d-guide-item,html body .h3d-guide-item{font-size:11px!important;gap:3px!important}html body.hanhai-3d-standalone .h3d-controls-guide button.h3d-guide-key,html body button.h3d-guide-key{font-size:11px!important;padding:0 7px!important;height:24px!important;gap:4px!important}}
body:has(.h3d-workspace-grid) .h3d-error-boundary,body:has(.h3d-app) .h3d-error-boundary{display:none!important}
.h3d-workspace-ui66 .h3d-selected-cover .h3d-artifact-thumbnail>img{width:auto;height:auto;max-width:min(384px,calc(100% - 40px));max-height:min(288px,calc(100% - 36px));object-fit:contain;object-position:center;padding:0;border-radius:12px}
/* === CR33 A9DA 3D Studio Dark-Gold Selectors, Segmented Pills, 2x2 Grid & Left-Aligned Settlement === */
.h3d-workspace-ui66 .h3d-compact-model-picker{overflow:visible!important;position:relative;z-index:45}
.h3d-custom-model-select{position:relative;width:100%}
button.h3d-model-select-trigger{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:42px;padding:8px 12px;border-radius:11px;background:linear-gradient(180deg,#1c1711 0%,#14110d 100%);border:1px solid rgba(224,182,94,.28);color:#f5efe6;cursor:pointer;text-align:left;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}
button.h3d-model-select-trigger:hover,.h3d-custom-model-select.is-open button.h3d-model-select-trigger{border-color:rgba(224,182,94,.58);box-shadow:0 0 0 3px rgba(224,182,94,.12)}
.h3d-model-trigger-main{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0;flex:1}
.h3d-model-trigger-main strong{font-size:13px;font-weight:600;color:#f7f1e6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.h3d-model-tag{font-style:normal;font-size:10.5px;line-height:1.2;padding:2px 6px;border-radius:5px;background:rgba(224,182,94,.13);border:1px solid rgba(224,182,94,.24);color:#ebca82;white-space:nowrap}
.h3d-model-trigger-side{display:inline-flex;align-items:center;gap:7px;flex-shrink:0}
.h3d-model-pts{font-size:11px;font-weight:600;color:#f0ca7f;background:rgba(224,182,94,.1);padding:2px 7px;border-radius:999px;border:1px solid rgba(224,182,94,.2);white-space:nowrap}
.h3d-model-chevron{color:rgba(240,202,127,.82);transition:transform .18s ease}
.h3d-custom-model-select.is-open .h3d-model-chevron{transform:rotate(180deg)}
.h3d-model-popover{position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:90;max-height:340px;overflow-y:auto;padding:6px;border-radius:13px;background:#18140f;border:1px solid rgba(224,182,94,.36);box-shadow:0 20px 48px rgba(0,0,0,.72),0 0 0 1px rgba(255,255,255,.03) inset;display:flex;flex-direction:column;gap:3px}
button.h3d-model-option{appearance:none;-webkit-appearance:none;display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:8px 10px;border-radius:9px;border:1px solid transparent;background:transparent;color:#ede4d5;cursor:pointer;text-align:left;transition:background .14s ease,border-color .14s ease}
button.h3d-model-option:hover{background:rgba(224,182,94,.1);border-color:rgba(224,182,94,.2)}
button.h3d-model-option.is-selected{background:linear-gradient(90deg,rgba(224,182,94,.2),rgba(224,182,94,.08));border-color:rgba(224,182,94,.44)}
.h3d-model-option-main{display:flex;flex-direction:column;gap:2px;min-width:0}
.h3d-model-option-main strong{font-size:12.5px;font-weight:600;color:#f8f2e7}
.h3d-model-option-main small{font-size:10.5px;color:rgba(232,223,206,.68)}
.h3d-model-option-side{display:inline-flex;align-items:center;gap:6px;flex-shrink:0}
.h3d-model-option-side em{font-style:normal;font-size:11px;font-weight:600;color:#f0ca7f;padding:2px 7px;border-radius:999px;background:rgba(224,182,94,.1);border:1px solid rgba(224,182,94,.2)}
.h3d-model-option-side i{font-style:normal;font-size:12px;font-weight:700;color:#f3cd78}
.h3d-single-mode-tip{display:flex;align-items:flex-start;gap:6px;margin:9px 0 0;padding:8px 10px;border-radius:9px;background:rgba(224,182,94,.07);border:1px solid rgba(224,182,94,.2);color:rgba(238,226,204,.86);font-size:11px;line-height:1.45}
.h3d-single-mode-tip svg{flex-shrink:0;margin-top:1px;color:#e8c170}

/* Segmented Pills in STEP 03 */
.h3d-seg-group{display:grid;grid-template-columns:repeat(auto-fit,minmax(84px,1fr));gap:5px;padding:4px;border-radius:10px;background:#14110d;border:1px solid rgba(224,182,94,.18)}
.h3d-seg-group.is-disabled{opacity:.5;pointer-events:none}
button.h3d-seg-pill{appearance:none;-webkit-appearance:none;min-height:32px;padding:5px 10px;border-radius:7px;border:1px solid transparent;background:transparent;color:rgba(235,226,210,.76);font-size:12px;font-weight:500;cursor:pointer;transition:all .15s ease;white-space:nowrap;text-align:center}
button.h3d-seg-pill:hover:not(:disabled){color:#f7f1e6;background:rgba(255,255,255,.04)}
button.h3d-seg-pill.is-active{background:linear-gradient(180deg,rgba(224,182,94,.26),rgba(184,136,48,.18));border-color:rgba(224,182,94,.48);color:#fae2ae;font-weight:600;box-shadow:0 2px 8px rgba(0,0,0,.28)}

/* STEP 02 Clean Single & 2x2 Multiview Reference Slots */
.h3d-workspace-ui66 .h3d-reference-grid{margin-bottom:12px;gap:9px}
.h3d-workspace-ui66 .h3d-reference-grid.is-image,.h3d-workspace-ui66 .h3d-reference-grid.is-sketch{grid-template-columns:1fr}
.h3d-workspace-ui66 .h3d-reference-grid.is-multiview{grid-template-columns:repeat(2,minmax(0,1fr))}
.h3d-workspace-ui66 .h3d-reference-slot.is-single-slot{aspect-ratio:auto!important;min-height:136px;height:auto}
.h3d-workspace-ui66 .h3d-reference-slot.is-mv-slot{aspect-ratio:auto!important;min-height:142px;height:auto}
.h3d-workspace-ui66 .h3d-reference-slot:not(.has-file) label{position:relative;inset:auto;min-height:inherit;justify-content:center;align-items:center;text-align:center;gap:6px;padding:12px 8px;box-sizing:border-box}
.h3d-workspace-ui66 .h3d-reference-slot.has-file{min-height:148px}
.h3d-workspace-ui66 .h3d-reference-slot .h3d-reference-copy{display:flex;flex-direction:column;gap:3px;align-items:center}
.h3d-workspace-ui66 .h3d-reference-slot.has-file .h3d-reference-copy{align-items:flex-start;background:linear-gradient(180deg,transparent,rgba(14,11,8,.86));padding:8px 10px;border-radius:8px;width:100%}
.h3d-workspace-ui66 .h3d-reference-copy strong{font-size:12.5px;color:#f6efe2}
.h3d-workspace-ui66 .h3d-reference-copy small{font-size:11px;line-height:1.4;color:rgba(232,223,206,.74)}

/* Left-align Bottom Settlement Card Model & Spec */
.h3d-workspace-ui66 .h3d-spec-row{flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:4px;text-align:left}
.h3d-workspace-ui66 .h3d-spec-row>span{align-items:flex-start;text-align:left;width:100%}
.h3d-workspace-ui66 .h3d-spec-contract{align-items:flex-start;max-width:100%;width:100%;text-align:left}
.h3d-workspace-ui66 .h3d-spec-contract small{text-align:left}

/* Refined Dark-Gold Empty State */
.h3d-result-empty-dashboard.is-refined-empty>.h3d-empty-state{background:radial-gradient(circle at 50% 18%,rgba(224,182,94,.12),rgba(18,15,11,.74) 68%);border:1px solid rgba(224,182,94,.24);border-radius:16px;min-height:220px;padding:28px 24px}
.h3d-result-empty-dashboard.is-refined-empty>.h3d-empty-state>span{width:64px;height:64px;border-radius:18px;color:#f0ca7f;background:linear-gradient(145deg,rgba(224,182,94,.16),rgba(22,19,15,.9));border:1px solid rgba(224,182,94,.34);box-shadow:0 10px 26px rgba(0,0,0,.35)}
.h3d-result-empty-dashboard.is-refined-empty>.h3d-empty-state>strong{font-size:15px;font-weight:600;color:#f7f0e2;letter-spacing:.01em}
.h3d-result-empty-dashboard.is-refined-empty>.h3d-empty-state>p{font-size:12px;max-width:460px;color:rgba(232,223,206,.78);line-height:1.65}

/* Day Mode Support */
html:is([data-hhv-appearance^="day"],.hhd4-day,[data-hh-appearance=day],[data-theme=light]) button.h3d-model-select-trigger{background:#fffdf9;border-color:rgba(180,132,42,.32);color:#231c12}
html:is([data-hhv-appearance^="day"],.hhd4-day,[data-hh-appearance=day],[data-theme=light]) .h3d-model-trigger-main strong{color:#1f1910}
html:is([data-hhv-appearance^="day"],.hhd4-day,[data-hh-appearance=day],[data-theme=light]) .h3d-model-tag,html:is([data-hhv-appearance^="day"],.hhd4-day,[data-hh-appearance=day],[data-theme=light]) .h3d-model-pts{background:rgba(201,146,47,.12);border-color:rgba(201,146,47,.28);color:#8a5a00}
html:is([data-hhv-appearance^="day"],.hhd4-day,[data-hh-appearance=day],[data-theme=light]) .h3d-model-popover{background:#fffdf8;border-color:rgba(180,132,42,.34);box-shadow:0 16px 40px rgba(36,26,10,.16)}
html:is([data-hhv-appearance^="day"],.hhd4-day,[data-hh-appearance=day],[data-theme=light]) button.h3d-model-option{color:#261e13}
html:is([data-hhv-appearance^="day"],.hhd4-day,[data-hh-appearance=day],[data-theme=light]) .h3d-model-option-main strong{color:#1e170e}
html:is([data-hhv-appearance^="day"],.hhd4-day,[data-hh-appearance=day],[data-theme=light]) .h3d-model-option-main small{color:#6e5d46}
html:is([data-hhv-appearance^="day"],.hhd4-day,[data-hh-appearance=day],[data-theme=light]) .h3d-model-option-side em{background:rgba(201,146,47,.12);border-color:rgba(201,146,47,.26);color:#8a5a00}
html:is([data-hhv-appearance^="day"],.hhd4-day,[data-hh-appearance=day],[data-theme=light]) .h3d-seg-group{background:#f5efe4;border-color:rgba(180,132,42,.22)}
html:is([data-hhv-appearance^="day"],.hhd4-day,[data-hh-appearance=day],[data-theme=light]) button.h3d-seg-pill{color:#5c4d38}
html:is([data-hhv-appearance^="day"],.hhd4-day,[data-hh-appearance=day],[data-theme=light]) button.h3d-seg-pill.is-active{background:#fff;border-color:rgba(201,146,47,.48);color:#7d5000;box-shadow:0 2px 6px rgba(168,121,40,.12)}
html:is([data-hhv-appearance^="day"],.hhd4-day,[data-hh-appearance=day],[data-theme=light]) .h3d-single-mode-tip{background:#fcf6e8;border-color:rgba(201,146,47,.28);color:#5c4724}
html:is([data-hhv-appearance^="day"],.hhd4-day,[data-hh-appearance=day],[data-theme=light]) .h3d-workspace-ui66 .h3d-reference-slot:not(.has-file) .h3d-reference-copy strong{color:#241c11}
html:is([data-hhv-appearance^="day"],.hhd4-day,[data-hh-appearance=day],[data-theme=light]) .h3d-workspace-ui66 .h3d-reference-slot:not(.has-file) .h3d-reference-copy small{color:#6a5a44}
html:is([data-hhv-appearance^="day"],.hhd4-day,[data-hh-appearance=day],[data-theme=light]) .h3d-result-empty-dashboard.is-refined-empty>.h3d-empty-state{background:radial-gradient(circle at 50% 18%,rgba(224,182,94,.16),#fbf8f1 70%);border-color:rgba(201,146,47,.28)}
html:is([data-hhv-appearance^="day"],.hhd4-day,[data-hh-appearance=day],[data-theme=light]) .h3d-result-empty-dashboard.is-refined-empty>.h3d-empty-state>strong{color:#21190f}
html:is([data-hhv-appearance^="day"],.hhd4-day,[data-hh-appearance=day],[data-theme=light]) .h3d-result-empty-dashboard.is-refined-empty>.h3d-empty-state>p{color:#5e4f3b}
/* === CR33 v129z65 Pixel Polish: Selected Mode SVG Contrast & 3-Column Single-Row Mode Grid === */
.h3d-mode-card.is-selected .h3d-mode-icon,.h3d-mode-card.is-selected svg,.h3d-mode-card.is-selected svg *{color:#1a1308!important;stroke:currentColor!important}
.h3d-workspace-ui66 .h3d-mode-grid:has(> :nth-child(3):last-child),.h3d-mode-grid:has(> :nth-child(3):last-child){grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
.h3d-workspace-ui66 .h3d-mode-grid:has(> :nth-child(3):last-child) .h3d-mode-card{justify-content:center!important;padding:7px 6px!important;gap:5px!important;min-width:0}
.h3d-workspace-ui66 .h3d-mode-grid:has(> :nth-child(3):last-child) .h3d-mode-card .h3d-mode-icon svg{width:15px!important;height:15px!important;flex-shrink:0}
.h3d-workspace-ui66 .h3d-mode-grid:has(> :nth-child(3):last-child) .h3d-mode-card strong{font-size:11.5px!important;white-space:nowrap!important;margin:0!important}
