/* Compact combined visual-style switch and fresh-theme hue control. */
.interface-style-stack {
  display: flex;
  flex: 0 0 76px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 76px;
  min-width: 76px;
  height: 38px;
  margin-left: 0;
  padding: 2px 4px 3px;
  gap: 1px;
  border: 1px solid rgba(104, 122, 118, .10);
  border-radius: 11px;
  background: rgba(255, 255, 255, .30);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78), 0 2px 7px rgba(71, 89, 84, .05);
  overflow: hidden;
}

#theme-btn.interface-style-toggle {
  flex: 0 0 22px;
  width: 100%;
  min-width: 0;
  height: 22px;
  min-height: 22px;
  justify-content: center;
  margin: 0;
  padding: 0 3px;
  border: 0;
  border-radius: 7px 7px 5px 5px;
  background: transparent;
  box-shadow: none;
}

#theme-btn.interface-style-toggle .interface-style-icon {
  width: 14px;
  text-align: center;
  font-size: 12px;
  line-height: 1;
  transform: none !important;
}

#theme-btn.interface-style-toggle:hover .interface-style-icon,
#theme-btn.interface-style-toggle:active {
  transform: none !important;
}

.fresh-theme-picker {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 10px;
  width: 68px;
  height: 10px;
  margin: 0;
  padding: 0 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
  box-shadow: inset 0 1px 1px rgba(57, 70, 67, .06);
}

html[data-interface-style="crystal"] .fresh-theme-picker { display: inline-flex; }
html[data-interface-style="online"] .interface-style-stack { height: 30px; padding-block: 3px; }

#fresh-theme-hue {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 60px !important;
  min-width: 60px !important;
  height: 6px !important;
  min-height: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  outline: 0;
  cursor: pointer;
  background: linear-gradient(90deg,
    #ff9da5 0%, #ffc36f 14%, #dcec73 28%, #70e0ad 42%,
    #66dbe8 56%, #86aaf5 69%, #c58cf0 82%, #f58eb9 94%, #ff9da5 100%) !important;
  box-shadow: inset 0 1px 2px rgba(57, 70, 67, .12), 0 1px 0 rgba(255, 255, 255, .76) !important;
}

#fresh-theme-hue::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .94);
  background: hsl(var(--fresh-theme-hue, 158) 64% 66%);
  box-shadow: 0 1px 4px rgba(54, 68, 64, .22), inset 0 1px 0 rgba(255, 255, 255, .66);
}

#fresh-theme-hue::-moz-range-thumb {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .94);
  background: hsl(var(--fresh-theme-hue, 158) 64% 66%);
  box-shadow: 0 1px 4px rgba(54, 68, 64, .22), inset 0 1px 0 rgba(255, 255, 255, .66);
}

#fresh-theme-hue:focus-visible {
  box-shadow: inset 0 1px 2px rgba(57, 70, 67, .10), 0 0 0 2px hsl(var(--fresh-theme-hue, 158) 62% 68% / .24) !important;
}

@media (max-width: 900px) {
  .interface-style-stack { order:8; flex-basis:68px; width:68px; min-width:68px; padding-inline:3px; }
  .fresh-theme-picker { width:62px; padding-inline:4px; }
  #fresh-theme-hue { width:54px !important; min-width:54px !important; }
}

