@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  --ink: #0a0a0a;
  --muted: #525252;
  --paper: #f1f2ff;
  --card: #ffffff;
  --line: #e5e5e5;
  --green: #2563eb;
  --green-dark: #1d4ed8;
  --lime: #2563eb;
  --orange: #2563eb;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", Arial, Helvetica, sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; font-weight: 600; }

.container { width: min(1280px, calc(100% - 48px)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(241, 242, 255, .9); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: white; }
.brand-with-logo { flex: 0 0 auto; }
.site-brand-logo { display: block; width: 154px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 24px; color: var(--muted); font-weight: 500; }
.language-switcher {
  position: relative; display: inline-flex; align-items: center; white-space: nowrap;
  color: var(--muted); font-size: 13px;
}
.language-trigger {
  min-height: 36px; padding: 5px 9px; display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid #d8dbe8; border-radius: 999px; background: rgba(255, 255, 255, .78);
  color: #262626; font-size: 13px; font-weight: 500; transition: border-color .2s ease, background .2s ease;
}
.language-trigger:hover, .language-trigger[aria-expanded="true"] {
  border-color: #b8c8fa; background: #fff;
}
.language-trigger svg { color: #737373; transition: transform .2s ease; }
.language-trigger svg.rotated { transform: rotate(180deg); }
.language-flag { font-size: 17px; line-height: 1; }
.language-menu {
  position: absolute; z-index: 80; top: calc(100% + 8px); right: 0; width: 190px; padding: 6px;
  border: 1px solid #e4e4e7; border-radius: 14px; background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .14);
}
.language-option {
  width: 100%; padding: 9px 10px; display: flex; align-items: center; gap: 10px;
  border: 0; border-radius: 9px; background: transparent; color: #262626; text-align: left;
}
.language-option:hover { background: #f1f2ff; }
.language-option.active { color: #1d4ed8; background: #eef2ff; }
.language-option-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.language-option-copy strong { font-size: 13px; font-weight: 500; }
.language-option-copy small { color: #737373; font-size: 11px; font-weight: 400; }
.sidebar-bottom .language-menu, .site-footer .language-menu {
  top: auto; right: auto; bottom: calc(100% + 8px); left: 0;
}

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: 999px;
  background: var(--green); color: white; font-weight: 600; transition: .2s ease;
}
.button:hover { transform: translateY(-1px); background: var(--green-dark); }
.button.secondary { color: var(--ink); background: white; border-color: var(--line); }
.button.ghost { color: var(--green); background: transparent; padding-inline: 4px; }
.button.orange { background: var(--green); }
.button:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.hero-section {
  background: linear-gradient(180deg, #f1f2ff 0%, #f7f8ff 62%, #ffffff 100%);
}
.home-page :where(h1, h2, h3, h4, p, span, a, strong, em, summary) {
  font-weight: 500;
}
.home-page .button { font-weight: 600; }
.home-page .eyebrow { font-size: 16px; font-weight: 400; }
.hero { padding: 92px 0 72px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 72px; }
.hero-centered { display: block; padding-top: 76px; text-align: center; }
.hero-copy { max-width: 980px; margin: 0 auto; }
.hero-badge {
  width: max-content; max-width: 100%; margin: 0 auto 32px; padding: 8px 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid #d8dbe8; border-radius: 999px; background: rgba(255,255,255,.75);
  color: #475569; box-shadow: 0 2px 7px rgba(15,23,42,.06); font-size: 13px; font-weight: 600;
}
.hero-badge svg { color: #2563eb; }
.hero-centered h1 {
  max-width: 1000px; margin: 0 auto 28px; font-size: clamp(54px, 6.5vw, 88px);
  line-height: 1.02; letter-spacing: -.055em;
}
.hero-centered h1 em { color: #2563eb; font-weight: 500; }
.hero-lead { margin-inline: auto; max-width: 760px; }
.eyebrow { color: var(--green); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 850; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(48px, 7vw, 84px); line-height: .98; letter-spacing: -.055em; margin-bottom: 24px; }
h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.06; letter-spacing: -.04em; }
h3 { letter-spacing: -.02em; }
.lead { color: var(--muted); font-size: 19px; line-height: 1.7; max-width: 620px; }
.hero-actions { display: flex; justify-content: center; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-card, .card {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow);
}
.hero-card { padding: 18px; transform: rotate(1.5deg); }
.hero-tool-preview {
  overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: white;
  box-shadow: var(--shadow); transform: rotate(1deg);
}
.hero-centered .hero-tool-preview {
  width: min(1080px, 100%); margin: 72px auto 0; transform: none;
  border-radius: 20px; box-shadow: 0 30px 80px rgba(30,41,59,.13);
}
.hero-tool-preview img { display: block; width: 100%; height: auto; }
.mini-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 8px 8px 18px; color: var(--muted); font-size: 13px; }
.notation-preview { border-radius: 16px; background: white; min-height: 280px; padding: 26px 14px; overflow: hidden; }
.staff-lines { height: 110px; position: relative; margin-top: 34px; background: repeating-linear-gradient(to bottom, transparent 0 18px, #7c8980 19px 20px); }
.notes-row { position: absolute; inset: 5px 6%; display: flex; justify-content: space-between; align-items: center; }
.fake-note { width: 16px; height: 12px; background: var(--ink); border-radius: 50%; transform: rotate(-18deg); position: relative; }
.fake-note::after { content: ""; position: absolute; right: 1px; bottom: 7px; width: 2px; height: 47px; background: var(--ink); }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.stat { background: #f5f5f5; border-radius: 14px; padding: 14px; }
.stat strong { display: block; font-size: 22px; }
.stat span { color: var(--muted); font-size: 12px; }

.section { padding: 80px 0; }
.section-features {
  position: relative; background: #ffffff; border-top: 1px solid rgba(229,229,229,.72);
  border-bottom: 1px solid rgba(229,229,229,.72);
}
.section-cta {
  background: linear-gradient(180deg, #ffffff 0%, #f7f8ff 45%, #f1f2ff 100%);
}
.section-faq { background: #ffffff; }
.section-heading { max-width: 700px; margin: 0 auto 36px; text-align: center; }
.section-heading .lead { margin-inline: auto; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card {
  padding: 30px 28px; text-align: center;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  will-change: transform;
}
.feature-card h3 { font-weight: 500; }
.feature-card .muted { font-weight: 400; }
.feature-card:hover {
  transform: translateY(-8px); border-color: rgba(37,99,235,.28);
  box-shadow: 0 22px 48px rgba(30,41,59,.12);
}
.feature-icon {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px;
  background: #eef2ff; color: #4f46e5; margin: 0 auto 24px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature-icon svg { width: 23px; height: 23px; }
.feature-card:hover .feature-icon { transform: scale(1.08) rotate(-3deg); }
.feature-card-violet .feature-icon { color: #5b45ff; background: #efedff; }
.feature-card-mint .feature-icon { color: #059669; background: #e8fbf3; }
.feature-card-amber .feature-icon { color: #e99b00; background: #fff4db; }
.feature-card-rose .feature-icon { color: #e11d48; background: #fff0f3; }
.feature-card-cyan .feature-icon { color: #0891b2; background: #e9fbff; }
.feature-card-blue .feature-icon { color: #2563eb; background: #eaf1ff; }
.feature-card-violet:hover { border-color: rgba(91,69,255,.35); }
.feature-card-mint:hover { border-color: rgba(5,150,105,.35); }
.feature-card-amber:hover { border-color: rgba(233,155,0,.38); }
.feature-card-rose:hover { border-color: rgba(225,29,72,.34); }
.feature-card-cyan:hover { border-color: rgba(8,145,178,.34); }
.feature-card-blue:hover { border-color: rgba(37,99,235,.34); }
.feature-card-violet:hover .feature-icon { box-shadow: 0 10px 24px rgba(91,69,255,.18); }
.feature-card-mint:hover .feature-icon { box-shadow: 0 10px 24px rgba(5,150,105,.17); }
.feature-card-amber:hover .feature-icon { box-shadow: 0 10px 24px rgba(233,155,0,.18); }
.feature-card-rose:hover .feature-icon { box-shadow: 0 10px 24px rgba(225,29,72,.16); }
.feature-card-cyan:hover .feature-icon { box-shadow: 0 10px 24px rgba(8,145,178,.16); }
.feature-card-blue:hover .feature-icon { box-shadow: 0 10px 24px rgba(37,99,235,.17); }
.muted { color: var(--muted); line-height: 1.65; }

.faq-layout {
  display: grid; grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr);
  align-items: start; gap: clamp(48px, 8vw, 110px);
}
.faq-heading { position: sticky; top: 112px; }
.faq-heading h2 { max-width: 540px; margin-bottom: 22px; }
.faq-heading .lead { margin-bottom: 28px; }
.faq-list { display: grid; gap: 12px; }
.faq-item {
  overflow: hidden; border: 1px solid var(--line); border-radius: 16px;
  background: #ffffff; transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item:hover { border-color: rgba(37,99,235,.32); }
.faq-item[open] { border-color: rgba(37,99,235,.42); box-shadow: 0 14px 32px rgba(30,41,59,.08); }
.faq-item summary {
  min-height: 74px; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; color: var(--ink); font-size: 16px; font-weight: 750; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { flex: 0 0 auto; color: #2563eb; transition: transform .22s ease; }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-item p { margin: 0; padding: 0 22px 22px; color: var(--muted); line-height: 1.7; }

.legal-page {
  padding: 72px 0 96px;
  background: linear-gradient(180deg, #f1f2ff 0%, #ffffff 320px);
}
.legal-content {
  max-width: 900px; padding: 54px clamp(24px, 6vw, 76px);
  border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.94);
  box-shadow: 0 24px 70px rgba(30,41,59,.09);
}
.legal-content > h1 { margin-bottom: 12px; font-size: clamp(44px, 6vw, 68px); }
.legal-updated { margin-bottom: 48px; color: var(--muted); }
.legal-content section { padding: 28px 0; border-top: 1px solid var(--line); }
.legal-content section h2 { margin-bottom: 14px; font-size: 23px; letter-spacing: -.025em; }
.legal-content section p { margin: 0; color: var(--muted); line-height: 1.8; }
.legal-content section a { color: #2563eb; text-decoration: underline; text-underline-offset: 3px; }

.auth-shell { min-height: calc(100vh - 73px); display: grid; place-items: center; padding: 50px 20px; }
.auth-card { width: min(460px, 100%); padding: 34px; }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; font-weight: 750; }
.input, .select {
  width: 100%; min-height: 46px; padding: 0 14px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; background: white; outline: none;
}
.input:focus, .select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.form-message { padding: 11px 13px; border-radius: 10px; background: #f7e7de; color: #8b3d1f; font-size: 13px; }

.pricing-section { padding-top: 72px; min-height: calc(100vh - 72px); }
.pricing-heading { max-width: 780px; margin: 0 auto 62px; text-align: center; }
.pricing-heading h1 { font-size: clamp(46px, 5vw, 68px); margin-bottom: 24px; }
.pricing-heading .lead { margin-inline: auto; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
  position: relative; min-height: 510px; padding: 34px 32px 32px; display: flex; flex-direction: column;
  border-radius: 17px; box-shadow: none; background: rgba(255,255,255,.82);
}
.price-card h3 { margin: 0 0 22px; font-size: 26px; }
.price-card.featured {
  border: 2px solid #9f96ff; transform: none;
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,250,238,.88));
  box-shadow: 0 12px 25px rgba(15,23,42,.10);
}
.badge {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  display: inline-flex; padding: 6px 14px; border-radius: 999px; background: #2563eb;
  color: white; font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase;
}
.price {
  display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 10px; row-gap: 4px;
  font-size: 42px; font-weight: 800; letter-spacing: -.04em; margin: 22px 0 4px; color: #0f172a;
}
.price small {
  color: #8b92a1; font-size: 13px; font-weight: 500; font-style: italic;
  letter-spacing: 0; white-space: nowrap;
}
.checklist { list-style: none; padding: 0; display: grid; gap: 15px; color: #526078; margin: 30px 0 32px; flex: 1; }
.checklist li { display: flex; align-items: flex-start; gap: 11px; line-height: 1.4; font-size: 14px; }
.checklist li svg { flex: 0 0 auto; margin-top: 1px; }
.price-card > .button { width: 100%; min-height: 46px; }
.price-card > .button.secondary { color: white; background: #0a0a0a; border-color: #0a0a0a; }
.price-card > .button.secondary:hover { background: #262626; border-color: #262626; }

.app-shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { padding: 26px 18px; border-right: 1px solid var(--line); background: #fafafa; display: flex; flex-direction: column; }
.sidebar-nav { display: grid; gap: 7px; margin-top: 38px; }
.sidebar-link { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border-radius: 12px; color: var(--muted); font-weight: 500; }
.sidebar-link:hover { background: var(--card); color: var(--ink); }
.sidebar-bottom { margin-top: auto; }
.sidebar-brand { align-self: flex-start; }
.sidebar-brand-logo { display: block; width: 174px; height: auto; }
.app-main { padding: 36px; min-width: 0; }
.app-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; gap: 20px; }
.app-topbar h1 { font-size: 36px; margin: 0; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border-radius: 999px; background: #eff6ff; color: var(--green); font-size: 12px; font-weight: 800; }

.practice-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 20px; }
.practice-stage { padding: 22px; min-width: 0; }
.practice-controls { padding: 22px; display: grid; gap: 18px; align-content: start; }
.notation-canvas { min-height: 350px; background: white; border-radius: 16px; overflow-x: auto; display: grid; place-items: center; }
.control-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.range { width: 100%; accent-color: var(--green); }
.practice-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.notice { padding: 14px 16px; border-radius: 14px; background: #f5f5f5; color: var(--ink); border: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.metric { padding: 20px; }
.metric strong { font-size: 30px; display: block; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.table th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }

.footer {
  padding: 30px 0 24px; border-top: 0; background: #0d2740; color: #ffffff; font-size: 14px;
}
.footer-inner { display: grid; justify-items: center; gap: 28px; }
.footer-nav {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 18px 34px; font-size: 15px; font-weight: 500;
}
.footer-nav a { color: rgba(255,255,255,.96); transition: color .18s ease; }
.footer-nav a:hover { color: #60d7ff; }
.footer-meta { margin: 0; color: rgba(255,255,255,.58); text-align: center; line-height: 1.6; }
.footer-meta a { color: #28c7ee; text-decoration: underline; text-underline-offset: 3px; }
.footer-meta a:hover { color: #7ee8ff; }

.practice-page {
  width: 100vw; height: 100dvh; overflow: hidden; display: grid; grid-template-rows: 64px minmax(0, 1fr);
  background: #ffffff;
}
.practice-page.authenticated { position: fixed; inset: 0; z-index: 100; }
.practice-header {
  position: relative; z-index: 30; min-width: 0; padding: 0 22px; display: flex; align-items: center;
  justify-content: space-between; gap: 20px; border-bottom: 1px solid #e2e8f0; background: rgba(255,255,255,.96);
  box-shadow: 0 4px 16px rgba(15,23,42,.04); backdrop-filter: blur(12px);
}
.practice-brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.practice-brand-logo { display: block; width: 148px; height: auto; }
.practice-account { display: flex; align-items: center; gap: 10px; }
.practice-login-link, .practice-dashboard-link {
  min-height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 999px;
  color: #334155; font-size: 14px; font-weight: 750;
}
.practice-login-link:hover, .practice-dashboard-link:hover { color: #0f172a; background: #f1f5f9; }
.practice-dashboard-link { border: 1px solid #e2e8f0; }
.practice-user-link { display: flex; align-items: center; gap: 10px; }
.practice-user-copy { display: grid; text-align: right; line-height: 1.15; }
.practice-user-copy strong { color: #0f172a; font-size: 13px; }
.practice-user-copy small { color: #64748b; font-size: 11px; }
.practice-avatar {
  position: relative; width: 38px; height: 38px; flex: 0 0 auto; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center;
  background: #2563eb; color: white; font-size: 12px; font-weight: 850;
}
.practice-avatar img, .account-drawer-avatar img, .settings-avatar img {
  width: 100%; height: 100%; display: block; object-fit: cover; border-radius: inherit;
}
.account-menu-trigger { box-shadow: 0 0 0 3px #eff6ff; transition: transform .2s ease, box-shadow .2s ease; }
.account-menu-trigger:hover { transform: translateY(-1px); box-shadow: 0 0 0 4px #dbeafe; }
.account-menu-indicator {
  position: absolute; right: -3px; bottom: -2px; width: 17px; height: 17px; display: grid; place-items: center;
  border: 2px solid white; border-radius: 50%; background: #0f172a; color: white;
}
.practice-avatar.guest { border: 1px solid #cbd5e1; background: #f8fafc; color: #334155; }
.practice-avatar.guest:hover { border-color: #94a3b8; background: #f1f5f9; }
.account-drawer-open { overflow: hidden; }
.account-drawer-backdrop {
  position: fixed; z-index: 90; inset: 0; border: 0; background: rgba(15, 23, 42, .34);
  backdrop-filter: blur(2px);
}
.account-drawer {
  position: fixed; z-index: 100; top: 0; right: 0; width: min(360px, calc(100vw - 24px)); height: 100dvh;
  padding: 20px; display: flex; flex-direction: column; background: #fff;
  box-shadow: -20px 0 60px rgba(15, 23, 42, .16);
  transform: translateX(105%); visibility: hidden; transition: transform .25s ease, visibility .25s ease;
}
.account-drawer.open { transform: translateX(0); visibility: visible; }
.account-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.account-drawer-title { color: #64748b; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.account-drawer-close {
  width: 38px; height: 38px; border: 1px solid #e2e8f0; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: #334155;
}
.account-drawer-close:hover { background: #f8fafc; color: #0f172a; }
.account-drawer-profile {
  margin: 24px 0 18px; padding: 18px; display: flex; align-items: center; gap: 13px;
  border: 1px solid #e2e8f0; border-radius: 16px; background: linear-gradient(145deg, #f8faff, #fff);
}
.account-drawer-avatar {
  width: 48px; height: 48px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center;
  background: #2563eb; color: #fff; font-size: 14px; font-weight: 600;
}
.account-drawer-profile > div { min-width: 0; display: grid; gap: 3px; }
.account-drawer-profile strong, .account-drawer-profile small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-drawer-profile strong { color: #0f172a; font-size: 14px; font-weight: 600; }
.account-drawer-profile small { color: #64748b; font-size: 12px; }
.account-drawer-profile div > span { margin-top: 3px; display: inline-flex; align-items: center; gap: 5px; color: #2563eb; font-size: 11px; font-weight: 500; }
.account-drawer-nav { display: grid; gap: 5px; }
.account-drawer-nav a {
  min-height: 46px; padding: 0 13px; display: flex; align-items: center; gap: 12px; border-radius: 11px;
  color: #475569; font-size: 14px; font-weight: 500; transition: background .18s ease, color .18s ease;
}
.account-drawer-nav a:hover { color: #1d4ed8; background: #eff6ff; }
.account-drawer-footer { margin-top: auto; padding-top: 18px; border-top: 1px solid #e2e8f0; }
.account-drawer-footer .button { width: 100%; justify-content: flex-start; padding-inline: 13px; color: #475569; }
.practice-frame-wrap { min-width: 0; min-height: 0; overflow: hidden; padding: 0; }
.practice-frame { display: block; width: 100%; height: 100%; border: 0; border-radius: 0; }

.settings-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 20px; align-items: start; }
.settings-card { padding: 26px; display: grid; gap: 20px; }
.settings-card-heading { display: flex; align-items: flex-start; gap: 12px; }
.settings-card-heading h2 { margin: 0 0 6px; font-size: 21px; letter-spacing: -.025em; }
.settings-card-heading p { margin: 0; color: #64748b; font-size: 14px; line-height: 1.55; }
.settings-icon {
  width: 42px; height: 42px; flex: 0 0 auto; border-radius: 12px; display: grid; place-items: center;
  background: #eff6ff; color: #2563eb;
}
.settings-icon.security { background: #f5f3ff; color: #7c3aed; }
.avatar-editor { padding: 16px; display: flex; align-items: center; gap: 16px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fafafa; }
.settings-avatar {
  width: 72px; height: 72px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center;
  background: #e0e7ff; color: #2563eb; font-weight: 600;
}
.avatar-editor > div { min-width: 0; }
.avatar-editor strong { font-size: 14px; font-weight: 500; }
.avatar-editor p, .field-hint { margin: 4px 0 10px; color: #737373; font-size: 12px; line-height: 1.45; }
.button.compact { min-height: 36px; padding-inline: 13px; font-size: 13px; }
.settings-card > .button { justify-self: start; }

.billing-summary-grid { margin-bottom: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.billing-demo-notice { margin-bottom: 20px; display: flex; align-items: center; gap: 9px; border-color: #bbf7d0; background: #f0fdf4; color: #166534; }
.billing-payment-notice { margin-bottom: 20px; }
.billing-payment-notice.processing { border-color: #bfdbfe; background: #eff6ff; color: #1e40af; }
.billing-payment-notice.cancelled { border-color: #e5e7eb; background: #fafafa; color: #525252; }
.billing-payment-notice.failed { border-color: #fecaca; background: #fef2f2; color: #b91c1c; }
.billing-summary-card { position: relative; padding: 19px; display: flex; align-items: center; gap: 13px; }
.billing-summary-icon {
  width: 44px; height: 44px; flex: 0 0 auto; border-radius: 13px; display: grid; place-items: center;
  background: #eff6ff; color: #2563eb;
}
.billing-summary-icon.purple { background: #f5f3ff; color: #7c3aed; }
.billing-summary-icon.amber { background: #fff7ed; color: #ea580c; }
.billing-summary-card > div { min-width: 0; display: grid; gap: 4px; }
.billing-summary-card small { color: #737373; font-size: 12px; }
.billing-summary-card strong { overflow: hidden; color: #171717; font-size: 17px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.billing-status {
  position: absolute; top: 14px; right: 14px; padding: 4px 8px; border-radius: 999px;
  background: #f5f5f5; color: #525252; font-size: 10px; font-weight: 600;
}
.billing-status.active { background: #ecfdf5; color: #047857; }
.renewal-card {
  margin-bottom: 24px; padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 28px;
  border-color: #bfdbfe; background: linear-gradient(135deg, #eff6ff, #fff);
}
.renewal-card > div { max-width: 720px; }
.renewal-kicker { display: inline-flex; align-items: center; gap: 7px; color: #2563eb; font-size: 12px; font-weight: 600; }
.renewal-card h2 { margin: 9px 0 8px; font-size: 25px; }
.renewal-card p { margin: 0; color: #526078; font-size: 14px; line-height: 1.65; }
.renewal-card > .button { flex: 0 0 auto; }
.renewal-card > .payment-options { width: min(290px, 100%); flex: 0 0 auto; }
.billing-plans { grid-template-columns: repeat(2, minmax(0, 420px)); margin-bottom: 24px; }
.payment-options { display: grid; gap: 9px; }
.price-card > .payment-options { width: 100%; margin-top: auto; }
.payment-options .button { width: 100%; min-height: 45px; }
.coupon-field { display: grid; gap: 6px; margin-bottom: 2px; }
.coupon-field span { color: #52525b; font-size: 12px; font-weight: 500; }
.coupon-field input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #d4d4d8;
  border-radius: 10px;
  background: white;
  color: #111827;
  font: inherit;
  font-size: 13px;
  text-transform: uppercase;
}
.coupon-field input:focus { outline: 2px solid rgba(37, 99, 235, .2); border-color: #2563eb; }
.captcha-challenge { display: grid; justify-items: center; gap: 7px; min-height: 0; }
.captcha-challenge:has(> div:empty) { min-height: 0; }
.captcha-challenge small { color: #71717a; font-size: 11px; text-align: center; }
.captcha-challenge .captcha-error { color: #b91c1c; }
.sepay-button { background: #2563eb; }
.sepay-button:hover { background: #1d4ed8; }
.paypal-button { border-color: #ffc439; background: #ffc439; color: #111827; }
.paypal-button:hover { background: #f2ba36; }
.paypal-wordmark { color: #003087; font-size: 18px; font-weight: 800; font-style: italic; letter-spacing: -.04em; }
.payment-history { padding: 24px; }
.payment-history-heading { display: flex; align-items: center; justify-content: space-between; color: #64748b; }
.payment-history-heading h2 { margin: 0 0 18px; color: #171717; font-size: 24px; }
.payment-history-heading .eyebrow { margin-bottom: 5px; }
.payment-status { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: #f5f5f5; color: #525252; font-size: 11px; font-weight: 600; }
.payment-status.paid { background: #ecfdf5; color: #047857; }
.payment-status.pending { background: #fff7ed; color: #c2410c; }
.payment-status.failed { background: #fef2f2; color: #b91c1c; }
.payment-empty { min-height: 140px; display: grid; place-items: center; align-content: center; gap: 10px; color: #94a3b8; text-align: center; }
.payment-empty p { margin: 0; color: #64748b; font-size: 14px; }
.billing-note { margin: 18px 0 0; font-size: 13px; }

/* Admin dashboard */
.admin-workspace {
  position: fixed; z-index: 120; inset: 0; display: grid; grid-template-columns: 246px minmax(0, 1fr);
  overflow: hidden; background: #f7f7f8; color: #171717;
}
.admin-sidebar {
  min-height: 0; padding: 18px 12px; display: flex; flex-direction: column; border-right: 1px solid #e5e7eb;
  background: #f4f4f5;
}
.admin-sidebar-brand { height: 48px; padding: 0 8px; display: flex; align-items: center; justify-content: space-between; }
.admin-sidebar-brand > button { display: none; width: 34px; height: 34px; border: 0; border-radius: 9px; background: transparent; }
.admin-logo { display: block; width: 142px; height: auto; }
.admin-nav { margin-top: 22px; display: grid; gap: 3px; }
.admin-nav-label {
  margin: 18px 10px 7px; color: #8a8a8e; font-size: 11px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase;
}
.admin-nav-label:first-child { margin-top: 0; }
.admin-nav button {
  width: 100%; min-height: 42px; padding: 0 11px; display: flex; align-items: center; gap: 11px;
  border: 0; border-radius: 9px; background: transparent; color: #404044; font-size: 14px; font-weight: 500;
  text-align: left; transition: background .15s ease, color .15s ease;
}
.admin-nav button:hover { background: #eaeaec; color: #111; }
.admin-nav button.active { background: #e4e4e7; color: #111; box-shadow: inset 3px 0 #2563eb; }
.admin-sidebar-footer { margin-top: auto; display: grid; gap: 6px; }
.admin-sidebar-footer > a, .admin-sidebar-footer .button {
  width: 100%; min-height: 40px; padding: 0 11px; display: flex; align-items: center; justify-content: flex-start; gap: 9px;
  border: 0; border-radius: 9px; background: transparent; color: #52525b; font-size: 13px; font-weight: 500;
}
.admin-sidebar-footer > a:hover, .admin-sidebar-footer .button:hover { background: #eaeaec; transform: none; }
.admin-main { min-width: 0; min-height: 0; display: grid; grid-template-rows: 64px minmax(0, 1fr); }
.admin-topbar {
  padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border-bottom: 1px solid #e5e7eb; background: rgba(255,255,255,.86); backdrop-filter: blur(16px);
}
.admin-menu-button { display: none; width: 38px; height: 38px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; }
.admin-search {
  width: min(420px, 48vw); height: 38px; padding: 0 12px; display: flex; align-items: center; gap: 9px;
  border: 1px solid #e4e4e7; border-radius: 10px; background: #f8f8f9; color: #71717a;
}
.admin-search input { width: 100%; border: 0; outline: 0; background: transparent; color: #27272a; font-size: 13px; }
.admin-top-actions { display: flex; align-items: center; gap: 12px; }
.admin-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #111827; color: #fff; font-size: 11px; font-weight: 600; }
.admin-content { min-height: 0; padding: 30px; overflow: auto; }
.admin-page-heading { margin-bottom: 26px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.admin-page-heading p { margin: 0 0 7px; color: #2563eb; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.admin-page-heading h1 { margin: 0 0 8px; font-size: clamp(29px, 3vw, 42px); line-height: 1.05; letter-spacing: -.04em; }
.admin-page-heading > div > span { color: #71717a; font-size: 14px; }
.admin-demo-badge { padding: 7px 10px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; background: #ecfdf5; color: #047857; font-size: 11px; font-weight: 600; }
.admin-message { margin-bottom: 20px; padding: 12px 14px; display: flex; align-items: center; gap: 8px; border: 1px solid #bbf7d0; border-radius: 10px; background: #f0fdf4; color: #166534; font-size: 13px; }
.admin-stat-grid { margin-bottom: 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.admin-stat-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-stat-grid article {
  min-width: 0; padding: 18px; display: flex; align-items: flex-start; gap: 13px; border: 1px solid #e4e4e7;
  border-radius: 15px; background: #fff; box-shadow: 0 5px 20px rgba(15,23,42,.035);
}
.admin-stat-grid article > span { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; }
.admin-stat-grid article > span svg { width: 20px; }
.admin-stat-grid .blue { background: #eff6ff; color: #2563eb; }
.admin-stat-grid .purple { background: #f5f3ff; color: #7c3aed; }
.admin-stat-grid .orange { background: #fff7ed; color: #ea580c; }
.admin-stat-grid .green { background: #ecfdf5; color: #059669; }
.admin-stat-grid article > div { min-width: 0; display: grid; gap: 4px; }
.admin-stat-grid small { color: #71717a; font-size: 11px; }
.admin-stat-grid strong { overflow: hidden; color: #18181b; font-size: 22px; font-weight: 600; letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
.admin-stat-grid em { color: #8a8a8e; font-size: 10px; font-style: normal; }
.admin-overview-grid { margin-bottom: 20px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr); gap: 16px; }
.admin-panel { padding: 21px; border: 1px solid #e4e4e7; border-radius: 15px; background: #fff; box-shadow: 0 5px 24px rgba(15,23,42,.035); }
.admin-panel-head { margin-bottom: 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; color: #71717a; }
.admin-panel-head h2 { margin: 0 0 5px; color: #18181b; font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.admin-panel-head p { margin: 0; color: #8a8a8e; font-size: 11px; }
.admin-chart { height: 220px; padding-top: 14px; display: flex; align-items: flex-end; justify-content: space-around; gap: 13px; border-bottom: 1px solid #e5e7eb; }
.admin-chart > div { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; }
.admin-chart span { width: min(38px, 70%); min-height: 10px; border-radius: 8px 8px 2px 2px; background: linear-gradient(180deg, #2563eb, #93c5fd); transition: height .3s ease; }
.admin-chart small { margin-bottom: -23px; color: #71717a; font-size: 10px; }
.admin-health-list { display: grid; gap: 6px; }
.admin-health-list > div { min-height: 42px; display: grid; grid-template-columns: 9px 1fr auto; align-items: center; gap: 10px; border-bottom: 1px solid #f0f0f1; }
.admin-health-list > div:last-child { border: 0; }
.admin-health-list > div > span { width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 4px #d1fae5; }
.admin-health-list > div > span.warning { background: #f59e0b; box-shadow: 0 0 0 4px #fef3c7; }
.admin-health-list strong { font-size: 12px; font-weight: 500; }
.admin-health-list small { color: #71717a; font-size: 10px; }
.admin-table-panel { padding-bottom: 8px; }
.admin-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.admin-table th { padding: 10px 12px; border-bottom: 1px solid #e5e7eb; color: #8a8a8e; font-size: 10px; font-weight: 600; text-align: left; text-transform: uppercase; letter-spacing: .06em; }
.admin-table td { padding: 13px 12px; border-bottom: 1px solid #f0f0f1; color: #52525b; font-size: 12px; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table td strong { color: #18181b; font-weight: 600; }
.admin-status { padding: 5px 8px; display: inline-flex; border-radius: 999px; background: #f4f4f5; color: #52525b; font-size: 10px; font-weight: 600; text-transform: capitalize; }
.admin-status.paid, .admin-status.active { background: #ecfdf5; color: #047857; }
.admin-status.pending { background: #fff7ed; color: #c2410c; }
.admin-status.failed { background: #fef2f2; color: #b91c1c; }
.admin-text-button { display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; color: #2563eb; font-size: 11px; font-weight: 600; }
.admin-plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 430px)); gap: 18px; }
.admin-plan-card { display: grid; gap: 14px; }
.admin-plan-code { display: inline-flex; margin-bottom: 7px; padding: 4px 7px; border-radius: 7px; background: #eff6ff; color: #2563eb; font-size: 9px; font-weight: 600; text-transform: uppercase; }
.admin-plan-card > label, .admin-form-panel > label, .admin-integration-form > label { display: grid; gap: 7px; color: #52525b; font-size: 11px; font-weight: 500; }
.admin-price-input { height: 52px; display: flex; align-items: center; border: 1px solid #d4d4d8; border-radius: 11px; overflow: hidden; }
.admin-price-input input { width: 100%; height: 100%; padding: 0 14px; border: 0; outline: 0; font-size: 20px; font-weight: 600; }
.admin-price-input span { height: 100%; padding: 0 16px; display: grid; place-items: center; background: #f4f4f5; color: #71717a; }
.admin-plan-card > p { color: #71717a; font-size: 12px; line-height: 1.6; }
.admin-primary-button {
  min-height: 42px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 0; border-radius: 9px; background: #2563eb; color: #fff; font-size: 12px; font-weight: 600;
}
.admin-primary-button:hover { background: #1d4ed8; }
.admin-primary-button:disabled { opacity: .55; }
.admin-switch { position: relative; display: inline-flex; flex: 0 0 auto; }
.admin-switch input { position: absolute; opacity: 0; pointer-events: none; }
.admin-switch span { width: 38px; height: 22px; padding: 3px; display: block; border-radius: 999px; background: #d4d4d8; transition: .2s ease; }
.admin-switch span::after { content: ""; width: 16px; height: 16px; display: block; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: .2s ease; }
.admin-switch input:checked + span { background: #2563eb; }
.admin-switch input:checked + span::after { transform: translateX(16px); }
.admin-split-layout { display: grid; grid-template-columns: minmax(330px, .75fr) minmax(0, 1.25fr); gap: 18px; align-items: start; }
.admin-form-panel { display: grid; gap: 14px; }
.admin-form-panel input, .admin-form-panel select, .admin-inline-form input, .admin-inline-form select, .admin-integration-form input {
  width: 100%; height: 42px; padding: 0 12px; border: 1px solid #d4d4d8; border-radius: 9px; outline: 0; background: #fff; color: #27272a; font-size: 12px;
}
.admin-form-panel input:focus, .admin-form-panel select:focus, .admin-inline-form input:focus, .admin-inline-form select:focus, .admin-integration-form input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px #dbeafe; }
.admin-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.admin-form-row label { display: grid; gap: 7px; color: #52525b; font-size: 11px; font-weight: 500; }
.admin-list { display: grid; }
.admin-coupon-row { min-height: 64px; display: grid; grid-template-columns: 38px 1fr auto 34px; align-items: center; gap: 10px; border-bottom: 1px solid #f0f0f1; }
.admin-coupon-row:last-child { border: 0; }
.admin-coupon-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: #f5f3ff; color: #7c3aed; }
.admin-coupon-row > div { min-width: 0; display: grid; gap: 3px; }
.admin-coupon-row strong { font-size: 12px; font-weight: 600; }
.admin-coupon-row small { color: #71717a; font-size: 10px; }
.admin-icon-button { width: 34px; height: 34px; border: 0; border-radius: 9px; display: grid; place-items: center; background: transparent; color: #71717a; }
.admin-icon-button:hover { background: #f4f4f5; }
.admin-icon-button.danger:hover { background: #fef2f2; color: #dc2626; }
.admin-inline-form { margin-bottom: 18px; display: grid; grid-template-columns: minmax(220px, 1fr) 170px minmax(210px, 1fr) 120px auto; align-items: end; gap: 10px; }
.admin-inline-form h2 { margin: 0 0 4px; font-size: 16px; }
.admin-inline-form p { margin: 0; color: #71717a; font-size: 10px; }
.admin-member-cell { display: flex; align-items: center; gap: 10px; }
.admin-member-cell > span { width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #e0e7ff; color: #3730a3; font-size: 9px; font-weight: 600; }
.admin-member-cell > div { min-width: 0; display: grid; gap: 2px; }
.admin-member-cell strong, .admin-member-cell small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-member-cell small { color: #8a8a8e; font-size: 10px; }
.admin-email-list { display: grid; }
.admin-email-list > div { padding: 13px 0; display: grid; grid-template-columns: 34px 1fr auto; align-items: flex-start; gap: 11px; border-bottom: 1px solid #f0f0f1; }
.admin-email-list > div:last-child { border: 0; }
.admin-email-list > div > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: #eff6ff; color: #2563eb; font-size: 8px; font-weight: 700; }
.admin-email-list > div > span.inbound { background: #ecfdf5; color: #047857; }
.admin-email-list > div > div { min-width: 0; }
.admin-email-list strong { display: block; font-size: 12px; font-weight: 600; }
.admin-email-list small { display: block; margin-top: 3px; color: #8a8a8e; font-size: 9px; }
.admin-email-list p { margin: 6px 0 0; color: #71717a; font-size: 10px; line-height: 1.45; }
.admin-email-list em { color: #71717a; font-size: 9px; font-style: normal; text-transform: capitalize; }
.admin-integration-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.admin-integration-form { display: grid; gap: 13px; }
.admin-provider-mark { width: 38px; height: 38px; margin-bottom: 11px; display: grid; place-items: center; border-radius: 10px; background: #eff6ff; color: #2563eb; font-size: 11px; font-weight: 700; }
.admin-integration-form.yellow .admin-provider-mark { background: #fff7d6; color: #003087; }
.admin-integration-form.purple .admin-provider-mark { background: #f5f3ff; color: #7c3aed; }
.admin-secret-note { display: flex; align-items: center; gap: 5px; color: #71717a; font-size: 9px; }
.admin-provider-note { min-height: 180px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; color: #2563eb; }
.admin-provider-note h2 { margin: 13px 0 8px; color: #18181b; font-size: 17px; }
.admin-provider-note p { margin: 0; color: #71717a; font-size: 11px; line-height: 1.65; }
.admin-provider-note code { margin-top: 14px; padding: 7px 9px; border-radius: 7px; background: #f4f4f5; color: #52525b; font-size: 9px; }
.admin-security-checklist { display: grid; gap: 12px; color: #7c3aed; }
.admin-security-checklist h2 { margin: 3px 0 7px; color: #18181b; font-size: 17px; }
.admin-security-checklist label { min-height: 38px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #f0f0f1; color: #52525b; font-size: 12px; }
.admin-security-checklist input { width: 16px; height: 16px; accent-color: #2563eb; }
.admin-sidebar-backdrop { display: none; }
.admin-email-workspace { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 18px; align-items: start; }
.admin-email-nav { padding: 14px 8px; display: grid; gap: 3px; border: 1px solid #e4e4e7; border-radius: 14px; background: #fff; }
.admin-email-nav > strong { padding: 8px 12px 13px; color: #18181b; font-size: 13px; font-weight: 600; }
.admin-email-nav button {
  min-height: 40px; padding: 0 11px; display: flex; align-items: center; gap: 9px; border: 0; border-radius: 8px;
  background: transparent; color: #52525b; font-size: 12px; font-weight: 500; text-align: left;
}
.admin-email-nav button > span { width: 7px; height: 7px; border-radius: 50%; background: #d4d4d8; }
.admin-email-nav button:hover { background: #f4f4f5; }
.admin-email-nav button.active { background: #eff6ff; color: #2563eb; }
.admin-email-nav button.active > span { background: #2563eb; box-shadow: 0 0 0 4px #dbeafe; }
.admin-email-content { min-width: 0; }
.admin-settings-form, .admin-captcha-form { display: grid; gap: 0; }
.admin-settings-title {
  padding-bottom: 17px; margin-bottom: 4px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  border-bottom: 1px solid #e5e7eb; color: #2563eb;
}
.admin-settings-title h2 { margin: 0 0 5px; color: #18181b; font-size: 18px; font-weight: 600; }
.admin-settings-title p { margin: 0; color: #71717a; font-size: 11px; }
.admin-settings-row {
  min-height: 68px; padding: 12px 0; display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: center; gap: 18px;
  border-bottom: 1px solid #f0f0f1;
}
.admin-settings-row.top { align-items: start; }
.admin-settings-row > label:first-child { color: #3f3f46; font-size: 12px; font-weight: 500; }
.admin-settings-row input, .admin-settings-row select, .admin-settings-row textarea,
.admin-captcha-row input[type="text"], .admin-captcha-row input[type="password"], .admin-captcha-row select {
  width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid #d4d4d8; border-radius: 8px;
  outline: 0; background: #fff; color: #27272a; font: inherit; font-size: 12px;
}
.admin-settings-row textarea { padding-block: 11px; resize: vertical; line-height: 1.55; }
.admin-settings-row input:focus, .admin-settings-row select:focus, .admin-settings-row textarea:focus,
.admin-captcha-row input:focus, .admin-captcha-row select:focus { border-color: #2563eb; box-shadow: 0 0 0 3px #dbeafe; }
.admin-settings-row.split > div, .admin-settings-row.split { }
.admin-settings-row.split > label { display: grid; gap: 6px; color: #52525b; font-size: 11px; }
.admin-settings-row.split { grid-template-columns: 190px minmax(0, 1fr); }
.admin-settings-row.split > label:first-child { grid-column: 2; }
.admin-settings-row.split > label + label { grid-column: 2; }
.admin-email-media { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 14px; align-items: center; }
.admin-email-media-preview {
  height: 104px; display: grid; place-items: center; overflow: hidden; border: 1px solid #e4e4e7; border-radius: 9px; background: #fff;
}
.admin-email-media-preview img { width: 120px; height: auto; }
.admin-email-media-preview.background { background: linear-gradient(135deg, #f1f2ff, #e0e7ff); color: #6366f1; }
.admin-email-media > div:last-child { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.admin-email-media small { grid-column: 1 / -1; color: #71717a; font-size: 9px; line-height: 1.45; }
.admin-outline-button {
  min-height: 38px; padding: 0 13px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid #93b4ff; border-radius: 8px; background: #fff; color: #2563eb; font-size: 11px; font-weight: 600;
}
.admin-outline-button:hover { background: #eff6ff; }
.admin-settings-form > .admin-primary-button { justify-self: end; margin-top: 18px; }
.admin-settings-actions { margin-top: 18px; display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex-wrap: wrap; }
.admin-settings-actions.captcha { justify-content: space-between; }
.admin-check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.admin-check-grid label { min-height: 34px; display: flex; align-items: center; gap: 8px; color: #52525b; font-size: 11px; }
.admin-check-grid input { width: 16px; min-height: 16px; height: 16px; padding: 0; accent-color: #2563eb; box-shadow: none !important; }
.admin-template-variables { margin-top: 15px; padding: 14px; border-radius: 10px; background: #f8fafc; }
.admin-template-variables strong { display: block; margin-bottom: 9px; color: #475569; font-size: 11px; }
.admin-template-variables > div { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-template-variables code { padding: 5px 7px; border: 1px solid #dbeafe; border-radius: 6px; background: #fff; color: #2563eb; font-size: 9px; }
.admin-template-manager { padding-bottom: 8px; }
.admin-template-list { display: grid; }
.admin-template-item { border-bottom: 1px solid #e9e9ec; }
.admin-template-item:last-child { border-bottom: 0; }
.admin-template-item.expanded { margin-inline: -8px; padding-inline: 8px; background: #fcfdff; }
.admin-template-summary { min-height: 66px; padding: 11px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.admin-template-name { min-width: 0; display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 7px; }
.admin-template-name strong { color: #27272a; font-size: 12px; font-weight: 500; }
.admin-template-name > span { display: inline-flex; color: #71717a; cursor: help; }
.admin-template-name small { overflow: hidden; color: #8a8a8e; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.admin-template-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.admin-template-edit, .admin-template-preview-button {
  min-height: 34px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid #2563eb; border-radius: 6px; font-size: 10px; font-weight: 600;
}
.admin-template-edit { background: #2563eb; color: #fff; }
.admin-template-edit:hover { background: #1d4ed8; }
.admin-template-preview-button { width: 44px; padding: 0; background: #fff; color: #2563eb; }
.admin-template-preview-button:hover { background: #eff6ff; }
.admin-template-editor { margin: 0 0 18px; padding: 20px; border-left: 2px solid #dbeafe; background: #fff; box-shadow: inset 0 1px #eff1f5; }
.admin-template-editor-head { margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.admin-template-editor-head > strong { font-size: 13px; font-weight: 600; }
.admin-template-editor-head > button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: #2563eb; font-size: 10px; }
.admin-template-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.admin-template-fields label { display: grid; gap: 7px; color: #3f3f46; font-size: 11px; font-weight: 500; }
.admin-template-fields input {
  width: 100%; height: 42px; padding: 0 12px; border: 1px solid #d4d4d8; border-radius: 7px; outline: 0;
  color: #27272a; font-size: 12px; font-weight: 400;
}
.admin-template-fields input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px #dbeafe; }
.admin-template-body-heading { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-template-body-heading > label { color: #3f3f46; font-size: 11px; font-weight: 500; }
.admin-template-body-heading > button { min-height: 30px; padding: 0 10px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid #94a3b8; border-radius: 6px; background: #fff; color: #64748b; font-size: 9px; }
.admin-rich-editor { margin-top: 8px; border: 1px solid #d4d4d8; border-radius: 7px; overflow: hidden; }
.admin-rich-toolbar { min-height: 45px; padding: 6px 8px; display: flex; align-items: center; gap: 4px; border-bottom: 1px solid #e4e4e7; background: #f5f6f8; }
.admin-rich-toolbar select { height: 31px; padding: 0 8px; border: 1px solid #e4e4e7; border-radius: 4px; background: #fff; color: #52525b; font-size: 10px; }
.admin-rich-toolbar button { min-width: 30px; height: 30px; padding: 0 7px; border: 0; border-radius: 4px; background: transparent; color: #52525b; font-size: 10px; }
.admin-rich-toolbar button:hover { background: #e4e7ec; }
.admin-rich-toolbar > span { width: 1px; height: 22px; background: #d4d4d8; }
.admin-rich-editor textarea { width: 100%; padding: 16px; display: block; border: 0; outline: 0; resize: vertical; color: #27272a; font: 400 13px/1.7 "Inter", sans-serif; }
.admin-template-modal { position: fixed; z-index: 200; inset: 0; display: grid; place-items: center; padding: 20px; }
.admin-template-modal-backdrop { position: absolute; inset: 0; border: 0; background: rgba(15,23,42,.48); backdrop-filter: blur(3px); }
.admin-template-modal-card { position: relative; width: min(620px, 100%); max-height: calc(100dvh - 40px); overflow: auto; border-radius: 16px; background: #f4f4f5; box-shadow: 0 24px 80px rgba(15,23,42,.25); }
.admin-template-modal-head { padding: 15px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid #e4e4e7; background: #fff; }
.admin-template-modal-head > div { min-width: 0; display: grid; gap: 3px; }
.admin-template-modal-head strong { font-size: 13px; }
.admin-template-modal-head small { overflow: hidden; color: #71717a; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.admin-template-modal-head button { width: 34px; height: 34px; border: 0; border-radius: 50%; display: grid; place-items: center; background: #f4f4f5; }
.admin-email-preview { margin: 24px; padding: 34px; display: grid; justify-items: center; border-radius: 10px; background: #fff; text-align: center; }
.admin-email-preview img { width: 150px; height: auto; margin-bottom: 24px; }
.admin-email-preview h2 { margin: 0 0 16px; font-size: 24px; }
.admin-email-preview p { margin: 0; color: #52525b; font-size: 13px; line-height: 1.8; white-space: pre-line; }
.admin-email-preview a { margin: 24px 0; padding: 11px 18px; border-radius: 999px; background: #2563eb; color: #fff; font-size: 12px; font-weight: 600; }
.admin-email-preview > small { color: #a1a1aa; font-size: 9px; }
.admin-captcha-form { max-width: 1050px; }
.admin-captcha-row {
  min-height: 66px; padding: 14px 0; display: grid; grid-template-columns: 235px minmax(0, 1fr); align-items: center; gap: 18px;
  border-bottom: 1px solid #f0f0f1;
}
.admin-captcha-row.top { align-items: start; }
.admin-captcha-row > label:first-child { color: #3f3f46; font-size: 12px; font-weight: 500; }
.admin-radio-list { display: grid; gap: 12px; }
.admin-radio-list.horizontal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-radio-list > label { display: flex; align-items: flex-start; gap: 9px; color: #52525b; font-size: 11px; cursor: pointer; }
.admin-radio-list input { width: 16px; height: 16px; margin-top: 1px; accent-color: #2563eb; }
.admin-radio-list label > span { display: grid; gap: 3px; }
.admin-radio-list strong { font-size: 12px; font-weight: 500; }
.admin-radio-list small { color: #64748b; font-size: 10px; line-height: 1.45; }
.admin-captcha-keys { display: grid; gap: 9px; }
.admin-captcha-keys label { display: grid; grid-template-columns: 100px minmax(0, 1fr); align-items: center; gap: 10px; color: #52525b; font-size: 11px; }
.admin-captcha-keys p { margin: 3px 0 0 110px; color: #2563eb; font-size: 10px; }
.admin-check-grid.captcha { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-score-control { display: grid; grid-template-columns: minmax(0, 1fr) 42px; align-items: center; gap: 10px; }
.admin-score-control input { width: 100%; accent-color: #2563eb; }
.admin-score-control strong { width: 38px; height: 28px; display: grid; place-items: center; border-radius: 999px; background: #2563eb; color: #fff; font-size: 10px; }
.admin-score-control small { grid-column: 1 / -1; color: #71717a; font-size: 9px; }
.admin-switch.align-left { justify-self: start; }
.admin-switch-label { display: flex; align-items: center; gap: 10px; color: #52525b; font-size: 11px; font-weight: 500; }

/* Advanced practice workspace, ported from the original WordPress tool. */
.legacy-demo-page { min-height: 100dvh; padding: 18px; background: #ffffff; }
.legacy-practice {
  position: relative; display: flex; flex-direction: column; width: 100%; height: calc(100dvh - 36px);
  min-height: 420px; overflow: hidden; background: #fff; border: 1px solid #e2e8f0;
  border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,.04); color: #334155;
}
.legacy-fullscreen { position: fixed; inset: 0; z-index: 1000; width: 100vw; height: 100vh; border: 0; border-radius: 0; }
.legacy-topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.legacy-quick-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.legacy-quick-controls button, .legacy-settings-button {
  min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
  display: flex; align-items: center; gap: 8px; padding: 7px 12px;
}
.legacy-quick-controls button span { color: var(--muted); font-size: 11px; font-weight: 500; text-transform: uppercase; }
.legacy-quick-controls button strong { font-size: 14px; }
.legacy-settings-button { font-weight: 750; }
.legacy-sheet-wrap { flex: 1; min-height: 0; overflow: auto; background: #fff; padding: 10px 70px 24px; }
.legacy-sheet { position: relative; min-width: 760px; min-height: 100%; background: white; display: grid; place-items: start center; overflow: auto; }
.legacy-sheet > div[aria-label] { transform-origin: center top; }
.legacy-solfege { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); color: var(--green); font-weight: 800; letter-spacing: .18em; }
.legacy-message { position: sticky; left: 50%; bottom: 18px; transform: translateX(-50%); width: max-content; max-width: 90%; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: white; font-weight: 750; box-shadow: var(--shadow); }
.legacy-transport {
  flex: 0 0 auto; min-height: 76px; display: grid; grid-template-columns: minmax(0,4fr) minmax(0,2fr) minmax(0,3fr); align-items: center; gap: 0;
  border-top: 1px solid #e2e8f0; padding: 8px 18px 10px; background: rgba(255,255,255,.96); box-shadow: 0 -10px 28px rgba(15,23,42,.08);
}
.legacy-toolbar-side { display: flex; align-items: center; gap: 4px; min-width: 0; }
.legacy-toolbar-side.right { justify-content: flex-end; overflow-x: auto; }
.legacy-toolbar-side > button, .legacy-transport .legacy-stepper > button {
  min-width: 55px; height: 56px; border: 0; border-radius: 10px; background: transparent; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10px; font-weight: 800; white-space: nowrap;
}
.legacy-toolbar-button {
  min-width: 55px; height: 56px; border: 0; border-radius: 10px; background: transparent; color: #64748b;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10px; font-weight: 800;
}
.legacy-toolbar-button:hover, .legacy-toolbar-button.active { background: #eff6ff; color: #2563eb; }
.legacy-toolbar-button svg { width: 20px; height: 20px; }
.legacy-tool-menu-wrap { position: relative; }
.legacy-tool-popover {
  position: absolute; left: 50%; bottom: calc(100% + 12px); z-index: 20; width: 220px; padding: 12px;
  transform: translateX(-50%); border: 1px solid #e2e8f0; border-radius: 12px; background: white; box-shadow: 0 10px 25px rgba(15,23,42,.12);
}
.legacy-tool-popover > div, .legacy-tool-popover > label { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 800; }
.legacy-tempo-stepper { display: grid; grid-template-columns: 30px 58px 30px; gap: 5px; }
.legacy-tempo-stepper button, .legacy-tempo-stepper input { width: 100%; height: 30px; border: 1px solid #cbd5e1; border-radius: 8px; background: #f8fafc; text-align: center; color: #334155; }
.legacy-tool-popover input[type="checkbox"] { width: 42px; height: 22px; accent-color: #2563eb; }
.legacy-toolbar-side > button svg { width: 20px; height: 20px; }
.legacy-toolbar-side > button:hover, .legacy-toolbar-side > button.active { background: #eff6ff; color: #2563eb; }
.legacy-play-group { display: flex; align-items: center; gap: 12px; }
.legacy-play { width: 72px; height: 62px; border: 0; border-radius: 14px; background: #f8fafc; color: #334155; display: grid; place-items: center; }
.legacy-play:hover { background: #eff6ff; color: #2563eb; }
.legacy-play svg { width: 32px; height: 32px; }
.legacy-refresh { width: 62px; height: 52px; border: 0; border-radius: 10px; background: transparent; color: #334155; display: grid; place-items: center; }
.legacy-refresh:hover { background: #f1f5f9; }
.legacy-refresh svg { width: 24px; height: 24px; }
.legacy-count-mark { min-width: 22px; height: 22px; border: 1.8px solid currentColor; border-radius: 999px; display: grid; place-items: center; font-size: 12px; }
.legacy-tempo { display: flex; align-items: center; background: #f1f3ef; border-radius: 999px; padding: 4px; }
.legacy-tempo button { width: 30px; height: 32px; border: 0; background: transparent; color: var(--muted); }
.legacy-tempo button svg { width: 15px; }
.legacy-tempo strong { min-width: 58px; text-align: center; font-size: 18px; }
.legacy-tempo small { display: block; font-size: 8px; color: var(--muted); }
.legacy-stepper { display: flex; align-items: center; border: 1px solid #e2e8f0; border-radius: 9px; height: 42px; flex: 0 0 auto; }
.legacy-transport .legacy-stepper > button { min-width: 28px; width: 28px; height: 40px; padding: 0; }
.legacy-stepper button svg { width: 13px; }
.legacy-stepper span { min-width: 38px; text-align: center; font-size: 11px; font-weight: 800; }
.legacy-tool-stepper { margin-inline: 4px; }
.legacy-drawer-overlay { position: fixed; inset: 0; z-index: 1100; border: 0; background: rgba(0,0,0,.28); backdrop-filter: blur(2px); }
.legacy-settings-drawer {
  position: fixed; z-index: 1101; top: 0; right: -430px; width: min(410px, 100vw); height: 100vh; overflow-y: auto;
  padding: 24px; background: #fff; box-shadow: -10px 0 40px rgba(0,0,0,.15); transition: right .25s ease;
}
.legacy-settings-drawer.open { right: 0; }
.legacy-drawer-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 20px; }
.legacy-drawer-header h3 { margin: 0; }
.legacy-drawer-header button { border: 0; background: transparent; color: var(--muted); }
.legacy-setting-grid { display: grid; gap: 13px; }
.legacy-setting-grid label { display: grid; grid-template-columns: 105px 1fr; align-items: center; gap: 12px; font-size: 13px; font-weight: 750; }
.legacy-setting-grid select, .legacy-range select { min-height: 40px; border: 1px solid #cbd5e1; border-radius: 6px; background: white; padding: 0 9px; color: #1e293b; }
.legacy-range { display: grid; grid-template-columns: 105px 1fr 1fr; align-items: center; gap: 8px; font-size: 13px; font-weight: 750; }
.legacy-settings-drawer h4 { margin: 24px 0 10px; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; color: var(--muted); }
.legacy-rhythm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.legacy-rhythm-grid button { min-height: 40px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--muted); font-size: 12px; font-weight: 750; }
.legacy-rhythm-grid button.active { border-color: #2563eb; background: #eff6ff; color: #2563eb; box-shadow: 0 0 0 2px rgba(37,99,235,.1); }
.legacy-switches { display: grid; gap: 2px; margin: 18px 0; }
.legacy-switches label { min-height: 40px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 750; }
.legacy-switches input { accent-color: #2563eb; width: 18px; height: 18px; }
.legacy-done-button { width: 100%; min-height: 46px; margin-top: 10px; border: 0; border-radius: 8px; background: #2563eb; color: white; font-weight: 800; }
.legacy-done-button:hover { background: #1d4ed8; }

@media (max-width: 900px) {
  .hero, .practice-layout { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; gap: 44px; }
  .hero-centered { display: block; }
  .grid-3, .pricing-grid { grid-template-columns: 1fr; }
  .price-card { min-height: 0; }
  .faq-layout { grid-template-columns: 1fr; gap: 34px; }
  .faq-heading { position: static; text-align: center; }
  .faq-heading h2, .faq-heading .lead { margin-inline: auto; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .app-main { padding: 22px 16px; }
  .settings-grid, .billing-summary-grid { grid-template-columns: 1fr; }
  .renewal-card { align-items: flex-start; flex-direction: column; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .legacy-demo-page { padding: 6px; }
  .legacy-practice { height: calc(100dvh - 12px); border-radius: 12px; }
  .legacy-transport { grid-template-columns: 1fr auto 1fr; padding-inline: 6px; }
  .legacy-toolbar-side > button { min-width: 42px; }
  .legacy-toolbar-side > button span { display: none; }
  .legacy-toolbar-side > button:nth-child(n+4) { display: none; }
  .legacy-toolbar-side.right > *:nth-child(n+4) { display: none; }
  .admin-workspace { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: fixed; z-index: 140; inset: 0 auto 0 0; width: min(280px, calc(100vw - 34px));
    transform: translateX(-105%); transition: transform .22s ease;
  }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-sidebar-brand > button, .admin-menu-button { display: grid; place-items: center; }
  .admin-sidebar-backdrop { position: fixed; z-index: 130; inset: 0; display: block; border: 0; background: rgba(15,23,42,.35); }
  .admin-topbar { padding-inline: 16px; justify-content: flex-start; }
  .admin-search { width: min(100%, 420px); }
  .admin-top-actions { margin-left: auto; }
  .admin-content { padding: 22px 16px; }
  .admin-stat-grid, .admin-stat-grid.compact { grid-template-columns: 1fr 1fr; }
  .admin-overview-grid, .admin-split-layout, .admin-integration-grid { grid-template-columns: 1fr; }
  .admin-email-workspace { grid-template-columns: 1fr; }
  .admin-email-nav { display: flex; overflow-x: auto; }
  .admin-email-nav > strong { display: none; }
  .admin-email-nav button { flex: 0 0 auto; padding-inline: 12px; }
  .admin-plan-grid { grid-template-columns: 1fr 1fr; }
  .admin-inline-form { grid-template-columns: 1fr 1fr; align-items: end; }
  .admin-inline-form > div { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1280px); }
  .nav { gap: 10px; }
  .site-brand-logo { width: 138px; max-width: 44vw; }
  .nav-links { gap: 8px; }
  .footer { padding-block: 28px 24px; }
  .footer-inner { gap: 24px; }
  .footer-nav { gap: 15px 22px; font-size: 14px; }
  .nav-links a:not(.button) { display: none; }
  .nav-links .button { display: none; }
  h1 { font-size: 48px; }
  .stats-row, .metric-grid { grid-template-columns: 1fr; }
  .app-topbar { align-items: flex-start; flex-direction: column; }
  .practice-page { grid-template-rows: 56px minmax(0, 1fr); }
  .practice-header { padding: 0 12px; }
  .practice-login-link { min-height: 38px; padding: 0 4px; }
  .practice-brand-logo { width: 124px; }
  .legacy-transport { min-height: 66px; }
  .legacy-toolbar-side > button { min-width: 34px; height: 42px; }
  .legacy-play { width: 50px; height: 50px; }
  .legacy-tempo { display: none; }
  .legacy-sheet-wrap { padding: 6px; }
  .admin-main { grid-template-rows: 58px minmax(0, 1fr); }
  .admin-topbar { gap: 9px; }
  .admin-search { width: auto; flex: 1; }
  .admin-search input { min-width: 0; }
  .admin-top-actions .language-switcher { display: none; }
  .admin-content { padding: 20px 12px; }
  .admin-page-heading { align-items: flex-start; flex-direction: column; }
  .admin-stat-grid, .admin-stat-grid.compact, .admin-plan-grid { grid-template-columns: 1fr; }
  .admin-overview-grid { grid-template-columns: 1fr; }
  .admin-form-row, .admin-inline-form { grid-template-columns: 1fr; }
  .admin-inline-form > div { grid-column: auto; }
  .admin-chart { height: 190px; }
  .admin-settings-row, .admin-captcha-row { grid-template-columns: 1fr; gap: 9px; }
  .admin-settings-row.split, .admin-settings-row.split > label:first-child, .admin-settings-row.split > label + label { grid-template-columns: 1fr; grid-column: auto; }
  .admin-email-media { grid-template-columns: 1fr; }
  .admin-email-media-preview { width: 100%; }
  .admin-radio-list.horizontal, .admin-check-grid.captcha { grid-template-columns: 1fr; }
  .admin-captcha-keys label { grid-template-columns: 1fr; }
  .admin-captcha-keys p { margin-left: 0; }
  .admin-settings-actions.captcha { align-items: stretch; flex-direction: column; }
  .admin-template-summary { align-items: flex-start; flex-direction: column; }
  .admin-template-actions { width: 100%; }
  .admin-template-edit { flex: 1; }
  .admin-template-name { grid-template-columns: auto auto; }
  .admin-template-name small { grid-column: 1 / -1; white-space: normal; }
  .admin-template-fields { grid-template-columns: 1fr; }
  .admin-template-editor { padding: 14px; }
  .admin-rich-toolbar { overflow-x: auto; }
  .admin-email-preview { margin: 10px; padding: 24px 18px; }
}

@media print {
  body * { visibility: hidden !important; }
  .legacy-sheet, .legacy-sheet * { visibility: visible !important; }
  .legacy-sheet { position: absolute; inset: 0; width: 100%; min-width: 0; overflow: visible; }
  .legacy-message, .legacy-solfege { display: none !important; }
}
