/* Inner pages, 2026-11-03. Presentation only; native states and actions remain authoritative. */
body[data-ui-page=mobile] :is(#lesson-screen,#lead-detail-screen,#students-screen,#student-detail-screen,#modal),
body[data-ui-page=education].edu-timetable-page {
  --iv-ink:#1d1d1f;
  --iv-muted:#6e6e73;
  --iv-blue:#0066cc;
  --iv-primary:#0071e3;
  --iv-surface:#f5f5f7;
  --iv-soft:#eaf2fc;
  --iv-line:#e5e5e7;
  color:var(--iv-ink);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  font-size:15px;
  line-height:1.6;
}

/* One type scale across lesson work, admissions and the student record. */
body[data-ui-page=mobile] :is(#lesson-screen,#lead-detail-screen,#students-screen,#student-detail-screen) h1 {
  margin:0 0 12px!important;font-size:26px!important;line-height:1.3!important;font-weight:700!important;letter-spacing:-.025em;
}
body[data-ui-page=mobile] :is(#lesson-screen,#lead-detail-screen,#students-screen,#student-detail-screen) h2 {
  font-size:18px!important;line-height:1.4!important;font-weight:600!important;letter-spacing:-.015em;color:var(--iv-ink)!important;
}
body[data-ui-page=mobile] :is(#lesson-screen,#lead-detail-screen,#students-screen,#student-detail-screen) h3 {
  font-size:16px!important;line-height:1.5!important;font-weight:600!important;letter-spacing:0;
}
body[data-ui-page=mobile] :is(#lesson-screen,#lead-detail-screen,#students-screen,#student-detail-screen) :is(.minor,.hint,.small,.stage-help,.rotation-help) {
  font-size:13px!important;line-height:1.7!important;
}
body[data-ui-page=mobile] :is(#lesson-screen,#lead-detail-screen,#students-screen,#student-detail-screen) :is(.minor,.hint,.stage-help) {
  color:var(--iv-muted)!important;
}
body[data-ui-page=mobile] :is(#lesson-screen,#lead-detail-screen,#students-screen,#student-detail-screen) .section-heading {
  align-items:baseline!important;gap:6px 16px!important;margin:0 0 16px!important;
}
body[data-ui-page=mobile] :is(#lesson-screen,#lead-detail-screen,#students-screen,#student-detail-screen) .section-heading h2 {margin:0!important}
body[data-ui-page=mobile] :is(#lesson-screen,#lead-detail-screen,#students-screen,#student-detail-screen) .back-link {
  min-height:44px!important;margin:0 0 8px!important;padding:8px 0!important;font-size:14px!important;font-weight:400!important;color:var(--iv-blue)!important;
}
body[data-ui-page=mobile] :is(#lesson-screen,#lead-detail-screen,#students-screen,#student-detail-screen,#modal) :is(button,a,input,select,textarea,summary):focus-visible,
body[data-ui-page=education].edu-timetable-page :is(button,a,input,select,textarea,summary):focus-visible {
  outline:2px solid #0066cc;outline-offset:3px;
}

/* Primary confirms; secondary tools stay visually quiet. Destructive and disabled states keep their native cues. */
body[data-ui-page=mobile] :is(#lesson-screen,#lead-detail-screen,#students-screen,#student-detail-screen) :is(.btn,.mini-action,.training-empty-action,.compact-primary) {
  min-height:44px!important;max-width:100%;padding:10px 18px!important;border-radius:980px!important;font-size:15px!important;line-height:1.5!important;box-shadow:none!important;
}
body[data-ui-page=mobile] :is(#lesson-screen,#lead-detail-screen,#students-screen,#student-detail-screen) :is(.btn-primary,.compact-primary) {
  border-color:transparent!important;background:var(--iv-primary)!important;color:#fff!important;font-weight:500!important;
}
body[data-ui-page=mobile] :is(#lesson-screen,#lead-detail-screen,#students-screen,#student-detail-screen) :is(.btn-secondary,.mini-action,.training-empty-action):not(.danger) {
  border-color:transparent!important;background:var(--iv-soft)!important;color:var(--iv-blue)!important;font-weight:400!important;
}
body[data-ui-page=mobile] :is(#lesson-screen,#lead-detail-screen,#students-screen,#student-detail-screen) :is(.btn,.mini-action,.training-empty-action).danger {
  border-color:transparent!important;background:#fff0ef!important;color:#b42318!important;
}
body[data-ui-page=mobile] :is(#lesson-screen,#students-screen,#modal) label {
  font-size:13px!important;line-height:1.6!important;color:var(--iv-muted);margin:0;
}
body[data-ui-page=mobile] :is(#lesson-screen,#students-screen,#modal) :is(input:not([type=checkbox]):not([type=radio]),select,textarea) {
  min-width:0;max-width:100%;min-height:46px!important;padding:11px 12px!important;border:1px solid #d2d2d7!important;border-radius:12px!important;background:#fff!important;color:var(--iv-ink)!important;font-size:16px!important;line-height:1.5!important;box-shadow:none!important;
}
body[data-ui-page=mobile] :is(#lesson-screen,#students-screen,#modal) textarea {min-height:88px!important;resize:vertical}

/* The lesson identity is a quiet header above a single, consistent stage control. */
body[data-ui-page=mobile] #lesson-screen #lesson-header {
  padding:20px 22px!important;margin:0 0 12px!important;border:0!important;border-radius:20px!important;background:var(--iv-surface)!important;box-shadow:none!important;min-height:0!important;
}
body[data-ui-page=mobile] #lesson-screen #lesson-header h2 {
  margin:0 0 7px!important;font-size:24px!important;font-weight:700!important;line-height:1.35!important;letter-spacing:-.025em;
}
body[data-ui-page=mobile] #lesson-screen #lesson-header p {margin:0!important;font-size:13px!important;line-height:1.65!important;color:var(--iv-muted)!important}
body[data-ui-page=mobile] #lesson-screen .lesson-match-entry {
  padding:4px 0!important;margin:0 0 16px!important;border:0!important;border-radius:0!important;background:transparent!important;gap:12px!important;
}
body[data-ui-page=mobile] #lesson-screen .lesson-match-entry h2 {font-size:14px!important;font-weight:500!important;color:var(--iv-muted)!important}
body[data-ui-page=mobile] #lesson-screen .lesson-match-entry a {font-size:14px!important;font-weight:400!important;padding:9px 14px!important;min-height:44px!important}
body[data-ui-page=mobile] #lesson-screen>.tabs {
  padding:4px!important;margin:0 0 24px!important;gap:4px!important;flex-wrap:nowrap!important;background:var(--iv-surface)!important;border:0!important;border-radius:14px!important;
}
body[data-ui-page=mobile] #lesson-screen>.tabs>button {
  flex:1 1 0;min-width:0;min-height:44px!important;padding:10px 8px!important;border:0!important;border-radius:11px!important;background:transparent!important;color:var(--iv-muted)!important;font-size:15px!important;font-weight:500!important;line-height:1.5!important;box-shadow:none!important;
}
body[data-ui-page=mobile] #lesson-screen>.tabs>button.active {
  background:#fff!important;color:var(--iv-blue)!important;box-shadow:0 1px 5px #0000000d!important;
}
body[data-ui-page=mobile] #lesson-screen .stage {min-width:0;padding:0!important}
body[data-ui-page=mobile] #lesson-screen .stage>.stage-feature {
  padding:0!important;margin:0 0 24px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
}
body[data-ui-page=mobile] #lesson-screen .stage>.section-heading {margin-top:24px!important;margin-bottom:14px!important}
body[data-ui-page=mobile] #lesson-screen .stage>.section-heading:first-child {margin-top:0!important}
body[data-ui-page=mobile] #lesson-screen :is(.info-card,.group-card,.panel.fold) {
  border:1px solid var(--iv-line)!important;border-radius:16px!important;padding:18px!important;background:#fff!important;box-shadow:none!important;
}
body[data-ui-page=mobile] #lesson-screen .info-card {margin:12px 0!important}
body[data-ui-page=mobile] #lesson-screen .info-card>h3 {margin:0 0 8px!important}
body[data-ui-page=mobile] #lesson-screen .info-card>p {font-size:15px!important;line-height:1.7!important;margin:8px 0!important}
body[data-ui-page=mobile] #lesson-screen .panel.fold {margin:20px 0!important}
body[data-ui-page=mobile] #lesson-screen .panel.fold>summary {min-height:44px!important;padding:8px 0!important;margin:0!important;font-size:15px!important;font-weight:500!important;color:var(--iv-blue)!important}
body[data-ui-page=mobile] #lesson-screen .panel.fold[open]>summary {margin-bottom:16px!important}
body[data-ui-page=mobile] #lesson-screen .empty {
  min-height:88px;padding:24px 18px!important;border:1px solid var(--iv-line)!important;border-radius:16px!important;background:var(--iv-surface)!important;font-size:14px!important;line-height:1.7!important;
}

