/* Formscaler interactive demo. Flat, monochrome, hairline borders. Tokens mirror core's app/assets/tailwind/application.css. */
.fsdemo {
  --ff-heading: "DM Sans", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius-sm: 6px; --radius-md: 8px; --radius-lg: 12px; --radius-xl: 18px; --radius-pill: 999px;
  --dur: 150ms;
  /* dark (graphite) is the base */
  --canvas: #1d1e21; --surface: #26272b; --raised: #2e2f34;
  --ink: #ffffff; --ink-soft: rgb(255 255 255 / .88); --muted: rgb(255 255 255 / .62);
  --edge: rgb(255 255 255 / .14); --edge-strong: rgb(255 255 255 / .32);
  --fill: rgb(255 255 255 / .07); --fill-hover: rgb(255 255 255 / .14);
  --accent: #ffffff; --accent-hover: #e6e6e6; --accent-press: #cccccc; --on-accent: #171717; --focus: #ffffff;
  --ok: #2fd6a0; --warn: #ffc23d; --danger: #ff7a7a; --info: #5ec8ff;
  color-scheme: dark;
}
.fsdemo[data-mode="light"] {
  --canvas: #ffffff; --surface: #ffffff; --raised: #f4f4f5;
  --ink: #121212; --ink-soft: rgb(18 18 18 / .88); --muted: rgb(18 18 18 / .62);
  --edge: rgb(18 18 18 / .14); --edge-strong: rgb(18 18 18 / .32);
  --fill: rgb(18 18 18 / .05); --fill-hover: rgb(18 18 18 / .1);
  --accent: #121212; --accent-hover: #2a2a2a; --accent-press: #000000; --on-accent: #ffffff; --focus: #121212;
  --ok: #0f7a57; --warn: #8a5a00; --danger: #c62a1e; --info: #0b6aa8;
  color-scheme: light;
}
html { background: #1d1e21; }
.fsdemo, .fsdemo *, .fsdemo *::before, .fsdemo *::after { box-sizing: border-box; }
.fsdemo { margin: 0; background: var(--canvas); color: var(--ink); font: 400 14px/1.55 var(--ff-body); -webkit-font-smoothing: antialiased; min-height: 100dvh; overflow-x: hidden; }
.fsdemo.fs-noscroll { overflow: hidden; }
:where(.fsdemo a) { color: inherit; }
.fsdemo [hidden] { display: none !important; }
.fsdemo :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.fsdemo code, .fsdemo pre { font-family: var(--ff-mono); }
.fsdemo h1, .fsdemo h2, .fsdemo h3 { font-family: var(--ff-heading); font-weight: 600; letter-spacing: -.02em; margin: 0; color: var(--ink); }
.fs-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fs-icon { flex: none; vertical-align: -.15em; }
.fs-muted { color: var(--muted); }
.fs-sub { color: var(--muted); font-size: 13px; margin: 0; }
.fs-hint { color: var(--muted); font-size: 12px; }
.fs-mono { font-family: var(--ff-mono); font-size: 12.5px; }
.fs-link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--edge-strong); text-underline-offset: 3px; }
.fs-link:hover { text-decoration-color: var(--ink); }
.fs-nowrap { white-space: nowrap; } .fs-right { text-align: right; } .fs-center { text-align: center; }
.fs-pad { padding: 16px 20px; } .fs-pad0 { margin-bottom: 12px; }
.fs-stack { display: grid; gap: 12px; align-content: start; }
.fs-row { display: flex; align-items: center; gap: 8px; } .fs-wrap { flex-wrap: wrap; } .fs-grow { flex: 1; text-align: right; } .fs-between { justify-content: space-between; }
.fs-skip { position: absolute; left: 8px; top: -60px; background: var(--accent); color: var(--on-accent) !important; padding: 8px 12px; border-radius: var(--radius-md); z-index: 300; }
.fs-skip:focus { top: 8px; }

/* ---------- banner ---------- */
.fs-banner { display: flex; align-items: center; justify-content: center; gap: 6px 14px; flex-wrap: wrap; padding: 6px 16px; background: var(--raised); border-bottom: 1px solid var(--edge); font-size: 12.5px; color: var(--ink-soft); text-align: center; }
.fs-banner a { text-underline-offset: 3px; }

/* ---------- shell ---------- */
.fs-app { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: calc(100dvh - 33px); }
.fs-side { position: sticky; top: 0; align-self: start; height: 100dvh; max-height: 100dvh; overflow-y: auto; border-right: 1px solid var(--edge); background: var(--surface); padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; }
.fs-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; font: 600 17px var(--ff-heading); letter-spacing: -.02em; text-decoration: none; }
.fs-brand__mark { width: 26px; height: 26px; border-radius: 7px; background: var(--accent); display: grid; align-content: center; gap: 3px; padding: 0 6px; }
.fs-brand__mark i { display: block; height: 3px; border-radius: 2px; background: var(--on-accent); } .fs-brand__mark i:nth-child(2) { width: 70%; opacity: .6; } .fs-brand__mark i:nth-child(3) { width: 40%; opacity: .35; }
.fs-navlink { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-md); color: var(--ink-soft); text-decoration: none; font-weight: 500; min-height: 36px; }
.fs-navlink:hover { background: var(--fill); color: var(--ink); }
.fs-navlink[aria-current="page"] { background: var(--fill-hover); color: var(--ink); }
.fs-side__foot { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid var(--edge); }
.fs-col { min-width: 0; display: flex; flex-direction: column; }
.fs-top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 8px 12px; padding: 8px 20px; background: var(--canvas); border-bottom: 1px solid var(--edge); flex-wrap: wrap; min-height: 53px; }
.fs-top__sp { flex: 1; }
.fs-top label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; }
.fs-menubtn { display: none; }
#fs-main { padding: 24px 28px 96px; max-width: 1280px; width: 100%; display: grid; gap: 20px; align-content: start; min-width: 0; outline: none; }
#fs-main > * { min-width: 0; }
.fs-scrim { display: none; }

