/**
 * Phase 2 - static-only template <style> blocks for base shell.
 * Regenerate: python scripts/extract_template_styles_phase2.py
 * Surface: base
 */

/* ========== templates/api_schema_ui.html ========== */
body:where(.rmc-tpl--api_schema_ui, :has(.rmc-tpl--api_schema_ui)), :where(.rmc-tpl--api_schema_ui) body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
    :where(.rmc-tpl--api_schema_ui) header { padding: 12px 20px; background: var(--surface-canvas, var(--color-base-900)); color: var(--text-on-brand, var(--color-base-0)); }
    :where(.rmc-tpl--api_schema_ui) header h1 { margin: 0; font-size: var(--type-size-body-l); }
    :where(.rmc-tpl--api_schema_ui) .bar { display: flex; gap: 10px; align-items: center; }
    :where(.rmc-tpl--api_schema_ui) .badge { padding: 2px 8px; background: var(--surface-canvas, var(--color-base-800)); border-radius: 6px; font-size: var(--type-size-eyebrow); }
    :where(.rmc-tpl--api_schema_ui) .wrap { height: calc(100vh - 52px); }

/* ========== templates/auth/login.html ========== */
body:where(:has(.rmc-tpl--auth-login)) {
      background: var(--portal-bg);
    }

    :where(.rmc-tpl--auth-login) .auth-landing {
      min-height: 100vh;
      padding-bottom: 4rem;
    }

    :where(.rmc-tpl--auth-login) .auth-hero {
      border-radius: 0 0 18px 18px;
      padding: 1.5rem 2rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: linear-gradient(135deg, var(--school-primary), var(--school-accent));
      color: white;
      margin-bottom: 0.5rem;
      box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
    }

    :where(.rmc-tpl--auth-login) .auth-hero .hero-brand {
      display: flex;
      align-items: center;
      gap: 0.9rem;
    }

    :where(.rmc-tpl--auth-login) .auth-hero .hero-logo {
      width: 48px;
      height: 48px;
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.9); /* off-token-allow: white-overlay */
      display: grid;
      place-items: center;
      font-size: var(--type-size-headline-m);
    }

    :where(.rmc-tpl--auth-login) .auth-hero h1 {
      font-size: var(--type-size-body-l);
      margin-bottom: 0;
    }

    :where(.rmc-tpl--auth-login) .auth-hero small {
      display: block;
      color: rgba(255, 255, 255, 0.85); /* off-token-allow: white-overlay */
      letter-spacing: 0.08em;
    }

    :where(.rmc-tpl--auth-login) .auth-hero .hero-meta {
      text-align: right;
    }

    :where(.rmc-tpl--auth-login) .auth-breadcrumb {
      background: var(--admin-content-bg);
      padding: 0.8rem 1.2rem;
      border-radius: 12px;
      box-shadow: 0 2px 8px rgba(26, 22, 18, 0.08);
      display: flex;
      align-items: center;
      gap: 1rem;
      margin-bottom: 1.5rem;
      font-size: var(--type-size-caption);
    }

    :where(.rmc-tpl--auth-login) .login-card,
    :where(.rmc-tpl--auth-login) .info-card {
      border-radius: 18px;
      border: 1px solid rgba(26, 22, 18, 0.08); /* off-token-allow: rgba-decorative */
      background: var(--admin-content-bg);
    }

    :where(.rmc-tpl--auth-login) .login-card .form-control {
      border-radius: 12px;
      border: 1px solid rgba(26, 22, 18, 0.15); /* off-token-allow: rgba-decorative */
      padding: 0.75rem 0.85rem;
    }

    :where(.rmc-tpl--auth-login) .info-card {
      background: rgba(255, 255, 255, 0.95); /* off-token-allow: white-overlay */
      padding: 1.5rem;
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
    }

    :where(.rmc-tpl--auth-login) .quick-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 12px;
      padding: 0.35rem 0.9rem;
      border: 1px solid color-mix(in srgb, var(--school-primary) 45%, transparent);
      color: var(--school-primary);
      font-weight: 600;
      text-decoration: none;
      background: color-mix(in srgb, var(--school-primary) 8%, transparent);
      transition: background 0.2s ease, color 0.2s ease;
    }

    :where(.rmc-tpl--auth-login) .quick-link:hover {
      background: var(--school-primary);
      color: var(--admin-content-accent-fg);
      border-color: var(--school-primary);
    }

    :where(.rmc-tpl--auth-login) .quick-link-muted {
      opacity: 0.6;
      border-color: rgba(108, 117, 125, 0.4); /* off-token-allow: rgba-decorative */
      color: var(--portal-text-muted);
      background: rgba(108, 117, 125, 0.08); /* off-token-allow: rgba-decorative */
    }

    :where(.rmc-tpl--auth-login) .quick-link-muted:hover {
      opacity: 1;
      color: var(--portal-text-muted);
      border-color: rgba(108, 117, 125, 0.6); /* off-token-allow: rgba-decorative */
    }

    :where(.rmc-tpl--auth-login) .badge {
      font-size: var(--type-size-micro);
      letter-spacing: 0.08em;
    }

    :where(.rmc-tpl--auth-login) .info-card .quick-links {
      display: flex;
      flex-wrap: wrap;
      gap: 0.65rem;
    }

    :where(.rmc-tpl--auth-login) .hero-actions a {
      margin-right: 0.35rem;
    }

    :where(.rmc-tpl--auth-login) .login-split {
      display: flex;
      min-height: 100vh;
    }
    :where(.rmc-tpl--auth-login) .login-split__left {
      flex: 1;
      min-height: 60vh;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      background-color: color-mix(in srgb, var(--admin-content-border) 55%, var(--admin-content-bg));
    }
    :where(.rmc-tpl--auth-login) .login-split__right {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 2rem;
      background: var(--portal-bg);
    }
    :where(.rmc-tpl--auth-login) .login-split .auth-hero {
      margin-bottom: 0;
      border-radius: 0;
    }
    @media (max-width: 767px) {
      :where(.rmc-tpl--auth-login) .login-split {
        flex-direction: column;
      }
      :where(.rmc-tpl--auth-login) .login-split__left {
        min-height: 28vh;
      }
    }
    @media (max-width: 991px) {
      :where(.rmc-tpl--auth-login) .info-card {
        flex-direction: column;
      }

      :where(.rmc-tpl--auth-login) .auth-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
      }

      :where(.rmc-tpl--auth-login) .auth-hero .hero-meta {
        text-align: left;
      }

      :where(.rmc-tpl--auth-login) .auth-breadcrumb {
        flex-direction: column;
        align-items: flex-start;
      }
    }
    /* Desktop: ensure login does not look like a narrow mobile strip */
    @media (min-width: 992px) {
      :where(.rmc-tpl--auth-login) .auth-landing .container { max-width: 1140px; }
      :where(.rmc-tpl--auth-login) .auth-hero { padding: 2rem 2.5rem; }
      :where(.rmc-tpl--auth-login) .auth-hero .hero-logo { width: 56px; height: 56px; font-size: var(--type-size-headline-m); }
      :where(.rmc-tpl--auth-login) .login-card, :where(.rmc-tpl--auth-login) .info-card { min-width: 320px; }
    }

