/* VOLONTA interface, 2026-10-02.
   Screen chrome only: source photographs, colour samples and printed documents
   keep their own rendering. Existing control semantics and breakpoints stay intact. */
@media screen {
  :root {
    --paper: #f5f6f8;
    --surface: #ffffff;
    --ink: #1d2736;
    --muted: #566273;
    --line: #dce1e8;
    --brand-navy: #192840;
    --brand-navy-hover: #29476d;
    --brand-blue-soft: #eaf1fd;
    --brand-border: #8994a3;
    --brand-green: #176348;
    --brand-gold-ink: #795017;
    --green: var(--brand-navy);
    --green-dark: #29476d;
    --green-light: #eaf1fd;
    --ui-accent: #0861ce;
    --ui-accent-soft: #eaf1fd;
    --ui-control-line: #8994a3;
    --ui-soft: #eef1f5;
    --ui-success: #176348;
    --ui-warning: #795017;
    --ui-danger: #aa3030;
    --shadow: 0 2px 5px #19284004, 0 8px 28px #19284007;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  }

  body { color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
  :is(button, input, select, textarea) { font-family: inherit; }
  :is(button, a, input, select, textarea, summary):focus-visible {
    outline: 3px solid var(--ui-accent);
    outline-offset: 3px;
  }
  :is(input, textarea)::placeholder { color: #626d7c; opacity: 1; }
  ::selection { color: #192840; background: #cfe0ff; }
  :is(input[type="checkbox"], input[type="radio"]) { accent-color: var(--ui-accent); }

  /* A quiet shell puts the content first; the active destination is unmistakable. */
  .sidebar { background: #eff1f5; border-right-color: #d5dbe5; }
  .sidebar-label, .sidebar-foot, .brand small { color: #586475; }
  .sidebar-label { font-weight: 600; letter-spacing: .03em; }
  .nav-item { min-height: 46px; color: #405168; border-radius: 13px; font-weight: 500; }
  .nav-item:hover { background: #e0e7f2; color: #192840; }
  .nav-item.active { color: #fff; background: #192840; box-shadow: 0 4px 10px #19284018; }
  .nav-count { background: #dce4f1; color: #365073; font-weight: 600; }
  .nav-item.active .nav-count { background: #384960; color: #fff; }
  .topbar { background: #ffffffd9; border-bottom-color: #dce1e8; backdrop-filter: blur(16px); }
  .breadcrumb, .breadcrumb b, .top-help, .workspace-link { color: #536074; }
  .breadcrumb span { color: #657185; }
  .consult-card { background: #e6eaf1; border-color: #c8d1df; }
  .consult-card p { color: #34445e; }
  .consult-card>span:last-child { color: #596579; }
  .page-heading { align-items: center; }
  .page-heading h1 { font-weight: 650; letter-spacing: -.025em; line-height: 1.3; }
  .page-heading p, .results-meta, .footer, .page-note { color: var(--muted); }
  .eyebrow { color: var(--brand-gold-ink); font-weight: 650; }

  /* One solid action, one outlined action, one text action. */
  .primary-button, .secondary-button, .bs-primary, .vl-primary {
    min-height: 44px;
    border-radius: 11px;
    font-weight: 600;
    letter-spacing: 0;
    transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
  }
  .primary-button, .bs-primary, .vl-primary {
    background: #192840; border-color: #192840; color: #fff;
    box-shadow: 0 3px 8px #19284018;
  }
  .primary-button:hover:not(:disabled), .bs-primary:hover, .vl-primary:hover {
    background: #29476d; border-color: #29476d; box-shadow: 0 4px 12px #19284024;
  }
  .secondary-button { background: #fff; color: #233b5c; border-color: var(--ui-control-line); box-shadow: none; }
  .secondary-button:hover:not(:disabled) { background: #edf3fd; border-color: #4069a0; }
  :is(.primary-button, .secondary-button):active:not(:disabled) { transform: translateY(1px); box-shadow: none; }
  :is(.primary-button, .secondary-button):disabled { background: #e8ebf0; border-color: #ccd3dd; color: #606b79; box-shadow: none; opacity: 1; }
  .text-button, .bc-document, .bc-back, .bc-source-link { color: #075cbd; }
  .text-button:hover { color: #064789; }
  .modal-close, .vp-close { min-width: 44px; min-height: 44px; color: #334762; background: #edf0f5; border-radius: 50%; }
  .modal-close:hover, .vp-close:hover { color: #192840; background: #dce5f2; }
  .cc-colour-picker-head button, .cc-image-viewer-head>button {
    width: 44px; height: 44px; min-width: 44px; min-height: 44px;
    color: #334762; background: #edf0f5;
  }
  .cc-colour-picker-head button:focus-visible, .cc-image-viewer button:focus-visible,
  .cc-image-viewer-viewport:focus-visible, .cc-image-viewer a:focus-visible,
  .cc-colour-select:focus-visible, .cc-colour-choice:focus-visible {
    outline: 3px solid var(--ui-accent); outline-offset: 3px;
  }

  /* Short groups behave as segmented controls. Long category groups can still wrap. */
  .purchase-type-tabs, .craft-workspace-tabs, .cc-mode-tabs, .cc-control-tabs, .work-flow-toolbar nav {
    padding: 5px; gap: 4px; background: #e7ebf1; border: 1px solid #d4dbe5; border-radius: 14px;
  }
  :is(.purchase-type-tabs, .craft-workspace-tabs, .cc-mode-tabs, .cc-control-tabs, .work-flow-toolbar nav) button {
    min-height: 44px; color: #43536a; border-radius: 10px; font-weight: 550;
    transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
  }
  :is(.purchase-type-tabs, .craft-workspace-tabs, .cc-mode-tabs, .cc-control-tabs, .work-flow-toolbar nav) button.active,
  .cc-control-tabs button[aria-pressed="true"], .cc-control-tabs button[aria-selected="true"] {
    color: #fff; background: #192840; box-shadow: 0 2px 6px #19284020;
  }
  .purchase-type-tabs button.active small { color: #e4ecfa; }
  :is(.purchase-type-tabs, .craft-workspace-tabs, .cc-mode-tabs, .cc-control-tabs, .work-flow-toolbar nav) button:hover:not(.active):not(:disabled) {
    color: #192840; background: #d6e1f1;
  }
  .filter-label, .purchase-filter-label, .purchase-filter-row>span, .product-process-row legend { color: #536074; }
  .filter-chip, .category-option { min-height: 36px; border-radius: 9px; color: #47566a; }
  .filter-chip.active, .category-option.active, .bc-filter-row a.active {
    color: #154982; background: #dfebfc; box-shadow: inset 0 0 0 1px #6283b1; font-weight: 650;
  }
  .filter-chip:hover:not(.active), .category-option:hover:not(.active) { background: #e8edf5; }
  .catalogue-tab { color: #566273; min-height: 44px; }
  .catalogue-tab.active { color: #192840; font-weight: 650; }
  .catalogue-tab span { background: #e4eaf3; color: #405878; }
  .library-brand-switch>a, .product-system-tabs>button, .vl-type-tabs button, .alpi-groups button,
  .product-process-filter .product-process-row button {
    background: #fff; color: #334c6d; border: 1px solid var(--ui-control-line); border-radius: 11px; min-height: 44px;
  }
  .library-brand-switch>a.active, .library-brand-switch>a[aria-current="page"], .product-system-tabs>button.active,
  .vl-type-tabs button[aria-pressed="true"], .alpi-groups button.active, .product-process-filter .product-process-row button.active {
    color: #fff; background: #192840; border-color: #192840; box-shadow: 0 2px 5px #19284014;
  }

  /* White content surfaces and neutral separators replace the former beige wash. */
  .surface, .purchase-card, .color-card, .imported-product-card, .product-process-filter,
  .work-project-bar, .work-flow-list, .work-plan-actions, .cc-preview, .cc-controls, .vp-dialog {
    background: #fff; border-color: #d5dce6; box-shadow: var(--shadow); border-radius: 18px;
  }
  .color-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px #19284012; }
  .purchase-card:hover { border-color: #8e9fb8; box-shadow: 0 6px 18px #1928400d; }
  .card-info p, .official-card .official-model, .card-tags, .card-tags .finish,
  .purchase-card-copy .purchase-model, .purchase-card-copy .purchase-card-meta, .purchase-card-price>span { color: #596678; }
  .purchase-card-copy h2 { color: #25384f; font-weight: 600; }
  .pc-price-grid strong, .project-cost-grid strong { font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
  .pc-price-grid span { color: #536174; }
  .purchase-add-button { background: #eaf1fd; color: #174f96; border-color: #5f7faa; border-radius: 10px; min-height: 42px; }
  .purchase-add-button.has-item { background: #e5f3eb; color: #176348; border-color: #568674; }
  .purchase-filters { background: #eef1f5; border-color: #d5dce6; }

  /* Input boundaries remain visible without relying on shadows. */
  .search-box, .purchase-search, .favorites-search { background: #fff; border: 1px solid var(--ui-control-line); border-radius: 12px; }
  .search-box, .purchase-search { min-height: 44px; }
  :is(.search-box, .purchase-search, .favorites-search):focus-within { border-color: var(--ui-accent); box-shadow: 0 0 0 3px #0861ce1c; }
  .search-box input, .purchase-search input, .favorites-search input { color: #25364f; }
  .search-box input::placeholder, .purchase-search input::placeholder { color: #626d7c; }
  .work-project-fields input, .work-project-fields select, .cc-field input, .cc-field select,
  .cc-color-fields input[type="text"], .cc-rgb-fields input, .member-auth-card input,
  .favorites-new-folder input, .favorites-folder-editor input, .favorite-move select,
  .craft-cost-row :is(input, select), .project-cost-pricing select, .work-add-stage select {
    min-height: 44px; border: 1px solid var(--ui-control-line); border-radius: 10px;
    color: #25364f; background: #fff;
  }
  .work-project-fields label, .cc-field, .cc-range-title, .cc-color-fields label, .cc-rgb-fields label { color: #43536a; }
  .work-project-fields input:focus, .work-project-fields select:focus, .cc-field :is(input,select):focus {
    border-color: var(--ui-accent); box-shadow: 0 0 0 3px #0861ce14;
  }

  /* Craft editing: make the selected step, controls and calculation read at a glance. */
  .work-project-bar>button { min-height: 64px; border-radius: 18px; }
  .work-project-bar>button:hover { background: #f0f4fb; }
  .work-flow-toolbar { gap: 12px; }
  .work-flow-item { border-top-color: #dbe2ec; }
  .work-flow-item .work-flow-row { min-height: 62px; }
  .work-flow-item.is-active>.work-flow-row { background: #e7effc; box-shadow: inset 4px 0 #0861ce, 0 2px 5px #1928400b; }
  .work-flow-item .work-flow-select b { color: #213855; font-weight: 650; }
  .work-flow-item .work-flow-select small, .work-expand-label, .work-flow-number { color: #53647a; }
  .work-inline-content { background: #fbfcfe; border-top-color: #c9d6e8; }
  .work-editor-note, .work-step-editor .work-editor-note, .work-flow-tip, .craft-help, .work-linked-labor small,
  .work-project-snapshot p, .work-saved-list small, .work-deleted-plans>p { color: #586779; }
  .work-move-controls { gap: 4px; }
  .work-flow-item .work-move-controls button, .cc-layer-actions button {
    min-width: 36px; min-height: 36px; border-radius: 9px; color: #355782; background: #fff; border: 1px solid #8994a3;
  }
  .work-move-controls button:disabled, .cc-layer-actions button:disabled { opacity: .42; }
  .work-flow-row .work-switch { transform: none; margin: 0; width: 38px; flex: 0 0 38px; }
  .work-switch { width: 38px; height: 24px; flex-basis: 38px; }
  .work-switch>span { width: 38px; height: 24px; background: #778598; }
  .work-switch>span:after { width: 18px; height: 18px; left: 3px; top: 3px; }
  .work-switch input:checked+span { background: #176348; }
  .work-switch input:checked+span:after { transform: translateX(14px); }
  .work-switch input:focus-visible+span { outline: 3px solid #0861ce; outline-offset: 3px; }
  .work-editor-state { color: #176348; background: #e3f2e9; border-radius: 8px; font-weight: 600; }
  .work-saved-toggle { color: #263c58; background: #f2f5fa; min-height: 66px; }
  .work-saved-toggle:hover, .work-saved-toggle[aria-expanded="true"] { background: #e8effa; }
  .work-saved-actions { background: #fff; gap: 10px; }
  .work-saved-list .work-delete-saved { color: #a72c2c; border-color: #c36b6b; background: #fff; }
  .work-saved-list .work-delete-saved:hover { background: #fff0f0; }
  .work-saved-notice { background: #eaf1fd; color: #224e83; border: 1px solid #a0b8d9; border-radius: 12px; }
  .project-cost-intro, .project-cost-sheet { background: #f0f4fb; border-color: #c4d1e3; border-radius: 20px; }
  .project-cost-sheet>summary { color: #213855; }
  .project-cost-grid>section { border-color: #cbd5e3; border-radius: 15px; box-shadow: 0 3px 9px #19284004; }
  .project-cost-grid>section:last-child { background: #192840; color: #fff; border-color: #192840; }
  .project-cost-grid>section:last-child :is(h3, p, strong, small) { color: #fff; }
  .project-cost-grid strong { font-weight: 700; }

  /* The atelier keeps coloured teaching cues while using the same control language. */
  .color-lab { --cc-border: #cbd4e0; --cc-soft: #eef2f8; --cc-muted: #566273; --cc-text: #25364f; }
  .cc-preview-heading { background: #f0f4fa; border-bottom-color: #d4deeb; }
  .cc-layer-head { background: #eaf0fa; }
  .cc-active-layer { border-color: #a7b8d0; background: #fff; border-radius: 14px; }
  .cc-layer-tabs button { background: #fff; border-color: #8994a3; border-radius: 11px; color: #435874; }
  .cc-layer-tabs button.active { background: #e5efff; border-color: #5276aa; color: #174777; box-shadow: inset 0 -3px #0861ce; }
  .cc-layer-actions button[data-cc-delete]:hover { background: #fff0f0; color: #aa3030; border-color: #c36b6b; }
  .cc-plan-actions { background: #eef2f8; border-color: #c8d3e3; border-radius: 16px; }
  .cc-plan-actions>.primary-button { white-space: normal; }
  .cc-add-steps button { border-radius: 11px; min-height: 44px; }
  .cc-add-steps button[data-cc-add="stain"] { background: #214f87; border-color: #214f87; color: #fff; }
  .cc-add-steps button[data-cc-add="wipe"] { background: #f7e6c8; border-color: #997533; color: #70470f; }
  .cc-add-steps button[data-cc-add="bare-wipe"] { background: #e1f0e7; border-color: #568674; color: #195d43; }
  .cc-add-steps button[data-cc-add="bare-spray"] { background: #eaf1fd; border-color: #5f7faa; color: #214f87; }
  .cc-fine, .cc-caption, .cc-product-preview span, .cc-match small, .cc-match span, .cc-base-hint,
  .cc-standards span, .cc-saved-card small, .cc-source-credit { color: #586779; }
  .cc-photo-store-error { color: #aa3030; }
  .craft-caution { color: #795017; background: #fff3df; border: 1px solid #997533; border-radius: 12px; }
  .vp-source-tabs button, .vp-types button { border-color: #8994a3; background: #fff; color: #405777; border-radius: 10px; min-height: 40px; }
  .vp-source-tabs .is-active, .vp-types button.is-active { background: #192840; color: #fff; border-color: #192840; }
  .vp-card.is-selected { border-color: #0861ce; background: #eaf1fd; box-shadow: inset 0 0 0 1px #0861ce; }
  .vp-card-image i { background: #0861ce; }

  /* Dialogs are elevated once; no extra blur or colour grading touches the artwork. */
  dialog, dialog.source-modal, dialog.purchase-cart-modal, .vp-dialog {
    background: #fff; border-color: #c9d2e0; border-radius: 22px;
    box-shadow: 0 30px 90px #13243c3d, 0 8px 24px #13243c1a;
  }
  dialog::backdrop { background: #17233770; backdrop-filter: blur(7px); }
  .source-modal-heading { background: #f6f8fb; border-bottom-color: #dce3ed; }
  .source-modal-heading p, .source-modal-foot, .surface .source-footnote { color: #586779; }
  .craft-document table { table-layout: fixed; white-space: normal; }
  .craft-document :is(th, td) { white-space: normal; overflow-wrap: anywhere; }
  #toast { background: #192840; color: #fff; border: 1px solid #66758a; border-radius: 14px; box-shadow: 0 8px 26px #19284026; }
  .library-section-option { background: #fff; border-color: #8994a3; border-radius: 16px; }
  .library-section-option.active { background: #192840; color: #fff; border-color: #192840; box-shadow: 0 4px 12px #19284016; }
  .library-section-option.active .library-section-icon { background: #384960; color: #fff; border-color: #74849b; }
  .library-section-copy small, .library-section-context { color: #566273; }
  .library-section-option.active :is(small, .library-section-count) { color: #e4ecfa; }

  @media (max-width: 760px) {
    .page-heading h1 { font-size: 25px; }
    .work-flow-toolbar nav { width: 100%; }
    .work-flow-toolbar nav button { padding: 8px 4px; white-space: normal; font-size: 12px; line-height: 1.45; }
    .work-flow-item .work-flow-row { min-height: 64px; flex-wrap: wrap; }
    .work-flow-item .work-flow-select { flex: 1 1 140px; min-height: 44px; }
    .work-flow-item .work-move-controls button, .cc-layer-actions button { min-width: 40px; min-height: 44px; }
    .work-expand-label { font-size: 11px; }
    .work-project-bar>button { flex-wrap: wrap; gap: 6px 12px; }
    .work-project-bar b { overflow-wrap: anywhere; }
    .work-plan-actions { border-radius: 16px; }
    .work-saved-toggle { gap: 10px; padding: 14px 12px; }
    .work-saved-toggle>span:last-child { font-size: 11px; }
    .work-saved-actions button, .cc-export-actions button { min-height: 44px; font-size: 12px; }
    .project-cost-intro, .project-cost-sheet { border-radius: 17px; }
    .cc-controls, .cc-preview { border-radius: 16px; }
  }
  @media (max-width: 650px) {
    .workspace { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
    .mobile-bottom-nav { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); position: fixed; inset: auto 0 0; z-index: 80; padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)); background: #ffffffed; backdrop-filter: blur(18px); border-top: 1px solid #c9d2e0; box-shadow: 0 -5px 24px #1928400d; }
    .mobile-bottom-nav :is(a,button) { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; min-height: 54px; min-width: 0; padding: 5px 2px; border-radius: 12px; color: #526076; background: transparent; font-size: 11px; line-height: 1.4; text-decoration: none; -webkit-tap-highlight-color: transparent; }
    .mobile-bottom-nav .icon { width: 22px; height: 22px; }
    .mobile-bottom-nav a.active { color: #fff; background: #192840; font-weight: 600; }
    .mobile-bottom-nav :is(a,button):focus-visible { outline: 3px solid #557fbe; outline-offset: -3px; }
    .mobile-bottom-nav button[aria-expanded="true"] { color: #192840; background: #dfe8f5; }
    .mobile-menu-scrim:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 90; background: #14223b55; padding: 0; border: 0; }
    .sidebar { width: min(310px,calc(100vw - 46px)); z-index: 100; height: 100dvh; overscroll-behavior: contain; padding-top: 22px; padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
    .sidebar .brand { padding-right: 42px; }
    .mobile-menu-close { display: grid; place-items: center; position: absolute; top: 16px; right: 12px; width: 44px; height: 44px; border-radius: 12px; color: #192840; background: #dde5ef; }
    .sidebar .nav-item { min-height: 48px; }
    .mobile-menu { min-width: 44px; min-height: 44px; }
    #toast { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
    .filter-chip, .category-option { min-height: 44px; }
    .product-process-filter .product-process-row>div { gap: 8px; }
    .search-box input, .purchase-search input, .favorites-search input,
    .work-project-fields :is(input, select), .cc-field :is(input, select),
    .cc-color-fields input[type="text"], .cc-rgb-fields input, .member-auth-card input,
    .craft-cost-row :is(input, select), .project-cost-pricing select, .work-add-stage select,
    .project-labor-rates input, .work-execution :is(input, select),
    .staining-cost-grid :is(input, select), .work-staining-selection :is(input, select),
    .application-cost-panel :is(input, select), .craft-document-controls select,
    .vp-search input, .vp-advanced-fields select { font-size: 16px; }
    .project-labor-rates input, .work-execution :is(input, select),
    .application-cost-panel :is(input, select), .work-staining-selection :is(input, select),
    .craft-document-controls select, .vp-advanced-fields select { min-height: 44px; }
    .vp-search { min-height: 44px; }
    .cc-control-tabs button, .cc-mode-tabs button { min-height: 44px; line-height: 1.4; }
    .purchase-type-tabs { max-width: 100%; }
    .purchase-type-tabs button { min-width: 0; white-space: normal; line-height: 1.4; }
    .modal-close, .vp-close { top: 10px; right: 10px; }
  }
  @media (hover: none) {
    .color-card:hover { transform: none; }
    .purchase-card-image:hover>img { transform: none; }
  }
  @media (prefers-reduced-motion: reduce) {
    .primary-button, .secondary-button, .nav-item, .color-card, .purchase-card,
    .cc-layer-tabs button, .cc-add-steps button, .work-switch>span, .work-switch>span:after,
    :is(.purchase-type-tabs, .craft-workspace-tabs, .cc-mode-tabs, .cc-control-tabs, .work-flow-toolbar nav) button { transition: none; }
    :is(.primary-button, .secondary-button):active:not(:disabled), .color-card:hover { transform: none; }
  }
  @media (prefers-contrast: more) {
    :root { --muted: #34445b; --line: #8994a3; }
    .surface, .purchase-card, .color-card, .work-flow-list, .cc-controls { border-color: #8994a3; }
  }
}

@media screen and (min-width: 651px), print {
  .mobile-bottom-nav, .mobile-menu-scrim, .mobile-menu-close { display: none; }
}