/* ---------- type ---------- */
.fs-pagehead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.fs-pagehead__text { min-width: 0; flex: 1 1 320px; }
.fs-pagehead__actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fs-h1 { font-size: 24px !important; line-height: 1.2; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; outline: none; }
.fs-h2 { font-size: 15px !important; } .fs-h3 { font-size: 14px !important; }
.fs-pagehead .fs-sub { margin-top: 6px; max-width: 70ch; }

/* ---------- components ---------- */
.fs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 500 14px var(--ff-body); border-radius: var(--radius-md); cursor: pointer; border: 1px solid transparent; text-decoration: none; transition: background var(--dur), color var(--dur); white-space: nowrap; background: none; color: var(--ink); }
.fs-btn:active { transform: scale(.98); }
.fs-btn--md { padding: 0 16px; min-height: 36px; } .fs-btn--sm { padding: 0 12px; min-height: 28px; font-size: 12px; }
.fs-btn--primary { background: var(--accent); color: var(--on-accent); } .fs-btn--primary:hover { background: var(--accent-hover); } .fs-btn--primary:active { background: var(--accent-press); }
.fs-btn--secondary { background: var(--fill); border-color: var(--edge); } .fs-btn--secondary:hover { background: var(--fill-hover); }
.fs-btn--tertiary { color: var(--ink-soft); } .fs-btn--tertiary:hover { background: var(--fill); color: var(--ink); }
.fs-btn--danger { border-color: var(--danger); color: var(--danger); } .fs-btn--danger:hover { background: var(--fill-hover); }
.fs-btn:disabled, .fs-btn.is-disabled { opacity: .55; cursor: not-allowed; }
.fs-left { justify-content: flex-start; }
.fs-locked { border-style: dashed; }
.fs-iconbtn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-md); border: 1px solid transparent; background: none; color: var(--ink-soft); cursor: pointer; padding: 0; }
.fs-iconbtn:hover { background: var(--fill); color: var(--ink); } .fs-iconbtn:disabled { opacity: .35; cursor: default; }
.fs-iconbtn--edge { border-color: var(--edge); }

.fs-badge { display: inline-flex; align-items: center; gap: 4px; border-radius: var(--radius-pill); border: 1px solid var(--edge); background: var(--fill); color: var(--ink-soft); padding: 1px 9px; font: 500 11.5px/1.5 var(--ff-body); white-space: nowrap; }
.fs-badge--ok { color: var(--ok); border-color: var(--ok); background: none; } .fs-badge--warn { color: var(--warn); border-color: var(--warn); background: none; }
.fs-badge--danger { color: var(--danger); border-color: var(--danger); background: none; } .fs-badge--info { color: var(--info); border-color: var(--info); background: none; }
.fs-badge--accent { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.fs-badge--preview { background: none; border-style: dashed; border-color: var(--edge-strong); color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; font-size: 10.5px; }
.fs-chip { display: inline-block; border-radius: var(--radius-sm); background: var(--fill); border: 1px solid var(--edge); padding: 0 7px; font-size: 12px; color: var(--ink-soft); }
.fs-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fs-chipbtn { font: 400 12.5px var(--ff-body); border: 1px solid var(--edge); background: var(--fill); color: var(--ink-soft); border-radius: var(--radius-pill); padding: 4px 12px; cursor: pointer; text-align: left; }
.fs-chipbtn:hover { background: var(--fill-hover); color: var(--ink); } .fs-chipbtn:disabled { opacity: .5; cursor: default; }
.fs-code { font-size: 12px; background: var(--fill); border-radius: var(--radius-sm); padding: 1px 5px; word-break: break-word; }
.fs-file { display: inline-flex; gap: 4px; align-items: center; font-size: 12.5px; color: var(--ink-soft); }
.fs-mark { background: var(--fill-hover); color: var(--ink); padding: 0 4px; border-radius: 4px; }
.fs-status { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--edge); border-radius: var(--radius-pill); padding: 1px 10px 1px 8px; font-size: 12px; font-weight: 500; text-transform: capitalize; }
.fs-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.fs-status--published { color: var(--ok); border-color: var(--ok); } .fs-status--published .fs-dot { background: var(--ok); }
.fs-status--draft { color: var(--warn); border-color: var(--warn); } .fs-status--draft .fs-dot { background: var(--warn); }
.fs-status--archived { color: var(--muted); } .fs-status--archived .fs-dot { background: var(--muted); }
.fs-avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--fill-hover); font: 600 12px var(--ff-body); flex: none; }
.fs-avatar--sm { width: 24px; height: 24px; font-size: 10px; } .fs-avatar.is-agent { background: none; border: 1px solid var(--info); color: var(--info); }

