/* Scoped navigation additions. Lesson content and ordinary learning header height stay unchanged. */
#navCardsButton{width:44px;height:44px;min-width:44px;min-height:44px;padding:0;font-size:21px;background:#e9f3ff;border-radius:50%;border:0}
#navCardsButton[hidden]{display:none}
.app-header.nav-four{display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;grid-template-rows:44px 24px;gap:4px;align-items:center}
.app-header.nav-four #backButton{grid-column:1;grid-row:1;justify-self:start;max-width:none}
.app-header.nav-four .header-right{grid-column:4;grid-row:1;gap:4px}
.app-header.nav-four .screen-title{grid-column:1/-1;grid-row:2;font-size:19px;letter-spacing:1px;line-height:24px;min-width:0;width:100%;text-align:center}
.app-header.nav-four .header-right .icon-button{width:44px;height:44px;min-width:44px;padding:0}
/* Legacy list headers place HOME beside Back rather than inside header-right. */
.app-header.nav-four>#homeButton{grid-column:2;grid-row:1;justify-self:start;min-height:44px}

/* Back is present: keep the shared HOME entry usable even in old themed headers. */
.app-header.nav-home-fix #homeButton:not([hidden]){display:grid!important;place-items:center;min-width:44px;min-height:44px}

.app-header.nav-four .header-right #navCardsButton{width:auto;min-width:76px;padding:0 8px;font-size:14px;white-space:nowrap;border-radius:16px}
.clear-journey-actions{display:grid;gap:8px;width:100%;margin:8px auto 0}
.clear-journey-actions button{box-sizing:border-box;min-height:48px;width:100%;font-size:20px;touch-action:manipulation}

/* Unit-clear actions replace the optional lower step-picker link; upper navigation remains. */
#learnPlayScreen:has(.clear-journey-actions)>.child-other{display:none}
