:root { --demo-bg:var(--lf-ground); --demo-raised:var(--lf-panel); --demo-raised-2:var(--lf-ground-raised); --demo-ink:var(--lf-text); --demo-muted:var(--lf-text-muted); --demo-accent:var(--lf-accent); --demo-accent-hover:var(--lf-accent-hover); --demo-success:var(--lf-success); --demo-border:var(--lf-line); --ease-out:var(--lf-ease-out); --ease-in-out:var(--lf-ease-in-out); }
* { box-sizing: border-box; }
body.demo-page { margin: 0; min-width: 320px; background: var(--demo-bg); color: var(--demo-ink); font-family: var(--lf-sans); font-size: var(--lf-text-body-size); line-height: var(--lf-leading-body); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.demo-page :where(button:not(:disabled)) { transition: transform .14s var(--ease-out); }
.demo-page button:not(:disabled):active { transform: scale(.97); }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--demo-accent); outline-offset: 3px; }
.demo-skip { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 9px 13px; background: #f5f1e8; color: #26211a; transform: translateY(-150%); }
.demo-skip:focus { transform: none; }
.demo-topbar { position: sticky; z-index: 30; top: 0; display: flex; min-height: 72px; align-items: center; gap: 20px; padding: 14px 28px; border-bottom: 0; background: var(--lf-topbar); box-shadow: inset 0 1px 0 var(--lf-line-soft); backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%); }
.demo-topbar::after { position: absolute; right: 0; bottom: -18px; left: 0; height: 18px; background: linear-gradient(to bottom, rgba(0,0,0,.38), transparent); content: ""; pointer-events: none; }
.demo-brand { color: var(--demo-ink); font-family: var(--lf-serif); font-size: 24px; font-optical-sizing: auto; letter-spacing: -.02em; text-decoration: none; }
.demo-firm { padding-left: 18px; border-left: 1px solid var(--demo-border); color: var(--demo-muted); }
.demo-badge { padding: 5px 11px; border: 1px solid var(--lf-accent-line); border-radius: var(--lf-radius-pill); background: var(--lf-accent-soft); color: var(--demo-accent); font-family: var(--lf-mono); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }
.demo-top-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.demo-theme-toggle { display:inline-flex; overflow:hidden; border:1px solid var(--lf-line-strong); border-radius:var(--lf-radius-sm); background:var(--lf-panel); }
.demo-theme-toggle button { display:grid; width:30px; height:30px; padding:0; place-items:center; border:0; background:transparent; color:var(--demo-muted); cursor:pointer; }
.demo-theme-toggle button svg { width:16px; height:16px; }
.demo-theme-toggle button[aria-pressed="true"] { background:var(--lf-accent-soft); color:var(--demo-accent); }
.demo-top-actions a, .demo-link-button { border: 0; background: none; color: var(--demo-muted); cursor: pointer; font-size: 12.5px; text-decoration: none; }
.demo-avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--demo-accent); color: var(--lf-accent-ink); font-size: 11px; font-weight: 700; }
.demo-notice { padding: 8px 24px; border-bottom: 1px solid var(--lf-accent-line); background: var(--lf-accent-soft); color: var(--demo-muted); font-size: 12px; text-align: center; }
.demo-notice strong { color: var(--demo-accent); }
.demo-shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: calc(100vh - 105px); }
.demo-sidebar { display: flex; position: sticky; top: 105px; height: calc(100vh - 105px); flex-direction: column; padding: 24px 14px; border-right: 1px solid var(--lf-line-soft); background: var(--lf-sidebar); box-shadow: 12px 0 36px -32px rgba(0,0,0,.9); backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%); }
.demo-nav { display: flex; flex-direction: column; gap: 5px; }
.demo-nav button { display: flex; position: relative; align-items: center; gap: 11px; padding: 10px 12px; border: 0; border-radius: var(--lf-radius-sm); background: transparent; color: var(--demo-muted); cursor: pointer; text-align: left; }
.demo-nav button span { display: inline-grid; width: 21px; place-items: center; color: var(--demo-accent); font-family: var(--lf-serif); }
.demo-nav button span svg { width: 18px; height: 18px; overflow: visible; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.demo-nav button[aria-current="page"] { background: var(--lf-panel-hover); color: var(--demo-accent); font-weight: 600; }
.demo-nav button[aria-current="page"]::before { position: absolute; top: 8px; bottom: 8px; left: -14px; width: 2px; border-radius: 2px; background: var(--demo-accent); content: ""; }
.demo-plan { margin-top: auto; padding: 18px; border: 1px solid var(--demo-border); border-radius: var(--lf-radius-md); background: linear-gradient(145deg,var(--lf-panel-raised),var(--demo-raised) 48%); box-shadow: var(--lf-shadow-card); }
.demo-plan p { margin: 0 0 8px; color: var(--demo-accent); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.demo-plan strong { font-size: 18px; }
.demo-plan strong span, .demo-plan small { color: var(--demo-muted); font-size: 10px; font-weight: 400; }
.demo-plan > div { height: 4px; margin: 12px 0 7px; overflow: hidden; border-radius: 99px; background: var(--lf-line-soft); }
.demo-plan i { display: block; width: 48.56%; height: 100%; background: var(--demo-accent); }
.demo-plan a { display: inline-block; margin-top: 12px; color: var(--demo-accent); font-size: 11px; }
.demo-main { min-width: 0; padding: 48px clamp(28px,4vw,56px) 72px; }
.demo-view[hidden] { display: none; }
.demo-view h1 { margin: 5px 0 7px; font-family: var(--lf-serif); font-size: var(--lf-text-h1); font-optical-sizing: auto; font-weight: 400; letter-spacing: var(--lf-track-display); line-height: var(--lf-leading-tight); outline: none; }
.demo-eyebrow { margin: 0; color: var(--demo-accent); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.demo-view-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; margin-bottom: 36px; }
.demo-view-head p:not(.demo-eyebrow) { margin: 0; color: var(--demo-muted); }
.demo-view-actions { display: flex; gap: 10px; }
.demo-button { min-height: 42px; padding: 10px 18px; border: 1px solid var(--lf-btn-primary-bg); border-radius: var(--lf-radius-sm); background: var(--lf-btn-primary-bg); color: var(--lf-btn-primary-ink); box-shadow: var(--lf-shadow-card); cursor: pointer; font-weight: 600; }
.demo-button span { font-size: 10px; font-weight: 500; }
.demo-button-secondary { border-color: var(--lf-line-strong); background: transparent; box-shadow: 0 1px 0 rgba(255,255,255,.025) inset; color: var(--demo-ink); }
.demo-button:disabled { cursor: default; opacity: .5; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .demo-top-actions a:hover, .demo-link-button:hover { color: var(--demo-ink); }
  .demo-button:hover { border-color: var(--lf-btn-primary-hover); background: var(--lf-btn-primary-hover); transform: translateY(-1px); }
  .demo-button-secondary:hover { border-color: var(--lf-line-strong); background: var(--lf-panel-hover); }
  .demo-dropzone:hover { border-color: var(--demo-accent); background: var(--lf-accent-soft); transform: translateY(-1px); }
  .demo-flag-list button:hover { border-color: var(--demo-accent); color: var(--demo-ink); }
  .demo-table tbody tr:hover { background: var(--lf-panel-hover); }
}

/* The shared light tokens remove dark-only chrome highlights without changing demo behaviour. */
.demo-skip { background:var(--lf-panel); color:var(--lf-text); }
.demo-topbar::after { background:linear-gradient(to bottom,var(--lf-line-soft),transparent); }
.demo-notice { border-color:var(--lf-accent-line); background:var(--lf-accent-soft); }
.demo-sidebar { background:var(--lf-sidebar); box-shadow:12px 0 36px -32px rgba(0,0,0,.32); }
.demo-plan > div { background:var(--lf-line-soft); }
.demo-button-secondary { box-shadow:none; }
@media (hover: hover) and (pointer: fine) {
  .demo-button-secondary:hover { border-color:var(--lf-line-strong); background:var(--lf-panel-hover); }
  .demo-table tbody tr:hover { background:var(--lf-panel-hover); }
}
.demo-dropzone { display: flex; width: 100%; min-height: 190px; align-items: center; justify-content: center; flex-direction: column; gap: 8px; margin-bottom: 28px; border: 1px dashed var(--lf-accent-line); border-radius: var(--lf-radius-md); background: radial-gradient(circle at 50% 0,var(--lf-accent-soft),transparent 54%),var(--lf-drop); box-shadow: var(--lf-shadow-card); color: var(--demo-ink); cursor: pointer; }
.demo-dropzone > span:last-child { color: var(--demo-muted); font-size: 12px; }
.demo-drop-icon { color: var(--demo-accent); font-size: 28px; }
.demo-panel { margin-bottom: 24px; overflow: hidden; border: 1px solid var(--demo-border); border-radius: var(--lf-radius-md); background: linear-gradient(145deg,color-mix(in oklab,var(--lf-panel-raised) 20%,var(--demo-raised)),var(--demo-raised) 42%); box-shadow: var(--lf-shadow-card); }
.demo-panel-head { display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 24px; border-bottom: 1px solid var(--lf-line-soft); background: color-mix(in oklab,var(--demo-raised-2) 88%,transparent); }
.demo-panel-head h2, .demo-panel > h2 { margin: 0; font-family: var(--lf-serif); font-size: 21px; font-optical-sizing: auto; font-weight: 400; letter-spacing: var(--lf-track-heading); line-height: var(--lf-leading-heading); }
.demo-panel-head p { margin: 4px 0 0; color: var(--demo-muted); font-size: 12px; }
.demo-panel-head > span { color: var(--demo-muted); font-size: 11px; }
.demo-table-scroll { overflow-x: auto; }
.demo-table { width: 100%; min-width: 680px; border-collapse: collapse; }
.demo-table th, .demo-table td { padding: 16px 20px; border-bottom: 1px solid var(--lf-line-soft); text-align: left; vertical-align: middle; }
.demo-table th { background: color-mix(in oklab,var(--demo-raised-2) 88%,transparent); color: var(--lf-text-muted); font-family: var(--lf-mono); font-size: 10px; font-weight: 500; letter-spacing: var(--lf-track-label); text-transform: uppercase; }
.demo-table td { color: var(--demo-muted); font-size: 12px; }
.demo-table td strong { display: block; color: var(--demo-ink); font-size: 13px; }
.demo-table td small { display: block; margin-top: 3px; color: var(--lf-text-subtle); }
.demo-status { display: inline-flex; padding: 5px 9px; border-radius: 99px; font-size: 10px; white-space: nowrap; }
.demo-status-done { background: var(--lf-success-soft); color: var(--demo-success); }
.demo-status-review, .demo-status-new { background: var(--lf-accent-soft); color: var(--demo-accent); }
.demo-status-running { background: rgba(137,164,199,.14); color: #a7bdd9; }
.demo-progress { width: 105px; height: 3px; margin-top: 6px; overflow: hidden; border-radius: 99px; background: var(--lf-line-soft); }
.demo-progress i { display: block; width: 12%; height: 100%; background: #a7bdd9; transition: width var(--lf-duration-material) var(--ease-out); }
.demo-review-count { padding: 6px 10px; border-radius: 99px; background: var(--lf-accent-soft); color: var(--demo-accent) !important; }
.demo-flag-list article { display: grid; grid-template-columns: 1fr auto 130px; gap: 20px; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--demo-border); }
.demo-flag-list article small { color: var(--demo-muted); }
.demo-flag-list article p { margin: 5px 0 0; }
.demo-flag-list mark { padding: 1px 3px; background: color-mix(in oklab,var(--lf-accent) 24%,transparent); color: var(--demo-ink); }
.demo-flag-list article > div:nth-child(2) { display: flex; gap: 7px; }
.demo-flag-list button { padding: 8px 10px; border: 1px solid var(--demo-border); border-radius: 3px; background: transparent; color: var(--demo-muted); cursor: pointer; font-size: 11px; }
.demo-flag-list article.is-resolved { opacity: .62; }
.demo-flag-list article > span { color: var(--demo-success); font-size: 11px; }
.demo-review-complete { display: flex; align-items: center; gap: 18px; padding: 20px 22px; background: var(--lf-success-soft); }
.demo-review-complete[hidden] { display: none; }
.demo-review-complete p { color: var(--demo-muted); font-size: 12px; }
.demo-style-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.demo-style-grid > article, .demo-add-style { min-height: 315px; padding: 18px; border: 1px solid var(--demo-border); border-radius: var(--lf-radius-md); background: var(--demo-raised); box-shadow: var(--lf-shadow-card); }
.demo-style-preview { display: flex; min-height: 185px; flex-direction: column; gap: 12px; padding: 28px 24px; background: #f3f0e9; color: #333; font-family: Georgia, serif; }
.demo-style-preview b { color: #7b6238; font-size: 10px; letter-spacing: .16em; text-align: center; }
.demo-style-preview span { margin-top: 18px; padding-bottom: 6px; border-bottom: 1px solid #a68b59; font-weight: 700; text-transform: uppercase; }
.demo-style-preview i { font-size: 11px; }
.demo-style-employment { border-top: 5px solid #384b67; }
.demo-style-property { border-top: 5px solid #795f36; }
.demo-style-new { border-top: 5px solid #526b4c; }
.demo-style-grid h2 { margin: 16px 0 4px; font-family: var(--lf-serif); font-size: 20px; font-optical-sizing: auto; font-weight: 400; letter-spacing: var(--lf-track-heading); }
.demo-style-grid article > p { margin: 0 0 10px; color: var(--demo-muted); font-size: 11px; }
.demo-add-style { display: grid; place-items: center; align-content: center; gap: 7px; border-style: dashed; color: var(--demo-muted); cursor: pointer; }
.demo-add-style span { color: var(--demo-accent); font-size: 30px; }
.demo-add-style small { color: var(--lf-text-subtle); }
.demo-info { padding: 20px 22px; border-left: 2px solid var(--demo-accent); background: var(--lf-accent-soft); }
.demo-info p { margin: 5px 0 0; color: var(--demo-muted); }
.demo-settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.demo-settings-grid .demo-panel { padding: 24px; }
.demo-settings-grid .demo-panel > p { color: var(--demo-muted); }
.demo-segmented { display: flex; width: fit-content; margin: 18px 0 10px; padding: 3px; border: 1px solid var(--demo-border); border-radius: 99px; }
.demo-segmented button { padding: 8px 13px; border: 0; border-radius: 99px; background: transparent; color: var(--demo-muted); cursor: pointer; }
.demo-segmented button[aria-pressed="true"] { background: var(--demo-accent); color: var(--demo-bg); }
.demo-settings-grid small { color: var(--demo-muted); }
.demo-settings-list { margin: 15px 0 0; }
.demo-settings-list div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--demo-border); }
.demo-settings-list dt { color: var(--demo-muted); }
.demo-settings-list dd { margin: 0; color: var(--demo-accent); text-align: right; }
.demo-switch { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--demo-border); }
.demo-switch input { position: absolute; opacity: 0; }
.demo-switch i { position: relative; width: 38px; height: 20px; border-radius: 99px; background: var(--lf-line); }
.demo-switch i::after { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--demo-ink); content: ""; transition: transform .15s ease; }
.demo-switch input:checked + i { background: var(--demo-accent); }
.demo-switch input:checked + i::after { background: var(--demo-bg); transform: translateX(18px); }
.demo-dialog { width: min(560px, calc(100% - 32px)); padding: 0; border: 1px solid var(--lf-accent-line); border-radius: var(--lf-radius-lg); background: var(--lf-material); color: var(--demo-ink); box-shadow: var(--lf-shadow-pop); backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%); }
.demo-dialog::backdrop { background: rgba(0,0,0,.76); backdrop-filter: blur(4px); }
.demo-dialog-head { display: flex; justify-content: space-between; gap: 20px; padding: 22px 24px; border-bottom: 1px solid var(--demo-border); }
.demo-dialog-head h2 { margin: 4px 0 0; font-family: var(--lf-serif); font-size: 24px; font-optical-sizing: auto; font-weight: 400; letter-spacing: var(--lf-track-heading); line-height: var(--lf-leading-heading); }
.demo-dialog-head > button { border: 0; background: none; color: var(--demo-muted); cursor: pointer; font-size: 22px; }
.demo-dialog-note { margin: 20px 24px; color: var(--demo-muted); font-size: 12px; }
.demo-file-row { display: flex; align-items: center; gap: 14px; margin: 0 24px 20px; padding: 14px; border: 1px solid var(--demo-border); border-radius: 4px; background: var(--demo-bg); }
.demo-file-row > span { color: var(--demo-accent); font-size: 10px; font-weight: 700; }
.demo-file-row div { display: flex; flex-direction: column; }
.demo-file-row small { color: var(--demo-muted); }
.demo-dialog fieldset { margin: 0 24px; padding: 0; border: 0; }
.demo-dialog legend, .demo-text-field { margin-bottom: 9px; color: var(--demo-muted); font-size: 11px; }
.demo-dialog fieldset label { display: flex; align-items: center; gap: 9px; padding: 11px 0; border-bottom: 1px solid var(--demo-border); }
.demo-dialog fieldset label span { margin-left: auto; color: var(--demo-accent); font-size: 10px; }
.demo-text-field { display: flex; margin: 0 24px; flex-direction: column; gap: 7px; }
.demo-text-field input { min-height: 42px; padding: 11px; border: 1px solid var(--lf-line-strong); border-radius: var(--lf-radius-sm); background: var(--lf-input); color: var(--demo-ink); }
.demo-dialog-trust { margin: 18px 24px 0; padding: 12px; border-left: 2px solid var(--demo-success); background: var(--lf-success-soft); color: var(--demo-muted); font-size: 11px; }
.demo-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; padding: 18px 24px; border-top: 1px solid var(--demo-border); }
.demo-tour { position: fixed; z-index: 70; inset: 0; display: grid; place-items: center; }
.demo-tour[hidden] { display: none; }
.demo-tour-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.8); backdrop-filter: blur(4px); }
.demo-tour-card { position: relative; z-index: 1; width: min(470px, calc(100% - 32px)); padding: 32px; border: 1px solid var(--lf-accent-line); border-radius: var(--lf-radius-lg); background: var(--lf-material); box-shadow: var(--lf-shadow-pop); backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%); }
.demo-tour-card h2 { margin: 9px 0 12px; font-family: var(--lf-serif); font-size: 29px; font-optical-sizing: auto; font-weight: 400; letter-spacing: var(--lf-track-heading); line-height: var(--lf-leading-heading); }
.demo-tour-card p:not(.demo-eyebrow) { color: var(--demo-muted); }
.demo-tour-card section > div { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; }
.demo-toast { position: fixed; z-index: 80; right: 20px; bottom: 20px; max-width: 340px; padding: 13px 16px; border: 1px solid var(--demo-border); border-radius: var(--lf-radius-md); background: var(--lf-material); box-shadow: var(--lf-shadow-raised); backdrop-filter: blur(20px) saturate(140%); }
.demo-noscript { position: fixed; z-index: 90; right: 12px; bottom: 12px; left: 12px; padding: 14px; background: #f5f1e8; color: #26211a; text-align: center; }
@media (prefers-reduced-motion: no-preference) { .demo-dialog[open], .demo-tour-card { animation: demoPop var(--lf-duration-material) var(--ease-out); } .demo-view:not([hidden]) > :is(.demo-view-head,.demo-dropzone,.demo-panel,.demo-style-grid,.demo-settings-grid) { animation: demoEnter var(--lf-duration-ui) var(--ease-out) both; } .demo-view:not([hidden]) > :is(.demo-dropzone,.demo-panel,.demo-style-grid,.demo-settings-grid):nth-child(2) { animation-delay: var(--lf-stagger); } @keyframes demoPop { from { opacity:0; transform:translateY(8px) scale(.97); } } @keyframes demoEnter { from { opacity:0; transform:translateY(7px); } } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .demo-dialog,
  .demo-tour-card,
  .demo-page button,
  .demo-button { transform: none !important; }
  .demo-switch i::after { transition: none; }
  .demo-button,
  .demo-link-button,
  .demo-top-actions a,
  .demo-toast {
    transition-property: opacity, color, background-color, border-color;
    transition-duration: 200ms;
    transition-timing-function: var(--ease-out);
  }
}
@media (prefers-reduced-transparency: reduce) {
  .demo-topbar { background: var(--lf-topbar); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .demo-sidebar { background: var(--lf-sidebar); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .demo-dialog, .demo-tour-card, .demo-toast { background: var(--lf-material-solid); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .demo-dialog::backdrop { background: rgba(0,0,0,.92); backdrop-filter: none; }
  .demo-tour-backdrop { background: rgba(0,0,0,.94); backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .demo-topbar { box-shadow: inset 0 -1px 0 var(--lf-line-strong); background: var(--demo-bg); backdrop-filter: none; }
  .demo-panel, .demo-dropzone, .demo-style-grid > article, .demo-add-style, .demo-text-field input { border-color: var(--lf-line-strong); }
}
@media (max-width: 980px) { .demo-shell { grid-template-columns: 180px minmax(0,1fr); } .demo-main { padding: 34px 28px 60px; } .demo-style-grid { grid-template-columns: 1fr 1fr; } .demo-flag-list article { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .demo-topbar { gap: 10px; padding: 11px 14px; }
  .demo-firm, .demo-top-actions .demo-link-button, .demo-top-actions a { display: none; }
  .demo-badge { margin-left: auto; }
  .demo-top-actions { margin-left: 0; }
  .demo-notice { padding-inline: 14px; }
  .demo-shell { display: block; }
  .demo-sidebar { position: sticky; z-index: 20; top: 91px; width: 100%; height: auto; padding: 8px 10px; border-right: 0; border-bottom: 1px solid var(--demo-border); }
  .demo-nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
  .demo-nav::-webkit-scrollbar { display: none; }
  .demo-nav button { flex: 0 0 auto; white-space: nowrap; }
  .demo-plan { display: none; }
  .demo-main { padding: 28px 18px 55px; }
  .demo-view-head { flex-direction: column; }
  .demo-view-actions { width: 100%; flex-direction: column; }
  .demo-dropzone { padding: 25px 18px; text-align: center; }
  .demo-style-grid, .demo-settings-grid { grid-template-columns: 1fr; }
  .demo-panel-head { align-items: flex-start; flex-direction: column; }
  .demo-flag-list article > div:nth-child(2) { flex-direction: column; }
  .demo-review-complete { align-items: stretch; flex-direction: column; }
  .demo-dialog-actions { flex-direction: column-reverse; }
  .demo-tour-card section > div { align-items: stretch; flex-direction: column-reverse; gap: 12px; }
}

/* Auth-gate spinner. Ported from console.css, which the graphite workspace pages no
   longer load — the element carries no other class, so it had no size, no border and
   no animation, and the "Checking your LexForge workspace..." gate showed nothing. */
.convert-spinner { width: 22px; height: 22px; border: 2px solid var(--lf-line-strong); border-top-color: var(--lf-accent); border-radius: 50%; animation: lf-spin .7s linear infinite; }
@keyframes lf-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .convert-spinner { animation-duration: 2.4s; } }
