/* Home Screen help stays separate from the editor and its saved layouts. */
.home-screen-footer .footer-links { min-width:0; gap:12px; }
#home-screen-open { min-height:44px; padding:0 8px; border:0; border-radius:4px; background:transparent; color:#d5ff5f; font-size:11px; white-space:nowrap; }
#home-screen-open:hover { background:#d5ff5f0d; }
.home-screen-label-short { display:none; }

#home-screen-reminder { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:68px; padding:10px 20px; border-top:1px solid #536547; background:#1c281f; color:#e3eddf; }
#home-screen-reminder p { min-width:0; margin:0; font-size:12px; line-height:1.6; }
#home-screen-reminder .home-screen-reminder-actions { display:flex; flex-shrink:0; gap:8px; }
#home-screen-reminder button { min-width:44px; min-height:44px; padding:8px 12px; border:1px solid #718b53; border-radius:6px; background:#283923; color:#e3f4cc; font-size:12px; }
#home-screen-reminder #home-screen-dismiss { background:transparent; border-color:#536547; color:#cbd7c7; }
#home-screen-reminder button:hover { border-color:#d5ff5f; }

#home-screen-dialog { width:min(620px,calc(100vw - 24px)); max-height:calc(100dvh - 24px); overflow-y:auto; overscroll-behavior:contain; padding:26px; color:#e3eae6; font-size:13px; line-height:1.7; }
#home-screen-dialog .home-screen-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin:0; }
#home-screen-dialog .home-screen-heading > div { min-width:0; }
#home-screen-dialog .home-screen-eyebrow { color:#c6d7aa; font-size:9px; letter-spacing:1.3px; }
#home-screen-dialog h2 { margin:5px 0 0; font-size:23px; line-height:1.35; }
#home-screen-dialog .home-screen-close { display:grid; flex:none; place-items:center; width:44px; height:44px; padding:0; border:1px solid #53635d; border-radius:6px; background:#28342e; color:#f1f6ed; font-size:25px; line-height:1; }
#home-screen-dialog #home-screen-description { margin:15px 0 20px; color:#c1cec5; }
#home-screen-dialog .home-screen-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
#home-screen-dialog .home-screen-options label { display:grid; gap:7px; min-width:0; color:#cbd7cf; font-size:12px; line-height:1.5; }
#home-screen-dialog select { width:100%; min-width:0; min-height:44px; padding:9px 32px 9px 11px; border:1px solid #647765; border-radius:6px; background:#26332c; color:#edf3e9; font-size:13px; }
#home-screen-dialog .home-screen-browser-note { margin:18px 0; padding:12px 14px; border-left:3px solid #b7d98a; background:#d5ff5f07; color:#cbd8c8; font-size:12px; line-height:1.8; }
#home-screen-dialog h3 { margin:20px 0 12px; color:#e5f2d7; font-size:16px; line-height:1.5; }
#home-screen-dialog :is(ol,ul) { margin:0; padding-left:23px; }
#home-screen-dialog li { margin:0 0 12px; padding-left:4px; overflow-wrap:anywhere; }
#home-screen-dialog strong { color:#eff6e8; font-weight:650; }
#home-screen-dialog .home-screen-storage-note { margin:20px 0 0; padding-top:16px; border-top:1px solid #44554b; color:#c2d0c6; font-size:12px; line-height:1.8; }
#home-screen-dialog .home-screen-link { display:grid; gap:8px; margin-top:20px; }
#home-screen-dialog .home-screen-link label { color:#cbd7cf; font-size:12px; }
#home-screen-dialog .home-screen-link input { width:100%; min-width:0; min-height:44px; padding:10px 11px; border:1px solid #647765; border-radius:6px; background:#17221d; color:#dce9d7; font:12px/1.6 ui-monospace,Consolas,monospace; }
#home-screen-dialog .home-screen-link a { display:flex; align-items:center; justify-self:start; min-height:44px; color:#d5ff5f; font-size:12px; text-underline-offset:4px; }
#home-screen-dialog :is(button,select,input,a):focus-visible,#home-screen-reminder button:focus-visible,#home-screen-open:focus-visible { outline:2px solid #d5ff5f; outline-offset:3px; }

/* Reserve normal-flow space for the reminder above the existing fixed SB bar. */
@media(min-width:1001px),(min-width:801px) and (min-height:601px) {
  body:has(> #home-screen-reminder:not([hidden])) > .workspace { height:calc(100dvh - 188px - var(--sb-community-height,0px)); min-height:0; }
}
@media(max-width:800px),(max-width:1000px) and (max-height:600px) {
  .statusbar.home-screen-footer { height:auto; min-height:44px; }
  .home-screen-footer .footer-links :is(button,a) { min-height:44px; }
  #home-screen-dialog select { font-size:16px; }
}
@media(max-width:600px) {
  .statusbar.home-screen-footer { padding-inline:10px; }
  .home-screen-footer > span { display:none; }
  .home-screen-footer .footer-links { width:100%; justify-content:space-between; gap:5px; }
  .home-screen-footer .studio-home { display:flex; align-items:center; font-size:9px; white-space:nowrap; }
  #home-screen-open { padding-inline:5px; }
  .home-screen-label-full { display:none; }
  .home-screen-label-short { display:inline; }
  #home-screen-reminder { flex-wrap:wrap; gap:6px 12px; padding:10px 14px; }
  #home-screen-reminder p { flex:1 1 180px; }
  #home-screen-reminder .home-screen-reminder-actions { flex-wrap:wrap; }
  #home-screen-dialog { padding:20px 16px; }
  #home-screen-dialog h2 { font-size:20px; }
  #home-screen-dialog .home-screen-options { grid-template-columns:minmax(0,1fr); }
}
