/* One application shell for every customer workspace view. */
body {
  --chrome: #202c3c;
  --chrome-deep: #172233;
  --chrome-line: #344357;
  --chrome-text: #edf3fa;
  --chrome-muted: #b5c2d1;
  --chrome-selected: #334b68;
  --chrome-accent: #6aa9ff;
  --work-bg: #f2f3f2;
  --work-panel: #fff;
  --work-subtle: #e9eced;
  --work-text: #202d36;
  --work-muted: #61717a;
  --work-line: #d5dbdd;
  --work-action: #2769d8;
  color-scheme: light;
}
body[data-theme="dark"] {
  --work-bg: #101827;
  --work-panel: #1e2b3d;
  --work-subtle: #26364a;
  --work-text: #f0f4f8;
  --work-muted: #aab9c8;
  --work-line: #3a4b60;
  --work-action: #71aaff;
  color-scheme: dark;
  background: var(--work-bg);
  color: var(--work-text);
}
body[data-theme="light"] {
  --bg: var(--work-bg);
  --panel: var(--work-panel);
  --deep: var(--work-subtle);
  --line: var(--work-line);
  --text: var(--work-text);
  --muted: var(--work-muted);
  --mint: var(--work-action);
  color: var(--work-text);
}
body[data-theme="light"] .customer-body main:not(.house-surface) { background: var(--work-bg); color: var(--work-text); }
body[data-theme="light"] .customer-body main:not(.house-surface) :is(input,textarea,select) { background: var(--work-panel); border-color: var(--work-line); color: var(--work-text); }
body[data-theme="light"] .customer-body main:not(.house-surface) :is(input,textarea)::placeholder { color: var(--work-muted); }
body[data-theme="light"] .customer-body main:not(.house-surface) button.secondary { background: var(--work-panel); color: var(--work-text); box-shadow: inset 0 0 0 1px var(--work-line); }
body[data-theme="light"] .customer-body main:not(.house-surface) button.primary { background: var(--work-action); color: white; }
body[data-theme="light"] .customer-body main:not(.house-surface) button[aria-pressed="true"] { background: var(--work-subtle); color: var(--work-text); }
body[data-theme="light"] .customer-body main:not(.house-surface) :is(.work-library,.generation-output-card,.connection-picker,.scout-results thead) { background: var(--work-panel); color: var(--work-text); border-color: var(--work-line); }
body[data-theme="light"] .customer-body main:not(.house-surface) .new-work-tools { background: var(--work-panel); color: var(--work-text); border-color: var(--work-line); }
body[data-theme="light"] .customer-body main:not(.house-surface) :is(.scout-status,.scout-view-tabs button[aria-pressed="true"],.scout-results tr.selected,.library-item[aria-pressed="true"],.library-toolbar button[aria-pressed="true"]) { background: var(--work-subtle); color: var(--work-text); }
body[data-theme="light"] .customer-body main:not(.house-surface) :is(.scout-results td,.job-list-item) { border-color: var(--work-line); }
@media (min-width: 761px) {
  .customer-shell { grid-template-columns: 224px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
  .customer-rail { grid-row: 1; grid-column: 1; }
  .customer-body { grid-row: 1; grid-column: 2; }
  body.rail-collapsed .customer-shell { grid-template-columns: 68px minmax(0, 1fr); }
  body.rail-collapsed .customer-rail { padding-inline: 8px; }
  body.rail-collapsed .customer-brand { justify-content: center; padding-inline: 0; }
  body.rail-collapsed .customer-brand strong { font-size: 18px; letter-spacing: -.08em; }
  body.rail-collapsed .customer-brand span,
  body.rail-collapsed .rail-group-label,
  body.rail-collapsed .rail-account { display: none; }
  body.rail-collapsed .customer-rail nav button { justify-content: center; font-size: 0; padding: 8px; }
  body.rail-collapsed .customer-rail nav button svg { width: 21px; height: 21px; }
}
.customer-rail { background: var(--chrome); color: var(--chrome-text); border-color: var(--chrome-line); padding: 16px 10px 12px; }
.customer-brand { color: var(--chrome-text); padding: 5px 10px 18px; align-items: center; }
.customer-brand strong { font-size: 22px; letter-spacing: -.07em; }
.customer-brand span { color: var(--chrome-muted); font-size: 11px; }
.customer-rail nav { gap: 2px; }
.customer-rail nav .rail-group-label { color: var(--chrome-muted); padding: 15px 12px 5px; }
.customer-rail nav button { color: var(--chrome-muted); border-radius: 7px; font-size: 13px; min-height: 38px; padding: 7px 11px; }
.customer-rail nav button.active { color: white; background: var(--chrome-selected); }
.customer-rail nav button:hover:not(.active) { color: white; background: #2b3c53; }
.customer-rail nav button svg { width: 18px; height: 18px; }
.rail-account { border-color: var(--chrome-line); }
.rail-account #planButton { background: var(--chrome-deep); color: var(--chrome-text); }
.customer-body { grid-template-rows: 56px auto minmax(0, 1fr); background: var(--work-bg); }
.customer-topbar { height: 56px; gap: 8px; padding: 0 12px; background: var(--chrome); color: var(--chrome-text); border-color: var(--chrome-line); white-space: nowrap; }
.customer-topbar button { color: var(--chrome-text); font-size: 12px; }
.customer-topbar button:hover:not(:disabled) { background: #2d4057; }
.customer-topbar .topbar-rail-toggle { display: grid; place-items: center; flex: none; width: 28px; height: 28px; min-height: 28px; padding: 0; border: 1px solid var(--chrome-line); border-radius: 50%; color: var(--chrome-muted); font-size: 18px; line-height: 1; }
.customer-topbar .topbar-store-picker { position: relative; flex: none; }
.customer-topbar .topbar-store-picker summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 132px; height: 34px; padding: 0 11px; border: 1px solid var(--chrome-line); border-radius: 7px; background: var(--chrome-deep); color: var(--chrome-text); cursor: pointer; list-style: none; font-size: 12px; font-weight: 600; }
.customer-topbar .topbar-store-picker summary::-webkit-details-marker { display: none; }
.customer-topbar #workspaceName { overflow: hidden; text-overflow: ellipsis; }
.customer-topbar .topbar-caret { flex: none; color: var(--chrome-muted); font-size: 17px; line-height: 1; }
.customer-topbar .topbar-store-picker[open] { z-index: 110; }
.customer-topbar .topbar-store-menu { position: absolute; top: 41px; left: 0; width: max(195px, 100%); max-height: 285px; overflow: auto; padding: 5px; border: 1px solid var(--chrome-line); border-radius: 9px; background: var(--chrome-deep); box-shadow: 0 14px 32px #0b1423aa; }
.customer-topbar .topbar-store-option { display: block; width: 100%; min-height: 34px; padding: 7px 9px; text-align: left; overflow: hidden; text-overflow: ellipsis; }
.customer-topbar .topbar-store-empty { margin: 5px 9px 8px; color: var(--chrome-muted); font-size: 11px; }
.customer-topbar .topbar-search { display: flex; align-items: center; gap: 8px; flex: none; width: clamp(180px, 23vw, 340px); height: 34px; padding: 0 8px 0 10px; border: 1px solid var(--chrome-line); border-radius: 7px; background: var(--chrome-deep); color: var(--chrome-muted); }
.customer-topbar .topbar-search svg { width: 17px; height: 17px; flex: none; }
.customer-topbar .topbar-search #workspaceSearch { flex: 1; min-width: 0; width: 100%; max-width: none; min-height: 0; height: 30px; margin: 0; padding: 0; border: 0; outline: 0; box-shadow: none; background: transparent; color: var(--chrome-text); font-size: 12px; }
.customer-topbar .topbar-search:focus-within { border-color: #8bb9ff; box-shadow: 0 0 0 2px #8bb9ff44; }
.customer-topbar .topbar-search kbd { flex: none; padding: 2px 5px; border: 1px solid var(--chrome-line); border-radius: 4px; color: var(--chrome-muted); font: 10px Inter, -apple-system, sans-serif; }
.customer-topbar #workspaceSearch::placeholder { color: var(--chrome-muted); }
.customer-topbar .topbar-icon { width: 34px; height: 34px; min-height: 34px; flex: none; padding: 4px; border: 1px solid transparent; border-radius: 7px; font-size: 18px; line-height: 1; }
.customer-topbar .topbar-icon svg { width: 17px; height: 17px; }
.customer-topbar .topbar-icon:hover { border-color: var(--chrome-line); }
.customer-topbar .topbar-plan { display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin-left: auto; background: #2868d5; border-radius: 7px; color: #fff; font-weight: 700; padding: 7px 11px; min-height: 34px; }
.customer-topbar .topbar-plan svg { width: 16px; height: 16px; }
.customer-topbar .topbar-plan:hover:not(:disabled) { background: #377de9; }
.customer-topbar .topbar-credits { color: #d5e4ff; background: #2c4566; border-radius: 7px; min-height: 34px; padding: 7px 10px; font-variant-numeric: tabular-nums; }
.customer-topbar .topbar-utilities { display: flex; align-items: center; gap: 5px; flex: none; height: 100%; padding-left: 8px; border-left: 1px solid var(--chrome-line); }
.customer-topbar .topbar-help { display: inline-flex; align-items: center; gap: 6px; color: var(--chrome-muted); padding: 7px 4px; text-decoration: none; font-size: 12px; }
.customer-topbar .topbar-help svg { width: 17px; height: 17px; }
.customer-topbar .topbar-help:hover { color: #fff; }
.customer-topbar .topbar-updates { position: relative; flex: none; color: #bbd7ff; font-size: 12px; }
.customer-topbar .topbar-updates summary { cursor: pointer; list-style: none; padding: 9px 11px; border-radius: 7px; background: #2c4566; white-space: nowrap; }
.customer-topbar .topbar-updates summary::-webkit-details-marker { display: none; }
.customer-topbar .topbar-updates[open] { z-index: 100; }
.customer-topbar .topbar-updates > div { position: absolute; top: 42px; right: 0; width: 275px; padding: 15px; background: var(--chrome); border: 1px solid var(--chrome-line); border-radius: 9px; box-shadow: 0 12px 32px #10182766; color: var(--chrome-text); line-height: 1.5; }
.customer-topbar .topbar-updates p { margin: 6px 0 0; color: var(--chrome-muted); }
.customer-topbar .topbar-account { display: inline-flex; align-items: center; gap: 7px; max-width: 165px; padding: 3px 7px; border-left: 1px solid var(--chrome-line); border-radius: 0; font-weight: 650; color: var(--chrome-muted); }
.customer-topbar #accountName { overflow: hidden; text-overflow: ellipsis; }
.customer-topbar .topbar-avatar { display: grid; place-items: center; flex: none; width: 27px; height: 27px; border-radius: 50%; background: #dbe4ed; color: #354a61; font-size: 13px; font-weight: 800; }
.customer-topbar #createButton { display: none; min-height: 34px; background: #377bdc; color: white; border-radius: 7px; padding: 7px 12px; }
.customer-topbar #createButton:hover:not(:disabled) { background: #508fe9; }
.customer-topbar :is(button,a,summary):focus-visible, .customer-rail :is(button,a):focus-visible { outline: 2px solid #8bb9ff; outline-offset: 2px; }

/* Libraries use a second, independently collapsible tool panel. */
.peer-library { grid-template-columns: 208px minmax(0, 1fr); }
.peer-folder-rail { background: var(--work-panel); border-color: var(--work-line); color: var(--work-text); padding: 16px 10px; }
.peer-rail-title { display: flex; justify-content: space-between; align-items: center; color: var(--work-muted); padding: 0 4px 8px; }
.peer-folder-toggle { display: grid; place-items: center; width: 28px; height: 28px; min-height: 28px !important; padding: 0 !important; background: var(--work-subtle) !important; color: var(--work-text) !important; border: 1px solid var(--work-line) !important; border-radius: 6px !important; font-size: 21px !important; line-height: 1 !important; }
.folders-collapsed .peer-folder-toggle { transform: rotate(180deg); }
.peer-library.folders-collapsed { grid-template-columns: 43px minmax(0, 1fr); }
.peer-library.folders-collapsed .peer-folder-rail { padding: 12px 6px; overflow: hidden; }
.peer-library.folders-collapsed .peer-rail-title { padding: 0; justify-content: center; }
.peer-library.folders-collapsed .peer-rail-title span,
.peer-library.folders-collapsed .peer-folder-rows,
.peer-library.folders-collapsed .peer-folder-form { display: none; }
.peer-folder-item { color: var(--work-text) !important; }
.peer-folder-item[aria-current="page"] { background: var(--work-subtle) !important; color: var(--work-text) !important; }
.peer-library-content { background: var(--work-bg); color: var(--work-text); padding: 16px 20px 32px; }
.peer-library-toolbar { border-color: var(--work-line); }
.peer-library-toolbar input[type="search"] { max-width: 440px; }
.peer-library-heading { margin: 16px 0 13px; }
.peer-library-heading h2 { color: var(--work-text); font: 650 19px Inter, -apple-system, sans-serif; }
.peer-library-heading span, .peer-library-count { color: var(--work-muted); }
.peer-library-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 270px)); gap: 14px; }
.peer-card { background: var(--work-panel); border-color: var(--work-line); box-shadow: none; }
.peer-card-info > strong, .peer-product-title, .peer-product-price { color: var(--work-text); }
.peer-card-info small { color: var(--work-muted); }
.peer-card-visual { background: var(--work-subtle); }
.peer-card-menu { background: var(--work-panel); border-color: var(--work-line); }
.peer-library-empty { border-color: var(--work-line); }
.storefront-editor { grid-template-columns: 208px minmax(0,1fr); }
.storefront-sections { background: var(--work-panel); border-color: var(--work-line); }
.storefront-sections button { color: var(--work-text); }
.storefront-sections button[aria-current="page"] { background: var(--work-subtle); color: var(--work-text); }
.storefront-sections-toggle { align-self: flex-end; display: grid; place-items: center; width: 28px; height: 28px; min-height: 28px !important; padding: 0 !important; border: 1px solid var(--work-line) !important; border-radius: 6px !important; background: var(--work-subtle) !important; font-size: 21px !important; }
.storefront-editor.sections-collapsed { grid-template-columns: 43px minmax(0,1fr); }
.storefront-editor.sections-collapsed .storefront-sections { padding: 12px 6px; }
.storefront-editor.sections-collapsed .storefront-sections button:not(.storefront-sections-toggle) { display: none; }
.storefront-editor.sections-collapsed .storefront-sections-toggle { align-self: center; }
.storefront-section { background: var(--work-bg); color: var(--work-text); }
.settings-workbench { grid-template-columns: 208px minmax(0,1fr); }
.settings-nav { background: var(--work-panel); border-color: var(--work-line); color: var(--work-text); }
.settings-nav button { color: var(--work-text); }
.settings-nav button[aria-current="page"] { background: var(--work-subtle); color: var(--work-text); }
.settings-nav-toggle { align-self: flex-end; display: grid; place-items: center; width: 28px; height: 28px; min-height: 28px !important; padding: 0 !important; border: 1px solid var(--work-line) !important; border-radius: 6px !important; background: var(--work-subtle) !important; font-size: 21px !important; }
.settings-workbench.sections-collapsed { grid-template-columns: 43px minmax(0,1fr); }
.settings-workbench.sections-collapsed .settings-nav { padding: 12px 6px; }
.settings-workbench.sections-collapsed .settings-nav button:not(.settings-nav-toggle) { display: none; }
.settings-workbench.sections-collapsed .settings-nav-toggle { align-self: center; }
.settings-content, .analytics-workbench { background: var(--work-bg); color: var(--work-text); }
.settings-content h2, .analytics-workbench h2 { color: var(--work-text); font: 650 21px Inter, -apple-system, sans-serif; }
.settings-card { background: var(--work-panel); border-color: var(--work-line); color: var(--work-text); }
.settings-card h3 { color: var(--work-text); }
.settings-card :is(.fact,.fact-row) { border-color: var(--work-line); color: var(--work-text); }
.settings-card :is(.fact,.fact-row) span, .analytics-cards small { color: var(--work-muted); }
.settings-card :is(.fact,.fact-row) strong { color: var(--work-text); }
body[data-theme="dark"] .house-surface a { color: #a8c8ff; }

/* Shared content palette. Product and store previews retain their own artwork colors. */
.house-surface { --house-paper: var(--work-bg); --house-surface: var(--work-panel); --house-ink: var(--work-text); --house-muted: var(--work-muted); --house-line: var(--work-line); --house-rule: var(--work-line); --house-band: var(--work-subtle); --house-forest: var(--work-text); --house-accent: var(--work-action); --bg: var(--work-bg); --panel: var(--work-panel); --deep: var(--work-subtle); --text: var(--work-text); --muted: var(--work-muted); --line: var(--work-line); --mint: var(--work-action); background: var(--work-bg); color: var(--work-text); color-scheme: inherit; }
.house-surface { --surface: var(--work-panel); --border: var(--work-line); }
.custom-mockup-tools { max-width: 780px; margin: 16px 22px; padding: 16px; border-radius: 10px; background: var(--work-panel); border-color: var(--work-line); color: var(--work-text); }
.custom-mockup-tools > h2 { color: var(--work-text); font: 650 18px Inter, -apple-system, sans-serif; }
.custom-mockup-tools > p, .custom-mockup-advanced { color: var(--work-muted); }
.custom-mockup-tools input[type="file"] { width: min(100%, 470px); }
.house-surface :is(input,select,textarea) { background: var(--work-panel); border-color: var(--work-line); color: var(--work-text); }
.house-surface :is(input,textarea)::placeholder { color: var(--work-muted); }
.house-surface button.secondary { color: var(--work-text); box-shadow: inset 0 0 0 1px var(--work-line); }
.house-surface button.primary, .house-surface a.primary { background: var(--work-action); color: #fff; }
.house-surface button:hover:not(:disabled) { background: var(--work-subtle); }
.house-surface .surface-heading h1 { font: 650 23px Inter, -apple-system, sans-serif; color: var(--work-text); }
.house-surface .context-tabs, .house-surface .work-library, .house-surface .connection-picker { background: var(--work-panel); border-color: var(--work-line); }
.dream-history-heading h2 { color: var(--work-text); font: 650 19px Inter, -apple-system, sans-serif; }
.dream-history-heading small, .dream-history-info small, .dream-history-info p { color: var(--work-muted); }
.dream-history-card { background: var(--work-panel); border-color: var(--work-line); color: var(--work-text); }
.dream-history-image { background: var(--work-subtle); }
.house-surface .library-item, .house-surface .library-item strong, .house-surface .fact strong { color: var(--work-text); }
.house-surface .library-item small, .house-surface .fact span { color: var(--work-muted); }
.house-surface .library-item[aria-pressed="true"], .house-surface .context-tabs [aria-pressed="true"] { background: var(--work-subtle); color: var(--work-text); }
.home-dashboard { max-width: none; padding: 14px 22px 36px; }
.home-intro, .home-first-copy h3, .home-progress-card h3, .home-setup-copy h3, .home-path-card h3, .home-metric-card h3, .home-recent h3, .home-revenue { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.home-intro { color: var(--work-text); font-size: 25px; font-weight: 700; }
.home-first-copy h3 { color: var(--work-text); font-size: 20px; font-weight: 680; }
.home-setup-copy h3, .home-path-card h3, .home-metric-card h3, .home-recent h3 { color: var(--work-text); font-size: 17px; font-weight: 650; }
.home-revenue { color: var(--work-text); font-size: 30px; font-weight: 700; }
.home-first-card, .home-progress-card, .home-metric-card, .home-recent, .home-setup-card, .home-path-card { background: var(--work-panel); border-color: var(--work-line); box-shadow: none; color: var(--work-text); }
.home-setup-card { margin: 12px 0; }
.home-first-copy p, .home-setup-summary, .home-path-card p, .home-metric-card small, .home-recent-row small, .home-eyebrow, .home-storage-number { color: var(--work-muted); }
.home-top-row, .home-recent-row, .home-setup-panel { border-color: var(--work-line) !important; }
.home-recent-row { color: var(--work-text) !important; }
.home-setup-optional summary { color: var(--work-text); }

body[data-theme="dark"] .house-surface :is(.home-first-card,.home-metric-card,.home-recent,.reference-product-card,.reference-mockup-card,.storefront-card,.storefront-new,.storefront-section,.storefront-sections,.collection-library-tile,.collection-order-header,.collection-purchase-summary,.collection-task-pane,.customer-inspector,.house-placement,.product-toolbar,.product-steps,.billing-current,.billing-plan,.account-card,.empty-state,.sale-tool,.peer-library-empty) { background-color: var(--work-panel); border-color: var(--work-line); color: var(--work-text); }
body[data-theme="dark"] .house-surface :is(.home-metric-card h3,.home-recent h3,.home-revenue,.home-recent-row,.storefront-section h2,.storefront-card h2,.storefront-new h2,.reference-product-title,.reference-mockup-card h2,.collection-purchase-title,.collection-task-title,.peer-library-heading h2) { color: var(--work-text) !important; }
body[data-theme="dark"] .house-surface :is(.home-metric-card small,.home-recent-row small,.home-first-card p,.storefront-card p,.inspector-note,.collection-task-intro,.collection-order-status,.collection-source-note,.collection-summary-label) { color: var(--work-muted) !important; }
body[data-theme="dark"] .house-surface :is(.home-top-row,.home-recent-row,.storage-breakdown-row,.collection-purchase-recipient,.collection-purchase-totals,.peer-library-toolbar) { border-color: var(--work-line) !important; }
body[data-theme="dark"] .house-surface :is(.house-product .customer-stage,.house-product .product-steps,.storefront-preview,.storefront-page-preview,.reference-product-visual,.reference-mockup-image,.collection-library-tile-visual) { background-color: var(--work-subtle); border-color: var(--work-line); }
body[data-theme="dark"] .house-surface :is(.state-tag,.batch-selection-bar,.connection-choice[aria-pressed="true"],.storefront-sections button[aria-current="page"],.peer-library-toolbar > button[aria-pressed="true"]) { background: var(--work-subtle) !important; color: var(--work-text) !important; }
body[data-theme="dark"] :is(.collection-library,.collection-fulfillment,.storefront-editor,.customer-body main:not(.house-surface)) { color: var(--work-text); }

@media (max-width: 1100px) and (min-width: 761px) {
  .customer-topbar { gap: 5px; padding-inline: 10px; }
  .customer-topbar .topbar-help { display: none; }
  .customer-topbar .topbar-updates { display: none; }
  .customer-topbar .topbar-search { width: clamp(145px, 22vw, 260px); }
  .customer-topbar .topbar-credits { display: none; }
  .customer-topbar #accountName { max-width: 85px; }
}
@media (max-width: 760px) {
  .customer-body { grid-template-rows: 52px auto minmax(0,1fr); }
  .customer-topbar { height: 52px; gap: 5px; padding-inline: 8px; }
  .customer-topbar .topbar-rail-toggle, .customer-topbar .topbar-search, .customer-topbar .topbar-credits, .customer-topbar .topbar-help, .customer-topbar #activityButton { display: none; }
  .customer-topbar .topbar-updates { display: none; }
  .customer-topbar .topbar-store-picker summary { width: 108px; }
  .customer-topbar .topbar-plan { margin-left: auto; font-size: 11px; }
  .customer-topbar .topbar-utilities { gap: 2px; padding-left: 2px; border: 0; }
  .customer-topbar #settingsButton { display: inline-flex; padding: 3px; border: 0; }
  .customer-topbar #accountName, .customer-topbar .topbar-account .topbar-caret { display: none; }
  .customer-topbar #createButton { display: inline-flex; align-items: center; padding-inline: 8px; font-size: 11px; }
  .customer-rail { background: var(--chrome); }
  .peer-library.folders-collapsed { display: flex; }
  .peer-library.folders-collapsed .peer-folder-rail { padding: 8px 12px; }
  .peer-library.folders-collapsed .peer-rail-title { justify-content: flex-start; }
  .peer-library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .storefront-editor, .storefront-editor.sections-collapsed { grid-template-columns: 1fr; grid-template-rows: auto minmax(0,1fr); }
  .storefront-sections { flex-direction: row; padding: 8px; }
  .storefront-editor.sections-collapsed .storefront-sections { padding: 8px; }
  .settings-workbench, .settings-workbench.sections-collapsed { grid-template-columns: 1fr; grid-template-rows: auto minmax(0,1fr); }
  .settings-nav { flex-direction: row; overflow: auto; padding: 8px; }
  .settings-workbench.sections-collapsed .settings-nav { padding: 8px; }
}
@media (max-width: 390px) {
  .customer-topbar .topbar-store-picker summary { width: 94px; padding-inline: 7px; }
}
@media (max-width: 360px) {
  .customer-topbar #createButton { display: none; }
}

/* =====================================================================
 * Workspace tokens, dialog chrome and shell refinement.
 * Architecture follows the MyDesigns shell inspection recorded in
 * docs/MYDESIGNS_APP_SHELL_2026-11-18.md. Values are Irie's own.
 * ===================================================================== */

/* Irie Designs workspace tokens.
 *
 * Three layers, mirroring the architecture observed in the MyDesigns customer
 * application (docs/MYDESIGNS_APP_SHELL_2026-11-18.md):
 *
 *   1. scales      - space, radius, type, elevation, motion, z-index
 *   2. theme       - semantic roles that screens actually reference
 *   3. aliases     - the older --work-* / --chrome-* names, mapped forward
 *
 * Screens should reference layer 2 only. Light and dark are a layer-2 swap;
 * no component defines its own colours.
 */

body {
  /* ---------------------------------------------------------------- scales */

  --iri-space-1: 0.25rem;
  --iri-space-2: 0.5rem;
  --iri-space-3: 0.75rem;
  --iri-space-4: 1rem;
  --iri-space-5: 1.5rem;
  --iri-space-6: 2rem;
  --iri-space-7: 3rem;

  --iri-radius-xs: 0.25rem;
  --iri-radius-sm: 0.375rem;
  --iri-radius-md: 0.5rem;
  --iri-radius-lg: 0.75rem;
  --iri-radius-xl: 1rem;
  --iri-radius-full: 999px;

  --iri-text-xs: 0.75rem;
  --iri-text-sm: 0.8125rem;
  --iri-text-base: 0.875rem;
  --iri-text-lg: 1rem;
  --iri-text-xl: 1.125rem;
  --iri-text-2xl: 1.375rem;

  --iri-leading-tight: 1.25;
  --iri-leading-normal: 1.5;

  --iri-shadow-xs: 0 1px 2px rgb(12 20 30 / 6%);
  --iri-shadow-sm: 0 1px 2px rgb(12 20 30 / 6%), 0 2px 8px -4px rgb(12 20 30 / 12%);
  --iri-shadow-md: 0 1px 3px rgb(12 20 30 / 8%), 0 8px 24px -12px rgb(12 20 30 / 18%);
  --iri-shadow-lg: 0 2px 4px rgb(12 20 30 / 8%), 0 18px 40px -18px rgb(12 20 30 / 24%);
  --iri-shadow-xl: 0 4px 8px rgb(12 20 30 / 10%), 0 32px 64px -24px rgb(12 20 30 / 32%);

  --iri-dur-fast: 0.16s;
  --iri-dur: 0.24s;
  --iri-ease: cubic-bezier(0.16, 1, 0.3, 1);

  --iri-z-sticky: 40;
  --iri-z-overlay: 80;
  --iri-z-modal: 90;
  --iri-z-menu: 100;
  --iri-z-toast: 110;

  /* ------------------------------------------------------- theme (light) */

  /* Surfaces derive from the existing --work-* set so screens keep their
   * current appearance. New roles below are the ones nothing defines yet. */
  --base-bg: var(--work-bg);
  --base-surface: var(--work-panel);
  --base-elevated: var(--work-panel);
  --base-subtle: var(--work-subtle);
  --base-field: var(--work-subtle);

  --base-border: var(--work-line);
  --base-border-strong: color-mix(in srgb, var(--work-line) 65%, var(--work-text));

  --base-text: var(--work-text);
  --base-text-muted: var(--work-muted);
  --base-text-subtle: color-mix(in srgb, var(--work-muted) 75%, transparent);

  --base-hover: rgb(16 32 48 / 5%);
  --base-active: rgb(16 32 48 / 9%);
  --base-selected: rgb(39 105 216 / 10%);
  --base-overlay: rgb(12 20 30 / 55%);

  --brand: #2769d8;
  --brand-strong: #1d55b8;
  --brand-fill: #2769d8;
  --brand-fill-hover: #1d55b8;
  --brand-soft: rgb(39 105 216 / 12%);
  --brand-border: rgb(39 105 216 / 35%);
  --brand-text: #1d55b8;
  --brand-contrast: #ffffff;

  --danger: #c62828;
  --danger-soft: rgb(198 40 40 / 10%);
  --danger-border: rgb(198 40 40 / 32%);
  --success: #1b7f4b;
  --success-soft: rgb(27 127 75 / 10%);
  --success-border: rgb(27 127 75 / 30%);
  --warning: #9a6200;
  --warning-soft: rgb(154 98 0 / 12%);
  --warning-border: rgb(154 98 0 / 32%);

  --focus-ring: 0 0 0 3px rgb(39 105 216 / 35%);

  /* --------------------------------------------------------- aliases */

  --bg: var(--base-bg);
  --panel: var(--base-surface);
  --deep: var(--base-subtle);
  --line: var(--base-border);
  --text: var(--base-text);
  --muted: var(--base-text-muted);
  --mint: var(--brand);

  /* --work-* stays owned by the shell above; --base-* derives from it. */
}

body[data-theme="dark"] {
  --base-hover: rgb(255 255 255 / 6%);
  --base-active: rgb(255 255 255 / 10%);
  --base-selected: rgb(106 169 255 / 16%);
  --base-overlay: rgb(4 8 14 / 72%);

  --brand: #6aa9ff;
  --brand-strong: #8dbcff;
  --brand-fill: #2f6fd0;
  --brand-fill-hover: #3b7de0;
  --brand-soft: rgb(106 169 255 / 16%);
  --brand-border: rgb(106 169 255 / 38%);
  --brand-text: #8dbcff;
  --brand-contrast: #0b1520;

  --danger: #ff8a8a;
  --danger-soft: rgb(255 138 138 / 14%);
  --danger-border: rgb(255 138 138 / 34%);
  --success: #6fd39b;
  --success-soft: rgb(111 211 155 / 14%);
  --success-border: rgb(111 211 155 / 32%);
  --warning: #f0c070;
  --warning-soft: rgb(240 192 112 / 14%);
  --warning-border: rgb(240 192 112 / 34%);

  --focus-ring: 0 0 0 3px rgb(106 169 255 / 40%);

  --iri-shadow-xs: 0 1px 2px rgb(0 0 0 / 30%);
  --iri-shadow-sm: 0 1px 2px rgb(0 0 0 / 30%), 0 2px 8px -4px rgb(0 0 0 / 40%);
  --iri-shadow-md: 0 1px 3px rgb(0 0 0 / 34%), 0 10px 26px -14px rgb(0 0 0 / 55%);
  --iri-shadow-lg: 0 2px 4px rgb(0 0 0 / 34%), 0 22px 48px -20px rgb(0 0 0 / 65%);
  --iri-shadow-xl: 0 4px 10px rgb(0 0 0 / 40%), 0 36px 72px -28px rgb(0 0 0 / 75%);
}

/* Irie Designs dialog chrome.
 *
 * Every standard workspace dialog is the single <dialog id="customerDialog">
 * element, opened with showModal(). Native dialog already supplies the top-layer
 * stack, Escape handling and focus trapping; this file supplies the presentation
 * contract: a header strip, a scrolling body and a footer of actions.
 *
 * The shape follows the modal contract observed in the MyDesigns customer
 * application (docs/MYDESIGNS_APP_SHELL_2026-11-18.md). Values come from
 * customer-tokens.css.
 */

.iri-dialog {
  width: min(31.25rem, calc(100vw - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--base-border);
  border-radius: var(--iri-radius-lg);
  background: var(--base-surface);
  color: var(--base-text);
  box-shadow: var(--iri-shadow-xl);
  animation: iri-dialog-in var(--iri-dur) var(--iri-ease);
}

.iri-dialog[open] {
  display: flex;
}

.iri-dialog::backdrop {
  background: var(--base-overlay);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* Header ------------------------------------------------------------------ */

.iri-dialog > h2 {
  flex: 0 0 auto;
  margin: 0;
  padding: var(--iri-space-3) var(--iri-space-4);
  border-bottom: 1px solid var(--base-border);
  background: var(--base-bg);
  font-size: var(--iri-text-xl);
  font-weight: 600;
  line-height: var(--iri-leading-tight);
  letter-spacing: -0.01em;
}

/* Intro description ------------------------------------------------------- */

.iri-dialog > p {
  flex: 0 0 auto;
  margin: 0;
  padding: var(--iri-space-4) var(--iri-space-4) 0;
  font-size: var(--iri-text-base);
  line-height: var(--iri-leading-normal);
  color: var(--base-text-muted);
}

/* Body -------------------------------------------------------------------- */

.iri-dialog > form {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: var(--iri-space-3);
  min-height: 0;
  overflow-y: auto;
  padding: var(--iri-space-4);
}

/* Footer ------------------------------------------------------------------ */

.iri-dialog .dialog-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--iri-space-2);
  margin-top: var(--iri-space-1);
  padding-top: var(--iri-space-3);
  border-top: 1px solid var(--base-border);
}

.iri-dialog .dialog-error {
  margin: 0;
  min-height: 0;
  font-size: var(--iri-text-sm);
  line-height: var(--iri-leading-normal);
  color: var(--danger);
}

/* Specialised editors keep their internal layout but share the dialog chrome,
 * so every dialog in the app presents the same title strip and action row. */

.iri-dialog.svg-object-dialog,
.iri-dialog.svg-color-dialog,
.iri-dialog.sample-picker-dialog {
  overflow: auto;
  padding: var(--iri-space-4);
}

.iri-dialog.svg-object-dialog > h2,
.iri-dialog.svg-color-dialog > h2,
.iri-dialog.sample-picker-dialog > h2 {
  margin: 0 0 var(--iri-space-3);
  padding: 0 0 var(--iri-space-3);
  border-bottom: 1px solid var(--base-border);
  background: transparent;
  font-size: var(--iri-text-xl);
}

/* Phone ------------------------------------------------------------------- */

@media (max-width: 760px) {
  .iri-dialog {
    width: calc(100vw - 1rem);
    max-height: calc(100dvh - 1rem);
  }

  .iri-dialog > h2 {
    padding: var(--iri-space-3);
  }

  .iri-dialog > form {
    padding: var(--iri-space-3);
  }

  .iri-dialog .dialog-actions {
    position: sticky;
    bottom: calc(var(--iri-space-3) * -1);
    margin-top: var(--iri-space-2);
    padding: var(--iri-space-3) 0;
    background: var(--base-surface);
  }

  .iri-dialog .dialog-actions > * {
    flex: 1 1 auto;
  }
}

/* Motion ------------------------------------------------------------------ */

@keyframes iri-dialog-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .iri-dialog {
    animation: none;
  }
}

/* Irie Designs shell refinement.
 *
 * customer-workspace.css defines the application shell with hardcoded values.
 * This file keeps that layout and replaces the ad-hoc radii, hover colours and
 * focus treatments with the token layer, so chrome, dialogs and future surfaces
 * share one visual language.
 *
 * Loaded after customer-workspace.css on purpose: these rules are overrides of
 * equal specificity, not a new layout.
 */

/* Rail -------------------------------------------------------------------- */

.customer-rail {
  background: var(--chrome);
  color: var(--chrome-text);
  border-color: var(--chrome-line);
}

.customer-rail nav {
  gap: 1px;
}

.customer-rail nav .rail-group-label {
  padding: var(--iri-space-4) var(--iri-space-3) var(--iri-space-1);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--chrome-muted);
}

.customer-rail nav button {
  position: relative;
  border-radius: var(--iri-radius-md);
  font-size: var(--iri-text-sm);
  min-height: 36px;
  padding: 0 var(--iri-space-3);
  color: var(--chrome-muted);
  transition: background-color var(--iri-dur-fast) var(--iri-ease),
    color var(--iri-dur-fast) var(--iri-ease);
}

.customer-rail nav button:hover:not(.active) {
  color: var(--chrome-text);
  background: color-mix(in srgb, var(--chrome-text) 10%, transparent);
}

.customer-rail nav button.active {
  color: var(--chrome-text);
  background: color-mix(in srgb, var(--chrome-accent) 22%, transparent);
  font-weight: 650;
}

.customer-rail nav button.active::before {
  content: "";
  position: absolute;
  inset-block: 8px;
  inset-inline-start: 0;
  width: 3px;
  border-radius: var(--iri-radius-full);
  background: var(--chrome-accent);
}

.customer-rail nav button svg {
  width: 17px;
  height: 17px;
}

/* Top bar ----------------------------------------------------------------- */

.customer-topbar {
  gap: var(--iri-space-2);
  padding: 0 var(--iri-space-3);
  background: var(--chrome);
  color: var(--chrome-text);
  border-color: var(--chrome-line);
}

.customer-topbar button:hover:not(:disabled) {
  background: color-mix(in srgb, var(--chrome-text) 12%, transparent);
}

.customer-topbar .topbar-rail-toggle {
  border-radius: var(--iri-radius-md);
}

.customer-topbar .topbar-store-picker summary,
.customer-topbar .topbar-search,
.customer-topbar .topbar-icon,
.customer-topbar .topbar-plan,
.customer-topbar .topbar-credits,
.customer-topbar .topbar-updates summary,
.customer-topbar #createButton {
  border-radius: var(--iri-radius-md);
}

.customer-topbar .topbar-store-picker summary,
.customer-topbar .topbar-search {
  background: var(--chrome-deep);
  border-color: var(--chrome-line);
}

.customer-topbar .topbar-search:focus-within {
  border-color: var(--chrome-accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--chrome-accent) 32%, transparent);
}

.customer-topbar .topbar-store-menu,
.customer-topbar .topbar-updates > div {
  border-radius: var(--iri-radius-lg);
  border-color: var(--chrome-line);
  background: var(--chrome-deep);
  box-shadow: var(--iri-shadow-lg);
}

.customer-topbar .topbar-plan {
  background: var(--brand-fill);
  color: #fff;
  font-weight: 650;
}

.customer-topbar .topbar-plan:hover:not(:disabled) {
  background: var(--brand-fill-hover);
}

.customer-topbar .topbar-credits {
  background: color-mix(in srgb, var(--chrome-accent) 18%, transparent);
  color: var(--chrome-text);
}

.customer-topbar .topbar-updates summary {
  background: color-mix(in srgb, var(--chrome-accent) 14%, transparent);
  color: var(--chrome-text);
}

.customer-topbar .topbar-utilities {
  gap: var(--iri-space-1);
  padding-left: var(--iri-space-2);
  border-left-color: var(--chrome-line);
}

.customer-topbar #createButton {
  background: var(--brand-fill);
  color: #fff;
}

.customer-topbar #createButton:hover:not(:disabled) {
  background: var(--brand-fill-hover);
}

/* One focus treatment for the whole shell. -------------------------------- */

.customer-topbar :is(button, a, summary):focus-visible,
.customer-rail :is(button, a):focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--iri-radius-md);
}

/* Shared controls --------------------------------------------------------- */

.customer-shell button.primary,
.customer-shell button.secondary,
.customer-shell a.primary {
  border-radius: var(--iri-radius-md);
}

.customer-shell button.primary {
  background: var(--brand-fill);
  color: #fff;
}

.customer-shell button.primary:hover:not(:disabled) {
  background: var(--brand-fill-hover);
}

.customer-shell :is(button, a, summary, input, textarea, select):focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* ---------------------------------------------------------------------------
 * Shared component craft.
 *
 * The five surface stylesheets each styled their own controls. These rules give
 * cards, fields and secondary actions one consistent radius, border, elevation
 * and focus treatment, using the token layer above. Values only; no layout.
 * ------------------------------------------------------------------------- */

/* Fields ------------------------------------------------------------------ */

.customer-shell :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]), select, textarea) {
  border-radius: var(--iri-radius-md);
  border-color: var(--base-border);
  background: var(--base-field);
  transition: border-color var(--iri-dur-fast) var(--iri-ease),
    box-shadow var(--iri-dur-fast) var(--iri-ease);
}

.customer-shell :is(input, select, textarea):hover:not(:disabled):not(:focus) {
  border-color: var(--base-border-strong);
}

.customer-shell :is(input, select, textarea):focus-visible {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--focus-ring);
}

/* Secondary actions ------------------------------------------------------- */

.customer-shell button.secondary,
.customer-shell a.secondary {
  border-radius: var(--iri-radius-md);
  border: 1px solid var(--base-border);
  background: var(--base-surface);
  color: var(--base-text);
  transition: background-color var(--iri-dur-fast) var(--iri-ease),
    border-color var(--iri-dur-fast) var(--iri-ease);
}

.customer-shell button.secondary:hover:not(:disabled) {
  background: var(--base-hover);
  border-color: var(--base-border-strong);
}

/* Cards and panels -------------------------------------------------------- */

.customer-shell :is(.peer-card, .generation-output-card, .connection-picker, .new-work-tools, .scout-results, .peer-library-empty) {
  border: 1px solid var(--base-border);
  border-radius: var(--iri-radius-lg);
  background: var(--base-surface);
  box-shadow: var(--iri-shadow-xs);
  transition: box-shadow var(--iri-dur) var(--iri-ease),
    border-color var(--iri-dur) var(--iri-ease);
}

.customer-shell :is(.peer-card, .generation-output-card, .connection-picker):hover {
  border-color: var(--base-border-strong);
  box-shadow: var(--iri-shadow-md);
}

.customer-shell .peer-card-visual {
  border-radius: var(--iri-radius-md);
  background: var(--base-subtle);
}

/* Card metadata ----------------------------------------------------------- */

.customer-shell .peer-card-info small {
  font-size: var(--iri-text-sm);
  color: var(--base-text-muted);
}

.customer-shell :is(.peer-card-info > strong, .peer-product-title) {
  font-weight: 650;
  letter-spacing: -0.005em;
}

/* Popovers and menus ------------------------------------------------------ */

.customer-shell :is(.peer-card-menu, .topbar-store-menu) {
  border-radius: var(--iri-radius-lg);
  box-shadow: var(--iri-shadow-lg);
}

.customer-shell .peer-card-menu button,
.customer-shell .peer-card-menu a {
  border-radius: var(--iri-radius-sm);
}

/* Rail storage meter ------------------------------------------------------ */

.rail-storage {
  display: flex;
  flex-direction: column;
  gap: var(--iri-space-1);
  padding: var(--iri-space-3);
  border-top: 1px solid var(--chrome-line);
  color: var(--chrome-muted);
}

.rail-storage-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--iri-space-2);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rail-storage-head strong {
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
  color: var(--chrome-text);
  font-variant-numeric: tabular-nums;
}

