:root {
  color-scheme: dark;
  --ink: #0b0f18;
  --ink-soft: #101624;
  --canvas: #1b2232;
  --canvas-glow: #262d42;
  --panel: #222b3f;
  --panel-strong: #151d2c;
  --line: rgba(216, 225, 255, .11);
  --line-strong: rgba(216, 225, 255, .2);
  --text: #f8f7fb;
  --muted: #aeb7ca;
  --accent: #ff7187;
  --accent-light: #ff9bab;
  --lilac: #a99aff;
  --success: #6ee7bc;
  --shadow: 0 22px 60px rgba(2, 5, 12, .22);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; background: var(--canvas); color: var(--text); font: 15px/1.5 Inter, "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }

.shell { display: grid; grid-template-columns: 282px minmax(0, 1fr); min-height: 100vh; }
aside { position: sticky; top: 0; z-index: 20; height: 100vh; padding: 28px 22px 22px; background: var(--ink); border-right: 1px solid rgba(255,255,255,.05); display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 13px; margin-bottom: 38px; padding: 0 4px; }
.brand-mark { width: 58px; height: 58px; padding: 3px; border-radius: 50%; background: linear-gradient(145deg, var(--accent), var(--lilac)); box-shadow: 0 8px 30px rgba(255,113,135,.16); }
.brand img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.brand > span:last-child, aside footer, .login-brand > span { display: flex; flex-direction: column; }
.brand b, .login-brand b { font-family: Georgia, serif; font-size: 20px; letter-spacing: -.02em; }
.brand small, aside footer small, .login-brand small { color: var(--muted); }
.nav-label { padding: 0 14px 10px; color: #6f788c; font-size: 9px; font-weight: 800; letter-spacing: .18em; }
nav { display: grid; gap: 5px; flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; align-content: start; padding-right: 4px; scrollbar-width: thin; scrollbar-color: rgba(169,154,255,.35) transparent; }
nav a { position: relative; display: flex; align-items: center; gap: 13px; padding: 12px 14px; border: 1px solid transparent; border-radius: 13px; color: #aeb7ca; font-weight: 600; transition: background .18s ease, color .18s ease, transform .18s ease; }
nav a i { width: 21px; color: #778196; font-style: normal; font-size: 17px; text-align: center; transition: color .18s ease; }
nav a:hover { background: rgba(255,255,255,.045); color: white; transform: translateX(2px); }
nav a.active { background: linear-gradient(90deg, rgba(255,113,135,.17), rgba(169,154,255,.07)); border-color: rgba(255,113,135,.13); color: white; }
nav a.active::before { content: ""; position: absolute; left: -23px; width: 4px; height: 25px; border-radius: 0 5px 5px 0; background: var(--accent); box-shadow: 0 0 18px rgba(255,113,135,.7); }
nav a.active i { color: var(--accent-light); }
aside footer { flex: 0 0 auto; margin-top: 14px; border-top: 1px solid var(--line); padding-top: 16px; gap: 10px; background: var(--ink); }
.user-card { display: flex; gap: 11px; align-items: center; min-width: 0; }
.user-card > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.user-card b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.avatar { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: #20283a; color: var(--accent-light); font-size: 11px; font-weight: 900; }
aside footer form { margin: 0; }
aside footer button { display: flex; align-items: center; justify-content:center; gap: 8px; width: 100%; min-height:42px; padding: 9px 12px; border: 1px solid rgba(255,113,135,.22); border-radius:11px; background: rgba(255,113,135,.08); color: var(--accent-light); text-align: center; font-size: 13px; font-weight:800; }
aside footer button:hover { background:rgba(255,113,135,.16); border-color:rgba(255,113,135,.38); }

.shell > main { min-width: 0; padding: 42px clamp(24px, 4vw, 68px) 64px; background: radial-gradient(circle at 90% 0, rgba(169,154,255,.09), transparent 30%), linear-gradient(135deg, var(--canvas-glow), var(--canvas) 42%); }
header { display: flex; gap: 15px; align-items: center; min-height: 72px; margin-bottom: 28px; }
header > div { min-width: 0; }
header span, .kicker { font-size: 10px; letter-spacing: .19em; color: var(--accent-light); font-weight: 900; }
h1 { margin: 3px 0 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -.045em; }
h2 { margin: 5px 0; font-size: 25px; letter-spacing: -.025em; }
.header-note { margin-left: auto; padding: 9px 13px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); letter-spacing: .04em; font-size: 10px; }
.menu { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); color: white; font-size: 20px; }
.scrim { display: none; }

.hero { position: relative; min-height: 260px; padding: clamp(30px, 5vw, 58px); overflow: hidden; border: 1px solid rgba(169,154,255,.18); border-radius: 30px; background: radial-gradient(circle at 82% 8%, rgba(255,113,135,.25), transparent 27%), radial-gradient(circle at 70% 100%, rgba(169,154,255,.19), transparent 36%), var(--panel-strong); box-shadow: var(--shadow); display: flex; justify-content: space-between; align-items: center; }
.hero::after { content: ""; position: absolute; inset: auto 7% 19% 48%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent); }
.hero h2 { max-width: 680px; margin: 8px 0 12px; font-size: clamp(32px, 4.5vw, 58px); line-height: 1.02; letter-spacing: -.055em; }
.hero p { color: var(--muted); font-size: 16px; }
.hero > b { position: relative; z-index: 1; font-family: Georgia, serif; font-size: clamp(95px, 12vw, 170px); color: var(--accent); opacity: .2; transform: rotate(-8deg); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 20px 0; }
.cards article, .panel { background: linear-gradient(145deg, rgba(255,255,255,.025), transparent 50%), var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 35px rgba(4,8,17,.1); }
.cards article { position: relative; overflow: hidden; padding: 23px; }
.cards article::after { content: ""; position: absolute; width: 52px; height: 4px; right: 20px; top: 22px; border-radius: 9px; background: linear-gradient(90deg, var(--accent), var(--lilac)); opacity: .75; }
.cards small { display: block; color: var(--muted); font-size: 12px; font-weight: 650; }
.cards strong { display: block; margin-top: 8px; font-size: 35px; letter-spacing: -.04em; }
.cards strong.long-value{font-size:clamp(17px,1.7vw,25px);line-height:1.1;color:var(--accent-light)}
.panel { margin: 20px 0; padding: clamp(22px, 3vw, 32px); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 20px; }
.panel-head button, .primary { min-height: 44px; border: 0; border-radius: 12px; background: linear-gradient(135deg, var(--accent), #ee5975); color: #16131b; padding: 11px 18px; font-weight: 850; box-shadow: 0 10px 24px rgba(255,113,135,.18); transition: transform .18s ease, box-shadow .18s ease; }
.panel-head button:hover, .primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(255,113,135,.27); }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: 5px; }
.form-grid label, .login-card label { display: grid; gap: 7px; color: #dfe4ef; font-size: 12px; font-weight: 750; }
.wide { grid-column: span 2; }
input, select, textarea { width: 100%; min-height: 46px; padding: 11px 13px; outline: none; border: 1px solid var(--line-strong); border-radius: 11px; background: rgba(8,12,20,.64); color: white; transition: border .18s ease, box-shadow .18s ease, background .18s ease; }
input::placeholder { color: #6f788b; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); background: rgba(8,12,20,.86); box-shadow: 0 0 0 4px rgba(255,113,135,.12); }
.table { overflow: auto; border: 1px solid var(--line); border-radius: 16px; background: rgba(10,14,24,.2); }
table { width: 100%; min-width: 650px; border-collapse: collapse; }
th, td { padding: 15px 17px; border-bottom: 1px solid var(--line); text-align: left; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .15s ease; }
tbody tr:hover { background: rgba(169,154,255,.055); }
th { color: #929db2; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
td b { color: #fff; }
.status { color: var(--success); font-weight: 750; }
.notice, .credentials { padding: 15px 18px; margin: 15px 0; border: 1px solid rgba(255,113,135,.24); border-radius: 14px; background: rgba(255,113,135,.09); }
.credentials { border-color: rgba(110,231,188,.25); background: rgba(110,231,188,.08); display:grid; grid-template-columns:minmax(220px,1fr) minmax(260px,1fr) auto; gap:18px; align-items:center; }
.credentials code { display: block; margin: 10px 0; padding: 12px; border-radius: 9px; background: rgba(3,8,9,.58); color: var(--success); }
.credentials p{margin:3px 0;color:var(--muted)}.credentials form{margin:0}.credentials .primary{white-space:nowrap}.credential-actions{display:grid;gap:9px}.dismiss-button{width:100%;padding:9px 14px;border:1px solid var(--line-strong);border-radius:10px;background:transparent;color:var(--muted);font-weight:750}.dismiss-button:hover{border-color:var(--accent);background:rgba(255,113,135,.08);color:var(--text)}.mail-warning{color:var(--accent-light)!important}.mail-state{font-size:11px;font-weight:800;letter-spacing:.08em;color:var(--muted)}.mail-state.ready{color:var(--success)}.mail-help{padding:12px 15px;border:1px solid rgba(255,113,135,.2);border-radius:12px;background:rgba(255,113,135,.07);color:var(--muted)}.mail-help code{color:var(--accent-light)}.mail-button{border:1px solid rgba(255,113,135,.3);border-radius:9px;background:rgba(255,113,135,.1);color:var(--accent-light);padding:8px 11px;font-weight:800;white-space:nowrap}.mail-button:hover{background:rgba(255,113,135,.18)}.no-mail{color:#7f899c;font-size:12px;white-space:nowrap}
.plan-hero{min-height:220px}.plan-hero h2{max-width:760px}.plan-form{grid-template-columns:1.25fr .7fr .8fr}.form-grid small{color:var(--muted);font-weight:500}.check{display:flex!important;align-items:center;gap:9px;min-height:46px}.check input{width:18px;min-height:18px;height:18px;accent-color:var(--accent)}.plan-list{display:grid;gap:12px}.plan-row{display:grid;grid-template-columns:1.15fr .55fr .55fr .65fr 1.5fr auto auto;gap:10px;align-items:end;padding:16px;border:1px solid var(--line);border-radius:16px;background:rgba(9,14,24,.24)}.plan-row label{display:grid;gap:6px;color:var(--muted);font-size:11px;font-weight:750}.plan-row input{min-height:40px;padding:8px 10px}.plan-row .check{white-space:nowrap}.schedule-result{margin:20px 0;padding:26px;border:1px solid rgba(110,231,188,.28);border-radius:24px;background:linear-gradient(145deg,rgba(110,231,188,.11),rgba(110,231,188,.035));box-shadow:var(--shadow)}.schedule-result.has-exceptions{border-color:rgba(255,155,171,.3);background:linear-gradient(145deg,rgba(255,113,135,.1),rgba(169,154,255,.035))}.result-summary{display:flex;gap:16px;align-items:center}.result-summary h2{margin:2px 0}.result-summary p{margin:0;color:var(--muted)}.result-icon{display:grid;place-items:center;width:55px;height:55px;border-radius:17px;background:var(--success);color:var(--ink);font-size:27px;font-weight:900}.has-exceptions .result-icon{background:var(--accent)}.result-columns{display:grid;grid-template-columns:1fr 1.4fr;gap:28px;margin-top:22px;padding-top:20px;border-top:1px solid var(--line)}.result-columns h3{margin:0 0 10px}.result-columns p{color:var(--muted)}.result-columns ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}.result-columns li{color:var(--muted)}.result-columns li span{display:inline-grid;place-items:center;width:22px;height:22px;margin-right:8px;border-radius:7px;background:rgba(110,231,188,.14);color:var(--success);font-weight:900}.result-columns>div+div li span{background:rgba(255,113,135,.14);color:var(--accent-light)}.result-columns li b{color:var(--text)}.detail-panel{border-style:dashed}.panel-head p{margin:4px 0 0;color:var(--muted)}
.billing-hero{min-height:230px}.billing-hero h2{max-width:720px}.billing-hero form{margin-top:0}.billing-hero>b{color:var(--success)}.billing-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;margin-top:22px}.report-options{display:flex;flex-wrap:wrap;gap:13px;align-items:center}.report-options .check{padding:0 12px;border:1px solid var(--line);border-radius:12px;background:rgba(8,12,20,.35);font-size:12px}.generate-button{min-height:44px;padding:10px 15px;border:1px solid rgba(110,231,188,.3);border-radius:12px;background:rgba(110,231,188,.1);color:var(--success);font-weight:850}.generate-button:hover{background:rgba(110,231,188,.18)}.billing-setup{display:grid;grid-template-columns:1fr 1fr;gap:20px}.billing-setup .panel{margin-bottom:0}.compact-form{grid-template-columns:1.25fr 1fr .75fr}.compact-form .primary{grid-column:1/-1}.payment-status{display:inline-block;padding:5px 9px;border-radius:99px;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.07em}.payment-status.pagado{background:rgba(110,231,188,.13);color:var(--success)}.payment-status.pendiente{background:rgba(169,154,255,.14);color:var(--lilac)}.payment-status.atraso{background:rgba(255,113,135,.14);color:var(--accent-light)}.payment-inline{display:grid;grid-template-columns:90px 115px 140px auto;gap:7px;min-width:480px}.payment-inline input,.payment-inline select{min-height:36px;padding:7px 8px}.payment-inline .mail-button{padding:7px 10px}.reverse-payment{display:grid;grid-template-columns:160px auto;gap:7px;min-width:330px}.reverse-payment input{min-height:36px;padding:7px 9px}.reverse-button{padding:8px 11px;border:1px solid rgba(255,113,135,.35);border-radius:9px;background:rgba(255,113,135,.11);color:var(--accent-light);font-weight:850;white-space:nowrap}.reverse-button:hover{background:rgba(255,113,135,.2)}

.edit-panel{border-color:rgba(169,154,255,.28);box-shadow:0 16px 48px rgba(7,9,20,.2)}.inline-button{display:inline-flex;width:auto;align-items:center;justify-content:center}.people-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.people-tools input{width:min(310px,100%)}.people-tools form,.person-actions form,.import-panel form{margin:0}.person-actions{display:flex;align-items:center;gap:8px}.person-actions button{min-height:36px}.import-form{display:grid;grid-template-columns:minmax(260px,1fr) auto;gap:14px;align-items:end}.import-form label{display:grid;gap:7px;color:#dfe4ef;font-size:12px;font-weight:750}.import-form input[type=file]{padding:8px}.help-text{color:var(--muted);font-size:12px}.import-errors{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}.import-errors ul{margin:8px 0;padding-left:22px;color:var(--muted)}.import-errors li{margin:5px 0}.import-errors b{color:var(--text)}
.room-comments{grid-column:1/-1}.room-comments textarea{resize:vertical;min-height:170px}.equipment-cell{max-width:520px;min-width:280px;color:var(--muted);white-space:normal}.daily-agenda{border-color:rgba(110,231,188,.2)}.agenda-count{padding:7px 11px;border-radius:99px;background:rgba(110,231,188,.1);color:var(--success);font-size:11px;font-weight:850}.agenda-list{display:grid;gap:10px}.agenda-row{display:grid;grid-template-columns:90px minmax(160px,1fr) auto minmax(160px,1fr) minmax(300px,1.35fr);gap:15px;align-items:center;padding:15px;border:1px solid var(--line);border-radius:16px;background:rgba(8,12,20,.25)}.agenda-time{display:grid;text-align:center;padding:9px;border-radius:12px;background:rgba(169,154,255,.11)}.agenda-time small,.agenda-person small,.next-class-details small{color:var(--muted);font-size:9px;letter-spacing:.13em;font-weight:850}.agenda-time strong{font-size:21px;color:var(--lilac)}.agenda-person{display:grid;gap:4px}.agenda-person b{font-size:13px}.agenda-arrow{color:var(--accent);font-size:24px}.room-assignment{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:end}.room-assignment label{display:grid;gap:4px;color:var(--muted);font-size:10px;font-weight:800}.room-assignment select{min-height:38px;padding:7px 9px}.empty-agenda{display:flex;align-items:center;gap:18px}.empty-agenda>span{display:grid;place-items:center;width:55px;height:55px;border-radius:17px;background:rgba(169,154,255,.13);color:var(--lilac);font-size:28px}.empty-agenda h2,.empty-agenda p{margin:2px 0}.empty-agenda p{color:var(--muted)}.next-class{position:relative;display:grid;grid-template-columns:auto minmax(230px,.8fr) 1.5fr;gap:25px;align-items:center;margin:22px 0;padding:clamp(25px,4vw,40px);overflow:hidden;border:1px solid rgba(255,113,135,.24);border-radius:28px;background:radial-gradient(circle at 100% 0,rgba(255,113,135,.15),transparent 40%),linear-gradient(145deg,var(--panel),var(--panel-strong));box-shadow:var(--shadow)}.next-class-note{display:grid;place-items:center;width:74px;height:74px;border-radius:22px;background:linear-gradient(135deg,var(--accent),var(--lilac));color:var(--ink);font-size:36px}.next-class h2{margin:7px 0 0}.next-class-time{margin:2px 0;color:var(--accent-light);font-size:21px;font-weight:850}.next-class-details{display:grid;grid-template-columns:1.3fr 1fr .7fr;gap:10px}.next-class-details>div{display:grid;gap:5px;padding:14px;border:1px solid var(--line);border-radius:14px;background:rgba(8,12,20,.28)}.next-class-details b{font-size:14px}.next-class-details>div:nth-child(n+2) b{color:var(--success)}

.login-grid { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(430px, .88fr); padding: 0; background: var(--ink); }
.cover { position: relative; display: flex; align-items: center; overflow: hidden; padding: clamp(55px, 9vw, 145px); background: radial-gradient(circle at 80% 18%, rgba(255,113,135,.24), transparent 29%), radial-gradient(circle at 15% 85%, rgba(169,154,255,.15), transparent 30%), linear-gradient(145deg, #151c2b, #202a40); }
.cover::before { content: ""; position: absolute; inset: 0; opacity: .14; background-image: linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(to right, black, transparent 75%); }
.cover-copy { position: relative; z-index: 1; max-width: 720px; }
.cover h1 { margin: 28px 0 22px; font-size: clamp(48px, 6.2vw, 92px); line-height: .97; letter-spacing: -.065em; }
.cover em { color: var(--accent-light); font-family: Georgia, serif; font-weight: 400; }
.cover p { max-width: 520px; color: #c2cada; font-size: clamp(15px, 1.4vw, 19px); }
.tag { display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 99px; color: #dce2ee; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.note { position: absolute; right: 3%; bottom: -12%; color: var(--lilac); font-family: Georgia, serif; font-size: min(28vw, 410px); opacity: .075; transform: rotate(-8deg); }
.sound-wave { display: flex; align-items: center; gap: 6px; height: 38px; margin-top: 35px; }
.sound-wave i { display: block; width: 3px; border-radius: 9px; background: linear-gradient(var(--accent), var(--lilac)); }
.sound-wave i:nth-child(1), .sound-wave i:nth-child(9) { height: 8px; }
.sound-wave i:nth-child(2), .sound-wave i:nth-child(8) { height: 16px; }
.sound-wave i:nth-child(3), .sound-wave i:nth-child(7) { height: 27px; }
.sound-wave i:nth-child(4), .sound-wave i:nth-child(6) { height: 18px; }
.sound-wave i:nth-child(5) { height: 36px; }
.login-panel { display: grid; place-items: center; padding: clamp(28px, 5vw, 72px); background: var(--ink); }
.login-card { width: min(420px, 100%); display: grid; gap: 17px; }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.login-brand img { width: 62px; height: 62px; border: 2px solid rgba(255,113,135,.4); border-radius: 50%; }
.login-card h2 { margin: -5px 0 0; font-size: 42px; line-height: 1; letter-spacing: -.045em; }
.form-intro { margin: -8px 0 8px; color: var(--muted); }
.login-card .primary { width: 100%; margin-top: 5px; display: flex; justify-content: space-between; align-items: center; }
.login-card .primary span { font-size: 20px; }
.secure { color: #7e899e; text-align: center; font-size: 10px; }
.secure::first-letter { color: var(--success); }

@media (max-width: 1050px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .login-grid { grid-template-columns: 1fr 430px; }
  .cover { padding: 55px; }
  .plan-row{grid-template-columns:1fr 1fr 1fr}.plan-row .description{grid-column:span 2}
  .billing-setup{grid-template-columns:1fr}.compact-form{grid-template-columns:1fr 1fr}
  .agenda-row{grid-template-columns:75px 1fr auto 1fr}.room-assignment{grid-column:1/-1}.next-class{grid-template-columns:auto 1fr}.next-class-details{grid-column:1/-1}
}
@media (max-width: 820px) {
  body.menu-open { overflow: hidden; }
  .shell { display: block; }
  aside { position: fixed; left: -300px; width: 282px; box-shadow: 18px 0 55px rgba(0,0,0,.34); transition: left .22s ease; }
  aside.open { left: 0; }
  .scrim { position: fixed; inset: 0; z-index: 15; border: 0; background: rgba(3,6,12,.68); backdrop-filter: blur(3px); }
  body.menu-open .scrim { display: block; }
  .menu { display: grid; place-items: center; flex: 0 0 auto; }
  .shell > main { padding: 24px 18px 48px; }
  .header-note { display: none; }
  .wide { grid-column: auto; }
  .login-grid { grid-template-columns: 1fr; }
  .cover { min-height: 38vh; padding: 44px 28px; }
  .cover h1 { margin: 20px 0 14px; font-size: clamp(43px, 11vw, 66px); }
  .sound-wave { display: none; }
  .login-panel { min-height: 62vh; padding: 38px 24px 55px; }
  .login-brand { margin-bottom: 7px; }
  .credentials { grid-template-columns:1fr; }
  .result-columns{grid-template-columns:1fr}.plan-form{grid-template-columns:1fr 1fr}
  .payment-inline{grid-template-columns:1fr 1fr;min-width:320px}
  .reverse-payment{grid-template-columns:1fr;min-width:230px}
}
@media (max-width: 540px) {
  .cards, .form-grid { grid-template-columns: 1fr; }
  .hero { min-height: 230px; border-radius: 22px; }
  .hero > b { display: none; }
  .panel { border-radius: 20px; }
  .panel-head { align-items: flex-start; flex-direction: column; }
  .panel-head input { width: 100%; }
  header { margin-bottom: 20px; }
  h1 { font-size: 31px; }
  .cover { min-height: 34vh; }
  .cover p { margin-bottom: 0; }
  .login-card h2 { font-size: 36px; }
  .plan-row,.plan-form{grid-template-columns:1fr}.plan-row .description{grid-column:auto}
  .compact-form{grid-template-columns:1fr}
  .people-tools{width:100%}.people-tools input{flex:1}.import-form{grid-template-columns:1fr}.person-actions{align-items:stretch;flex-direction:column}
  .agenda-row{grid-template-columns:65px 1fr}.agenda-arrow{display:none}.agenda-person:nth-of-type(2){grid-column:2}.room-assignment{grid-template-columns:1fr}.next-class{grid-template-columns:1fr}.next-class-note{width:58px;height:58px}.next-class-details{grid-template-columns:1fr}
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