.fs-card { background: var(--surface); border: 1px solid var(--edge); border-radius: var(--radius-lg); min-width: 0; }
.fs-card.is-current { border-color: var(--edge-strong); }
.fs-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--edge); flex-wrap: wrap; }
.fs-card__head .fs-sub { margin-top: 2px; }
.fs-card.fs-pad > .fs-h2:first-child { margin-bottom: 0; }
.fs-grid { display: grid; gap: 16px; min-width: 0; } .fs-grid > * { min-width: 0; }
.fs-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .fs-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .fs-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fs-grid--side { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
.fs-grid--roles { grid-template-columns: 220px minmax(0, 1fr); align-items: start; }
.fs-grid--agents { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
.fs-grid--builder { grid-template-columns: 180px minmax(0, 1fr) 280px; align-items: start; }
.fs-stat { display: flex; flex-direction: column; gap: 6px; min-height: 120px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--edge); border-radius: var(--radius-xl); text-decoration: none; transition: background var(--dur); }
.fs-stat:hover { background: var(--raised); }
.fs-stat__label { font-size: 13px; font-weight: 600; color: var(--ink-soft); } .fs-stat__value { font: 600 32px/1.1 var(--ff-heading); letter-spacing: -.02em; } .fs-stat__hint { font-size: 12px; color: var(--muted); }

.fs-tablewrap { position: relative; overflow-x: auto; max-width: 100%; }
.fs-table { width: 100%; min-width: 520px; border-collapse: collapse; }
.fs-table th { text-align: left; padding: 10px 16px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid var(--edge); white-space: nowrap; }
.fs-table th.fs-center { text-align: center; }
.fs-table td, .fs-table tbody th { padding: 10px 16px; border-bottom: 1px solid var(--edge); vertical-align: middle; font-size: 13.5px; text-transform: none; letter-spacing: 0; color: var(--ink); }
.fs-table tbody tr:last-child td, .fs-table tbody tr:last-child th { border-bottom: 0; }
.fs-table--rows tbody tr:hover { background: var(--fill); }
.fs-table tr.is-denied td { background: var(--fill); }
.fs-sortbtn { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; font-weight: 600; color: var(--muted); }
.fs-sortbtn:hover { color: var(--ink); } .fs-sortbtn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.fs-meter { height: 6px; min-width: 70px; border-radius: 99px; background: var(--fill-hover); overflow: hidden; } .fs-meter span { display: block; height: 100%; background: var(--accent); }

.fs-list { list-style: none; margin: 0; padding: 0; }
.fs-li { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--edge); }
.fs-li:last-child { border-bottom: 0; }
.fs-li__main { display: grid; gap: 2px; flex: 1; min-width: 0; } .fs-li__t { font-weight: 500; overflow-wrap: anywhere; } .fs-li__s { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.fs-li--plugin { align-items: flex-start; }

.fs-alert { border: 1px solid var(--edge); background: var(--surface); border-radius: var(--radius-md); padding: 10px 14px; font-size: 13px; color: var(--ink-soft); display: grid; gap: 8px; }
.fs-alert--warn { border-color: var(--warn); color: var(--warn); } .fs-alert--danger { border-color: var(--danger); color: var(--danger); }
.fs-alert--warn strong, .fs-alert--danger strong { color: inherit; } .fs-alert--danger .fs-diff, .fs-alert--danger .fs-diff code { color: var(--ink-soft); }
.fs-diff { margin: 0; padding-left: 18px; font-size: 12.5px; }

.fs-empty { text-align: center; padding: 36px 16px; display: grid; gap: 8px; justify-items: center; } .fs-empty__title { margin: 0; font: 600 15px var(--ff-heading); }

/* forms */
.fs-form { display: grid; gap: 14px; } .fs-form.fs-card { padding: 20px; }
.fs-field { display: grid; gap: 6px; } .fs-label { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); } .fs-req { color: var(--danger); }
.fs-input { display: block; width: 100%; font: 400 14px var(--ff-body); color: var(--ink); background: var(--surface); border: 1px solid var(--edge); border-radius: var(--radius-md); padding: 0 12px; min-height: 36px; transition: border-color var(--dur); }
textarea.fs-input { padding: 8px 12px; resize: vertical; line-height: 1.5; }
.fs-input::placeholder { color: var(--muted); } .fs-input:hover { border-color: var(--edge-strong); } .fs-input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.fs-input:disabled { opacity: .6; } .fs-input--auto { width: auto; min-width: 140px; max-width: 100%; }
select.fs-input { padding-right: 8px; }
.fs-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13.5px; } .fs-check input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }
.fs-check--chip { border: 1px solid var(--edge); border-radius: var(--radius-pill); padding: 3px 12px; font-size: 12.5px; background: var(--fill); }
.fs-err { color: var(--danger); font-size: 12.5px; }
.fs-masked { display: flex; align-items: center; gap: 6px; border: 1px dashed var(--edge-strong); border-radius: var(--radius-md); padding: 8px 12px; color: var(--muted); font-size: 13px; }
.fs-filerow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .fs-filerow .fs-input { flex: 1 1 140px; width: auto; }
.fs-thumb { width: 36px; height: 36px; border-radius: var(--radius-md); background: var(--fill-hover); display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.fs-toolbar { display: flex; gap: 8px 10px; align-items: center; flex-wrap: wrap; }
.fs-search { position: relative; flex: 1 1 220px; max-width: 340px; } .fs-search .fs-icon { position: absolute; left: 11px; top: 11px; color: var(--muted); } .fs-search .fs-input { padding-left: 32px; }
.fs-tabs { display: flex; gap: 4px; flex-wrap: wrap; border: 1px solid var(--edge); background: var(--fill); border-radius: var(--radius-md); padding: 4px; width: fit-content; max-width: 100%; }
.fs-tabs--pad { margin: 12px 20px; }
.fs-tab { font: 500 13px var(--ff-body); padding: 5px 12px; border-radius: var(--radius-sm); color: var(--ink-soft); text-decoration: none; border: 0; background: none; cursor: pointer; }
.fs-tab:hover { color: var(--ink); } .fs-tab.is-active { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--edge); }
.fs-seg { display: inline-flex; border: 1px solid var(--edge); border-radius: var(--radius-md); background: var(--fill); padding: 3px; gap: 2px; }
.fs-seg button { font: 500 13px var(--ff-body); padding: 4px 14px; border-radius: var(--radius-sm); border: 0; background: none; color: var(--ink-soft); cursor: pointer; }
.fs-seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.fs-itemlist { display: grid; gap: 4px; margin-top: 10px; }
.fs-item { all: unset; box-sizing: border-box; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--radius-md); cursor: pointer; color: var(--ink-soft); width: 100%; }
.fs-item:hover { background: var(--fill); } .fs-item.is-active { background: var(--fill-hover); color: var(--ink); } .fs-item:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.fs-item__t { font-weight: 500; } .fs-item__s { font-size: 11.5px; color: var(--muted); }