/* Before class: attendance first, then the plan and its existing rotation editor. */
body[data-ui-page=mobile] #stage-before>.rc11-attendance-primary {
  padding:20px!important;margin:0 0 28px!important;border:1px solid var(--iv-line)!important;border-radius:20px!important;background:#fff!important;box-shadow:none!important;
}
body[data-ui-page=mobile] #attendance-metrics {gap:8px!important;margin:0 0 16px!important}
body[data-ui-page=mobile] #attendance-metrics>.metric {padding:12px 6px!important;border-radius:12px!important;background:var(--iv-surface)!important}
body[data-ui-page=mobile] #attendance-metrics>.metric.primary {background:var(--iv-soft)!important}
body[data-ui-page=mobile] #attendance-metrics>.metric strong {
  display:block;font-size:25px!important;font-weight:600!important;font-variant-numeric:tabular-nums;line-height:1.2!important;margin:0 0 6px!important;
}
body[data-ui-page=mobile] #attendance-metrics>.metric span {font-size:12px!important;line-height:1.5!important;white-space:normal!important;overflow-wrap:normal!important}
body[data-ui-page=mobile] #rc5AttendanceRoster>summary {min-height:44px!important;padding:9px 0!important;font-size:14px!important;color:var(--iv-blue)!important}
body[data-ui-page=mobile] #attendance-cards {gap:8px!important;margin:12px 0 16px!important}
body[data-ui-page=mobile] #attendance-cards>.student-tile {min-height:72px!important;padding:10px 6px!important;border-radius:12px!important;gap:5px!important}
body[data-ui-page=mobile] #attendance-cards>.student-tile>span:first-child {font-size:15px!important;font-weight:500!important;line-height:1.45!important}
body[data-ui-page=mobile] #attendance-cards>.student-tile>.tile-status {font-size:12px!important;line-height:1.4!important}
body[data-ui-page=mobile] #attendance-draft-state {padding:12px 14px!important;border-radius:12px!important;font-size:13px!important;line-height:1.7!important;margin:16px 0!important}
body[data-ui-page=mobile] #stage-before #attendance-save {margin:8px 0!important;padding:10px 20px!important;min-height:44px!important}
body[data-ui-page=mobile] #lesson-plan-form {gap:16px!important}
body[data-ui-page=mobile] #lesson-plan-form>.btn {margin:0!important;justify-self:start!important;width:auto!important}
body[data-ui-page=mobile] #lesson-rotation-editor {gap:16px;margin-top:24px}
body[data-ui-page=mobile] #lesson-rotation-editor .section-heading {margin-bottom:0!important}
body[data-ui-page=mobile] #lesson-rotation-editor .rotation-phase {border-color:var(--iv-line)!important;border-radius:18px!important}
body[data-ui-page=mobile] #lesson-rotation-editor .rotation-phase>summary {padding:16px 18px!important;background:var(--iv-surface)!important;font-size:16px!important;min-height:56px!important}
body[data-ui-page=mobile] #lesson-rotation-editor .rotation-phase>summary strong {font-weight:600!important}
body[data-ui-page=mobile] #lesson-rotation-editor .rotation-phase-body {padding:18px!important;gap:16px!important}
body[data-ui-page=mobile] #lesson-rotation-editor :is(.rotation-group,.rotation-task) {border-radius:12px!important}
body[data-ui-page=mobile] #lesson-rotation-editor .rotation-group {padding:14px!important;background:#fff!important}
body[data-ui-page=mobile] #lesson-rotation-editor button {min-height:44px!important;font-size:14px!important;line-height:1.5!important;font-weight:400!important}
body[data-ui-page=mobile] #lesson-rotation-editor .rotation-mode>button {font-weight:500!important}
body[data-ui-page=mobile] #lesson-rotation-editor label {font-size:13px!important}
body[data-ui-page=mobile] #lesson-rotation-editor .rotation-member {min-height:72px!important;padding:9px 4px!important;font-size:13px!important}
body[data-ui-page=mobile] #lesson-rotation-editor .rotation-pick-actions>button {font-size:13px!important}
body[data-ui-page=mobile] #lesson-rotation-editor .rotation-rounds>h3 {margin:4px 0 0!important;font-size:16px!important}