.rail-storage progress {
  width: 100%;
  height: 5px;
  appearance: none;
  border: 0;
  border-radius: var(--iri-radius-full);
  background: color-mix(in srgb, var(--chrome-text) 18%, transparent);
  overflow: hidden;
}

.rail-storage progress::-webkit-progress-bar {
  background: transparent;
}

.rail-storage progress::-webkit-progress-value,
.rail-storage progress::-moz-progress-bar {
  border-radius: var(--iri-radius-full);
  background: var(--chrome-accent);
}

.rail-storage button {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--chrome-accent);
  font-size: 0.6875rem;
  cursor: pointer;
}

.rail-storage button:hover {
  text-decoration: underline;
}

.rail-storage[data-state="error"] .rail-storage-head strong {
  color: var(--danger);
}

/* Design mockup showcase strip ------------------------------------------- */

.design-mockup-strip {
  margin-top: var(--iri-space-3);
  padding-top: var(--iri-space-2);
  border-top: 1px solid var(--base-border);
}

.design-mockup-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--iri-space-2);
  margin-bottom: var(--iri-space-1);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--base-text-muted);
}

.design-mockup-head small {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.design-mockup-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 3px;
}

.design-mockup-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  aspect-ratio: 1;
  min-height: 0;
  padding: 1px;
  border: 1px dashed var(--base-border);
  border-radius: var(--iri-radius-sm);
  background: var(--base-subtle);
  color: var(--base-text-muted);
  font-size: 0.5rem;
  line-height: 1.1;
  cursor: pointer;
  overflow: hidden;
}

