/* Product density for the workspace behind the Project Folio. */
[data-design-mode="dashboard"] {
  --canvas: #fafaf8;
  --paper: #fff;
  --studio: #e8e8e4;
  --ink: #18181b;
  --muted: #62665c;
  --line: #d4d4d0;
  --edge: #858580;
  --olive: #505c41;
  background: var(--studio);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  .dashboard-topbar { display: grid; grid-template-columns: 216px minmax(180px, 1fr) auto; align-items: center; gap: 24px; min-height: 72px; padding: 12px 24px; border-bottom: 1px solid var(--line); }
  .dashboard-wordmark { font-size: 23px; font-weight: 600; letter-spacing: -.06em; }
  .dashboard-sidebar { background: var(--studio); }
  .dashboard-main { background: var(--canvas); border-left: 1px solid var(--line); }
  .dashboard-content { padding: 24px; }
  .sidebar-nav-link { align-items: center; min-height: 44px; color: #52525b; padding: 10px 12px; }
  .sidebar-nav-link.is-active { background: #f5f5f1; color: var(--ink); box-shadow: inset 2px 0 var(--olive); }
  .sidebar-nav-link:hover { background: #f5f5f1; }
  aside[data-sidebar-target="container"] { transition: width 400ms cubic-bezier(.4, 0, .2, 1); }
  .page-title { font-size: 28px; line-height: 1.2; font-weight: 500; letter-spacing: -.025em; overflow-wrap: anywhere; }
  h2, h3 { letter-spacing: -.015em; }
  .eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
  .workspace-section { padding-block: 24px; border-bottom: 1px solid var(--line); }
  .dashboard-content > .space-y-5 > .workspace-section:first-child { padding-top: 8px; }
  .workspace-section .workspace-section { padding: 20px 0; }
  .workspace-metric { padding: 20px 0; border-bottom: 1px solid var(--line); }
  .workspace-metric p:nth-child(2) { margin-top: 8px; font-size: 24px; font-weight: 500; }
  .dashboard-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 12px 24px; }
  .dashboard-overview { width: 100%; max-width: 1280px; margin-inline: auto; }
  .overview-surface { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
  .overview-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
  .overview-metrics > div { min-width: 0; padding: 24px; }
  .overview-metrics > div + div { border-left: 1px solid var(--line); }
  .overview-metrics dt { color: var(--muted); font-size: 13px; }
  .overview-metrics dd { font-size: 24px; margin-top: 4px; letter-spacing: -.025em; }
  .overview-columns { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 24px; padding-block: 32px; }
  .recent-project { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; }
  .recent-project + .recent-project { margin-top: 20px; border-top: 1px solid var(--line); }
  .recent-project-name { font-weight: 500; font-size: 16px; overflow-wrap: anywhere; }
  .form-page { max-width: 720px; width: 100%; }
  .form-sections { display: grid; gap: 24px; }
  .form-section { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
  .form-control, input:not([type="checkbox"], [type="radio"], [type="file"], [type="hidden"], [type="submit"], [type="color"]), textarea, select {
    min-height: 44px; border: 1px solid var(--edge); border-radius: 8px; background: var(--paper); padding: 10px 12px; color: var(--ink); font-size: 16px; line-height: 1.5; box-shadow: none;
  }
  textarea { min-height: 128px; resize: vertical; }
  input::placeholder, textarea::placeholder { color: #71716b; }
  input[type="checkbox"] { accent-color: var(--ink); width: 20px; height: 20px; }
  label:has(input[type="checkbox"]) { min-height: 44px; }
  .field_with_errors input, .field_with_errors select, .field_with_errors textarea { border-color: #b91c1c; }
  :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; box-shadow: none; }
  label:has(> input.sr-only:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
  .btn { min-height: 44px; justify-content: center; gap: 4px; border-radius: 999px; padding: 10px 16px; line-height: 1.4; box-shadow: none; backdrop-filter: none; transform: none; transition: color 160ms, background-color 160ms, border-color 160ms; }
  .btn:hover { transform: none; box-shadow: none; }
  .btn--primary { background: var(--ink); color: var(--canvas); border: 1px solid var(--ink); }
  .btn--primary:hover { background: #343630; }
  .btn--secondary { background: transparent; border: 1px solid var(--line); color: var(--ink); }
  .btn--secondary:hover { background: var(--studio); border-color: var(--edge); }
  .btn--quiet { background: transparent; color: #52525b; border: 1px solid transparent; }
  .btn--quiet:hover { background: var(--studio); color: var(--ink); }
  .btn--danger { background: transparent; color: #b91c1c; border: 1px solid var(--line); }
  .btn--danger:hover { background: #fef2f2; border-color: #b91c1c; }
  .btn:disabled, button:disabled { color: #62665c; background: var(--studio); cursor: not-allowed; }
  .icon-button, button:has(> svg):not(:has(> span:not(.sr-only))), .account-menu-button { min-width: 44px; min-height: 44px; }
  .status-badge { background: transparent; color: #52525b; border: 0; border-radius: 0; padding: 0; font-size: 12px; box-shadow: none; backdrop-filter: none; }
  .unread-marker { display: inline-flex; align-items: center; gap: 6px; color: var(--olive); font-size: 12px; font-weight: 500; }
  .unread-marker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--olive); }
  el-menu, el-popover { max-height: calc(100dvh - 32px); overflow-y: auto; max-width: calc(100vw - 32px); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgb(24 24 27 / .12); z-index: 60; }
  :is(el-menu, el-popover) :is(a, button) { min-height: 44px; }
  el-dialog-panel { border-radius: 12px; box-shadow: 0 8px 24px rgb(24 24 27 / .12); }
  .workspace-switcher-button { background: transparent; border: 0; border-radius: 6px; }
  .dashboard-search input { padding-left: 40px; background: #f5f5f1; border-color: #aaa9a2; }
  [data-dashboard-search-target="panel"] { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgb(24 24 27 / .12); }
  nav[aria-label="Breadcrumb"] { position: static; background: transparent; margin: 0 0 12px; padding: 0; }
  nav[aria-label="Breadcrumb"] ol { flex-wrap: wrap; row-gap: 8px; }
  nav[aria-label="Breadcrumb"] a, nav[aria-label="Back"] a { font-size: 12px; }
  nav[aria-label="Back"] { position: static; background: transparent; margin-bottom: 12px; }
  nav[aria-label="Back"]:not(:has(a)) { display: none; }
  .project-workspace { display: grid; grid-template-columns: 220px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 20px; min-height: 0; flex: 1; }
  .project-assets-workspace { grid-column: 2; grid-row: 1 / 3; }
  .project-setup-tips { grid-column: 1; grid-row: 2; padding-right: 16px; }
  .project-setup-tips .context-tips { margin: 0; font-size: 12px; border-bottom: 0; }
  .project-setup-tips .context-tips summary { padding-inline: 0; }
  .project-setup-tips .context-tips ul { max-height: min(240px, 40dvh); overflow-y: auto; padding-inline: 16px 4px; }
  .project-rail { min-width: 0; display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); padding-right: 16px; }
  .project-rail-heading { display: flex; flex-direction: column; gap: 16px; padding-block: 8px 20px; }
  .project-list { display: flex; flex-direction: column; gap: 4px; min-height: 0; overflow-y: auto; padding: 4px; margin-left: -4px; }
  .project-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 6px; min-height: 80px; }
  .project-row:hover { background: var(--studio); }
  .project-thumbnail { width: 44px; height: 52px; flex-shrink: 0; background: var(--studio); overflow: hidden; border-radius: 2px; color: var(--muted); }
  .project-row h2 { font-size: 14px; line-height: 1.5; font-weight: 500; overflow-wrap: anywhere; }
  .dashboard-project-selected { background: #eaece3; box-shadow: inset 2px 0 var(--olive); border-radius: 6px; }
  .dashboard-search-highlight { box-shadow: inset 0 0 0 2px var(--ink); }
  .dashboard-dnd-highlight { background: #eaece3; box-shadow: inset 0 0 0 2px var(--olive); }
  .asset-workspace { display: flex; flex-direction: column; height: 100%; min-height: 0; }
  .asset-toolbar { display: flex; flex-direction: column; gap: 16px; padding: 8px 0 20px; border-bottom: 1px solid var(--line); }
  .asset-toolbar h2 { overflow-wrap: anywhere; }
  .asset-grid { grid-template-columns: repeat(auto-fill,minmax(210px,1fr)); padding: 16px 4px; border-radius: 8px; min-height: 240px; }
  .asset-card { border: 1px solid var(--line); background: var(--paper); border-radius: 8px; box-shadow: none; }
  .asset-card.asset-is-dragging { opacity: .45; border-color: var(--olive); }
  .asset-settings-button { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); cursor: pointer; }
  .asset-settings-button:hover { background: var(--studio); }
  .asset-settings-panel { display: flex; flex-direction: column; max-height: calc(100dvh - 32px); overflow: hidden; }
  .asset-settings-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  .asset-settings-actions { display: flex; flex-wrap: wrap; gap: 8px; }
  .asset-card h3 { display: -webkit-box; height: 3lh; overflow: hidden; overflow-wrap: anywhere; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
  .asset-card .status-badge { background: var(--paper); padding: 4px 8px; border-radius: 4px; }
  .asset-kind-icon { color: var(--muted); }
  #project_review_link_warning { margin: 16px 0 0; border-radius: 6px; background: #f5f3ea; border-color: #d8d2ba; color: #65532c; font-size: 12px; line-height: 1.6; }
  #project_assets_empty_state { position: relative; min-height: 240px; grid-column: 1 / -1; }
  .upload-row { padding: 12px; border-bottom: 1px solid var(--line); background: var(--paper); }
  .upload-row[data-state="error"] { border-color: #b91c1c; color: #b91c1c; }
  .upload-row[data-state="error"] [data-upload-status] { color: #b91c1c; }
  progress { accent-color: var(--olive); }
  [data-controller="flash"] { background: var(--paper); border: 1px solid var(--line); backdrop-filter: none; box-shadow: 0 8px 24px rgb(24 24 27 / .12); }
  [data-controller="flash"] button { min-height: 44px; min-width: 44px; margin: -10px; align-items: center; justify-content: center; }
  .storage-tiers { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 32px; }
  .storage-tier { border-top: 1px solid var(--line); padding: 24px; min-width: 0; }
  .storage-tier + .storage-tier { border-left: 1px solid var(--line); }
  .storage-tier[data-featured] { background: #eaece3; border-top: 2px solid var(--olive); }
  #pricing label { min-height: 44px; display: flex; align-items: center; justify-content: center; padding-inline: 16px; }
  .comment-content { max-width: 65ch; overflow-wrap: anywhere; }
  .preview-theme-option { min-height: 36px; }
  @media (max-width: 1199px) {
    .overview-columns { grid-template-columns: minmax(0, 1fr); }
    .project-workspace { grid-template-columns: minmax(0,1fr); grid-template-rows: auto; flex: none; }
    .project-assets-workspace, .project-setup-tips { grid-column: auto; grid-row: auto; }
    .project-setup-tips { padding-right: 0; }
    .project-rail { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; padding-bottom: 16px; }
    .project-rail-heading { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
    .project-list { flex-direction: row; overflow-x: auto; max-height: 160px; }
    .project-list > turbo-frame { width: 240px; flex-shrink: 0; }
    .project-row { height: 100%; }
  }
  @media (max-width: 767px) {
    .dashboard-topbar { grid-template-columns: minmax(0,1fr) auto; gap: 12px; padding: 8px 16px 12px; }
    .dashboard-search { grid-column: 1 / -1; grid-row: 2; }
    .workspace-switcher-button { max-width: 124px; padding-inline: 4px; }
    .workspace-switcher-button > svg:first-child, .workspace-switcher-button turbo-frame { display: none; }
    .workspace-switcher-button .truncate { font-size: 12px; }
    .dashboard-main { border-left: 0; }
    .dashboard-content { padding: 16px; }
    .dashboard-wordmark { font-size: 21px; }
    .page-title { font-size: 24px; }
    .overview-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .overview-metrics > div { padding: 20px; }
    .overview-metrics > div:nth-child(odd) { border-left: 0; }
    .overview-metrics > div:nth-child(n+3) { border-top: 1px solid var(--line); }
    .overview-columns { grid-template-columns: 1fr; gap: 24px; padding-block: 24px; }
    .recent-project { flex-direction: column; align-items: stretch; }
    .storage-tiers { grid-template-columns: 1fr; }
    .storage-tier { padding: 24px 16px; }
    .storage-tier + .storage-tier { border-left: 0; }
    .asset-grid { grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); }
    .asset-toolbar .btn { padding-inline: 12px; }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  }
  @media (max-width: 767px) {
    .account-menu-button { padding: 8px; }
    .account-menu-button > svg:last-child { display: none; }
    .dashboard-topbar > .flex:last-child { gap: 8px; }
  }
  .workspace-row { padding: 20px 0; border-bottom: 1px solid var(--line); }
  .workspace-row:hover { background: #f0f0eb; }
  .workspace-current { border-left: 2px solid var(--olive); padding-left: 16px; }
  .workspace-row .size-14 { width: 40px; height: 40px; border-radius: 50%; background: var(--studio); color: var(--ink); }
  .workspace-metric:first-child p:nth-child(2) { font-size: 16px; }
  .project-row h2 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  @media (max-width: 767px) {
    .project-rail-heading > .min-w-0 { flex: 1; }
    .project-rail-heading .page-title { white-space: nowrap; }
    .project-rail-heading .btn { padding-inline: 12px; }
    .project-rail-heading { gap: 12px; }
    .project-row { min-height: 96px; }
  }
  .preview-toolbar { display: grid; gap: 20px; padding-block: 8px 12px; border-bottom: 1px solid var(--line); }
  .preview-toolbar .page-title { font-size: 20px; line-height: 1.4; }
  .preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  .preview-navigation { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; gap: 8px; }
  .preview-navigation-buttons { display: flex; align-items: center; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
  .preview-navigation-hint { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 11px; white-space: nowrap; }
  .preview-navigation-hint kbd { padding: 0 4px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); font: inherit; }
  .preview-navigation-arrow { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 8px; font-size: 22px; cursor: pointer; transition: background-color 150ms; }
  .preview-navigation-arrow:hover:not(:disabled) { background: var(--studio); }
  .preview-navigation-arrow:disabled { color: var(--line); cursor: default; }
  .preview-navigation-count { min-width: 64px; padding-inline: 8px; text-align: center; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .preview-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
  .preview-background-options { display: flex; padding: 4px; border-radius: 10px; background: var(--studio); }
  .preview-background-options .preview-theme-option { border-radius: 7px; font-size: 12px; min-width: 48px; }
  .preview-background-options .preview-theme-option[data-preview-theme-active="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / .08); }
  .preview-file-actions { display: flex; align-items: center; gap: 8px; }
  .preview-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; font-weight: 500; white-space: nowrap; transition: background-color 150ms; }
  .preview-action:hover { background: var(--studio); }
  .preview-navigation-arrow:focus-visible, .preview-action:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; }
  @media (max-width: 639px) {
    .preview-heading { flex-direction: column; align-items: flex-start; gap: 16px; }
    .preview-controls { gap: 12px; }
    .preview-file-actions { width: 100%; }
    .preview-action { flex: 1; }
  }
  .preview-image { min-height: 0; }
  .preview-image img { max-height: 70dvh; width: auto; }
  [aria-invalid="true"] { border-color: #b91c1c; }
  .storage-heading p { max-width: 65ch; line-height: 1.6; margin-top: 8px; }
  .storage-tier > .mt-4 { min-height: 64px; }
  .form-section:last-child { border-bottom: 0; }
  .upload-row[data-state="error"] .upload-recovery { display: block; }
  .upload-row[data-state="error"] progress { accent-color: #b91c1c; }
  @media (min-width: 768px) and (max-width: 1023px) {
    .dashboard-topbar { grid-template-columns: 160px minmax(180px,1fr) auto; gap: 16px; }
  }
  @media (max-width: 374px) {
    .workspace-switcher-button { max-width: 84px; }
  }
}

/* Guidance stays close to the work and can be opened when needed. */
[data-design-mode="dashboard"] {
  .nav-description { display: block; color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.6; }
  .context-tips { flex-shrink: 0; margin-block: 12px; border-block: 1px solid var(--line); color: var(--muted); font-size: 13px; }
  .context-tips summary { cursor: pointer; min-height: 44px; padding: 12px 4px; color: var(--olive); font-weight: 500; }
  .context-tips[open] { padding-bottom: 16px; }
  .context-tips ul { list-style: disc; padding-inline: 24px 16px; display: grid; gap: 8px; max-width: 75ch; }
  .context-tips li { line-height: 1.7; }
  .guide-destinations { display: grid; }
  .guide-destinations a { display: grid; gap: 4px; border-bottom: 1px solid var(--line); padding: 16px 4px; }
  .guide-destinations a:hover { background: var(--canvas); }
  .guide-destinations strong { font-size: 14px; font-weight: 500; }
  .guide-destinations span { font-size: 13px; color: var(--muted); }
  .getting-started { margin-bottom: 24px; padding: 20px; background: #f0f1e9; border-left: 2px solid var(--olive); }
  .onboarding-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; margin-top: 16px; }
  .onboarding-steps li { display: flex; align-items: flex-start; gap: 12px; }
  .step-number { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 28px; height: 28px; border: 1px solid var(--edge); border-radius: 50%; color: var(--olive); font-size: 12px; }
  .step-link { display: inline-flex; min-height: 44px; align-items: center; margin-top: -8px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--edge); text-underline-offset: 4px; }
  .onboarding-steps p { font-size: 12px; line-height: 1.7; color: var(--muted); }
  .step-status { display: inline-block; margin-top: 8px; color: var(--olive); font-size: 12px; }
  .project-actions, .project-feedback-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .asset-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
  .asset-heading p { margin: 0; }
  .project-actions .btn { font-size: 13px; padding-inline: 12px; white-space: nowrap; }
  .project-feedback-actions { border-top: 1px solid var(--line); padding-top: 12px; }
  .asset-toolbar { gap: 12px; padding-bottom: 12px; }
  .asset-comment-link { display: flex; align-items: center; min-height: 44px; margin-top: 12px; margin-bottom: -12px; border-top: 1px solid var(--line); color: var(--olive); font-size: 12px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
  @media (max-width: 767px) {
    .onboarding-steps { grid-template-columns: 1fr; gap: 20px; }
    .getting-started { padding: 16px; }
    .project-actions .btn { padding-inline: 10px; }
  }
}

[data-design-mode="dashboard"] {
  .presentation-style-panel { width: 100%; max-width: 1200px; display: flex; flex-direction: column; max-height: calc(100dvh - 32px); overflow: hidden; }
  .presentation-style-header { flex-shrink: 0; }
  .presentation-style-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0; }
}

/* Presentation editor keeps drafts local until Save style. */
[data-design-mode="dashboard"] {
  .style-editor { display: grid; grid-template-columns: minmax(320px, 420px) minmax(0, 1fr); }
  .style-editor-options { padding: 24px; min-width: 0; }
  .style-editor-section { border: 0; padding: 0 0 24px; margin: 0 0 24px; border-bottom: 1px solid var(--line); min-width: 0; }
  .style-editor-section:last-child { margin-bottom: 0; border-bottom: 0; padding-bottom: 0; }
  .style-editor-section legend, .style-editor-section h3 { font-size: 16px; font-weight: 500; margin-bottom: 12px; }
  .style-editor-hint { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 8px 0 16px; }
  .style-theme-grid, .style-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .style-theme-card { display: flex; flex-direction: column; gap: 8px; padding: 8px; height: 100%; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
  .style-theme-card strong { display: block; font-size: 13px; font-weight: 500; }
  .style-theme-card small { display: block; color: var(--muted); font-size: 12px; }
  .style-theme-choice input:checked + .style-theme-card { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
  .style-theme-swatch { display: flex; align-items: center; justify-content: center; height: 48px; background: var(--view-paper, #fafaf8); color: var(--view-ink, #18181b); border-left: 20px solid var(--view-canvas, #e8e8e4); font-size: 24px; letter-spacing: -.04em; }
  .style-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
  .style-field label { font-size: 12px; font-weight: 500; }
  .style-field select { width: 100%; min-width: 0; font-size: 14px; }
  .style-color-input { display: flex; gap: 8px; align-items: center; min-height: 44px; }
  .style-color-input input { width: 44px; height: 44px; padding: 2px; border: 1px solid var(--edge); border-radius: 6px; cursor: pointer; }
  .style-color-input output { font-size: 12px; font-variant-numeric: tabular-nums; }
  .style-editor-preview { padding: 24px; border-left: 1px solid var(--line); background: #e8e8e4; position: sticky; top: 0; align-self: start; min-width: 0; }
  .style-preview-toolbar { display: flex; gap: 16px; justify-content: space-between; margin-bottom: 16px; }
  .style-preview-viewport { position: relative; overflow: hidden; background: #d4d4d0; width: 100%; }
  .style-preview-viewport iframe { position: absolute; top: 0; left: 50%; translate: -50% 0; transform-origin: top center; border: 0; pointer-events: none; }
  .style-client-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
  .style-editor-footer { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; border-top: 1px solid var(--line); background: var(--paper); position: sticky; bottom: 0; z-index: 2; }
  .style-editor-footer p { font-size: 12px; color: var(--muted); }
  .style-editor-footer .style-editor-error { color: #b91c1c; margin-top: 8px; }
  .style-editor-error:empty { display: none; }
  .style-editor [hidden] { display: none; }
  @media (max-width: 767px) {
    .style-editor { grid-template-columns: 1fr; }
    .style-editor-options, .style-editor-preview { padding: 16px; }
    .style-editor-preview { position: static; grid-row: 1; border-left: 0; border-bottom: 1px solid var(--line); }
    .style-editor-footer { padding: 12px 16px; flex-wrap: wrap; }
    .style-editor-footer > div:last-child { width: 100%; justify-content: flex-end; }
  }
  @media (max-width: 479px) {
    .style-field-grid { grid-template-columns: 1fr; }
  }
  @media (max-width: 359px) {
    .style-preview-toolbar { display: grid; grid-template-columns: 1fr; }
  }
}
