.storage-feedback{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 24px;background:#fff3dd;color:#68451b;border-bottom:1px solid #e5c28a}
.storage-feedback[hidden],.storage-feedback button[hidden]{display:none}
.storage-feedback p{margin:0;max-width:75ch;font-size:13px;line-height:1.5}
.storage-feedback>div{display:flex;gap:8px;flex-shrink:0;flex-wrap:wrap}
.storage-feedback .text-button{min-height:44px;padding:8px 10px;border:1px solid currentColor;border-radius:7px;font-size:12px;white-space:nowrap;color:inherit}
html[data-theme=dark] .storage-feedback{background:#332b1d;color:#f3d7aa;border-color:#79603a}
.local-label[data-storage-error=true] .status-dot{background:#bd7826}
/* A failed save must stay visible without covering the learning controls. */
html[data-storage-error=true] body{height:auto;overflow:auto}
html[data-storage-error=true] .app{height:auto;min-height:100dvh;grid-template-rows:64px auto auto 34px}
html[data-storage-error=true] .topbar{position:sticky;top:0;z-index:18}
html[data-storage-error=true] .storage-feedback{position:sticky;top:64px;z-index:17}
html[data-storage-error=true] main{height:auto;min-height:calc(100dvh - 220px);overflow:visible}
html[data-storage-error=true] .screen-content{overflow:visible;flex:none}
html[data-storage-error=true] #quiz-feedback,html[data-storage-error=true] #case-feedback,html[data-storage-error=true] #challenge-results,html[data-storage-error=true] .case-focus-decision h2{scroll-margin-top:var(--storage-inset,210px)}
@media(max-width:720px){
 .storage-feedback{padding:10px 16px;align-items:stretch;flex-direction:column;gap:8px}
 .storage-feedback p{font-size:12px}
 html[data-storage-error=true] .app{grid-template-rows:54px auto auto 25px}
 html[data-storage-error=true] .storage-feedback{top:54px}
}
