.fm-intro { padding-block: 34px 30px; }
.fm-intro .breadcrumbs { margin-bottom: 26px; color: var(--muted); }.fm-intro .breadcrumbs a { color: var(--ink); }
.fm-kicker { color: #a33d2d; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.fm-intro h1 { margin: 12px 0 16px; font: 500 clamp(42px, 5vw, 68px)/1.05 var(--serif); letter-spacing: -.04em; }.fm-intro h1 span { color: var(--red); }
.fm-intro > p:last-child { color: var(--muted); margin-bottom: 0; font-size: 15px; }
.fm-workshop { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); gap: 28px; align-items: start; padding-bottom: 50px; }
.fm-workshop[hidden] { display: none; }.fm-workshop button { min-height: 42px; }
.fm-preview-column { position: sticky; top: 20px; min-width: 0; }
.fm-preview-panel { background: #e5e2d8; border: 1px solid #cbc8be; }
.fm-preview-toolbar,.fm-preview-caption { display: flex; justify-content: space-between; padding: 14px 20px; font: 10px var(--mono); letter-spacing: .06em; }
.fm-preview-toolbar { background: var(--ink); color: #d0d8db; }.fm-preview-toolbar span:last-child { color: var(--yellow); }
.fm-stage { height: 350px; padding: 30px; display: grid; place-items: center; background-image: linear-gradient(#c5c2b633 1px,transparent 1px),linear-gradient(90deg,#c5c2b633 1px,transparent 1px); background-size: 24px 24px; }
#fm-preview { height: 100%; width: 100%; min-height: 0; min-width: 0; display: grid; place-items: center; }#fm-preview svg { max-width: 100%; max-height: 100%; width: 100%; height: 100%; filter: drop-shadow(0 12px 13px #11182026); }
.fm-preview-caption { color: #596468; border-top: 1px solid #cbc8be; }.fm-preview-caption b { font-weight: 400; color: #50595c; text-transform: uppercase; }
.fm-history { display: flex; gap: 8px; padding-block: 12px 20px; }.fm-history button { padding: 8px 12px; background: transparent; border: 1px solid var(--line); font-size: 12px; }.fm-history button:last-child { margin-left: auto; }.fm-history button:disabled { opacity: .4; cursor: default; }
.fm-export { padding: 24px; background: var(--white); border: 1px solid var(--line); }.fm-export h2 { font: 500 30px var(--serif); margin: 6px 0 20px; }.fm-export .fm-kicker { margin: 0; }
.fm-workshop label { display: block; font-size: 12px; font-weight: 600; }.fm-workshop input[type=text],.fm-workshop select { display: block; width: 100%; min-height: 44px; margin-top: 8px; padding: 10px; border: 1px solid var(--line-dark); border-radius: 0; background: #fff; font: 13px var(--sans); }
.fm-export-actions { display: flex; gap: 10px; margin-top: 14px; }.fm-export-actions button { flex: 1; padding: 12px 10px; background: transparent; border: 1px solid var(--ink); font: 500 12px var(--mono); }.fm-export-actions .fm-primary { background: var(--ink); color: var(--yellow); }.fm-export-actions span { margin-left: 10px; }
.fm-export > p { color: var(--muted); font-size: 11px; margin-bottom: 0; }#fm-status { min-height: 18px; }
.fm-controls { min-width: 0; border: 1px solid var(--line); background: var(--white); padding: 24px; }
.fm-controls fieldset { border: 0; padding: 0 0 24px; margin: 0 0 24px; border-bottom: 1px solid var(--line); min-width: 0; }.fm-controls fieldset:last-child { margin: 0; padding: 0; border: 0; }.fm-controls legend { padding: 0 0 16px; font: 500 22px var(--serif); }.fm-controls legend span { font: 11px var(--mono); color: #a33d2d; padding-right: 10px; }
.fm-layouts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }.fm-layouts button { display: grid; justify-items: center; gap: 8px; padding: 12px 4px; border: 1px solid var(--line); background: #fff; font-size: 10px; }.fm-layouts svg { width: 45px; height: 30px; }.fm-layouts button[aria-pressed=true] { border: 2px solid var(--ink); background: #eeeae0; padding: 11px 3px; }.fm-hint { font-size: 12px; color: var(--muted); margin: 14px 0 0; }
.fm-colours { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }.fm-colours label { font-size: 10px; }.fm-colours input { display: block; width: 100%; height: 44px; padding: 3px; background: #fff; border: 1px solid var(--line); cursor: pointer; margin-block: 8px; }.fm-colours output { font: 9px var(--mono); }.fm-small-label { font-size: 11px; margin: 20px 0 9px; color: var(--muted); }
.fm-palettes { display: flex; flex-wrap: wrap; gap: 8px; }.fm-palettes button { display: flex; align-items: center; background: #fff; padding: 6px; border: 1px solid var(--line); }.fm-palettes i { display: block; width: 18px; height: 22px; }
#fm-symbol-controls { margin-top: 20px; }#fm-symbol-controls label { margin-top: 16px; }#fm-symbol-controls output { float: right; font: 11px var(--mono); font-weight: 400; }#fm-symbol-controls input { display: block; width: 100%; min-height: 30px; accent-color: #193d48; margin-top: 8px; }
.fm-workshop button:hover:enabled { border-color: var(--ink); filter: brightness(.96); }.fm-workshop :is(button,input,select):focus-visible { outline: 3px solid #3c78a8; outline-offset: 3px; }
.fm-guide { max-width: 820px; padding-block: 10px 55px; }.fm-guide h2 { font: 500 30px var(--serif); }.fm-guide p { color: #58656c; font-size: 14px; }.fm-guide a { text-decoration: underline; text-underline-offset: 3px; }
@media(max-width: 900px) { .fm-workshop { grid-template-columns: minmax(0,1fr) minmax(290px,.9fr); gap: 18px; }.fm-controls { padding: 18px; }.fm-stage { height: 290px; padding: 22px; }.fm-colours { gap: 6px; } }
@media(max-width: 720px) { .fm-workshop { grid-template-columns: 1fr; }.fm-preview-column { position: static; }.fm-stage { height: 270px; padding: 25px; }.fm-intro { padding-block: 24px; }.fm-intro h1 { font-size: 44px; }.fm-controls { padding: 22px; }.fm-export { padding: 20px; }.fm-layouts button { font-size: 11px; }.fm-intro br { display: none; } }
@media(prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media(max-width: 720px) { .fm-preview-column { display: contents; }.fm-preview-panel { position: sticky; top: 0; z-index: 3; }.fm-stage { height: 190px; padding: 18px; }.fm-preview-toolbar,.fm-preview-caption { padding: 10px 16px; }.fm-history { margin-top: -16px; padding-bottom: 0; }.fm-controls { grid-row: 3; }.fm-export { grid-row: 4; } }
