/* MS Letter Studio dark interface (Martin's mockup, 24 Oct 2026).
   Loaded last on index.html and studio.html. Look only: no behaviour, geometry or export change.
   Token values and contrast notes: design-brief/msls-dark-tokens.css. */

:root{
  color-scheme:dark;
  --page:#0b1424;--page-grid:#14213a;--card:#0f1b2f;--lens:#0e1a2e;--card-line:#26406a;--control-line:#4f72a8;--fade:#060c18e6;
  --ink:#f0f4fa;--muted:#96a6be;--kicker:#5a96ff;
  --blue:#2a7bff;--blue-button:#0e6afd;--blue-button-hover:#2b7dff;--input-fill:#101c31;
  --selected:0 0 0 1.5px #2a7bff,0 0 24px #2a7bff59;--viewport-grid:#2f415f;--tag-bg:#0e244e;--tag-text:#78aaff;
  --warn:#ffb547;--error:#ff6b5e;--ok:#3ddc97;
  --font:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
  --radius-card:12px;--radius-control:8px;
  --atelier:radial-gradient(75% 70% at 50% 45%,#2e4a76 0,#1a2d4c 50%,#0e1a2e 100%);
  /* tokens of the existing pages, pointed at the dark palette */
  --line:var(--card-line);--panel:var(--card);--blue-hover:var(--blue-button-hover);
  accent-color:var(--blue-button);
}
html{background:var(--page)}
body,body.home-refresh{
  background-color:var(--page);
  background-image:linear-gradient(var(--page-grid) 1px,transparent 1px),linear-gradient(90deg,var(--page-grid) 1px,transparent 1px);
  background-size:40px 40px;color:var(--ink);font-family:var(--font)
}
::selection{background:#2a7bff66;color:#fff}
a{color:var(--kicker)}
:is(a,button,input,select,textarea,summary,label,[tabindex]):focus-visible,
.home-refresh :is(a,button,input,select,summary):focus-visible{outline:2px solid var(--blue);outline-offset:2px}

/* ---------- shared: language menu, consent, privacy button ---------- */
.language-dropdown{color:var(--ink)}
.language-dropdown summary{background:var(--input-fill);border-color:var(--control-line);color:var(--ink)}
.language-dropdown img{border-color:var(--card-line)}
.language-options{background:var(--card);border-color:var(--card-line);box-shadow:0 12px 32px #0009}
.language-options button,.language-options a{background:transparent;color:var(--ink)}
.language-options button:hover,.language-options a:hover,.language-options [aria-current=page]{background:#16294a}
.msls-language small{color:var(--muted)}
#ms-analytics-panel{background:var(--card);color:var(--ink);border:1px solid var(--card-line);box-shadow:0 24px 64px #000a}
#ms-analytics-panel a{color:var(--kicker)}
#ms-analytics-panel button,#ms-analytics-settings{background:var(--blue-button);border-color:var(--blue-button);color:#fff}
#ms-analytics-panel button:hover,#ms-analytics-settings:hover{background:var(--blue-button-hover)}
.home-refresh #ms-analytics-settings{background:var(--card);color:var(--ink);border:1px solid var(--control-line)}

/* =================== HOME =================== */
.home-refresh h1,.home-refresh h2,.home-refresh h3{font-family:var(--font);letter-spacing:-.02em;color:var(--ink)}
.home-refresh header{position:relative;z-index:30;background:#0b1424e0;border-bottom:1px solid var(--card-line);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);min-height:72px}
.home-refresh header .brand{color:var(--ink)}
.brand-mark{background:var(--blue-button);color:#fff}
.home-refresh header nav a{color:var(--muted);text-decoration:none;font-weight:500}
.home-refresh header nav a:hover{color:var(--ink);text-decoration:none}
.home-refresh header .nav-studio,.home-refresh header .nav-studio:hover{background:var(--blue-button);color:#fff;border-radius:var(--radius-control);padding:10px 16px;font-weight:600}
.home-refresh header .nav-studio:hover{background:var(--blue-button-hover)}
.free-badge{display:inline-flex;align-items:center;padding:6px 12px;border:1px solid var(--card-line);border-radius:999px;background:var(--tag-bg);color:var(--tag-text);font-size:13px;font-weight:600;white-space:nowrap}

/* style picker: the mockup's "Choose a style" page */
.style-picker{padding:56px 0 40px;text-align:center}
.style-picker>p{margin-left:auto;margin-right:auto}
.style-picker .kicker{margin-top:0;margin-bottom:10px;color:var(--kicker);font-size:13px;font-weight:600;letter-spacing:.04em;text-transform:uppercase}
.style-picker h1{margin:0;font-size:clamp(30px,5vw,52px);line-height:1.08;font-weight:700;letter-spacing:-.03em}
.style-picker .lead{max-width:56ch;margin:14px auto 0;color:var(--muted);font-size:17px;line-height:1.5}
.style-tabs{display:inline-flex;flex-wrap:wrap;justify-content:center;gap:4px;margin:28px auto 26px;padding:4px;border:1px solid var(--card-line);border-radius:999px;background:var(--card)}
.style-tabs legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.style-tabs input{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none}
.style-tabs label{padding:9px 18px;border-radius:999px;color:var(--muted);font-size:15px;font-weight:600;cursor:pointer;white-space:nowrap}
.style-tabs label:hover{color:var(--ink)}
.style-tabs input:checked+label{background:var(--blue-button);color:#fff}
.style-tabs input:focus-visible+label{outline:2px solid var(--blue);outline-offset:2px}
.style-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:0;padding:0;list-style:none;text-align:left}
.style-picker:has(#kind-decorative:checked) .style-cards>li:not([data-kind=decorative]),
.style-picker:has(#kind-lit:checked) .style-cards>li:not([data-kind=lit]),
.style-picker:has(#kind-neon:checked) .style-cards>li:not([data-kind=neon]),
.style-picker:has(#kind-seasonal:checked) .style-cards>li:not([data-kind=seasonal]){display:none}
.style-cards a{display:flex;flex-direction:column;height:100%;overflow:hidden;border:1px solid var(--card-line);border-radius:14px;background:var(--card);color:var(--ink);text-decoration:none;transition:box-shadow .2s,border-color .2s,transform .2s}
.style-cards a:hover,.style-cards a:focus-visible{border-color:var(--blue);box-shadow:var(--selected);transform:translateY(-2px);outline:none}
.style-cards img{display:block;width:100%;height:auto;aspect-ratio:1/.8;object-fit:cover;object-position:center 45%;background:var(--card)}
.style-cards li[data-kind=decorative] img{aspect-ratio:1/.9;object-position:center 50%;-webkit-mask-image:linear-gradient(#000 92%,transparent);mask-image:linear-gradient(#000 92%,transparent)}
.style-cards strong{display:block;padding:6px 16px 0;font-size:18px;font-weight:700}
.style-cards span{display:block;padding:4px 16px 16px;color:var(--muted);font-size:14px;line-height:1.4}
.style-note{margin:18px 0 0;color:var(--muted);font-size:13px}
.style-cards a{position:relative}
.style-cards .render-tag{position:absolute;top:10px;left:10px;padding:3px 9px;border:1px solid var(--card-line);border-radius:999px;background:#0b1424d9;color:var(--muted);font-size:11px;font-weight:600;line-height:1.35;letter-spacing:.02em;pointer-events:none}
.style-cards>li{container-type:inline-size}
@container (max-width:259px){.style-cards .render-tag{position:static;align-self:flex-start;margin:10px 16px 0}}
@media(max-width:640px){@container (max-width:259px){.style-cards .render-tag{margin:10px 12px 0}}}
.style-picker .product-links{justify-content:center;margin-top:14px}
.home-refresh .product-links a{color:var(--kicker);font-weight:600}

/* hero with the name form, now the second section */
.home-refresh .studio-hero{background:var(--card);border:1px solid var(--card-line);color:var(--ink)}
.home-refresh .studio-hero h2{margin:0;color:var(--ink);font-size:clamp(2.3rem,4.6vw,4.4rem);line-height:1.02;letter-spacing:-.04em}
.home-refresh .studio-hero .lead,.home-refresh .hero-reassurance,.home-refresh .studio-hero .secondary,.home-refresh .hero-art figcaption{color:var(--muted)}
.home-refresh .studio-hero .secondary{color:var(--kicker)}
.home-refresh .hero-art figcaption strong{color:var(--ink)}
.name-start label{color:var(--ink)}
.name-start input,.name-start select{background:var(--input-fill);border:1px solid var(--control-line);border-radius:var(--radius-control);color:var(--ink)}
.name-start button{background:var(--blue-button);color:#fff;border-radius:var(--radius-control);font-family:var(--font)}
.name-start button:hover{background:var(--blue-button-hover)}

/* other home sections on dark cards */
.season-pair article,.season-pair article+article{background:var(--card);border:1px solid var(--card-line);color:var(--ink)}
.season-pair a{color:var(--kicker)}
.season-pair p{color:var(--muted)}
.home-refresh .capability-strip{background:var(--card);border-color:var(--card-line);color:var(--ink)}
.capability-strip span:before{color:var(--ok)}
.home-walkthrough{border-bottom-color:var(--card-line)}
.home-walkthrough>summary{color:var(--ink)}
.demo-video figcaption,.demo-transcript li{color:var(--muted)}
.print-card{background:var(--card);border-color:var(--card-line);box-shadow:none}
.print-copy h3{color:var(--ink)}
.print-copy small,.print-card-bottom small,.print-type,.print-copy>p{color:var(--muted)}
.print-card-bottom a{color:var(--kicker)}
.photo-count{background:#0b1424e6;border-color:var(--card-line);color:var(--ink)}
.home-refresh .print-photo{background:var(--lens)}
.gallery-note,.gallery-invitation p,.section-heading>p{color:var(--muted)}
.how-section{background:var(--card);border-color:var(--card-line)}
.workflow-grid article{background:var(--lens);border-color:var(--card-line)}
.workflow-grid p{color:var(--muted)}
.step-count{color:var(--kicker)}
.home-faq details,.home-faq details:first-child{border-color:var(--card-line)}
.home-faq summary{color:var(--ink)}
.home-faq details p{color:var(--muted)}
.home-faq summary::marker{color:var(--kicker)}
.closing-section{background:var(--card);border-color:var(--card-line)}
.closing-section p{color:var(--muted)}
.home-refresh footer{border-top-color:var(--card-line);color:var(--muted)}
.home-refresh footer strong{color:var(--ink)}
.button,.closing-section .button{background:var(--blue-button);color:#fff}
.button:hover{background:var(--blue-button-hover);color:#fff}
.photo-dialog{background:var(--card);color:var(--ink);border:1px solid var(--card-line)}
.photo-dialog button{background:var(--input-fill);border-color:var(--control-line);color:var(--ink)}
.photo-thumbnails button[aria-pressed=true]{outline:2px solid var(--blue)}

@media(max-width:900px){.style-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){
  .style-picker{padding:32px 0 28px}
  .style-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .style-cards strong{padding:10px 12px 0;font-size:16px}
  .style-cards span{padding:2px 12px 12px;font-size:13px}
  .style-tabs label{padding:8px 13px;font-size:14px}
  .home-refresh .free-badge{display:none}
}

/* =================== STUDIO =================== */
.ms-polished{
  color-scheme:dark;
  --ms-surface:var(--card);--ms-stage:var(--page);--ms-text:var(--ink);--ms-muted:var(--muted);
  --ms-line:var(--card-line);--ms-selected:#16294a;--ms-accent:#6fa3ff;--ms-action:var(--blue-button);--ms-border:var(--control-line)
}
body.ms-polished{background:var(--page);color:var(--ink)}
.ms-polished .workspace{background:var(--page)}

/* controls: visible borders (3:1), dark fill */
.ms-polished :is(input:not([type=checkbox],[type=radio],[type=range],[type=color],[type=file]),select,textarea){background-color:var(--input-fill);border:1px solid var(--control-line);border-radius:var(--radius-control);color:var(--ink)}
.ms-polished :is(input,select,textarea)::placeholder{color:#7f90aa}
.ms-polished button.quiet,.ms-polished .quiet{background:transparent;border:1px solid var(--control-line);color:var(--ink)}
.ms-polished button.quiet:hover{background:#16294a}
.ms-polished button.quiet:disabled{border-color:var(--card-line);color:#6c7c95}
/* the "Fix this before downloading" panel stays light: its buttons keep dark red text on white */
.ms-polished .ui-error button.quiet{background:#fff;border-color:#d9aaa4;color:#812d28}
.ms-polished .ui-error button.quiet:hover{background:#fbe1db;color:#6b221e}
.ms-polished :is(button.primary,.primary,button.shared-print,#uxMainPrint){background:var(--blue-button);border-color:var(--blue-button);color:#fff}
.ms-polished :is(button.primary,button.shared-print,#uxMainPrint):hover{background:var(--blue-button-hover)}

/* 3D view: navy « Atelier » backdrop (the canvas is transparent) */
.ms-polished #viewport,.ms-polished #viewport[data-background=dark]{background:var(--atelier);border:1px solid var(--card-line);border-radius:var(--radius-card)}
#viewport[data-background=dark] .dimension-overlay text{stroke:#0e1a2e}
.ms-polished .viewbottom,.ms-polished .viewhint{background:transparent;color:var(--muted)}
.ms-polished .finished-summary,.ms-polished .preview-parts,.ms-polished #sectionBox,.ms-polished .calibration-panel{background:var(--card);border-color:var(--card-line);color:var(--ink)}

/* first paint, before app.js builds the editor layout: the settings panel is dark too (no white flash);
   :where keeps it below the editor-layout rules that take over */
.ms-polished :where(#phoneSettings,main>aside){background:var(--card);color:var(--ink);border-right-color:var(--card-line)}
/* Halloween editor: its own page header, white until the shared header script runs */
body>header:has(>.badge){background:var(--card);color:var(--ink);border-bottom:1px solid var(--card-line)}
body>header:has(>.badge) :is(span,.badge){color:var(--muted)}

/* studio windows that kept the light theme: LED / wire-passage editor, cut parts, print quote, examples, feedback */
.ms-polished dialog:is(#ledEditorDialog,#splitViewer,#printQuote,#starterDialog,#feedbackDialog){background:var(--card);color:var(--ink);border:1px solid var(--card-line);color-scheme:dark}
.ms-polished dialog:is(#ledEditorDialog,#splitViewer,#printQuote,#starterDialog,#feedbackDialog)::backdrop{background:#050b16b3}
.ms-polished dialog:is(#ledEditorDialog,#splitViewer,#printQuote,#starterDialog,#feedbackDialog) :is(h1,h2,h3,h4,label,strong,summary,legend){color:var(--ink)}
.ms-polished dialog:is(#ledEditorDialog,#splitViewer,#printQuote,#starterDialog,#feedbackDialog) :is(p,small,.hint,.note,li){color:var(--muted)}
.ms-polished dialog:is(#ledEditorDialog,#splitViewer,#printQuote,#starterDialog,#feedbackDialog) :is(header,footer,aside,section,nav,form,fieldset,main,
  .led-editor-heading,.led-editor-tools,.led-editor-navigation,.led-editor-footer,.led-editor-status,.split-view-heading,.split-view-tabs,
  .quote-header,.quote-layout,.quote-design,.launch-dialog-head){background:transparent;border-color:var(--card-line)}
.ms-polished dialog:is(#ledEditorDialog,#splitViewer,#printQuote) :is(.led-editor-work,.led-editor-side,.split-view-work,.quote-design,.quote-image,#ledEditCanvas){background:var(--lens);border-color:var(--card-line)}
.ms-polished dialog:is(#ledEditorDialog,#splitViewer,#printQuote,#starterDialog,#feedbackDialog) button:not(.primary,[class*=primary],[type=submit]){background:transparent;border:1px solid var(--control-line);color:var(--ink)}
.ms-polished dialog:is(#ledEditorDialog,#splitViewer,#printQuote,#starterDialog,#feedbackDialog) button:not(.primary,[class*=primary],[type=submit]):hover{background:#16294a}
.ms-polished dialog:is(#ledEditorDialog,#splitViewer,#printQuote,#starterDialog,#feedbackDialog) button:disabled{border-color:var(--card-line);color:#6c7c95}
.ms-polished dialog:is(#ledEditorDialog,#splitViewer,#printQuote) :is([role=status],.quote-status,.quote-progress li[aria-current]){color:var(--ink)}
/* the Backlit, Neon, Decorative and split views paint the same lit-centre stage (mslsStage in app.js and
   neon-neon-view-*.js); this matches it before the first frame */
.ms-polished :is(.halo-view,.neon-studio .neon-view,#nlPreview),.ms-polished dialog#splitViewer .split-view-canvas{background:var(--atelier);border-color:var(--card-line)}
/* preview-busy.js: the studio's "updating" line, shown on the 3D preview while a rebuild takes a moment */
.msls-preview-busy{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:3;display:flex;align-items:center;gap:10px;max-width:calc(100% - 34px);padding:9px 16px;border:1px solid var(--card-line);border-radius:999px;background:#0b1424e6;color:var(--ink);font-size:14px;pointer-events:none;box-shadow:0 6px 24px #0007}
.msls-preview-busy[hidden]{display:none}
.msls-spinner{flex:none;width:16px;height:16px;border:2px solid #ffffff33;border-top-color:var(--blue);border-radius:50%;animation:msls-spin .8s linear infinite}
@keyframes msls-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.msls-spinner{animation-duration:2.4s}}
/* the wire-passage drawing paints its own light sheet; the light letters and coloured holes read well on navy */
.ms-polished #ledEditCanvas svg>rect[fill="#f6f8fa"]{fill:var(--lens)}
.ms-polished #feedbackPreview,.ms-polished #quoteStatus{background:var(--lens);border:1px solid var(--card-line);color:var(--ink)}
/* the studio adds its language menu to every header; inside these windows it only takes room */
.ms-polished dialog:is(#ledEditorDialog,#splitViewer,#printQuote,#starterDialog,#feedbackDialog) .msls-language{display:none}

/* lightbox model pictograms keep their light box with dark letters (the letters were made white for the other pictograms) */
:is(#designCards,#selectedDesign,#selectedDesignGraphic,body) .design-pictogram svg :is(path,rect)[fill="#e6eef3"]~text{fill:#20394d}

/* panel cards that kept the light theme (Build sections, shape picker, materials, print readiness):
   dark surfaces with the theme's ink and muted text */
.ms-polished :is(#step-build>section,#shapePicker,.material-card,#buildMaterials .material-card,.readiness-summary,.quote-entry,.halo-fit-summary,.assembly-choice){
  background:var(--card);border-color:var(--card-line);color:var(--ink)}
.ms-polished :is(#step-build>section,#shapePicker,.material-card,.readiness-summary,.quote-entry) :is(h3,h4,label,summary,li,strong,output){color:var(--ink)}
.ms-polished :is(#step-build>section,#shapePicker,.material-card,.readiness-summary,.quote-entry,.halo-fit-summary) :is(.hint,p,small,em,.pictogram-key span){color:var(--muted)}
.ms-polished .readiness-summary{border-left-color:var(--blue)}
.ms-polished .readiness-summary a,.ms-polished .quote-entry a{color:var(--tag-text)}
.ms-polished :is(.construction-filters button,.body-style-options button,.shape-tile,#browseSVG,.assembly-choice>button){background:var(--lens);border:1px solid var(--control-line);color:var(--ink)}
.ms-polished :is(.construction-filters button,.body-style-options button,.shape-tile,.assembly-choice>button):hover{border-color:var(--blue)}
.ms-polished :is(.construction-filters button,.body-style-options button,.shape-tile)[aria-pressed=true],
.ms-polished #constructionCards .assembly-choice>button[aria-pressed=true]{background:var(--tag-bg);border-color:var(--blue);color:#fff;box-shadow:var(--selected)}
.ms-polished #constructionCards .assembly-choice>button[aria-pressed=true]:after{color:var(--tag-text)}
.ms-polished .assembly-choice :is(.construction-recipe,small){color:var(--muted)}
.ms-polished #constructionCards :is(.construction-recipe,.assembly-description){color:var(--muted)}
.ms-polished #constructionCards .unavailable{color:var(--muted)!important}
.ms-polished :is(.material-summary-value,#buildFit>summary small){color:var(--muted)}
.ms-polished #checks{color:var(--muted)}
.ms-polished #checks .warn{color:var(--warn)}
/* Backlit settings: section headings and notes */
.ms-polished .halo-settings :is(h3,h4),.ms-polished #haloLighting h4{color:var(--ink)}
.ms-polished .halo-settings :is(.dc-note,.ux-help p),.ms-polished #haloLighting p{color:var(--muted)}

/* shape and font tiles: names on whole words (they broke letter by letter in the narrow panel) */
.ms-polished #shapePicker .shape-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}
.ms-polished .shape-tile{flex-direction:column;align-items:center;justify-content:center;gap:4px;text-align:center;padding:8px 4px}
.ms-polished .shape-tile span{margin:0;overflow-wrap:normal;hyphens:none;font-size:12px;line-height:1.25}
.ms-polished .font-gallery .font-sample{white-space:nowrap;flex:none}

/* preview message: a compact dark note at the foot of the view instead of a full-width beige bar over its top tools.
   The app keeps the bottom of the view clear of the model (and the top for the width measurement). */
.ms-polished #previewStatus:not([data-error=true]){background:#0e244ef0;border:1px solid var(--warn);color:var(--ink)}
@media(min-width:961px){
  .ms-polished #previewStatus{top:auto;bottom:10px;left:50%;right:auto;transform:translateX(-50%);width:max-content;max-width:calc(100% - 34px)}
  .ms-polished #viewport:has(>#previewStatus:not([hidden]):not(:empty)) .viewhint{visibility:hidden}
  /* the one-line size summary repeats the Finished size card just above the view, and over the view it lands on
     the view-mode buttons or on the model itself */
  .ms-polished #dimensionOverlay .dimension-summary{display:none}
}

/* studio top bar: one row, quiet buttons, blue Print files */
.ms-polished>header{background:var(--card);border-bottom:1px solid var(--card-line);min-height:60px;padding:10px 16px;gap:10px}
.ms-polished>header .brand{color:var(--ink)}
.ms-polished>header>.msls-language{flex:0 0 auto;width:auto;margin:0}
.ms-polished>header .msls-language summary{min-height:38px;padding:7px 12px}
.ms-polished .studio-help-nav{gap:6px}
.ms-polished .studio-help-nav :is(button,a){min-height:38px;padding:8px 12px;border:1px solid var(--control-line);border-radius:var(--radius-control);background:transparent;color:var(--ink);text-decoration:none;font-size:13px}
.ms-polished .studio-help-nav :is(button,a):hover{background:#16294a}
.ms-polished .studio-help-nav :is(button,a):disabled{border-color:var(--card-line);color:#6c7c95}
.ms-polished .studio-help-nav #uxMainPrint{background:var(--blue-button);border-color:var(--blue-button);color:#fff;font-weight:600}
.designer-halloween-banner{background:var(--tag-bg);border:1px solid var(--card-line);color:var(--ink)}
.designer-halloween-banner:hover{background:#16294a}
.designer-halloween-banner small{color:var(--muted)}
@media(min-width:1100px){.ms-polished>header{flex-wrap:nowrap}}

/* shared header used by the other workspaces */
.shared-designer-header{background:var(--card)!important;color:var(--ink);border-bottom-color:var(--card-line)}
.shared-brand{color:var(--ink)}.shared-brand b{background:var(--blue-button);color:#fff}
.shared-season{background:var(--tag-bg);border-color:var(--card-line);color:var(--ink)}
.shared-menu button,.shared-menu>a,.shared-projects>summary,.shared-menu-toggle{background:transparent;color:var(--ink);border-color:var(--control-line)!important}
.shared-menu .shared-print{background:var(--blue-button)!important;border-color:var(--blue-button)!important;color:#fff}
.shared-projects>div{background:var(--card);border-color:var(--card-line)}.shared-projects a{color:var(--ink)}
.shared-unavailable{color:var(--muted)!important}

/* left icon rail: the five steps stand in a column beside the panel (desktop) */
.ms-polished .step-nav button,.ms-polished .ux-step-nav button{border-radius:10px}
.ms-polished .step-nav button[aria-selected=true],.ms-polished .ux-step-nav button[aria-pressed=true]{color:#fff;background:#16294a}
.ms-polished .step-nav button[aria-selected=true] svg,.ms-polished .ux-step-nav button[aria-pressed=true] svg{color:var(--kicker)}
@media(min-width:961px){
  .ms-polished .ms-editor-layout{grid-template-columns:400px minmax(0,1fr)}
  .ms-polished .ms-editor-layout>aside:has(>.step-nav){display:grid;grid-template-columns:78px minmax(0,1fr);column-gap:18px;align-content:start;padding-left:0;
    background:linear-gradient(90deg,var(--page) 78px,var(--card-line) 78px 79px,var(--card) 79px) local}
  .ms-polished .ms-editor-layout>aside:has(>.step-nav)>*{grid-column:2;min-width:0}
  .ms-polished .ms-editor-layout>aside>.step-nav{grid-column:1;grid-row:1/span 40;align-self:start;position:sticky;top:-18px;display:flex;flex-direction:column;gap:6px;
    margin:-18px 0 0;padding:16px 7px;border:0;background:transparent}
  .ms-polished .ms-editor-layout>aside>.step-nav button{min-height:64px;padding:8px 2px;font-size:11.5px;line-height:1.2}
}

/* 3D view laid out like the mockup (desktop): view modes top-left, display options top-right,
   a bottom bar under the view with assembly on the left and Grid / Dimensions / scale on the right.
   The colour and visibility chips get their own row under the bar: drawn over the view, they hid measurements,
   and a shorter view would make the app fall back to its one-line size summary. */
@media(min-width:961px){
  .ms-polished #phonePreview.workspace{display:grid;grid-template-columns:minmax(0,1fr);
    grid-template-areas:"head" "summary" "stage" "bar" "parts" "assembly" "more";align-content:start;row-gap:0;padding:14px 18px 24px}
  .ms-polished #phonePreview>*{grid-column:1;min-width:0}
  .ms-polished #phonePreview>.viewhead{grid-area:head;margin:0 0 10px;align-items:center}
  .ms-polished #phonePreview>.finished-summary{grid-area:summary;margin:0 0 12px}
  .ms-polished #phonePreview>#viewport{grid-area:stage;height:clamp(420px,calc(100dvh - 300px),980px);margin:0;border-radius:12px 12px 0 0;border-bottom:0}
  .ms-polished #phonePreview::after{content:"";grid-area:bar;z-index:0;background:var(--card);border:1px solid var(--card-line);border-radius:0 0 12px 12px}
  .ms-polished #phonePreview>.viewbottom{grid-area:bar;z-index:1;align-self:center;justify-self:start;margin:0;padding:10px 12px;min-height:56px;border:0;background:transparent;flex-wrap:wrap;gap:8px}
  .ms-polished #phonePreview>.assembly-summary{grid-area:assembly;margin:10px 2px 0}
  .ms-polished #phonePreview>:is(#sectionBox,#calibrationPanel,.metrics,.note,#message){grid-area:auto;margin-top:16px}

  /* toolbar spans the view and its bar; its first line sits at the top, the second in the bar */
  .ms-polished #phonePreview>.guide-toolbar{grid-row:stage-start/bar-end;z-index:2;display:flex;flex-wrap:wrap;align-content:space-between;align-items:center;gap:8px;
    margin:0;padding:12px;pointer-events:none;background:transparent;border:0}
  .ms-polished #phonePreview>.guide-toolbar>*{pointer-events:auto}
  .ms-polished #phonePreview>.guide-toolbar::after{content:"";order:2;flex-basis:100%;height:0}
  .ms-polished #phonePreview>.guide-toolbar>.viewtools{order:1;margin-right:auto}
  .ms-polished #phonePreview>.guide-toolbar>:is(label:has(+#viewBackground),#viewBackground){order:1}
  .ms-polished #phonePreview>.guide-toolbar>:is(label:not(:has(+#viewBackground)),#gridScale){order:3}
  .ms-polished #phonePreview>.guide-toolbar>label:not(:has(+#viewBackground)):first-of-type{margin-left:auto}
  .ms-polished #phonePreview>.guide-toolbar>#gridScale{padding:6px 10px;border:1px solid var(--control-line);border-radius:var(--radius-control);color:var(--ink);font-size:13px}

  /* colour and visibility chips: a card row under the view's bar */
  .ms-polished #phonePreview>.preview-parts{grid-area:parts;align-items:center;margin:10px 0 0;padding:8px;
    background:var(--card);border:1px solid var(--card-line);border-radius:10px}
  /* "Lights on" settings: a card under the chips (not over the model); the view gets shorter so both stay on screen */
  .ms-polished #phonePreview:has(>.lit-preview-controls:not([hidden])){grid-template-areas:"head" "summary" "stage" "bar" "parts" "lit" "assembly" "more"}
  .ms-polished #phonePreview:has(>.lit-preview-controls:not([hidden]))>#viewport{height:clamp(340px,calc(100dvh - 470px),980px)}
  .ms-polished #phonePreview>.lit-preview-controls{grid-area:lit;margin:10px 0 0;padding:8px 12px}
  .ms-polished #phonePreview>.lit-preview-controls input[type=range]{width:150px}
  .ms-polished #phonePreview>.lit-preview-controls :is(.hint,.preview-only-note){margin:4px 0;font-size:12px}
}

/* view toolbar pieces, all widths */
.ms-polished .viewtools{display:inline-flex;gap:2px;padding:3px;border:1px solid var(--card-line);border-radius:10px;background:#0b1424d9}
.ms-polished .viewtools button{border:0;border-radius:7px;background:transparent;color:var(--muted)}
.ms-polished .viewtools button:hover{color:var(--ink)}
.ms-polished .viewtools button.active,.ms-polished .viewtools button[aria-pressed=true]{background:var(--blue-button);color:#fff}
.ms-polished .guide-toolbar label{color:var(--ink)}
.ms-polished .viewhint{color:var(--muted);background:transparent}

/* fit the mockup proportions: thin top bar, compact heading, the view fills the screen */
@media(min-width:961px){
  .ms-polished .ms-editor-layout>aside:has(>.step-nav){grid-auto-rows:max-content}
  .ms-polished .studio-help-nav :is(button,a){padding:7px 10px}
  .ms-polished .studio-help-nav :is(button,a):not(#uxMainPrint) svg{display:none}
  .ms-polished>header .beta{font-size:11px;letter-spacing:.06em;color:var(--muted)}
  .ms-polished>header .designer-halloween-banner{padding:3px 8px}
  .ms-polished>header .designer-halloween-banner img{width:24px;height:24px}
  .ms-polished #phonePreview>.viewhead>div:first-child{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:12px}
  .ms-polished #phonePreview>.viewhead :is(h1,h2,h3){margin:0;font-size:18px}
  .ms-polished #phonePreview>.viewhead p{margin:0;font-size:12px;color:var(--muted)}
  .ms-polished #phonePreview>.finished-summary{padding:8px 12px;column-gap:14px;flex-wrap:wrap;align-items:baseline}
  .ms-polished #phonePreview>.finished-summary :is(p,small,span){margin:0}
  .ms-polished #phonePreview>#viewport{height:clamp(400px,calc(100dvh - 290px),980px)}
  .ms-polished #phonePreview>.preview-parts{gap:6px;padding:6px}
  .ms-polished #phonePreview>.preview-parts :is(button,label){min-height:32px;padding:5px 10px;font-size:12.5px}
  .ms-polished #phonePreview>.preview-parts .preview-only-note{order:3;flex:0 1 auto;width:auto;font-size:11px;margin:0 4px 0 auto}
  /* privacy button: small, at the foot of the step rail instead of over the view's tools */
  body.ms-polished #ms-analytics-settings{left:6px;right:auto;bottom:10px;width:66px;min-height:0;padding:6px 4px;font-size:11px;line-height:1.25;white-space:normal;
    background:transparent;border:1px solid var(--card-line);color:var(--muted);border-radius:8px}
}

/* ---------- project picker (welcome dialog and the panel's project menu) ---------- */
.ms-polished dialog,dialog.ux-project-welcome,dialog.ux-project-workspace,dialog.design-canvas{color-scheme:dark}
dialog#projectWelcome.ux-project-welcome{background:var(--card);color:var(--ink);border:1px solid var(--card-line);box-shadow:0 30px 80px #000c}
dialog#projectWelcome::backdrop{background:#050b16b3}
.ux-project-welcome :is(h1,h2,h3,strong){color:var(--ink)}
.ux-project-welcome p{color:var(--muted)}
.ux-project-card,.ux-product-card .ux-project-card{background:var(--lens);border:1px solid var(--card-line);color:var(--ink)}
.ux-project-card:hover,.ux-project-card:focus-visible{border-color:var(--blue);box-shadow:var(--selected)}
.ux-project-card .ux-product-copy strong{color:var(--ink)}
.ux-project-card .ux-product-hint,.ux-product-copy small{color:var(--muted)}
.ux-project-picture,.ux-project-mini{background:var(--lens)}
.ux-product-info{background:var(--input-fill);border:1px solid var(--control-line);color:var(--ink)}
.ux-all-projects,.ms-polished .ux-all-projects{background:transparent;border:1px solid var(--control-line);color:var(--kicker)}
.ux-project-options{background:var(--card)}
.season-banner.welcome-season,#newProductEntry{background:var(--tag-bg);border:1px solid var(--card-line);color:var(--ink)}
.season-banner.welcome-season :is(strong,span,small){color:var(--ink)}
.ux-welcome-footer{color:var(--muted)}

/* panel pictograms (Separate letters etc.) on the dark lens */
.design-pictogram,.ms-polished .design-pictogram{background:var(--lens);border:1px solid var(--card-line)}
.design-pictogram svg text{fill:var(--ink)}

/* ---------- decorative workspace ---------- */
.nonlit-studio,.nonlit-studio .nl-layout{background:var(--page);color:var(--ink)}
.nonlit-studio aside.nl-settings{background:var(--card);border-color:var(--card-line);color:var(--ink)}
.nonlit-studio :is(h2,h3,h4,legend){color:var(--ink)}
.nonlit-studio :is(.ux-note,.nl-note,small){color:var(--muted)}
.nonlit-studio [data-nl-preset]{background:var(--lens);border:1px solid var(--card-line);color:var(--ink)}
.nonlit-studio [data-nl-preset]:hover,.nonlit-studio [data-nl-preset][aria-pressed=true]{border-color:var(--blue);box-shadow:var(--selected)}
.nonlit-studio [data-nl-preset] img{background:var(--lens)}
.nonlit-studio [data-nl-preset] img{-webkit-mask-image:radial-gradient(circle closest-side,#000 78%,transparent);mask-image:radial-gradient(circle closest-side,#000 78%,transparent)}
/* the style pictures: our own renders on navy (same models as the home page cards) */
img[src^="/images/decorative/solid.webp"]{content:url(/images/decorative/dark/solid.webp)}
img[src^="/images/decorative/outline.webp"]{content:url(/images/decorative/dark/outline.webp)}
img[src^="/images/decorative/bevel.webp"]{content:url(/images/decorative/dark/bevel.webp)}
img[src^="/images/decorative/lowpoly-v3.webp"]{content:url(/images/decorative/dark/lowpoly-v3.webp)}
img[src^="/images/decorative/faceted.webp"]{content:url(/images/decorative/dark/faceted.webp)}
img[src^="/images/decorative/brick.webp"]{content:url(/images/decorative/dark/brick.webp)}
img[src^="/images/decorative/ridge.webp"]{content:url(/images/decorative/dark/ridge.webp)}
img[src^="/images/decorative/stone.webp"]{content:url(/images/decorative/dark/stone.webp)}
img[src^="/images/decorative/wood.webp"]{content:url(/images/decorative/dark/wood.webp)}
img[src^="/images/decorative/bubble.webp"]{content:url(/images/decorative/dark/bubble.webp)}
img[src^="/images/decorative/tray.webp"]{content:url(/images/decorative/dark/tray.webp)}
img[src^="/images/decorative/moss.webp"]{content:url(/images/decorative/dark/moss.webp)}
img[src^="/images/decorative/monogram.webp"]{content:url(/images/decorative/dark/monogram.webp)}

/* ---------- backlit and neon workspaces (shared halo layout) ---------- */
.halo-studio,.halo-studio .halo-layout,.halo-studio .halo-main{background:var(--page);color:var(--ink)}
.halo-studio .halo-header{background:var(--card);border-bottom:1px solid var(--card-line);color:var(--ink)}
.halo-studio :is(h2,h3,h4,legend,label){color:var(--ink)}
.halo-studio aside.halo-settings{background:var(--card);border-color:var(--card-line);color:var(--ink)}
.halo-studio :is(.dc-note,.ux-note,small,.neon-view-hint){color:var(--muted)}
.halo-studio nav.ux-step-nav,.halo-studio .neon-steps{background:var(--card);border-color:var(--card-line)}
.halo-studio nav.ux-step-nav button,.halo-studio .neon-steps button{background:transparent;border:0;color:var(--muted);border-radius:10px}
.halo-studio nav.ux-step-nav button.active,.halo-studio .neon-steps button:is(.active,[aria-selected=true],[aria-pressed=true]){background:#16294a;color:#fff}
.halo-studio .backlit-viewhead span{color:var(--muted)}
.halo-studio :is(.neon-summary,.halo-summary,.neon-view-hint){background:var(--card);border-color:var(--card-line);color:var(--ink)}
.halo-studio .halo-toolbar button,.halo-studio .neon-models>button{background:transparent;border:1px solid var(--control-line);color:var(--ink)}
.halo-studio .halo-toolbar button:is(.active,[aria-pressed=true]),.halo-studio .neon-models>button:is(.active,[aria-pressed=true]){background:var(--blue-button);border-color:var(--blue-button);color:#fff}
.halo-studio .halo-view{border:1px solid var(--card-line);border-radius:var(--radius-card)}
.halo-studio .neon-row label{color:var(--ink)}
.halo-studio .neon-messages li.neon-warning{background:var(--card);border-left:4px solid var(--warn);color:var(--ink)}

/* ---------- design your own (canvas) ---------- */
dialog.design-canvas{background:var(--page);color:var(--ink);border-color:var(--card-line)}
.design-canvas .dc-header{background:var(--card);border-bottom:1px solid var(--card-line)}
.design-canvas :is(.dc-layers,.dc-properties,.dc-inspector-tabs){background:var(--card);border-color:var(--card-line);color:var(--ink)}
.design-canvas :is(h2,h3,summary,li){color:var(--ink)}
.design-canvas :is(small,label,.dc-approval-status,p){color:var(--muted)}
.design-canvas .dc-stage{background:var(--lens)}
.design-canvas .dc-viewtools{background:var(--card);border-bottom:1px solid var(--card-line)}
.design-canvas .dc-viewtools label{color:var(--ink)}
.design-canvas button{background:transparent;border:1px solid var(--control-line);color:var(--ink)}
.design-canvas button:disabled{border-color:var(--card-line);color:#6c7c95}
.design-canvas button:is(.primary,.dc-apply){background:var(--blue-button);border-color:var(--blue-button);color:#fff}
.design-canvas .dc-inspector-tabs button:is(.active,[aria-selected=true],[aria-pressed=true]){background:#16294a;border-color:var(--blue)}
/* picker and decorative fixes: the app's own rules are more specific here */
#projectWelcome :is(h1,h2,h3),#projectWelcome .ux-product-copy strong{color:var(--ink)}
:is(#projectWelcome,.ux-project-picker,.ux-welcome-grid) .ux-project-card{background:var(--lens);border-color:var(--card-line);color:var(--ink)}
:is(#projectWelcome,.ux-project-picker,.ux-welcome-grid) .ux-project-picture{background:#e9e8e4}
:is(#projectWelcome,.ux-project-picker) .ux-product-eyebrow{color:var(--kicker)}
.nonlit-studio .nl-style-thumbnail{background:var(--lens)}

/* =================== HOME: website mockup (24 Oct) =================== */
.home-refresh header .brand strong{text-transform:uppercase;letter-spacing:.08em;font-weight:500;font-size:17px}
.home-refresh header nav{gap:22px}
.home-refresh header .nav-search{display:inline-flex;align-items:center;color:var(--ink)}
.home-refresh header .nav-search:hover{color:var(--kicker)}

.home-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);align-items:center;gap:24px;padding:40px 0 8px;position:relative}
.home-hero::before{content:"";position:absolute;inset:-40px 0 0 30%;z-index:-1;background:radial-gradient(50% 55% at 62% 48%,#1d4fa83d,transparent 70%);pointer-events:none}
.hero-tag{display:inline-block;margin:0 0 18px;padding:6px 14px;border:1px solid var(--blue);border-radius:999px;color:#9cc0ff;font-size:12px;font-weight:600;letter-spacing:.12em;text-transform:uppercase}
.home-hero h1{margin:0;font-size:clamp(40px,5.4vw,76px);line-height:1;letter-spacing:-.04em;font-weight:800;color:var(--ink)}
.home-hero .lead{margin:22px 0 0;max-width:34ch;color:#c7d3e6;font-size:clamp(17px,1.6vw,21px);line-height:1.45}
.hero-buttons{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin-top:28px}
.button-primary,.button-outline{display:inline-flex;align-items:center;gap:10px;min-height:50px;padding:12px 22px;border-radius:8px;font-size:16px;font-weight:600;text-decoration:none}
.button-primary{background:var(--blue-button);color:#fff}
.button-primary:hover{background:var(--blue-button-hover)}
.button-outline{border:1px solid #9fb2cf;color:var(--ink)}
.button-outline:hover{border-color:var(--ink);background:#ffffff0d}
.quiet-link{color:var(--kicker);font-weight:600;text-decoration:none}
.home-hero .hero-reassurance{margin:16px 0 0;color:var(--muted);font-size:14px}
.home-hero-art{margin:0;position:relative}
.home-hero-art img{display:block;width:100%;height:auto;-webkit-mask-image:radial-gradient(70% 70% at 50% 50%,#000 55%,transparent 100%);mask-image:radial-gradient(70% 70% at 50% 50%,#000 55%,transparent 100%)}
.home-hero-art figcaption,.projects-banner figcaption{position:absolute;right:8px;bottom:8px;padding:4px 10px;border-radius:999px;background:#0b1424cc;color:var(--muted);font-size:12px}

.explore-styles{padding:28px 0 40px}
.explore-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:14px}
.explore-head h2{margin:0;color:var(--ink);font-size:13px;font-weight:700;letter-spacing:.14em;text-transform:uppercase}
.explore-head a{color:var(--kicker);font-weight:600;text-decoration:none;font-size:15px}
.explore-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0;padding:0;list-style:none}
.explore-cards a{position:relative;display:grid;grid-template-columns:46% minmax(0,1fr);align-items:start;min-height:150px;overflow:hidden;border:1px solid var(--card-line);border-radius:10px;background:var(--card);color:var(--ink);text-decoration:none;transition:border-color .2s,box-shadow .2s}
.explore-cards a:hover,.explore-cards a:focus-visible{border-color:var(--blue);box-shadow:var(--selected);outline:none}
.explore-cards img{display:block;width:100%;height:100%;aspect-ratio:1;object-fit:cover}
.explore-cards span{display:flex;flex-direction:column;gap:6px;padding:18px 14px 44px}
.explore-cards strong{font-size:17px}
.explore-cards small{color:var(--muted);font-size:14px;line-height:1.4}
.explore-cards i{position:absolute;right:12px;bottom:12px;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#16294a;color:var(--ink);font-style:normal}

.projects-banner{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);align-items:center;gap:20px;margin:10px 0 40px;padding:0 0 0 clamp(20px,4vw,56px);overflow:hidden;border:1px solid var(--card-line);border-radius:16px;
  background:radial-gradient(60% 80% at 75% 55%,#f2730a33,transparent 70%),linear-gradient(90deg,var(--card) 35%,#14223b)}
.projects-banner h2{margin:6px 0 0;font-size:clamp(32px,3.6vw,48px);line-height:1.04;letter-spacing:-.03em;color:var(--ink)}
.projects-banner p{color:#c7d3e6;font-size:17px;line-height:1.5;max-width:36ch}
.projects-banner .kicker{margin:0;color:var(--muted);font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase}
.projects-banner figure{position:relative;margin:0}
.projects-banner img{display:block;width:100%;height:auto;-webkit-mask-image:linear-gradient(90deg,transparent,#000 22%);mask-image:linear-gradient(90deg,transparent,#000 22%)}

@media(max-width:1100px){.explore-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){
  .home-hero{grid-template-columns:1fr;padding-top:24px}
  .home-hero-art{order:-1;max-width:560px;margin:0 auto}
  .projects-banner{grid-template-columns:1fr;padding:28px 20px 0}
  .projects-banner img{-webkit-mask-image:linear-gradient(180deg,transparent,#000 20%);mask-image:linear-gradient(180deg,transparent,#000 20%)}
}
@media(max-width:600px){
  .explore-cards{grid-template-columns:1fr}
  .explore-cards a{min-height:120px;grid-template-columns:120px minmax(0,1fr)}
  .home-hero h1{font-size:40px}
  .button-primary,.button-outline{flex:1 1 100%;justify-content:center}
}
.ms-polished .font-preview{background:var(--lens);color:var(--ink);border-color:var(--card-line)}
body.ms-polished #ms-analytics-settings{background:var(--card);border:1px solid var(--control-line);color:var(--ink)}
/* leftovers where the app's own rules are more specific */
:is(#projectWelcome,.ux-project-picker,.ux-welcome-grid,.ux-project-options) .ux-product-hint{color:var(--muted)}
:is(#projectWelcome,.ux-project-picker,.ux-welcome-grid,.ux-project-options) .ux-product-info{background:var(--input-fill);border-color:var(--control-line);color:var(--ink)}
#projectWelcome #welcomeLast{color:var(--kicker)}
:is(#designCards,#selectedDesign) .design-pictogram{background:var(--lens);border-color:var(--card-line);color:var(--ink)}
:is(#designCards,#selectedDesign) .design-pictogram svg text{fill:var(--ink)}
:is(#haloStudio,#neonStudio) nav.ux-step-nav{background:var(--card);border-color:var(--card-line)}
:is(#haloStudio,#neonStudio) nav.ux-step-nav button{background:transparent;color:var(--muted)}
:is(#haloStudio,#neonStudio) nav.ux-step-nav button.active{background:#16294a;color:#fff}
#neonStudio .neon-workspace-title h2{color:var(--ink)}
#neonStudio .neon-workspace-title span{color:var(--muted)}
.ms-polished :is(#designCards,#selectedDesign) .design-pictogram,.ms-polished #selectedDesignGraphic{background:var(--lens)}
#haloStudio[data-unified] .halo-settings nav.ux-step-nav{background:var(--card)}
#haloStudio[data-unified] .halo-settings nav.ux-step-nav button.active{background:#16294a;color:#fff}
#haloStudio[data-unified] .halo-settings nav.ux-step-nav button:not(.active){background:transparent;color:var(--muted)}
#nonlitStudio [data-nl-preset] img.nl-style-thumbnail{background:var(--card);object-fit:cover}
#nonlitStudio [data-nl-preset] img.nl-style-thumbnail{object-fit:contain}
#haloStudio[data-unified] .halo-settings nav.ux-step-nav{box-shadow:0 -20px 0 var(--card)}

/* =================== Decorative, Backlit and Neon laid out like the mockup (desktop) =================== */
@media(min-width:961px){
  /* one-row top bars */
  :is(#nonlitStudio,#haloStudio)>header.shared-designer-header{flex-wrap:nowrap!important;min-height:60px;padding:10px 16px!important;gap:10px;position:relative}
  :is(#nonlitStudio,#haloStudio) .shared-menu{flex-wrap:nowrap;gap:6px}
  :is(#nonlitStudio,#haloStudio) :is(.shared-menu button,.shared-menu>a,.shared-projects>summary){font:500 13px var(--font)!important;padding:7px 10px!important;min-height:38px}
  :is(#nonlitStudio,#haloStudio,#neonStudio)>header>.msls-language{flex:0 0 auto;width:auto;margin:0}
  :is(#nonlitStudio,#haloStudio,#neonStudio)>header .msls-language summary{min-height:38px;padding:7px 12px}
  #haloStudio>header.shared-designer-header{padding-bottom:18px!important}
  #haloStudio .shared-unavailable{position:absolute;right:16px;bottom:3px;width:auto!important;font-size:11px!important}
  #neonStudio>header.halo-header{flex-wrap:nowrap;min-height:60px;padding:10px 16px;gap:10px}
  #neonStudio>header.halo-header #neonClose{margin-left:auto}
  #neonStudio>header.halo-header :is(#neonClose,#neonPrintStep){min-height:38px;padding:7px 12px}

  /* the steps become a vertical rail beside the panel */
  #nonlitStudio .nl-layout:has(>aside>nav.ux-step-nav),#haloStudio .halo-layout,#neonStudio .halo-layout{grid-template-columns:400px minmax(0,1fr)}
  :is(#nonlitStudio aside.nl-settings,#haloStudio aside.halo-settings):has(>nav.ux-step-nav),#neonStudio aside.neon-settings:has(>.neon-steps){
    display:grid;grid-template-columns:78px minmax(0,1fr);column-gap:18px;grid-auto-rows:max-content;align-content:start;padding-top:0;padding-left:0;
    background:linear-gradient(90deg,var(--page) 78px,var(--card-line) 78px 79px,var(--card) 79px) local}
  :is(#nonlitStudio aside.nl-settings,#haloStudio aside.halo-settings):has(>nav.ux-step-nav)>*,#neonStudio aside.neon-settings:has(>.neon-steps)>*{grid-column:2;min-width:0}
  :is(#nonlitStudio aside.nl-settings,#haloStudio aside.halo-settings):has(>nav.ux-step-nav)>:first-child,#neonStudio aside.neon-settings:has(>.neon-steps)>:first-child{margin-top:16px}
  #haloStudio[data-unified] .halo-settings>nav.ux-step-nav,:is(#nonlitStudio aside.nl-settings,#haloStudio aside.halo-settings)>nav.ux-step-nav,#neonStudio aside.neon-settings>.neon-steps{
    grid-column:1;grid-row:1/span 40;align-self:start;position:sticky;top:0;display:flex;flex-direction:column;gap:6px;margin:0;padding:16px 7px;border:0;background:transparent;box-shadow:none}
  #nonlitStudio .nl-settings>nav.ux-step-nav button,#haloStudio .halo-settings>nav.ux-step-nav button,#neonStudio .neon-settings>.neon-steps button{
    display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:100%;min-height:64px;padding:8px 2px;border:0;border-radius:10px;font-size:11.5px;line-height:1.2}
  #nonlitStudio .nl-settings>nav.ux-step-nav button[aria-pressed=true],#neonStudio .neon-steps button[aria-selected=true]{background:#16294a;color:#fff}
  :is(#nonlitStudio,#haloStudio,#neonStudio) :is(nav.ux-step-nav,.neon-steps) button:is(.active,[aria-pressed=true],[aria-selected=true]) svg{color:var(--kicker)}

  /* the shared bottom bar under each 3D view */
  :is(#nonlitStudio .nl-main,#haloStudio .halo-main,#neonStudio .neon-main)::after{content:"";grid-area:bar;z-index:0;background:var(--card);border:1px solid var(--card-line);border-radius:0 0 12px 12px}
  :is(#nonlitStudio .nl-main,#haloStudio .halo-main,#neonStudio .neon-main)>*{grid-column:1;min-width:0}

  /* decorative */
  #nonlitStudio .nl-main{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"stage" "bar" "more";align-content:start;padding:14px 18px 20px;overflow-y:auto}
  #nonlitStudio .nl-main>#nlPreview{grid-area:stage;flex:none;height:clamp(380px,calc(100dvh - 160px),980px);border:1px solid var(--card-line);border-bottom:0;border-radius:12px 12px 0 0}
  #nonlitStudio .nl-main>#nlStatus{grid-area:bar;z-index:1;align-self:center;max-width:56%;margin:0;padding:12px 14px;background:transparent;color:var(--muted);font-size:13px}
  #nonlitStudio .nl-main>.nl-viewbar{grid-row:stage-start/bar-end;z-index:2;position:relative;display:block;margin:0;padding:0;border:0;background:transparent;pointer-events:none}
  #nonlitStudio .nl-viewbar>#nlDimensions{position:absolute;top:12px;right:12px;padding:6px 12px;border:1px solid var(--card-line);border-radius:999px;background:#0b1424d9;color:var(--ink);font-size:13px;pointer-events:auto}
  #nonlitStudio .nl-viewbar>div{position:absolute;inset:12px 12px 9px 12px;display:flex;flex-wrap:wrap;align-content:space-between;align-items:center;gap:8px;pointer-events:none}
  #nonlitStudio .nl-viewbar>div>*{pointer-events:auto}
  #nonlitStudio .nl-viewbar>div::after{content:"";order:2;flex-basis:100%;height:0}
  #nonlitStudio .nl-viewbar>div>:is(#nlFront,#nlIso){order:1;border:1px solid var(--card-line);background:#0b1424d9;color:var(--muted)}
  #nonlitStudio .nl-viewbar>div>#nlFront{border-radius:8px 0 0 8px;margin-right:-8px}
  #nonlitStudio .nl-viewbar>div>#nlIso{border-radius:0 8px 8px 0}
  #nonlitStudio .nl-viewbar>div>:is(#nlFront,#nlIso):is(.active,[aria-pressed=true]){background:var(--blue-button);border-color:var(--blue-button);color:#fff}
  #nonlitStudio .nl-viewbar>div>:is(#nlFit,.nl-grid-switch,#nlGridScale){order:3}
  #nonlitStudio .nl-viewbar>div>#nlFit{margin-left:auto}
  #nonlitStudio .nl-viewbar>div>#nlGridScale{padding:5px 10px;border:1px solid var(--control-line);border-radius:var(--radius-control);color:var(--ink)}
  #nonlitStudio .nl-main>:not(#nlPreview,#nlStatus,.nl-viewbar){grid-area:auto;margin-top:14px}

  /* backlit */
  #haloStudio .halo-main{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "stage" "bar" "more";align-content:start;padding:14px 18px 20px;overflow-y:auto}
  #haloStudio .halo-main>.backlit-viewhead{grid-area:head;margin:0 0 10px;padding:0;align-items:center}
  #haloStudio .halo-main>.backlit-viewhead>div{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:12px}
  #haloStudio .halo-main>.backlit-viewhead h2{margin:0;font-size:18px}
  #haloStudio .halo-main>#haloView,#haloStudio .halo-main>#haloPlanWrap{grid-area:stage;margin:0;min-height:0;border-radius:12px 12px 0 0;border-bottom:0}
  #haloStudio .halo-main>#haloView{height:clamp(380px,calc(100dvh - 230px),980px)}
  #haloStudio .halo-main>.halo-toolbar{grid-area:stage;z-index:2;align-self:start;margin:0;padding:12px;background:transparent;pointer-events:none}
  #haloStudio .halo-main>.halo-toolbar>*{pointer-events:auto}
  /* mounting plan: its own tools (Piece, + Mount, Auto-place) start under the view tabs, not behind them */
  #haloStudio .halo-main>#haloPlanWrap{padding-top:66px}
  #haloStudio .halo-main>#haloStatus{grid-area:bar;z-index:1;align-self:center;margin:0;padding:12px 14px;border:0;background:transparent;color:var(--ink);font-size:13px}
  #haloStudio .halo-main>:not(.backlit-viewhead,#haloView,#haloPlanWrap,.halo-toolbar,#haloStatus){grid-area:auto;margin-top:14px}

  /* neon */
  #neonStudio .neon-main{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "summary" "stage" "bar" "more";align-content:start;padding:14px 18px 20px;overflow-y:auto}
  #neonStudio .neon-main>.neon-workspace-title{grid-area:head;margin:0 0 8px;align-items:baseline}
  #neonStudio .neon-main>.neon-workspace-title h2{margin:0;font-size:18px}
  #neonStudio .neon-main>#neonSummary{grid-area:summary;margin:0 0 12px;padding:8px 12px;font-size:13px}
  #neonStudio .neon-main>#neonView{grid-area:stage;height:clamp(380px,calc(100dvh - 270px),980px);min-height:0;margin:0;border-radius:12px 12px 0 0;border-bottom:0}
  #neonStudio .neon-main>.neon-toolbar{grid-area:stage;z-index:2;align-self:start;justify-content:space-between;margin:0;padding:12px;pointer-events:none}
  #neonStudio .neon-main>.neon-toolbar>*{pointer-events:auto}
  #neonStudio .neon-main>.neon-toolbar>div:last-child{justify-content:flex-end;max-width:62%}
  #neonStudio .neon-main>.neon-row{grid-area:bar;z-index:1;align-self:center;display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:14px;margin:0;padding:8px 12px}
  #neonStudio .neon-row>#neonNight{flex:0 0 auto;min-height:38px;padding:8px 14px}
  #neonStudio .neon-row>label{display:flex;align-items:center;gap:10px;width:min(380px,50%);margin:0;font-size:13px}
  #neonStudio .neon-row>label>input{flex:1;min-width:0}
  #neonStudio .neon-main>.neon-view-hint{grid-area:stage;z-index:2;align-self:end;justify-self:center;margin:0 0 10px;padding:4px 12px;border:0;border-radius:999px;background:#0b1424cc;color:var(--ink)}
  #neonStudio .neon-main>:not(.neon-workspace-title,#neonSummary,#neonView,.neon-toolbar,.neon-row,.neon-view-hint){grid-area:auto;margin-top:14px}

  /* view-mode groups as one segmented control (top-left of each view) */
  :is(#haloStudio .halo-toolbar,#neonStudio .neon-toolbar)>div:first-child{gap:2px;padding:3px;border:1px solid var(--card-line);border-radius:10px;background:#0b1424d9}
  :is(#haloStudio .halo-toolbar,#neonStudio .neon-toolbar)>div:first-child button{min-height:34px;padding:6px 12px;border:0;border-radius:7px;background:transparent;color:var(--muted)}
  :is(#haloStudio .halo-toolbar,#neonStudio .neon-toolbar)>div:first-child button:is(.active,[aria-pressed=true]){background:var(--blue-button);color:#fff}
  #neonStudio .neon-toolbar>div:last-child button,#haloStudio #haloFit{min-height:34px;padding:6px 12px;background:#0b1424d9}
}
#haloStudio .halo-settings input[type=color]{background:var(--input-fill);border:1px solid var(--control-line);border-radius:var(--radius-control)}
:root:has(body.ms-polished){background:var(--page)}
#haloStudio .backlit-mobile-nav{background:var(--card);border-top:1px solid var(--card-line)}
#haloStudio[data-unified] .backlit-mobile-nav{background:var(--card);border-top-color:var(--card-line)}
#haloStudio[data-unified] .backlit-mobile-nav button[aria-pressed=true]{background:#16294a;color:#fff;border-color:var(--blue)}

/* design your own: the drawing sheet on navy (the SVG's own fills are presentation attributes, so CSS wins) */
#dcScene>rect[fill="#f4f7fb"]{fill:var(--lens)}
#dcGrid path{stroke:#1f3354}
#dcScene>path[stroke="#a6b5c5"]{stroke:#3d5a87}
.design-canvas #dcEmpty{color:var(--muted)}
#designCanvas .dc-layer{background:var(--lens);border:1px solid var(--card-line);color:var(--ink)}
#designCanvas .dc-layer[aria-pressed=true]{background:#16294a;border-color:var(--blue);color:#fff}
#designCanvas input[type=color]{background:var(--input-fill);border:1px solid var(--control-line);border-radius:var(--radius-control)}

/* project pictures: our own renders on navy (picker markup comes from app.js, so the source is swapped here) */
img[src*="/images/projects/frontlit.webp"]{content:url(/images/projects/dark/frontlit.webp)}
img[src*="/images/projects/halo.webp"]{content:url(/images/projects/dark/halo.webp)}
img[src*="/images/projects/neon.svg"],img[src*="/images/projects/neon.webp"]{content:url(/images/projects/dark/neon.webp)}
img[src*="/images/projects/decorative.webp"]{content:url(/images/projects/dark/decorative.webp)}
img[src*="/images/projects/canvas.webp"]{content:url(/images/projects/dark/canvas.webp)}
:is(#projectWelcome,.ux-project-picker,.ux-welcome-grid) .ux-project-picture,.ux-project-mini{background:var(--card)}
:is(#projectWelcome,.ux-project-picker,.ux-welcome-grid) .ux-project-picture img,.ux-project-mini img{object-fit:cover}

/* =================== Seasonal pages =================== */
/* collection pages: /seasonal/, /noel/, /halloween/ */
body.collection{background-color:var(--page);color:var(--ink);font-family:var(--font)}
.collection header{border-bottom:1px solid var(--card-line)}
.collection header>a:first-child{color:var(--ink)}
.collection :is(h1,h2,h3){color:var(--ink);font-family:var(--font);letter-spacing:-.02em}
.collection a{color:var(--kicker)}
.collection-intro>p,.collection .lead{color:#c7d3e6}
.collection-intro .collection-detail,.collection-note,.collection main p,.collection footer{color:var(--muted)}
.collection ::selection{background:#2a7bff66;color:#fff}
.collection a:focus-visible,.collection .family:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.collection .family{display:flex;flex-direction:column;overflow:hidden;padding:0;border:1px solid var(--card-line);border-radius:14px;background:var(--card);color:var(--ink);transition:border-color .2s,box-shadow .2s}
.collection .family:hover,.collection .family:focus-visible{border-color:var(--blue);box-shadow:var(--selected)}
.collection .family>div{padding:2px 16px 16px}
.collection .family img,.collection .family img[src*="-life.jpg"]{background:var(--lens)}
.collection .family>div>span{color:var(--kicker)}
.season-banner{background:var(--tag-bg);border-color:var(--card-line);color:var(--ink)}

/* Christmas editor (/noel/editor.html): its own colour variables, pointed at the navy palette */
:root:has(#printJump){--bg:var(--page);--panel:var(--card);--ink:#f0f4fa;--muted:#96a6be;--line:var(--card-line);--accent:var(--blue-button);--accent-ink:#fff;
  --warn:#ffb547;--warn-bg:#2a2112;--err:#ff8a80;--err-bg:#3b1d21;--info-bg:#16294a;--stage:#0e1a2e;color-scheme:dark}
:root:has(#printJump) :is(.field input[type=text],.field select,.field input[type=number],.range input[type=number]){background:var(--input-fill);border-color:var(--control-line);color:var(--ink)}

/* Halloween editor (/halloween/editor.html) */
:root:has(#mini-canvas){background:var(--page);color:var(--ink)}
:root:has(#mini-canvas) :is(header span,.hint,#model-note,footer,#dimensions p){color:var(--muted)}
:root:has(#mini-canvas) :is(aside,.viewpanel){background:var(--card);border-color:var(--card-line);color:var(--ink)}
:root:has(#mini-canvas) select{background:var(--input-fill);border-color:var(--control-line);color:var(--ink)}
:root:has(#mini-canvas) :is(button,.filelabel){background:transparent;border-color:var(--control-line);color:var(--ink)}
:root:has(#mini-canvas) :is(.moods [aria-pressed=true],.primary){background:var(--blue-button);border-color:var(--blue-button);color:#fff}
:root:has(#mini-canvas) .badge{background:var(--tag-bg);color:var(--tag-text)}
:root:has(#mini-canvas) .stage{background:var(--lens)}
:root:has(#mini-canvas) #status{background:var(--card);border-color:var(--card-line);color:var(--ink)}
:root:has(#mini-canvas) .error{background:#3b1d21!important;color:#ffb3b0!important}
:root:has(#mini-canvas) .warning{background:var(--card);border-left-color:var(--warn);color:var(--ink)}
:root:has(#mini-canvas) .export{border-top-color:var(--card-line)}
:root:has(#mini-canvas) .candidate{border-color:var(--card-line);color:var(--ink)}

/* Pumpkin bowl and lantern (/pumpkins/) */
:root:has(#ledDiameter){background:var(--page);color:var(--ink)}
:root:has(#ledDiameter) header b{background:var(--blue-button);color:#fff}
:root:has(#ledDiameter) :is(header span,.intro p,.small,footer){color:var(--muted)}
:root:has(#ledDiameter) .eyebrow{color:var(--warn)}
:root:has(#ledDiameter) .panel{background:var(--card);border-color:var(--card-line);color:var(--ink)}
:root:has(#ledDiameter) :is(input:not([type=checkbox]),select){background:var(--input-fill);border-color:var(--control-line);color:var(--ink)}
:root:has(#ledDiameter) button{background:transparent;border-color:var(--control-line);color:var(--ink)}
:root:has(#ledDiameter) button.primary{background:var(--blue-button);border-color:var(--blue-button);color:#fff}
:root:has(#ledDiameter) .note{background:#2a2112;border-color:#5c4320;color:#ffd9a3}
:root:has(#ledDiameter) :is(#poster,#canvas){background:var(--lens)}
:root:has(#ledDiameter) .status{color:var(--kicker)}
:root:has(#ledDiameter) .error{color:var(--error)}
:root:has(#ledDiameter) :is(#measurements,.export,.details){border-color:var(--card-line)}
:root:has(#printJump) :is(.app-header,.settings,.summary,.view-hint){background:var(--card)}
:root:has(#printJump) .app-header{border-bottom-color:var(--card-line)}
:root:has(#printJump) .brand-mark{background:var(--blue-button);color:#fff}
:root:has(#printJump) .collection-link{color:var(--kicker)}
:root:has(#printJump) :is(.products button,.seg button,.view-tools button){background:var(--lens);border-color:var(--control-line);color:var(--ink)}
:root:has(#printJump) .products button[aria-pressed=true]{background:#16294a;border-color:var(--blue);color:#fff}
:root:has(#printJump) :is(.seg,.lang) button[aria-pressed=true]{background:var(--blue-button);border-color:var(--blue-button);color:#fff}
:root:has(#printJump) .lang{border:1px solid var(--control-line)}
/* the language menu took a full-width row inside this header and made the page scroll sideways */
:root:has(#printJump) .app-header>.msls-language{flex:0 0 auto;width:auto;margin:0}

/* home page closer to the website mockup (desktop): two-line headline, cards right under the hero, banner picture filling its half */
@media(min-width:1100px){
  .home-hero{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:8px;padding:34px 0 0}
  .home-hero-copy{position:relative;z-index:1}
  .home-hero :is(h1,h2){font-size:clamp(44px,4.25vw,64px);max-width:none;letter-spacing:-.045em}
  .home-hero .lead{max-width:40ch}
  .explore-styles{padding:6px 0 34px}
  .explore-cards a{min-height:160px}
  .projects-banner{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);min-height:340px;padding-left:56px}
  .projects-banner figure{align-self:stretch}
  .projects-banner img{height:100%;max-height:420px;object-fit:cover;object-position:center 60%}
}
@media(min-width:1100px){
  .home-refresh main>section.home-hero{padding-bottom:0;margin-bottom:0}
  .home-refresh main>section.explore-styles{padding-top:4px;padding-bottom:28px;margin-top:0;margin-bottom:0}
  .home-refresh main>section.projects-banner{margin-top:0}
}
@media(max-width:900px){.projects-banner figcaption{position:static;display:inline-block;margin:6px 0 16px}}

/* Decorative, Backlit and Neon editors: the "How to fix it" box (.issue-guidance) under the 3D view shows at
   full height (the view column scrolls) instead of being squeezed into a thin strip by the grid, in navy and
   amber like the other notes. The decorative Print step's download buttons sit on the panel, not in a white box. */
:is(#nonlitStudio .nl-main,#haloStudio .halo-main,#neonStudio .neon-main)>.issue-guidance{overflow:visible;max-height:none}
.issue-guidance{background:#2a2112;border-color:#ffb54780;color:var(--ink)}
.issue-guidance :is(strong,h4,p,li){color:var(--ink)}
.issue-guidance small{color:var(--muted)}
#nonlitStudio .nl-downloads{background:transparent;border-top:0;padding:0}
#nonlitStudio .nl-downloads small{color:var(--muted)}

/* Main studio "Show me how" tour (#guidedTour): navy card instead of style.css's pale blue, so its light text reads. */
.guided-tour{background:var(--ms-selected);border-color:var(--control-line);color:var(--ink)}
.guided-tour :is(h2,p){color:var(--ink)}
.guided-tour .hint{color:var(--muted)}

/* MS-STUDIO-MENUS: File and Help drop-down menus in the studio top bars (shared-designer-header.js; Martin's approved
   mock-up, 29 Oct 2026). Undo is an icon, Print files the one blue button, no seasonal badge or beta label in the bar.
   The :is(#nonlitStudio,#haloStudio,body) prefix outranks the editors' one-row header rules above. */
.msm-menu{position:relative;display:inline-flex;flex:none}
:is(#nonlitStudio,#haloStudio,body) .msm-trigger{display:inline-flex!important;align-items:center;gap:4px;min-height:36px!important;padding:0 10px!important;margin:0!important;border:0!important;border-radius:6px!important;background:transparent!important;color:#c6d1e2!important;font:500 13px var(--font)!important;white-space:nowrap;cursor:pointer}
:is(#nonlitStudio,#haloStudio,body) :is(.msm-trigger:hover,.msm-menu.open>.msm-trigger){background:#16294a!important;color:var(--ink)!important}
:is(#nonlitStudio,#haloStudio,body) :is(.msm-menu,.msm-undo) svg{display:inline!important;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.msm-list{position:absolute;top:calc(100% + 6px);left:0;z-index:1000;display:flex;flex-direction:column;min-width:230px;padding:6px;background:var(--card);border:1px solid var(--card-line);border-radius:8px;box-shadow:0 14px 34px #000a}
.msm-list[hidden]{display:none}
:is(#nonlitStudio,#haloStudio,body) .msm-list>:is(button,a){display:flex!important;align-items:center;justify-content:flex-start;width:100%;min-height:36px!important;padding:0 10px!important;margin:0!important;border:0!important;border-radius:6px!important;background:transparent!important;color:var(--ink)!important;font:400 13px var(--font)!important;text-align:left;text-decoration:none;white-space:nowrap;box-sizing:border-box}
:is(#nonlitStudio,#haloStudio,body) .msm-list>:is(button,a):is(:hover,:focus-visible){background:#16294a!important}
:is(#nonlitStudio,#haloStudio,body) .msm-list>button:disabled{color:#6c7c95!important;cursor:not-allowed}
.msm-heading{padding:8px 10px 4px;font:600 11px var(--font);letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.msm-separator{height:1px;margin:6px 4px;background:var(--card-line)}
:is(#nonlitStudio,#haloStudio,body) .msm-list .msm-beta{display:block;padding:6px 10px!important;margin:0!important;font:500 11px var(--font)!important;letter-spacing:.06em;color:var(--muted)!important;background:none!important;border:0!important}
:is(#nonlitStudio,#haloStudio,body) .msm-undo{display:inline-flex!important;align-items:center;justify-content:center;flex:none;width:36px;min-width:36px;min-height:36px!important;padding:0!important;margin:0!important;border:0!important;border-radius:6px!important;background:transparent!important;color:#c6d1e2!important}
:is(#nonlitStudio,#haloStudio,body) .msm-undo:hover:not(:disabled){background:#16294a!important;color:var(--ink)!important}
:is(#nonlitStudio,#haloStudio,body) .msm-undo:disabled{color:#5f6f88!important;cursor:not-allowed}
.msm-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* app.js owns #undoDesign's text, so the icon is drawn over it and the word stays for screen readers */
#undoDesign.msm-undo{position:relative;text-indent:-9999px;overflow:hidden}
#undoDesign.msm-undo::before{content:"";position:absolute;inset:0;margin:auto;width:16px;height:16px;text-indent:0;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 14L4 9l5-5'/%3E%3Cpath d='M4 9h10.5a5.5 5.5 0 010 11H11'/%3E%3C/svg%3E") center/16px no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 14L4 9l5-5'/%3E%3Cpath d='M4 9h10.5a5.5 5.5 0 010 11H11'/%3E%3C/svg%3E") center/16px no-repeat}
header.msm-studio-header #designerHalloweenBanner{display:none!important}
header.msm-studio-header .studio-help-nav{flex:1 1 auto;flex-wrap:nowrap!important;align-items:center;gap:2px!important;margin-left:16px!important;min-width:0}
:is(#nonlitStudio,#haloStudio,body) header.msm-studio-header #uxMainPrint,:is(#nonlitStudio,#haloStudio,body) .shared-designer-header .shared-print{margin-left:auto!important}
.shared-designer-header .shared-menu{flex:1 1 auto;align-items:center;gap:2px!important;min-width:0}
/* Phone, main studio: mobile-studio.js turns the bar into a Menu panel, so the two menus open flat inside it.
   The editors' bar (some pages keep it open on a phone) keeps its two compact drop-downs. */
@media(max-width:760px),(max-width:960px) and (pointer:coarse){
  :is(#nonlitStudio,#haloStudio,body) header.msm-studio-header :is(.msm-trigger,.msm-heading,.msm-separator,.msm-beta){display:none!important}
  :is(#nonlitStudio,#haloStudio,body) header.msm-studio-header :is(.msm-menu,.msm-list,.msm-list[hidden]){display:contents!important}
  :is(#nonlitStudio,#haloStudio,body) header.msm-studio-header .studio-help-nav{flex-wrap:wrap!important;margin-left:0!important}
  :is(#nonlitStudio,#haloStudio,body) header.msm-studio-header #uxMainPrint{margin-left:0!important}
}
@media(max-width:760px){
  .shared-designer-header .shared-menu{flex-wrap:wrap}
  .msm-list{max-width:calc(100vw - 32px)}
}