/* switch */
.fs-switch { position: relative; width: 42px; height: 24px; border-radius: 99px; border: 1px solid var(--edge); background: var(--fill); cursor: pointer; padding: 0; flex: none; transition: background var(--dur); }
.fs-switch.is-on { background: var(--accent); border-color: transparent; }
.fs-switch__knob { position: absolute; left: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); transition: transform var(--dur); }
.fs-switch.is-on .fs-switch__knob { transform: translateX(18px); background: var(--on-accent); }
.fs-switch:disabled { opacity: .45; cursor: not-allowed; }

/* dialog, toast */
.fs-overlay { position: fixed; inset: 0; z-index: 200; background: rgb(0 0 0 / .6); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.fsdemo[data-mode="light"] .fs-overlay { background: rgb(18 18 18 / .45); }
.fs-dialog { width: min(100%, 30rem); max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--surface); border: 1px solid var(--edge-strong); border-radius: var(--radius-lg); padding: 22px; display: grid; gap: 14px; outline: none; }
.fs-dialog--sm { width: min(100%, 26rem); } .fs-dialog--lg { width: min(100%, 38rem); }
.fs-dialog__head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; } .fs-dialog__title { font-size: 18px !important; }
.fs-dialog__desc { margin: 0; color: var(--muted); } .fs-dialog__body { color: var(--ink-soft); } .fs-dialog__body p { margin: 0 0 8px; }
.fs-dialog__foot { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
#fs-toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 250; display: grid; gap: 8px; width: min(92vw, 28rem); pointer-events: none; }
.fs-toast { background: var(--raised); border: 1px solid var(--edge-strong); border-radius: var(--radius-md); padding: 10px 14px; font-size: 13.5px; pointer-events: auto; }
.fs-toast--ok { border-color: var(--ok); } .fs-toast--danger { border-color: var(--danger); } .fs-toast--warn { border-color: var(--warn); }

/* record bits */
.fs-lockic { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--edge); border-radius: var(--radius-md); flex: none; color: var(--muted); }
.fs-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; color: var(--ink-soft); } .fs-ticks li { display: flex; gap: 8px; align-items: flex-start; } .fs-ticks .fs-icon { margin-top: 3px; }
.fs-diffs { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.fs-diffline { font-size: 13px; padding: 4px 8px; border-left: 2px solid var(--edge-strong); background: var(--fill); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.fs-diffline--add { border-left-color: var(--ok); } .fs-diffline--rm { border-left-color: var(--danger); } .fs-diffline--err { border-left-color: var(--warn); }

/* agents */
.fs-console__log { height: 340px; overflow-y: auto; padding: 14px 20px; display: grid; gap: 10px; align-content: start; }
.fs-msg { padding: 8px 12px; border-radius: var(--radius-md); max-width: 92%; font-size: 13.5px; overflow-wrap: anywhere; }
.fs-msg--user { justify-self: end; background: var(--accent); color: var(--on-accent); }
.fs-msg--agent { background: var(--fill); border: 1px solid var(--edge); } .fs-msg__who { display: flex; gap: 6px; align-items: center; font-size: 11.5px; color: var(--muted); margin-bottom: 2px; }
.fs-typing { color: var(--muted); }
.fs-tool { border: 1px solid var(--edge); border-radius: var(--radius-md); background: var(--canvas); padding: 8px 12px; display: grid; gap: 4px; font-size: 12.5px; }
.fs-tool--denied { border-color: var(--danger); } .fs-tool--ok .fs-icon { color: var(--ok); } .fs-tool--denied .fs-icon { color: var(--danger); }
.fs-tool__head { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.fs-pre { margin: 0; font-size: 11.5px; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; } .fs-pre--out { color: var(--ink-soft); }
.fs-promptform { display: flex; gap: 8px; padding: 0 20px 16px; }

/* builder */
.fs-canvas { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.fs-block { border: 1px solid var(--edge); border-radius: var(--radius-md); background: var(--canvas); overflow: hidden; }
.fs-block.is-active { border-color: var(--ink); } .fs-block.is-drag { opacity: .5; } .fs-block.is-over { border-style: dashed; border-color: var(--ink); }
.fs-block__bar { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-bottom: 1px solid var(--edge); background: var(--fill); }
.fs-grip { color: var(--muted); cursor: grab; display: grid; } .fs-block__name { all: unset; flex: 1; cursor: pointer; font-weight: 600; font-size: 12.5px; padding: 4px; border-radius: var(--radius-sm); } .fs-block__name:focus-visible { outline: 2px solid var(--focus); }
.fs-block__body { padding: 10px; pointer-events: none; }
.fs-pv { display: grid; gap: 8px; }
.fs-pv--hero { text-align: center; padding: 22px 12px; justify-items: center; background: var(--fill); border-radius: var(--radius-md); } .fs-pv--hero h2 { font-size: 22px !important; } .fs-pv p { margin: 0; color: var(--ink-soft); }
.fs-pvgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.fs-pvcard { display: grid; gap: 4px; border: 1px solid var(--edge); border-radius: var(--radius-md); padding: 8px; font-size: 12.5px; background: var(--surface); }
.fs-pvimg { aspect-ratio: 4/3; border-radius: var(--radius-sm); background: var(--fill-hover); display: grid; place-items: center; font: 600 16px var(--ff-heading); }
.fs-pvmap { border: 1px dashed var(--edge-strong); border-radius: var(--radius-md); padding: 28px 12px; text-align: center; color: var(--muted); }
.fs-site { border: 1px solid var(--edge-strong); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; margin: 0 auto; width: 100%; }
.fs-site--mobile { max-width: 390px; } .fs-site__bar { padding: 8px 14px; border-bottom: 1px solid var(--edge); font-size: 12px; color: var(--muted); background: var(--fill); } .fs-site__blk { padding: 18px; border-bottom: 1px solid var(--edge); } .fs-site__blk:last-child { border-bottom: 0; }
.fs-site .fs-pv form, .fs-site form.fs-pv { max-width: 420px; }

/* ---------- demo chrome: tour, welcome ---------- */
.fs-tourw { position: fixed; right: 16px; bottom: 16px; z-index: 120; width: min(calc(100vw - 32px), 300px); }
.fs-tourw__btn { margin-left: auto; display: flex; align-items: center; gap: 8px; background: var(--accent); color: var(--on-accent); border: 0; border-radius: var(--radius-pill); padding: 10px 18px; font: 600 13px var(--ff-body); cursor: pointer; }
.fs-tourw__btn:hover { background: var(--accent-hover); }
.fs-tourw__panel { background: var(--surface); border: 1px solid var(--edge-strong); border-radius: var(--radius-lg); margin-bottom: 8px; overflow: hidden; }
.fs-tourw__head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--edge); }
.fs-tourw__list { list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px; max-height: min(50dvh, 340px); overflow-y: auto; }
.fs-tourw__step { all: unset; box-sizing: border-box; display: flex; gap: 10px; align-items: center; width: 100%; padding: 7px 10px; border-radius: var(--radius-md); cursor: pointer; color: var(--ink-soft); font-size: 13px; }
.fs-tourw__step:hover { background: var(--fill); } .fs-tourw__step:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.fs-tourw__n { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--edge-strong); display: grid; place-items: center; font-size: 11px; flex: none; }
.fs-tourw__step.is-done .fs-tourw__n { background: var(--accent); color: var(--on-accent); border-color: transparent; } .fs-tourw__step.is-cur { color: var(--ink); background: var(--fill-hover); }
.fs-tourw__foot { padding: 10px 12px; border-top: 1px solid var(--edge); display: flex; gap: 8px; }
.fs-hl { outline: 2px solid var(--ink) !important; outline-offset: 4px; border-radius: var(--radius-md); position: relative; }
.fs-tip { position: fixed; z-index: 150; width: min(calc(100vw - 24px), 340px); background: var(--raised); border: 1px solid var(--edge-strong); border-radius: var(--radius-lg); padding: 16px; display: grid; gap: 10px; outline: none; }
.fs-tip__step { font-size: 11.5px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; } .fs-tip h2 { font-size: 16px !important; } .fs-tip p { margin: 0; color: var(--ink-soft); }
.fs-tip__nav { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; } .fs-tip__nav .fs-grow { text-align: left; }
.fs-tip__dots { display: flex; gap: 4px; flex: 1; } .fs-tip__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--edge-strong); } .fs-tip__dots i.on { background: var(--ink); }
.fs-welcome ul { margin: 0 0 4px; padding-left: 18px; display: grid; gap: 4px; } .fs-welcome .fs-h2 { font-size: 22px !important; line-height: 1.2; }
.fs-convert .fs-dialog__foot { justify-content: stretch; } .fs-convert__ctas { display: grid; gap: 8px; width: 100%; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .fs-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fs-grid--3 { grid-template-columns: 1fr; }
  .fs-grid--builder { grid-template-columns: minmax(0, 1fr) 260px; } .fs-grid--builder > :first-child { grid-column: 1 / -1; }
  .fs-grid--builder > :first-child .fs-stack { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .fs-grid--agents { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .fs-app { grid-template-columns: minmax(0, 1fr); }
  .fs-side { position: fixed; z-index: 160; left: 0; top: 0; width: min(280px, 86vw); transform: translateX(-102%); transition: transform .2s; }
  .fs-side.is-open { transform: none; }
  .fs-scrim { position: fixed; inset: 0; z-index: 155; background: rgb(0 0 0 / .55); } .fs-scrim.is-open { display: block; }
  .fs-menubtn { display: inline-grid; }
  .fs-grid--2, .fs-grid--side, .fs-grid--roles, .fs-grid--builder { grid-template-columns: minmax(0, 1fr); }
  #fs-main { padding: 18px 16px 110px; } .fs-top { padding: 8px 12px; }
}
@media (max-width: 600px) {
  .fs-grid--4 { grid-template-columns: 1fr 1fr; gap: 10px; } .fs-stat { padding: 14px; min-height: 100px; } .fs-stat__value { font-size: 26px; }
  .fs-h1 { font-size: 20px !important; } .fs-top label span.fs-lbl { display: none; }
  .fs-tip { left: 12px !important; right: 12px; top: auto !important; bottom: 76px; width: auto; }
  .fs-search { max-width: none; } .fs-promptform { padding: 0 14px 14px; } .fs-console__log { padding: 12px 14px; height: 300px; }
  .fs-card__head, .fs-li { padding-left: 14px; padding-right: 14px; } .fs-banner { font-size: 12px; }
  .fs-dialog { padding: 18px; }
}
@media (pointer: coarse) { .fs-btn--md, .fs-input { min-height: 44px; } .fs-btn--sm { min-height: 36px; } .fs-iconbtn { width: 40px; height: 40px; } }
@media (prefers-reduced-motion: reduce) { .fsdemo *, .fsdemo *::before, .fsdemo *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ---------- richer content (follow-up) ---------- */
.fsdemo { --shadow-pop: 0 1px 2px rgb(0 0 0 / .18), 0 6px 14px rgb(0 0 0 / .22), 0 22px 48px rgb(0 0 0 / .32); }
.fsdemo[data-mode="light"] { --shadow-pop: 0 1px 2px rgb(18 18 18 / .06), 0 6px 14px rgb(18 18 18 / .08), 0 22px 48px rgb(18 18 18 / .14); }
.fs-dialog, .fs-menu, .fs-tip, .fs-toast, .fs-tourw__panel { box-shadow: var(--shadow-pop); }
.fs-grid--chart { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; }
.fs-grid--chart2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); align-items: start; }
.fs-stat__label { display: flex; align-items: center; gap: 8px; }
.fs-stat__ic { width: 24px; height: 24px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--fill-hover); }
.fs-stat__value { font-size: 36px; font-weight: 700; }
.fs-stat__spark { margin-top: auto; } .fs-spark { display: block; max-width: 100%; fill: currentColor; opacity: .45; }
.fs-stat--accent { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.fs-stat--accent:hover { background: var(--accent-hover); } .fs-stat--accent .fs-stat__label, .fs-stat--accent .fs-stat__hint { color: var(--on-accent); opacity: .8; } .fs-stat--accent .fs-stat__ic { background: rgb(0 0 0 / .14); }
.fs-chart { width: 100%; height: auto; display: block; }
.fs-grid-line { stroke: var(--edge); stroke-width: 1; } .fs-axis { fill: var(--muted); font: 11px var(--ff-body); }
.fs-bar--people { fill: var(--ink); opacity: .9; } .fs-bar--agent { fill: var(--muted); opacity: .6; }
.fs-bar:hover { opacity: 1; }
.fs-legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--ink-soft); } .fs-legend span { display: inline-flex; gap: 6px; align-items: center; }
.fs-key { width: 10px; height: 10px; border-radius: 3px; display: inline-block; } .fs-key--people { background: var(--ink); } .fs-key--agent { background: var(--muted); opacity: .6; }
.fs-li--meter .fs-meter { display: block; margin-top: 6px; }
.fs-actor { display: inline-flex; align-items: center; gap: 8px; }
.fs-lead { display: inline-flex; align-items: center; gap: 10px; }
.fs-thumb--sm { width: 28px; height: 28px; font-size: 10px; border-radius: var(--radius-sm); flex: none; }
.fs-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--edge); border-radius: var(--radius-lg); background: var(--surface); }
.fs-strip__cell { display: grid; gap: 2px; padding: 12px 18px; border-left: 1px solid var(--edge); position: relative; min-width: 0; }
.fs-strip__cell:first-child { border-left: 0; }
.fs-strip__label { font-size: 12px; color: var(--muted); font-weight: 500; } .fs-strip__value { font: 600 22px/1.2 var(--ff-heading); letter-spacing: -.02em; } .fs-strip__note { font-size: 12px; color: var(--muted); }
.fs-strip__spark { position: absolute; right: 14px; top: 14px; color: var(--ink); } .fs-strip__spark .fs-spark { opacity: .4; }
.fs-skel { display: grid; gap: 10px; padding: 8px 0; } .fs-skel__row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
.fs-skel__row i { height: 14px; border-radius: 6px; background: var(--fill-hover); animation: fs-pulse 1.1s ease-in-out infinite alternate; }
@keyframes fs-pulse { from { opacity: .35; } to { opacity: .9; } }

