/* Refined against the user's Fold screenshots. Home pages and business states are outside this scope. */
body[data-ui-page=mobile] #lesson-screen #lesson-identity-row {
 display:grid;grid-template-columns:minmax(0,1fr);align-items:center;gap:8px 20px;min-width:0;padding:18px 22px;margin:0 0 20px;border-radius:20px;background:#f5f5f7;
}
body[data-ui-page=mobile] #lesson-screen #lesson-identity-row.has-match {grid-template-columns:minmax(0,1fr) auto}
body[data-ui-page=mobile] #lesson-screen #lesson-identity-row #lesson-header {padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important}
body[data-ui-page=mobile] #lesson-screen #lesson-identity-row .lesson-match-entry {justify-self:end;min-width:0;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important}
body[data-ui-page=mobile] #lesson-screen #lesson-identity-row .lesson-match-entry :is(h2,p) {display:none!important}
body[data-ui-page=mobile] #lesson-screen #lesson-identity-row .lesson-match-entry a {min-height:44px!important;padding:10px 0!important;border:0!important;border-radius:0!important;background:transparent!important;color:#0066cc!important;font-size:14px!important;font-weight:400!important;line-height:1.6!important;text-align:left!important;box-shadow:none!important}
body[data-ui-page=mobile] #lesson-screen>.tabs {margin-bottom:24px!important}
body[data-ui-page=mobile] #lesson-screen :is(.section-heading>h2,.notebook-phase>h3,.notebook-live-phase>h3) {font-size:18px!important;font-weight:700!important;line-height:1.45!important;letter-spacing:-.015em;color:#1d1d1f!important}
body[data-ui-page=mobile] #lesson-screen .section-heading {gap:6px 16px!important;margin-bottom:14px!important}
body[data-ui-page=mobile] #lesson-screen .section-heading .minor {font-weight:400!important;color:#6e6e73!important}
body[data-ui-page=mobile] #lesson-screen #stage-before>.rc11-attendance-primary {padding:18px 20px!important;margin-bottom:24px!important}
body[data-ui-page=mobile] #lesson-screen #attendance-metrics {margin-bottom:12px!important}
body[data-ui-page=mobile] #lesson-screen #attendance-metrics>.metric.primary strong {font-weight:700!important}
body[data-ui-page=mobile] #lesson-screen #attendance-draft-state {margin:12px 0!important;padding:10px 12px!important}
body[data-ui-page=mobile] #lesson-screen .rc11-attendance-primary>.key-row {justify-content:flex-start!important;gap:8px 18px!important;margin:8px 0!important}
body[data-ui-page=mobile] #lesson-screen .rc11-attendance-primary>.hint {margin:10px 0 0!important;font-size:12px!important;line-height:1.7!important;color:#6e6e73!important}
body[data-ui-page=mobile] #lesson-screen #lesson-plan-form textarea[name=purpose] {min-height:76px!important;margin-top:6px!important}
body[data-ui-page=mobile] #lesson-screen #lesson-rotation-editor {gap:20px!important;margin-top:12px!important}
body[data-ui-page=mobile] #lesson-screen .notebook-phase>h3 {margin-bottom:10px!important}
body[data-ui-page=mobile] #lesson-screen #lesson-rotation-editor .notebook-text {min-height:112px!important;padding:12px 14px!important;font-size:16px!important;line-height:1.7!important}
body[data-ui-page=mobile] #lesson-screen .notebook-phase>.notebook-ink {margin-top:4px!important}
body[data-ui-page=mobile] #lesson-screen #lesson-plan-form>button[type=submit].btn {min-height:44px!important;padding:10px 22px!important;border:0!important;border-radius:980px!important;background:#0071e3!important;color:#fff!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 #rotation-save-hint {margin:0!important;font-size:12px!important;line-height:1.7!important}

