:root {
  --ink: #10283f;
  --ink-2: #173a59;
  --muted: #65778a;
  --paper: #f7f4ed;
  --surface: #fffdf9;
  --line: #dbe3e8;
  --blue: #0879b9;
  --orange: #f26722;
  --green: #11945a;
  --red: #d94645;
  --yellow: #f6c453;
  --shadow: 0 18px 48px rgba(16, 40, 63, .1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }

.boot-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  color: var(--muted);
  font-weight: 800;
}
.boot-screen img { width: 110px; height: 70px; object-fit: contain; }

.app-header {
  min-height: 74px;
  padding: 10px clamp(18px, 4vw, 54px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(16, 40, 63, .1);
  background: rgba(255, 253, 249, .94);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand img { width: 62px; height: 44px; object-fit: contain; }
.brand span { display: flex; flex-direction: column; }
.brand strong { font-size: 15px; }
.brand small { color: var(--muted); font-size: 10px; }
.header-nav { display: flex; align-items: center; gap: 8px; }
.user-chip {
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 999px;
  background: #edf4f7;
  font-size: 11px;
  font-weight: 800;
}
.avatar {
  width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: 50%; background: var(--ink); color: white;
}

.page { width: min(1240px, calc(100% - 36px)); margin: 0 auto; padding: 38px 0 80px; }
.page-heading { margin-bottom: 26px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.page-heading h1 { margin: 7px 0 4px; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.045em; }
.page-heading p { margin: 0; color: var(--muted); }
.eyebrow { color: var(--orange); font-size: 10px; font-weight: 800; letter-spacing: .13em; }

.button {
  min-height: 44px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: var(--orange);
  color: white;
  font-weight: 800;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { transform: translateY(-1px); }
.button.secondary { background: white; border-color: #bfcfda; color: var(--ink); }
.button.ghost { background: transparent; color: var(--blue); }
.button.dark { background: var(--ink); }
.button.small { min-height: 36px; padding: 7px 11px; font-size: 10px; }
.button.full { width: 100%; }
.button:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.landing-hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .8fr);
  align-items: center;
  gap: clamp(40px, 7vw, 90px);
}
.landing-copy h1 { margin: 13px 0 20px; max-width: 750px; font-size: clamp(43px, 6vw, 76px); line-height: 1.02; letter-spacing: -.06em; }
.landing-copy > p { max-width: 690px; color: var(--muted); font-size: 18px; line-height: 1.75; }
.landing-actions { margin: 26px 0 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.trust-line { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 11px; }
.trust-line span::before { content: "•"; margin-right: 7px; color: var(--orange); }
.pilot-overview { padding: 56px 0 40px; border-top: 1px solid var(--line); }
.pilot-overview-heading { max-width: 750px; }
.pilot-overview h2 { margin: 9px 0; font-size: clamp(30px, 4vw, 45px); letter-spacing: -.045em; }
.pilot-overview-heading p, .pilot-scope { color: var(--muted); line-height: 1.65; }
.pilot-role-grid { margin-top: 25px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pilot-role { min-height: 230px; padding: 25px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 10px 30px rgba(16,40,63,.05); }
.pilot-role-number { color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.pilot-role h3 { margin: 14px 0 7px; font-size: 23px; letter-spacing: -.03em; }
.pilot-role p { color: var(--muted); line-height: 1.65; }
.pilot-role a { color: var(--blue); font-weight: 800; text-decoration: none; }
.pilot-scope { margin: 18px 0 0; font-size: 13px; }
.auth-card {
  padding: 26px;
  border: 1px solid rgba(16, 40, 63, .12);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.auth-card h2 { margin: 6px 0 5px; font-size: 28px; letter-spacing: -.035em; }
.auth-card > p { color: var(--muted); font-size: 12px; line-height: 1.55; }
.auth-tabs { margin: 18px 0; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: #edf2f5; }
.auth-tabs button { min-height: 38px; border: 0; border-radius: 9px; background: transparent; font-weight: 800; cursor: pointer; }
.auth-tabs button.active { background: white; box-shadow: 0 5px 14px rgba(16,40,63,.08); }
.form-grid { display: grid; gap: 12px; }
.form-note { margin: 0; padding: 11px 12px; border-radius: 10px; background: #eff7fb; color: var(--muted); font-size: 10px; line-height: 1.55; }
.form-note a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.field-hint { margin: -8px 0 0; color: var(--muted); font-size: 10px; }
.form-error { margin: 0; padding: 11px 12px; border: 1px solid #e6b5b5; border-radius: 10px; background: #fff2f2; color: var(--red); font-size: 11px; font-weight: 800; line-height: 1.5; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
label { display: grid; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 800; }
input, select, textarea {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #c7d4dd;
  border-radius: 10px;
  background: white;
  color: var(--ink);
  outline: none;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8,121,185,.1); }
.pilot-teacher-card { padding: 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 310px); gap: 24px; border: 1px solid #c7dee9; border-radius: 22px; background: linear-gradient(125deg, #eef8fc, #fffdf9 72%); }
.pilot-teacher-card h2 { margin: 8px 0; font-size: 28px; letter-spacing: -.035em; }
.pilot-teacher-card p { color: var(--muted); line-height: 1.6; }
.pilot-steps { display: flex; flex-wrap: wrap; gap: 11px 18px; margin: 18px 0; }
.pilot-steps span { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; }
.pilot-steps b { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: white; font-size: 11px; }
.pilot-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pilot-account-note { padding: 18px; border-radius: 16px; background: var(--ink); color: white; overflow-wrap: anywhere; }
.pilot-account-note strong, .pilot-account-note span, .pilot-account-note code, .pilot-account-note small { display: block; }
.pilot-account-note strong { font-size: 16px; }
.pilot-account-note p, .pilot-account-note small { color: #c8d8e1; line-height: 1.55; }
.pilot-account-note span { margin-top: 13px; color: #a9cfe3; font-size: 11px; }
.pilot-account-note code { margin-top: 3px; padding: 8px; border-radius: 8px; background: rgba(255,255,255,.1); font-size: 12px; user-select: all; }
.pilot-account-note .button { margin-top: 7px; }
.pilot-account-note small { margin-top: 12px; }
.pilot-feedback summary { cursor: pointer; font-size: 17px; font-weight: 800; }
.pilot-feedback > p { color: var(--muted); line-height: 1.6; }
.pilot-feedback form { max-width: 760px; }
.pilot-student-note { padding: 20px 23px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid #c7dee9; border-radius: 17px; background: #eef8fc; }
.pilot-student-note h2 { margin: 6px 0; font-size: 21px; }
.pilot-student-note p { margin: 0; max-width: 780px; color: var(--muted); line-height: 1.55; }
.pilot-student-note .button { flex: 0 0 auto; }
.demo-box { margin-top: 17px; padding: 13px; border-radius: 12px; background: #eff7fb; }
.demo-box strong, .demo-box small { display: block; }
.demo-box strong { font-size: 11px; }
.demo-box small { margin: 4px 0 10px; color: var(--muted); font-size: 9px; }
.demo-actions { display: flex; gap: 7px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.metric-card, .panel, .class-card, .module-card {
  border: 1px solid rgba(16, 40, 63, .11);
  border-radius: 17px;
  background: var(--surface);
}
.metric-card { padding: 18px; }
.metric-card span { display: block; color: var(--muted); font-size: 10px; font-weight: 700; }
.metric-card strong { display: block; margin-top: 7px; font-size: 29px; letter-spacing: -.04em; }
.metric-card small { color: var(--muted); font-size: 9px; }

.section { margin-top: 28px; }
.two-column { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 18px; align-items: start; }
.section-head { margin-bottom: 13px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.section-head h2 { margin: 0; font-size: 21px; letter-spacing: -.025em; }
.section-head p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.class-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.class-card { padding: 20px; text-decoration: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.class-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.class-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.class-card h3 { margin: 4px 0; font-size: 18px; }
.class-card p { margin: 0; color: var(--muted); font-size: 10px; }
.count-badge { padding: 6px 8px; border-radius: 999px; background: #eaf5fb; color: var(--blue); font-size: 9px; font-weight: 800; white-space: nowrap; }
.percent-pair { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.percent-pair div { padding: 10px; border-radius: 10px; background: #f0f4f6; }
.percent-pair span, .percent-pair strong { display: block; }
.percent-pair span { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.percent-pair strong { margin-top: 3px; font-size: 17px; }

.panel { padding: 20px; }
.create-panel { margin-top: 20px; }
.create-panel summary { cursor: pointer; font-size: 13px; font-weight: 800; }
.create-panel form { margin-top: 18px; }

.back-link { display: inline-flex; margin-bottom: 14px; color: var(--blue); font-size: 11px; font-weight: 800; text-decoration: none; }
.class-banner {
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  border-radius: 20px;
  background: var(--ink);
  color: white;
}
.class-banner h1 { margin: 6px 0 5px; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.04em; }
.class-banner p { margin: 0; color: #c5d3dd; font-size: 11px; }
.invite-box { min-width: 250px; padding: 15px; border-radius: 14px; background: white; color: var(--ink); text-align: center; }
.invite-box span, .invite-box strong { display: block; }
.invite-box span { color: var(--muted); font-size: 9px; }
.invite-box strong { margin: 5px 0 9px; font-size: 22px; letter-spacing: .06em; }
.invite-box small { display: block; color: var(--muted); font-size: 10px; line-height: 1.5; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 16px; border-bottom: 1px solid #edf1f3; text-align: left; font-size: 11px; }
th { color: var(--muted); background: #f4f7f8; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
tbody tr:last-child td { border-bottom: 0; }
.student-link { color: var(--blue); font-weight: 800; text-decoration: none; }
.percent { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.mini-track { width: 90px; height: 5px; margin-top: 4px; overflow: hidden; border-radius: 999px; background: #e6edf1; }
.mini-track i { display: block; height: 100%; background: var(--blue); }
.mini-track.success i { background: var(--green); }
.empty-state { padding: 38px; text-align: center; color: var(--muted); }
.empty-state strong { display: block; margin-bottom: 6px; color: var(--ink); }

.dashboard-banner {
  padding: 25px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: center;
  gap: 25px;
  border-radius: 22px;
  background: linear-gradient(135deg, #10283f, #184b70);
  color: white;
}
.dashboard-banner h1 { margin: 7px 0; font-size: clamp(28px, 4vw, 46px); letter-spacing: -.045em; }
.dashboard-banner p { margin: 0; color: #c9d7e0; font-size: 11px; }
.dashboard-percents { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dashboard-percents div { padding: 15px; border-radius: 14px; background: rgba(255,255,255,.11); }
.dashboard-percents span, .dashboard-percents strong { display: block; }
.dashboard-percents span { color: #c9d7e0; font-size: 8px; text-transform: uppercase; }
.dashboard-percents strong { margin-top: 4px; font-size: 28px; }

.assignment-list { display: grid; gap: 9px; }
.assignment-item { padding: 14px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.assignment-item strong, .assignment-item small { display: block; }
.assignment-item strong { font-size: 12px; }
.assignment-item small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.module-list { display: grid; gap: 12px; }
.module-card { overflow: hidden; }
.module-card summary { padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; font-size: 13px; font-weight: 800; }
.module-card summary span { color: var(--muted); font-size: 9px; }
.topic-list { border-top: 1px solid var(--line); }
.topic-row { padding: 12px 18px; display: grid; grid-template-columns: minmax(0, 1fr) 92px 92px; align-items: center; gap: 12px; border-bottom: 1px solid #edf1f3; }
.topic-row:last-child { border-bottom: 0; }
.topic-row strong { font-size: 11px; }
.topic-row small { color: var(--muted); font-size: 9px; }
.access-row { grid-template-columns: minmax(0, 1fr) 72px 90px; }
.lock-state { justify-self: start; padding: 6px 9px; border-radius: 999px; background: #eef1f3; color: var(--muted); font-size: 9px; font-weight: 800; }
.lock-state.open { background: #eaf7f0; color: var(--green); }
.locked-topic { color: #81909c; background: #f5f6f6; }
.locked-action { border-color: #d8dde1; background: #f2f4f5; }
.practice-link { display: inline-flex; margin-top: 6px; color: var(--blue); font-size: 9px; font-weight: 800; text-decoration: none; }
.practice-link:hover { text-decoration: underline; }

.practice-form { display: grid; gap: 15px; }
.question-card { margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.question-card legend { width: 100%; padding: 0 0 13px; display: flex; align-items: flex-start; gap: 11px; font-size: 13px; font-weight: 800; line-height: 1.5; }
.question-card legend > span { flex: 0 0 27px; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: white; font-size: 10px; }
.choice-list { display: grid; gap: 8px; }
.choice-option { display: block; cursor: pointer; }
.choice-option input { position: absolute; opacity: 0; pointer-events: none; }
.choice-option > span { min-height: 45px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; border: 1px solid #d7e0e5; border-radius: 10px; background: white; color: var(--ink); font-size: 11px; font-weight: 600; }
.choice-option b { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 25px; border-radius: 7px; background: #edf3f6; color: var(--blue); }
.choice-option input:checked + span { border-color: var(--blue); background: #eef8fd; box-shadow: 0 0 0 2px rgba(8,121,185,.1); }
.practice-submit { justify-self: end; min-width: 210px; }
.practice-result { margin-bottom: 22px; padding: 27px; border-radius: 20px; background: var(--ink); color: white; }
.practice-result h1 { margin: 8px 0; font-size: 58px; letter-spacing: -.06em; }
.practice-result p { color: #c9d7e0; }
.answer-review { padding: 17px; border: 1px solid var(--line); border-left: 5px solid var(--green); border-radius: 13px; background: white; }
.answer-review.wrong { border-left-color: var(--red); }
.answer-review > span { color: var(--green); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.answer-review.wrong > span { color: var(--red); }
.answer-review h3 { margin: 6px 0 10px; font-size: 13px; }
.answer-review p { margin: 4px 0; color: var(--muted); font-size: 10px; }
.answer-review small { display: block; margin-top: 9px; color: var(--ink); line-height: 1.55; }

.attempt-grid { display: grid; gap: 12px; }
.attempt-card { padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.attempt-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.attempt-head h3 { margin: 4px 0; font-size: 14px; }
.attempt-head p { margin: 0; color: var(--muted); font-size: 9px; }
.score-chip { padding: 7px 9px; border-radius: 999px; background: #eaf7f0; color: var(--green); font-size: 10px; font-weight: 800; }
.answer-list { margin-top: 13px; display: grid; gap: 8px; }
.answer-item { padding: 11px; border-left: 4px solid var(--green); border-radius: 8px; background: #f4faf7; }
.answer-item.wrong { border-left-color: var(--red); background: #fff5f5; }
.answer-item strong { display: block; margin-bottom: 5px; font-size: 10px; }
.answer-item p { margin: 3px 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.answer-item p b { color: var(--ink); }

.join-panel { margin-bottom: 20px; padding: 17px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-radius: 15px; background: #edf7fc; border: 1px solid #c3dfed; }
.join-panel strong, .join-panel small { display: block; }
.join-panel small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.join-form { display: flex; gap: 8px; }
.join-form input { width: 150px; min-width: 0; text-transform: uppercase; }
.action-strip { padding: 17px 19px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid #c3dfed; border-radius: 15px; background: #edf7fc; }
.action-strip strong, .action-strip small { display: block; }
.action-strip small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.book-resource { padding: 18px 22px; display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 18px; overflow: hidden; border: 1px solid #e7c7b4; border-radius: 17px; background: linear-gradient(120deg, #fff8f1, #fffdf9); }
.book-resource img { width: 70px; height: 92px; object-fit: cover; object-position: top; border-radius: 6px; box-shadow: 0 9px 24px rgba(16,40,63,.14); }
.book-resource h2 { margin: 4px 0; font-size: 18px; }
.book-resource p { margin: 0; max-width: 690px; color: var(--muted); font-size: 10px; line-height: 1.55; }

.toast { position: fixed; right: 18px; bottom: 18px; z-index: 50; max-width: 360px; padding: 13px 16px; border-radius: 11px; background: var(--ink); color: white; box-shadow: var(--shadow); font-size: 11px; font-weight: 700; }
.toast.error { background: var(--red); }

.account-profile { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.account-profile h2 { margin: 7px 0 2px; font-size: 24px; }
.account-profile p { margin: 0; color: var(--muted); }
.danger-zone { margin-top: 22px; border-color: #edc7c7; background: #fffafa; }
.danger-zone .form-grid { max-width: 620px; }
.button.danger { background: var(--red); }
.confirm-check { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; }
.confirm-check input { width: 18px; height: 18px; margin-top: 1px; }

.native-network-banner { position: fixed; inset: 0 0 auto; z-index: 100; padding: calc(8px + env(safe-area-inset-top)) 16px 8px; background: #9b2c2c; color: white; text-align: center; font-size: 12px; font-weight: 800; }
html[data-native="true"] .app-header { padding-top: calc(10px + env(safe-area-inset-top)); }
html[data-native="true"] body { overscroll-behavior-y: none; }
.app-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; padding: 6px 16px calc(22px + env(safe-area-inset-bottom)); font-size: 13px; }
.app-legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* Okunabilirlik ve klavye erişimi */
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid rgba(8, 121, 185, .35);
  outline-offset: 3px;
}
.brand small, .auth-card > p, .metric-card small, .class-card p,
.section-head p, .class-banner p, .dashboard-banner p,
.assignment-item strong, .assignment-item small, .topic-row strong,
.topic-row small, .choice-option > span, .answer-review p,
.answer-review small, .attempt-head p, .answer-item strong,
.answer-item p, .join-panel small, .action-strip small, .book-resource p {
  font-size: 12px;
}
.form-note, .field-hint { font-size: 12px; }
label, .metric-card span, .eyebrow, .count-badge, .lock-state,
.practice-link, .score-chip, .answer-review > span {
  font-size: 11px;
}
th, td { font-size: 12px; }
th { font-size: 10px; }
.button { transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; }
.button:hover { box-shadow: 0 8px 20px rgba(16, 40, 63, .13); }
.button:active { transform: translateY(0); }

@media (max-width: 960px) {
  .landing-hero { grid-template-columns: 1fr; padding: 50px 0; }
  .pilot-teacher-card { grid-template-columns: 1fr; }
  .auth-card { max-width: 620px; }
  .class-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-column { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .app-header { min-height: 64px; padding: 8px 12px; }
  .brand { gap: 7px; }
  .brand img { width: 44px; height: 38px; }
  .brand strong { font-size: 11px; }
  .brand small { display: none; }
  .user-chip > span { display: none; }
  .header-nav { gap: 5px; }
  .header-nav .button { padding: 8px 9px; font-size: 10px; }
  .page { width: min(100% - 24px, 1240px); padding-top: 24px; }
  .landing-copy h1 { font-size: 39px; }
  .landing-copy > p { font-size: 15px; }
  .pilot-overview { padding-top: 36px; }
  .pilot-role-grid { grid-template-columns: 1fr; }
  .pilot-role { min-height: auto; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .class-grid, .metric-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .class-banner, .dashboard-banner { grid-template-columns: 1fr; }
  .invite-box { min-width: 0; }
  .join-panel { align-items: stretch; flex-direction: column; }
  .action-strip { align-items: stretch; flex-direction: column; }
  .pilot-student-note { align-items: stretch; flex-direction: column; }
  .book-resource { grid-template-columns: 62px 1fr; padding: 15px; }
  .book-resource img { width: 58px; height: 78px; }
  .book-resource .button { grid-column: 1 / -1; }
  .join-form input { width: 100%; }
  .join-form .button { flex: 0 0 auto; }
  .topic-row { grid-template-columns: 1fr 70px 70px; padding: 11px; }
  th, td { padding: 12px 10px; }
  .hide-mobile { display: none; }
  .practice-submit { width: 100%; }
  .toast { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); left: 12px; max-width: none; }
  .account-profile { align-items: stretch; flex-direction: column; }
}

@media (max-width: 360px) {
  .app-header { flex-wrap: wrap; gap: 2px 8px; }
  .header-nav { width: 100%; justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