/* top bar: search, menus */
.fs-searchbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 8px 0 10px; border: 1px solid var(--edge); border-radius: var(--radius-md); background: var(--fill); color: var(--muted); font: 400 13px var(--ff-body); cursor: pointer; min-width: 200px; }
.fs-searchbtn:hover { background: var(--fill-hover); color: var(--ink); } .fs-searchbtn__t { flex: 1; text-align: left; }
.fs-kbd { font: 500 11px var(--ff-body); border: 1px solid var(--edge); border-radius: 5px; padding: 1px 6px; color: var(--muted); background: var(--surface); }
.fs-menuwrap { position: relative; } .fs-avatarbtn { all: unset; cursor: pointer; border-radius: 50%; display: inline-grid; } .fs-avatarbtn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.fs-pip { position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--accent); color: var(--on-accent); font: 600 10px/16px var(--ff-body); text-align: center; pointer-events: none; }
.fs-menu { position: fixed; z-index: 180; width: min(340px, calc(100vw - 24px)); background: var(--surface); border: 1px solid var(--edge-strong); border-radius: var(--radius-lg); overflow: hidden; }
.fs-menu__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--edge); } .fs-menu__head--user { justify-content: flex-start; padding: 14px 16px; }
.fs-menu__list { list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px; max-height: 340px; overflow-y: auto; }
.fs-mitem { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: var(--radius-md); cursor: pointer; font-size: 13px; color: var(--ink-soft); }
.fs-mitem:hover, .fs-mitem:focus-visible { background: var(--fill-hover); color: var(--ink); } .fs-mitem:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.fs-mitem__t { display: grid; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.fs-unread { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); flex: none; }
.fs-menu__foot { padding: 10px 16px; border-top: 1px solid var(--edge); }
.fs-dialog--palette { width: min(100%, 36rem); padding: 0; align-self: start; margin-top: 12vh; gap: 0; overflow: hidden; } .fs-dialog--palette .fs-dialog__body { padding: 0; }
.fs-pal__bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--edge); color: var(--muted); }
.fs-pal__in { all: unset; flex: 1; color: var(--ink); font: 400 15px var(--ff-body); min-width: 0; } .fs-pal__in::placeholder { color: var(--muted); }
.fs-pal__list { list-style: none; margin: 0; padding: 6px; max-height: min(52vh, 380px); overflow-y: auto; }
.fs-pal__g { padding: 8px 10px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.fs-pal__i { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-md); cursor: pointer; color: var(--ink-soft); } .fs-pal__i .fs-sub { margin-left: auto; }
.fs-pal__i.is-sel { background: var(--fill-hover); color: var(--ink); } .fs-pal__empty { padding: 20px; text-align: center; color: var(--muted); }
.fs-pal__foot { padding: 8px 16px; border-top: 1px solid var(--edge); font-size: 12px; }

