/* Bozo's Website App 2.0. The installed-app dashboard is isolated from theme CSS. */
#bwa-app-home[hidden]{display:none!important}
body.bwa-home-open{overflow:hidden!important}
#bwa-app-home{--bwa-home-bg:#f3f7fd;--bwa-home-surface:#fff;--bwa-home-text:#1b304b;--bwa-home-muted:#4a6076;--bwa-home-outline:#c8d7e6;--bwa-home-feature:#e8f1fc;--bwa-home-dark:#142c47;position:fixed!important;inset:0 0 var(--bwa-home-nav-offset,0px)!important;display:block;z-index:2147481700;box-sizing:border-box;background:var(--bwa-home-bg)!important;color:var(--bwa-home-text)!important;font:400 15px/1.5 system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;isolation:isolate;color-scheme:light}
#bwa-app-home[data-theme=dark],:root[data-bwa-update-theme=dark] #bwa-app-home[data-theme=auto]{--bwa-home-bg:#0c1a2d;--bwa-home-surface:#172b45;--bwa-home-text:#f3f7fc;--bwa-home-muted:#c3d0e2;--bwa-home-outline:#3d5571;--bwa-home-feature:#213b59;--bwa-home-dark:#0b1727;color-scheme:dark}
@media(prefers-color-scheme:dark){:root:not([data-bwa-update-theme=light]) #bwa-app-home[data-theme=auto]{--bwa-home-bg:#0c1a2d;--bwa-home-surface:#172b45;--bwa-home-text:#f3f7fc;--bwa-home-muted:#c3d0e2;--bwa-home-outline:#3d5571;--bwa-home-feature:#213b59;--bwa-home-dark:#0b1727;color-scheme:dark}}
:root[data-bwa-update-theme=light] #bwa-app-home[data-theme=auto],#bwa-app-home[data-theme=light]{--bwa-home-bg:#f3f7fd;--bwa-home-surface:#fff;--bwa-home-text:#1b304b;--bwa-home-muted:#4a6076;--bwa-home-outline:#c8d7e6;--bwa-home-feature:#e8f1fc;--bwa-home-dark:#142c47;color-scheme:light}
#bwa-app-home *{box-sizing:border-box}
#bwa-app-home .bwa-home-scroll{height:100%;width:100%;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:max(22px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(30px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));scrollbar-gutter:stable}
#bwa-app-home .bwa-home-content{max-width:1020px;margin:0 auto}
#bwa-app-home .bwa-home-topbar{display:flex;gap:14px;align-items:flex-start;justify-content:space-between;margin:0 0 8px}
#bwa-app-home .bwa-home-brand{display:flex;align-items:center;gap:14px;min-width:0}
#bwa-app-home .bwa-home-icon{width:64px;height:64px;object-fit:cover;border-radius:17px;box-shadow:0 4px 16px #0002;flex:0 0 64px}
#bwa-app-home .bwa-home-eyebrow{display:block;color:var(--bwa-home-muted);font-weight:800;font-size:10px;letter-spacing:.12em;text-transform:uppercase}
#bwa-app-home h1{font:800 clamp(21px,4vw,32px)/1.15 system-ui,sans-serif!important;color:var(--bwa-home-text)!important;margin:5px 0 0!important;padding:0!important;letter-spacing:-.025em}
#bwa-app-home .bwa-home-subtitle{font-size:15px;line-height:1.6;color:var(--bwa-home-muted)!important;margin:12px 0 16px}
#bwa-app-home .bwa-home-website{flex:none;min-height:44px;min-width:70px;border:1px solid var(--bwa-home-outline);border-radius:12px;padding:9px 12px;background:var(--bwa-home-surface);color:var(--bwa-home-text);font:700 13px system-ui;cursor:pointer}
#bwa-app-home .bwa-home-status{display:inline-flex;align-items:center;gap:8px;background:var(--bwa-home-surface);border:1px solid var(--bwa-home-outline);border-radius:999px;padding:6px 12px;color:var(--bwa-home-muted);font-size:12px;margin:0 0 20px}
#bwa-app-home .bwa-home-status-dot{width:8px;height:8px;display:inline-block;border-radius:50%;background:#23a768}
#bwa-app-home .bwa-home-status[data-status=offline] .bwa-home-status-dot{background:#d28a1c}
#bwa-app-home .bwa-home-module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#bwa-app-home .bwa-home-module-wrap{min-width:0}
#bwa-app-home .bwa-home-module{border:1px solid var(--bwa-home-outline);border-radius:18px;background:var(--bwa-home-surface)!important;color:var(--bwa-home-text)!important;box-shadow:0 6px 24px rgba(4,17,36,.06);padding:16px;height:100%}
#bwa-app-home .bwa-home-module h3{margin:0 0 14px!important;padding:0!important;font:800 16px/1.25 system-ui,sans-serif!important;color:var(--bwa-home-text)!important;letter-spacing:-.01em}
#bwa-app-home .bwa-home-search{display:flex;gap:8px;flex-wrap:wrap}
#bwa-app-home input[type=search]{background:var(--bwa-home-bg)!important;border:1px solid var(--bwa-home-outline)!important;box-shadow:none!important;border-radius:11px!important;min-width:140px;flex:1 1 200px;padding:12px!important;min-height:46px;color:var(--bwa-home-text)!important;font:inherit}
#bwa-app-home .bwa-home-search button,#bwa-app-home .bwa-home-action{border:0;border-radius:11px;min-height:46px;padding:11px 17px;background:var(--bwa-home-highlight,#ffcf52)!important;color:#182537!important;font:800 14px/1.2 system-ui;cursor:pointer}
#bwa-app-home .bwa-home-shortcut-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
#bwa-app-home .bwa-home-shortcut{display:flex;align-items:center;flex-direction:column;gap:7px;text-align:center;font:700 12px/1.35 system-ui;color:var(--bwa-home-text)!important;text-decoration:none!important;min-height:93px;padding:6px 1px;border-radius:12px}
#bwa-app-home .bwa-home-shortcut img{width:58px;height:58px;max-width:none;border-radius:14px;object-fit:cover}
#bwa-app-home .bwa-home-museum-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
#bwa-app-home .bwa-home-feature{background:var(--bwa-home-feature);border:1px solid var(--bwa-home-outline);border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:4px;min-height:132px;text-decoration:none!important;color:var(--bwa-home-text)!important}
#bwa-app-home .bwa-home-feature-symbol{font-size:27px;line-height:1.2}
#bwa-app-home .bwa-home-feature strong{font-size:14px;color:var(--bwa-home-text)}
#bwa-app-home .bwa-home-feature small{font-size:12px;line-height:1.3;color:var(--bwa-home-muted)}
#bwa-app-home .bwa-home-muted{font-size:13px;color:var(--bwa-home-muted)!important;margin:0 0 12px}
#bwa-app-home .bwa-home-device-items,#bwa-app-home .bwa-home-latest-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
#bwa-app-home .bwa-home-device-items li,#bwa-app-home .bwa-home-latest-list li{margin:0;padding:0}
#bwa-app-home .bwa-home-device-items a,#bwa-app-home .bwa-home-latest-list a{display:flex;flex-direction:column;gap:2px;padding:9px 11px;min-height:44px;background:var(--bwa-home-feature);border-radius:10px;text-decoration:none!important;color:var(--bwa-home-text)!important;font-size:13px;font-weight:600}
#bwa-app-home .bwa-home-latest-list small{color:var(--bwa-home-muted);font-weight:400}
#bwa-app-home .bwa-home-text-action{display:inline-block;background:none;border:0;padding:10px 0;color:var(--bwa-home-text)!important;text-decoration:underline;font-weight:700;font-size:13px;cursor:pointer}
#bwa-app-home .bwa-home-footer{margin:24px 0 0;font-size:12px;color:var(--bwa-home-muted)}
#bwa-app-home .bwa-home-footer a{color:inherit;text-decoration:underline}
#bwa-app-home :is(button,a,input):focus-visible{outline:3px solid #2b8fc4!important;outline-offset:3px!important}
#bwa-app-home .bwa-home-sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:700px){#bwa-app-home .bwa-home-module-grid{grid-template-columns:1fr}#bwa-app-home .bwa-home-content{max-width:580px}}
@media(max-width:370px){#bwa-app-home .bwa-home-brand{gap:9px}#bwa-app-home .bwa-home-icon{height:52px;width:52px;flex-basis:52px}#bwa-app-home .bwa-home-shortcut-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#bwa-app-home .bwa-home-museum-grid{grid-template-columns:1fr 1fr}#bwa-app-home .bwa-home-website{min-width:60px;padding:6px}}
@media(prefers-reduced-motion:reduce){#bwa-app-home *{scroll-behavior:auto!important;transition:none!important}}

#bwa-app-home .bwa-home-header-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
#bwa-app-home .bwa-home-layout-controls{margin:0 0 14px;border:1px dashed var(--bwa-home-outline);border-radius:12px;padding:10px;display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--bwa-home-muted);font-size:12px}
#bwa-app-home .bwa-home-layout-controls[hidden],#bwa-app-home .bwa-home-reorder[hidden]{display:none!important}
#bwa-app-home .bwa-home-layout-controls button,#bwa-app-home .bwa-home-reorder button{min-width:42px;min-height:42px;border:1px solid var(--bwa-home-outline);background:var(--bwa-home-feature);color:var(--bwa-home-text);border-radius:9px;font:700 16px system-ui;cursor:pointer}
#bwa-app-home .bwa-home-reorder{display:flex;justify-content:flex-end;gap:6px;margin:0 0 6px}
#bwa-app-home.bwa-home-editing .bwa-home-module-wrap{border:1px dashed var(--bwa-home-highlight);padding:5px;border-radius:16px}
@media(max-width:390px){#bwa-app-home .bwa-home-header-actions{gap:4px}#bwa-app-home .bwa-home-header-actions button{font-size:11px;min-width:0;padding:7px}}

/* Manual dashboard themes extend to the existing native bar and update prompt while active. */
body.bwa-home-open[data-bwa-home-theme=dark]{--bwa-native-bg:#14263a;--bwa-native-ink:#f0f7ff;--bwa-native-border:#466079;--bwa-native-accent:#ffe08a;--bwa-native-active-bg:#243c58;--bwa-update-surface:#132238;--bwa-update-ink:#f8fbff;--bwa-update-muted:#c5d4e4;--bwa-update-border:#60748c}
body.bwa-home-open[data-bwa-home-theme=light]{--bwa-native-bg:#fff;--bwa-native-ink:#1c344c;--bwa-native-border:#c8d4e2;--bwa-native-accent:#13609c;--bwa-native-active-bg:#eaf2fb;--bwa-update-surface:#fff;--bwa-update-ink:#17263a;--bwa-update-muted:#43556d;--bwa-update-border:#ced7e3}

/* Nav preset only during app home, no permanent theme or plugin changes. */
body.bwa-home-open[data-bwa-home-nav=radio] .bwa-app-toolbar-native{border-top:2px solid #2f9fd8;box-shadow:0 -5px 24px rgba(7,64,124,.16)}
body.bwa-home-open[data-bwa-home-nav=radio] .bwa-app-toolbar-native [aria-current=page]{color:var(--bwa-native-accent,#13609c)!important;border-bottom:2px solid var(--bwa-home-highlight,#ffcf52)}
body.bwa-home-open[data-bwa-home-nav=compact] .bwa-app-toolbar-native{min-height:52px;padding-top:2px;padding-bottom:calc(2px + env(safe-area-inset-bottom))}
body.bwa-home-open[data-bwa-home-nav=compact] .bwa-app-toolbar-native a,body.bwa-home-open[data-bwa-home-nav=compact] .bwa-app-toolbar-native button{min-height:45px;font-size:9px;padding:3px}
body.bwa-home-open[data-bwa-home-nav=compact] .bwa-app-toolbar-native .bwa-tab-icon{width:20px;height:20px}