/* During class and after class share the same card rhythm as preparation. */
body[data-ui-page=mobile] #during-plan-overview.info-card {margin:0!important;padding:20px!important;border:0!important;border-radius:18px!important;background:var(--iv-surface)!important}
body[data-ui-page=mobile] #during-plan-overview .stage-focus-text {font-size:17px!important;line-height:1.65!important;font-weight:500!important;white-space:pre-wrap}
body[data-ui-page=mobile] #during-plan-overview .stage-help {margin-bottom:0!important}
body[data-ui-page=mobile] #lesson-rotation-during {gap:24px!important;margin:24px 0!important}
body[data-ui-page=mobile] #lesson-rotation-during .rotation-live-phase>h3 {font-size:18px!important;font-weight:600!important;margin:0 0 12px!important}
body[data-ui-page=mobile] #lesson-rotation-during .rotation-live-round {padding:18px!important;border-radius:16px!important;margin:12px 0 0!important}
body[data-ui-page=mobile] #lesson-rotation-during .rotation-live-task {padding-top:14px;margin-top:14px;font-size:15px!important;line-height:1.7!important}
body[data-ui-page=mobile] #lesson-rotation-during .rotation-position-grid {gap:10px!important}
body[data-ui-page=mobile] #lesson-rotation-during .rotation-position-grid>article {padding:14px!important;border-color:var(--iv-line)!important;border-radius:12px!important}
body[data-ui-page=mobile] #lesson-rotation-during .rotation-position-grid>article p {font-size:14px!important;line-height:1.65!important}
body[data-ui-page=mobile] #group-cards:not([hidden]) {display:grid;grid-template-columns:minmax(0,1fr);gap:16px;min-width:0}
body[data-ui-page=mobile] #group-cards>.group-card {margin:0!important;padding:20px!important}
body[data-ui-page=mobile] #group-cards .cl-group-title {align-items:baseline;gap:8px 16px;margin:0 0 12px!important}
body[data-ui-page=mobile] #group-cards .cl-group-title h3 {font-size:18px!important;font-weight:600!important;margin:0!important}
body[data-ui-page=mobile] #group-cards .cl-group-title>span {font-size:13px!important;color:var(--iv-muted)!important}
body[data-ui-page=mobile] #group-cards p {font-size:15px!important;line-height:1.7!important;margin:10px 0!important}
body[data-ui-page=mobile] #group-cards .members {display:flex;flex-wrap:wrap;gap:7px;margin-top:14px}
body[data-ui-page=mobile] #group-cards .members>span {font-size:13px!important;line-height:1.6;padding:5px 9px;border-radius:8px;background:var(--iv-surface);overflow-wrap:anywhere}
body[data-ui-page=mobile] #training-score-panel .info-card {padding:18px!important}
body[data-ui-page=mobile] #training-score-panel .mini-action {margin:8px 8px 0 0!important}
body[data-ui-page=mobile] #stage-after :is(#problem-after,#approval-list) {margin-bottom:24px}
body[data-ui-page=mobile] #summary-form {gap:16px!important}
body[data-ui-page=mobile] #summary-form>.btn {justify-self:start;width:auto!important}
body[data-ui-page=mobile] #lesson-close {margin-top:16px!important}
body[data-ui-page=mobile] #stage-after .linked-pages {display:flex;flex-wrap:wrap;gap:8px 20px;margin:16px 0}

