/* texture-stl — design language adopted from ModelDirectory.org (dark-first, vanilla CSS).
   Distinct left-rail layout (not textureanystl). Tokens ≈ MD style.css :root. */
:root {
  --bg: #0d0d0d; --bg-2: #131313; --bg-3: #1a1a1a; --bg-4: #212121;
  --border: #232323; --border-2: #2e2e2e;
  --text: #efefef; --text-2: #9a9a9a; --text-3: #555;
  --accent: #3b82f6; --accent-h: #2563eb; --accent-dim: rgba(59, 130, 246, .12);
  --green: #10b981; --red: #ef4444;
  --radius: 8px; --radius-lg: 14px; --transition: .18s ease; --hdr: 60px;
  --shadow: 0 8px 30px rgba(0, 0, 0, .55);
  --glass: rgba(13, 13, 13, .9);
  --card: rgba(19, 19, 19, .86);
  --body-top: #16181d;   /* subtle top-centre lift of the page background (theme-aware) */
  --slider-track: #262932; --slider-ink: #eceef4; --slider-border: rgba(255, 255, 255, .10);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color-scheme: dark;
  font-family: var(--font);
}
:root[data-theme="light"] {
  --bg: #f6f7f9; --bg-2: #ffffff; --bg-3: #f0f2f5; --bg-4: #e7eaef;
  --border: #e4e7ec; --border-2: #d3d8e0;
  --text: #14181f; --text-2: #5b6472; --text-3: #98a1ae;
  --accent: #2563eb; --accent-h: #1d4ed8; --accent-dim: rgba(37, 99, 235, .10);
  --shadow: 0 6px 24px rgba(20, 24, 33, .10);
  --glass: rgba(255, 255, 255, .86);
  --card: rgba(255, 255, 255, .88);
  --body-top: #ffffff;
  --slider-track: #e9ebf1; --slider-ink: #14161c; --slider-border: rgba(0, 0, 0, .16);
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { background: radial-gradient(120% 120% at 50% 0%, var(--body-top) 0%, var(--bg) 60%); color: var(--text); font-size: 14px; line-height: 1.5; overflow-x: hidden; overflow-y: auto; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent-dim); color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- header (print-orientation sibling) ---- */
.site-header {
  height: var(--hdr); flex: 0 0 auto; display: flex; align-items: center; gap: 14px;
  padding: 0 18px; z-index: 60; position: sticky; top: 0;
  background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1rem; letter-spacing: -.02em; color: var(--text); text-decoration: none; transition: color var(--transition); }
.logo-mark { color: var(--accent); flex: 0 0 auto; }
.logo-tld { color: var(--accent); }
.logo:hover { color: var(--accent); }
.tool-tag { display: flex; align-items: center; gap: 7px; padding-left: 14px; border-left: 1px solid var(--border-2); font-size: .8rem; color: var(--text-2); white-space: nowrap; }
.tool-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }
.header-mid { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
/* slower day/night cross-fade (view transition) */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .65s; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a { font-size: .85rem; font-weight: 500; color: var(--text-2); text-decoration: none; padding: 6px 12px; border-radius: 8px; transition: color var(--transition), background var(--transition); }
.site-nav a:hover { color: var(--text); background: var(--bg-3); }

/* globe language dropdown — matches modeldirectory.org's nav-lang */
.nav-lang { position: relative; display: inline-flex; align-items: center; margin-left: 4px; }
.nav-lang-btn { display: inline-flex; align-items: center; gap: 5px; font: inherit; font-size: .82rem; font-weight: 600; color: var(--text-2); background: none; border: none; cursor: pointer; padding: 6px 8px; border-radius: 8px; transition: color var(--transition), background var(--transition); }
.nav-lang-btn:hover { color: var(--text); background: var(--bg-3); }
.nav-lang-globe { flex: 0 0 auto; }
.nav-lang-cur { letter-spacing: .02em; }
.nav-lang-caret { opacity: .7; transition: transform var(--transition); }
.nav-lang.open .nav-lang-caret { transform: rotate(180deg); }
.nav-lang-menu { display: none; position: absolute; top: calc(100% + 6px); right: 0; min-width: 158px; max-height: 62vh; overflow-y: auto; flex-direction: column; padding: 6px; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius); box-shadow: var(--shadow); z-index: 70; }
.nav-lang.open .nav-lang-menu { display: flex; }
.nav-lang-item { text-align: left; font: inherit; font-size: .85rem; color: var(--text-2); background: none; border: none; cursor: pointer; padding: 7px 10px; border-radius: 6px; white-space: nowrap; transition: color var(--transition), background var(--transition); }
.nav-lang-item:hover { color: var(--text); background: var(--bg-3); }
.nav-lang-item.on { color: var(--accent); font-weight: 600; }