@media (max-width: 1100px) { .fs-grid--chart, .fs-grid--chart2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .fs-searchbtn { min-width: 0; } .fs-searchbtn__t, .fs-searchbtn .fs-kbd { display: none; } .fs-searchbtn { width: 32px; padding: 0; justify-content: center; } .fs-backlink { order: 1; } }
@media (max-width: 600px) {
  .fs-strip { grid-template-columns: 1fr 1fr; } .fs-strip__cell:nth-child(3) { border-left: 0; } .fs-strip__cell:nth-child(n+3) { border-top: 1px solid var(--edge); }
  .fs-strip__spark { display: none; } .fs-stat__value { font-size: 28px; } .fs-menu__head { padding-left: 12px; }
}

@media (max-width: 600px) { .fs-top [data-act=resetDemo], .fs-top #fs-theme { display: none; } .fs-top #fs-viewas { max-width: 120px; } .fs-top { gap: 8px; } }

/* Welcome modal typography */
.fs-dialog[data-modal="welcome"] { width: min(100%, 34rem); padding: 28px; gap: 18px; }
.fs-dialog[data-modal="welcome"]::before { content: "Interactive demo"; font: 600 11px/1 var(--fs-mono, ui-monospace, "SF Mono", Menlo, monospace); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.fs-dialog[data-modal="welcome"] .fs-dialog__title { font-size: 30px !important; line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; text-wrap: balance; max-width: 18ch; }
.fs-dialog[data-modal="welcome"] .fs-dialog__head { align-items: flex-start; }
.fs-welcome { display: grid; gap: 16px; }
.fs-welcome__lead { margin: 0 !important; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.fs-welcome__lead strong { color: var(--ink); font-weight: 600; }
.fs-welcome__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: step; }
.fs-welcome__steps li { counter-increment: step; display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--edge); border-radius: 12px; background: var(--fill); font-size: 14px; line-height: 1.4; color: var(--ink); }
.fs-welcome__steps li::before { content: counter(step); flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--edge-strong); font: 600 12px/1 var(--fs-body, inherit); color: var(--ink-soft); }
.fs-welcome .fs-sub { margin: 4px 0 0 !important; padding-top: 14px; border-top: 1px solid var(--edge); font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.fs-dialog[data-modal="welcome"] .fs-dialog__foot { margin-top: 4px; gap: 10px; }

/* ---------- Motion: subtle, short, and off under prefers-reduced-motion (rule above) ---------- */
:root, .fsdemo { --ease-out: cubic-bezier(.2, .8, .2, 1); --ease-spring: cubic-bezier(.3, 1.5, .5, 1); }
/* switches: track colour eases, knob springs and stretches while pressed */
.fs-switch { transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out); }
.fs-switch__knob { transition: transform .26s var(--ease-spring), width .12s var(--ease-out), background-color .2s var(--ease-out); }
.fs-switch:active:not(:disabled) .fs-switch__knob { width: 22px; }
.fs-switch.is-on:active:not(:disabled) .fs-switch__knob { transform: translateX(14px); }
/* buttons, tabs, segmented controls, list rows */
.fs-btn, .fs-iconbtn, .fs-seg button, .fs-tabs button { transition: background-color .15s var(--ease-out), border-color .15s var(--ease-out), color .15s var(--ease-out), transform .12s var(--ease-out); }
.fs-btn:active:not(:disabled), .fs-iconbtn:active:not(:disabled) { transform: scale(.97); }
.fs-table tbody tr, .fs-li, .fs-nav a, .fs-item { transition: background-color .15s var(--ease-out), color .15s var(--ease-out); }
/* page change: content fades and rises in once */
@keyframes fs-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
#fs-main.fs-enter > * { animation: fs-rise .28s var(--ease-out) both; }
#fs-main.fs-enter > *:nth-child(2) { animation-delay: .04s; } #fs-main.fs-enter > *:nth-child(3) { animation-delay: .08s; } #fs-main.fs-enter > *:nth-child(n+4) { animation-delay: .12s; }
/* meters and chart bars grow in after a page change */
@keyframes fs-grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fs-grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.fs-enter .fs-meter span { transform-origin: left; animation: fs-grow-x .6s var(--ease-out) both; animation-delay: .12s; }
.fs-enter svg rect.fs-bar { transform-origin: bottom; transform-box: fill-box; animation: fs-grow-y .55s var(--ease-out) both; }
/* overlays, dialogs, menus, tooltips, toasts, tour widget */
@keyframes fs-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fs-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fs-drop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fs-slide-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.fs-overlay { animation: fs-fade .18s var(--ease-out); }
.fs-dialog { animation: fs-pop .22s var(--ease-out); }
.fs-menu { animation: fs-drop .16s var(--ease-out); transform-origin: top right; }
.fs-tip { animation: fs-fade .2s var(--ease-out); }
.fs-toast { animation: fs-slide-up .24s var(--ease-out); }
.fs-tourw__panel { animation: fs-pop .2s var(--ease-out); transform-origin: bottom right; }
/* notification count pops in */
@keyframes fs-badge-pop { 0% { transform: scale(.4); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
#fs-pip:not([hidden]) { animation: fs-badge-pop .35s var(--ease-spring) both; }

/* Page builder product cards: image fills the card width, and cards never exceed their grid cell */
.fs-pvcard { grid-template-columns: minmax(0, 1fr); align-content: start; min-width: 0; padding: 10px; gap: 6px; }
.fs-pvimg { width: 100%; min-width: 0; align-self: start; }
.fs-pvcard strong { overflow-wrap: anywhere; }
.fs-pvgrid { padding: 2px; }

/* Tour tooltip notch: points at the highlighted element from whichever side the tooltip is on */
.fs-tip::before { content: ""; display: none; position: absolute; width: 14px; height: 14px; background: var(--raised); border: 1px solid var(--edge-strong); transform: rotate(45deg); }
.fs-tip[data-side="bottom"]::before, .fs-tip[data-side="top"]::before, .fs-tip[data-side="left"]::before, .fs-tip[data-side="right"]::before { display: block; }
.fs-tip[data-side="bottom"]::before { top: -8px; left: calc(var(--ax, 40px) - 7px); border-right-width: 0; border-bottom-width: 0; }
.fs-tip[data-side="top"]::before { bottom: -8px; left: calc(var(--ax, 40px) - 7px); border-left-width: 0; border-top-width: 0; }
.fs-tip[data-side="right"]::before { left: -8px; top: calc(var(--ay, 40px) - 7px); border-top-width: 0; border-right-width: 0; }
.fs-tip[data-side="left"]::before { right: -8px; top: calc(var(--ay, 40px) - 7px); border-bottom-width: 0; border-left-width: 0; }

/* Back link lives in the top banner */
.fs-banner { position: relative; }
.fs-banner__back { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); text-decoration: none; font-weight: 500; white-space: nowrap; }
.fs-banner__back:hover { color: var(--ink); }
@media (max-width: 900px) { .fs-banner__back { position: static; transform: none; } }

/* Links inside cards and lists: no underline; hover shows a state instead */
.fs-card__head .fs-link, .fs-li .fs-link, .fs-table .fs-link { text-decoration: none; }
.fs-card__head .fs-link:hover { opacity: .75; }
/* Clickable rows: the title link stretches over the whole row */
.fs-li--link { position: relative; cursor: pointer; }
.fs-li--link:hover { background: var(--fill); }
.fs-li--link .fs-link::after { content: ""; position: absolute; inset: 0; }
.fs-li--link .fs-link:focus-visible { outline: none; }
.fs-li--link:has(.fs-link:focus-visible) { outline: 2px solid var(--focus); outline-offset: -2px; }

/* Tour buttons: larger targets */
.fs-tourw__btn { padding: 14px 24px; font-size: 16px; gap: 10px; }
.fs-tourw__btn svg { width: 16px; height: 16px; }
.fs-tourw__foot .fs-btn, .fs-tourw__step { font-size: 14px; }
.fs-tourw__foot .fs-btn--sm { min-height: 40px; padding: 0 16px; }
.fs-tip .fs-btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.fs-tip__nav { gap: 10px; }

/* Select dropdowns: real right padding for the caret */
select.fs-input { appearance: none; -webkit-appearance: none; padding-right: 38px; background-repeat: no-repeat; background-position: right 14px center; background-size: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239fa1a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }

/* Publishing card */
.fs-pub { gap: 16px; }
.fs-pub__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fs-pub__head .fs-h2 { margin: 0; }
.fs-meta { margin: 0; display: grid; border: 1px solid var(--edge); border-radius: var(--radius-md); overflow: hidden; }
.fs-meta > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 12px; font-size: 13.5px; }
.fs-meta > div + div { border-top: 1px solid var(--edge); }
.fs-meta dt { color: var(--muted); } .fs-meta dd { margin: 0; text-align: right; color: var(--ink); font-weight: 500; }
.fs-pub__actions { display: grid; gap: 8px; }
.fs-pub__actions > .fs-btn { width: 100%; }
.fs-pub__more { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .fs-pub__more.is-one { grid-template-columns: 1fr; } .fs-pub__more .fs-btn { width: 100%; }
.fs-pub__team { display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--edge); }
.fs-pub__eyebrow { font: 600 11px/1 var(--ff-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fs-pub__team .fs-locked { width: 100%; justify-content: flex-start; min-height: 36px; font-size: 13px; }
.fs-pub__team .fs-locked::after { content: "Team"; margin-left: auto; font: 600 10px/1 var(--ff-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--edge); border-radius: 99px; padding: 3px 7px; }

/* Tabs: sliding highlight */
.fs-tabs { position: relative; }
.fs-tab { position: relative; z-index: 1; transition: color .2s var(--ease-out); }
.fs-tabs__ind { position: absolute; z-index: 0; pointer-events: none; background: var(--surface); box-shadow: inset 0 0 0 1px var(--edge); border-radius: var(--radius-sm); }
.fs-tabs:has(> .fs-tabs__ind) .fs-tab.is-active { background: none; box-shadow: none; }

/* Tour tooltip footer: dots, Skip, Back and Next always share one row */
.fs-tip { width: min(calc(100vw - 24px), 400px); }
.fs-tip__nav { flex-wrap: nowrap; gap: 8px; }
.fs-tip__dots { flex: 1 1 auto; min-width: 0; gap: 4px; }
.fs-tip .fs-btn--sm { padding: 0 14px; white-space: nowrap; flex: none; }
.fs-tip__nav .fs-btn--tertiary { margin-right: auto; }
@media (max-width: 600px) { .fs-tip__dots { display: none; } .fs-tip__nav { justify-content: flex-end; } }
