/* Web-app workflow only. Customer and admin share artwork, not commerce UI. */
html[data-app-workflow="true"],html[data-app-workflow="true"] body{height:auto;min-height:100%;overflow:auto}
html[data-app-workflow="true"] .rotate-interstitial{display:none!important}
html[data-app-workflow="true"] .editor-header,html[data-app-workflow="true"] .editor-main{visibility:visible}
html[data-app-workflow="true"] .editor-main{display:flex;flex-direction:column;height:auto;min-height:calc(100dvh - 70px);overflow:visible;padding:12px 16px 32px;gap:12px}
html[data-app-workflow="true"] .editor-header{height:auto;min-height:64px;display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:8px 16px}
html[data-app-workflow="true"] .header-actions{margin-left:auto;flex-wrap:wrap}
html[data-app-workflow="true"] [hidden]{display:none!important}
html[data-app-workflow="true"] .control-grid{height:auto;min-height:280px;overflow:visible;display:grid!important;grid-template-columns:1fr;position:relative;inset:auto;z-index:auto;margin:0}
html[data-app-workflow="true"] .control-grid .control-panel{grid-column:1!important;overflow:visible;height:auto;min-height:0}
html[data-app-workflow="true"] .canvas-section{min-height:90px;flex-shrink:0}
html[data-app-workflow="true"] .canvas-scroll{height:auto;min-height:0}
html[data-app-workflow="true"] .canvas-section .artboard{height:auto!important;min-height:0!important;aspect-ratio:var(--insert-aspect)!important}
html[data-app-workflow="true"] .finish-selected-previews{grid-template-columns:1fr;width:100%;grid-column:1/-1;gap:12px}
html[data-app-workflow="true"] .finish-current-artwork{width:100%;height:auto!important;min-height:0!important;max-height:none;aspect-ratio:var(--insert-aspect)!important;border:0;outline:1px solid #121212;box-shadow:none}
html[data-app-workflow="true"] .finish-current-artwork .canvas-layer img{border:0;aspect-ratio:auto;width:100%;height:100%}
html[data-app-workflow="true"] .creation-chooser{display:none!important}
html[data-app-workflow="true"] .skip-link:not(:focus){clip-path:inset(100%);width:1px;height:1px;overflow:hidden}
html[data-app-workflow="true"] .creation-chooser,html[data-app-workflow="true"] .mobile-action-dock,html[data-app-workflow="true"] .app-preview-stage,html[data-app-workflow="true"] .app-review-stage,html[data-app-workflow="true"] .app-finish-stage{display:none}
html[data-app-workflow="true"] #fitPanel,html[data-app-workflow="true"] #walterPanel,html[data-app-workflow="true"] #toolsPanel{display:none!important}
html[data-app-step="1"] #fitPanel{display:block!important;max-width:720px;width:100%;margin:auto}
html[data-app-step="2"] #walterPanel{display:grid!important}
html[data-app-step="3"] #toolsPanel{display:grid!important}
html[data-app-step="4"] .app-preview-stage,html[data-app-step="5"] .app-review-stage,html[data-app-step="6"] .app-finish-stage{display:block}
html[data-app-step="4"] #controlGrid,html[data-app-step="5"] #controlGrid,html[data-app-step="6"] #controlGrid{display:none!important}
html[data-app-step="6"] .app-session-rail,html[data-app-step="6"] .app-workflow-actions,html[data-app-step="6"] .canvas-section{display:none}
.app-stage-nav{display:flex;gap:var(--space-2,8px);overflow:auto;padding:var(--space-1,4px) 0;flex-shrink:0}
.app-stage-nav button{display:flex;align-items:center;justify-content:center;gap:var(--space-2,8px);flex:1 0 auto;min-height:48px;white-space:nowrap}
.app-stage-nav button svg{width:22px;height:22px;flex:0 0 22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.app-stage-nav button:focus-visible{outline:3px solid var(--color-accent,#F96601);outline-offset:2px}
.app-stage-nav .is-active{background:#121212;color:#fff;border-bottom:4px solid #F96601}
.app-session-rail,.app-preview-stage,.app-review-stage,.app-finish-stage{border:1px solid #c9c9c9;padding:16px;background:#F3F3F3;color:#121212}
.app-session-rail h2,.app-preview-stage h2,.app-review-stage h2,.app-finish-stage h2{margin:0 0 12px;font-family:Oswald,sans-serif}
.app-session-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.app-session-design{background:#fff;border:1px solid #c9c9c9;padding:10px;display:grid;grid-template-columns:1fr auto;gap:8px;min-width:0}
.app-session-design>img{grid-column:1/-1;display:block;width:100%;aspect-ratio:12.094;object-fit:contain;background:#121212}
.app-session-choices{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.app-design-choice{display:flex;align-items:center;gap:5px;min-height:44px;font-weight:700}
.app-design-choice input{width:20px;height:20px;accent-color:#F96601}
.app-workflow-actions{display:flex;align-items:center;justify-content:flex-end;gap:16px;padding:8px 0}
.app-workflow-status{margin-right:auto}
.app-purchase-policy{border-left:4px solid #F96601;padding:4px 16px;max-width:960px;line-height:1.5}
.app-design-validation{display:none}
.app-subscription-preview{border-top:2px solid #F96601;margin-top:20px;padding-top:12px}
.app-subscription-fields{display:flex;flex-wrap:wrap;gap:16px;align-items:center}
.app-subscription-fields label{display:flex;align-items:center;gap:8px;min-height:44px}
.app-subscription-fields input,.app-subscription-fields select{min-height:44px;max-width:100%}
.app-subscription-preview>button{margin:4px}
html[data-app-step="3"] .app-design-validation{display:block}
html[data-app-workflow="true"] .app-finish-stage .finish-truth{margin:16px 0}
html[data-app-workflow="true"] .tool-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:960px){
 html[data-app-workflow="true"] dialog[open]{display:block}
 html[data-app-workflow="true"] .vehicle-preview-dialog[open]{display:flex}
 html[data-app-workflow="true"] .editor-main{padding:8px 8px 24px}
 html[data-app-workflow="true"] .editor-header{padding:8px;position:relative}
 html[data-app-workflow="true"] .brand-lockup{flex:1;min-width:100px}
 html[data-app-workflow="true"] .brand-lockup small{display:block}
 html[data-app-workflow="true"] .header-actions{margin-left:0;display:flex;width:100%;justify-content:flex-end}
 html[data-app-workflow="true"] .header-actions .button{display:inline-flex;min-height:44px}
 /* The booth stylesheet declares two tracks with !important. Both the track
    definition and child placement must change together or column two is blank. */
 html[data-app-workflow="true"] .walter-panel{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto!important;min-width:0}
 html[data-app-workflow="true"] .walter-panel>*{grid-column:1!important;grid-row:auto!important}
 html[data-app-workflow="true"] .control-panel::after{right:var(--space-3,16px)}
 html[data-app-workflow="true"] .walter-builder{min-width:0;max-width:100%}
 html[data-app-workflow="true"] .walter-results .generation-results{display:grid;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:none!important;grid-auto-rows:auto;height:auto;overflow:visible!important}
 html[data-app-workflow="true"] .walter-results .concept-card footer{grid-template-columns:minmax(0,1fr)!important}
 html[data-app-workflow="true"] .walter-results .concept-card footer button{min-height:44px!important}
 html[data-app-workflow="true"] .walter-results{height:auto;max-height:none;overflow:visible}
 /* Optional questions stay in document flow on touch screens. They must not
    cover creative-direction icons or compete with the existing tool dialogs. */
 html[data-app-workflow="true"] .walter-prompt-builder{position:static;inset:auto;height:auto;max-height:none;grid-template-rows:auto auto auto;box-shadow:none}
 html[data-app-workflow="true"] .prompt-question-grid{overflow:visible}
 html[data-app-workflow="true"] .prompt-question-grid input{min-height:44px;height:auto;font-size:16px}
 html[data-app-workflow="true"] .walter-prompt-builder footer .button{min-height:44px}
 html[data-app-workflow="true"] .editor-main>*{min-width:0;max-width:100%}
 html[data-app-workflow="true"] .app-stage-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;gap:var(--space-2,8px)}
 html[data-app-audience="admin"] .app-stage-nav{grid-template-columns:repeat(4,minmax(0,1fr))}
 html[data-app-workflow="true"] .app-stage-nav button{min-width:0;min-height:60px;padding:var(--space-2,8px) var(--space-1,4px);flex-direction:column;gap:var(--space-1,4px);white-space:normal;font-size:14px;line-height:1.2}
 html[data-app-workflow="true"] .fitment-summary{display:grid}
 html[data-app-workflow="true"] .field>span:first-child{display:block}
 html[data-app-workflow="true"] .field input,html[data-app-workflow="true"] .field select{min-height:44px}
 html[data-app-workflow="true"] .tool-dialog{width:calc(100vw - 12px);height:auto;max-height:calc(100dvh - 12px);margin:auto}
 html[data-app-workflow="true"] .dialog-body{max-height:calc(100dvh - 110px);overflow:auto}
 .app-session-cards{grid-template-columns:1fr}
 .app-session-design{grid-template-columns:1fr}
 .app-session-rail,.app-preview-stage,.app-review-stage,.app-finish-stage{padding:10px}
}
@media(max-width:480px){
 html[data-app-workflow="true"] .prompt-question-grid{grid-template-columns:minmax(0,1fr)}
 html[data-app-workflow="true"] .prompt-question-wide{grid-column:1}
}
/* Give touch controls their own row; the printed composition stays unchanged. */
@media(max-width:960px){
 html[data-app-workflow="true"] .canvas-section{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:center}
 html[data-app-workflow="true"] .canvas-zoom-toggle,html[data-app-workflow="true"] .canvas-safe-toggle{position:static;inset:auto;transform:none;min-width:0;min-height:44px;margin:0;padding:6px;justify-content:center;font-size:12px;white-space:normal}
 html[data-app-workflow="true"] .canvas-zoom-toggle{grid-column:1;grid-row:1;color:#121212;background:#FFFFFF}
 html[data-app-workflow="true"] .canvas-zoom-toggle[aria-pressed="true"]{background:#F96601}
 html[data-app-workflow="true"] .canvas-safe-toggle{display:flex;grid-column:2;grid-row:1;color:#121212;background:#FFFFFF}
 html[data-app-workflow="true"] .canvas-scroll{grid-column:1/-1;grid-row:2}
 html[data-app-workflow="true"] [data-customer-test=true] .header-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 html[data-app-workflow="true"] [data-customer-test=true] .header-actions .button{width:100%;min-width:0;padding:8px;font-size:14px;justify-content:center}
 html[data-app-workflow="true"] [data-customer-test=true] .customer-navigation{display:flex;flex-wrap:wrap;padding:6px 8px;gap:6px}
 html[data-app-workflow="true"] [data-customer-test=true] .customer-navigation>*{flex:1;padding:6px;font-size:12px;white-space:nowrap}
 html[data-app-workflow="true"] [data-customer-test=true] #appVaultButton{display:none}
}
/* Customer phone chrome: compact rows with full-size touch targets. */
@media(orientation:landscape) and (max-height:600px){
 html[data-app-workflow="true"] .vehicle-preview-dialog[open]{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;inset:0;padding:0}
 html[data-app-workflow="true"] .vehicle-preview-dialog>.preview-header{padding:4px 8px}
 html[data-app-workflow="true"] .vehicle-preview-dialog .preview-header .eyebrow{display:none}
 html[data-app-workflow="true"] .vehicle-preview-dialog .preview-header h2{font-size:18px}
 html[data-app-workflow="true"] .vehicle-view-controls{padding:4px 8px;gap:8px}
 html[data-app-workflow="true"] .vehicle-preview-note{margin:4px 8px;font-size:11px}
 html[data-app-workflow="true"] .vehicle-preview-dialog .development-label{font-size:10px;max-width:100%}
}
@media(max-width:720px){
 html[data-app-workflow="true"] [data-customer-test=true] .editor-header{display:flex;flex-wrap:wrap;gap:6px;padding:8px}
 html[data-app-workflow="true"] [data-customer-test=true] .brand-lockup{min-width:0;flex:1;gap:6px}
 html[data-app-workflow="true"] [data-customer-test=true] .brand-lockup small{display:none}
 html[data-app-workflow="true"] [data-customer-test=true] .brand-logo{width:94px;height:40px}
 html[data-app-workflow="true"] [data-customer-test=true] #creditChip{position:static;transform:none;margin:0;font-size:11px;max-width:140px;flex-wrap:wrap}
 html[data-app-workflow="true"] [data-customer-test=true] .header-actions{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
 html[data-app-workflow="true"] [data-customer-test=true] .header-actions .button{min-height:44px;padding:4px;font-size:12px;line-height:1.1}
 html[data-app-workflow="true"] [data-customer-test=true] #walterStartOver{min-width:0;min-height:44px;padding:4px 8px;font-size:12px}
 html[data-app-audience="customer"] .app-stage-nav{gap:4px;margin:4px 0}
 html[data-app-audience="customer"] .app-stage-nav button{min-height:44px;flex-direction:row;gap:4px;font-size:12px;padding:4px}
 html[data-app-audience="customer"] .app-stage-nav svg{width:16px;height:16px}
}
/* Account-owned prompt reuse: a small, accessible control next to the prompt. */
.walter-prompt-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; }
html[data-app-workflow="true"] .walter-quick .walter-prompt-history-trigger { width:44px; min-width:44px; min-height:44px; padding:4px 10px; float:right; display:inline-flex; align-items:center; justify-content:center; }
.walter-prompt-history { width:min(540px, calc(100vw - 24px)); max-height:85dvh; overflow:auto; padding:16px; color:#121212; background:#fff; }
.walter-prompt-history article { display:grid; gap:8px; margin-top:16px; padding-top:12px; border-top:1px solid #121212; }
.walter-prompt-history article img { width:100%; height:auto; }
.walter-manual-help { padding:12px; }
html[data-app-audience="customer"] .editor-header { position:relative; flex-wrap:nowrap; }
.customer-header-menu { margin-left:auto; flex:0 0 auto; z-index:40; }
.customer-header-menu>summary { cursor:pointer; list-style:none; display:flex; align-items:center; justify-content:center; min-height:44px; }
.customer-header-menu>summary::-webkit-details-marker { display:none; }
.customer-header-menu-body { position:absolute; right:8px; top:100%; width:min(320px,calc(100vw - 24px)); max-height:75dvh; overflow:auto; background:#121212; border:1px solid #F96601; padding:12px; box-shadow:0 8px 20px #0008; }
html[data-app-audience="customer"] .customer-header-menu .header-actions { display:grid; grid-template-columns:1fr 1fr; width:100%; margin:8px 0; gap:8px; }
html[data-app-audience="customer"] .customer-header-menu .customer-navigation { display:grid; grid-template-columns:1fr; padding:0; gap:8px; }
html[data-app-audience="customer"] .customer-header-menu .customer-navigation>[aria-current] { display:none; }
html[data-app-audience="customer"] .editor-header #creditChip { position:static; transform:none; max-width:110px; font-size:10px; margin:0; }
@media(max-width:430px){html[data-app-audience="customer"] .editor-header .brand-logo{width:88px;height:auto}html[data-app-audience="customer"] .editor-header .brand-lockup{flex:1;min-width:0}}
