/* Shared browser/installed presentation. No display-mode selectors here. */
body.menu-open {overflow:hidden;}
.shell {display:block;}
.shell > .sidebar {position:fixed;inset:0 auto 0 0;z-index:15;width:min(20rem,calc(100vw - 2rem));max-width:none;height:100dvh;padding:1.25rem 1rem;display:none;transform:none;--main-sidebar-inline:1rem;box-shadow:1rem 0 3rem rgb(4 20 16 / .28);overscroll-behavior:contain;}
.shell > .sidebar[data-open="true"] {display:flex;}
.shell .sidebar-mobile-head {display:flex;position:absolute;inset:0 auto auto 0;min-height:0;margin:0;padding:0;border:0;background:transparent;}
.shell .sidebar > .brand {padding-right:0;margin-top:0;padding-top:calc(var(--hearth-header-height) - 1.25rem);}
.shell .sidebar .household-brand-copy .hearth-logo {position:absolute;top:0;left:64px;width:calc(100% - 128px);height:calc(var(--hearth-header-height) - 1px);margin:0;transform:none;}
#menu-close {display:grid;place-items:center;flex:0 0 64px;width:64px;min-width:64px;height:calc(var(--hearth-header-height) - 1px);min-height:44px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--ink-muted);}
#menu-close svg {width:22px;height:22px;}
#menu-close:hover {background:var(--paper-soft);}
#menu-close:focus-visible {outline:2px solid var(--focus);outline-offset:-3px;}
.shell > .sidebar-backdrop {display:block;position:fixed;inset:0;z-index:14;width:100%;height:100dvh;padding:0;border:0;border-radius:0;background:rgb(4 20 16 / .5);backdrop-filter:blur(2px);}
.shell > .sidebar-backdrop[hidden] {display:none;}
.content > .topbar {display:flex;flex-wrap:nowrap;gap:.4rem;padding:1.1rem .5rem .8rem 0;}
.topbar .mobile-head {display:flex;align-items:center;flex:1 1 auto;min-width:0;gap:clamp(.25rem,1.5vw,.7rem);}
.topbar .hearth-home-link {flex:1 1 auto;min-width:0;}
.topbar .hearth-logo {width:100%;max-width:8rem;}
.topbar #menu {position:relative;display:inline-flex;align-items:center;justify-content:center;width:64px;min-width:64px;min-height:4.9rem;padding:0;margin:-1.1rem 0 -.8rem;align-self:stretch;flex-shrink:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--ink-muted);font-size:1.35rem;}
.topbar #menu > span:last-child {display:none;}
.topbar #menu::after {content:"";position:absolute;inset-inline-end:0;top:25%;height:50%;width:1px;background:var(--line);pointer-events:none;}
.topbar #menu:focus-visible {outline:2px solid var(--focus);outline-offset:-3px;}
.topbar .topbar-actions {width:auto;flex:0 0 auto;margin-left:0;gap:.25rem;}
.topbar-actions .quick-access-tray {gap:.375rem;padding-inline-end:.5rem;margin-inline-end:0;}
body .page:not(.page-home) {max-width:80rem;margin-inline:auto;width:100%;padding-inline:clamp(1rem,3vw,3rem);}
body .page:has(> .ui-collection-page) {max-width:60rem;padding-inline:1rem;}
body .home-logo-stage {box-sizing:border-box;min-height:0;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;padding:var(--hearth-inset) 1rem 1rem;max-width:48rem;margin-inline:auto;}
.home-household-masthead {display:flex;align-items:center;justify-content:center;padding:0 0 2rem;min-width:0;color:var(--ink);text-align:center;}
.home-card-label,
.home-household-name,
.watch-page.ui-collection-page > .watch-header h1 {font-family:"Fraunces",Georgia,serif;font-weight:600;font-optical-sizing:none;font-variation-settings:"opsz" 72,"SOFT" 100,"WONK" 1;letter-spacing:-.025em;line-height:1.2;text-wrap:balance;}
.watch-page.ui-collection-page > .watch-header {width:100%;box-sizing:border-box;justify-content:center;align-items:center;padding-inline:calc(44px + .6rem);text-align:center;}
.watch-page.ui-collection-page > .watch-header h1 {min-width:0;overflow-wrap:anywhere;}
.home-household-name {font-size:var(--hearth-heading);min-width:0;overflow-wrap:anywhere;}
body .home-logo-stage .home-shortcuts {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(min-content,1fr));gap:.75rem;width:100%;min-height:clamp(14rem,calc(var(--home-available-height,70dvh) / 2),24rem);height:auto;margin:0;padding-block:0 1rem;box-sizing:border-box;flex:none;}
body .home-logo-stage .home-shortcut {display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(2.5rem,1fr) auto;justify-items:center;align-items:center;gap:.65rem;padding:1rem;min-width:0;min-height:6rem;text-align:center;overflow-wrap:anywhere;}
.home-shortcut > svg,.home-shortcut-arrow,.home-coming-mark,.home-ember {display:none;}
.home-card-art {display:block;width:100%;height:100%;min-height:0;contain:size;color:var(--clay);opacity:.48;pointer-events:none;grid-column:1;grid-row:1;}
.home-card-art svg {display:block;width:100%;height:100%;}
.home-art-wash {fill:currentColor;stroke:none;opacity:.07;}
.home-art-faint {opacity:.45;}
.home-art-accent {stroke-width:2;}
.home-card-label {display:flex;flex-direction:column;align-items:center;gap:.45rem;max-width:100%;font-size:clamp(1.25rem,2.6vw,1.65rem);color:color-mix(in srgb,var(--clay) 60%,var(--ink));grid-column:1;grid-row:2;}
.home-card-label::before {content:"";width:1.35rem;height:1px;background:var(--clay);opacity:.4;}
body .home-logo-stage .home-coming-soon[disabled] {display:grid;color:var(--ink-muted);border-style:dashed;background:transparent;opacity:.6;cursor:default;}
.home-coming-soon .home-card-label {color:var(--ink-muted);font-size:1rem;}
.home-coming-soon .home-card-art {color:var(--ink-muted);opacity:.35;}
body .home-logo-stage .home-ai-connections {box-sizing:border-box;width:100%;margin:.5rem 0 0;padding:1.25rem clamp(.5rem,2.5vw,1.5rem) 0;border-top:1px solid var(--line);text-align:left;}
.home-connections-heading {font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-muted);font-weight:500;margin:0 0 .5rem;}
body dialog.plan-dialog,body dialog.watch-entry-dialog {width:calc(100vw - 2rem);max-width:40rem;max-height:calc(100dvh - 2rem);overflow:auto;}
@media(forced-colors:active){.home-card-art {color:CanvasText;}.home-card-label {color:ButtonText;}}
.home-connection-list {display:flex;flex-direction:column;}
.home-connection-row {display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:64px;padding:.5rem .15rem;border-bottom:1px solid color-mix(in srgb,var(--line) 55%,transparent);}
.home-connection-row:last-child {border-bottom:0;}
.home-connection-indicator {display:grid;place-items:center;flex:0 0 18px;width:18px;height:18px;color:var(--ink-muted);opacity:.45;}
.home-connection-indicator svg {width:18px;height:18px;}
.home-connection-indicator.is-connected {color:#79b88b;opacity:1;}
@media(forced-colors:active){.home-connection-indicator,.home-connection-indicator.is-connected {color:CanvasText;opacity:1;}}
.home-connection-identity {display:flex;flex-direction:column;gap:.2rem;min-width:0;}
.home-connection-name {color:var(--ink);font-weight:500;}
.home-connection-status {font-size:.75rem;color:var(--ink-muted);}
.home-connection-row.is-unavailable .home-connection-name {color:var(--ink-muted);}
.home-connection-switch {position:relative;flex:0 0 52px;width:52px;height:48px;min-height:48px;padding:0;border:0;background:transparent;box-shadow:none;}
.home-connection-switch::before {content:"";position:absolute;width:44px;height:26px;top:11px;left:4px;border:1px solid var(--line);border-radius:20px;background:var(--paper-soft);box-sizing:border-box;}
.home-connection-switch > span {position:absolute;width:18px;height:18px;left:8px;top:15px;border-radius:50%;background:var(--ink-muted);}
.home-connection-switch[aria-checked="true"]::before {background:color-mix(in srgb,var(--clay) 24%,var(--paper));border-color:var(--clay);}
.home-connection-switch[aria-checked="true"] > span {left:26px;background:var(--clay);}
.home-connection-switch:disabled {opacity:.4;cursor:default;}
.home-connection-switch:not(:disabled):hover {background:transparent;}
.home-connection-switch:focus-visible {outline:2px solid var(--clay);outline-offset:2px;border-radius:.5rem;}
@media(forced-colors:active){.home-connection-switch::before {border-color:ButtonText;}.home-connection-switch > span {background:ButtonText;}.home-connection-switch[aria-checked="true"] > span {background:Highlight;}}
.home-provider-mark {display:block;width:30px;height:30px;background:var(--ink-muted);mask:var(--provider-mark) center / contain no-repeat;-webkit-mask:var(--provider-mark) center / contain no-repeat;}
.home-provider-chatgpt {--provider-mark:url('/assets/provider-chatgpt.svg');}
.home-provider-claude {--provider-mark:url('/assets/provider-claude.svg');}
.home-provider-gmail {--provider-mark:url('/assets/provider-gmail.svg');}
.home-connection-identity:has(.home-provider-mark) {flex-direction:row;align-items:center;gap:.85rem;}
.home-connection-badge {display:inline-block;padding:.2rem .5rem;border:1px solid color-mix(in srgb,var(--line) 65%,transparent);border-radius:1rem;font-size:.65rem;line-height:1.4;font-weight:400;letter-spacing:.025em;color:var(--ink-muted);background:color-mix(in srgb,var(--paper-soft) 45%,transparent);}
.home-connection-row.is-unavailable .home-provider-mark {opacity:.6;}
@media(forced-colors:active){.home-provider-mark {background:CanvasText;}}
