/* wemio-f4demo.css — extracted from f4_demo.html inline <style> (2026-06-11 全系统重构 Phase4 Step3,
   字节级等价:cascade 原位 link 替换,渲染不变,仅可缓存+可维护) */
/* :root 色板已迁移到 claude-design-system.css */
  * { box-sizing: border-box; }
  html, body {
    margin: 0; padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    line-height: 1.55;
  }
  .wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 24px 80px;
  }
  header { margin-bottom: 28px; }
  header h1 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.02em;
  }
  header h1 .sub { color: var(--accent); font-weight: 400; }
  header p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
  }
  .input-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 24px;
  }
  .input-card label {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
  textarea {
    width: 100%;
    min-height: 110px;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px;
    font: inherit;
    line-height: 1.6;
    resize: vertical;
  }
  textarea:focus {
    outline: none;
    border-color: var(--accent);
  }
  .controls {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
    align-items: center;
  }
  button {
    background: var(--accent);
    color: var(--accent-fg);
    border: 0;
    border-radius: 8px;
    padding: 10px 18px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
  }
  button:hover { filter: brightness(1.1); }
  button.ghost {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border);
    font-weight: 400;
  }
  .sample-tag {
    color: var(--muted);
    font-size: 12px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px dashed var(--border);
  }
  .sample-tag:hover { color: var(--text); border-color: var(--accent); }

  .summary {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
    display: none;
  }
  .summary.show { display: block; }
  .summary-title {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 6px;
  }
  .summary-text {
    margin: 0;
    font-size: 15px;
  }
  .summary-text .conf { color: var(--accent); font-weight: 600; }

  .active-director-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    margin: 16px 0;
    background: linear-gradient(135deg, rgba(212,160,78,0.12), rgba(212,160,78,0.04));
    border: 1px solid var(--accent);
    border-radius: 10px;
  }
  .active-director-banner .adb-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
  }
  .active-director-banner .adb-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--bg);
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
  }
  .active-director-banner .adb-text { flex: 1; }
  .active-director-banner .adb-label {
    margin: 0 0 2px 0;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .active-director-banner .adb-name {
    margin: 0;
    font-size: 15px;
    color: var(--text);
  }
  .active-director-banner .adb-name strong { color: var(--accent); font-weight: 600; }
  .active-director-banner .adb-name-en {
    color: var(--muted);
    font-size: 12px;
    margin-left: 6px;
  }
  .active-director-banner .adb-right {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .active-director-banner .adb-btn-secondary {
    background: transparent;
    border: 1px solid var(--muted);
    color: var(--text);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
  }
  .active-director-banner .adb-btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
  }
  .active-director-banner .adb-btn-link {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 12px;
    cursor: pointer;
    padding: 6px 4px;
  }
  .active-director-banner .adb-btn-link:hover { color: var(--low); }

  /* Save-director button (modal) — primary CTA tinted distinct from "应用" */
  .save-director-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    margin-top: 10px;
    background: rgba(120, 200, 140, 0.08);
    border: 1px solid var(--high);
    border-radius: 8px;
  }
  .save-director-bar p {
    margin: 0;
    flex: 1;
    color: var(--text);
    font-size: 13px;
  }
  .save-director-bar button {
    padding: 8px 16px;
    background: var(--high);
    color: var(--bg);
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
  }
  .save-director-bar button:hover { background: var(--high); }
  .save-director-bar button:disabled { opacity: 0.5; cursor: not-allowed; }
  .save-director-bar.is-saved {
    background: rgba(120, 200, 140, 0.15);
  }
  .save-director-bar.is-saved button {
    background: var(--bg);
    color: var(--high);
    border: 1px solid var(--high);
  }

  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
  }
  .card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 18px;
    transition: border-color 0.18s, transform 0.18s;
    position: relative;
  }
  .card.top {
    border-color: var(--accent);
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
  }
  .card.top::before {
    content: "推荐";
    position: absolute;
    top: -10px; left: 14px;
    background: var(--accent);
    color: var(--accent-fg);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 0.05em;
  }
  .card.runner-up {
    border-color: var(--accent-2);
  }
  .card.runner-up::before {
    content: "备选";
    position: absolute;
    top: -10px; left: 14px;
    background: var(--accent-2);
    color: var(--accent-fg);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
  }
  .card-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
  }
  .card-name .zh {
    color: var(--muted);
    font-weight: 400;
    margin-left: 6px;
    font-size: 13px;
  }
  .conf-badge {
    display: inline-block;
    margin-top: 6px;
    margin-bottom: 10px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .conf-high { background: rgba(70, 201, 140, 0.15); color: var(--high); }
  .conf-med  { background: rgba(212, 160, 78, 0.15); color: var(--med); }
  .conf-low  { background: rgba(184, 94, 94, 0.15); color: var(--low); }
  .conf-na   { background: rgba(139, 145, 166, 0.15); color: var(--muted); }

  .why { font-size: 13px; color: var(--text); margin: 0 0 10px; }
  .tagline { font-size: 12px; color: var(--muted); margin: 0 0 12px; line-height: 1.5; }
  .films {
    list-style: none;
    margin: 0; padding: 0;
    border-top: 1px dashed var(--border);
    padding-top: 10px;
  }
  .films li {
    font-size: 12px;
    color: var(--muted);
    padding: 1px 0;
  }
  .films li::before { content: "▸ "; opacity: 0.5; }
  .advisory {
    margin-top: 8px;
    font-size: 11px;
    color: var(--low);
  }

  .footer {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
  }
  .footer code {
    background: var(--surface-2);
    padding: 1px 5px;
    border-radius: 4px;
    color: var(--accent);
  }

  .empty {
    text-align: center;
    color: var(--muted);
    padding: 40px 20px;
    border: 1px dashed var(--border);
    border-radius: 12px;
  }

  .card { cursor: pointer; }
  .card:hover { border-color: var(--accent); transform: translateY(-1px); }

  /* === Detail modal === */
  .modal-bg {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    z-index: 50;
    overflow-y: auto;
  }
  .modal-bg.show { display: block; }
  .modal {
    max-width: 880px;
    margin: 60px auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  }
  .modal-header {
    padding: 20px 24px 14px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .modal-title { flex: 1; }
  .modal-title h2 { margin: 0 0 4px; font-size: 22px; font-weight: 600; }
  .modal-title h2 .zh { color: var(--accent); font-size: 17px; margin-left: 8px; font-weight: 400; }
  .modal-title p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

  .view-toggle {
    display: flex;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
  }
  .view-toggle button {
    background: transparent;
    color: var(--muted);
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 0;
  }
  .view-toggle button.active {
    background: var(--accent);
    color: var(--accent-fg);
  }
  .view-toggle button:not(.active):hover {
    color: var(--text);
    background: var(--surface-2);
  }

  .modal-body { padding: 18px 24px 28px; }
  .modal-section { margin-bottom: 22px; }
  .modal-section h3 {
    margin: 0 0 10px;
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
  }
  .modal-section .body {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text);
  }
  .pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .pill {
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
  }
  .pill.bad { color: var(--low); border-color: rgba(184,94,94,0.4); }
  .pill.good { color: var(--high); border-color: rgba(70,201,140,0.3); }

  /* P1-3 (2026-05-07) — ref-routing pill categories. Each maps 1:1 to a
     backend ``_RouteRefUiCategory`` Literal value; lockstep enforced by
     ``backend/tests/test_route_ref_ui_category_lockstep_v1.py``.
     ``ref-pill-unknown`` is the drift-canary: when backend adds a tier
     and forgets to map it (or the map's UI category itself is unknown),
     the pill renders with a loud red border AND console.warn fires. */
  .pill.ref-pill-strong   { color: var(--high); border-color: rgba(70,201,140,0.45); }
  .pill.ref-pill-default  { color: var(--muted); border-color: var(--border); }
  .pill.ref-pill-neutral  { color: var(--low); border-color: rgba(184,94,94,0.4); }
  .pill.ref-pill-warning  { color: #b8651a; border-color: rgba(220,140,40,0.55); background: rgba(220,140,40,0.08); }
  .pill.ref-pill-unknown  { color: #b85e5e; border-color: rgba(184,94,94,0.85); background: rgba(184,94,94,0.12); border-style: dashed; }

  .moment, .directive {
    border-left: 2px solid var(--accent);
    padding: 6px 0 6px 14px;
    margin-bottom: 12px;
  }
  .directive { border-left-color: var(--accent-2); }
  .moment-name, .directive-name {
    font-weight: 600;
    font-size: 13px;
    margin: 0 0 4px;
  }
  .moment-name .zh, .directive-name .zh { color: var(--muted); font-weight: 400; margin-left: 6px; font-size: 12px; }
  .moment-desc, .directive-desc {
    color: var(--muted);
    font-size: 12px;
    margin: 0 0 4px;
    line-height: 1.55;
  }
  .moment-prompt, .directive-emphasis {
    background: var(--bg);
    color: var(--text);
    border: 1px dashed var(--border);
    padding: 8px 10px;
    border-radius: 6px;
    font-family: ui-monospace, "Consolas", monospace;
    font-size: 11px;
    line-height: 1.5;
    margin-top: 4px;
  }

  .runtime-payload {
    background: var(--bg);
    border: 1px solid var(--high);
    border-radius: 8px;
    padding: 12px 14px;
  }
  .runtime-payload h3 { color: var(--high); }
  .runtime-payload pre {
    margin: 0;
    background: transparent;
    border: 0;
    padding: 0;
    font-size: 12px;
    color: var(--text);
    white-space: pre-wrap;
    word-break: break-word;
  }

  .modal-close {
    background: transparent;
    color: var(--muted);
    font-size: 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 32px; height: 32px;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
  }
  .modal-close:hover { color: var(--text); border-color: var(--accent); }

  .runtime-vs-dev-note {
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
    line-height: 1.5;
  }
  .runtime-vs-dev-note code {
    background: var(--bg);
    padding: 1px 5px;
    border-radius: 3px;
    color: var(--accent);
    font-size: 10px;
  }

  /* === Apply director (end-to-end) === */
  .apply-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface-2);
    border: 1px solid var(--accent);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 18px;
  }
  .apply-bar p {
    margin: 0;
    flex: 1;
    color: var(--text);
    font-size: 13px;
  }
  .apply-bar p strong { color: var(--accent); }
  .apply-bar button {
    padding: 8px 16px;
    font-size: 13px;
  }
  .change-block {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 10px;
  }
  .change-block.narrative { border-left: 3px solid var(--accent); }
  .change-block.visual { border-left: 3px solid var(--accent-2); }
  .change-title {
    font-weight: 600;
    font-size: 13px;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .change-op {
    background: var(--surface);
    color: var(--accent);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 10px;
    font-family: ui-monospace, monospace;
  }
  .change-why {
    color: var(--muted);
    font-size: 11px;
    margin: 0 0 6px;
    font-style: italic;
  }
  .change-payload {
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 12px;
    color: var(--text);
    line-height: 1.5;
    white-space: pre-wrap;
  }
  .apply-summary {
    background: var(--surface-2);
    border: 1px solid var(--accent);
    border-left-width: 4px;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--text);
  }
  .apply-loading {
    text-align: center;
    padding: 32px;
    color: var(--muted);
  }

  .render-bar {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
    align-items: center;
  }
  .render-bar button {
    font-size: 11px;
    padding: 5px 12px;
  }
  .render-cost {
    font-size: 11px;
    color: var(--muted);
  }
  .render-cost strong { color: var(--accent); }
  .video-result {
    margin-top: 8px;
    padding: 8px;
    background: var(--bg);
    border: 1px solid var(--high);
    border-radius: 6px;
  }
  .video-result video {
    width: 100%;
    max-width: 400px;
    border-radius: 4px;
  }
  .video-result a {
    color: var(--accent);
    font-size: 11px;
    text-decoration: none;
  }
  .video-error {
    margin-top: 8px;
    padding: 6px 10px;
    background: rgba(184,94,94,0.1);
    border: 1px solid var(--low);
    border-radius: 6px;
    color: var(--low);
    font-size: 11px;
  }

  /* Variant editor popover (HANDBOOK §4.3.5 [✏ 修改名字/标签]) */
  .variant-editor {
    position: absolute;
    z-index: 100;
    background: var(--surface);
    border: 1px solid var(--accent);
    border-radius: 10px;
    padding: 14px 16px;
    min-width: 360px;
    max-width: 380px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    font-size: 13px;
  }
  .variant-editor .editor-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
  }
  .variant-editor label {
    width: 70px;
    color: var(--muted);
    font-size: 12px;
    flex-shrink: 0;
  }
  .variant-editor input[type="text"], .variant-editor select {
    flex: 1;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 10px;
    font: inherit;
    font-size: 12px;
  }
  .variant-editor input[type="text"]:focus, .variant-editor select:focus {
    outline: none;
    border-color: var(--accent);
  }
  .editor-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 6px;
  }
  .editor-actions button {
    font-size: 12px;
    padding: 6px 12px;
  }

  /* Lightbox — click any uploaded thumbnail to zoom (avoid wrong-file confusion) */
  .lightbox-bg {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    z-index: 200;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
  }
  .lightbox-bg.show { display: flex; }
  .lightbox-bg img {
    max-width: 92vw;
    max-height: 92vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
  }
  .lightbox-info {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: var(--text);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-family: ui-monospace, monospace;
    pointer-events: none;
  }
  .zoomable {
    cursor: zoom-in !important;
    transition: transform 0.15s;
  }
  .zoomable:hover {
    transform: scale(1.04);
    outline: 2px solid var(--accent);
    outline-offset: 1px;
  }

  /* Debug panel — toggleable, shows what runtime UI WOULD NOT see */
  details.debug {
    margin-top: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 14px;
  }
  details.debug summary {
    cursor: pointer;
    color: var(--muted);
    font-size: 12px;
    list-style: none;
  }
  details.debug summary::after { content: "  ▼"; }
  details.debug[open] summary::after { content: "  ▲"; }
  details.debug pre {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px;
    font-size: 11px;
    color: var(--muted);
    overflow-x: auto;
    white-space: pre-wrap;
  }

  /* =====================================================================
     F4_DEMO · cinematic amp v1 (2026-05-19)
     LIGHT TOUCH — large file (515KB) with pipeline UI. Polish only:
     header eyebrow + button.primary pill + toast magazine + modal entrance
     + form-field focus accent. No structural redesign.
     ===================================================================== */
  header {
    padding: 14px 22px !important;
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%) !important;
    border-bottom: 1px solid var(--border) !important;
    position: relative;
  }
  header::after {
    content: "";
    position: absolute;
    left: 22px; bottom: -1px;
    width: 64px; height: 2px;
    background: var(--accent);
  }
  header > *:first-child,
  header .brand {
    font-family: var(--font-serif) !important;
    font-weight: 500 !important;
    font-size: 17px !important;
    letter-spacing: -0.01em !important;
    color: var(--text-strong) !important;
  }
  header .crumb {
    font-family: var(--font-mono) !important;
    font-size: 10.5px !important;
    letter-spacing: 0.24em !important;
    text-transform: uppercase;
    color: var(--accent) !important;
    font-weight: 600;
  }
  header a, header button {
    font-family: var(--font-mono) !important;
    font-size: 10.5px !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase;
    padding: 6px 12px !important;
    border-radius: var(--radius-pill) !important;
  }

  h1, h2, h3 {
    font-family: var(--font-serif) !important;
    font-weight: 500 !important;
    letter-spacing: -0.012em !important;
    color: var(--text-strong) !important;
  }

  button.primary, .btn-primary {
    font-family: var(--font-mono) !important;
    font-size: 11px !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase;
    padding: 10px 18px !important;
    border-radius: var(--radius-pill) !important;
    font-weight: 700 !important;
    background: var(--accent) !important;
    color: var(--accent-fg) !important;
    border: 0 !important;
    box-shadow: 0 4px 12px var(--accent-soft);
    transition: all var(--transition-fast);
  }
  button.primary:hover:not(:disabled) {
    background: var(--accent-hover) !important;
    box-shadow: 0 6px 18px var(--accent-soft);
    transform: translateY(-1px);
  }

  input[type="text"], input[type="email"], input[type="password"],
  textarea, select {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  }
  input:focus, textarea:focus, select:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px var(--accent-soft) !important;
    outline: none !important;
  }

  .toast, .toast-wrap .toast {
    font-family: var(--font-mono) !important;
    font-size: 11px !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase;
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-left-width: 4px !important;
    padding: 12px 18px !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: var(--shadow-md) !important;
  }
  .toast.ok { border-left-color: var(--high) !important; }
  .toast.err, .toast.error { border-left-color: var(--low) !important; color: var(--low) !important; }
  .toast.warn { border-left-color: var(--med) !important; }

  .modal-bg {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.32s ease-out;
  }
  .modal-bg.visible, .modal-bg:not(.hidden) { opacity: 1; }
  .modal {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-lg) !important;
    transform: scale(0.94) translateY(8px);
    opacity: 0;
    transition:
      transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
      opacity 0.28s ease-out;
  }
  .modal-bg.visible .modal, .modal-bg:not(.hidden) .modal {
    transform: scale(1) translateY(0);
    opacity: 1;
  }

  @media (prefers-reduced-motion: reduce) {
    button.primary { transition: none; }
    .modal-bg, .modal-bg .modal { transition: none; transform: none; opacity: 1; }
  }