/* ========== templates/errors/429.html ========== */
:where(.rmc-tpl--errors-429) .error-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 20px;
}

:where(.rmc-tpl--errors-429) .error-container {
    text-align: center;
    max-width: 600px;
}

:where(.rmc-tpl--errors-429) .error-container h1 {
    font-size: var(--type-size-headline-l);
    color: var(--color-amber-600);
    margin-bottom: 10px;
}

:where(.rmc-tpl--errors-429) .error-code {
    font-size: var(--type-size-display);
    font-weight: bold;
    color: var(--color-amber-600);
    opacity: 0.3;
    margin: 20px 0;
}

:where(.rmc-tpl--errors-429) .error-message {
    font-size: var(--type-size-body-l);
    color: var(--text-secondary, var(--color-base-600));
    margin: 20px 0;
}

:where(.rmc-tpl--errors-429) .error-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 30px 0;
}

:where(.rmc-tpl--errors-429) .error-actions .btn {
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

:where(.rmc-tpl--errors-429) .error-actions .btn {
    background: var(--surface-elevated, var(--color-base-100));
    color: var(--text-primary, var(--color-base-800));
}

:where(.rmc-tpl--errors-429) .error-actions .btn:hover {
    background: var(--surface-canvas, var(--color-base-300));
}

:where(.rmc-tpl--errors-429) .error-actions .btn-primary {
    background: var(--color-sky-500);
    color: white; /* theme-locked-allow: decorative-tint-mix */
}

:where(.rmc-tpl--errors-429) .error-actions .btn-primary:hover {
    background: color-mix(in oklab, var(--color-sky-500) 72%, var(--color-base-900)); /* theme-locked-allow: decorative-tint-mix */
}

:where(.rmc-tpl--errors-429) .error-details {
    margin-top: 40px;
    padding: 20px;
    background: var(--surface-elevated, var(--color-base-50));
    border-radius: 8px;
    text-align: left;
}

:where(.rmc-tpl--errors-429) .error-details p {
    margin: 10px 0;
    font-size: var(--type-size-body);
}

:where(.rmc-tpl--errors-429) .error-details strong {
    color: var(--text-primary, var(--color-base-800));
}

/* ========== templates/errors/500_minimal.html ========== */
/* v2.44 — warm-bright self-contained styling so the page still feels
       welcoming when /static/ assets are unreachable. Pure inline CSS,
       no external dependency. */
    html:where(.rmc-tpl--errors-500_minimal, :has(.rmc-tpl--errors-500_minimal)), body:where(.rmc-tpl--errors-500_minimal, :has(.rmc-tpl--errors-500_minimal)), :where(.rmc-tpl--errors-500_minimal) body { margin: 0; padding: 0; background: #fdf9f2; color: #2a241e; /* off-token-allow: error-page-self-contained-fallback */
                 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
                 line-height: 1.6; min-height: 100vh; }
    :where(.rmc-tpl--errors-500_minimal) main { max-width: 38rem; margin: 0 auto; padding: 4rem 1.5rem; }
    :where(.rmc-tpl--errors-500_minimal) .rule { height: 3px; width: 64px; border-radius: 2px; background: #c47f1c; /* off-token-allow: error-page-self-contained-fallback */
            margin: 0 0 2rem; }
    :where(.rmc-tpl--errors-500_minimal) .err-code { font-size: 4rem; font-weight: 600; color: #c47f1c; line-height: 1; /* off-token-allow: error-page-self-contained-fallback */
                margin: 0 0 0.5rem; letter-spacing: -0.02em; }
    :where(.rmc-tpl--errors-500_minimal) .meta { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em;
            color: #857c70; margin: 0 0 1.5rem; /* off-token-allow: error-page-self-contained-fallback */ }
    :where(.rmc-tpl--errors-500_minimal) h1 { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.012em;
         margin: 0 0 1rem; color: #2a241e; /* off-token-allow: error-page-self-contained-fallback */ }
    :where(.rmc-tpl--errors-500_minimal) p { color: #544d44; margin: 0 0 1rem; /* off-token-allow: error-page-self-contained-fallback */ }
    :where(.rmc-tpl--errors-500_minimal) small { color: #857c70; display: block; margin-top: 2rem; font-size: 0.8rem; /* off-token-allow: error-page-self-contained-fallback */ }
    :where(.rmc-tpl--errors-500_minimal) code { background: #fffaf0; padding: 0.125rem 0.375rem; border-radius: 4px; /* off-token-allow: error-page-self-contained-fallback */
           border: 1px solid rgba(80, 55, 25, 0.10); /* off-token-allow: error-page-self-contained-fallback */
           font-size: 0.85em; }
    :where(.rmc-tpl--errors-500_minimal) .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2rem 0 0; }
    :where(.rmc-tpl--errors-500_minimal) .actions .primary, :where(.rmc-tpl--errors-500_minimal) .actions .secondary {
      display: inline-flex; align-items: center; min-height: 44px;
      padding: 0.625rem 1.25rem; border-radius: 14px; border: 1px solid;
      font: inherit; font-weight: 500; text-decoration: none; cursor: pointer;
      transition: transform 140ms ease, background 200ms ease;
    }
    :where(.rmc-tpl--errors-500_minimal) .actions .primary { background: #c47f1c; color: #fff; border-color: #c47f1c; /* off-token-allow: error-page-self-contained-fallback */ /* color-contrast-allow: error-page-cta-min-44px-effective-large-text-button */ }
    :where(.rmc-tpl--errors-500_minimal) .actions .primary:hover { transform: translateY(-1px); }
    :where(.rmc-tpl--errors-500_minimal) .actions .secondary { background: #fff; color: #2a241e; /* off-token-allow: error-page-self-contained-fallback */
                          border-color: rgba(80, 55, 25, 0.20); /* off-token-allow: error-page-self-contained-fallback */ }
    :where(.rmc-tpl--errors-500_minimal) .actions .secondary:hover { background: #fffaf0; /* off-token-allow: error-page-self-contained-fallback */ }
    @media (prefers-color-scheme: dark) {
      html:where(.rmc-tpl--errors-500_minimal, :has(.rmc-tpl--errors-500_minimal)), body:where(.rmc-tpl--errors-500_minimal, :has(.rmc-tpl--errors-500_minimal)), :where(.rmc-tpl--errors-500_minimal) body { background: #1a1612; color: #f5efe3; /* off-token-allow: error-page-self-contained-fallback */ }
      :where(.rmc-tpl--errors-500_minimal) h1, :where(.rmc-tpl--errors-500_minimal) .err-code { color: #e6a052; /* off-token-allow: error-page-self-contained-fallback */ }
      :where(.rmc-tpl--errors-500_minimal) p { color: #d9d0c2; /* off-token-allow: error-page-self-contained-fallback */ }
      :where(.rmc-tpl--errors-500_minimal) .meta, :where(.rmc-tpl--errors-500_minimal) small { color: #a8a092; /* off-token-allow: error-page-self-contained-fallback */ }
      :where(.rmc-tpl--errors-500_minimal) code { background: #2c241d; border-color: rgba(245, 220, 180, 0.18); /* off-token-allow: error-page-self-contained-fallback */ }
      :where(.rmc-tpl--errors-500_minimal) .actions .secondary { background: #2c241d; color: #f5efe3; /* off-token-allow: error-page-self-contained-fallback */
                            border-color: rgba(245, 220, 180, 0.18); }
      :where(.rmc-tpl--errors-500_minimal) .actions .secondary:hover { background: #241e18; /* off-token-allow: error-page-self-contained-fallback */ }
      :where(.rmc-tpl--errors-500_minimal) .actions .primary { background: #e6a052; color: #1a1612; border-color: #e6a052; /* off-token-allow: error-page-self-contained-fallback */ }
    }

/* ========== templates/errors/offline.html ========== */
/* v2.44 — warm-bright self-contained styling (matches /errors/500_minimal). */
    html:where(.rmc-tpl--errors-offline, :has(.rmc-tpl--errors-offline)), body:where(.rmc-tpl--errors-offline, :has(.rmc-tpl--errors-offline)), :where(.rmc-tpl--errors-offline) body { margin: 0; padding: 0; background: #fdf9f2; color: #2a241e; /* off-token-allow: error-page-self-contained-fallback */
                 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
                 line-height: 1.6; min-height: 100vh; }
    :where(.rmc-tpl--errors-offline) main { max-width: 38rem; margin: 0 auto; padding: 4rem 1.5rem; }
    :where(.rmc-tpl--errors-offline) .rule { height: 3px; width: 64px; border-radius: 2px; background: #c47f1c; /* off-token-allow: error-page-self-contained-fallback */
            margin: 0 0 2rem; }
    :where(.rmc-tpl--errors-offline) .eyebrow { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em;
               color: #857c70; margin: 0 0 0.75rem; /* off-token-allow: error-page-self-contained-fallback */ }
    :where(.rmc-tpl--errors-offline) h1 { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.012em;
         margin: 0 0 1rem; color: #2a241e; /* off-token-allow: error-page-self-contained-fallback */ }
    :where(.rmc-tpl--errors-offline) p, :where(.rmc-tpl--errors-offline) ul { color: #544d44; margin: 0 0 1rem; /* off-token-allow: error-page-self-contained-fallback */ }
    :where(.rmc-tpl--errors-offline) ul { padding-left: 1.25rem; }
    :where(.rmc-tpl--errors-offline) ul li { margin: 0.25rem 0; }
    :where(.rmc-tpl--errors-offline) .status { color: #857c70; font-size: 0.85rem; align-self: center; /* off-token-allow: error-page-self-contained-fallback */ }
    :where(.rmc-tpl--errors-offline) .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2rem 0 0;
               align-items: center; }
    :where(.rmc-tpl--errors-offline) .actions button, :where(.rmc-tpl--errors-offline) .actions .btn {
      display: inline-flex; align-items: center; min-height: 44px;
      padding: 0.625rem 1.25rem; border-radius: 14px; border: 1px solid;
      font: inherit; font-weight: 500; text-decoration: none; cursor: pointer;
    }
    :where(.rmc-tpl--errors-offline) .actions button { background: #c47f1c; color: #fff; border-color: #c47f1c; /* off-token-allow: error-page-self-contained-fallback */ /* color-contrast-allow: error-page-cta-min-44px-effective-large-text-button */ }
    :where(.rmc-tpl--errors-offline) .actions .btn { background: #fff; color: #2a241e; /* off-token-allow: error-page-self-contained-fallback */
                    border-color: rgba(80, 55, 25, 0.20); /* off-token-allow: error-page-self-contained-fallback */ }
    :where(.rmc-tpl--errors-offline) .actions .btn:hover { background: #fffaf0; /* off-token-allow: error-page-self-contained-fallback */ }
    @media (prefers-color-scheme: dark) {
      html:where(.rmc-tpl--errors-offline, :has(.rmc-tpl--errors-offline)), body:where(.rmc-tpl--errors-offline, :has(.rmc-tpl--errors-offline)), :where(.rmc-tpl--errors-offline) body { background: #1a1612; color: #f5efe3; /* off-token-allow: error-page-self-contained-fallback */ }
      :where(.rmc-tpl--errors-offline) h1 { color: #f5efe3; /* off-token-allow: error-page-self-contained-fallback */ }
      :where(.rmc-tpl--errors-offline) p, :where(.rmc-tpl--errors-offline) ul { color: #d9d0c2; /* off-token-allow: error-page-self-contained-fallback */ }
      :where(.rmc-tpl--errors-offline) .eyebrow, :where(.rmc-tpl--errors-offline) .status { color: #a8a092; /* off-token-allow: error-page-self-contained-fallback */ }
      :where(.rmc-tpl--errors-offline) .actions button { background: #e6a052; color: #1a1612; border-color: #e6a052; /* off-token-allow: error-page-self-contained-fallback */ }
      :where(.rmc-tpl--errors-offline) .actions .btn { background: #2c241d; color: #f5efe3; /* off-token-allow: error-page-self-contained-fallback */
                      border-color: rgba(245, 220, 180, 0.18); }
      :where(.rmc-tpl--errors-offline) .actions .btn:hover { background: #241e18; /* off-token-allow: error-page-self-contained-fallback */ }
    }

/* ========== templates/schools/_v2/_decoration_walkthrough_reel.svg.html ========== */
/* motion-budget-allow: looping ambient animation (infinite); the global prefers-reduced-motion reset stops it */
:where(.rmc-tpl--schools-_v2-_decoration_walkthrough_reel-svg) .reel-scene { opacity: 0; animation: reelCycle 25s cubic-bezier(.45,0,.25,1) infinite; }
      :where(.rmc-tpl--schools-_v2-_decoration_walkthrough_reel-svg) .reel-scene--1 { animation-delay:  0s; }
      :where(.rmc-tpl--schools-_v2-_decoration_walkthrough_reel-svg) .reel-scene--2 { animation-delay:  5s; }
      :where(.rmc-tpl--schools-_v2-_decoration_walkthrough_reel-svg) .reel-scene--3 { animation-delay: 10s; }
      :where(.rmc-tpl--schools-_v2-_decoration_walkthrough_reel-svg) .reel-scene--4 { animation-delay: 15s; }
      :where(.rmc-tpl--schools-_v2-_decoration_walkthrough_reel-svg) .reel-scene--5 { animation-delay: 20s; }
      @keyframes reelCycle {
        0%   { opacity: 0; transform: translate3d(0, 12px, 0); }
        4%   { opacity: 1; transform: none; }
        20%  { opacity: 1; transform: none; }
        24%  { opacity: 0; transform: translate3d(0, -12px, 0); }
        100% { opacity: 0; transform: translate3d(0, 12px, 0); }
      }
      @media (prefers-reduced-motion: reduce) {
        :where(.rmc-tpl--schools-_v2-_decoration_walkthrough_reel-svg) .reel-scene { animation: none; opacity: 1; }
        :where(.rmc-tpl--schools-_v2-_decoration_walkthrough_reel-svg) .reel-scene:not(.reel-scene--1) { display: none; }
      }
      :where(.rmc-tpl--schools-_v2-_decoration_walkthrough_reel-svg) .reel-progress {
        /* motion-budget-allow: looping ambient animation (infinite); the global prefers-reduced-motion reset stops it */
        animation: reelProgress 25s linear infinite;
        transform-origin: 0 0;
      }
      @keyframes reelProgress {
        0%   { transform: scaleX(0); }
        100% { transform: scaleX(1); }
      }

/* ========== templates/siteconfig/maintenance.html ========== */
:root:where(:has(.rmc-tpl--siteconfig-maintenance)) {
      color-scheme: light dark;
      --primary: var(--school-primary);
      --accent: var(--school-accent);
      --bg: var(--color-base-50); /* theme-locked-allow: manual-review */
      --surface: var(--color-base-0); /* theme-locked-allow: manual-review */
      --ink: var(--color-base-900); /* theme-locked-allow: manual-review */
      --muted: var(--color-base-600); /* theme-locked-allow: manual-review */
      --subtle: var(--color-base-400); /* theme-locked-allow: manual-review */
      --rule: rgba(26, 22, 18, 0.08);
    }
    @media (prefers-color-scheme: dark) {
      :root:where(:has(.rmc-tpl--siteconfig-maintenance)) { --bg: var(--color-base-950); --surface: var(--color-base-800); --ink: var(--color-base-100); --muted: var(--color-base-300); --subtle: var(--color-base-400); --rule: rgba(168, 160, 146, 0.16); } /* theme-locked-allow: manual-review */
    }
    :where(.rmc-tpl--siteconfig-maintenance) *, *:where(.rmc-tpl--siteconfig-maintenance), :where(.rmc-tpl--siteconfig-maintenance) *::before, *:where(.rmc-tpl--siteconfig-maintenance)::before, :where(.rmc-tpl--siteconfig-maintenance) *::after, *:where(.rmc-tpl--siteconfig-maintenance)::after { box-sizing: border-box; }
    html:where(:has(.rmc-tpl--siteconfig-maintenance)), body:where(:has(.rmc-tpl--siteconfig-maintenance)) {
      margin: 0; padding: 0;
      min-height: 100vh;
      background:
        radial-gradient(ellipse 80% 40% at 50% 0%, color-mix(in oklab, var(--primary) 8%, transparent), transparent 70%),
        var(--bg);
      color: var(--ink);
      font-family: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
      font-feature-settings: 'cv11';
      -webkit-font-smoothing: antialiased;
      letter-spacing: -0.005em;
      line-height: 1.55;
      display: grid;
      place-items: center;
      padding: 24px;
    }
    :where(.rmc-tpl--siteconfig-maintenance) main {
      max-width: 480px;
      width: 100%;
      text-align: center;
    }
    :where(.rmc-tpl--siteconfig-maintenance) .icon {
      width: 72px; height: 72px;
      border-radius: 20px;
      background: linear-gradient(135deg, var(--primary), color-mix(in oklab, var(--primary) 70%, var(--accent)));
      color: var(--text-on-brand, var(--color-base-0));
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: var(--type-size-headline-l);
      margin-bottom: 22px;
      box-shadow: 0 0 0 1px var(--rule), 0 12px 32px -4px rgba(26, 22, 18,0.15);
    }
    :where(.rmc-tpl--siteconfig-maintenance) h1 {
      font-size: clamp(1.5rem, 3vw, 2rem);
      font-weight: 700;
      letter-spacing: -0.025em;
      margin: 0 0 10px;
      line-height: 1.2;
    }
    :where(.rmc-tpl--siteconfig-maintenance) p {
      color: var(--muted);
      margin: 0 0 24px;
      font-size: var(--type-size-body-l);
      max-width: 32rem;
      margin-left: auto;
      margin-right: auto;
    }
    :where(.rmc-tpl--siteconfig-maintenance) button {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 11px 22px;
      border: none;
      border-radius: 10px;
      background: var(--primary);
      color: var(--text-on-brand, var(--color-base-0));
      font-weight: 600;
      font-size: var(--type-size-body);
      letter-spacing: -0.005em;
      cursor: pointer;
      font-family: inherit;
      transition: filter 150ms ease, transform 100ms ease;
      box-shadow: 0 1px 2px rgba(26, 22, 18,0.08), inset 0 1px 0 rgba(255,255,255,0.14);
    }
    :where(.rmc-tpl--siteconfig-maintenance) button:hover { filter: brightness(1.04); }
    :where(.rmc-tpl--siteconfig-maintenance) button:active { transform: scale(0.98); }