/* ---- buttons ---- */
.btn-ghost, .btn-primary, .btn-export { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 600; cursor: pointer; border-radius: var(--radius); border: 1px solid transparent; transition: background var(--transition), border-color var(--transition), color var(--transition), transform .12s, opacity var(--transition); white-space: nowrap; }
.btn-ghost { background: transparent; color: var(--text-2); border-color: var(--border-2); padding: 9px 14px; font-size: 13px; font-weight: 500; }
.btn-ghost:hover { color: var(--text); border-color: var(--text-3); background: var(--bg-3); }
.btn-ghost.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-sm { padding: 6px 11px; font-size: 12px; }
.btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: var(--radius); border: 1px solid transparent; background: transparent; color: var(--text-2); cursor: pointer; font-size: 16px; line-height: 1; transition: background var(--transition), color var(--transition); }
.btn-icon:hover:not(:disabled) { background: var(--bg-3); color: var(--text); }
.btn-icon:disabled { opacity: .35; cursor: default; }
.btn-primary { background: var(--accent); color: #fff; padding: 11px 18px; font-size: 14px; }
.btn-primary:hover { background: var(--accent-h); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 6px; align-items: stretch; }

.icon-sun, .icon-moon { display: none; }
:root[data-theme="light"] .icon-moon { display: block; }
:root:not([data-theme="light"]) .icon-sun { display: block; }

/* floating stage toolbar (undo/redo/reset), glass pill, bottom-left */
.stage-tools { position: absolute; left: 16px; bottom: 16px; z-index: 12; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 10px; background: var(--card); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); border: 1px solid var(--border-2); box-shadow: var(--shadow); }
.stage-tools .btn-icon { width: 30px; height: 30px; font-size: 15px; }
.tools-sep { width: 1px; height: 18px; background: var(--border-2); margin: 0 2px; }
.site-back { font-size: .85rem; color: var(--text-2); text-decoration: none; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border-2); }
.site-back:hover { color: var(--text); background: var(--bg-3); }

