/* Own page scope, independent of desktop shell classes. */
html body.peter-experience-pilot main#main:has(> .gq-workspace), html body main#main:has(> .gq-workspace) { overflow:hidden!important; min-height:0; padding-bottom:16px!important; display:flex!important; flex-direction:column; }
.gq-workspace { height:100%; flex:1; min-height:0; display:flex; flex-direction:column; color:var(--ink-strong,#1d1d1f); font-family:var(--font-sans,-apple-system,BlinkMacSystemFont,sans-serif); font-size:14px; }
.gq-workspace * { box-sizing:border-box; }
.gq-workspace h1,.gq-workspace h2,.gq-workspace h3,.gq-workspace p { margin:0; }
.gq-workspace h1 { font-size:20px; }.gq-workspace h2 { font-size:18px; }.gq-workspace h3 { font-size:15px; }
.gq-workspace button,.gq-workspace input,.gq-workspace textarea { font:inherit; color:inherit; }
.gq-workspace button { min-height:var(--gc-field-height,36px); padding:6px 12px; border:1px solid var(--line,#e5e5ea); border-radius:var(--gc-field-radius,8px); background:var(--surface,#fff); cursor:pointer; }
.gq-workspace button:hover { background:var(--bg-hover,#f9f9fb); }
.gq-workspace button:disabled { opacity:.5; cursor:default; }
.gq-workspace input:not([type=checkbox]):not(.prod-qc-search-input),.gq-workspace textarea { width:100%; min-width:0; height:var(--gc-field-height,36px); border:1px solid var(--line-strong,#d1d1d6); border-radius:var(--gc-field-radius,8px); background:var(--surface,#fff); padding:6px 9px; }
.gq-workspace input[type=number] { text-align:right; font-variant-numeric:tabular-nums; }
.gq-workspace input[type=checkbox] { accent-color:#007aff; width:16px; height:16px; flex-shrink:0; }
.gq-workspace :is(button,a,summary):focus-visible { outline:2px solid var(--apple-blue); outline-offset:2px; }
html body .gq-workspace :is(input:not(.prod-qc-search-input),textarea):focus { outline:none!important; border-color:var(--apple-blue)!important; box-shadow:var(--focus-ring)!important; }
.gq-workspace label { display:flex; flex-direction:column; min-width:0; gap:5px; }
.gq-workspace label>span,.gq-workspace small { color:var(--ink-mute,#6b6b6e); font-size:12px; }
.gq-workspace fieldset { border:0; padding:0; margin:0; min-width:0; }
.gq-toolbar { display:flex; align-items:center; gap:14px; flex:0 0 auto; padding:4px 0 12px; }
.gq-layout { display:grid; grid-template-columns:240px minmax(0,1fr); flex:1; min-height:0; border:1px solid var(--line,#e5e5ea); border-radius:12px; overflow:hidden; background:var(--surface,#fff); }
.gq-sidebar { min-height:0; min-width:0; display:flex; flex-direction:column; border-right:1px solid var(--line,#e5e5ea); }
.gq-list-filters { flex:0 0 auto; padding:10px 10px 0; border-bottom:1px solid var(--line,#e5e5ea); }
.gq-status-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:2px; padding:2px; border-radius:8px; background:var(--bg,#f5f5f7); }
.gq-workspace .gq-filter-tab { min-width:0; min-height:30px; padding:4px 3px; border:0; border-radius:6px; background:transparent; display:flex; align-items:center; justify-content:center; gap:3px; color:var(--ink-mute,#6b6b6e); font-size:12px; white-space:nowrap; }
.gq-workspace .gq-filter-tab small { font-size:10px; color:inherit; font-variant-numeric:tabular-nums; }
.gq-workspace .gq-filter-tab.is-active { background:var(--surface,#fff); color:var(--ink-strong,#1d1d1f); box-shadow:0 1px 3px rgba(0,0,0,.08); font-weight:600; }
.gq-brand-filter { display:grid!important; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:8px!important; min-height:42px; padding:6px 2px; }
.gq-brand-filter>span { white-space:nowrap; }
.gq-workspace .gq-brand-filter select { width:100%; min-width:0; height:30px; border:1px solid var(--line-strong,#d1d1d6); border-radius:7px; background:var(--surface,#fff); padding:3px 24px 3px 7px; color:var(--ink-strong,#1d1d1f); font:inherit; font-size:12px; }
.gq-search-slot { display:flex; align-items:center; flex:0 0 auto; min-width:0; padding:12px; border-bottom:1px solid var(--line,#e5e5ea); }
#gqList { flex:1; min-height:0; overflow:auto; padding:4px 8px 12px; }
.gq-workspace .gq-style { display:flex; align-items:center; gap:10px; width:100%; text-align:left; border:0; padding:10px; margin-bottom:4px; }
.gq-style img,.gq-thumb-empty { width:48px; height:62px; object-fit:contain; flex-shrink:0; background:var(--bg,#f5f5f7); border-radius:6px; }
.gq-thumb-empty { display:grid; place-items:center; font-size:12px; }
.gq-style>span:last-child { display:flex; flex-direction:column; gap:5px; min-width:0; overflow-wrap:anywhere; }.gq-style b { font-size:13px; }
.gq-workspace .gq-style.is-selected { background:var(--apple-blue-bg); color:var(--apple-blue-hover); }
#gqEditor { min-width:0; min-height:0; display:flex; flex-direction:column; }
.gq-editor-head { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px 16px; border-bottom:1px solid var(--line,#e5e5ea); flex-shrink:0; overflow-wrap:anywhere; }
.gq-editor-head span { display:block; margin-top:5px; color:var(--ink-mute,#6b6b6e); font-size:13px; }
.gq-editor-scroll { min-height:0; flex:1; overflow:auto; padding:16px; overscroll-behavior:contain; }
.gq-identity { display:grid; grid-template-columns:252px minmax(0,1fr); gap:16px; padding-bottom:12px; border-bottom:1px solid var(--line,#e5e5ea); margin-bottom:12px; }
.gq-photos { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; align-items:start; }
.gq-photos>a,.gq-photos>div { height:108px; display:grid; place-items:center; border:1px solid var(--line,#e5e5ea); border-radius:var(--gc-field-radius,8px); overflow:hidden; color:var(--ink-mute,#6b6b6e); font-size:12px; text-align:center; }
.gq-photos img { width:100%; height:100%; object-fit:contain; }
.gq-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; padding-bottom:16px!important; align-content:start; }
.gq-body { display:grid; grid-template-columns:minmax(0,1fr) minmax(250px,.9fr); gap:24px; }.gq-costs { min-width:0; }
.gq-section-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
.gq-cost-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(100px,.7fr); gap:12px; align-items:center; border-bottom:1px solid var(--line,#e5e5ea); padding:3px 0; }
.gq-workspace .gq-cost-row input[readonly] { border-color:transparent; background:transparent; padding-left:0; }
.gq-fabrics { min-width:0; height:108px; overflow:auto; overscroll-behavior:contain; }.gq-fabrics h3 { margin-bottom:4px; }
.gq-fabric-note { padding:4px 0; line-height:1.6; overflow-wrap:anywhere; }.gq-fabric-note img { max-width:160px!important; max-height:160px!important; object-fit:contain; }.gq-fabric-note table { max-width:100%; }.gq-fabric-note .rich-display { margin-top:6px; }
.gq-fabric-item { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; gap:12px; padding:10px 0; border-bottom:1px solid var(--line,#e5e5ea); font-size:13px; overflow-wrap:anywhere; }
.gq-material small { display:block; margin-top:5px; overflow-wrap:anywhere; }
.gq-use { align-items:center; }.gq-use input { margin:23px 0 0; }.gq-use span { font-size:11px; }
.gq-subtotal { display:flex; flex-direction:column; gap:8px; text-align:right; font-size:12px; }.gq-subtotal b { font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.gq-cost-row.is-excluded { opacity:.65; }.gq-material-confirm { flex-direction:row!important; align-items:center; margin-top:14px; font-size:13px; }
.gq-pricing { border-left:1px solid var(--line,#e5e5ea); padding-left:20px; }.gq-pricing fieldset { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:12px 0; }.gq-pricing fieldset>button { align-self:end; font-size:13px; }.gq-pricing>h3 { margin-bottom:12px; }
.gq-total { display:flex; justify-content:space-between; gap:10px; padding:6px 0; font-size:13px; }.gq-total b { font-size:17px; }
.gq-price-result { display:grid; grid-template-columns:1fr auto; gap:4px; padding:7px 0; border-top:1px solid var(--line,#e5e5ea); font-size:13px; }.gq-price-result small { grid-column:1/-1; }
.gq-workspace .gq-loss { color:var(--danger); }.gq-warning { color:var(--warn); font-size:13px; margin-top:10px!important; line-height:1.6; }
.gq-note { margin-top:16px; }.gq-workspace .gq-note textarea { height:56px; resize:vertical; }.gq-history { margin-top:24px; }.gq-history h3 { margin-bottom:12px; }
.gq-workspace .gq-history-row { display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px; width:100%; border:0; border-bottom:1px solid var(--line,#e5e5ea); border-radius:0; text-align:left; }
.gq-footer { display:flex; gap:10px; align-items:center; flex-shrink:0; border-top:1px solid var(--line,#e5e5ea); padding:12px 20px; }.gq-footer>span { margin-right:auto; color:var(--ink-mute,#6b6b6e); font-size:13px; }
.gq-workspace .gq-primary { background:var(--apple-blue); color:white; border-color:var(--apple-blue); }.gq-workspace .gq-primary:hover { background:var(--apple-blue-hover); }
.gq-empty { padding:24px; color:var(--ink-mute,#6b6b6e); }.gq-select-toggle { display:none; }
/* quotation-split-workbench-v4: reference and calculation have independent scroll ownership. */
.gq-layout { grid-template-columns:220px minmax(0,1fr); }
.gq-editor-head { background:var(--bg-elevated); padding:12px 16px; }
.gq-editor-head h2 { font-size:16px; line-height:1.3; }
.gq-editor-head>b { font-size:12px; font-weight:500; color:var(--ink-mute); }
.gq-editor-content { flex:1; min-height:0; display:grid; grid-template-columns:240px minmax(0,1fr); }
.gq-reference { min-width:0; min-height:0; overflow:auto; padding:16px; border-right:1px solid var(--line); background:var(--bg-elevated); overscroll-behavior:contain; }
.gq-photos { margin-bottom:20px; gap:6px; }
.gq-photos>a,.gq-photos>div { height:96px; }
.gq-fabrics { height:auto; overflow:visible; }
.gq-fabric-note { font-size:13px; line-height:1.65; }
.gq-fabric-note .rich-display { max-width:100%; }
.gq-fabric-note .rich-display * { max-width:100%!important; overflow-wrap:anywhere; white-space:normal!important; }
.gq-fabric-note img { display:inline-block; max-width:100%!important; height:auto!important; }
.gq-fabric-item { grid-template-columns:minmax(0,1fr); gap:4px; }
.gq-editor-scroll { padding:16px 20px; }
.gq-fields { background:transparent; padding:0 0 16px!important; margin:0 0 16px!important; border-bottom:1px solid var(--line); gap:10px; }
.gq-fields label>span { min-height:16px; }
.gq-body { grid-template-columns:minmax(210px,1fr) minmax(250px,1fr); gap:20px; }
.gq-pricing { padding-left:20px; }
.gq-pricing fieldset { grid-template-columns:minmax(0,1fr); gap:10px; }
.gq-pricing fieldset>button { min-height:30px; padding:4px 8px; justify-self:start; border:0; color:var(--apple-blue); background:transparent; }
.gq-pricing fieldset>label:first-child>input { font-size:18px; font-weight:650; }
.gq-cost-row { grid-template-columns:minmax(0,1fr) 112px; padding:5px 0; }
.gq-section-head { margin-bottom:8px; }
.gq-section-head>span { color:var(--ink-mute); font-size:12px; }
.gq-extra-costs>summary { cursor:pointer; min-height:36px; padding:9px 0; color:var(--ink-mute); font-size:13px; }
.gq-extra-costs>summary:focus-visible { outline:2px solid var(--apple-blue); outline-offset:2px; }
.gq-workspace .gq-style { background:transparent; margin:0; padding:8px; border-radius:6px; }
.gq-sidebar { background:var(--bg-elevated); }
.gq-workspace .gq-style:hover { background:var(--bg); }
.gq-workspace .gq-style.is-selected { background:var(--apple-blue-bg); }
.gq-style b { line-height:1.4; }
.gq-style small { line-height:1.4; }
.gq-footer { background:var(--bg-elevated); padding:10px 16px; }
.gq-note { margin-top:20px; }
.gq-workspace input:disabled,.gq-workspace textarea:disabled { background:var(--bg); color:var(--ink-mute); }
html body .gq-workspace input:not(.prod-qc-search-input) { height:36px!important; min-height:36px!important; border-radius:var(--gc-field-radius,8px); }
@media(max-width:1100px) { .gq-editor-content { grid-template-columns:200px minmax(0,1fr); }.gq-reference { padding:12px; }.gq-photos>a,.gq-photos>div { height:80px; }.gq-editor-scroll { padding:12px; }.gq-body { grid-template-columns:minmax(0,1fr); }.gq-pricing { padding:16px 0 0; border-left:0; border-top:1px solid var(--line); }.gq-pricing fieldset { grid-template-columns:repeat(2,minmax(0,1fr)); }.gq-pricing fieldset>button { align-self:end; min-height:36px; }.gq-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }.gq-fields>label:first-child { grid-column:1/-1; } }
@media(max-width:720px) { .gq-editor-content { display:block; overflow:auto; }.gq-reference { display:grid; grid-template-columns:180px minmax(0,1fr); gap:12px; border-right:0; border-bottom:1px solid var(--line); overflow:visible; }.gq-photos { margin:0; }.gq-fabrics { height:112px; overflow:auto; }.gq-editor-scroll { overflow:visible; }.gq-fields { grid-template-columns:repeat(3,minmax(0,1fr)); }.gq-fields>label:first-child { grid-column:auto; }.gq-toolbar { gap:8px; }.gq-toolbar h1 { font-size:17px; }.gq-workspace button { min-height:44px; }.gq-workspace input:not(.prod-qc-search-input),html body .gq-workspace input:not(.prod-qc-search-input) { height:44px!important; min-height:44px!important; }.gq-footer { flex-wrap:wrap; }.gq-footer>span:empty { display:none; }.gq-footer>span:not(:empty) { flex-basis:100%; }.gq-extra-costs>summary { min-height:44px; padding:12px 0; } }
@media(max-width:480px) { .gq-reference { grid-template-columns:minmax(0,1fr); }.gq-photos { width:216px; }.gq-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }.gq-fields>label:first-child { grid-column:1/-1; } }

/* quotation-labels-gallery-footer-v5 */
.gq-cost-label { color:var(--ink); line-height:1.4; cursor:default; }
.gq-reference img[role=button] { cursor:zoom-in; }
.gq-reference img[role=button]:focus-visible { outline:2px solid var(--apple-blue); outline-offset:2px; }
html body .gq-workspace .gq-footer { padding:6px 12px; gap:8px; }
html body .gq-workspace .gq-footer button { height:32px!important; min-height:32px!important; padding:4px 10px!important; font-size:13px!important; line-height:20px!important; }
@media(max-width:720px) { html body .gq-workspace .gq-footer button { height:44px!important; min-height:44px!important; } }

.gq-fabric-cost { padding:8px 0 12px; border-bottom:1px solid var(--line); }
.gq-fabric-inputs { display:grid; grid-template-columns:minmax(0,1fr) 12px minmax(0,1fr); gap:6px; align-items:end; margin:8px 0; }
.gq-fabric-inputs>span { align-self:center; padding-top:18px; color:var(--ink-mute); }
.gq-fabric-cost>small { display:block; line-height:1.5; }
.gq-fabric-cost b { font-size:14px; font-variant-numeric:tabular-nums; }

/* peter-workbench-system-v1: compact numbers; keep full references and immutable history. */
@media screen {
  html body.peter-workbench-frame-pilot .gq-fields {
    grid-template-columns:160px 170px 140px; justify-content:start; gap:12px;
    padding-bottom:12px!important; margin-bottom:12px!important;
  }
  html body.peter-workbench-frame-pilot .gq-fields>label:first-child { grid-column:auto; }
  html body.peter-workbench-frame-pilot .gq-editor-head { padding:10px 16px; }
  html body.peter-workbench-frame-pilot .gq-editor-scroll { padding:12px 16px; }
  html body.peter-workbench-frame-pilot .gq-body { gap:16px; }
  html body.peter-workbench-frame-pilot .gq-pricing { padding-left:16px; }
  html body.peter-workbench-frame-pilot .gq-pricing fieldset { display:grid; grid-template-columns:minmax(0,1fr); gap:8px; margin:8px 0 12px; }
  html body.peter-workbench-frame-pilot .gq-pricing fieldset>label { display:grid; grid-template-columns:minmax(0,1fr) 112px; align-items:center; gap:8px; }
  html body.peter-workbench-frame-pilot .gq-pricing .gq-section-head { flex-wrap:wrap; gap:4px 8px; }
  html body.peter-workbench-frame-pilot .gq-pricing [data-action=suggest] { min-height:32px; padding:0 4px; border:0; background:transparent; color:var(--apple-blue); font-size:12px; font-weight:600; }
  html body.peter-workbench-frame-pilot .gq-workspace input:not(.prod-qc-search-input) { font-size:var(--gc-type-body); }
  html body.peter-workbench-frame-pilot .gq-cost-row { padding:4px 0; }
  html body.peter-workbench-frame-pilot .gq-fabric-inputs { grid-template-columns:minmax(80px,112px) 12px minmax(80px,112px); }
  html body.peter-workbench-frame-pilot .gq-photos { margin-bottom:12px; }
  html body.peter-workbench-frame-pilot .gq-note { margin-top:12px; }
  html body.peter-workbench-frame-pilot .gq-history { margin-top:16px; }
  html body.peter-workbench-frame-pilot .gq-footer button { font-weight:600!important; }
}
@media screen and (max-width:1100px) {
  html body.peter-workbench-frame-pilot .gq-fields { grid-template-columns:repeat(3,minmax(0,1fr)); }
  html body.peter-workbench-frame-pilot .gq-pricing { padding:12px 0 0; }
}
@media screen and (max-width:720px) {
  html body.peter-workbench-frame-pilot .gq-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
  html body.peter-workbench-frame-pilot .gq-fields>label:first-child { grid-column:1/-1; max-width:200px; }
  html body.peter-workbench-frame-pilot .gq-pricing [data-action=suggest] { min-height:var(--gc-ui-touch-target-height); }
}

/* quotation-purchase-persistent-list-v1: list stays beside the current draft. */
@media(max-width:900px) { .gq-layout { grid-template-columns:180px minmax(0,1fr); } .gq-editor-content { display:flex; flex-direction:column; } .gq-reference { flex:0 0 auto; } .gq-workspace .gq-filter-tab { flex-direction:column; gap:0; white-space:normal; line-height:1.15; } }
@media(max-width:720px) { .gq-layout { grid-template-columns:150px minmax(0,1fr); } .gq-reference { display:block; } .gq-fields { grid-template-columns:minmax(0,1fr); } .gq-pricing fieldset { grid-template-columns:minmax(0,1fr); } .gq-brand-filter { grid-template-columns:minmax(0,1fr); gap:3px!important; padding:6px 2px 8px; } }

.gq-history-item { display:flex; align-items:center; gap:8px; border-bottom:1px solid var(--line); }
.gq-history-item .gq-history-row { flex:1; min-width:0; border:0; }
.gq-history-item > button[data-visibility] { flex:none; color:var(--danger,#c93434); }
@media(max-width:900px) { .gq-history-row { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; } }

/* quotation-compact-layout-v1: Peter-only dense workbench using ERP truth fields and type tokens. */
.gq-workspace.gq-compact-layout {
  font-family:var(--font-sans);
  font-size:var(--gc-type-body,13px);
}
.gq-workspace.gq-compact-layout .gq-layout { grid-template-columns:292px minmax(0,1fr); }
.gq-workspace.gq-compact-layout .gq-sidebar { background:var(--bg-elevated,#fafafc); }
.gq-workspace.gq-compact-layout .gq-list-filters { padding:0; background:var(--bg-elevated,#fafafc); }
.gq-workspace.gq-compact-layout .gq-status-tabs {
  height:47px; padding:6px 8px 0; gap:2px; border-radius:0; background:transparent;
  border-bottom:1px solid var(--line,rgba(60,60,67,.12));
}
.gq-workspace.gq-compact-layout .gq-filter-tab {
  min-height:40px; padding:4px 2px 6px; border-radius:7px 7px 0 0;
  font-size:var(--gc-type-label,12px); font-weight:600;
}
.gq-workspace.gq-compact-layout .gq-filter-tab.is-active {
  color:var(--apple-blue,#007aff); background:var(--surface,#fff); box-shadow:inset 0 -2px var(--apple-blue,#007aff);
}
.gq-workspace.gq-compact-layout .gq-brand-filter { min-height:44px; padding:6px 10px; border-bottom:1px solid var(--line,rgba(60,60,67,.12)); }
.gq-workspace.gq-compact-layout .gq-brand-filter>span { font-size:var(--gc-type-caption,11px); }
.gq-workspace.gq-compact-layout .gq-brand-filter select { height:30px; font-size:var(--gc-type-caption,11px); }
.gq-workspace.gq-compact-layout .gq-search-slot { padding:9px 10px; }
.gq-workspace.gq-compact-layout .gq-search-slot .prod-qc-searchbar,
.gq-workspace.gq-compact-layout .gq-search-slot .prod-qc-search-field { width:100%; max-width:none; min-width:0; }
.gq-workspace.gq-compact-layout .gq-search-slot .prod-qc-searchbar { height:36px; flex:0 0 36px; }
.gq-workspace.gq-compact-layout .gq-search-slot .prod-qc-search-field {
  height:36px; display:flex; align-items:center; gap:8px; padding:0 10px; overflow:visible;
  border:1px solid var(--line-strong,#d1d1d6); border-radius:10px; background:var(--surface,#fff);
}
.gq-workspace.gq-compact-layout .gq-search-slot .prod-qc-search-icon { position:static; width:16px; height:16px; flex:none; color:var(--ink-faint,#8e8e93); }
.gq-workspace.gq-compact-layout .gq-search-slot .prod-qc-search-input {
  flex:1; width:auto; min-width:0; height:34px; padding:0; border:0; outline:0; box-shadow:none;
  background:transparent; font:400 var(--gc-type-body,13px)/1.4 var(--font-sans); color:var(--ink-strong,#1d1d1f);
}
.gq-workspace.gq-compact-layout .gq-search-slot .prod-qc-search-field:focus-within {
  position:relative; z-index:50; border-color:var(--apple-blue,#007aff); box-shadow:0 0 0 3px rgba(0,122,255,.18);
}
.gq-workspace.gq-compact-layout #gqList { padding:4px 7px 12px; }
.gq-workspace.gq-compact-layout .gq-brand-group>h3 {
  height:30px; display:flex; align-items:center; gap:8px; margin:0; padding:0 7px;
  color:var(--ink-mute,#6e6e73); font-size:var(--gc-type-caption,11px); font-weight:700;
}
.gq-workspace.gq-compact-layout .gq-brand-group>h3::before {
  content:''; width:0; height:0; border-left:4px solid transparent; border-right:4px solid transparent;
  border-top:5px solid var(--ink-faint,#8e8e93);
}
.gq-workspace.gq-compact-layout .gq-brand-group>h3 small { margin-left:auto; font-size:var(--gc-type-caption,11px); font-weight:500; }
.gq-workspace.gq-compact-layout .gq-style { min-height:68px; padding:7px; border-radius:8px; }
.gq-workspace.gq-compact-layout .gq-style img,
.gq-workspace.gq-compact-layout .gq-thumb-empty { width:44px; height:56px; }
.gq-workspace.gq-compact-layout .gq-style>span:last-child { gap:3px; }
.gq-workspace.gq-compact-layout .gq-style b { font-size:var(--gc-type-label,12px); font-weight:650; }
.gq-workspace.gq-compact-layout .gq-style small { font-size:var(--gc-type-caption,11px); }
.gq-workspace.gq-compact-layout .gq-editor-head { min-height:64px; padding:10px 18px; background:var(--surface,#fff); }
.gq-workspace.gq-compact-layout .gq-editor-title-row { display:flex; align-items:center; gap:8px; }
.gq-workspace.gq-compact-layout .gq-editor-head h2 { font-size:var(--gc-type-title,16px); font-weight:700; }
.gq-workspace.gq-compact-layout .gq-editor-head span { font-size:var(--gc-type-caption,11px); }
.gq-workspace.gq-compact-layout .gq-editor-title-row .gq-editor-status {
  display:inline-flex; align-items:center; min-height:23px; margin:0; padding:0 8px; border-radius:6px;
  font-size:var(--gc-type-caption,11px); font-weight:700;
}
.gq-workspace.gq-compact-layout .gq-editor-status-pending { color:#a95800; background:#fff2df; }
.gq-workspace.gq-compact-layout .gq-editor-status-quoted { color:var(--apple-blue,#007aff); background:var(--apple-blue-bg,#eaf3ff); }
.gq-workspace.gq-compact-layout .gq-editor-status-complete { color:#24833b; background:#eaf6ed; }
html body.gc-wb-layout-v3 .gq-workspace.gq-compact-layout .gq-editor-content { display:flex; flex-direction:column; min-height:0; }
html body.gc-wb-layout-v3 .gq-workspace.gq-compact-layout .gq-reference {
  flex:0 0 96px; min-height:96px; display:grid; grid-template-columns:190px minmax(0,1fr); align-items:center;
  gap:14px; padding:10px 18px; overflow:hidden; border:0; border-bottom:1px solid var(--line,rgba(60,60,67,.12));
  background:var(--bg-elevated,#fafafc);
}
html body.gc-wb-layout-v3 .gq-workspace.gq-compact-layout .gq-reference .gq-photos { width:auto; flex:none; display:grid; grid-template-columns:repeat(3,56px); gap:7px; margin:0; }
html body.gc-wb-layout-v3 .gq-workspace.gq-compact-layout .gq-reference .gq-photos>:is(a,div) { height:74px; border-radius:7px; }
html body.gc-wb-layout-v3 .gq-workspace.gq-compact-layout .gc-wb-reference-details { min-width:0; }
html body.gc-wb-layout-v3 .gq-workspace.gq-compact-layout .gc-wb-reference-details>summary {
  min-height:30px; padding:6px 0; font:600 var(--gc-type-label,12px)/1.4 var(--font-sans); color:var(--apple-blue,#007aff);
}
html body.gc-wb-layout-v3 .gq-workspace.gq-compact-layout .gc-wb-reference-details[open] {
  align-self:start; max-height:76px; overflow:auto;
}
html body.gc-wb-layout-v3 .gq-workspace.gq-compact-layout .gc-wb-reference-details .gq-fabrics { max-height:none; font-size:var(--gc-type-caption,11px); }

@media screen and (min-width:1101px) {
  html body.gc-wb-layout-v3 .gq-workspace.gq-compact-layout .gq-editor-scroll {
    flex:1 1 0; min-height:0; display:grid; grid-template-columns:minmax(0,1fr) 310px;
    grid-template-rows:auto auto auto; align-content:start; column-gap:18px; padding:0 16px 14px 18px; overflow:auto;
  }
  .gq-workspace.gq-compact-layout .gq-fields { grid-column:1; grid-row:1; grid-template-columns:160px 170px 140px; padding:11px 0 12px!important; margin:0!important; }
  .gq-workspace.gq-compact-layout .gq-body { display:contents; }
  .gq-workspace.gq-compact-layout .gq-costs { grid-column:1; grid-row:2; min-height:auto; }
  .gq-workspace.gq-compact-layout .gq-pricing {
    grid-column:2; grid-row:1 / 3; min-width:0; padding:14px 0 0 16px; overflow:visible;
    border-left:1px solid var(--line,rgba(60,60,67,.12)); background:var(--bg-elevated,#fafafc);
  }
  .gq-workspace.gq-compact-layout .gq-note { grid-column:1; grid-row:3; margin:12px 0 0; padding-top:10px; border-top:1px solid var(--line,rgba(60,60,67,.12)); }
  .gq-workspace.gq-compact-layout .gq-history {
    grid-column:2; grid-row:3; min-height:auto; margin:12px 0 0; padding:12px 0 0 16px; overflow:visible;
    border-left:1px solid var(--line,rgba(60,60,67,.12)); border-top:1px solid var(--line,rgba(60,60,67,.12)); background:var(--bg-elevated,#fafafc);
  }
}
@media screen and (min-width:1101px) and (max-width:1300px) {
  .gq-workspace.gq-compact-layout .gq-fields { grid-template-columns:repeat(3,minmax(0,1fr)); }
  html body.gc-wb-layout-v3 .gq-workspace.gq-compact-layout .gq-editor-scroll { grid-template-columns:minmax(0,1fr) 290px; }
}
.gq-workspace.gq-compact-layout .gq-section-head { min-height:34px; margin:0; padding:7px 0; border-bottom:1px solid var(--line,rgba(60,60,67,.12)); }
.gq-workspace.gq-compact-layout .gq-section-head h3 { font-size:var(--gc-type-body,13px); font-weight:700; }
.gq-workspace.gq-compact-layout .gq-section-head>span { font-size:var(--gc-type-caption,11px); }
.gq-workspace.gq-compact-layout .gq-visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.gq-workspace.gq-compact-layout .gq-cost-table-head,
.gq-workspace.gq-compact-layout .gq-cost-table-row {
  display:grid; grid-template-columns:minmax(120px,1.35fr) 64px minmax(90px,1fr) minmax(90px,1fr) 66px 82px;
  gap:10px; align-items:center;
}
.gq-workspace.gq-compact-layout .gq-cost-table-head {
  min-height:30px; color:var(--ink-faint,#8e8e93); font-size:var(--gc-type-caption,11px);
  border-bottom:1px solid var(--line,rgba(60,60,67,.12));
}
.gq-workspace.gq-compact-layout .gq-cost-table-head span:last-child { text-align:right; }
.gq-workspace.gq-compact-layout .gq-cost-table-row { min-height:50px; padding:6px 0; border-bottom:1px solid var(--line,rgba(60,60,67,.12)); }
.gq-workspace.gq-compact-layout .gq-cost-table-row>label { gap:0; }
.gq-workspace.gq-compact-layout .gq-cost-table-item { display:flex; flex-direction:column; gap:2px; min-width:0; }
.gq-workspace.gq-compact-layout .gq-cost-table-item small { font-size:var(--gc-type-caption,11px); }
.gq-workspace.gq-compact-layout .gq-cost-unit,
.gq-workspace.gq-compact-layout .gq-cost-qty,
.gq-workspace.gq-compact-layout .gq-cost-factor { color:var(--ink-mute,#6e6e73); font-size:var(--gc-type-caption,11px); }
.gq-workspace.gq-compact-layout .gq-cost-qty,
.gq-workspace.gq-compact-layout .gq-cost-factor { text-align:center; }
.gq-workspace.gq-compact-layout .gq-cost-subtotal { text-align:right; font-size:var(--gc-type-label,12px); font-variant-numeric:tabular-nums; }
.gq-workspace.gq-compact-layout .gq-cost-table-row.gq-fabric-cost { margin:0; padding:6px 0; }
.gq-workspace.gq-compact-layout .gq-extra-costs> .gq-cost-table-row { width:100%; }
.gq-workspace.gq-compact-layout .gq-cost-row { min-height:44px; padding:4px 0; grid-template-columns:minmax(120px,1fr) 128px; }
.gq-workspace.gq-compact-layout .gq-cost-label { font-size:var(--gc-type-label,12px); font-weight:600; }
.gq-workspace.gq-compact-layout .gq-fabric-cost { padding:8px 0 10px; }
.gq-workspace.gq-compact-layout .gq-fabric-cost .gq-section-head { min-height:26px; border:0; padding:0; }
.gq-workspace.gq-compact-layout .gq-fabric-inputs { grid-template-columns:128px 12px 128px; margin:7px 0 5px; }
.gq-workspace.gq-compact-layout .gq-extra-costs>summary { min-height:36px; padding:9px 0; font-size:var(--gc-type-label,12px); }
.gq-workspace.gq-compact-layout .gq-pricing fieldset { margin:9px 0 11px; }
.gq-workspace.gq-compact-layout .gq-pricing fieldset>label { grid-template-columns:minmax(0,1fr) 112px; }
.gq-workspace.gq-compact-layout .gq-total { min-height:36px; align-items:center; padding:6px 0; font-size:var(--gc-type-label,12px); }
.gq-workspace.gq-compact-layout .gq-total b { font-size:var(--gc-type-title,16px); }
.gq-workspace.gq-compact-layout .gq-price-result { padding:8px 0; font-size:var(--gc-type-label,12px); }
.gq-workspace.gq-compact-layout .gq-note textarea { height:54px; }
.gq-workspace.gq-compact-layout .gq-history .gq-section-head { margin-bottom:0; }
.gq-workspace.gq-compact-layout .gq-history>.gq-empty { padding:16px 8px; text-align:center; }
.gq-workspace.gq-compact-layout .gq-history-item .gq-history-row { padding:8px 0; font-size:var(--gc-type-caption,11px); }
.gq-workspace.gq-compact-layout .gq-footer { min-height:54px; padding:6px 16px; }
.gq-workspace.gq-compact-layout .gq-footer>span { font-size:var(--gc-type-caption,11px); }

@media screen and (max-width:1100px) {
  .gq-workspace.gq-compact-layout .gq-layout { grid-template-columns:200px minmax(0,1fr); }
  html body.gc-wb-layout-v3 .gq-workspace.gq-compact-layout .gq-reference { grid-template-columns:170px minmax(0,1fr); padding:10px 12px; }
  html body.gc-wb-layout-v3 .gq-workspace.gq-compact-layout .gq-reference .gq-photos { grid-template-columns:repeat(3,50px); gap:6px; }
  .gq-workspace.gq-compact-layout .gq-editor-scroll { padding:12px; }
  .gq-workspace.gq-compact-layout .gq-fields { margin-bottom:10px!important; padding-bottom:10px!important; }
  .gq-workspace.gq-compact-layout .gq-pricing { padding-top:12px; }
  .gq-workspace.gq-compact-layout .gq-cost-table-head { display:none; }
  .gq-workspace.gq-compact-layout .gq-cost-table-row { grid-template-columns:minmax(0,1fr) 112px; min-height:44px; }
  .gq-workspace.gq-compact-layout .gq-cost-table-row.gq-fabric-cost { grid-template-columns:minmax(110px,1fr) minmax(90px,112px) minmax(90px,112px); }
  .gq-workspace.gq-compact-layout .gq-cost-unit,
  .gq-workspace.gq-compact-layout .gq-cost-qty,
  .gq-workspace.gq-compact-layout .gq-cost-factor,
  .gq-workspace.gq-compact-layout .gq-cost-subtotal { display:none; }
}
@media screen and (max-width:720px) {
  .gq-workspace.gq-compact-layout .gq-layout { grid-template-columns:150px minmax(0,1fr); }
  .gq-workspace.gq-compact-layout .gq-status-tabs { height:52px; grid-template-columns:repeat(3,minmax(0,1fr)); padding:5px 4px 0; }
  .gq-workspace.gq-compact-layout .gq-filter-tab { min-height:42px; border-radius:6px 6px 0 0; flex-direction:column; gap:0; line-height:1.15; }
  .gq-workspace.gq-compact-layout .gq-brand-filter { grid-template-columns:minmax(0,1fr); }
  .gq-workspace.gq-compact-layout .gq-editor-head { min-height:58px; padding:8px 10px; }
  html body.gc-wb-layout-v3 .gq-workspace.gq-compact-layout .gq-reference { display:block; height:auto; min-height:0; padding:10px; overflow:visible; }
  html body.gc-wb-layout-v3 .gq-workspace.gq-compact-layout .gq-reference .gq-photos { width:168px; grid-template-columns:repeat(3,52px); margin-bottom:6px; }
  html body.gc-wb-layout-v3 .gq-workspace.gq-compact-layout .gc-wb-reference-details[open] { max-height:none; }
  .gq-workspace.gq-compact-layout .gq-fields { grid-template-columns:minmax(0,1fr); }
  .gq-workspace.gq-compact-layout .gq-fields>label:first-child { grid-column:auto; max-width:none; }
  .gq-workspace.gq-compact-layout .gq-fabric-inputs { grid-template-columns:minmax(70px,1fr) 12px minmax(70px,1fr); }
  .gq-workspace.gq-compact-layout .gq-cost-row { grid-template-columns:minmax(0,1fr) 104px; }
}

/* quotation-direct-ledger-v2: Peter only; existing procurement DOM/CSS is unchanged. */
.gq-workspace.gq-ledger-pilot { width:100%; max-width:none; align-self:stretch; }
.gq-workspace.gq-ledger-pilot .gq-layout { grid-template-columns:248px minmax(0,1fr); }
.gq-ledger-pilot .gq-v2-head { display:flex; align-items:center; gap:12px; padding:16px 22px 10px; flex:0 0 auto; }
.gq-ledger-pilot .gq-v2-head>div { min-width:0; flex:1; }
.gq-ledger-pilot .gq-v2-head h2 { font-size:18px; line-height:1.4; overflow-wrap:anywhere; }
.gq-ledger-pilot .gq-v2-head>div>span { display:block; color:var(--ink-mute); font-size:13px; margin-top:4px; overflow-wrap:anywhere; }
.gq-ledger-pilot .gq-v2-tabs { display:flex; gap:24px; margin:0 22px; border-bottom:1px solid var(--line); flex:0 0 auto; }
.gq-ledger-pilot .gq-v2-tabs button { border:0; border-radius:0; background:transparent; padding:9px 0; font-size:13px; color:var(--ink-mute); border-bottom:2px solid transparent; }
.gq-ledger-pilot .gq-v2-tabs button[aria-pressed=true] { color:var(--apple-blue-hover); border-bottom-color:var(--apple-blue); font-weight:650; }
.gq-ledger-pilot .gq-v2-scroll { flex:1 1 0; min-height:0; min-width:0; overflow:auto; overscroll-behavior:contain; padding:16px 22px 20px; container-type:inline-size; }
.gq-ledger-pilot .gq-v2-scroll>* { max-width:1080px; margin-inline:auto; }
.gq-ledger-pilot .gq-v2-reference { border-bottom:1px solid var(--line); margin-bottom:16px; }
.gq-ledger-pilot .gq-v2-reference>summary,.gq-ledger-pilot .gq-v2-extra>summary { min-height:36px; padding:8px 0; color:var(--ink-mute); font-size:13px; cursor:pointer; }
html body .gq-workspace.gq-ledger-pilot .gq-v2-reference .gq-reference { display:grid; grid-template-columns:180px minmax(0,1fr); padding:10px 0 16px; gap:18px; overflow:visible; border:0; }
html body .gq-workspace.gq-ledger-pilot .gq-v2-reference .gq-photos { display:grid; width:auto; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; margin:0; }
html body .gq-workspace.gq-ledger-pilot .gq-v2-reference .gq-photos>:is(a,div) { height:80px; }
html body .gq-workspace.gq-ledger-pilot .gq-v2-reference .gc-wb-reference-details[open] { max-height:none; }
html body .gq-workspace.gq-ledger-pilot .gq-v2-reference .gq-fabrics { max-height:none; overflow:visible; }
.gq-ledger-pilot .gq-v2-fields { display:flex; flex-wrap:wrap; align-items:end; gap:12px 20px; margin-bottom:22px; }
.gq-ledger-pilot .gq-v2-fields label>span { font-size:12px; }
html body .gq-workspace.gq-ledger-pilot .gq-v2-fields input[data-field=date] { width:146px; }
html body .gq-workspace.gq-ledger-pilot .gq-v2-fields input[data-field=rate] { width:100px; }
html body .gq-workspace.gq-ledger-pilot .gq-v2-fields input[data-field=target] { width:84px; }
.gq-ledger-pilot .gq-v2-body { display:grid; grid-template-columns:minmax(0,1fr) 272px; gap:26px; align-items:start; }
.gq-ledger-pilot .gq-v2-costs { min-width:0; }
.gq-ledger-pilot .gq-v2-section-head { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:12px; }
.gq-ledger-pilot .gq-v2-section-head>span { color:var(--ink-mute); font-size:12px; }
.gq-ledger-pilot .gq-v2-cost-head,.gq-ledger-pilot .gq-v2-cost-row { display:grid; grid-template-columns:minmax(96px,1fr) 190px 84px; gap:12px; align-items:center; }
.gq-ledger-pilot .gq-v2-cost-head { min-height:34px; color:var(--ink-mute); font-size:12px; border-bottom:1px solid var(--line); }
.gq-ledger-pilot .gq-v2-cost-head>span:not(:first-child),.gq-ledger-pilot .gq-v2-cost-row>b { text-align:right; }
.gq-ledger-pilot .gq-v2-cost-row { min-height:50px; padding:6px 0; border-bottom:1px solid var(--line); }
.gq-ledger-pilot .gq-v2-cost-row b { font-size:13px; font-weight:600; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.gq-ledger-pilot .gq-v2-cost-row small { display:block; margin-top:4px; font-size:11px; }
.gq-ledger-pilot .gq-v2-cost-amount { justify-self:end; }
html body .gq-workspace.gq-ledger-pilot .gq-v2-cost-amount input { width:88px; }
html body .gq-workspace.gq-ledger-pilot .gq-v2-cost-name { width:100%; max-width:150px; font-size:13px; }
.gq-ledger-pilot .gq-v2-fabric { min-height:82px; }
.gq-ledger-pilot .gq-v2-fabric-inputs { display:flex; justify-content:flex-end; gap:12px; }
.gq-ledger-pilot .gq-v2-fabric-inputs label>span { font-size:11px; white-space:nowrap; }
html body .gq-workspace.gq-ledger-pilot .gq-v2-fabric-inputs input { width:88px; }
.gq-ledger-pilot .gq-v2-extra { border-bottom:1px solid var(--line); }
.gq-ledger-pilot .gq-v2-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.gq-ledger-pilot .gq-v2-pricing { min-width:0; padding-left:22px; border-left:1px solid var(--line); }
.gq-ledger-pilot .gq-v2-pricing h3 { margin:0 0 17px; }
.gq-ledger-pilot .gq-v2-pricing fieldset { display:flex; flex-direction:column; gap:12px; }
.gq-ledger-pilot .gq-v2-pricing label { display:flex; flex-direction:row; justify-content:space-between; align-items:center; gap:10px; }
.gq-ledger-pilot .gq-v2-pricing label>span { font-size:12px; color:var(--ink); }
html body .gq-workspace.gq-ledger-pilot .gq-v2-pricing input { width:104px; flex:0 0 auto; font-size:15px; font-weight:600; }
.gq-ledger-pilot .gq-v2-negotiate { margin-top:16px; padding-top:16px; border-top:1px solid var(--line); }
.gq-ledger-pilot .gq-v2-metrics { margin:18px 0 0; font-variant-numeric:tabular-nums; }
.gq-ledger-pilot .gq-v2-metrics>div { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:8px 0; }
.gq-ledger-pilot .gq-v2-metrics dt { font-size:13px; color:var(--ink-mute); }
.gq-ledger-pilot .gq-v2-metrics dd { margin:0; font-size:14px; font-weight:600; overflow-wrap:anywhere; }
.gq-ledger-pilot .gq-v2-metrics .gq-v2-margin dd { font-size:22px; }
.gq-ledger-pilot .gq-v2-feedback { padding:10px 12px; margin-top:12px; border-radius:8px; font-size:12px; line-height:1.6; background:var(--bg); color:var(--ink-mute); }
.gq-ledger-pilot .gq-v2-feedback.warning { background:var(--warn-bg); color:var(--warn); }
.gq-ledger-pilot .gq-v2-feedback.danger { background:var(--danger-bg); color:var(--danger); }
.gq-ledger-pilot .gq-v2-negotiation-result { display:flex; flex-direction:column; gap:5px; padding-top:12px; margin-top:12px; border-top:1px solid var(--line); font-size:12px; }
.gq-ledger-pilot .gq-v2-note { margin-top:22px; padding-top:16px; border-top:1px solid var(--line); }
.gq-ledger-pilot .gq-v2-note textarea { height:64px; resize:vertical; }
.gq-ledger-pilot .gq-v2-saved-bar { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:10px 12px; background:var(--bg); border-radius:8px; margin-bottom:14px; font-size:12px; }
.gq-ledger-pilot .gq-v2-saved-bar>div { display:flex; flex-wrap:wrap; gap:6px; }
.gq-ledger-pilot .gq-v2-saved-bar button { font-size:12px; }
.gq-ledger-pilot .gq-v2-history-toolbar { display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px; margin-bottom:12px; }
.gq-ledger-pilot .gq-v2-history-toolbar>div { display:flex; gap:6px; }
.gq-ledger-pilot .gq-v2-history-toolbar button { font-size:13px; }
.gq-ledger-pilot .gq-v2-history-toolbar button[aria-pressed=true] { color:var(--apple-blue-hover); background:var(--apple-blue-bg); border-color:transparent; }
.gq-ledger-pilot .gq-v2-history-record { padding:18px 0; border-bottom:1px solid var(--line); }
.gq-ledger-pilot .gq-v2-record-top { display:flex; justify-content:space-between; gap:12px; color:var(--ink-mute); font-size:12px; }
.gq-ledger-pilot .gq-v2-record-top>div { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.gq-ledger-pilot .gq-v2-record-top b { font-size:15px; color:var(--ink); }
.gq-ledger-pilot .gq-v2-record-status { border-radius:5px; background:var(--bg); padding:2px 7px; }
.gq-ledger-pilot .gq-v2-record-values { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:16px 0; }
.gq-ledger-pilot .gq-v2-record-values dt { color:var(--ink-mute); font-size:12px; margin-bottom:5px; }
.gq-ledger-pilot .gq-v2-record-values dd { margin:0; font-size:15px; font-weight:600; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.gq-ledger-pilot .gq-v2-record-actions { display:flex; justify-content:flex-end; gap:8px; }
.gq-ledger-pilot .gq-v2-record-actions button { font-size:12px; }
html body .gq-workspace.gq-ledger-pilot button.gq-v2-delete { color:var(--danger); }
.gq-ledger-pilot .gq-v2-confirm { flex:0 0 auto; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; margin:12px 22px 0; padding:12px; background:var(--bg); border:1px solid var(--line); border-radius:8px; font-size:13px; }
.gq-ledger-pilot .gq-v2-confirm p { color:var(--ink-mute); font-size:12px; margin-top:5px; }
.gq-ledger-pilot .gq-v2-confirm>div:last-child { display:flex; gap:8px; }
html body .gq-workspace.gq-ledger-pilot .gq-v2-footer { padding:10px 22px; flex-wrap:wrap; }
.gq-ledger-pilot .gq-v2-footer>span { overflow-wrap:anywhere; }
@container (max-width:790px) {
  .gq-ledger-pilot .gq-v2-body { grid-template-columns:minmax(0,1fr); gap:24px; }
  .gq-ledger-pilot .gq-v2-pricing { grid-row:1; border-left:0; border-bottom:1px solid var(--line); padding:0 0 18px; }
  .gq-ledger-pilot .gq-v2-pricing>fieldset { max-width:320px; }
  .gq-ledger-pilot .gq-v2-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 24px; }
  .gq-ledger-pilot .gq-v2-saved-bar { align-items:flex-start; flex-direction:column; }
}
@container (max-width:470px) {
  .gq-ledger-pilot .gq-v2-cost-head { display:none; }
  .gq-ledger-pilot .gq-v2-cost-row { grid-template-columns:minmax(0,1fr) 88px 70px; gap:8px; }
  .gq-ledger-pilot .gq-v2-fabric { grid-template-columns:minmax(0,1fr) 84px; row-gap:12px; }
  .gq-ledger-pilot .gq-v2-fabric-inputs { grid-column:1/-1; grid-row:2; justify-content:flex-start; }
  .gq-ledger-pilot .gq-v2-metrics { grid-template-columns:minmax(0,1fr); }
  .gq-ledger-pilot .gq-v2-record-values { grid-template-columns:repeat(2,minmax(0,1fr)); }
  html body .gq-workspace.gq-ledger-pilot .gq-v2-reference .gq-reference { grid-template-columns:minmax(0,1fr); }
  html body .gq-workspace.gq-ledger-pilot .gq-v2-reference .gq-photos { max-width:210px; }
}
@media screen and (max-width:900px) {
  .gq-workspace.gq-ledger-pilot .gq-layout { grid-template-columns:190px minmax(0,1fr); }
  .gq-ledger-pilot .gq-v2-scroll { padding:14px; }
  .gq-ledger-pilot .gq-v2-head { padding:14px 14px 8px; }
  .gq-ledger-pilot .gq-v2-tabs { margin:0 14px; gap:16px; }
}
@media screen and (max-width:720px) {
  .gq-workspace.gq-ledger-pilot .gq-layout { grid-template-columns:150px minmax(0,1fr); }
  .gq-ledger-pilot .gq-v2-head { flex-wrap:wrap; }
  .gq-ledger-pilot .gq-v2-head h2 { font-size:15px; }
  .gq-ledger-pilot .gq-v2-tabs button { min-height:44px; font-size:12px; white-space:normal; text-align:left; }
  .gq-ledger-pilot .gq-v2-fields { gap:12px; }
  .gq-ledger-pilot .gq-v2-record-top { flex-wrap:wrap; }
  .gq-ledger-pilot .gq-v2-confirm { margin:10px 12px 0; }
  html body .gq-workspace.gq-ledger-pilot .gq-v2-footer { padding:8px 12px; }
}
@media screen and (max-width:480px) {
  .gq-workspace.gq-ledger-pilot .gq-layout { grid-template-columns:110px minmax(0,1fr); }
  .gq-ledger-pilot .gq-style img,.gq-ledger-pilot .gq-thumb-empty { display:none; }
  .gq-workspace.gq-ledger-pilot .gq-status-tabs { height:auto; display:flex; flex-direction:column; padding:3px; }
  .gq-workspace.gq-ledger-pilot .gq-filter-tab { min-height:36px; flex-direction:row; }
  .gq-ledger-pilot .gq-v2-cost-row:not(.gq-v2-fabric) { grid-template-columns:minmax(0,1fr) 78px; }
  .gq-ledger-pilot .gq-v2-cost-row:not(.gq-v2-fabric)>b { grid-column:2; }
  html body .gq-workspace.gq-ledger-pilot .gq-v2-cost-amount input { width:78px; }
}
@container (max-width:300px) {
  .gq-ledger-pilot .gq-v2-pricing label { flex-direction:column; align-items:flex-start; }
  .gq-ledger-pilot .gq-v2-fabric-inputs { flex-wrap:wrap; }
  .gq-ledger-pilot .gq-v2-fabric { grid-template-columns:minmax(0,1fr); }
  .gq-ledger-pilot .gq-v2-fabric>b { text-align:left; }
}

/* quotation-adjustable-v3: neutral ERP controls, aligned currencies and separate price stages. */
.gq-workspace.gq-ledger-pilot {
  --apple-blue:var(--ink-strong,#1d1d1f);
  --apple-blue-hover:var(--ink-strong,#1d1d1f);
  --apple-blue-bg:var(--bg,#f5f5f7);
}
html body .gq-workspace.gq-ledger-pilot .gq-v2-tabs { gap:4px; padding:8px 0; }
html body .gq-workspace.gq-ledger-pilot .gq-v2-tabs button { border:0; border-radius:6px; padding:6px 12px; color:var(--ink-mute); background:transparent; box-shadow:none; }
html body .gq-workspace.gq-ledger-pilot .gq-v2-tabs button[aria-pressed=true] { background:var(--bg); color:var(--ink-strong); }
html body .gq-workspace.gq-ledger-pilot .gq-primary { background:var(--ink-strong); border-color:var(--ink-strong); color:var(--surface,#fff); box-shadow:none; }
html body .gq-workspace.gq-ledger-pilot .gq-primary:hover { opacity:.88; }
html body .gq-workspace.gq-ledger-pilot .gq-filter-tab.is-active { background:var(--bg); color:var(--ink-strong); box-shadow:none; border-radius:6px; }
html body .gq-workspace.gq-ledger-pilot .gq-style.is-selected { background:var(--bg); color:var(--ink-strong); }
html body .gq-workspace.gq-ledger-pilot .gq-style.is-selected b { color:var(--ink-strong); }
html body .gq-workspace.gq-ledger-pilot .gq-search-slot .prod-qc-search-field:focus-within { border-color:var(--ink-mute); box-shadow:0 0 0 2px var(--line); }
html body .gq-workspace.gq-ledger-pilot input:focus { border-color:var(--ink-mute); box-shadow:0 0 0 2px var(--line); outline:0; }
.gq-ledger-pilot .gq-v2-body { grid-template-columns:minmax(0,1fr) 320px; }
.gq-ledger-pilot .gq-price-matrix { font-variant-numeric:tabular-nums; }
.gq-ledger-pilot .gq-price-matrix>div { display:grid; grid-template-columns:minmax(80px,1fr) minmax(65px,.8fr) minmax(65px,.8fr); align-items:center; gap:8px; padding:12px 0; }
.gq-ledger-pilot .gq-price-matrix>div>*:not(:first-child) { text-align:right; overflow-wrap:anywhere; }
.gq-ledger-pilot .gq-price-matrix>div>span { font-size:13px; }
.gq-ledger-pilot .gq-price-matrix b { font-size:15px; font-weight:650; }
.gq-ledger-pilot .gq-price-matrix .gq-price-columns { padding:0 0 6px; color:var(--ink-mute); border-bottom:1px solid var(--line); }
.gq-ledger-pilot .gq-price-columns span { font-size:11px; }
.gq-ledger-pilot .gq-standard-price small { display:block; margin-top:4px; font-size:11px; }
.gq-ledger-pilot .gq-price-section { border-top:1px solid var(--line); padding:18px 0 4px; margin-top:8px; }
html body .gq-workspace.gq-ledger-pilot button.gq-price-reset { display:block; padding:0; min-height:28px; border:0; background:transparent; color:var(--ink-mute); font-size:11px; margin:2px 0 4px auto; }
.gq-ledger-pilot .gq-price-outcome { display:flex; flex-wrap:wrap; gap:10px 16px; padding-top:10px; font-variant-numeric:tabular-nums; }
.gq-ledger-pilot .gq-price-outcome>span { display:flex; gap:6px; align-items:baseline; color:var(--ink-mute); font-size:11px; }
.gq-ledger-pilot .gq-price-outcome b { color:var(--ink-strong); font-size:13px; font-weight:600; }
.gq-ledger-pilot .gq-price-loss b { color:var(--danger); }
.gq-ledger-pilot .gq-price-notice,.gq-ledger-pilot .gq-price-pending { margin:8px 0 0; color:var(--ink-mute); font-size:12px; line-height:1.5; }
.gq-ledger-pilot .gq-price-notice.gq-loss { color:var(--danger); }
.gq-ledger-pilot .gq-price-reference { min-width:0; }
.gq-ledger-pilot .gq-reference-prices { padding:0 0 8px; }
.gq-ledger-pilot .gq-reference-prices h4 { font-size:13px; margin:0 0 8px; }
.gq-ledger-pilot .gq-reference-prices>div { display:flex; justify-content:space-between; gap:16px; padding:7px 0; border-bottom:1px solid var(--line); font-size:12px; }
.gq-ledger-pilot .gq-reference-prices b { font-weight:600; overflow-wrap:anywhere; }
.gq-ledger-pilot .gq-reference-prices p { color:var(--ink-mute); font-size:12px; }
html body .gq-workspace.gq-ledger-pilot .gq-price-reference .gc-wb-reference-details { width:100%; min-width:0; display:block; }
html body .gq-workspace.gq-ledger-pilot .gq-price-reference summary { color:var(--ink-mute); font-size:12px; padding:8px 0; }
html body .gq-workspace.gq-ledger-pilot .gq-price-reference .gq-fabrics { width:100%; height:auto; max-height:280px; overflow:auto; }
@container (max-width:860px) {
  .gq-ledger-pilot .gq-v2-body { grid-template-columns:minmax(0,1fr); }
  .gq-ledger-pilot .gq-v2-pricing { grid-row:1; border-left:0; border-bottom:1px solid var(--line); padding:0 0 18px; }
}
@container (max-width:300px) {
  .gq-ledger-pilot .gq-price-matrix>div { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .gq-ledger-pilot .gq-price-matrix>div>span:first-child { grid-column:1/-1; }
  .gq-ledger-pilot .gq-price-matrix>div>*:not(:first-child) { text-align:left; }
}

/* quotation-compact-desktop-v4: search first; costs and pricing precede optional references. */
html body .gq-workspace.gq-ledger-pilot .gq-brand-group>h3 { height:auto; padding:0; margin:4px 0; }
html body .gq-workspace.gq-ledger-pilot .gq-brand-group>h3::before { content:none; }
html body .gq-workspace.gq-ledger-pilot button.gq-brand-toggle { display:flex; width:100%; min-height:36px; gap:8px; align-items:center; padding:6px 8px; border:0; background:transparent; color:var(--ink-mute); font-size:12px; font-weight:600; text-align:left; }
.gq-ledger-pilot .gq-brand-toggle small { margin-left:auto; }
.gq-ledger-pilot .gq-brand-chevron { width:0; height:0; border-top:4px solid transparent; border-bottom:4px solid transparent; border-left:5px solid currentColor; }
.gq-ledger-pilot .gq-brand-toggle[aria-expanded=true] .gq-brand-chevron { transform:rotate(90deg); }
html body .gq-workspace.gq-ledger-pilot button.gq-brand-toggle:focus-visible { outline:2px solid var(--ink-mute); outline-offset:-2px; }
.gq-ledger-pilot .gq-v2-head { padding:10px 18px; }
.gq-ledger-pilot .gq-v2-head h2 { font-size:16px; }
.gq-ledger-pilot .gq-v2-head>div>span { font-size:12px; margin-top:2px; }
html body .gq-workspace.gq-ledger-pilot .gq-v2-tabs { padding:5px 0; margin-inline:18px; }
.gq-ledger-pilot .gq-v2-scroll { padding:12px 18px; }
.gq-ledger-pilot .gq-v2-scroll>* { max-width:none; }
.gq-ledger-pilot .gq-v2-fields { margin:0 0 14px; gap:10px 16px; }
.gq-ledger-pilot .gq-v2-body { grid-template-columns:minmax(0,1fr) 292px; gap:20px; }
.gq-ledger-pilot .gq-v2-pricing { grid-row:auto; padding:0 0 0 20px; border-left:1px solid var(--line); border-bottom:0; }
.gq-ledger-pilot .gq-v2-section-head { margin-bottom:6px; }
.gq-ledger-pilot .gq-v2-pricing h3 { margin-bottom:10px; }
.gq-ledger-pilot .gq-v2-cost-head,.gq-ledger-pilot .gq-v2-cost-row { grid-template-columns:minmax(60px,1fr) 164px 68px; gap:8px; }
.gq-ledger-pilot .gq-v2-cost-head { min-height:28px; }
.gq-ledger-pilot .gq-v2-cost-row { min-height:44px; padding:4px 0; }
.gq-ledger-pilot .gq-v2-fabric { min-height:66px; }
.gq-ledger-pilot .gq-v2-fabric-inputs { gap:8px; }
html body .gq-workspace.gq-ledger-pilot .gq-v2-fabric-inputs input { width:78px; }
.gq-ledger-pilot .gq-v2-extra>summary { min-height:30px; padding:6px 0; }
.gq-ledger-pilot .gq-price-matrix>div { padding:9px 0; }
.gq-ledger-pilot .gq-price-section { padding-top:12px; margin-top:6px; }
.gq-ledger-pilot .gq-price-outcome { gap:6px 12px; padding-top:6px; }
.gq-ledger-pilot .gq-price-notice,.gq-ledger-pilot .gq-price-pending { margin-top:5px; }
.gq-ledger-pilot .gq-secondary-details { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:0 20px; border-top:1px solid var(--line); margin-top:14px; }
.gq-ledger-pilot .gq-secondary-details>details { min-width:0; border:0; margin:0; }
.gq-ledger-pilot .gq-secondary-details>details>summary { padding:8px 0; min-height:34px; color:var(--ink-mute); font-size:12px; cursor:pointer; }
.gq-ledger-pilot .gq-secondary-details>details[open] { grid-column:1/-1; }
.gq-ledger-pilot .gq-note-details .gq-v2-note { margin:0; padding:0 0 10px; border:0; }
.gq-ledger-pilot .gq-note-details textarea { resize:none; }
@container (max-width:640px) {
  .gq-ledger-pilot .gq-v2-body { grid-template-columns:minmax(0,1fr); }
  .gq-ledger-pilot .gq-v2-pricing { grid-row:1; padding:0 0 14px; border-left:0; border-bottom:1px solid var(--line); }
}
@container (max-width:470px) {
  .gq-ledger-pilot .gq-v2-cost-row { grid-template-columns:minmax(0,1fr) 78px 62px; }
  .gq-ledger-pilot .gq-v2-fabric { grid-template-columns:minmax(0,1fr) 70px; }
  .gq-ledger-pilot .gq-secondary-details { grid-template-columns:minmax(0,1fr); }
}
@media (max-width:720px) {
  html body .gq-workspace.gq-ledger-pilot button.gq-brand-toggle { min-height:44px; }
  .gq-ledger-pilot .gq-v2-cost-row { min-height:52px; }
}
@container (max-width:300px) {
  .gq-ledger-pilot .gq-v2-cost-row:not(.gq-v2-fabric) { grid-template-columns:minmax(0,1fr) 78px; }
  .gq-ledger-pilot .gq-v2-cost-row:not(.gq-v2-fabric)>b { grid-column:2; }
  .gq-ledger-pilot .gq-v2-fabric { grid-template-columns:minmax(0,1fr); }
}

/* quotation-component-parity-v5: use shared control tokens within the Peter workspace. */
html body .gq-workspace.gq-ledger-pilot .gq-v2-head {
  background:var(--surface,#fff)!important;
  border-bottom:1px solid var(--line);
  box-shadow:none;
}
html body .gq-workspace.gq-ledger-pilot .gq-v2-head .gq-editor-status {
  display:inline-flex; align-items:center; justify-content:center; flex:none;
  min-height:24px; padding:2px 8px; margin:0;
  border:1px solid var(--line); border-radius:var(--gc-ui-option-radius,6px);
  font:500 12px/1.4 var(--font-sans); white-space:nowrap;
}
html body .gq-workspace.gq-ledger-pilot .gq-v2-head .gq-editor-status-pending {
  background:var(--bg,#f5f5f7); color:var(--ink-mute);
}
html body .gq-workspace.gq-ledger-pilot .gq-v2-head .gq-editor-status-quoted {
  background:var(--surface,#fff); color:var(--ink-strong);
}
html body .gq-workspace.gq-ledger-pilot .gq-v2-scroll { padding-top:14px!important; }
html body .gq-workspace.gq-ledger-pilot .gq-v2-fields label,
html body .gq-workspace.gq-ledger-pilot .gq-v2-fabric-inputs label { display:flex; flex-direction:column; gap:6px; }
html body .gq-workspace.gq-ledger-pilot :is(.gq-v2-fields,.gq-v2-fabric-inputs) label>span { margin:0; line-height:1.4; }
html body .gq-workspace.gq-ledger-pilot input:not(.prod-qc-search-input),
html body .gq-workspace.gq-ledger-pilot select {
  height:var(--gc-ui-field-height,36px)!important;
  min-height:var(--gc-ui-field-height,36px)!important;
  border:1px solid var(--line-strong);
  border-radius:var(--gc-ui-control-radius,8px)!important;
  background:var(--surface,#fff); color:var(--ink-strong);
  font-family:var(--font-sans); font-variant-numeric:tabular-nums;
  box-sizing:border-box;
}
html body .gq-workspace.gq-ledger-pilot :is(input,select,textarea):focus {
  border-color:var(--ink-mute)!important;
  outline:none!important; box-shadow:0 0 0 2px var(--line)!important;
}
html body .gq-workspace.gq-ledger-pilot :is(input,select,textarea):disabled,
html body .gq-workspace.gq-ledger-pilot input[readonly] {
  background:var(--bg)!important; color:var(--ink-mute); cursor:default;
}
html body .gq-workspace.gq-ledger-pilot .gq-v2-footer button {
  min-height:var(--gc-ui-action-height,34px)!important;
  height:var(--gc-ui-action-height,34px)!important;
  border-radius:var(--gc-ui-control-radius,8px)!important;
}
html body .gq-workspace.gq-ledger-pilot .gq-brand-filter { gap:8px; }
@media (max-width:720px) {
  html body .gq-workspace.gq-ledger-pilot input:not(.prod-qc-search-input),
  html body .gq-workspace.gq-ledger-pilot select,
  html body .gq-workspace.gq-ledger-pilot .gq-v2-footer button { height:44px!important; min-height:44px!important; }
}

/* quotation-drawer-parity-v6: drawer typography, surfaces and one border scale. */
html body .gq-workspace.gq-ledger-pilot { font:400 13px/1.4 var(--font-sans); }
html body .gq-workspace.gq-ledger-pilot :is(button,input,select,textarea) { font-family:var(--font-sans); letter-spacing:0; }
html body .gq-workspace.gq-ledger-pilot :is(input:not(.prod-qc-search-input),select,textarea) { font-size:13px; font-weight:400; border-color:var(--line); }
html body .gq-workspace.gq-ledger-pilot .gq-v2-head h2 { font-size:16px; font-weight:600; }
html body .gq-workspace.gq-ledger-pilot :is(.gq-v2-section-head h3,.gq-v2-pricing h3) { font-size:14px; font-weight:600; line-height:1.4; }
html body .gq-workspace.gq-ledger-pilot :is(.gq-filter-tab,.gq-v2-tabs button,.gq-brand-toggle,.gq-v2-footer button) { font-size:12px!important; font-weight:500!important; }
html body .gq-workspace.gq-ledger-pilot :is(.gq-filter-tab small,.gq-brand-toggle small) { font-size:11px; font-weight:400; }
html body .gq-workspace.gq-ledger-pilot :is(.gq-v2-cost-row>div>b,.gq-v2-cost-row>b) { font-size:13px; font-weight:400; }
html body .gq-workspace.gq-ledger-pilot .gq-style b { font-size:13px; font-weight:500; }
html body .gq-workspace.gq-ledger-pilot :is(.gq-price-matrix b,.gq-price-outcome b) { font-size:13px; font-weight:600; }
html body .gq-workspace.gq-ledger-pilot :is(.gq-v2-pricing label>span,.gq-price-matrix>div>span,.gq-v2-fields label>span) { font-size:12px; font-weight:400; }
html body .gq-workspace.gq-ledger-pilot .gq-price-matrix .gq-price-columns span { font-size:11px; }
html body .gq-workspace.gq-ledger-pilot .gq-brand-filter { border-bottom:0; padding:8px 10px; }
html body .gq-workspace.gq-ledger-pilot .gq-list-filters { border-bottom:1px solid var(--line); }
html body .gq-workspace.gq-ledger-pilot .gq-search-slot .prod-qc-search-field { border-color:var(--line); border-radius:var(--gc-ui-control-radius,8px); }
html body .gq-workspace.gq-ledger-pilot .gq-search-slot .prod-qc-search-input { font-size:13px; font-weight:400; }
html body .gq-workspace.gq-ledger-pilot .gq-v2-scroll { background:var(--bg,#f5f5f7); }
html body .gq-workspace.gq-ledger-pilot .gq-v2-body { grid-template-columns:minmax(0,1fr) 310px; gap:14px; }
html body .gq-workspace.gq-ledger-pilot :is(.gq-v2-costs,.gq-v2-pricing) {
  background:var(--surface,#fff); border:1px solid var(--line); border-radius:12px;
  padding:14px; min-width:0; box-shadow:none;
}
html body .gq-workspace.gq-ledger-pilot .gq-secondary-details { border:0; margin-top:10px; gap:14px; }
html body .gq-workspace.gq-ledger-pilot .gq-secondary-details>details { background:var(--surface,#fff); border:1px solid var(--line); border-radius:12px; padding:0 12px; }
html body .gq-workspace.gq-ledger-pilot .gq-secondary-details>details>summary { font-weight:400; }
html body .gq-workspace.gq-ledger-pilot .gq-v2-fields { margin-bottom:12px; }
@container (max-width:700px) {
  html body .gq-workspace.gq-ledger-pilot .gq-v2-body { grid-template-columns:minmax(0,1fr); }
  html body .gq-workspace.gq-ledger-pilot .gq-v2-pricing { grid-row:1; }
}

/* quotation-white-surface-v7: white workspace with inset, lightweight segmented navigation. */
html body .gq-workspace.gq-ledger-pilot :is(.gq-v2-scroll,.gq-sidebar,.gq-list-filters) {
  background:var(--surface,#fff);
}
html body .gq-workspace.gq-ledger-pilot .gq-status-tabs {
  height:auto; gap:4px; padding:8px;
  background:var(--surface,#fff);
}
html body .gq-workspace.gq-ledger-pilot .gq-status-tabs .gq-filter-tab {
  min-height:32px; padding:5px 3px; border:1px solid transparent;
  border-radius:8px; background:transparent; box-shadow:none;
}
html body .gq-workspace.gq-ledger-pilot .gq-status-tabs .gq-filter-tab.is-active {
  background:var(--surface,#fff); border-color:var(--line);
  box-shadow:0 1px 2px rgba(0,0,0,.04); color:var(--ink-strong);
}
html body .gq-workspace.gq-ledger-pilot .gq-v2-tabs { padding:8px 0; }
html body .gq-workspace.gq-ledger-pilot .gq-v2-tabs button {
  border:1px solid transparent; border-radius:8px;
}
html body .gq-workspace.gq-ledger-pilot .gq-v2-tabs button[aria-pressed=true] {
  background:var(--surface,#fff); border-color:var(--line);
  box-shadow:0 1px 2px rgba(0,0,0,.04);
}
html body .gq-workspace.gq-ledger-pilot input[type=date]:not(:disabled) {
  background:var(--surface,#fff)!important;
}
html body .gq-workspace.gq-ledger-pilot .gq-secondary-details { margin-bottom:10px; }
@media (max-width:720px) {
  html body .gq-workspace.gq-ledger-pilot .gq-status-tabs .gq-filter-tab { min-height:44px; }
}

/* quotation-history-compact-v8: compact record rows with actions alongside values. */
html body .gq-workspace.gq-ledger-pilot .gq-v2-history-toolbar { margin:0 0 12px; }
html body .gq-workspace.gq-ledger-pilot .gq-v2-history-toolbar button { min-height:32px; padding:4px 10px; font:500 12px/1.4 var(--font-sans); }
html body .gq-workspace.gq-ledger-pilot .gq-v2-history-toolbar button[aria-pressed=true] { background:var(--surface,#fff); border:1px solid var(--line); color:var(--ink-strong); }
html body .gq-workspace.gq-ledger-pilot .gq-v2-history-record {
  display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px 24px;
  padding:14px 16px; margin-bottom:10px; border:1px solid var(--line); border-radius:12px;
}
.gq-ledger-pilot .gq-v2-record-top { grid-column:1/-1; }
html body .gq-workspace.gq-ledger-pilot .gq-v2-record-top b { font-size:14px; font-weight:600; }
html body .gq-workspace.gq-ledger-pilot .gq-v2-record-values { gap:12px 20px; margin:0; }
html body .gq-workspace.gq-ledger-pilot .gq-v2-record-values dt { font-size:12px; margin-bottom:6px; }
html body .gq-workspace.gq-ledger-pilot .gq-v2-record-values dd { font-size:14px; font-weight:600; }
html body .gq-workspace.gq-ledger-pilot .gq-v2-record-actions { align-self:center; gap:8px; }
html body .gq-workspace.gq-ledger-pilot .gq-v2-record-actions button { min-height:32px; padding:4px 10px; font:500 12px/1.4 var(--font-sans); }
@container (max-width:760px) {
  html body .gq-workspace.gq-ledger-pilot .gq-v2-history-record { grid-template-columns:minmax(0,1fr); gap:14px; }
  html body .gq-workspace.gq-ledger-pilot .gq-v2-record-actions { justify-content:flex-start; flex-wrap:wrap; }
}
@media (max-width:720px) {
  html body .gq-workspace.gq-ledger-pilot :is(.gq-v2-history-toolbar,.gq-v2-record-actions) button { min-height:44px; }
}

/* Manual quotation layout: one search/action row and one compact metadata group. */
html body .gq-workspace.gq-ledger-pilot .gq-search-slot{gap:8px;align-items:center}
html body .gq-workspace.gq-ledger-pilot .gq-search-slot .prod-qc-searchbar{flex:1 1 0;min-width:0;width:auto}
html body .gq-workspace.gq-ledger-pilot button.gq-manual-entry{flex:none;min-height:36px;padding:0 10px;margin:0;font:500 12px/1.4 var(--font-sans);background:var(--surface,#fff);border:1px solid var(--line);border-radius:var(--gc-ui-control-radius,8px);color:inherit;white-space:nowrap}
html body .gq-workspace.gq-ledger-pilot .gq-manual-fields{display:grid;grid-template-columns:minmax(140px,1.35fr) minmax(125px,1.2fr) 130px 112px 98px;gap:12px;max-width:820px;margin-bottom:18px;align-items:end}
html body .gq-workspace.gq-ledger-pilot .gq-manual-fields label{width:auto;min-width:0;max-width:none;display:grid;gap:6px;font-size:12px;font-weight:400}
html body .gq-workspace.gq-ledger-pilot .gq-manual-fields label>span{white-space:nowrap}
html body .gq-workspace.gq-ledger-pilot .gq-v2-fields.gq-manual-fields input{width:100%;min-width:0;max-width:none;height:36px;padding:0 10px;box-sizing:border-box;font:400 13px var(--font-sans);background:var(--surface,#fff);border:1px solid var(--line);border-radius:var(--gc-ui-control-radius,8px)}
html body .gq-workspace.gq-ledger-pilot .gq-v2-fields.gq-manual-fields input:focus{outline:0!important;border-color:var(--ink-mute)!important;box-shadow:0 0 0 2px var(--line)!important}
@container(max-width:760px){html body .gq-workspace.gq-ledger-pilot .gq-manual-fields{grid-template-columns:repeat(6,minmax(0,1fr));max-width:none}html body .gq-workspace.gq-ledger-pilot .gq-manual-fields label{grid-column:span 2}html body .gq-workspace.gq-ledger-pilot .gq-manual-fields label:nth-child(-n+2){grid-column:span 3}}
@media(max-width:720px){html body .gq-workspace.gq-ledger-pilot button.gq-manual-entry,html body .gq-workspace.gq-ledger-pilot .gq-v2-fields.gq-manual-fields input{min-height:44px}}
@container(max-width:420px){html body .gq-workspace.gq-ledger-pilot .gq-manual-fields{grid-template-columns:repeat(2,minmax(0,1fr))}html body .gq-workspace.gq-ledger-pilot .gq-manual-fields label,html body .gq-workspace.gq-ledger-pilot .gq-manual-fields label:nth-child(-n+2){grid-column:auto}html body .gq-workspace.gq-ledger-pilot .gq-manual-fields label:last-child{grid-column:span 2;max-width:130px}}

@container(max-width:300px){html body .gq-workspace.gq-ledger-pilot .gq-manual-fields{grid-template-columns:minmax(0,1fr)}html body .gq-workspace.gq-ledger-pilot .gq-manual-fields label:last-child{grid-column:auto;max-width:none}html body .gq-workspace.gq-ledger-pilot .gq-manual-fields label>span{white-space:normal}}

/* Quotation control alignment: shared action dimensions and continuous header baseline. */
html body .gq-workspace.gq-ledger-pilot{--gq-action-width:112px;--gq-action-height:36px;--gq-header-height:64px}
html body .gq-workspace.gq-ledger-pilot .gq-v2-footer{border-top:0}
html body .gq-workspace.gq-ledger-pilot .gq-status-tabs,html body .gq-workspace.gq-ledger-pilot .gq-v2-head{height:var(--gq-header-height);min-height:var(--gq-header-height);box-sizing:border-box;padding-top:8px;padding-bottom:8px}
html body .gq-workspace.gq-ledger-pilot .gq-status-tabs{align-items:center}
html body .gq-workspace.gq-ledger-pilot :is(.gq-v2-footer,.gq-v2-record-actions,.gq-v2-history-toolbar,.gq-v2-confirm,.gq-v2-saved-bar) button,
html body .gq-workspace.gq-ledger-pilot button.gq-manual-entry,
html body .gq-workspace.gq-ledger-pilot button.gq-price-reset,
html body .gq-workspace.gq-ledger-pilot .gq-v2-tabs button{width:var(--gq-action-width)!important;min-width:var(--gq-action-width)!important;max-width:var(--gq-action-width)!important;height:var(--gq-action-height)!important;min-height:var(--gq-action-height)!important;box-sizing:border-box;padding:4px 8px!important;margin-top:0;font:500 12px/1.3 var(--font-sans)!important;display:inline-flex;align-items:center;justify-content:center;text-align:center;white-space:normal;flex:0 0 var(--gq-action-width)}
html body .gq-workspace.gq-ledger-pilot .gq-status-tabs .gq-filter-tab{height:var(--gq-action-height);min-height:var(--gq-action-height);box-sizing:border-box;font-weight:500}
html body .gq-workspace.gq-ledger-pilot :is(.gq-v2-tabs,.gq-v2-record-actions,.gq-v2-history-toolbar,.gq-v2-history-toolbar>div,.gq-v2-confirm>div:last-child,.gq-v2-saved-bar>div){gap:8px;flex-wrap:wrap}
@media(max-width:720px){html body .gq-workspace.gq-ledger-pilot{--gq-action-width:96px;--gq-action-height:44px;--gq-header-height:68px}html body .gq-workspace.gq-ledger-pilot .gq-search-slot{flex-wrap:wrap}html body .gq-workspace.gq-ledger-pilot .gq-search-slot .prod-qc-searchbar{flex-basis:100%}html body .gq-workspace.gq-ledger-pilot button.gq-manual-entry{width:100%!important;min-width:0!important;max-width:none!important;flex-basis:100%}}
@media(max-width:540px){html body .gq-workspace.gq-ledger-pilot .gq-status-tabs{height:auto;min-height:var(--gq-header-height)}html body .gq-workspace.gq-ledger-pilot .gq-status-tabs .gq-filter-tab{width:100%}}

/* Shared numeric cost field: fabric price/usage and every expense use one geometry. */
html body .gq-workspace.gq-ledger-pilot :is(.gq-v2-fabric-inputs,.gq-v2-cost-amount) input[type=number]{width:78px;min-width:78px;max-width:78px;height:36px;min-height:36px;box-sizing:border-box;padding:0 10px;border:1px solid var(--line);border-radius:var(--gc-ui-control-radius,8px);font:400 13px var(--font-sans);text-align:right}
@media(max-width:720px){html body .gq-workspace.gq-ledger-pilot :is(.gq-v2-fabric-inputs,.gq-v2-cost-amount) input[type=number]{height:44px;min-height:44px}}

/* Saved quotation actions: keep long labels on one line with balanced spacing. */
html body .gq-workspace.gq-ledger-pilot .gq-v2-saved-bar{gap:16px;padding:12px 16px;margin-bottom:18px}
html body .gq-workspace.gq-ledger-pilot .gq-v2-saved-bar>div{gap:10px;max-width:100%}
html body .gq-workspace.gq-ledger-pilot .gq-v2-saved-bar button{width:136px!important;min-width:0!important;max-width:100%!important;flex:0 0 136px;white-space:nowrap!important}
@container(max-width:300px){html body .gq-workspace.gq-ledger-pilot .gq-v2-saved-bar{padding:10px 8px;gap:10px}html body .gq-workspace.gq-ledger-pilot .gq-v2-saved-bar>div{width:100%}html body .gq-workspace.gq-ledger-pilot .gq-v2-saved-bar button{flex-basis:100%;width:100%!important;font-size:11px!important;padding-inline:2px!important}}

/* Pattern usage import: Peter-only markup, existing quotation controls and local scroll. */
.gq-ledger-pilot .gq-pattern-usage { margin-bottom:16px; }
.gq-ledger-pilot .gq-pattern-usage h4 { font-size:13px; margin:0 0 8px; }
.gq-ledger-pilot .gq-pattern-usage-row { display:flex; align-items:center; flex-wrap:wrap; gap:8px; padding:8px 0; border-bottom:1px solid var(--line); font-size:12px; }
.gq-ledger-pilot .gq-pattern-usage-row>span { flex:1 1 120px; min-width:0; overflow-wrap:anywhere; }
.gq-ledger-pilot .gq-pattern-usage-row>b { font-weight:500; overflow-wrap:anywhere; }
.gq-ledger-pilot .gq-pattern-usage-row>button { flex:0 0 auto; }

/* Head usage reference: fit the existing photo grid inside narrow quote columns. */
html body.gc-wb-layout-v3 .gq-workspace.gq-compact-layout.gq-ledger-pilot .gq-v2-reference .gq-photos { width:100%; max-width:210px; min-width:0; grid-template-columns:repeat(3,minmax(0,1fr)); }

/* quotation-visible-photos-v1: only generated for Peter; same DOM at every width. */
html body .gq-workspace.gq-ledger-pilot .gq-visible-photos {
  display:flex; flex-wrap:wrap; gap:12px; margin:0 0 16px; padding:0;
  min-width:0; max-width:100%;
}
html body .gq-workspace.gq-ledger-pilot .gq-visible-photos>a {
  display:block; flex:0 1 320px; width:320px; max-width:100%; min-width:0;
  height:180px; border:1px solid var(--line); border-radius:10px;
  overflow:hidden; background:var(--surface,#fff); box-sizing:border-box;
}
html body .gq-workspace.gq-ledger-pilot .gq-visible-photos img {
  display:block; width:100%; height:100%; object-fit:contain; cursor:zoom-in;
}
html body .gq-workspace.gq-ledger-pilot .gq-visible-photos img:focus-visible {
  outline:2px solid var(--apple-blue); outline-offset:-3px;
}
html body.gc-wb-layout-v3 .gq-workspace.gq-compact-layout.gq-ledger-pilot .gq-material-only .gq-reference {
  display:block; grid-template-columns:minmax(0,1fr);
}
@media(max-width:720px) {
  html body .gq-workspace.gq-ledger-pilot .gq-visible-photos>a { height:150px; }
}

/* quotation-three-columns-v1: Peter structure only; existing account layout untouched. */
html body .gq-workspace.gq-ledger-pilot .gq-v2-scroll { container-type:inline-size; container-name:quotation-editor; }
html body .gq-workspace.gq-ledger-pilot .gq-three-columns { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; align-items:start; }
html body .gq-workspace.gq-ledger-pilot .gq-three-columns>* { min-width:0; }
html body .gq-workspace.gq-ledger-pilot .gq-three-columns>.gq-v2-body { display:contents; }
html body .gq-workspace.gq-ledger-pilot .gq-style-material { border:1px solid var(--line); border-radius:12px; padding:14px; overflow-wrap:anywhere; }
html body .gq-workspace.gq-ledger-pilot .gq-style-material h3 { font-size:14px; margin:0 0 12px; }
html body .gq-workspace.gq-ledger-pilot .gq-style-material .gq-visible-photos { margin:0 0 14px; display:grid; grid-template-columns:minmax(0,1fr); }
html body .gq-workspace.gq-ledger-pilot .gq-style-material .gq-visible-photos>a { width:100%; height:240px; min-width:0; }
html body .gq-workspace.gq-ledger-pilot .gq-style-material .gq-reference { display:block; width:auto; padding:0; border:0; overflow:visible; }
html body .gq-workspace.gq-ledger-pilot .gq-style-material .gq-price-reference { min-width:0; }
html body .gq-workspace.gq-ledger-pilot .gq-style-material .gq-fabrics { max-height:none; overflow:visible; }
html body .gq-workspace.gq-ledger-pilot .gq-three-columns .gq-secondary-details { grid-template-columns:minmax(0,1fr); margin:0; }
html body .gq-workspace.gq-ledger-pilot .gq-three-columns .gq-v2-fields { gap:10px; margin:0; }
@container quotation-editor (min-width:880px) {
 html body .gq-workspace.gq-ledger-pilot .gq-three-columns { grid-template-columns:minmax(210px,.95fr) minmax(340px,1.5fr) minmax(250px,1fr); }
 html body .gq-workspace.gq-ledger-pilot .gq-three-columns>.gq-style-material { grid-column:1; grid-row:1 / span 3; }
 html body .gq-workspace.gq-ledger-pilot .gq-three-columns>.gq-v2-fields { grid-column:2 / 4; grid-row:1; }
 html body .gq-workspace.gq-ledger-pilot .gq-three-columns .gq-v2-costs { grid-column:2; grid-row:2; }
 html body .gq-workspace.gq-ledger-pilot .gq-three-columns .gq-v2-pricing { grid-column:3; grid-row:2; }
 html body .gq-workspace.gq-ledger-pilot .gq-three-columns>.gq-secondary-details { grid-column:2 / 4; grid-row:3; }
}
@container quotation-editor (min-width:560px) and (max-width:879px) {
 html body .gq-workspace.gq-ledger-pilot .gq-three-columns { grid-template-columns:minmax(190px,.8fr) minmax(300px,1.3fr); }
 html body .gq-workspace.gq-ledger-pilot .gq-three-columns>.gq-style-material { grid-column:1; grid-row:1 / span 4; }
 html body .gq-workspace.gq-ledger-pilot .gq-three-columns>.gq-v2-fields,html body .gq-workspace.gq-ledger-pilot .gq-three-columns .gq-v2-costs,html body .gq-workspace.gq-ledger-pilot .gq-three-columns .gq-v2-pricing,html body .gq-workspace.gq-ledger-pilot .gq-three-columns>.gq-secondary-details { grid-column:2; }
}

/* Quote settings belong inside the cost card; all three cards start together. */
html body .gq-workspace.gq-ledger-pilot .gq-three-columns .gq-v2-costs>.gq-v2-fields { padding-bottom:14px; margin-bottom:14px; border-bottom:1px solid var(--line); }
@container quotation-editor (min-width:880px) {
 html body .gq-workspace.gq-ledger-pilot .gq-three-columns>.gq-style-material { grid-row:1 / span 2; }
 html body .gq-workspace.gq-ledger-pilot .gq-three-columns .gq-v2-costs,html body .gq-workspace.gq-ledger-pilot .gq-three-columns .gq-v2-pricing { grid-row:1; }
 html body .gq-workspace.gq-ledger-pilot .gq-three-columns>.gq-secondary-details { grid-row:2; }
}

html body .gq-workspace.gq-ledger-pilot .gq-three-columns .gq-v2-costs>.gq-v2-fields { min-width:0; max-width:100%; }
html body .gq-workspace.gq-ledger-pilot .gq-three-columns .gq-v2-costs { min-width:0; }

html body .gq-workspace.gq-ledger-pilot .gq-three-columns .gq-v2-fields label { min-width:0; max-width:100%; }
html body .gq-workspace.gq-ledger-pilot .gq-three-columns .gq-v2-fields input { min-width:0; max-width:100%; box-sizing:border-box; }

/* Peter quotation: explicit fabric alternatives and persistent blue selection. */
html body .gq-workspace.gq-selection-pilot .gq-style.is-selected,
html body .gq-workspace.gq-selection-pilot .gq-fabric-plan.is-selected {
 background:#eaf3ff; color:#0066cc; box-shadow:inset 0 0 0 1px #90bfff;
}
html body .gq-workspace.gq-selection-pilot .gq-style.is-selected b,
html body .gq-workspace.gq-selection-pilot .gq-style.is-selected small { color:#0066cc; }
.gq-selection-pilot .gq-fabric-plans { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:12px; }
html body .gq-workspace.gq-selection-pilot .gq-fabric-plan { padding:6px 10px; min-height:32px; font-size:12px; white-space:normal; height:auto; max-width:100%; }
.gq-selection-pilot .gq-fabric-label { font-size:12px; color:inherit; margin:0 0 12px; }


/* quotation-controls-v3: Peter only; grouped filters and explicit selection. */
html body .gq-workspace.gq-sidebar-refined .gq-list-filters { padding:16px 12px 8px; border:0; }
html body .gq-workspace.gq-sidebar-refined .gq-status-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); height:38px; min-height:38px; padding:3px; gap:2px; margin:0 0 12px; border:0; background:var(--bg,#f5f5f7); border-radius:8px; }
html body .gq-workspace.gq-sidebar-refined .gq-status-tabs .gq-filter-tab { display:flex; align-items:center; justify-content:center; gap:3px; height:32px; min-height:32px; min-width:0; padding:0 2px; border:0; border-radius:6px; font-size:12px; background:transparent; box-shadow:none; }
html body .gq-workspace.gq-sidebar-refined .gq-status-tabs .gq-filter-tab.is-active { border:0; background:var(--surface,#fff); box-shadow:0 1px 3px rgba(0,0,0,.08); }
html body .gq-workspace.gq-sidebar-refined .gq-brand-filter { grid-template-columns:minmax(0,1fr); padding:0; min-height:0; border:0; }
html body .gq-workspace.gq-sidebar-refined .gq-brand-filter>span { display:none; }
html body .gq-workspace.gq-sidebar-refined .gq-brand-filter select { height:36px; padding-inline:10px 28px; font-size:13px; border-radius:var(--gc-field-radius,8px); }
html body .gq-workspace.gq-sidebar-refined .gq-search-slot { padding:0 12px 8px; gap:0; border:0; }
html body .gq-workspace.gq-sidebar-refined .gq-search-slot .prod-qc-searchbar { flex:1 1 100%; }
html body .gq-workspace.gq-sidebar-refined #gqList { padding:4px 8px 8px; }
html body .gq-workspace.gq-sidebar-refined .gq-brand-toggle { padding-inline:8px; }
html body .gq-workspace.gq-sidebar-refined .gq-style { position:relative; gap:12px; padding:8px; min-height:78px; border-radius:8px; }
html body .gq-workspace.gq-sidebar-refined .gq-style :is(img,.gq-thumb-empty) { display:block; width:48px; height:62px; flex:0 0 48px; }
html body .gq-workspace.gq-sidebar-refined .gq-style>.gq-thumb-empty { display:grid; }
html body .gq-workspace.gq-sidebar-refined .gq-style.is-selected { background:var(--apple-blue-bg,#e5f0ff); box-shadow:none; }
html body .gq-workspace.gq-sidebar-refined .gq-style b,html body .gq-workspace.gq-sidebar-refined .gq-style.is-selected b { color:var(--ink-strong,#1d1d1f); font-weight:500; font-size:13px; }
html body .gq-workspace.gq-sidebar-refined .gq-style small,html body .gq-workspace.gq-sidebar-refined .gq-style.is-selected small { color:var(--ink-mute,#6b6b6e); font-size:12px; }
html body .gq-workspace.gq-sidebar-refined .gq-style>span:last-child { gap:6px; }
html body .gq-workspace.gq-sidebar-refined .gq-export-mark { position:absolute; left:5px; top:5px; width:20px; height:20px; color:var(--apple-blue,#007aff); background:var(--surface,#fff); border-radius:50%; pointer-events:none; }
html body .gq-workspace.gq-sidebar-refined #gqExportControls { flex:0 0 auto; min-width:0; }
html body .gq-workspace.gq-sidebar-refined .gq-export-bar { display:flex; flex-direction:column; gap:8px; padding:10px 12px; border-top:0; background:var(--surface,#fff); }
html body .gq-workspace.gq-sidebar-refined .gq-export-selection-actions { padding:0 16px 4px; display:flex; gap:8px; align-items:center; min-width:0; font-size:12px; color:var(--ink-mute,#6b6b6e); }
html body .gq-workspace.gq-sidebar-refined .gq-export-selection-actions button { padding:4px 0; min-width:0; min-height:32px; border:0; background:transparent; color:var(--apple-blue,#007aff); font-size:12px; white-space:nowrap; }
html body .gq-workspace.gq-sidebar-refined .gq-export-selection-actions button:last-child { margin-left:auto; }
html body .gq-workspace.gq-sidebar-refined .gq-export-bar>button { height:36px; min-height:36px; width:100%; padding:0 12px; font-size:13px; border-radius:var(--gc-field-radius,8px); }
@media(max-width:720px) {
 html body .gq-workspace.gq-sidebar-refined .gq-export-bar>button { height:44px; min-height:44px; }
 html body .gq-workspace.gq-sidebar-refined .gq-export-selection-actions button { min-height:44px; }
 html body .gq-workspace.gq-sidebar-refined .gq-search-slot { flex-wrap:wrap; }
 html body .gq-workspace.gq-sidebar-refined .gq-search-slot .prod-qc-searchbar { flex-basis:100%; }
 html body .gq-workspace.gq-sidebar-refined .gq-brand-filter select { height:44px; }
}

@media(max-width:900px) {
 html body .gq-workspace.gq-sidebar-refined .gq-status-tabs { height:50px; min-height:50px; }
 html body .gq-workspace.gq-sidebar-refined .gq-status-tabs .gq-filter-tab { flex-direction:column; gap:2px; height:44px; min-height:44px; line-height:1.15; }
 html body .gq-workspace.gq-sidebar-refined .gq-export-selection-actions { padding-inline:10px; gap:4px; flex-wrap:wrap; }
}

/* quotation-accent-v4: Peter selection and action accents, scoped to this workspace. */
html body .gq-workspace.gq-sidebar-refined {
 --apple-blue:#007aff; --apple-blue-hover:#0066d6; --apple-blue-bg:#eaf3ff;
}
html body .gq-workspace.gq-sidebar-refined .gq-status-tabs .gq-filter-tab.is-active,
html body .gq-workspace.gq-sidebar-refined .gq-v2-tabs button[aria-pressed=true] {
 color:#0066cc; background:#eaf3ff; border-color:transparent; box-shadow:none;
}
html body .gq-workspace.gq-sidebar-refined .gq-style.is-selected { background:#eaf3ff; box-shadow:inset 0 0 0 1px #b8d9ff; }
html body .gq-workspace.gq-sidebar-refined .gq-style.is-selected b { color:#0066cc; }
html body .gq-workspace.gq-sidebar-refined .gq-primary { background:#007aff; border-color:#007aff; color:#fff; }
html body .gq-workspace.gq-sidebar-refined .gq-primary:hover:not(:disabled) { background:#0066d6; border-color:#0066d6; opacity:1; }
html body .gq-workspace.gq-sidebar-refined .gq-export-selection-actions button {
 padding:4px 10px; color:#0066cc; background:#eaf3ff; border-radius:16px; font-weight:500;
}
html body .gq-workspace.gq-sidebar-refined .gq-export-selection-actions button:hover:not(:disabled) { background:#dcecff; }
html body .gq-workspace.gq-sidebar-refined .gq-export-selection-actions button:disabled { opacity:.45; }
html body .gq-workspace.gq-sidebar-refined .gq-brand-chevron {
 width:7px; height:7px; flex:0 0 7px; border:0; border-right:1.5px solid currentColor; border-top:1.5px solid currentColor;
 transform:rotate(45deg); margin:0 3px 0 1px; transition:transform 140ms ease;
}
html body .gq-workspace.gq-sidebar-refined .gq-brand-toggle[aria-expanded=true] .gq-brand-chevron { transform:rotate(135deg); }
html body .gq-workspace.gq-sidebar-refined button.gq-brand-toggle:focus-visible { outline-color:#007aff; }
html body .gq-workspace.gq-sidebar-refined details>summary { list-style:none; display:flex; align-items:center; gap:8px; }
html body .gq-workspace.gq-sidebar-refined details>summary::-webkit-details-marker { display:none; }
html body .gq-workspace.gq-sidebar-refined details>summary::before {
 content:''; display:block; width:7px; height:7px; flex:0 0 7px; border:0; border-right:1.5px solid currentColor; border-top:1.5px solid currentColor;
 transform:rotate(45deg); margin:0 3px 0 1px; transition:transform 140ms ease;
}
html body .gq-workspace.gq-sidebar-refined details[open]>summary::before { transform:rotate(135deg); }
@media(prefers-reduced-motion:reduce) {
 html body .gq-workspace.gq-sidebar-refined .gq-brand-chevron,
 html body .gq-workspace.gq-sidebar-refined details>summary::before { transition:none; }
}

/* quotation-inline-select-v5: idle selection shares the search row. */
html body .gq-workspace.gq-sidebar-refined .gq-search-slot { display:flex; flex-wrap:nowrap; align-items:center; gap:8px; }
html body .gq-workspace.gq-sidebar-refined .gq-search-slot .prod-qc-searchbar { flex:1 1 0; min-width:0; }
html body .gq-workspace.gq-sidebar-refined #gqInlineSelect { flex:0 0 auto; }
html body .gq-workspace.gq-sidebar-refined #gqInlineSelect:empty,
html body .gq-workspace.gq-sidebar-refined #gqSelectionControls:empty { display:none; }
html body .gq-workspace.gq-sidebar-refined #gqInlineSelect button { height:36px; min-height:36px; padding:0 10px; border:0; border-radius:8px; background:#eaf3ff; color:#0066cc; font-size:12px; white-space:nowrap; }
html body .gq-workspace.gq-sidebar-refined #gqInlineSelect button:hover:not(:disabled) { background:#dcecff; }
html body .gq-workspace.gq-sidebar-refined #gqInlineSelect button:disabled { opacity:.45; }
@media(max-width:720px) {
 html body .gq-workspace.gq-sidebar-refined #gqInlineSelect button { height:44px; min-height:44px; padding-inline:8px; }
}
