/* Quote workspace quote workspace. Global/versioned in index.html, like existing drawing UI CSS. */
.ds-workspace {
    --ds-navy: #003366;
    --ds-stage: #eef4f9;
    --ds-paper: #fff;
    --ds-line: #d7e1eb;
    --ds-ink: #172d43;
    --ds-muted: #62758a;
    min-width: 0;
    color: var(--ds-ink);
}
.ds-workspace .qd-hero {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin-bottom: 26px;
}
.ds-quote-heading { display: flex; align-items: start; justify-content: space-between; gap: 24px; }
.ds-quote-heading-main { flex: 1; min-width: 0; }
.ds-quote-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 13px; margin-top: 10px; }
.ds-quote-meta .qd-qnum { margin: 0; }
.ds-quote-expiry { color: var(--ds-muted); font-size: 12px; }
.ds-quote-total { display: flex; flex-direction: column; align-items: end; text-align: right; flex-shrink: 0; gap: 3px; }
.ds-quote-total strong { color: var(--ds-navy); font-size: 36px; font-weight: 550; line-height: 1.15; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.ds-quote-total-label { color: var(--ds-muted); font-size: 11px; }
.ds-quote-total > span:last-child { color: var(--ds-muted); font-size: 11px; margin-top: 5px; }
.ds-workspace .qd-name { color: var(--ds-navy); font-size: clamp(22px, 2.4vw, 30px); font-weight: 650; overflow-wrap: anywhere; }
.ds-workspace .qd-actions { gap: 8px; padding: 0; margin: 0; }
.ds-quote-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 20px; border-top: 1px solid var(--ds-line); }
.ds-workspace .qd-menu { background: var(--ds-paper); border-color: var(--ds-line); }
.ds-workspace .qd-menu button { color: var(--ds-ink); min-height: 42px; }
.ds-workspace .qd-menu-btn { min-height: 40px; background: var(--ds-paper); color: var(--ds-navy); border-color: var(--ds-line); }
.ds-workspace .qd-iconbtn { width: 36px; height: 36px; }
.ds-workspace .lxc-btn--primary { background: var(--ds-navy); border-color: var(--ds-navy); color: white; }
.ds-doors-section { min-width: 0; padding-bottom: 22px; }
.ds-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 6px 0 15px; }
.ds-section-heading h2 { margin: 0; font-size: 17px; font-weight: 650; color: var(--ds-ink); }
.ds-section-heading h2 span { font-size: 12px; font-weight: 400; color: var(--ds-muted); margin-left: 8px; }
.ds-doors-hint { display: block; margin-top: 4px; font-size: 12px; color: var(--ds-muted); }
.ds-doors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(235px, 100%), 1fr)); gap: 16px; align-items: stretch; }
.ds-doors-grid--single { grid-template-columns: minmax(0, 360px); justify-content: center; }
.ds-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    padding: 0;
    border: 1px solid var(--ds-line);
    border-radius: 11px;
    text-align: left;
    font: inherit;
    color: var(--ds-ink);
    background: var(--ds-paper);
    cursor: pointer;
    box-shadow: 0 5px 13px rgba(18, 51, 83, .035);
    overflow: hidden;
}
.ds-tile:hover { border-color: var(--ds-navy); }
.ds-tile--menu-open { z-index: 50; }
.ds-tile-menu { position: absolute; top: 10px; right: 10px; z-index: 42; }
.ds-tile-menu .dc-menu { top: calc(100% + 6px); bottom: auto; background: var(--ds-paper); }
.ds-tile-menu .dc-menu button { min-height: 44px; }
.ds-tile-menu-dismiss { position: fixed; inset: 0; z-index: 41; border: 0; padding: 0; background: transparent; cursor: default; }
.ds-tile-select { display: flex; flex-direction: column; align-items: stretch; flex: 1; min-width: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ds-tile-select:focus-visible { outline: 2px solid var(--ds-navy); outline-offset: -3px; }
.ds-tile-actions { display: flex; padding: 0 14px 14px; }
.ds-tile-actions .dc-btn { width: 100%; justify-content: center; }
.ds-tile--selected { border-color: var(--ds-navy); box-shadow: 0 3px 0 var(--ds-navy), 0 8px 20px rgba(18, 51, 83, .06); }
.ds-tile-cap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 12px 54px 12px 14px; }
.ds-tag { display: inline-flex; align-items: center; justify-content: center; width: 30px; min-height: 30px; flex-shrink: 0; border: 1px solid var(--ds-line); border-radius: 6px; font-weight: 600; font-size: 12px; }
.ds-tile--selected .ds-tag { background: var(--ds-navy); color: #fff; border-color: var(--ds-navy); }
.ds-preview { display: flex; position: relative; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 210px; padding: 12px 14px 25px; background: var(--ds-stage); box-sizing: border-box; border-bottom: 4px solid var(--ds-line); }
.ds-preview-elevation { width: 100%; height: 100%; max-width: 295px; color: #54708a; }
.ds-preview-frame { stroke: currentColor; stroke-width: 3; fill: rgba(255,255,255,.5); }
.ds-preview-curtain { stroke: currentColor; stroke-width: 1.25; opacity: .7; }
.ds-preview-post { stroke: currentColor; stroke-width: 4; }
.ds-preview-ground { stroke: #b9c9d7; stroke-width: 1.5; }
.ds-preview-caption { position: absolute; bottom: 7px; font-size: 10px; color: var(--ds-muted); }
.ds-preview-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; color: var(--ds-muted); }
.ds-preview-empty svg { height: 98px; width: 78px; stroke: #a1b5c7; stroke-width: 2; stroke-dasharray: 4 3; }
.ds-tile-info { display: flex; flex-direction: column; flex: 1; padding: 15px; min-width: 0; }
.ds-tile-name { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.ds-tile-type { margin-top: 3px; color: var(--ds-muted); font-size: 12px; }
.ds-tile-footer { display: flex; justify-content: space-between; align-items: end; gap: 9px; margin-top: 16px; }
.ds-tile-price { display: block; font-size: 20px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ds-tile-size { display: block; color: var(--ds-muted); font-size: 11px; margin-top: 3px; }
.ds-selected-mark { color: var(--ds-navy); font-size: 16px; }
.ds-tile-drawing { display: block; color: var(--ds-muted); font-size: 11px; margin-top: 10px; }
.ds-doors-foot { display: flex; justify-content: space-between; gap: 12px; padding: 15px 0 22px; color: var(--ds-muted); font-size: 11px; }
.ds-inspector { min-width: 0; border: 1px solid var(--ds-line); border-radius: 12px; background: var(--ds-paper); }
.ds-detail-tabs { display: flex; gap: 22px; padding: 0 22px; border-bottom: 1px solid var(--ds-line); }
.ds-detail-tab { background: transparent; color: var(--ds-muted); border: 0; border-bottom: 2px solid transparent; padding: 16px 0 13px; font: inherit; font-size: 12px; cursor: pointer; min-height: 46px; }
.ds-detail-tab[aria-pressed=true] { color: var(--ds-navy); border-bottom-color: var(--ds-navy); font-weight: 650; }
.ds-quote-metadata { padding: 22px; }
.ds-quote-metadata h3 { font-size: 17px; font-weight: 650; margin: 0 0 18px; }
.ds-metadata-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 24px; margin: 0; }
.ds-metadata-grid dt { color: var(--ds-muted); font-size: 11px; margin-bottom: 5px; }
.ds-metadata-grid dd { font-size: 13px; margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.ds-metadata-wide { grid-column: 1 / -1; }
.ds-workspace button:focus-visible, .ds-workspace a:focus-visible { outline: 3px solid #6499cd; outline-offset: 3px; }
@media (pointer: coarse) {
    .ds-workspace .lxc-btn, .ds-workspace .qd-menu-btn, .ds-workspace .qd-menu button { min-height: 44px; }
    .ds-workspace .qd-iconbtn { width: 44px; height: 44px; }
    .ds-workspace input { font-size: 16px; }
}
.theme-dark .ds-workspace { --ds-navy: #97bee7; --ds-stage: #1b2b3c; --ds-paper: #142437; --ds-line: #30465d; --ds-ink: #e7edf4; --ds-muted: #a7b7c7; }
.theme-dark .ds-workspace .lxc-btn--primary, .theme-dark .ds-tile--selected .ds-tag { color: #10253b; }
@media (max-width: 700px) {
    .ds-quote-heading { flex-direction: column; gap: 15px; }
    .ds-quote-heading-main { width: 100%; }
    .ds-quote-total { width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; text-align: left; border-top: 1px solid var(--ds-line); padding-top: 13px; }
    .ds-quote-total-label { grid-column: 1; }
    .ds-quote-total strong { grid-column: 1; grid-row: 2; font-size: 30px; }
    .ds-quote-total > span:last-child { grid-column: 2; grid-row: 1 / 3; text-align: right; max-width: 100px; margin: 0; }
    .ds-quote-footer { align-items: stretch; flex-direction: column; }
    .ds-workspace .qd-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
    .ds-workspace .qd-actions .lxc-btn { width: 100%; min-height: 42px; font-size: 12px; justify-content: center; }
    .ds-workspace .qd-spacer { display: none; }
    .ds-section-heading { align-items: center; gap: 8px; }
    .ds-section-heading .lxc-btn { flex-shrink: 0; min-height: 42px; font-size: 12px; }
    .ds-doors-grid, .ds-doors-grid--single { grid-template-columns: minmax(0,1fr); gap: 14px; }
    .ds-tile-select { display: grid; grid-template-columns: minmax(0,1fr) 120px; grid-template-rows: auto 1fr; }
    .ds-tile-cap { grid-column: 1; grid-row: 1; padding: 12px 12px 0; }
    .ds-tile .ds-preview { grid-column: 2; grid-row: 1 / 3; height: 100%; min-height: 170px; padding: 14px 6px 25px; }
    .ds-tile-info { grid-column: 1; grid-row: 2; padding: 10px 12px 12px; }
    .ds-tile-name { font-size: 14px; }
    .ds-tile-footer { margin-top: 10px; }
    .ds-tile-price { font-size: 18px; }
    .ds-tile .dc-chip { font-size: 9px; padding: 3px 5px; }
    .ds-doors-foot { flex-direction: column; gap: 6px; }
    .ds-detail-tabs { padding: 0 16px; gap: 18px; }
    .ds-detail-tab { font-size: 11px; }
    .ds-quote-metadata { padding: 18px 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .ds-workspace *, .ds-workspace *::before, .ds-workspace *::after { animation: none !important; transition: none !important; }
}