.design-mockup-slot:hover:not(.is-video) {
  border-color: var(--brand);
  color: var(--brand);
}

.design-mockup-slot:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.design-mockup-slot.is-filled {
  padding: 0;
  border-style: solid;
  border-color: var(--base-border);
  background: var(--base-surface);
}

.design-mockup-slot.is-filled img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.design-mockup-slot.is-video {
  cursor: default;
  opacity: 0.65;
  text-align: center;
}

.design-mockup-empty {
  font-size: 0.8125rem;
  line-height: 1;
}

/* Fan-out dialog --------------------------------------------------------- */

.fanout-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--iri-space-2);
}

.fanout-label {
  flex: 0 0 100%;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--base-text-muted);
}

.fanout-option {
  display: inline-flex;
  align-items: center;
  gap: var(--iri-space-1);
  padding: var(--iri-space-1) var(--iri-space-2);
  border: 1px solid var(--base-border);
  border-radius: var(--iri-radius-sm);
  background: var(--base-field);
  font-size: var(--iri-text-sm);
  cursor: pointer;
}

.fanout-option:hover {
  border-color: var(--base-border-strong);
}

/* Affiliates ------------------------------------------------------------- */

.affiliate-panel {
  display: flex;
  flex-direction: column;
  gap: var(--iri-space-3);
  max-width: 40rem;
  padding: var(--iri-space-4);
  border: 1px solid var(--base-border);
  border-radius: var(--iri-radius-lg);
  background: var(--base-surface);
}