/* Industrial material chooser: original selects remain the business data source. */
.pq-material-picker-trigger,.pq-material-picker-panel{display:none}
html[data-interface-style="online"] select[data-pq-material-select="true"]{position:absolute!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;width:1px!important;min-width:0!important;max-width:1px!important;height:1px!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important}
html[data-interface-style="online"] .pq-material-picker-trigger{display:flex;align-items:center;justify-content:space-between;gap:6px;box-sizing:border-box;width:100%;min-width:0;min-height:28px;padding:4px 8px;border:1px solid #d5dfed;border-radius:5px;background:#fff;color:#334155;font:inherit;font-size:12px;line-height:18px;text-align:left;cursor:pointer}
html[data-interface-style="online"] .pq-material-picker-trigger>span:first-child{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
html[data-interface-style="online"] .pq-material-arrow{color:#71839c;flex:none}
html[data-interface-style="online"] .pq-material-picker-trigger[aria-expanded="true"]{border-color:#7da6ff;box-shadow:0 0 0 2px #2563eb10}
html[data-interface-style="online"] .pq-material-picker-trigger:disabled{opacity:.5;cursor:default}
html[data-interface-style="online"] .pq-material-picker-panel:not([hidden]){display:flex;flex-direction:column;gap:7px;position:fixed;z-index:2147482000;box-sizing:border-box;padding:10px;border:1px solid #cdd9ec;border-radius:9px;background:#fff;color:#334155;box-shadow:0 8px 28px #1b335626;font:12px/1.4 system-ui,"Microsoft YaHei",sans-serif}
html[data-interface-style="online"] .pq-material-picker-header{display:flex;align-items:center;gap:8px;flex:none;min-height:20px}
html[data-interface-style="online"] .pq-material-picker-header strong{font-size:13px;color:#233957}
html[data-interface-style="online"] .pq-material-picker-header>span{font-size:11px;color:#8593a7}
html[data-interface-style="online"] .pq-material-dismiss{margin-left:auto;border:0;border-radius:4px;background:transparent;color:#7b8ba2;font:18px/20px system-ui;padding:0 3px;cursor:pointer}
html[data-interface-style="online"] .pq-material-search{box-sizing:border-box;flex:none;width:100%;height:28px;min-height:28px;padding:4px 8px;border:1px solid #dce4ef;border-radius:5px;background:#f8faff;color:#334155;font:12px/18px system-ui,"Microsoft YaHei",sans-serif;outline:none}
html[data-interface-style="online"] .pq-material-search:focus{border-color:#7da6ff}
html[data-interface-style="online"] .pq-material-groups{display:flex;flex-wrap:wrap;gap:4px;flex:none}
html[data-interface-style="online"] .pq-material-groups[hidden]{display:none}
html[data-interface-style="online"] .pq-material-groups button{border:1px solid transparent;border-radius:4px;background:#f1f5fa;color:#64748b;padding:3px 7px;font:11px/16px system-ui,"Microsoft YaHei",sans-serif;cursor:pointer}
html[data-interface-style="online"] .pq-material-groups button[aria-pressed="true"]{border-color:#c5d6ff;background:#edf3ff;color:#2563eb}
html[data-interface-style="online"] .pq-material-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;overflow-y:auto;min-height:0;overscroll-behavior:contain;scrollbar-width:thin}
html[data-interface-style="online"] .pq-material-option{display:flex;align-items:center;justify-content:space-between;gap:4px;min-width:0;min-height:27px;box-sizing:border-box;margin:0;padding:4px 7px;border:1px solid #e4eaf3;border-radius:5px;background:#fff;color:#475569;font:12px/17px system-ui,"Microsoft YaHei",sans-serif;text-align:left;cursor:pointer}
html[data-interface-style="online"] .pq-material-option>span:first-child{min-width:0;overflow-wrap:anywhere}
html[data-interface-style="online"] .pq-material-option:hover{background:#f5f8ff;border-color:#bfd1f6}
html[data-interface-style="online"] .pq-material-option[aria-selected="true"]{border-color:#96b7ff;background:#edf3ff;color:#2563eb;font-weight:600}
html[data-interface-style="online"] .pq-material-option:disabled{opacity:.45;cursor:default}
html[data-interface-style="online"] :is(.pq-material-option,.pq-material-groups button,.pq-material-picker-trigger,.pq-material-dismiss):focus-visible{outline:2px solid #7da6ff;outline-offset:1px}
html[data-interface-style="online"] .pq-material-check{flex:none;width:12px;font-size:12px;text-align:right}
html[data-interface-style="online"] .pq-material-empty{grid-column:1/-1;text-align:center;padding:20px 6px;color:#94a3b8}
@media(max-width:600px){html[data-interface-style="online"] .pq-material-option{min-height:34px;font-size:12px}}

/* Industrial quotation: stable specification size and a taller preview canvas. */
label[data-special-paper-kg-label]{text-transform:none!important}
@layer pq-desktop-ui {
html[data-interface-style="online"] :is(#spec-box,#spec-card,#spec-label,#spec-album),
html[data-interface-style="online"] :is(#spec-box,#spec-card,#spec-label,#spec-album):hover{transform:none!important;zoom:1!important}
@media(min-width:769px){
html[data-interface-style="online"] #layout-side-panel #lp-cad-svg{height:var(--pq-layout-canvas-height,calc((100dvh - 90px)*.75))!important;min-height:180px!important;max-height:none!important}
}
html[data-interface-style="online"] #lp-layout-desc{display:flex!important;flex-direction:column!important;align-items:center!important;gap:4px!important}
html[data-interface-style="online"] #lp-layout-desc>.pq-layout-headline{order:-2!important;font-size:12px!important;line-height:1.45!important;font-weight:600!important;color:var(--color-text-primary,#243247)!important;overflow-wrap:anywhere}
html[data-interface-style="online"] #lp-layout-desc>.layout-waste-summary{order:-1!important;margin:0!important}
html[data-interface-style="online"] #lp-layout-desc>.layout-dimension-note{margin:0!important;width:auto!important;max-width:100%!important;white-space:normal!important;overflow:visible!important;text-align:center!important;padding:4px 6px!important;line-height:1.45!important;font-size:10px!important}
html[data-interface-style="online"] #lp-layout-desc>.pq-layout-headline .pq-layout-stock{color:inherit!important;font-weight:600!important}
}
