/* PREPROD-436: preserve the approved artwork; enlarge only measured controls. */
.home428 .ra-world-arrow { min-height: 44px; }
.home428 .clock346-entry-actions a { min-height: 44px; display: inline-flex; align-items: center; }
.home428 .home436-parent-tasks { display: inline-flex; align-items: center; min-height: 44px; color: #075875; font-weight: 700; }
.journal367 .p367-table-open { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
.journal367 .p347-filters button, .journal367 .p347-more { min-height: 44px; }
.duel335 .p346-switch a { min-height: 44px; display: inline-flex; align-items: center; }
.friends334 .fg-empty a { display: inline-flex; align-items: center; min-height: 44px; }
.foundation-classroom-body .foundation-hint-button { min-height: 44px; }
.integration344 .top .button.bell { width: 44px; height: 44px; min-width: 44px; padding: 8px; }
.integration344 .finished summary { min-height: 44px; padding: 10px 0; box-sizing: border-box; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid #075bb3; outline-offset: 3px; }
html:root body.arena-home298 .home428 .home299-task-group > h3 { color: #07677e !important; }
.child-profile423 .profile423-card button.profile423-button { background: linear-gradient(110deg, #086aa8, #1255bd); }
html body.foundation-classroom-body #foundation-question-number { color: #00667e !important; }
html body.parent-verify-page .parent-verify-change-email { color: #49647c !important; }
html body.parent-verify-page .parent-verify-change-email a { color: #076b9b !important; }
html body.parent-premium-page .summary-grid small, body.parent-dashboard-reference .summary-grid small { color: #526787 !important; }
html body.parent-add-326 .range-labels, body.parent-add-326 .range-labels span,
body.parent-add-326 #mastery-help, body.parent-add-326 .hint { color: #49647c !important; }
html body .overview-identity > div > span { color: #075ab9 !important; }
html body.integration344 .field small { color: #49647c !important; }
html body .inbox308 .inbox308-empty > p { color: #49647c !important; }
html body.teacher-reference-page .teacher-section-heading p,
.teacher-reference-page .teacher-section-heading a > small,
.teacher-reference-page .teacher-trend-controls [aria-hidden] span,
.teacher-reference-page .teacher-quick-overview > div > span,
.teacher-reference-page th > small { color: #4c6387 !important; }
html body.teacher-reference-page .teacher-class-card__stats > div > span,
html body.teacher-reference-page .teacher-activity-list a > small { color: #4c6387 !important; }
html body.teacher-reference-page .teacher-student-accuracy--priority,
.teacher-reference-page .teacher-student-accuracy--help,
.teacher-reference-page .teacher-student-status--priority,
.teacher-reference-page .teacher-student-status--help { color: #a52222 !important; }
.adult-stat-details-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 12px; border: 1px solid #bed4f0; border-radius: 10px; background: #f1f7ff; color: #174e99; font: inherit; font-size: 13px; cursor: pointer; }
html body.teacher-reference-page .teacher-mastery[data-stat-total="0"] .teacher-mastery-content > strong { font-size: 28px; line-height: 1.2; min-width: 0; word-break: normal; overflow-wrap: normal; }
.lb436-private { max-width: 600px; margin: 36px auto; padding: clamp(24px,5vw,44px); text-align: center; border: 1px solid #ead596; border-radius: 30px; background: #fffffff5; box-shadow: 0 16px 48px #23487526; }
.lb436-avatar { width: 100px; height: 100px; object-fit: contain; border-radius: 50%; }
.lb436-private h2 { color: #102858; overflow-wrap: anywhere; font-size: 26px; }
.lb436-private dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 30px 0; }
.lb436-private dt { font-size: 16px; color: #344c70; }
.lb436-private dd { margin: 10px 0; font-size: clamp(28px,6vw,42px); font-weight: 800; color: #805900; overflow-wrap: anywhere; }
.lb436-private p { color: #344c70; font-size: 17px; line-height: 1.5; }
.lb436-action { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 12px 24px; border-radius: 16px; background: #1255bd; color: #fff; font-size: 18px; font-weight: 700; text-decoration: none; }

/* VISUAL-437: text must remain inside its panel, including desktop headers. */
html body .tasks304 .tasks304-header { grid-template-columns: 44px minmax(0,1fr) 44px !important; }
.tasks304-header h1 { min-width: 0; overflow-wrap: anywhere; }
@media (min-width:601px) {
 .tasks304-header h1 { padding: 12px 18px; background: #fffffff0; border-radius: 16px; justify-self: start; }
}
.profile423-file { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; min-height: 52px; padding: 10px; border: 1px solid #a8cce7; border-radius: 14px; background: #fff; }
.profile423-file input[type=file] { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; padding: 0; margin: 0; opacity: 0; cursor: pointer; }
.profile423-file:focus-within { outline: 3px solid #075bb3; outline-offset: 3px; }
.profile423-file-button { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 10px; background: #e4f5ff; color: #14518a; font-weight: 700; }
.profile423-file [data-profile-file-name] { flex: 1 1 120px; min-width: 0; color: #49627b; font-size: 14px; overflow-wrap: anywhere; }
/* Correct inherited display-title sizing; keep the existing admin layout. */
html body.admin-shell .panel h1 { font-size: clamp(26px,2.5vw,36px); line-height: 1.2; overflow-wrap: anywhere; }
html body.admin-login-page .panel-heading > div { min-width: 0; }
html body.admin-login-page .panel-heading h1 { font-size: clamp(24px,2.3vw,32px); line-height: 1.2; overflow-wrap: anywhere; }
html body.admin-login-page .panel-heading .icon-bubble { flex: 0 0 32px; }
@media (max-width:400px) { html body.admin-login-page .login-panel { padding-top: 28px; } }
@media (max-width:600px) {
 html body.foundation-classroom-body .foundation-header { padding: 62px 84px 14px 14px !important; min-height: 166px !important; justify-content: flex-start !important; }
 html body.foundation-classroom-body .foundation-header > div { flex: 0 0 auto; width: auto; max-width: 100%; }
 html body.foundation-classroom-body .foundation-header > div > p { white-space: nowrap; }
}

/* VISUAL-438: compact empty progress without changing records or badge rules. */
@media (min-width:751px) {
 .journal367-empty-tables .p347-content { grid-template-columns: minmax(180px,240px) minmax(0,1fr); grid-template-rows: auto auto auto auto; }
 .journal367-empty-tables .p347-personal { grid-row: 1/4; }
 .journal367-empty-tables .p347-mentor { min-height: 180px; }
 .journal367-empty-tables .p347-mentor img { max-height: 240px; }
 .journal367-empty-tables .p347-tables { padding: 4px 12px 12px; }
 .journal367-empty-tables .p347-tables > .p347-primary { width: fit-content; max-width: 100%; min-height: 52px; padding-inline: 24px; font-size: 21px; }
 .journal367-empty-tables .p347-collection { grid-column: 2; grid-row: 3; width: 100%; }
 .journal367-empty-tables .p347-badges { grid-template-columns: repeat(3,minmax(0,1fr)); }
 .journal367-empty-tables .p347-school-area { grid-row: 4; }
}
@media (min-width:1121px) {
 .journal367-empty-tables .p347-collection > header { display: flex; align-items: center; }
 .journal367-empty-tables .p347-collection > header > div:first-child { width: auto; flex: 1; }
 .journal367-empty-tables .p347-collection h2 { justify-content: flex-start; gap: 16px; }
 .journal367-empty-tables .p347-filters { width: 220px; margin: 0; }
 .journal367-empty-tables .p347-badges { grid-template-columns: repeat(6,minmax(0,1fr)); }
 .journal367-empty-tables .p347-next { width: fit-content; padding-inline: 12px; }
}

/* Preserve the approved friends artwork; only tighten the information strip. */
html:root body.friends334.v5 .page-title { padding: 16px 24px; border-radius: 18px; }
html:root body.friends334.v5 .bonus { min-height: 0 !important; }
html:root body.friends334.v5 .bonus .bonus-copy { display: grid; grid-template-columns: minmax(0,1fr) minmax(240px,.8fr); align-items: center; gap: 6px 24px; padding: 18px 24px; }
html:root body.friends334.v5 .bonus-label { grid-column: 1; margin: 0; }
html:root body.friends334.v5 .bonus h2 { grid-column: 1; grid-row: 2; margin: 0; font-size: 25px; line-height: 1.2; }
html:root body.friends334.v5 .bonus h2 br { display: none; }
html:root body.friends334.v5 .bonus p { grid-column: 2; grid-row: 1/3; max-width: 320px; margin: 0; font-size: 16px; line-height: 1.5; }
@media (max-width:750px) {
 html:root body.friends334.v5 .bonus .bonus-copy { grid-template-columns: minmax(0,1fr); padding: 16px 18px; gap: 8px; }
 html:root body.friends334.v5 .bonus h2 { font-size: 23px; }
 html:root body.friends334.v5 .bonus p { grid-column: 1; grid-row: 3; max-width: none; font-size: 15px; }
}

/* Keep the admin back control in the header flow, clear of the brand. */
html body.admin-shell .admin-topbar { gap: 12px; }
html body.admin-shell .admin-topbar > .admin-context-back { position: static !important; inset: auto !important; margin: 0 !important; transform: none !important; }
html body.admin-shell .admin-topbar > .brand { min-width: 0; margin-right: auto; }
@media (max-width:720px) {
 html body.admin-shell .admin-topbar { padding: 10px; gap: 8px; flex-wrap: nowrap; }
 html body.admin-shell .admin-topbar > .brand { white-space: normal; overflow-wrap: anywhere; gap: 6px; font-size: 15px; }
 html body.admin-shell .admin-topbar .admin-brand-logo { width: 32px; height: 32px; }
 html body.admin-shell .admin-mobile-nav { flex: none; }
}

/* LEARNING-439: retain the approved artwork and enlarge child touch targets. */
html:root body.arena-home298 .worlds374 #child-arena-master#child-arena-master #svjetovi#svjetovi .ra-world-arrow { width: 44px !important; height: 44px !important; min-height: 44px !important; }
html:root body.arena-home298 .worlds374 #child-arena-master#child-arena-master #svjetovi#svjetovi .ra-world-arrow--prev { right: 56px !important; }
html:root body.arena-home298 .worlds374 #child-arena-master#child-arena-master #svjetovi#svjetovi .ra-world-arrow--next { right: 4px !important; }
html:root body.arena-home298 .worlds374 #child-arena-master#child-arena-master #svjetovi#svjetovi .ra-world-heading { min-height: 56px !important; padding-right: 108px !important; }
html body.foundation-classroom-body.space-parity-page .foundation-hint-button { min-height: 44px; }
/* Legal links must be distinguishable without changing the registration layout. */
html body .parent-register-v2-check a,html body .teacher-register-reference-check a{color:#075db1;text-decoration:underline;text-underline-offset:3px}

/* FIX-597: empty accuracy has a distinct, translated presentation. */
body .accuracy-empty597 { display: inline-flex !important; flex-direction: column; align-items: center; vertical-align: middle; gap: 2px; max-width: 100%; font: inherit !important; }
body .accuracy-empty597--compact { display: inline !important; }
body .accuracy-empty597 > span { font: inherit !important; }
body .accuracy-empty597 .accuracy-empty597__label { display: block; margin: 0; color: #42566e; font-family: inherit; font-size: 11px !important; font-weight: 500; line-height: 1.25; letter-spacing: normal; text-transform: none; white-space: normal; }