/* Secondary tools read as disclosure rows, rather than a second set of large cards. */
body[data-ui-page=mobile] #lesson-screen :is(#diagnosis-library,#during-quick-tools,#after-summary-fold) {padding:0!important;margin:20px 0!important;border:0!important;border-top:1px solid #e5e5e7!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
body[data-ui-page=mobile] #lesson-screen :is(#diagnosis-library,#during-quick-tools,#after-summary-fold)>summary {min-height:48px!important;padding:12px 0!important;margin:0!important;font-size:14px!important;line-height:1.6!important}
body[data-ui-page=mobile] #lesson-screen :is(#diagnosis-library,#during-quick-tools,#after-summary-fold)[open]>summary {margin-bottom:12px!important}
body[data-ui-page=mobile] #lesson-screen #during-plan-overview.info-card {padding:18px 20px!important;border:0!important;border-radius:16px!important;background:#f5f5f7!important}
body[data-ui-page=mobile] #lesson-screen #during-plan-overview>h3 {font-size:15px!important;font-weight:600!important;margin-bottom:6px!important}
body[data-ui-page=mobile] #lesson-screen #during-plan-overview .stage-focus-text {font-size:16px!important;font-weight:400!important;line-height:1.7!important}

/* Empty records remain visible as quiet text; errors and existing records retain their normal treatment. */
body[data-ui-page=mobile] #lesson-screen :is(#problem-after,#approval-list)>.empty:not([role=alert]) {min-height:0!important;padding:10px 0!important;border:0!important;border-radius:0!important;background:transparent!important;text-align:left!important;font-size:14px!important;line-height:1.7!important}
body[data-ui-page=mobile] #lesson-screen #training-score-panel .empty:has(.training-empty-action):not([hidden]) {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 20px;align-items:center;min-height:0!important;padding:18px 20px!important;border:0!important;border-radius:16px!important;background:#f5f5f7!important;text-align:left!important}
body[data-ui-page=mobile] #lesson-screen #training-score-panel .empty:has(.training-empty-action)>p {grid-column:1;margin:0!important;font-size:14px!important;line-height:1.7!important}
body[data-ui-page=mobile] #lesson-screen #training-score-panel .empty:has(.training-empty-action)>.training-empty-action {grid-column:2;grid-row:1/3;justify-self:end;align-self:center;margin:0!important;font-size:14px!important;white-space:normal}
body[data-ui-page=mobile] #lesson-screen #stage-after>.section-heading {margin-top:24px!important;margin-bottom:12px!important}
body[data-ui-page=mobile] #lesson-screen #stage-after>.section-heading:first-child {margin-top:0!important}
body[data-ui-page=mobile] #lesson-screen #stage-after :is(#problem-after,#approval-list) {margin-bottom:20px!important}
body[data-ui-page=mobile] #lesson-screen #stage-after .linked-pages {gap:8px 24px!important;margin:12px 0 16px!important;font-size:14px!important}

@media(max-width:600px){
 body[data-ui-page=mobile] #lesson-screen #lesson-identity-row {padding:16px 18px;gap:4px 12px;margin-bottom:18px;border-radius:18px}
 body[data-ui-page=mobile] #lesson-screen #lesson-identity-row.has-match {grid-template-columns:minmax(0,1fr)}
 body[data-ui-page=mobile] #lesson-screen #lesson-identity-row .lesson-match-entry {justify-self:start}
 body[data-ui-page=mobile] #lesson-screen #stage-before>.rc11-attendance-primary {padding:16px!important}
 body[data-ui-page=mobile] #lesson-screen #lesson-rotation-editor .notebook-text {min-height:108px!important}
 body[data-ui-page=mobile] #lesson-screen #training-score-panel .empty:has(.training-empty-action):not([hidden]) {grid-template-columns:minmax(0,1fr);padding:16px!important;gap:6px}
 body[data-ui-page=mobile] #lesson-screen #training-score-panel .empty:has(.training-empty-action)>.training-empty-action {grid-column:1;grid-row:auto;justify-self:start;margin-top:6px!important}
}