/* Admissions detail: a human scale for the name, a clear next action, quieter records. */
body[data-ui-page=mobile] #lead-detail-content:not([hidden]) {gap:24px!important}
body[data-ui-page=mobile] #lead-detail-content>.detail-hero {grid-template-columns:48px minmax(0,1fr) auto;column-gap:14px;row-gap:4px;padding:4px 0 0!important}
body[data-ui-page=mobile] #lead-detail-content .lead-profile-avatar {width:48px!important;height:48px!important}
body[data-ui-page=mobile] #lead-detail-content>.detail-hero h1 {margin:0!important;font-size:24px!important;font-weight:600!important;line-height:1.35!important;letter-spacing:-.02em}
body[data-ui-page=mobile] #lead-detail-content>.detail-hero>p {font-size:14px!important;line-height:1.6!important}
body[data-ui-page=mobile] #lead-detail-content>.detail-hero>.record-badge {font-size:12px!important;padding:5px 9px!important;border-radius:8px!important}
body[data-ui-page=mobile] #lead-detail-content .lead-profile-facts {gap:24px;margin-top:20px;padding-top:20px;border-top-color:var(--iv-line)}
body[data-ui-page=mobile] #lead-detail-content .lead-profile-facts strong {font-size:16px!important;font-weight:600!important;line-height:1.6!important}
body[data-ui-page=mobile] #lead-detail-content .lead-profile-facts :is(small,span) {font-size:13px!important;line-height:1.65!important}
body[data-ui-page=mobile] #lead-detail-content>.lead-next-action {padding:20px!important;gap:16px 20px!important;border-radius:18px!important;background:var(--iv-surface)!important}
body[data-ui-page=mobile] #lead-detail-content>.lead-next-action h2 {font-size:17px!important;font-weight:600!important;color:var(--iv-ink)!important}
body[data-ui-page=mobile] #lead-detail-content #lead-primary {min-height:44px!important;padding:10px 20px!important;border-radius:980px!important;background:var(--iv-primary)!important;font-size:15px!important;font-weight:500!important;line-height:1.5!important}
body[data-ui-page=mobile] #lead-detail-content .detail-actions {gap:8px 20px!important;padding-top:12px!important;border-top-color:var(--iv-line)!important}
body[data-ui-page=mobile] #lead-detail-content .detail-actions>button {font-size:14px!important;min-height:44px!important}
body[data-ui-page=mobile] #lead-detail-content .lead-record-details {border-color:var(--iv-line)!important}
body[data-ui-page=mobile] #lead-detail-content .lead-record-details>summary {min-height:56px!important;padding:14px 0!important;gap:6px 16px}
body[data-ui-page=mobile] #lead-detail-content .lead-record-details>summary>strong {font-size:17px!important;font-weight:600!important;color:var(--iv-ink)!important}
body[data-ui-page=mobile] #lead-detail-content .lead-record-body {gap:24px!important;padding-bottom:20px!important}
body[data-ui-page=mobile] #lead-detail-content .lead-record-body h2 {font-size:16px!important;font-weight:600!important}
body[data-ui-page=mobile] #lead-detail-content :is(.detail-line,.dash-subtext,.timeline-row>p) {font-size:15px!important;line-height:1.7!important}
body[data-ui-page=mobile] #lead-detail-content .timeline-row>b {font-size:15px!important;font-weight:600!important}