.affiliate-link {
  display: flex;
  gap: var(--iri-space-2);
}

.affiliate-link-input {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--iri-text-sm);
}

.affiliate-count {
  margin: 0;
  font-weight: 600;
}

/* Mockup showcase -------------------------------------------------------- */

.iri-dialog.is-showcase {
  width: min(60rem, calc(100vw - 2rem));
}

.iri-dialog.is-showcase > h2 {
  display: none;
}

.showcase-stage {
  display: flex;
  flex-direction: column;
  gap: var(--iri-space-2);
  margin: 0;
}

.showcase-image {
  width: 100%;
  max-height: 58vh;
  object-fit: contain;
  border-radius: var(--iri-radius-md);
  background: var(--base-subtle);
}

.showcase-caption {
  font-size: var(--iri-text-sm);
  color: var(--base-text-muted);
  text-transform: capitalize;
}

.showcase-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--iri-space-3);
}

.showcase-count {
  font-size: var(--iri-text-sm);
  color: var(--base-text-muted);
  font-variant-numeric: tabular-nums;
}

/* Showcase launcher ------------------------------------------------------ */

.design-showcase {
  margin-top: var(--iri-space-3);
  padding-top: var(--iri-space-2);
  border-top: 1px solid var(--base-border);
}

.design-showcase-button {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--iri-space-2);
  width: 100%;
  padding: var(--iri-space-2) var(--iri-space-3);
  border: 1px solid var(--base-border);
  border-radius: var(--iri-radius-md);
  background: var(--base-subtle);
  color: var(--base-text);
  font-size: var(--iri-text-sm);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.design-showcase-button:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.design-showcase-button small {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--base-text-muted);
}