/* onboarding tour */
.tour-ring { position: fixed; z-index: 200; border-radius: 10px; pointer-events: none; box-shadow: 0 0 0 9999px rgba(4, 6, 12, .62), 0 0 0 2px var(--accent), 0 0 22px 4px rgba(59, 130, 246, .35); transition: left .3s cubic-bezier(.4, 0, .2, 1), top .3s cubic-bezier(.4, 0, .2, 1), width .3s cubic-bezier(.4, 0, .2, 1), height .3s cubic-bezier(.4, 0, .2, 1); }
.tour-bubble { position: fixed; z-index: 201; width: 300px; background: var(--bg-2); border: 1px solid var(--accent); border-radius: 12px; box-shadow: var(--shadow); padding: 14px 15px; color: var(--text); }
.tour-head { display: flex; align-items: center; gap: 8px; font-size: .95rem; margin-bottom: 6px; }
.tour-emoji { font-size: 1.1rem; }
.tour-bubble p { font-size: .82rem; line-height: 1.55; color: var(--text-2); margin: 0 0 12px; }
.tour-foot { display: flex; align-items: center; justify-content: space-between; }
.tour-dots { display: flex; gap: 5px; }
.tour-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border-2); }
.tour-dot.on { background: var(--accent); }
.tour-btns { display: flex; gap: 6px; }
.tour-skip { background: none; border: none; color: var(--text-3); font: inherit; font-size: .78rem; cursor: pointer; padding: 6px 8px; }
.tour-skip:hover { color: var(--text-2); }
.tour-next { background: var(--accent); color: #fff; border: none; border-radius: 7px; font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; padding: 6px 14px; }
.tour-next:hover { background: var(--accent-h); }
.tour-progress { margin-top: 12px; height: 3px; border-radius: 2px; background: var(--border-2); overflow: hidden; }
.tour-progress-fill { height: 100%; width: 0; background: var(--accent); border-radius: 2px; }
@media (prefers-reduced-motion: reduce) { .tour-ring { transition: none; } }

/* ---- editor grid: rail | stage ---- */
.editor { display: grid; grid-template-columns: 336px 1fr; height: calc(100dvh - var(--hdr)); min-height: 0; flex: 0 0 auto; }
.rail { display: flex; flex-direction: column; height: 100%; overflow: hidden; gap: 10px; padding: 12px; background: var(--card); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); border-right: 1px solid var(--border); }
.rail-sec { flex: 0 0 auto; }
.sec-head, .rail-sec > summary { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); display: flex; align-items: center; gap: 7px; }
.sec-n { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 5px; background: var(--accent-dim); color: var(--accent); font-size: 11px; font-weight: 700; }
.sec-head { margin-bottom: 8px; }
.hint-sm { font-size: 11px; color: var(--text-3); margin-top: 4px; line-height: 1.4; }
.opt-tag { text-transform: none; font-weight: 400; color: var(--text-3); font-size: 10px; letter-spacing: 0; }
.sec-val { margin-left: auto; font-weight: 600; color: var(--accent); font-size: 12px; }

/* collapsible <details> sections */
.collapsible > summary { cursor: pointer; list-style: none; padding: 4px 0; user-select: none; }
.collapsible > summary::-webkit-details-marker { display: none; }
.collapsible > summary::after { content: "▸"; margin-left: auto; color: var(--text-3); font-size: 10px; transition: transform var(--transition); }
.collapsible[open] > summary::after { transform: rotate(90deg); }
.sec-body { padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }

/* dropzone */
.dropzone { border: 1.5px dashed var(--border-2); border-radius: var(--radius); padding: 16px 12px; text-align: center; cursor: pointer; transition: border-color var(--transition), background var(--transition); }
.dropzone:hover { border-color: var(--accent); background: var(--accent-dim); }
.dz-icon { font-size: 20px; color: var(--accent); }
.dz-main { font-weight: 600; margin-top: 4px; color: var(--text); }
.dz-sub { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.samples { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.samples-label { font-size: 12px; color: var(--text-3); }
.chip { font: inherit; font-size: 12px; cursor: pointer; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--bg-3); color: var(--text-2); transition: border-color var(--transition), color var(--transition), background var(--transition); }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.file-line { font-size: 11px; color: var(--text-3); word-break: break-all; }
.file-line:empty { display: none; }   /* no reserved gap under the sample row until a file loads */

/* selected face */
.sel-info { font-size: 13px; color: var(--text); margin-bottom: 8px; }
.sel-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); cursor: pointer; }