/* The directory and dossier use the same identity and section scale. */
body[data-ui-page=mobile] #students-screen>.hero {padding:4px 0 20px!important;align-items:center!important}
body[data-ui-page=mobile] #students-screen>.hero h1 {font-size:26px!important;font-weight:700!important;line-height:1.3!important;margin:0!important}
body[data-ui-page=mobile] #students-screen .search-bar {gap:10px!important;margin:0 0 12px!important}
body[data-ui-page=mobile] #students-screen #student-query {min-height:46px!important;border-radius:12px!important;font-size:16px!important}
body[data-ui-page=mobile] #students-screen #student-search {min-height:46px!important;border-radius:980px!important;font-size:15px!important;padding:10px 20px!important}
body[data-ui-page=mobile] #students-screen>.ui-filters {margin:0 0 16px!important;border-radius:0!important}
body[data-ui-page=mobile] #students-screen>.ui-filters>summary {font-size:14px!important;font-weight:400!important;min-height:44px!important}
body[data-ui-page=mobile] #students-screen>.ui-filters[open]:not([hidden]) {display:flex!important;flex-wrap:wrap;gap:14px 16px!important;padding-bottom:20px!important;border-bottom:1px solid var(--iv-line)!important}
body[data-ui-page=mobile] #students-screen>.ui-filters>label {flex:1 1 180px;min-width:0}
body[data-ui-page=mobile] #students-screen>.ui-filters>summary {flex-basis:100%}
body[data-ui-page=mobile] #students-screen>.dash-card {padding:0!important;margin:28px 0 0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
body[data-ui-page=mobile] #students-screen .dash-card-top {margin:0 0 12px!important;align-items:baseline!important;gap:12px!important}
body[data-ui-page=mobile] #students-screen .dash-card-top h2 {font-size:18px!important;font-weight:600!important}
body[data-ui-page=mobile] #students-screen .record-name {font-size:17px!important;font-weight:500!important;line-height:1.5!important}
body[data-ui-page=mobile] #students-screen .record-note {font-size:13px!important;line-height:1.65!important}
body[data-ui-page=mobile] #student-detail-content {min-width:0}
body[data-ui-page=mobile] #student-detail-content .cl-profile-identity {align-items:center;gap:16px;margin:4px 0 20px!important}
body[data-ui-page=mobile] #student-detail-content .student-detail-avatar {width:56px!important;height:56px!important;border-radius:50%}
body[data-ui-page=mobile] #student-detail-content .cl-profile-identity h1 {font-size:24px!important;font-weight:600!important;line-height:1.35!important;margin:4px 0!important}
body[data-ui-page=mobile] #student-detail-content .cl-profile-identity p {font-size:13px!important;line-height:1.6!important;margin:0!important;color:var(--iv-muted)!important}
body[data-ui-page=mobile] #student-detail-content .ui-shortcuts {gap:8px 12px!important;margin:0 0 24px!important}
body[data-ui-page=mobile] #student-detail-content .ui-shortcuts>a {min-height:44px;padding:10px 14px!important;border:0!important;border-radius:980px!important;background:var(--iv-soft)!important;color:var(--iv-blue)!important;font-size:14px!important;line-height:1.6!important}
body[data-ui-page=mobile] #student-detail-content .cl-growth-brief {padding:20px!important;margin:0 0 4px!important;border:0!important;border-radius:18px!important;background:var(--iv-surface)!important}
body[data-ui-page=mobile] #student-detail-content .cl-growth-eyebrow {font-size:13px!important;color:var(--iv-muted)!important}
body[data-ui-page=mobile] #student-detail-content .cl-growth-brief strong {font-size:26px!important;line-height:1.4!important;font-weight:600!important;font-variant-numeric:tabular-nums;margin-top:6px}
body[data-ui-page=mobile] #student-detail-content .cl-growth-brief strong small {font-size:14px!important;font-weight:400!important;color:var(--iv-muted)!important}
body[data-ui-page=mobile] #student-detail-content .cl-growth-brief p {font-size:13px!important;line-height:1.7!important;margin:8px 0 0!important;color:var(--iv-muted)!important}
body[data-ui-page=mobile] #student-detail-content .cl-profile-section {padding:24px 0!important;border-color:var(--iv-line)!important}
body[data-ui-page=mobile] #student-detail-content .cl-section-heading {align-items:baseline!important;gap:8px 16px;flex-wrap:wrap;margin-bottom:12px}
body[data-ui-page=mobile] #student-detail-content .cl-section-heading h2 {font-size:18px!important;font-weight:600!important;margin:0!important}
body[data-ui-page=mobile] #student-detail-content :is(.cl-section-count,.cl-stream-caption,.cl-profile-empty,.cl-profile-row-side) {font-size:13px!important;line-height:1.7!important;color:var(--iv-muted)!important}
body[data-ui-page=mobile] #student-detail-content .cl-profile-list-row {gap:12px;padding:14px 0!important;border-color:var(--iv-line)!important;font-size:15px!important;line-height:1.65!important;min-width:0}
body[data-ui-page=mobile] #student-detail-content .cl-profile-row-main {flex:1;min-width:0;overflow-wrap:anywhere}
body[data-ui-page=mobile] #student-detail-content .cl-profile-row-side {flex:none;text-align:right;max-width:45%}
body[data-ui-page=mobile] #student-detail-content .cl-stream-date {font-size:14px!important;font-weight:600!important;margin:24px 0 8px!important}
body[data-ui-page=mobile] #student-detail-content .cl-stream-item {padding:18px 0!important;border-color:var(--iv-line)!important}
body[data-ui-page=mobile] #student-detail-content .cl-stream-top {font-size:12px!important;align-items:baseline;flex-wrap:wrap;gap:6px 12px}
body[data-ui-page=mobile] #student-detail-content .cl-stream-item h4 {font-size:16px!important;font-weight:600!important;line-height:1.55!important;margin:0 0 8px!important}
body[data-ui-page=mobile] #student-detail-content .cl-stream-item>p {font-size:15px!important;line-height:1.7!important;margin:8px 0!important;white-space:pre-wrap}
body[data-ui-page=mobile] #student-detail-content .cl-stream-score {font-size:21px!important;font-weight:600!important;line-height:1.3!important;margin-left:12px;font-variant-numeric:tabular-nums}
body[data-ui-page=mobile] #student-detail-content .cl-stream-details>summary {min-height:44px!important;padding:9px 0!important;font-size:14px!important;color:var(--iv-blue)!important}
body[data-ui-page=mobile] #student-detail-content .cl-stream-details dl>div {grid-template-columns:100px minmax(0,1fr);gap:12px;font-size:14px!important;line-height:1.7!important;padding:7px 0}
body[data-ui-page=mobile] #student-detail-content>.dash-card {padding:24px 0 0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
body[data-ui-page=mobile] #student-detail-content>.dash-card>p {font-size:14px!important;line-height:1.7!important;color:var(--iv-muted)!important}

