/* HOLDERCARD Smart Order: one UI theme, including same-origin iframe screens.
   Based on the published Smart Order palette, 2026-11-04.
   Artwork, QR quiet zones, PDF documents and 3D materials are not UI surfaces. */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&display=swap');
@media screen {
  :root {
    color-scheme: dark;
    --hc-bg: #08192c;
    --hc-shell: #0b2138;
    --hc-panel: #102b43;
    --hc-field: #122d45;
    --hc-accent: #f89d06;
    --hc-border: #48647c;
    --hc-text: #f9f7f1;
    --hc-muted: #bfd1df;
    --hc-selected: #15334c;
    --hc-hover: #1b3c57;
    --hc-radius: 4px;
    --hc-control-height: 44px;
    /* Aliases let the existing screens keep their layout and component code. */
    --bg: var(--hc-bg); --navy: var(--hc-bg); --navy2: var(--hc-shell);
    --shell: var(--hc-shell); --panel: var(--hc-panel); --card: var(--hc-panel);
    --surface: var(--hc-panel); --field: var(--hc-field);
    --accent: var(--hc-accent); --gold: var(--hc-accent); --goldsoft: var(--hc-accent);
    --line: var(--hc-border); --txt: var(--hc-text); --text: var(--hc-text);
    --ink: var(--hc-text); --white: var(--hc-text); --muted: var(--hc-muted);
  }
  html[data-hc-screen], html[data-hc-screen] body {
    background: var(--hc-bg) !important;
    color: var(--hc-text);
    font-family: Montserrat, Arial, sans-serif !important;
  }
  html[data-hc-screen] :is(button, input, select, textarea) {
    font-family: Montserrat, Arial, sans-serif !important;
  }
  html[data-hc-screen] :is(button, a.btn, a.primary, a.secondary, a.hc-portal-link) {
    box-sizing: border-box;
    min-height: var(--hc-control-height) !important;
    border: 1px solid var(--hc-border) !important;
    border-radius: var(--hc-radius) !important;
    background: var(--hc-panel) !important;
    color: var(--hc-text) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    letter-spacing: 0 !important;
    padding: 10px 14px !important;
    box-shadow: none !important;
    text-decoration: none;
    touch-action: manipulation;
    transition: background .15s, border-color .15s, color .15s;
  }
  html[data-hc-screen] :is(a.btn, a.primary, a.secondary, a.hc-portal-link) {
    display: inline-flex; align-items: center; justify-content: center;
  }
  html[data-hc-screen] :is(button, a.btn, a.primary, a.secondary):hover:not(:disabled):not([aria-disabled=true]) {
    background: var(--hc-hover) !important;
    border-color: var(--hc-accent) !important;
  }
  html[data-hc-screen] :is(button.primary, button.btnPrimary, button.stage-next, .act.primary, a.primary, a.hc-portal-link,
    #googlePlaceholder, #externalSignin, #acceptUpdated) {
    background: var(--hc-accent) !important;
    border-color: var(--hc-accent) !important;
    color: var(--hc-bg) !important;
  }
  html[data-hc-screen] :is(button.primary, button.btnPrimary, button.stage-next, .act.primary, a.primary, a.hc-portal-link,
    #googlePlaceholder, #externalSignin, #acceptUpdated):hover:not(:disabled) {
    background: #ffb52e !important; border-color: #ffb52e !important; color: var(--hc-bg) !important;
  }
  html[data-hc-screen] :is(button.active, button[aria-pressed=true], button[aria-selected=true], button[aria-current=page]) {
    background: var(--hc-selected) !important;
    border-color: var(--hc-accent) !important;
    color: var(--hc-accent) !important;
  }
  html[data-hc-screen] :is(button, a.btn):disabled,
  html[data-hc-screen] [aria-disabled=true] { opacity: .45 !important; cursor: not-allowed; }
  html[data-hc-screen] :is(button, a, summary, input, select, textarea):focus-visible {
    outline: 2px solid var(--hc-accent) !important; outline-offset: 2px !important;
  }
  html[data-hc-screen] :is(input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]):not([type=hidden]), select, textarea) {
    background: var(--hc-field) !important;
    color: var(--hc-text) !important;
    border: 1px solid var(--hc-border) !important;
    border-radius: var(--hc-radius) !important;
    min-height: var(--hc-control-height);
    font-size: 13px;
    box-sizing: border-box;
  }
  html[data-hc-screen] :is(input, textarea)::placeholder { color: var(--hc-muted); opacity: .8; }
  html[data-hc-screen] :is(input[type=checkbox], input[type=radio], input[type=range]) { accent-color: var(--hc-accent); }
  html[data-hc-screen] input[type=file]::file-selector-button {
    border: 1px solid var(--hc-border); border-radius: var(--hc-radius);
    background: var(--hc-panel); color: var(--hc-text); padding: 6px 10px;
    font: 500 12px Montserrat, Arial, sans-serif; margin-right: 10px; cursor: pointer;
  }
  /* App shell, including dynamically inserted cabinet tab. */
  html[data-hc-screen=shell] :is(#v6Shell, .v6-tabs, .v6-cover) { background: var(--hc-shell) !important; }
  html[data-hc-screen=shell] :is(#v6Work, #stage2, #hcThreePane, #hcDesignPane, #hcProposalPanel, #hcOrderPanel, #hcLabServicesPanel, iframe) {
    background: var(--hc-bg) !important;
  }
  html[data-hc-screen=shell] #v6Shell { border-color: var(--hc-border) !important; }
  html[data-hc-screen=shell] .v6-tabs .v6-tab {
    height: var(--hc-control-height) !important; border-bottom-color: var(--hc-border) !important;
  }
  html[data-hc-screen=shell] .v6-tab.active::after { background: var(--hc-selected) !important; }
  html[data-hc-screen=shell] :is(.pilot-mode-head, .pilot-gallery, .capturebar, .v4-rail, .shot-slot) {
    background: var(--hc-panel) !important; border-color: var(--hc-border) !important;
  }
  /* Editor surroundings only: never style the SVG sheet or its children. */
  html[data-hc-screen=design] :is(.main, .app) { background: var(--hc-bg) !important; }
  html[data-hc-screen=design] :is(.panel, .section, .toolbar, .hc-mobile-flip) {
    background: var(--hc-panel) !important; border-color: var(--hc-border) !important;
  }
  html[data-hc-screen=design] .upload {
    background: var(--hc-field) !important; border-color: var(--hc-border) !important;
    border-radius: var(--hc-radius) !important; color: var(--hc-text) !important;
  }
  html[data-hc-screen=design] .toolgrid .tool .tool-label { color: inherit !important; font-weight: 500 !important; }
  html[data-hc-screen=design] :is(.tool, .act, .tab) { height: auto !important; }
  /* 3D lighting, geometry, camera and materials remain in the existing viewer. */
  html[data-hc-screen=three] .viewer { background: var(--hc-bg) !important; border-color: var(--hc-border) !important; box-shadow: none !important; }
  html[data-hc-screen=three] .viewer .panel { background: transparent !important; }
  html[data-hc-screen=three] .viewer .panel .stage { background: var(--hc-panel) !important; border-color: var(--hc-border) !important; color: var(--hc-text) !important; }
  html[data-hc-screen=three] .viewer .panel .stage[aria-pressed=true] { background: var(--hc-selected) !important; border-color: var(--hc-accent) !important; color: var(--hc-accent) !important; }
  html[data-hc-screen=three] .viewer .panel .stage-icon { filter: none !important; }
  /* Presentation form and controls, without changing the generated PDF pages. */
  html[data-hc-screen=proposal] :is(.formpanel, .formpanel .inside, .hc-side, .hc-proposal-form, #hc-concepts-ready) {
    background: var(--hc-panel) !important; border-color: var(--hc-border) !important;
  }
  html[data-hc-screen=proposal] #brief .hc-brief-fields #generate,
  html[data-hc-screen=proposal] #brief .hc-brief-fields :is(input, select) {
    height: var(--hc-control-height) !important; min-height: var(--hc-control-height) !important;
  }
  html[data-hc-screen=order] :is(#app, #wizard) { background: var(--hc-bg) !important; }
  html[data-hc-screen=order] :is(.note, .summary, .choice, .benefits, .useful-space) {
    background: var(--hc-panel) !important; border-color: var(--hc-border) !important;
  }
  html[data-hc-screen=order] .choice[aria-pressed=true] { background: var(--hc-selected) !important; border-color: var(--hc-accent) !important; }
  html[data-hc-screen=order] :is(.actions, .end-buttons) button { min-height: var(--hc-control-height) !important; }
  html[data-hc-screen=order] .choice { text-align: left; }
  html[data-hc-screen=order] .choice strong { font-size: 12px; }
  html[data-hc-screen=order] .choice small { font-size: 10px; }
  html[data-hc-screen=cabinet] :is(.card, .quick, .top),
  html[data-hc-screen=legal] :is(.card, .top),
  html[data-hc-screen=services] :is(.form-card, .qr-result, .campaign-item),
  html[data-hc-screen=reports] :is(.card, .range, .metrics article) {
    background: var(--hc-panel) !important; border-color: var(--hc-border) !important;
    border-radius: var(--hc-radius) !important;
  }
  html[data-hc-screen=cabinet] .sidebar nav button { text-align: left; }
  html[data-hc-screen=services] .service-nav button { border-radius: var(--hc-radius) !important; }
  html[data-hc-screen] #hc-lab-webgl { background: var(--hc-bg) !important; color: var(--hc-text) !important; }
  html[data-hc-screen] #hc-lab-message { background: var(--hc-panel) !important; color: var(--hc-text) !important; border-color: var(--hc-border) !important; }
  /* Special controls retain the geometry needed by their function. */
  html[data-hc-screen] :is(.shutter, .remove-shot, .v4-rail-btn, .stage) { padding: 6px !important; }
  html[data-hc-screen] .shutter { border-radius: 50% !important; }
  @media (max-width: 700px) {
    html[data-hc-screen] :is(input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]):not([type=hidden]), select, textarea) { font-size: 16px !important; }
    html[data-hc-screen=design] .toolbar select { max-width: 100%; }
    html[data-hc-screen=shell] .v6-tabs .v6-tab { font-size: 10px !important; padding: 8px 3px !important; }
    html[data-hc-screen=design] :is(#hcMobileDock, #hcMobileFinal, #hcMobileFlipBar, .hc-dock-tabs) {
      background: var(--hc-panel) !important; border-color: var(--hc-border) !important;
    }
    html[data-hc-screen=design] #hcMobileFinal :is(#hcMDevice, #hcMSend) {
      height: 44px !important; min-height: 44px !important; border-radius: var(--hc-radius) !important;
      font-size: 12px !important; padding: 7px 8px !important;
    }
    html[data-hc-screen=design] #hcMobileFinal #hcMDevice {
      background: var(--hc-accent) !important; border-color: var(--hc-accent) !important; color: var(--hc-bg) !important;
    }
    html[data-hc-screen=design] #hcMobileFinal #hcMSend {
      background: var(--hc-panel) !important; border-color: var(--hc-border) !important; color: var(--hc-text) !important;
    }
    html[data-hc-screen=design] #hcMobileFlipBar { height: auto !important; min-height: 44px !important; }
    html[data-hc-screen=design] #hcMobileFlipBar :is(#hcMUndo, #hcMRedo, #hcMDelete, #hcMobileFlip) {
      height: 44px !important; min-height: 44px !important; padding: 4px !important;
      background: var(--hc-panel) !important; border-color: var(--hc-border) !important; color: var(--hc-text) !important;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    html[data-hc-screen] :is(button, a.btn, a.primary, a.secondary) { transition: none !important; }
  }
}