/* texture gallery (grouped + scrollable) */
.gallery-sec { flex: 1 1 auto; min-height: 130px; display: flex; flex-direction: column; }
.gallery-scroll { flex: 1 1 auto; overflow-y: auto; min-height: 0; margin: 0 -4px; padding: 0 4px; }
.gallery-scroll::-webkit-scrollbar { width: 8px; } .gallery-scroll::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 8px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.gallery-cat { grid-column: 1 / -1; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin-top: 8px; display: flex; align-items: center; gap: 6px; }
.gallery-cat:first-child { margin-top: 0; }
.gallery-cat .cat-badge { color: var(--accent); font-weight: 700; }
.swatch { aspect-ratio: 1; border-radius: var(--radius); border: 1.5px solid var(--border-2); overflow: hidden; cursor: pointer; padding: 0; background: none; position: relative; transition: border-color var(--transition), transform .1s; }
.swatch canvas { width: 100%; height: 100%; display: block; }
.swatch:hover { border-color: var(--text-3); transform: translateY(-1px); }
.swatch.sel { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-dim); }
.swatch .swatch-label { position: absolute; left: 0; right: 0; bottom: 0; font-size: 9px; color: #fff; background: rgba(0, 0, 0, .6); padding: 1px 2px; text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.swatch .geo-dot { position: absolute; top: 3px; right: 3px; width: 6px; height: 6px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 1.5px var(--bg-2); }
.upload-row { margin-top: 8px; }

/* thick two-tone sliders: label + value written on the bar, white over the blue fill, dark over the track */
.adjust { display: flex; flex-direction: column; gap: 8px; }
.slider { position: relative; height: 36px; border-radius: 9px; overflow: hidden; background: var(--slider-track); border: 1px solid var(--slider-border); cursor: pointer; user-select: none; }
.slider::before { content: ''; position: absolute; left: var(--fl, 0%); top: 0; bottom: 0; width: var(--fw, 0%); background: var(--accent); z-index: 0; }
.slider.is-center::after { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--slider-border); z-index: 0; }   /* zero tick */
.slider-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; z-index: 3; -webkit-appearance: none; appearance: none; background: transparent; }
.slider-range::-webkit-slider-thumb { -webkit-appearance: none; width: 1px; height: 100%; background: transparent; }
.slider-range::-moz-range-thumb { width: 1px; height: 100%; border: 0; background: transparent; }
.slider-face { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 13px; font-size: 12.5px; font-weight: 600; pointer-events: none; z-index: 1; color: var(--slider-ink); white-space: nowrap; }
.slider-face--split { justify-content: center; gap: 14px; }
.slider-face .slider-value { font-weight: 500; font-variant-numeric: tabular-nums; }
.slider-face .slider-dir { font-size: 11px; font-weight: 500; opacity: .72; }
.slider-face--fill { z-index: 2; color: #fff; clip-path: inset(0 calc(100% - var(--fl, 0%) - var(--fw, 0%)) 0 var(--fl, 0%)); }
.slider.is-disabled { opacity: .5; pointer-events: none; }
.slider:focus-within { box-shadow: 0 0 0 2px var(--accent-dim); }
.slider[title], .chk[title], .brush-row[title] { cursor: help; }
/* U14 apply row — primary button + compact "auto" toggle beside it */
.apply-row { display: flex; align-items: center; gap: 10px; }
.apply-row .apply-btn { flex: 1; }
.apply-btn.is-update { background: var(--accent-h); }
.auto-chk { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-2); white-space: nowrap; cursor: pointer; user-select: none; }
.auto-chk input { accent-color: var(--accent); margin: 0; }

/* curved mapping segmented */
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--bg-3); border-radius: 9px; padding: 3px; }
.seg-btn { display: flex; flex-direction: column; align-items: center; gap: 1px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; padding: 6px 4px; border: none; border-radius: 6px; background: transparent; color: var(--text-2); transition: background var(--transition), color var(--transition); }
.seg-btn small { font-size: 9px; font-weight: 400; opacity: .75; }
.seg-btn.active { background: var(--accent); color: #fff; }
.seg-btn:hover:not(.active) { color: var(--text); }

/* paint brush rows */
.brush-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); }
.brush-row > span:first-child { width: 54px; flex: 0 0 auto; }
.brush-row input[type=range] { flex: 1; accent-color: var(--accent); }

.apply-btn { flex: 0 0 auto; margin-top: 2px; padding: 12px; font-size: 14px; }

/* ---- stage / viewport ---- */
#stage { position: relative; overflow: hidden; min-height: 0; background:
  radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent) 4%, transparent), transparent 60%), var(--bg); }
#view { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scale-bar { position: absolute; left: 16px; bottom: 16px; z-index: 2; border: 1.5px solid var(--text-3); border-top: none; height: 8px; min-width: 40px; font-size: 11px; color: var(--text-2); padding-top: 3px; line-height: 1; pointer-events: none; }
.viewer-hint { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 2; font-size: 12px; color: var(--text-2); background: var(--glass); padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); pointer-events: none; }
.viewer-hint b { color: var(--text); font-weight: 600; }
.status { position: absolute; left: 50%; transform: translateX(-50%); bottom: 52px; z-index: 2; max-width: 66%; font-size: 12px; color: var(--text-2); background: var(--card); padding: 7px 14px; border-radius: 20px; border: 1px solid var(--border-2); box-shadow: var(--shadow); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status:empty { display: none; }
.view-cube { position: absolute; top: 14px; right: 14px; width: 150px; height: 150px; z-index: 3; pointer-events: none; }
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 4; }
.progress-fill { height: 100%; width: 0; background: var(--accent); transition: width .12s ease; }