/* Existing modal form: identical title, input and action hierarchy for all inner-page tasks. */
body[data-ui-page=mobile] #modal {width:min(560px,calc(100vw - 32px))!important;max-height:calc(100dvh - 32px)!important;border:1px solid var(--iv-line)!important;border-radius:20px!important;box-shadow:0 24px 80px #0000001f!important;scroll-padding-block:76px 90px}
body[data-ui-page=mobile] #modal .modal-panel {padding:22px!important}
body[data-ui-page=mobile] #modal .modal-head {margin:-22px -22px 20px!important;padding:14px 22px!important;border-bottom-color:var(--iv-line)!important}
body[data-ui-page=mobile] #modal #modal-title {font-size:22px!important;font-weight:600!important;line-height:1.35!important;letter-spacing:-.02em}
body[data-ui-page=mobile] #modal #modal-close {width:44px!important;height:44px!important;border:0!important;border-radius:50%!important;background:var(--iv-surface)!important;color:var(--iv-muted)!important}
body[data-ui-page=mobile] #modal #modal-body>label {display:block;margin:0 0 16px!important}
body[data-ui-page=mobile] #modal #modal-body .hint {font-size:13px!important;line-height:1.7!important}
body[data-ui-page=mobile] #modal .modal-actions {gap:10px!important;margin-top:20px!important;padding-top:16px!important;border-top-color:var(--iv-line)!important}
body[data-ui-page=mobile] #modal .modal-actions>.btn {min-height:44px!important;padding:10px 20px!important;border:0!important;border-radius:980px!important;font-size:15px!important;font-weight:500!important;line-height:1.5!important;box-shadow:none!important}
body[data-ui-page=mobile] #modal #modal-submit {background:var(--iv-primary)!important;color:#fff!important}
body[data-ui-page=mobile] #modal #modal-cancel {background:var(--iv-soft)!important;color:var(--iv-blue)!important;font-weight:400!important}