/* floating export panel (bottom-right) */
.export-panel { position: absolute; right: 16px; bottom: 16px; z-index: 5; display: flex; gap: 6px; align-items: stretch; background: var(--card); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); border: 1px solid var(--border-2); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 8px; }
.fmt-select { font: inherit; font-size: 13px; font-weight: 600; padding: 8px 8px; border: 1px solid var(--border-2); border-radius: var(--radius); background: var(--bg-3); color: var(--text); cursor: pointer; }
.btn-export { background: var(--accent); color: #fff; padding: 9px 18px; font-size: 14px; }
.btn-export:hover { background: var(--accent-h); }

/* whole-page drop overlay */
.drop-overlay { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; background: color-mix(in srgb, var(--bg) 70%, transparent); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
body.dragging .drop-overlay { display: flex; }
.drop-card { border: 2px dashed var(--accent); border-radius: var(--radius-lg); padding: 40px 64px; text-align: center; color: var(--accent); font-weight: 700; font-size: 1.1rem; background: var(--accent-dim); }
.drop-icon { font-size: 40px; margin-bottom: 8px; }

/* below-the-fold SEO guide (sibling of print-orientation) */
.scroll-cue { position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 6; display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; color: var(--text-2); text-decoration: none; padding: 6px 14px; border-radius: 20px; background: var(--card); border: 1px solid var(--border-2); box-shadow: var(--shadow); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: opacity .25s ease, transform .25s ease; }
.scroll-cue:hover { color: var(--text); }
.scroll-cue.is-hidden { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(12px); }   /* fade out once the guide is reached */
.cue-chev { animation: cueBounce 1.6s ease-in-out infinite; }
@keyframes cueBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

.guide { max-width: 760px; margin: 0 auto; padding: 64px 24px 40px; }
.guide .eyebrow { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: 12px; }
.guide h1 { font-size: 2rem; font-weight: 750; letter-spacing: -.025em; line-height: 1.15; text-wrap: balance; margin-bottom: 14px; }
.guide h2 { font-size: 1.4rem; font-weight: 700; letter-spacing: -.02em; margin: 34px 0 12px; }
.guide .lede { font-size: 1.14rem; color: var(--text); line-height: 1.65; margin-bottom: 8px; }
.guide p { font-size: .95rem; line-height: 1.7; color: var(--text-2); margin: 0 0 12px; }
.guide .steps { margin: 8px 0 12px; padding: 0; list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 12px; }
.guide .steps li { position: relative; padding-left: 40px; font-size: .95rem; line-height: 1.6; color: var(--text-2); counter-increment: step; }
.guide .steps li::before { content: counter(step); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-dim); color: var(--accent); font-weight: 700; font-size: .82rem; display: flex; align-items: center; justify-content: center; }
.faq { border-top: 1px solid var(--border); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--text); font-size: .95rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; color: var(--accent); font-weight: 700; margin-right: 10px; }
.faq[open] summary::before { content: "–"; }
.faq p { margin-top: 8px; }
.guide-footer { max-width: 760px; margin: 0 auto; padding: 24px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-size: .82rem; }
.guide-footer a { color: var(--text-2); text-decoration: none; }
.guide-footer a:hover { color: var(--accent); }
.guide-footer .foot-note { color: var(--text-3); margin-left: auto; }

@media (prefers-reduced-motion: reduce) { .cue-chev { animation: none; } }

@media (max-width: 820px) {
  .editor { grid-template-columns: 1fr; grid-template-rows: 1fr 46vh; }
  .rail { order: 2; border-right: none; border-top: 1px solid var(--border); }
  #stage { order: 1; }
  .tool-tag { display: none; }
  .site-nav a { display: none; }
  .viewer-hint { display: none; }
}