/* Timetable: the same visual language, with native day/week/month layout and full rosters. */
body[data-ui-page=education].edu-timetable-page #workspace>.edu-head {margin:4px 0 20px!important;gap:12px 20px!important;align-items:center!important}
body[data-ui-page=education].edu-timetable-page #workspace .edu-head h1 {font-size:26px!important;font-weight:700!important;line-height:1.3!important;letter-spacing:-.025em}
body[data-ui-page=education].edu-timetable-page #workspace .edu-head p {font-size:13px!important;line-height:1.7!important;margin:8px 0 0!important;color:var(--iv-muted)!important}
body[data-ui-page=education].edu-timetable-page .edu-btn {min-height:44px!important;padding:10px 18px!important;font-size:15px!important;font-weight:400!important;line-height:1.5!important;border-radius:980px!important;box-shadow:none!important}
body[data-ui-page=education].edu-timetable-page .edu-btn.primary {font-weight:500!important}
body[data-ui-page=education].edu-timetable-page #workspace .edu-calendar-toolbar {margin-bottom:24px!important}
body[data-ui-page=education].edu-timetable-page #workspace .edu-calendar-controls {gap:8px!important;background:transparent!important;padding:0!important;border-radius:0!important}
body[data-ui-page=education].edu-timetable-page #workspace .edu-calendar-controls>.edu-segments {padding:4px!important;gap:4px!important;background:var(--iv-surface)!important;border-radius:14px!important}
body[data-ui-page=education].edu-timetable-page #workspace .edu-calendar-controls>.edu-segments>button {min-height:44px!important;border-radius:11px!important;font-size:14px!important;font-weight:500!important;line-height:1.5!important}
body[data-ui-page=education].edu-timetable-page #workspace .edu-calendar-secondary {margin-top:12px!important;gap:8px 20px!important}
body[data-ui-page=education].edu-timetable-page #workspace :is(.edu-calendar-scope,.edu-filter-details>summary) {font-size:13px!important;line-height:1.6!important}
body[data-ui-page=education].edu-timetable-page #workspace .edu-calendar-range {font-size:13px!important;line-height:1.6!important;margin:0 0 16px!important;color:var(--iv-muted)!important}
body[data-ui-page=education].edu-timetable-page #workspace h2 {font-size:18px!important;font-weight:600!important;line-height:1.4!important;letter-spacing:-.015em}
body[data-ui-page=education].edu-timetable-page #workspace .edu-week-mobile {gap:16px!important}
body[data-ui-page=education].edu-timetable-page #workspace .edu-week-mobile-day {border-color:var(--iv-line)!important;border-radius:18px!important}
body[data-ui-page=education].edu-timetable-page #workspace .edu-week-mobile-day>summary {min-height:52px!important;padding:14px 18px!important;background:var(--iv-surface)!important}
body[data-ui-page=education].edu-timetable-page #workspace .edu-week-mobile-day>summary strong {font-size:16px!important;font-weight:600!important}
body[data-ui-page=education].edu-timetable-page #workspace .edu-week-mobile-sessions {padding:0 18px!important}
body[data-ui-page=education].edu-timetable-page #workspace .edu-lesson-facts {min-width:0}
body[data-ui-page=education].edu-timetable-page #workspace .edu-lesson-facts time {font-size:18px!important;font-weight:600!important;line-height:1.4!important;letter-spacing:-.01em;font-variant-numeric:tabular-nums}
body[data-ui-page=education].edu-timetable-page #workspace .edu-lesson-class {font-size:16px!important;font-weight:500!important;line-height:1.6!important;margin:6px 0!important}
body[data-ui-page=education].edu-timetable-page #workspace .edu-lesson-facts small {font-size:13px!important;line-height:1.7!important;color:var(--iv-muted)!important}
body[data-ui-page=education].edu-timetable-page #workspace .edu-roster-preview {margin-top:16px}
body[data-ui-page=education].edu-timetable-page #workspace .edu-roster-names {gap:7px!important}
body[data-ui-page=education].edu-timetable-page #workspace .edu-roster-person {padding:6px 9px!important;border-radius:9px!important}
body[data-ui-page=education].edu-timetable-page #workspace .edu-roster-person b {font-size:14px!important;font-weight:500!important;line-height:1.5!important}
body[data-ui-page=education].edu-timetable-page #workspace .edu-roster-person small {font-size:11px!important;line-height:1.5!important}
body[data-ui-page=education].edu-timetable-page #workspace .edu-roster-title {font-size:12px!important;line-height:1.6!important;margin-bottom:8px!important}
body[data-ui-page=education].edu-timetable-page #workspace .edu-datalist>.edu-listrow {padding:20px 0!important;border-color:var(--iv-line)!important;gap:16px 24px!important}
body[data-ui-page=education].edu-timetable-page #workspace .edu-datalist>.edu-listrow strong {font-size:17px!important;font-weight:600!important;line-height:1.5!important}
body[data-ui-page=education].edu-timetable-page #workspace .edu-month-title {font-size:18px!important;font-weight:600!important;line-height:1.4!important;margin-bottom:16px!important}
body[data-ui-page=education].edu-timetable-page #workspace .edu-month-weekdays {font-size:12px!important;padding-bottom:10px!important;color:var(--iv-muted)!important}
body[data-ui-page=education].edu-timetable-page #workspace .edu-monthcell {border-color:var(--iv-line);border-radius:12px;padding:9px 7px;line-height:1.5}
body[data-ui-page=education].edu-timetable-page #workspace .edu-monthcell.has-lessons {background:var(--iv-soft);border-color:#cfdef2}
body[data-ui-page=education].edu-timetable-page #workspace .edu-monthcell.is-today {border-color:var(--iv-primary);box-shadow:inset 0 0 0 1px var(--iv-primary)}
body[data-ui-page=education].edu-timetable-page #workspace .edu-month-blank {background:var(--iv-surface);border-radius:12px}
body[data-ui-page=education].edu-timetable-page #eduDialog {border-radius:20px!important}
body[data-ui-page=education].edu-timetable-page #eduModalTitle {font-size:22px!important;font-weight:600!important;line-height:1.35!important;letter-spacing:-.02em}
body[data-ui-page=education].edu-timetable-page #eduModalBody label {font-size:13px!important;line-height:1.6!important;color:var(--iv-muted)}
body[data-ui-page=education].edu-timetable-page #eduModalBody :is(input:not([type=checkbox]):not([type=radio]),select,textarea) {min-height:46px!important;border:1px solid #d2d2d7!important;border-radius:12px!important;padding:11px 12px!important;font-size:16px!important;line-height:1.5!important;background:#fff!important;color:var(--iv-ink)!important}
body[data-ui-page=education].edu-timetable-page #eduModalBody :is(.hint,.edu-note,.edu-muted) {font-size:13px!important;line-height:1.7!important}

@media(min-width:900px) {
  body[data-ui-page=mobile] #group-cards:has(>.group-card+.group-card) {grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
}
@media(max-width:700px) {
  body[data-ui-page=mobile] #lead-detail-content .lead-record-body {grid-template-columns:minmax(0,1fr)!important}
  body[data-ui-page=mobile] #lesson-screen #lesson-header {padding:18px!important}
  body[data-ui-page=mobile] #stage-before>.rc11-attendance-primary {padding:18px!important}
  body[data-ui-page=mobile] #lesson-screen #lesson-header h2 {font-size:22px!important}
  body[data-ui-page=mobile] #lesson-screen .section-heading .minor {font-size:12px!important}
  body[data-ui-page=education].edu-timetable-page #workspace .edu-head h1 {font-size:24px!important}
  body[data-ui-page=education].edu-timetable-page #workspace .edu-monthcell {padding:7px 4px;border-radius:9px}
}
@media(max-width:480px) {
  body[data-ui-page=mobile] :is(#lesson-screen,#lead-detail-screen,#students-screen,#student-detail-screen) h1 {font-size:24px!important}
  body[data-ui-page=mobile] #lesson-screen #lesson-header {padding:16px 18px!important;border-radius:18px!important}
  body[data-ui-page=mobile] #stage-before>.rc11-attendance-primary {padding:16px!important;border-radius:18px!important}
  body[data-ui-page=mobile] #attendance-metrics {gap:6px!important}
  body[data-ui-page=mobile] #attendance-metrics>.metric {padding:12px 4px!important}
  body[data-ui-page=mobile] #attendance-metrics>.metric strong {font-size:24px!important}
  body[data-ui-page=mobile] #attendance-metrics>.metric span {font-size:11px!important}
  body[data-ui-page=mobile] #attendance-cards {gap:6px!important}
  body[data-ui-page=mobile] #attendance-cards>.student-tile {padding:9px 4px!important}
  body[data-ui-page=mobile] #attendance-cards>.student-tile>span:first-child {font-size:13px!important}
  body[data-ui-page=mobile] #attendance-cards>.student-tile>.tile-status {font-size:11px!important}
  body[data-ui-page=mobile] #lesson-rotation-editor .rotation-phase>summary {padding:14px 16px!important;align-items:baseline;flex-wrap:wrap;gap:4px 12px}
  body[data-ui-page=mobile] #lesson-rotation-editor .rotation-phase>summary span {text-align:left}
  body[data-ui-page=mobile] #lesson-rotation-editor .rotation-phase-body {padding:16px!important}
  body[data-ui-page=mobile] #lesson-rotation-editor .rotation-member {font-size:12px!important}
  body[data-ui-page=mobile] #lesson-rotation-during .rotation-live-round {padding:16px!important}
  body[data-ui-page=mobile] #lesson-rotation-during .rotation-position-grid {gap:8px!important}
  body[data-ui-page=mobile] #lesson-rotation-during .rotation-position-grid>article {padding:12px!important}
  body[data-ui-page=mobile] #group-cards>.group-card {padding:18px!important}
  body[data-ui-page=mobile] #lead-detail-content>.detail-hero {grid-template-columns:48px minmax(0,1fr);column-gap:12px}
  body[data-ui-page=mobile] #lead-detail-content>.detail-hero h1 {font-size:23px!important}
  body[data-ui-page=mobile] #lead-detail-content>.detail-hero>.record-badge {grid-column:2;grid-row:3;justify-self:start;margin-top:5px}
  body[data-ui-page=mobile] #lead-detail-content .lead-profile-facts {grid-template-columns:minmax(0,1fr);gap:18px}
  body[data-ui-page=mobile] #lead-detail-content>.lead-next-action {grid-template-columns:minmax(0,1fr);padding:18px!important;gap:14px!important}
  body[data-ui-page=mobile] #lead-detail-content #lead-primary {grid-column:1;grid-row:2;justify-self:start}
  body[data-ui-page=mobile] #lead-detail-content .detail-actions {grid-row:3}
  body[data-ui-page=mobile] #students-screen>.ui-filters>label {flex-basis:calc(50% - 8px)}
  body[data-ui-page=mobile] #student-detail-content .student-detail-avatar {width:48px!important;height:48px!important}
  body[data-ui-page=mobile] #student-detail-content .cl-profile-identity {gap:12px}
  body[data-ui-page=mobile] #student-detail-content .cl-stream-details dl>div {grid-template-columns:80px minmax(0,1fr);gap:10px}
  body[data-ui-page=mobile] #modal .modal-panel {padding:18px!important}
  body[data-ui-page=mobile] #modal .modal-head {margin:-18px -18px 18px!important;padding:12px 18px!important}
  body[data-ui-page=education].edu-timetable-page #workspace>.edu-head {margin-bottom:16px!important;gap:10px 12px!important;align-items:flex-start!important}
  body[data-ui-page=education].edu-timetable-page #workspace>.edu-head .edu-actions {flex-wrap:wrap;max-width:100%}
  body[data-ui-page=education].edu-timetable-page #workspace .edu-week-mobile-sessions {padding:0 16px!important}
  body[data-ui-page=education].edu-timetable-page #workspace .edu-week-mobile-day>summary {padding:14px 16px!important}
  body[data-ui-page=education].edu-timetable-page #workspace .edu-calendar-controls {gap:6px!important}
}

/* No presentation rule may reveal an inactive stage or a permission-controlled action. */
body[data-ui-page=mobile] :is(#lesson-screen,#lead-detail-screen,#students-screen,#student-detail-screen)[hidden],
body[data-ui-page=mobile] :is(#lesson-screen,#lead-detail-screen,#students-screen,#student-detail-screen,#modal) [hidden],
body[data-ui-page=education].edu-timetable-page [hidden] {display:none!important}
