/* Public Sans v2.001, locally hosted under the SIL Open Font License. */
@font-face{font-family:'Public Sans';src:url('/shell/fonts/PublicSans-Regular.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:'Public Sans';src:url('/shell/fonts/PublicSans-Medium.woff2') format('woff2');font-style:normal;font-weight:500;font-display:swap}
@font-face{font-family:'Public Sans';src:url('/shell/fonts/PublicSans-SemiBold.woff2') format('woff2');font-style:normal;font-weight:600;font-display:swap}
@font-face{font-family:'Public Sans';src:url('/shell/fonts/PublicSans-Bold.woff2') format('woff2');font-style:normal;font-weight:700;font-display:swap}
@font-face{font-family:'Public Sans';src:url('/shell/fonts/PublicSans-Italic.woff2') format('woff2');font-style:italic;font-weight:400;font-display:swap}
@font-face{font-family:'Public Sans';src:url('/shell/fonts/PublicSans-BoldItalic.woff2') format('woff2');font-style:italic;font-weight:700;font-display:swap}
:root{--shell-accent:#829fff;--shell-accent-dark:#354064;--shell-accent-dark-ink:#f5f5f5;--shell-accent-mid:#47578a;--shell-accent-strong:#5f74b9;--shell-accent-ink:#f5f5f5;--shell-surface:#161c2d;--shell-surface-ink:#e3e6e8;--shell-surface-glass:rgba(22,28,45,.68);--shell-icon-filter:brightness(0) invert(1);--shell-background:#131a2b;--shell-ink:#e3e6e8;--shell-background-image:radial-gradient(ellipse at 18% 0%, #24356d 0%, #1a2541 43%, #131a2b 82%);--shell-background-size:cover;--shell-background-repeat:no-repeat;--shell-background-position:center;--shell-font:'Public Sans',Arial,sans-serif;--shell-radius:14px;--shell-space:.75rem;--shell-field:#181d2c;--shell-field-ink:#e3e6e8}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
/* Restore action spacing after the reset. App-specific icon, tab, and link
   controls keep their authored padding through higher-specificity rules. */
:where(button,input[type="button"],input[type="submit"],input[type="reset"],[role="button"],.chrome-button){padding:var(--chrome-control-padding,.45rem .7rem)}
/* Button-shaped links and local hover rules must not introduce underlines. */
:where(button,input[type="button"],input[type="submit"],input[type="reset"],[role="button"],.chrome-button){text-decoration-line:none !important}
*{scrollbar-width:thin;scrollbar-color:#3a3a3a rgba(18,18,18,.45)}
*::-webkit-scrollbar{width:.65rem;height:.65rem}
*::-webkit-scrollbar-track{background:rgba(18,18,18,.45)}
*::-webkit-scrollbar-thumb{background:#3a3a3a;border-radius:999px;border:2px solid rgba(18,18,18,.45)}
*::-webkit-scrollbar-thumb:hover{background:#555}
html{width:100%;min-height:100%;overflow-x:hidden}body{width:100%;min-height:100%;overflow-x:hidden;overflow-y:auto;font-family:var(--shell-font);background-color:var(--shell-background);background-image:var(--shell-background-image);background-size:var(--shell-background-size);background-repeat:var(--shell-background-repeat);background-position:var(--shell-background-position);background-attachment:fixed;color:var(--shell-ink)}
.seo-prerender{width:min(72rem,95%);margin:4.5rem auto 2rem;display:flex;flex-direction:column;gap:1rem}.seo-prerender section{display:flex;flex-direction:column;gap:.7rem}.seo-prerender article{padding:.85rem;border:1px solid #333;background:var(--shell-surface);color:var(--shell-surface-ink)}.seo-prerender article img{display:block;max-width:100%;max-height:24rem;margin-top:.6rem;object-fit:contain}.seo-prerender a{color:var(--shell-accent);text-decoration:underline}.seo-prerender-author{color:var(--ui-muted-ink);font-size:.82rem;}.seo-page-heading{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#root{width:100%;min-height:100dvh;display:flex;flex-direction:column;--hertz-player-dock-height:3.8rem}
#shell-workspace{--shell-content-max-width:96rem;display:flex;flex-direction:column;flex:1;min-width:0;min-height:100dvh;background:transparent}#shell-left-rail-utilities{display:flex;align-items:center;gap:.4rem;background:transparent}#shell-profile-slot:empty{display:none}.shell-app-icon{width:1.35rem;height:1.35rem;flex:0 0 auto;object-fit:contain;filter:var(--shell-icon-filter)}.shell-app-label,.shell-profile-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#shell-superbar{position:fixed;inset:0 0 auto;z-index:1000;width:100%;display:flex;min-width:0;align-items:center;gap:.35rem;min-height:3.1rem;padding:calc(.3rem + env(safe-area-inset-top)) .55rem .3rem;border-bottom:1px solid var(--ui-border);background:var(--shell-surface);box-shadow:0 1px 4px rgba(0,0,0,.3)}
#shell-search{position:relative;z-index:1;flex:1 1 auto;min-width:0;width:min(32rem,calc(100vw - 2.5rem));max-width:959px;transition:width .2s ease}
#shell-search.minimized{width:auto}
#root:not([data-layout="compact"]) #shell-search{position:absolute;left:50%;transform:translateX(-50%)}
#root:not([data-layout="compact"]) #shell-search:not(.minimized){width:min(959px,calc(100vw - 2.5rem))}
#search-toggle,#shell-profile-button,#shell-profile-mode-button,#shell-profile-actions button,#shell-notif-button{width:2.5rem;height:2.5rem;border-radius:var(--shell-radius);border:1px solid transparent;background:transparent;color:var(--shell-surface-ink);font-size:1.1rem;cursor:pointer;transition:background .15s;display:flex;align-items:center;justify-content:center}
#search-toggle{display:none;margin:0 auto}
#search-toggle::before{content:'🔍'}
#shell-home-button{position:static;display:flex;align-items:center;gap:.35rem;padding:.35rem;border-radius:var(--shell-radius);cursor:pointer;transition:background .15s;border:none;background:transparent;color:var(--shell-surface-ink);text-decoration:none;outline:none;font-family:var(--shell-font);font-size:.95rem;font-weight:600}
#shell-home-button img{height:1.8rem;width:auto;display:block;filter:var(--shell-icon-filter)}
#shell-superbar-actions{margin-left:auto;display:flex;align-items:center;gap:.35rem}#shell-profile-button{display:flex;overflow:hidden;padding:0}
#shell-profile-button img{width:100%;height:100%;object-fit:cover;display:block}
#shell-profile-button .initial{font-size:.95rem;font-weight:700}
#shell-profile-button.guest svg{width:1.3rem;height:1.3rem;opacity:.75}
#shell-session-actions{align-self:stretch;display:flex;flex-direction:column;gap:.2rem;margin:0;padding:0;border:0}#shell-session-actions h2{margin:0;padding:.15rem .7rem .35rem;color:var(--ui-muted-ink);font-size:.7rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
#shell-profile-section{align-self:stretch;display:flex;flex-direction:column;gap:.2rem;margin:0;padding:0;border:0}#shell-profile-section h2{margin:0;padding:.15rem .7rem .35rem;color:var(--ui-muted-ink);font-size:.7rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}#shell-profile-mode-button,#shell-profile-actions button{width:100%;min-height:2.5rem;justify-content:flex-start;padding:.55rem .7rem;text-align:left}#shell-profile-actions{display:flex;flex-direction:column;gap:.2rem}
.shell-profile-action-icon{width:1.35rem;height:1.35rem;display:grid;place-items:center;flex:0 0 auto;font-size:1.15rem}.shell-profile-action-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#shell-profile-actions button:disabled{opacity:.55;cursor:default}
#shell-profile-actions{gap:.4rem}
#shell-profile-actions button{height:auto;min-height:2.5rem;border-radius:12px;background:var(--ui-raised);border:1px solid var(--ui-border);gap:.55rem;font-size:.85rem}
#shell-notification-section{align-self:stretch;display:flex;flex-direction:column;gap:.2rem;margin:0;padding:0;border:0}#shell-notification-section h2{margin:0;padding:.15rem .7rem .35rem;color:var(--ui-muted-ink);font-size:.7rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}#shell-notif-button{position:relative;display:flex}
#shell-notif-button .badge{position:absolute;top:-.3rem;right:-.3rem;min-width:1.15rem;height:1.15rem;padding:0 .3rem;border-radius:999px;background:#cf5c5c;color:#fff;font-size:.65rem;font-weight:700;display:flex;align-items:center;justify-content:center;line-height:1;box-shadow:0 0 0 2px rgba(15,15,15,.9)}
#search-toggle:hover,#shell-home-button:hover,#shell-profile-button:hover,#shell-profile-mode-button:hover,#shell-profile-actions button:not(:disabled):hover,#shell-notif-button:hover{background:var(--ui-hover);color:var(--shell-surface-ink)}

#search-toggle:focus-visible,#shell-home-button:focus-visible,#shell-profile-button:focus-visible,#shell-profile-mode-button:focus-visible,#shell-profile-actions button:focus-visible,#shell-notif-button:focus-visible{outline:2px solid var(--shell-accent);outline-offset:2px}
#shell-search.minimized #search-toggle{display:flex}
#shell-search.minimized #search-input,
#shell-search.minimized #search-results{display:none}
#search-input{width:100%;padding:.75rem 1.25rem;border:1px solid var(--ui-border);border-radius:var(--shell-radius);background:var(--shell-field);color:var(--shell-field-ink);caret-color:var(--shell-field-ink);font-size:1rem;outline:none;transition:border-color .15s,box-shadow .15s;box-shadow:inset 0 1px rgba(0,0,0,.15)}
#search-input:focus{border-color:var(--shell-accent);background:var(--shell-field);box-shadow:0 0 0 2px color-mix(in srgb,var(--shell-accent) 38%,transparent)}
#search-input::placeholder{color:var(--ui-field-muted);opacity:1}
#search-results{display:none;position:absolute;top:calc(100% + .5rem);right:0;left:0;background:var(--shell-surface);border:1px solid var(--ui-border);border-radius:var(--shell-radius);box-shadow:0 8px 24px rgba(0,0,0,.5);overflow:hidden;max-height:18rem;overflow-y:auto}
#shell-search:not(.minimized)[aria-expanded="true"] #search-results{display:block}
#search-results button{display:block;width:100%;padding:.75rem 1.25rem;border:none;background:transparent;color:var(--shell-surface-ink);font-size:.95rem;text-align:left;cursor:pointer;transition:background .1s}
#search-results button:hover,#search-results button[aria-selected="true"]{background:var(--shell-accent-dark);color:var(--shell-accent-ink)}
#search-results button .tag{margin-left:.5rem;font-size:.7rem;padding:.1rem .45rem;border-radius:4px;background:#222;color:#666;white-space:nowrap}
#app-container{flex:1;align-self:center;width:min(60rem,100%);min-width:0;min-height:0;display:flex;flex-direction:column;padding:var(--shell-space) calc(var(--shell-space) + var(--shell-space)) calc(var(--shell-space) + var(--shell-space))}
/* The inbox is a workspace surface: on wide screens it reaches each rail
   while its responsive gutters keep notification content comfortably inset. */
@media (min-width:701px){#app-container:has(.app-mount[data-app="notifications"]){align-self:stretch;width:100%;padding:clamp(.75rem,2vw,1.5rem) clamp(1rem,3vw,2.5rem) clamp(1rem,2vw,2rem)}}
.app-host{flex:1;display:flex;flex-direction:column;min-height:0;width:100%}
.app-mount{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;font-family:var(--shell-font)}
.settings-page{box-sizing:border-box;align-self:stretch;display:flex;flex:1;min-width:0;min-height:0;flex-direction:column;width:100%;overflow:auto;padding:0;background:transparent;color:var(--ui-ink)}
.settings-page>.profile-page{margin:0 auto}
.profile-settings-heading{margin:0;color:var(--ui-ink);font-size:1.5rem}
#shell-entry-overlay{position:fixed;inset:0;z-index:5000;display:grid;place-items:center;padding:1rem;background:rgb(0 0 0/.78);color:var(--shell-surface-ink)}
#shell-entry-overlay[hidden]{display:none}.shell-entry-card{width:min(25rem,100%);padding:1.25rem;border:1px solid color-mix(in srgb,var(--shell-accent) 48%,var(--ui-border));border-radius:var(--shell-radius);background:var(--shell-surface);box-shadow:0 18px 60px rgb(0 0 0/.55)}.shell-entry-card h1,.shell-entry-card p{margin:0}.shell-entry-card h1{font-size:1.1rem}.shell-entry-card p{margin-top:.55rem;line-height:1.45}.shell-entry-card button{margin-top:1rem;margin-right:.5rem;padding:.5rem .85rem;border:1px solid var(--ui-border);border-radius:5px;background:var(--shell-accent-dark);color:var(--shell-accent-dark-ink);cursor:pointer}.shell-entry-card button:focus-visible{outline:2px solid var(--shell-accent);outline-offset:2px}.shell-entry-status{min-height:1.3rem;font-size:.82rem;color:var(--ui-muted-ink)}
.shell-entry-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem;margin-top:1rem}.shell-entry-card .shell-entry-tile{display:grid;place-items:center;gap:.25rem;min-height:7rem;margin:0;padding:.65rem;background:color-mix(in srgb,var(--shell-accent) 12%,var(--shell-surface));text-align:center}.shell-entry-tile img,.shell-entry-avatar{width:2.6rem;height:2.6rem;border-radius:50%;object-fit:cover;background:var(--shell-accent);color:var(--shell-accent-dark-ink);display:grid;place-items:center}.shell-entry-tile small{color:var(--ui-muted-ink)}.shell-entry-card form{display:grid;gap:.65rem;margin-top:1rem}.shell-entry-card label{display:grid;gap:.25rem;font-size:.86rem}.shell-entry-card input{min-width:0;padding:.55rem;border:1px solid var(--ui-border);border-radius:5px;background:var(--shell-surface);color:var(--shell-surface-ink)}.shell-entry-card form button{justify-self:start}
#root[data-entry-active="true"]{display:none!important}#shell-entry-overlay{padding:2rem;background:#000}.shell-entry-header{position:absolute;top:1.5rem;left:2rem;display:flex;align-items:center;gap:.6rem;font-size:1.1rem;letter-spacing:.02em}.shell-entry-brand-mark{width:2rem;height:2rem;object-fit:contain}.shell-entry-main{display:grid;grid-template-columns:minmax(16rem,24rem) minmax(19rem,27rem);gap:3rem;align-items:center;width:min(58rem,100%)}.shell-entry-identities{align-self:stretch;padding-right:2rem;border-right:1px solid color-mix(in srgb,var(--shell-accent) 25%,transparent)}.shell-entry-identities h2{margin:0 0 1rem;font-size:.8rem;letter-spacing:.14em;text-transform:uppercase;color:var(--ui-muted-ink)}.shell-entry-identities .shell-entry-tiles{display:flex;flex-direction:column;gap:.45rem;margin:0}.shell-entry-identities .shell-entry-tile{display:grid;grid-template-columns:2.5rem minmax(0,1fr);place-items:center start;min-height:3.55rem;margin:0;padding:.5rem .6rem;border:1px solid color-mix(in srgb,var(--ui-border),#8fc9f1 16%);border-radius:min(var(--shell-radius),6px);background:linear-gradient(180deg,rgb(255 255 255/.36),rgb(255 255 255/.1) 46%,rgb(0 0 0/.1) 50%,rgb(255 255 255/.06)),color-mix(in srgb,var(--ui-raised) 82%,transparent);color:var(--ui-ink);box-shadow:inset 0 1px rgb(255 255 255/.58),inset 0 -1px rgb(0 0 0/.24),0 1px 2px rgb(0 0 0/.3);text-align:left;cursor:pointer}.shell-entry-identities .shell-entry-tile:hover{border-color:color-mix(in srgb,var(--ui-accent-strong),#bde8ff 42%);background:linear-gradient(180deg,rgb(255 255 255/.5),rgb(255 255 255/.16) 46%,rgb(20 95 155/.14) 50%,rgb(255 255 255/.08)),color-mix(in srgb,var(--ui-hover) 72%,var(--ui-accent-mid));box-shadow:inset 0 1px rgb(255 255 255/.72),inset 0 -1px rgb(0 0 0/.18),0 0 7px color-mix(in srgb,var(--ui-accent) 54%,transparent)}.shell-entry-identities .shell-entry-tile:focus-visible{outline:2px solid color-mix(in srgb,var(--ui-accent),#d9f3ff 36%);outline-offset:2px}.shell-entry-identities .shell-entry-tile.selected{border-color:var(--ui-accent-strong);background:linear-gradient(180deg,rgb(255 255 255/.42),rgb(255 255 255/.1) 46%,rgb(0 0 0/.16) 49%),var(--ui-accent-dark);color:var(--ui-accent-dark-ink);box-shadow:inset 0 1px rgb(255 255 255/.58),inset 0 -1px rgb(0 0 0/.28),0 0 6px color-mix(in srgb,var(--ui-accent) 52%,transparent)}.shell-entry-identities .shell-entry-avatar{width:2.25rem;height:2.25rem;font-size:.78rem}.shell-entry-identity-name{min-width:0;align-self:center;overflow:hidden;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.shell-entry-guest-avatar{background:color-mix(in srgb,var(--ui-accent-dark) 62%,var(--ui-surface));color:var(--ui-accent-dark-ink)}.shell-entry-main .shell-entry-card{width:100%;box-sizing:border-box;background:color-mix(in srgb,var(--shell-surface) 92%,#000)}@media (max-width:650px){#shell-entry-overlay{padding:1rem}.shell-entry-header{top:1rem;left:1rem}.shell-entry-main{grid-template-columns:1fr;gap:1.25rem;margin-top:3rem}.shell-entry-identities{padding:0;border:0}.shell-entry-identities .shell-entry-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.shell-entry-identities .shell-entry-tile{grid-template-columns:1fr;place-items:center;min-height:5rem;text-align:center}.shell-entry-identity-name{align-self:start}}
/* The entry gateway reuses the shared flat card and action controls. Only its
   spacing and form flow are shell-specific. */
#shell-entry-overlay .shell-entry-card.chrome-window{padding:1.25rem;border-color:color-mix(in srgb,var(--ui-accent) 48%,var(--ui-border));background:color-mix(in srgb,var(--shell-surface) 76%,transparent)!important;color:var(--ui-ink)}
#shell-entry-overlay .shell-entry-card .shell-entry-actions,#shell-entry-overlay .shell-entry-card form{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}
#shell-entry-overlay .shell-entry-card form{margin-top:1rem}
#shell-entry-overlay .shell-entry-card form label{width:100%;display:grid;gap:.25rem}
#shell-entry-overlay .shell-entry-card :is(.shell-entry-actions,form) .chrome-button{margin:0!important;padding:.45rem .8rem!important}
/* The profile is a loose stack of independently floating panels over the
   viewed user's scoped page backdrop. The shell rails remain outside this
   wrapper, so they continue to use the viewer's theme. */
.profile-page{width:100%;min-height:100%;display:flex;flex-direction:column;gap:1rem;padding:clamp(.75rem,2vw,1.5rem);background:var(--profile-page-background,transparent);color:var(--profile-page-ink,inherit)}
.profile-page>:is(.profile-header,.profile-widgets,.profile-editor-bar,.theme-editor){width:min(100%,56rem);margin-inline:auto}
.profile-page,.profile-page *{box-sizing:border-box}
/* every floating panel — the header (a single full-width panel spanning
   both of the widget grid's 2 columns below it), each widget tile, and
   (Settings Theme tab only) the editor bar / theme editor — shares one
   surface treatment */
.profile-header,.widget,.profile-editor-bar,.theme-editor{
  border:1px solid #2a2a2a;border-radius:12px;background:var(--profile-surface,#161616);
  color:var(--profile-ink,#e0e0e0);
  box-shadow:0 6px 20px rgba(0,0,0,.35);
}
.profile-header{overflow:hidden;text-align:center;padding-bottom:1.25rem}
.profile-banner{height:clamp(9rem,22vw,14rem);position:relative;overflow:hidden}
.profile-banner img{width:100%;height:100%;object-fit:cover;display:block}
.profile-avatar{width:4.5rem;height:4.5rem;border-radius:50%;background:#222;border:3px solid #161616;margin:-2.25rem auto .5rem;display:flex;align-items:center;justify-content:center;font-size:2rem;font-weight:700;overflow:hidden;position:relative}
.profile-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.avatar-upload,.banner-upload{cursor:pointer;outline:none}
.avatar-upload:focus-visible,.banner-upload:focus-visible{box-shadow:0 0 0 3px var(--profile-accent,#4a9eff)}
.media-upload-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.58);color:#fff;font-size:.72rem;font-weight:700;opacity:0;transition:opacity .15s}
.avatar-upload:hover .media-upload-overlay,.avatar-upload:focus-visible .media-upload-overlay,.avatar-upload[data-uploading="1"] .media-upload-overlay,.banner-upload:hover .media-upload-overlay,.banner-upload:focus-visible .media-upload-overlay,.banner-upload[data-uploading="1"] .media-upload-overlay{opacity:1}
.avatar-upload[data-uploading="1"] .media-upload-overlay,.banner-upload[data-uploading="1"] .media-upload-overlay{font-size:0}
.avatar-upload[data-uploading="1"] .media-upload-overlay::after,.banner-upload[data-uploading="1"] .media-upload-overlay::after{content:'Uploading';font-size:.72rem}
.avatar-upload[data-error="1"],.banner-upload[data-error="1"]{box-shadow:0 0 0 3px #c44}
.media-file-input{display:none}
.profile-header h2{font-size:1.4rem;margin:.25rem 0 0}
.profile-header .profile-display-input{width:min(100%,22rem);margin:.5rem auto 0;text-align:center;font-size:1.4rem;font-weight:700}
.profile-username{color:var(--ui-muted-ink);font-size:.95rem;margin:0 0 .75rem}
.profile-account-meta{display:flex;align-items:center;justify-content:center;gap:.5rem;min-height:1rem;margin:-.45rem 0 .75rem;font-size:.8rem;color:var(--profile-ink,#e0e0e0)}
.profile-presence{color:var(--ui-muted-ink);}
.profile-presence::before{content:'';display:inline-block;width:.5rem;height:.5rem;border-radius:50%;background:#666;margin-right:.4rem}
.profile-presence.online{color:var(--ui-success-ink,var(--ui-ink))}
.profile-presence.online::before{background:#3fb950;box-shadow:0 0 0 2px rgba(63,185,80,.18)}
.profile-activity,.profile-joined{color:var(--ui-muted-ink);}
.profile-activity::before,.profile-joined::before{content:'\00b7';margin-right:.5rem}
.profile-bio{--profile-bio-text-inset:1.5rem;font-size:1rem;padding:0 var(--profile-bio-text-inset);white-space:pre-wrap;overflow-wrap:anywhere}
/* Offset the field's own border and inline padding so edit mode preserves
   the read-only bio's text column and line wrapping. */
/* Bio links share readable shell ink in profiles, summaries, and previews. */
.profile-page .profile-bio a{color:color-mix(in srgb,var(--ui-ink) 85%,var(--ui-accent) 15%);text-decoration:underline;text-underline-offset:.18em;text-decoration-thickness:.08em}
.profile-page .profile-bio a:hover{color:var(--ui-ink);text-decoration-thickness:.12em}
.profile-page .profile-bio a:focus-visible{outline:2px solid var(--ui-ink);outline-offset:3px;border-radius:2px}
.profile-bio[data-editing]{padding-inline:calc(var(--profile-bio-text-inset) - .5rem - 1px)}
.profile-hint{color:var(--ui-page-muted-ink);font-size:.95rem;padding:1rem}
.profile-hint-inline{color:var(--ui-page-muted-ink);font-style:italic}
.profile-editable{cursor:pointer;border-radius:6px;transition:box-shadow .15s}
.profile-editable:hover{box-shadow:0 0 0 1px #444 inset}
.profile-field-input{background:#1a1a1a;border:1px solid #444;border-radius:6px;color:#e0e0e0;padding:.3rem .5rem;font:inherit;width:100%;box-sizing:border-box;resize:vertical}
/* widgets: a 2-column floating layout — each widget is its own tile,
   free to settle at whatever height it needs (masonry via CSS columns,
   not a strict grid), collapsing to 1 column on narrow viewports */
.profile-widgets{column-count:2;column-gap:1rem;text-align:left}
@media (max-width:640px){.profile-widgets{column-count:1}.profile-account-meta{flex-wrap:wrap;padding:0 1rem}.profile-joined::before{content:'\00b7'}}
.widget{display:flex;align-items:flex-start;gap:.5rem;break-inside:avoid;margin:0 0 1rem;padding:1rem;text-align:left}
.widget>:first-child{flex:1;min-width:0}
.widget-heading{font-size:1.1rem;font-weight:700;margin:0}
.widget-links{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.4rem}
.widget-links a{color:var(--profile-accent,#4a9eff);text-decoration:none}
.widget-links a:hover{text-decoration:underline}
.widget-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(4rem,1fr);gap:.5rem}
.widget-gallery-count-0{display:block}
.widget-gallery-item{min-height:4rem;aspect-ratio:1;border-radius:6px;background:#222;display:flex;align-items:center;justify-content:center;font-size:.7rem;overflow:hidden;position:relative}
.widget-gallery-count-1 .widget-gallery-item{grid-column:1/-1;aspect-ratio:16/10;min-height:9rem}
.widget-gallery-count-3 .widget-gallery-item:first-child,.widget-gallery-count-5 .widget-gallery-item:first-child{grid-row:span 2;aspect-ratio:auto}
.widget-gallery-count-6 .widget-gallery-item:nth-child(1),.widget-gallery-count-6 .widget-gallery-item:nth-child(4){grid-column:span 2;aspect-ratio:2/1}
.widget-gallery-item img{width:100%;height:100%;object-fit:cover;display:block}
.widget-gallery-item[data-image-viewer]{outline:none}
.widget-gallery-item[data-image-viewer]:focus-visible{box-shadow:0 0 0 3px var(--profile-accent,#4a9eff)}
#app-container .widget-gallery-remove{position:absolute;top:.35rem;right:.35rem;width:1.4rem;height:1.4rem;padding:0 !important;margin:0 !important;border-radius:50%;border:1px solid rgba(255,255,255,.35);background:rgba(0,0,0,.68);color:#fff;font-size:1rem !important;line-height:1;z-index:2;cursor:pointer}
#app-container .widget-gallery-remove:hover{background:rgba(160,24,24,.9)}
.widget-friends{display:grid;grid-template-columns:repeat(auto-fill,minmax(4.5rem,1fr));gap:.85rem}
.widget-friends-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.widget-friends-item{display:flex;flex-direction:column;align-items:center;gap:.35rem;border:0;padding:.2rem;margin:0;font:inherit;cursor:pointer;border-radius:8px}
/* All user collections share a bare avatar + username tile. The global
   app button chrome must not add a background, and the username follows
   the contrast ink of the surface containing it. */
#app-container .widget-friends-item{background:transparent!important;color:inherit!important;box-shadow:none!important}
.widget-friends-item:hover .widget-friends-name{text-decoration:underline}
.widget-friends-item:focus-visible{outline:none;box-shadow:0 0 0 3px var(--profile-accent,#4a9eff)}
.widget-friends-avatar{width:3rem;height:3rem;border-radius:50%;background:var(--profile-titlebar-start,var(--shell-accent-dark));color:var(--profile-titlebar-ink,var(--shell-accent-dark-ink));display:flex;align-items:center;justify-content:center;font-size:1.1rem;font-weight:700;overflow:hidden;flex-shrink:0}
.widget-friends-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.widget-friends-name{font-size:.72rem;max-width:4.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.widget-friends-view-all{grid-column:3;grid-row:2}.widget-friends-view-all .widget-friends-avatar{border-radius:3px;background:var(--profile-titlebar-start,var(--shell-accent-dark));font-size:1.35rem}
.widget-posts{display:flex;flex-direction:column;gap:.55rem;margin-top:.55rem}
.widget-embed iframe{width:100%;aspect-ratio:16/9;border:0;border-radius:6px;display:block}
.widget-embed-meta{color:var(--ui-muted-ink);font-size:.8rem;margin:.35rem 0 0}
.widget-error{color:var(--ui-muted-ink);font-size:.85rem;font-style:italic;margin:0}
.widget-controls{flex-shrink:0;display:flex;gap:.25rem}
.widget-controls button{font-size:.7rem !important;padding:.1rem .4rem !important;margin:0 !important;line-height:1.4}
.widget-list-edit{color:var(--ui-muted-ink);display:flex;flex-direction:column;gap:.35rem;margin-top:.5rem;font-size:.85rem;}
.widget-list-row{display:flex;align-items:center;gap:.4rem}
.widget-list-row span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.widget-list-row button{font-size:.75rem !important;padding:.2rem .5rem !important;margin:0 !important}
/* editor bar / theme editor (Settings Theme tab only): their own
   full-width floating panels, same family as the header */
.profile-editor-bar{display:flex;flex-wrap:wrap;gap:.4rem;padding:1rem}
.profile-editor-bar button{font-size:.8rem !important;padding:.3rem .6rem !important;margin:0 !important}
.theme-editor{display:flex;flex-wrap:wrap;gap:.75rem;align-items:flex-end;padding:1rem;font-size:.8rem}
.theme-editor label{color:var(--ui-muted-ink);display:flex;flex-direction:column;gap:.2rem;}
.theme-editor input[type=color]{background:var(--ui-field);border:1px solid var(--ui-border);border-radius:6px;color:var(--ui-field-ink);padding:.2rem}
.background-editor-overlay{position:fixed;inset:0;z-index:2800;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.62);padding:1rem}
.background-editor-modal{width:min(30rem,94vw)}
.background-editor-head{font:700 .78rem/1.2 Arial,Tahoma,sans-serif}
.background-editor-title,.background-editor-row,.background-editor-actions{display:flex;align-items:center;gap:.75rem}
.background-editor-title{min-width:0}.background-editor-head h2{overflow:hidden;margin:0;font:inherit;text-overflow:ellipsis;white-space:nowrap}
.background-editor-body{display:flex;flex-direction:column;gap:.8rem;padding:.85rem}
.background-editor-tabs,.background-color-tabs,.theme-color-tabs{display:flex}
.background-editor-tabpanel,.background-color-tabpanel,.theme-color-tabpanel{padding:.75rem}
.background-editor-tabpanel,.background-color-tabpanel{display:flex;flex-direction:column;gap:.75rem}
.background-editor-row{justify-content:space-between}.background-editor-actions{justify-content:space-between;padding-top:.2rem}
.background-editor-modal button{margin:0 !important;padding:.35rem .65rem !important;font-size:.82rem !important}
.background-editor-modal .background-editor-close{width:1.25rem;height:1.15rem;padding:0 !important;border-radius:0 !important;font:bold 1rem/1 Arial,Tahoma,sans-serif !important}
.background-editor-row span{min-width:0;overflow:hidden;font-size:.82rem;text-overflow:ellipsis;white-space:nowrap;color:var(--ui-muted-ink)}
.background-editor-field{display:flex;flex-direction:column;gap:.45rem;font-size:.82rem}
.background-image-preview{height:9rem;overflow:hidden;border:1px solid var(--ui-border);background:var(--ui-sunken);box-shadow:inset 1px 1px var(--ui-dark),inset -1px -1px var(--ui-light)}
.background-image-preview img{display:block;width:100%;height:100%;object-fit:cover}
.background-editor-modal .theme-color-preview{height:2.25rem}.background-editor-modal .theme-color-palette{gap:.4rem}
.background-editor-modal button:disabled{cursor:default;opacity:.45}
.background-mode-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.4rem}
#app-container .background-mode-options button[aria-pressed=true]{border-color:var(--profile-accent,#4a9eff);box-shadow:0 0 0 1px var(--profile-accent,#4a9eff) inset;color:#fff}
.header-editor-overlay{position:fixed;inset:0;z-index:2825;display:flex;align-items:center;justify-content:center;padding:1rem;background:rgba(0,0,0,.62)}
.header-editor-modal{width:min(30rem,94vw)}
.header-editor-head h2{min-width:0;overflow:hidden;margin:0;font:inherit;text-overflow:ellipsis;white-space:nowrap}
.header-editor-body{padding:.85rem}.header-editor-tabs,.header-color-tabs{display:flex}.header-editor-tabpanel,.header-color-tabpanel{padding:.75rem}.header-editor-tabpanel{display:flex;flex-direction:column;align-items:stretch;gap:.75rem}.header-editor-actions{display:flex;justify-content:flex-end;gap:.5rem}
.header-editor-modal button{margin:0 !important;padding:.35rem .65rem !important;font-size:.82rem !important}
.header-editor-modal .header-editor-close{width:1.25rem;height:1.15rem;padding:0 !important;border-radius:0 !important;font:bold 1rem/1 Arial,Tahoma,sans-serif !important}
.header-media-preview{display:flex;align-items:center;justify-content:center;width:100%;height:10rem;overflow:hidden;border:1px solid var(--ui-border);background:var(--ui-sunken);color:var(--ui-muted-ink);box-shadow:inset 1px 1px var(--ui-dark),inset -1px -1px var(--ui-light)}
.header-media-preview img{display:block;width:100%;height:100%;object-fit:cover}
.theme-font-serif{font-family:Georgia,'Times New Roman',serif}
.theme-font-mono{font-family:'SFMono-Regular',Consolas,monospace}
.theme-density-compact .profile-widgets{column-gap:.5rem}
.theme-density-compact .widget{margin-bottom:.5rem}
.theme-density-spacious .profile-widgets{column-gap:1.5rem}
.theme-density-spacious .widget{margin-bottom:1.5rem}
/* Profile panels use the same Windows-98 dark chrome as the homepage
   widgets. The profile owner controls the titlebar hue, while mixing it
   into black keeps each window recognizably dark and legible. */
.profile-page{--profile-titlebar-start:#1d3a57;--profile-titlebar-end:#254a70;--profile-titlebar-ink:#dcecff}
.profile-page .profile-header,.profile-page .widget,.profile-page .profile-editor-bar,.profile-page .theme-editor{border:1px solid #333;border-radius:0;background:var(--profile-surface,#161616);box-shadow:inset 1px 1px #3a3a3a,inset -1px -1px #050505,4px 5px 18px rgba(0,0,0,.45);font-family:Arial,Tahoma,sans-serif;overflow:hidden}
.profile-page .profile-header::before,.profile-page .profile-editor-bar::before,.profile-page .theme-editor::before{display:flex;align-items:center;min-height:1.65rem;margin:2px 2px 0;padding:0 .35rem;border-radius:min(var(--shell-radius),5px) min(var(--shell-radius),5px) 0 0;background:linear-gradient(90deg,var(--profile-titlebar-start) 0%,var(--profile-titlebar-end) 100%);color:var(--profile-titlebar-ink);font-size:.78rem;font-weight:700;line-height:1.2}
.profile-page .profile-header::before{content:'Profile'}
.profile-page .widget{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:0}
.profile-page .widget>div:first-child:not(.widget-titlebar),.profile-page .widget>.widget-content{display:flex;flex-direction:column;gap:.65rem;min-width:0}
.profile-page .widget .widget-heading,.profile-page .widget-embed::before{display:flex;align-items:center;min-height:1.65rem;margin:2px 2px 0;padding:0 .35rem;border-radius:min(var(--shell-radius),5px) min(var(--shell-radius),5px) 0 0;background:linear-gradient(90deg,var(--profile-titlebar-start) 0%,var(--profile-titlebar-end) 100%);color:var(--profile-titlebar-ink);font:700 .78rem/1.2 Arial,Tahoma,sans-serif}
.profile-page .widget-embed::before{content:'Embed'}
.profile-page .widget>div:first-child:not(.widget-titlebar)>:not(.widget-heading),.profile-page .widget>.widget-content>:not(.widget-heading){margin-left:.85rem;margin-right:.85rem}
.profile-page .widget>div:first-child:not(.widget-titlebar)>:last-child,.profile-page .widget>.widget-content>:last-child{margin-bottom:.85rem}
.profile-page .widget-titlebar{display:flex;align-items:center;min-height:1.65rem;margin:2px 2px 0;padding:0 .2rem 0 .35rem;border-radius:min(var(--shell-radius),5px) min(var(--shell-radius),5px) 0 0;background:linear-gradient(90deg,var(--profile-titlebar-start) 0%,var(--profile-titlebar-end) 100%);color:var(--profile-titlebar-ink);font:700 .78rem/1.2 Arial,Tahoma,sans-serif}
.profile-page .widget-titlebar .widget-heading{flex:1;min-width:0;min-height:0;margin:0;padding:0;overflow:hidden;background:transparent;color:inherit;font:inherit;text-overflow:ellipsis;white-space:nowrap}
.profile-page .widget-titlebar .widget-controls{display:flex;align-items:center;gap:2px;margin-left:auto}
.profile-page .widget-titlebar .widget-controls button{width:1.25rem;height:1.15rem;padding:0 !important;font:bold .75rem/1 Arial,Tahoma,sans-serif !important}
.profile-page .widget-titlebar .widget-controls button:disabled{cursor:default;opacity:.5}
.profile-page .widget-controls button,.profile-page .profile-editor-bar button{border:1px solid #050505 !important;border-radius:0 !important;background:#222 !important;color:#e0e0e0 !important;box-shadow:inset 1px 1px #444,inset -1px -1px #050505}
.profile-page .widget-controls button:active,.profile-page .profile-editor-bar button:active{box-shadow:inset 1px 1px #050505,inset -1px -1px #444}
.profile-page .profile-editor-bar::before{content:'Add Section';flex-basis:100%}
.profile-page .profile-editor-bar{padding:0;gap:.45rem}
.profile-page .profile-editor-bar button{margin:0 0 .85rem .85rem !important}
.profile-page .profile-editor-bar button:last-child{margin-right:.85rem !important}
.profile-page .theme-editor::before{content:'Theme';flex-basis:100%}
.profile-page .theme-editor{padding:0;gap:.75rem}
.profile-page .theme-editor label{color:var(--ui-muted-ink);margin:0 0 .85rem .85rem}
.profile-page .theme-editor label:last-child{margin-right:.85rem}
.theme-background-button,.theme-header-button{align-self:flex-end;margin:0 0 .85rem .1rem !important;padding:.3rem .65rem !important}
.theme-color-palette-heading{color:var(--ui-muted-ink);margin:.15rem 0 -.35rem;font-size:.72rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;}.theme-color-preview{height:3rem;border:1px solid #050505;box-shadow:inset 1px 1px rgba(255,255,255,.25),inset -1px -1px rgba(0,0,0,.55)}
.theme-color-hex{box-sizing:border-box;width:100%;border:1px solid #444;background:#0f0f0f;color:#e0e0e0;padding:.45rem .55rem;font:13px monospace}.theme-color-palette{display:grid;grid-template-columns:repeat(5,1fr);gap:.5rem}.theme-color-swatch{aspect-ratio:1;border:1px solid #050505 !important;border-radius:0 !important;padding:0 !important;margin:0 !important;box-shadow:inset 1px 1px rgba(255,255,255,.3),inset -1px -1px rgba(0,0,0,.55)}.theme-color-swatch:hover,.theme-color-swatch[aria-pressed=true]{outline:2px solid #fff;outline-offset:2px}
.images-page{box-sizing:border-box;align-self:stretch;display:flex;flex:1;min-width:0;min-height:0;flex-direction:column;gap:0;overflow:hidden;background:var(--ui-surface);color:var(--ui-ink)}
.images-workspace{flex:1;min-height:0;overflow:auto;background:var(--ui-surface);color:var(--ui-ink);container-type:inline-size}
.images-hint{margin:0;padding:1rem;color:var(--ui-muted-ink);font-size:.82rem}
.images-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(8.5rem,1fr));align-content:start;gap:.8rem;padding:.8rem}
.images-page .images-card{position:relative;min-width:0;display:flex;flex-direction:column;align-items:stretch;gap:.35rem;padding:.35rem;border:1px solid transparent;border-radius:var(--ui-control-radius,10px)!important;background:transparent;color:var(--ui-field-ink)}
.images-page .images-card:hover{border-color:color-mix(in srgb,var(--ui-accent) 48%,transparent);background:color-mix(in srgb,var(--ui-accent) 15%,var(--ui-field))}.images-page .images-card:focus-within{border-color:var(--ui-accent-strong);background:color-mix(in srgb,var(--ui-accent) 22%,var(--ui-field))}
.images-thumbnail{height:7.25rem;display:flex;align-items:center;justify-content:center;padding:.3rem;overflow:hidden;border:1px solid var(--ui-dark);background:repeating-conic-gradient(color-mix(in srgb,var(--ui-field),#777 10%) 0 25%,var(--ui-field) 0 50%) 50%/12px 12px;box-shadow:inset 1px 1px var(--ui-sunken),inset -1px -1px var(--ui-highlight);cursor:zoom-in;outline:none}
.images-thumbnail img{display:block;width:100%;height:100%;object-fit:contain}.images-thumbnail:focus-visible{outline:1px dotted var(--ui-field-ink);outline-offset:2px}
.images-meta{min-width:0;display:flex;flex-direction:column;align-items:center;gap:.15rem;padding:0 .2rem;text-align:center;font-size:.74rem}.images-file-name{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.77rem}.images-meta span{max-width:100%;overflow:hidden;color:var(--ui-muted-ink);text-overflow:ellipsis;white-space:nowrap}
#app-container .images-delete{align-self:center;font-size:.7rem!important;padding:.18rem .55rem!important;margin:.1rem 0 0!important;opacity:0}.images-card:hover .images-delete,.images-card:focus-within .images-delete{opacity:1}.images-page button.chrome-button{border-color:var(--ui-border)!important;background:var(--ui-raised)!important;color:var(--ui-ink)!important;box-shadow:inset 1px 1px var(--ui-light),inset -1px -1px var(--ui-dark)}.images-page button.chrome-button:hover{background:var(--ui-hover)!important}.images-page button.chrome-button:active{box-shadow:inset 1px 1px var(--ui-dark),inset -1px -1px var(--ui-light)}.images-page button.chrome-button-danger{border-color:var(--ui-danger-border)!important;background:var(--ui-danger)!important;color:var(--ui-danger-ink)!important}
.images-statusbar{flex:0 0 auto;padding:.22rem .5rem;border-top:1px solid var(--ui-border);font-size:.72rem;color:var(--ui-muted-ink)}
@media (max-width:560px){.images-grid{grid-template-columns:repeat(auto-fill,minmax(7rem,1fr));gap:.4rem;padding:.45rem}.images-thumbnail{height:6rem}.images-delete{opacity:1!important}}
.hertz-page{box-sizing:border-box;align-self:stretch;display:flex;flex:1;min-width:0;min-height:0;max-height:none;flex-direction:column;background:var(--ui-surface);color:var(--ui-ink)}
#app-container .hertz-app-back{min-height:1.5rem;margin:0!important;padding:.2rem .55rem!important;font-size:.72rem!important;white-space:nowrap}
.hertz-titlebar-icon{font-style:normal}.hertz-titlebar-icon::after{content:'♫';left:1px;right:auto;top:-2px;height:auto;background:transparent;box-shadow:none;color:var(--ui-muted-ink);font-size:11px}
.hertz-app-body{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:.75rem;padding:.65rem;background:var(--ui-surface);color:var(--ui-ink)}
.hertz-upload-status{margin:0 .45rem;color:var(--ui-muted-ink);font-size:.72rem;white-space:nowrap}
.hertz-toolbar-actions{display:flex;gap:.5rem}
.hertz-tab-anchor{position:relative;z-index:5;flex:0 0 auto;min-width:0;padding:.35rem .65rem 0;background:var(--ui-surface);border-bottom:1px solid var(--ui-border)}
.hertz-tabs{display:flex;align-items:flex-end;gap:0;min-width:0;overflow-x:auto;padding:0;position:relative;z-index:2}
#app-container button.hertz-tab{position:relative;top:1px;min-width:8rem;margin:0 -1px 0 0;padding:.4rem .9rem;border:1px solid var(--ui-border);border-bottom-color:var(--ui-border);border-radius:var(--ui-control-radius,10px)!important;background:var(--ui-raised);color:var(--ui-muted-ink);box-shadow:none;font-size:.8rem}
#app-container button.hertz-tab[aria-selected=true]{z-index:1;border-bottom-color:var(--ui-surface);font-weight:700;background:var(--ui-surface);color:var(--ui-ink)}
#app-container button.hertz-tab:focus-visible{outline:1px dotted var(--ui-ink);outline-offset:-5px}
.hertz-app-body.hertz-board-body{gap:0;margin:0;padding:0}.hertz-board-panel{display:flex;flex:1;min-height:0;flex-direction:column;margin:0;padding:0;border:1px solid var(--ui-border);border-top:0;background:var(--ui-surface);color:var(--ui-ink);box-shadow:none}
.hertz-board-toolbar{justify-content:space-between;margin-bottom:.5rem}
.hertz-collection-filters{display:flex;align-items:center;flex-wrap:wrap;gap:.35rem .7rem;margin:.45rem .65rem;padding:.4rem .55rem;border:1px solid var(--ui-border);background:var(--ui-raised);font-size:.76rem}.hertz-collection-filters legend{padding:0 .2rem;font-weight:700}.hertz-collection-filter-options{display:flex;flex-wrap:wrap;gap:.35rem .7rem}.hertz-collection-filter{display:flex;align-items:center;gap:.3rem;cursor:pointer}.hertz-collection-filter input{margin:0}
.hertz-board-toolbar h2{margin:0;color:var(--ui-ink);font-size:1rem}
.hertz-main-controls{display:flex;align-items:center;justify-content:flex-end;gap:.5rem;flex:1}
.hertz-toolbar-search{max-width:22rem;min-width:10rem}
#app-container .hertz-btn{font-size:.85rem;padding:.35rem .8rem;margin:0;border:1px solid var(--ui-border);border-radius:min(var(--shell-radius),8px);background:var(--ui-raised);color:var(--ui-ink);box-shadow:none;cursor:pointer;transition:none}
#app-container .hertz-btn:hover{background:var(--ui-hover);color:var(--ui-ink)}
#app-container .hertz-btn:active{background:var(--ui-hover)}
#app-container .hertz-btn-primary{border-color:var(--ui-accent-strong);background:var(--ui-accent-dark);color:var(--ui-accent-dark-ink)}
#app-container .hertz-btn-primary:hover{background:var(--ui-accent-mid);color:var(--ui-accent-mid-ink)}
#app-container .hertz-btn-danger{border-color:var(--ui-danger-border);background:var(--ui-danger);color:var(--ui-danger-ink)}
#app-container .hertz-btn-danger:hover{background:color-mix(in srgb,var(--ui-danger),var(--ui-ink) 10%)}
#app-container .hertz-btn-icon{padding:.35rem .55rem;font-size:.9rem}
.hertz-hint{color:var(--ui-muted-ink);font-size:.85rem;padding:.65rem}
.hertz-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(16rem,1fr));gap:1rem}
.hertz-public-table-wrap{overflow-x:auto;border:1px solid var(--ui-border);border-radius:0;background:var(--ui-surface);box-shadow:none}.hertz-collections-table-wrap{flex:1;min-height:0;overflow:auto}
.hertz-public-table{width:100%;min-width:58rem;border-collapse:collapse;text-align:left;font-size:.86rem;table-layout:fixed}
.hertz-collection-detail-table{min-width:42rem}.hertz-collection-detail-table :is(.hertz-collection-object-column,.hertz-collection-object-cell){width:auto}.hertz-collection-detail-table :is(.hertz-tags-column,.hertz-tags-cell){width:9rem}.hertz-collection-detail-table :is(.hertz-collection-track-column,.hertz-collection-track-cell){width:10rem}.hertz-collection-detail-table :is(.hertz-collection-rating-column,.hertz-collection-rating-cell){width:6rem;text-align:right}.hertz-collection-detail-table .hertz-collection-actions-column{width:1%;white-space:nowrap}.hertz-collection-object-cell{min-width:0}.hertz-collection-object-identity{display:flex;align-items:center;gap:.65rem;min-width:0}.hertz-collection-object-identity .hertz-collection-art{width:2.35rem!important;min-width:2.35rem!important;max-width:2.35rem!important;height:2.35rem!important;min-height:2.35rem!important;max-height:2.35rem!important;flex-basis:2.35rem}#app-container .hertz-collection-object-name{min-width:0;margin:0!important;padding:0!important;overflow:hidden;border:0!important;background:transparent!important;box-shadow:none!important;color:var(--ui-ink)!important;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}#app-container .hertz-collection-object-name:hover{text-decoration:underline}#app-container .hertz-collection-object-name:focus-visible{outline:2px solid var(--ui-accent);outline-offset:2px}
.hertz-public-table th{padding:.6rem .75rem;border:1px solid var(--ui-border);background:var(--ui-raised);color:var(--ui-muted-ink);box-shadow:none;font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;white-space:nowrap}
.hertz-public-table th:has(.hertz-board-sort){padding:0}
#app-container .hertz-board-sort{display:block;width:100%;margin:0!important;padding:.6rem .75rem!important;border:0!important;border-radius:0!important;background:transparent!important;color:inherit!important;box-shadow:none!important;text-align:inherit;font:inherit;letter-spacing:inherit;text-transform:inherit;cursor:pointer}
#app-container .hertz-board-sort:hover{background:var(--ui-hover)!important;color:var(--ui-ink)!important}
#app-container .hertz-board-sort:focus-visible{outline:2px solid var(--ui-accent);outline-offset:-2px}
.hertz-public-table th[aria-sort=ascending] .hertz-board-sort::after,.hertz-public-table th[aria-sort=descending] .hertz-board-sort::after{margin-left:.35rem;font-size:.8em}.hertz-public-table th[aria-sort=ascending] .hertz-board-sort::after{content:'▲'}.hertz-public-table th[aria-sort=descending] .hertz-board-sort::after{content:'▼'}
.hertz-public-table td{padding:.62rem .75rem;border-bottom:1px solid var(--ui-border);vertical-align:middle;color:var(--ui-ink)}
.hertz-public-table tbody tr:last-child td{border-bottom:0}
.hertz-public-table tbody tr{background:var(--ui-surface);transition:none}
.hertz-public-table tbody tr:hover{background:var(--ui-hover)}
.hertz-library-table th:nth-child(1),.hertz-library-table td:nth-child(1){width:26%}
.hertz-library-table th:nth-child(2),.hertz-library-table td:nth-child(2){width:6.5rem}
.hertz-library-table th:nth-child(3),.hertz-library-table td:nth-child(3){width:9rem}
.hertz-library-table th:nth-child(4),.hertz-library-table td:nth-child(4),.hertz-library-table th:nth-child(5),.hertz-library-table td:nth-child(5){width:4.5rem;text-align:right}
.hertz-library-table th:nth-child(6),.hertz-library-table td:nth-child(6){width:5.25rem}
.hertz-library-table th:nth-child(7),.hertz-library-table td:nth-child(7){width:18rem}
.hertz-public-board-table{min-width:20rem}
.hertz-public-board-table :is(.hertz-preview-column,.hertz-public-track-preview-cell){width:4.25rem;text-align:center}.hertz-public-board-table :is(.hertz-track-column,.hertz-public-track-cell){width:auto}.hertz-public-board-table :is(.hertz-duration-column,.hertz-public-duration){width:5rem;text-align:right}.hertz-public-board-table :is(.hertz-rating-column,.hertz-rating-cell){width:5.5rem;text-align:right}.hertz-public-board-table :is(.hertz-plays-column,.hertz-public-play-count){width:4.5rem;text-align:right}
.hertz-public-board-table :is(.hertz-tags-column,.hertz-tags-cell){width:9rem;text-align:left}
.hertz-collections-table{min-width:32rem}.hertz-collections-table :is(.hertz-collection-art-column,.hertz-collection-art-cell){width:4.25rem;text-align:center}.hertz-collections-table :is(.hertz-collection-name-column,.hertz-collection-name-cell){width:auto}.hertz-collections-table :is(.hertz-collection-object-count-column,.hertz-collection-object-count){width:5rem;text-align:right}.hertz-collections-table .hertz-collection-actions-column{width:1%;white-space:nowrap}.hertz-collection-name{display:block;max-width:100%;margin:0!important;padding:0!important;overflow:hidden;border:0!important;background:transparent!important;box-shadow:none!important;color:var(--ui-ink)!important;font:700 .9rem/1.25 var(--shell-font);text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.hertz-collection-name:hover{text-decoration:underline}.hertz-collection-name:focus-visible{outline:2px solid var(--ui-accent);outline-offset:2px}.hertz-collection-object-count{color:var(--ui-muted-ink);font-variant-numeric:tabular-nums;white-space:nowrap}
.hertz-public-table .hertz-object-cell,.hertz-library-table td:nth-child(1),.hertz-public-board-table .hertz-public-track-cell{min-width:0}
.hertz-public-table .hertz-object-cell strong,.hertz-library-table td:nth-child(1) strong,.hertz-public-table td:nth-child(1) strong,.hertz-public-table td:nth-child(2) strong{display:block;cursor:pointer;color:var(--ui-ink);line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hertz-public-table .hertz-object-cell strong:hover,.hertz-library-table td:nth-child(1) strong:hover,.hertz-public-table td:nth-child(1) strong:hover,.hertz-public-table td:nth-child(2) strong:hover{text-decoration:underline}
.hertz-public-table .hertz-object-cell small,.hertz-library-table td:nth-child(1) small,.hertz-public-table td:nth-child(1) small,.hertz-public-table td:nth-child(2) small{color:var(--ui-muted-ink);display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:.18rem;line-height:1.25}
#app-container .hertz-public-track-preview{position:relative;box-sizing:border-box;width:3rem!important;min-width:3rem!important;max-width:3rem!important;height:3rem!important;min-height:3rem!important;max-height:3rem!important;display:grid;place-items:center;flex:0 0 3rem;margin:0!important;padding:0!important;overflow:hidden;border:0;border-radius:7px;background:linear-gradient(145deg,rgb(255 255 255/.28),transparent 48%),var(--hertz-track-preview-color,var(--ui-accent-dark));color:#fff;box-shadow:inset 0 1px rgb(255 255 255/.3),0 2px 6px rgb(0 0 0/.22);font:700 .9rem/1 Georgia,serif;cursor:pointer}
.hertz-public-track-play-icon{position:absolute;inset:0;display:grid;place-items:center;padding-left:.12rem;background:rgb(0 0 0/.42);font:700 .9rem/1 sans-serif;opacity:0;transition:opacity .15s}
#app-container .hertz-public-track-row[data-hertz-playing=true] .hertz-public-track-play-icon{padding-left:0;font-size:0;opacity:1}#app-container .hertz-public-track-row[data-hertz-playing=true] .hertz-public-track-play-icon::after{content:'❚❚';display:block;align-self:center;justify-self:center;font:700 .75rem/1 sans-serif;letter-spacing:.08rem}
#app-container .hertz-public-track-preview:hover .hertz-public-track-play-icon,#app-container .hertz-public-track-preview:focus-visible .hertz-public-track-play-icon{opacity:1}
#app-container .hertz-collection-art{position:relative}#app-container .hertz-collections-table .hertz-collection-art>span:last-child{position:absolute;inset:0;display:grid;place-items:center;background:rgb(0 0 0/.58);color:#fff;font:700 .68rem/1 var(--shell-font);opacity:0;transition:opacity .15s;white-space:nowrap}#app-container .hertz-collections-table .hertz-collection-art:hover>span:last-child,#app-container .hertz-collections-table .hertz-collection-art:focus-visible>span:last-child{opacity:1}.hertz-collection-art-cell{width:3.5rem}.hertz-board-collection{color:var(--ui-muted-ink);font-size:.72rem}
#app-container .hertz-public-track-preview:disabled{cursor:default;opacity:.55}
.hertz-public-track-cell{min-width:0}
#app-container :is(.hertz-public-track-name,.hertz-public-track-owner){display:block;max-width:100%;margin:0;padding:0;overflow:hidden;border:0;background:transparent;box-shadow:none;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}
#app-container .hertz-public-track-name{color:var(--ui-ink);font-size:.9rem;font-weight:700;line-height:1.25}
#app-container .hertz-public-track-row[data-hertz-playing=true]{background:color-mix(in srgb,var(--ui-accent) 14%,var(--ui-surface));box-shadow:inset 3px 0 var(--ui-accent)}
#app-container .hertz-public-track-owner{margin-top:.18rem;color:var(--ui-muted-ink);font-size:.76rem;line-height:1.25}
#app-container :is(.hertz-public-track-name,.hertz-public-track-owner):hover{text-decoration:underline}
#app-container :is(.hertz-public-track-preview,.hertz-public-track-name,.hertz-public-track-owner):focus-visible{outline:2px solid var(--ui-accent);outline-offset:2px}
.hertz-public-duration,.hertz-public-play-count{color:var(--ui-muted-ink);font-variant-numeric:tabular-nums;white-space:nowrap}
.hertz-visibility-cell,.hertz-num-cell,.hertz-rating-cell{white-space:nowrap}
.hertz-num-cell{color:var(--ui-ink);font-variant-numeric:tabular-nums}
.hertz-rating-cell{color:var(--ui-accent);letter-spacing:.03em}
.hertz-tags-cell,.hertz-library-table td:nth-child(3){color:var(--ui-muted-ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hertz-tags-list{display:flex;flex-wrap:wrap;gap:.25rem}.hertz-tag{display:inline-block;max-width:100%;overflow:hidden;border:1px solid var(--ui-border);border-radius:999px;padding:.12rem .4rem;background:var(--ui-hover);color:var(--ui-muted-ink);font-size:.72rem;line-height:1.15;text-overflow:ellipsis;white-space:nowrap}
.hertz-action-cell,.hertz-library-table td:last-child{width:18rem}
.hertz-table-actions,.hertz-library-table td:nth-child(7),.hertz-library-table td:last-child{display:flex;align-items:center;justify-content:flex-end;gap:.35rem;flex-wrap:nowrap}
#app-container .hertz-action-cell .hertz-btn,#app-container .hertz-library-table td:nth-child(7) .hertz-btn,#app-container .hertz-library-table td:last-child .hertz-btn{font-size:.76rem;padding:.28rem .55rem;border-radius:5px;white-space:nowrap}
#app-container .hertz-action-cell .hertz-btn-icon,#app-container .hertz-library-table td:nth-child(7) .hertz-btn-icon,#app-container .hertz-library-table td:last-child .hertz-btn-icon{width:1.85rem;padding:.28rem 0;flex:0 0 1.85rem}
.hertz-card{border:1px solid #2a2a2a;border-radius:10px;background:#161616;display:flex;flex-direction:column;overflow:hidden}
.hertz-card-logo{width:100%;aspect-ratio:3/1;display:flex;align-items:center;justify-content:center;font-size:1.4rem;font-weight:700;color:#fff;background:#1a1d24;cursor:pointer}
.hertz-collection-cover{width:clamp(7rem,18vw,12rem);max-width:100%;aspect-ratio:1;overflow:hidden;align-self:flex-start;flex:0 0 auto}
.hertz-object-icon{position:relative;overflow:hidden;border:0;padding:0}.hertz-object-icon img{width:100%;height:100%;object-fit:cover}.hertz-object-icon::after{content:'Upload icon';position:absolute;inset:0;display:grid;place-items:center;background:rgb(0 0 0/.58);color:#fff;font:700 .72rem/1 var(--shell-font);opacity:0;transition:opacity .15s}.hertz-object-icon:hover::after,.hertz-object-icon:focus-visible::after{opacity:1}.hertz-object-icon:disabled{cursor:default}.hertz-object-icon:disabled::after{display:none}
.hertz-card-body{padding:.85rem 1rem;display:flex;flex-direction:column;gap:.4rem;cursor:pointer}
.hertz-card-body:focus-visible{outline:2px solid #4d8bc7;outline-offset:-2px}
.hertz-card-title-row{display:flex;align-items:center;justify-content:space-between;gap:.5rem}
.hertz-card-title-row strong{font-size:1.05rem;cursor:pointer}
.hertz-card-title-row strong:hover{text-decoration:underline}
.hertz-badge{font-size:.68rem;padding:.15rem .5rem;border:1px solid var(--ui-border);border-radius:min(var(--shell-radius),999px);background:var(--ui-raised);color:var(--ui-muted-ink);white-space:nowrap}
.hertz-badge-public{border-color:var(--ui-accent-strong);background:var(--ui-accent-dark);color:var(--ui-accent-dark-ink)}
.hertz-card-body p{color:var(--ui-muted-ink);font-size:.85rem;margin:0}
.hertz-card-meta{color:var(--ui-muted-ink);display:flex;gap:.75rem;font-size:.78rem;}
.hertz-card-actions{display:flex;flex-wrap:wrap;gap:.4rem;padding:0 1rem 1rem}
#app-container .hertz-card-actions .hertz-btn{font-size:.78rem;padding:.3rem .6rem}
.hertz-card-menu{position:relative}
.hertz-card-menu summary{list-style:none;cursor:pointer;border:1px solid #444;border-radius:6px;padding:.2rem .65rem;line-height:1.2}
.hertz-card-menu summary::-webkit-details-marker{display:none}
.hertz-card-menu-actions{display:flex;flex-wrap:wrap;gap:.35rem;padding-top:.4rem}
.hertz-card-menu[open]{flex-basis:100%}
.hertz-composer{border:1px solid var(--ui-border);border-radius:0;background:var(--ui-surface);color:var(--ui-ink);box-shadow:inset 1px 1px var(--ui-dark),inset -1px -1px var(--ui-light);padding:1rem;display:flex;flex-direction:column;gap:.6rem}
.hertz-setup-backdrop{position:fixed;inset:0;z-index:1200;display:flex;align-items:center;justify-content:center;padding:1rem;background:rgb(0 0 0/.72)}
.hertz-setup-window{width:min(42rem,96vw);min-height:27rem;display:flex;flex-direction:column;border:1px solid color-mix(in srgb,var(--ui-accent),#fff 28%);box-shadow:inset 0 1px rgba(255,255,255,.48),0 0 0 1px rgba(0,0,0,.62),0 22px 70px rgba(0,0,0,.68),0 0 22px color-mix(in srgb,var(--ui-accent) 25%,transparent)}
.hertz-setup-titlebar{min-height:2rem;padding-left:.55rem}.hertz-setup-title-left{display:flex;align-items:center;gap:.45rem;font-size:.8rem;text-shadow:0 1px 2px rgba(0,0,0,.72)}
#app-container .hertz-setup-close,.hertz-upload-backdrop .hertz-setup-close{width:2.7rem;height:1.25rem;margin:-.12rem 0 .15rem!important;padding:0!important;border-radius:0 0 4px 4px!important;border-color:#842b27!important;background:linear-gradient(180deg,#ec9b91 0%,#c94b40 47%,#9d241d 52%,#d55a50 100%)!important;color:#fff!important;font:bold 1rem/1 Arial,Tahoma,sans-serif!important;text-shadow:0 1px #5b0805!important;box-shadow:inset 0 1px rgba(255,255,255,.65),0 0 5px rgba(255,80,65,.45)!important}
.hertz-setup-body{flex:1;display:flex;flex-direction:column;min-height:0;margin:0 3px 3px;background:var(--ui-surface)}
.hertz-setup-banner{display:flex;align-items:center;gap:1rem;min-height:6.3rem;padding:1rem 1.3rem;border-bottom:1px solid var(--ui-border);background:linear-gradient(115deg,color-mix(in srgb,var(--ui-surface),#fff 13%),color-mix(in srgb,var(--ui-surface),var(--ui-accent) 9%));box-shadow:inset 0 1px rgba(255,255,255,.3)}
.hertz-setup-emblem{width:4rem;height:4rem;display:flex;align-items:center;justify-content:center;flex:0 0 4rem;border:1px solid color-mix(in srgb,var(--ui-accent),#fff 25%);border-radius:9px;background:linear-gradient(145deg,rgba(255,255,255,.48),rgba(255,255,255,.08) 45%,rgba(0,0,0,.18)),var(--ui-accent-dark);color:var(--ui-accent-dark-ink);font:700 2.2rem/1 Georgia,serif;text-shadow:0 1px 2px rgba(0,0,0,.7);box-shadow:inset 0 1px rgba(255,255,255,.62),inset 0 -1px rgba(0,0,0,.35),0 2px 5px rgba(0,0,0,.4)}
.hertz-setup-banner-copy h2{margin:0 0 .3rem;font-size:1.18rem;font-weight:400}.hertz-setup-banner-copy p{margin:0;color:var(--ui-muted-ink);font-size:.82rem}
.hertz-setup-workspace{flex:1;display:grid;grid-template-columns:10.5rem minmax(0,1fr);min-height:18rem}
.hertz-setup-steps{list-style:none;margin:0;padding:1.2rem .7rem;border-right:1px solid var(--ui-border);background:linear-gradient(90deg,color-mix(in srgb,var(--ui-accent-dark) 78%,var(--ui-surface)),color-mix(in srgb,var(--ui-accent-mid) 48%,var(--ui-surface)));color:var(--ui-accent-dark-ink)}
.hertz-setup-steps li{display:grid;grid-template-columns:1.5rem 1fr;align-items:center;gap:.45rem;margin:0 0 .5rem;padding:.42rem .45rem;border:1px solid transparent;border-radius:4px;font-size:.76rem;color:var(--ui-muted-ink)}.hertz-setup-steps li>span{width:1.35rem;height:1.35rem;display:flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.34);border-radius:50%;background:rgba(0,0,0,.2);font-size:.68rem}.hertz-setup-steps li.is-active{border-color:rgba(255,255,255,.3);background:linear-gradient(180deg,rgba(255,255,255,.28),rgba(255,255,255,.09));box-shadow:inset 0 1px rgba(255,255,255,.28),0 1px 2px rgba(0,0,0,.35);opacity:1}.hertz-setup-steps li.is-complete{color:var(--ui-ink)}.hertz-setup-steps li.is-complete>span{background:rgba(92,164,74,.62)}
.hertz-setup-content{display:flex;flex-direction:column;min-width:0;padding:1.15rem 1.25rem 0}.hertz-setup-content h3{margin:0 0 .25rem;font-size:1rem}.hertz-setup-content>p{margin:0 0 1rem;color:var(--ui-muted-ink);font-size:.8rem;line-height:1.4}
.hertz-setup-field{display:flex;flex-direction:column;gap:.3rem;margin-bottom:.8rem;font-size:.8rem;font-weight:700}.hertz-setup-field .hertz-input,.hertz-setup-field .hertz-textarea{font-weight:400}.hertz-setup-field .hertz-textarea{min-height:5.2rem}
.hertz-setup-summary{display:grid;grid-template-columns:6rem minmax(0,1fr);margin:0 0 1rem;border:1px solid var(--ui-border);background:var(--ui-sunken);box-shadow:inset 1px 1px var(--ui-dark),inset -1px -1px var(--ui-light);font-size:.8rem}.hertz-setup-summary dt,.hertz-setup-summary dd{margin:0;padding:.48rem .6rem;border-bottom:1px solid var(--ui-border)}.hertz-setup-summary dt{font-weight:700;background:color-mix(in srgb,var(--ui-raised) 75%,transparent)}.hertz-setup-summary dd{overflow-wrap:anywhere}.hertz-setup-summary :nth-last-child(-n+2){border-bottom:0}
.hertz-setup-privacy{display:flex;align-items:flex-start;gap:.55rem;padding:.7rem;border:1px solid var(--ui-border);background:var(--ui-raised);font-size:.8rem}.hertz-setup-privacy input{margin-top:.18rem}.hertz-setup-privacy-copy{display:flex;flex-direction:column;gap:.15rem}.hertz-setup-privacy-copy small{color:var(--ui-muted-ink);font-size:.74rem}
.hertz-setup-actions{display:flex;justify-content:flex-end;gap:.5rem;margin:auto -1.25rem 0;padding:.72rem 1rem;border-top:1px solid var(--ui-border);background:linear-gradient(180deg,color-mix(in srgb,var(--ui-raised),transparent 12%),var(--ui-surface))}.hertz-setup-actions .hertz-btn{min-width:5.4rem}
.hertz-upload-setup-window{width:min(40rem,96vw)}.hertz-upload-emblem{font-family:Arial,Tahoma,sans-serif;font-size:2rem}.hertz-upload-content{min-height:18rem}
.hertz-upload-chooser{display:grid;grid-template-columns:3.2rem minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:center;gap:.18rem .8rem;padding:1rem;border:1px solid var(--ui-border);background:linear-gradient(180deg,var(--ui-raised),color-mix(in srgb,var(--ui-surface),var(--ui-accent) 5%));box-shadow:inset 0 1px rgba(255,255,255,.28),0 1px 3px rgba(0,0,0,.32)}.hertz-upload-chooser-icon{grid-row:1/3;width:3rem;height:3rem;display:flex;align-items:center;justify-content:center;border:1px solid var(--ui-border);border-radius:5px;background:var(--ui-sunken);color:var(--ui-accent);font:700 1.5rem Georgia,serif;box-shadow:inset 1px 1px var(--ui-dark),inset -1px -1px var(--ui-light)}.hertz-upload-chooser>strong{align-self:end;font-size:.84rem}.hertz-upload-selected-file{grid-column:2;align-self:start;overflow:hidden;color:var(--ui-muted-ink);font-size:.76rem;text-overflow:ellipsis;white-space:nowrap}.hertz-upload-chooser>.hertz-btn{grid-column:3;grid-row:1/3;min-width:6rem}
.hertz-upload-summary{grid-template-columns:5rem minmax(0,1fr)}.hertz-upload-progress{margin:.2rem 0 .8rem;padding:.65rem;border:1px solid var(--ui-border);background:var(--ui-raised);font-size:.78rem}.hertz-upload-progress[hidden]{display:none}.hertz-upload-progress-track{height:1.05rem;margin-top:.45rem;overflow:hidden;border:1px solid var(--ui-dark);background:var(--ui-sunken);box-shadow:inset 1px 1px rgba(0,0,0,.55),inset -1px -1px rgba(255,255,255,.2)}.hertz-upload-progress-bar{width:0;height:100%;background:repeating-linear-gradient(135deg,rgba(255,255,255,.35) 0 7px,rgba(255,255,255,.08) 7px 14px),linear-gradient(180deg,#8cdb65,#3a9d36 48%,#207a29 52%,#55bd49);box-shadow:inset 0 1px rgba(255,255,255,.62),0 0 5px rgba(74,190,68,.6);transition:width .12s linear}
.hertz-input,.hertz-textarea{background:var(--ui-field);border:1px solid var(--ui-border);border-radius:min(var(--shell-radius),8px);color:var(--ui-field-ink);box-shadow:inset 1px 1px var(--ui-dark),inset -1px -1px var(--ui-light);padding:.4rem .6rem;font:inherit;width:100%}
.hertz-textarea{min-height:4rem;resize:vertical}
.hertz-checkbox-row{color:var(--ui-muted-ink);display:flex;align-items:center;gap:.5rem;font-size:.85rem;}
.hertz-composer-actions{display:flex;gap:.5rem}
.hertz-infinite-status{align-self:center;margin:.35rem 0;padding:.45rem .8rem;border:1px solid var(--ui-border);border-radius:999px;background:var(--shell-surface);box-shadow:none;font-size:.75rem}
.hertz-detail-header{border:1px solid var(--ui-border);border-radius:0;background:var(--ui-surface);color:var(--ui-ink);box-shadow:inset 1px 1px var(--ui-light),inset -1px -1px var(--ui-dark);padding:1rem;display:flex;flex-direction:column;gap:.6rem}
.hertz-detail-title-row{display:flex;align-items:center;gap:.85rem}
.hertz-detail-title-row .hertz-card-logo{width:3.5rem;height:3.5rem;aspect-ratio:auto;border-radius:8px;font-size:1.1rem;flex-shrink:0}
.hertz-detail-title-col{display:flex;flex-direction:column;gap:.3rem}
.hertz-detail-title-col h2{font-size:1.3rem;margin:0}
.hertz-tags{display:flex;flex-wrap:wrap;gap:.4rem}
.hertz-tags span{font-size:.72rem;padding:.15rem .5rem;border:1px solid var(--ui-border);border-radius:min(var(--shell-radius),999px);background:var(--ui-raised);color:var(--ui-muted-ink)}
.hertz-rate-row{color:var(--ui-muted-ink);display:flex;align-items:center;gap:.5rem;font-size:.85rem;}
.hertz-object-tabs{display:flex;align-items:flex-end;border-bottom:1px solid var(--ui-border);padding:.35rem .65rem 0;overflow-x:auto}.hertz-profile-tabs{position:relative;z-index:2;flex:0 0 auto;margin-top:.5rem}
#app-container button.hertz-object-tab{position:relative;top:1px;margin:0 -1px 0 0;padding:.45rem 1rem;border:1px solid var(--ui-border);border-radius:var(--ui-control-radius,10px)!important;background:var(--ui-raised);color:var(--ui-muted-ink);box-shadow:none;font-size:.82rem}
#app-container button.hertz-object-tab[aria-selected=true]{z-index:1;border-bottom-color:var(--ui-surface);background:var(--ui-surface);color:var(--ui-ink);font-weight:700}
.hertz-object-panel{min-height:12rem;padding:.85rem;border:1px solid var(--ui-border);border-top:0;background:var(--ui-surface);color:var(--ui-ink)}.hertz-object-panel>p{color:var(--ui-muted-ink);font-size:.85rem}.hertz-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.8rem}.hertz-panel-heading h3,.hertz-object-panel>h3{margin:0;font-size:1rem}
.hertz-link-grid{display:flex;align-items:flex-start;flex-direction:column;gap:.65rem}.hertz-link-card{display:grid;grid-template-columns:8rem minmax(0,1fr);width:min(100%,34rem);min-width:0;overflow:hidden;border:1px solid var(--ui-border);background:var(--ui-raised);box-shadow:inset 1px 1px var(--ui-light)}.hertz-link-thumbnail{display:flex;width:8rem;height:4.5rem;align-items:center;justify-content:center;overflow:hidden;background:#111;color:#fff;text-decoration:none}.hertz-link-thumbnail img{display:block;width:100%;height:100%;object-fit:cover}.hertz-link-thumbnail-fallback{font:700 1.6rem/1 Georgia,serif}.hertz-link-meta{display:flex;min-width:0;align-items:flex-start;flex-direction:column;justify-content:center;gap:.2rem;padding:.55rem .65rem}.hertz-link-title{display:block;max-width:100%;overflow:hidden;color:var(--ui-accent);font-size:.8rem;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.hertz-link-meta small{color:var(--ui-muted-ink);font-size:.7rem}.hertz-link-meta .hertz-btn{margin-top:.2rem}
.hertz-lyrics-panel{display:flex;flex-direction:column;gap:.75rem}.hertz-lyrics-editor{box-sizing:border-box;min-height:18rem;resize:vertical;white-space:pre-wrap}.hertz-lyrics-copy{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.55}
.hertz-art-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(10rem,1fr));gap:.8rem}.hertz-art-card{display:flex;flex-direction:column;gap:.45rem;margin:0;padding:.45rem;border:1px solid var(--ui-border);background:var(--ui-raised)}.hertz-art-card img{display:block;width:100%;height:10rem;object-fit:contain;background:var(--ui-sunken)}.hertz-art-card figcaption{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.76rem}.hertz-media-modal{width:min(34rem,96vw)}.hertz-media-modal-body{display:flex;flex-direction:column;gap:.7rem;padding:1rem}.hertz-media-modal-body h3,.hertz-media-modal-body p{margin:0}.hertz-media-modal-body>p{color:var(--ui-muted-ink);font-size:.82rem;line-height:1.4}.hertz-media-modal-body label{display:flex;flex-direction:column;gap:.3rem;font-size:.8rem;font-weight:700}.hertz-media-modal-body .hertz-setup-actions{margin:.3rem -1rem -1rem}.hertz-art-file-input{display:block;width:100%}
.hertz-art-preview{display:block;width:min(100%,18rem);max-height:14rem;object-fit:contain;border:1px solid var(--ui-border);background:var(--ui-sunken);box-shadow:inset 1px 1px var(--ui-dark),inset -1px -1px var(--ui-light)}.hertz-art-upload-status{padding:.55rem .65rem;border:1px solid var(--ui-border);background:var(--ui-raised);font-size:.8rem}.hertz-art-upload-status-error{border-color:#a33;color:#8c2020}.hertz-art-upload-status-success{border-color:#39833b;color:#216827}.hertz-art-upload-status-pending{color:var(--ui-muted-ink)}
.hertz-stars{display:inline-flex;gap:.1rem}
.hertz-star-btn{background:none;border:0;color:#d6a84f;font-size:1.05rem;cursor:pointer;padding:0;line-height:1}
.hertz-tracks{min-width:0;overflow:auto}.hertz-track-table{width:100%;border-collapse:collapse;background:var(--ui-raised);color:var(--ui-ink);font-size:.82rem}.hertz-track-table th,.hertz-track-table td{padding:.55rem .65rem;border:1px solid var(--ui-border);vertical-align:middle;text-align:left}.hertz-track-table th{background:var(--ui-sunken);font-size:.72rem;text-transform:uppercase;letter-spacing:.04em}.hertz-track-table tbody tr:nth-child(even){background:color-mix(in srgb,var(--ui-raised),var(--ui-sunken) 20%)}.hertz-track-table strong{font-size:.9rem}.hertz-track-table tbody tr,.hertz-public-table tbody tr{cursor:context-menu}.hertz-track-actions{display:flex;justify-content:flex-end}.hertz-context-cell{width:0!important;padding:0!important;border:0!important}.hertz-context-cell :is(.hertz-track-menu-button,.hertz-context-menu-button){position:absolute!important;width:1px!important;min-width:1px!important;height:1px!important;padding:0!important;overflow:hidden!important;clip-path:inset(50%)!important;opacity:0}.hertz-track-table th:last-child,.hertz-public-table th:last-child{display:none}.hertz-track-menu,.hertz-context-menu,.hertz-context-submenu{position:relative}.hertz-track-menu-button,.hertz-context-menu-button{min-width:1.9rem!important;padding:0 .45rem!important;font-size:1.1rem!important;line-height:1!important}.hertz-track-menu-dropdown,.hertz-context-menu-dropdown{right:0;left:auto!important;min-width:13.5rem!important}.hertz-context-submenu-dropdown{top:-.25rem!important;right:auto!important;left:calc(100% - .15rem)!important;min-width:12rem!important}.hertz-card-logo img,.hertz-public-track-preview img,#root .hertz-player-preview img{display:block;width:100%;height:100%;object-fit:cover}
.hertz-track-info{flex:1;min-width:8rem;display:flex;flex-direction:column;gap:.1rem}
.hertz-track-info strong{font-size:.92rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hertz-track-meta{color:var(--ui-muted-ink);font-size:.75rem;}
.hertz-play-btn{color:#8fc4ff}
.hertz-uploader{display:flex;align-items:center;gap:.75rem;border:1px solid var(--ui-border);border-radius:0;background:var(--ui-surface);color:var(--ui-ink);box-shadow:inset 1px 1px var(--ui-light),inset -1px -1px var(--ui-dark);padding:1rem}
.hertz-file-input{display:none}
.hertz-player{position:static;z-index:20;width:100%;display:grid;grid-template-columns:minmax(9rem,1fr) minmax(14rem,2.2fr) minmax(6.5rem,.7fr);align-items:center;gap:clamp(.5rem,1.5vw,1rem);min-height:3.65rem;padding:.4rem clamp(.6rem,1.5vw,1rem);overflow:hidden;border:0;border-top:1px solid var(--ui-border);background:var(--shell-surface);color:var(--shell-surface-ink);box-shadow:none}
.hertz-player::before{content:'';position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 14% -35%,color-mix(in srgb,var(--shell-accent) 28%,transparent),transparent 42%);opacity:.8}
.hertz-player>*{position:relative;z-index:1}.hertz-player-identity{min-width:0;display:flex;align-items:center;gap:.55rem}#root .hertz-player-preview{width:2.3rem;height:2.3rem;display:grid;place-items:center;flex:0 0 auto;margin:0!important;padding:0!important;overflow:hidden;border:0!important;border-radius:7px!important;background:linear-gradient(145deg,rgb(255 255 255/.3),transparent 46%),var(--hertz-preview-color,var(--shell-accent-dark))!important;color:var(--shell-accent-dark-ink)!important;box-shadow:inset 0 1px rgb(255 255 255/.36),0 3px 10px rgb(0 0 0/.25)!important;font:700 .9rem/1 Georgia,serif;cursor:pointer}#root .hertz-player-preview[data-hertz-playing=true]::after{content:'Playing';position:absolute;inset:auto .12rem .12rem .12rem;padding:.1rem;border-radius:3px;background:rgb(0 0 0/.68);color:#fff;font:700 .52rem/1 var(--shell-font)}.hertz-player-copy{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:.08rem}#root .hertz-player-title,#root .hertz-player-uploader{display:block;max-width:100%;margin:0!important;padding:0!important;overflow:hidden;border:0!important;background:transparent!important;box-shadow:none!important;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}#root .hertz-player-title{color:var(--shell-surface-ink)!important;font-size:.78rem;font-weight:700}#root .hertz-player-uploader{color:color-mix(in srgb,var(--shell-surface-ink) 58%,transparent)!important;font-size:.66rem}#root :is(.hertz-player-preview,.hertz-player-title,.hertz-player-uploader):focus-visible{outline:2px solid var(--shell-accent);outline-offset:2px}#root :is(.hertz-player-preview,.hertz-player-title,.hertz-player-uploader):disabled{cursor:default}
#root .hertz-player[data-hertz-loading=true] .hertz-player-preview{position:relative;font-size:0!important;cursor:wait}#root .hertz-player[data-hertz-loading=true] .hertz-player-preview::after{content:'';position:absolute;inset:0;margin:auto;display:block;width:1rem;height:1rem;border:2px solid rgb(255 255 255/.35);border-top-color:#fff;border-radius:50%;animation:hertz-player-spin .7s linear infinite}@keyframes hertz-player-spin{to{transform:rotate(360deg)}}
.hertz-player-transport{min-width:0;display:flex;align-items:center;gap:.75rem}.hertz-player-timeline{min-width:0;display:grid;grid-template-columns:minmax(5rem,1fr) auto;align-items:center;gap:.65rem;flex:1}.hertz-player-times{display:flex;align-items:center;gap:.25rem;color:color-mix(in srgb,var(--shell-surface-ink) 66%,transparent);font-size:.68rem;font-variant-numeric:tabular-nums;white-space:nowrap}.hertz-player-volume-group{display:flex;align-items:center;justify-content:flex-end;gap:.45rem;min-width:0}
#root .hertz-player-button{width:2.35rem;height:2.35rem;display:grid;place-items:center;flex:0 0 auto;margin:0!important;padding:0!important;border:0!important;border-radius:50%!important;background:linear-gradient(180deg,rgb(255 255 255/.24),rgb(255 255 255/.04)),color-mix(in srgb,var(--shell-accent-dark) 58%,transparent)!important;color:var(--shell-accent-dark-ink)!important;box-shadow:inset 0 1px rgb(255 255 255/.38),0 3px 10px rgb(0 0 0/.28)!important;font-size:.84rem;line-height:1;cursor:pointer;transition:filter .15s,transform .15s}#root .hertz-player-button:hover:not(:disabled){filter:brightness(1.15);transform:translateY(-1px)}#root .hertz-player-button:active:not(:disabled){transform:translateY(0);box-shadow:inset 0 1px rgb(0 0 0/.24)!important}#root .hertz-player-button:focus-visible{outline:2px solid var(--shell-accent);outline-offset:2px}#root .hertz-player-button:disabled{opacity:.38;cursor:default}.hertz-player-toggle{font-size:0!important}.hertz-player-toggle::after{content:'▶';font-size:1rem}.hertz-player-toggle[data-hertz-playing=true]::after{content:'❚❚';font-size:.78rem;letter-spacing:.08rem}.hertz-player-mute{width:2rem!important;height:2rem!important;font-size:.82rem!important}
.hertz-player-range{height:1rem;margin:0;padding:0;border:0!important;background:transparent!important;box-shadow:none!important;accent-color:var(--shell-accent);cursor:pointer;-webkit-appearance:none;appearance:none}.hertz-player-range:disabled{opacity:.38;cursor:default}.hertz-player-range:focus-visible{outline:2px solid var(--shell-accent);outline-offset:3px}.hertz-player-range::-webkit-slider-runnable-track{height:.28rem;border-radius:999px;background:color-mix(in srgb,var(--shell-surface-ink) 22%,transparent);box-shadow:inset 0 1px 2px rgb(0 0 0/.36)}.hertz-player-range::-webkit-slider-thumb{width:.85rem;height:.85rem;margin-top:-.285rem;border:0;border-radius:50%;background:linear-gradient(145deg,#fff 0%,color-mix(in srgb,var(--shell-accent) 78%,#fff) 48%,var(--shell-accent-strong) 100%);box-shadow:0 1px 5px rgb(0 0 0/.5);-webkit-appearance:none}.hertz-player-range::-moz-range-track{height:.28rem;border:0;border-radius:999px;background:color-mix(in srgb,var(--shell-surface-ink) 22%,transparent);box-shadow:inset 0 1px 2px rgb(0 0 0/.36)}.hertz-player-range::-moz-range-progress{height:.28rem;border-radius:999px;background:var(--shell-accent)}.hertz-player-range::-moz-range-thumb{width:.85rem;height:.85rem;border:0;border-radius:50%;background:linear-gradient(145deg,#fff,color-mix(in srgb,var(--shell-accent) 72%,#fff) 52%,var(--shell-accent-strong));box-shadow:0 1px 5px rgb(0 0 0/.5)}.hertz-player-volume{width:min(7vw,5.5rem)}.hertz-audio-engine{display:none}
@media (max-width:700px){#root{--hertz-player-dock-height:5.5rem}.hertz-player{grid-template-columns:minmax(0,1fr) auto;gap:.35rem .65rem;padding:.4rem .6rem}.hertz-player-identity{min-width:0}.hertz-player-preview{width:2rem;height:2rem}.hertz-player-transport{grid-column:1/3;grid-row:2}.hertz-player-volume-group{grid-column:2;grid-row:1}.hertz-player-volume{display:none}.hertz-board-toolbar,.hertz-toolbar{align-items:flex-start;flex-direction:column}.hertz-main-controls{width:100%;justify-content:flex-start;flex-wrap:wrap}.hertz-toolbar-search{max-width:none;order:3;flex-basis:100%}.hertz-detail-title-row{flex-wrap:wrap}#app-container button.hertz-tab{min-width:8rem;flex:0 0 auto}.hertz-tabs{width:100%}.hertz-setup-backdrop{padding:.4rem}.hertz-setup-window{max-height:96vh;min-height:0}.hertz-setup-body{overflow:auto}.hertz-setup-workspace{grid-template-columns:1fr}.hertz-setup-steps{display:flex;gap:.35rem;padding:.55rem;border-right:0;border-bottom:1px solid var(--ui-border)}.hertz-setup-steps li{flex:1;margin:0}.hertz-setup-banner{min-height:0;padding:.75rem}.hertz-setup-emblem{width:3rem;height:3rem;flex-basis:3rem;font-size:1.6rem}.hertz-setup-content{padding:.9rem .9rem 0}.hertz-setup-actions{margin:auto -.9rem 0;flex-wrap:wrap}.hertz-upload-chooser{grid-template-columns:2.7rem minmax(0,1fr);padding:.75rem}.hertz-upload-chooser-icon{width:2.5rem;height:2.5rem}.hertz-upload-chooser>.hertz-btn{grid-column:1/3;grid-row:3;margin-top:.5rem}}@media (max-height:34rem){.hertz-tab-anchor{padding-top:.2rem}.hertz-app-body{gap:.45rem;padding:.45rem}}
#root .hertz-player-preview[data-hertz-playing=true]::after{content:none;display:none}
/* login + signup: little Windows-98 windows, same bevel/gradient/titlebar
   recipe as the homepage widgets and profile panels above. The titlebar is
   a ::before so the apps' own markup stays a plain form; their h2s are
   hidden in favor of it. */
.signup-card,.login-card{width:min(24rem,90%);margin:0;padding:0 0 1rem;display:flex;flex-direction:column;gap:.75rem;border:1px solid #333;border-radius:0;background:var(--shell-surface);color:var(--shell-surface-ink);box-shadow:inset 1px 1px #3a3a3a,inset -1px -1px #050505,4px 5px 18px rgba(0,0,0,.45);font-family:var(--shell-font);overflow:hidden}
.signup-card::before,.login-card::before{display:flex;align-items:center;min-height:1.65rem;margin:2px 2px 0;padding:0 .35rem;background:linear-gradient(90deg,var(--shell-accent-dark) 0%,var(--shell-accent-mid) 100%);color:var(--shell-accent-ink);font:700 .78rem/1.2 Arial,Tahoma,sans-serif}
.login-card::before{content:'Log in'}
.signup-card::before{content:'Join'}
.signup-card h2,.login-card h2{display:none}
.signup-card label,.login-card label{color:var(--ui-muted-ink);display:flex;flex-direction:column;gap:.25rem;font-size:.85rem;margin:0 .85rem}
.signup-card input,.login-card input{background:#0f0f0f;border:1px solid #444;border-radius:0;color:#e0e0e0;padding:.4rem .6rem;font:inherit;box-shadow:inset 1px 1px #050505,inset -1px -1px #3a3a3a}
.signup-card button,.login-card button{font-size:1rem !important;padding:.5rem 1.2rem !important;margin:0 .85rem;border:1px solid #050505 !important;border-radius:0 !important;background:#222 !important;color:#e0e0e0 !important;box-shadow:inset 1px 1px #444,inset -1px -1px #050505;cursor:pointer}
.signup-card button:not(:disabled):hover,.login-card button:not(:disabled):hover{background:#2a2a2a !important}
.signup-card button:not(:disabled):active,.login-card button:not(:disabled):active{box-shadow:inset 1px 1px #050505,inset -1px -1px #444}
.signup-card button:disabled,.login-card button:disabled{opacity:.5;cursor:default}
.signup-hint,.login-hint{color:var(--ui-muted-ink);font-size:.85rem;min-height:1.2em;margin:0 .85rem}
#signup-recipient{overflow-wrap:anywhere}
.login-signup-row,.signup-login-row{display:flex;align-items:center;justify-content:center;gap:.6rem;margin:.25rem .85rem 0;padding-top:.75rem;border-top:1px solid #2a2a2a}
.login-signup-row .login-hint,.signup-login-row .signup-hint{min-height:0;margin:0}
.login-signup-row button,.signup-login-row button{font-size:.85rem !important;padding:.3rem .9rem !important;margin:0}
#toast-stack{position:fixed;right:1.5rem;bottom:1.5rem;z-index:3500;display:flex;flex-direction:column;gap:.6rem;width:min(22rem,calc(100vw - 3rem));max-height:calc(100vh - 3rem);max-height:calc(100dvh - 3rem)}
.toast-cards{display:flex;flex-direction:column;gap:.6rem;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:2px}
.toast-cards .toast{flex-shrink:0}
.toast-overflow{flex-shrink:0;display:block;text-align:left;font:inherit;font-size:.84rem;line-height:1.4}
@media(max-width:560px){#toast-stack{right:.5rem;bottom:.5rem;width:calc(100vw - 1rem);max-height:calc(100vh - 1rem);max-height:calc(100dvh - 1rem)}}
.shell-confirm{position:fixed;inset:0;z-index:4000;display:flex;align-items:center;justify-content:center;padding:clamp(.75rem,var(--shell-space),1.5rem);background:rgba(0,0,0,.72)}
.shell-confirm-card{width:min(25rem,100%);overflow:hidden;border:1px solid var(--ui-border);border-radius:min(var(--shell-radius),28px);background:var(--ui-surface);color:var(--ui-ink);box-shadow:inset 1px 1px var(--ui-light),inset -1px -1px var(--ui-dark),5px 6px 22px rgba(0,0,0,.65);font-family:var(--shell-font)}
.shell-confirm-titlebar{min-height:1.65rem;display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin:2px 2px 0;padding:0 .25rem 0 .35rem;background:linear-gradient(90deg,var(--ui-accent-dark) 0%,var(--ui-accent-mid) 100%);color:var(--ui-accent-mid-ink)}
.shell-confirm-titlebar h2{display:flex;align-items:center;gap:.35rem;min-width:0;font-size:.78rem;font-weight:700;line-height:1.2;margin:0;color:inherit}
.shell-confirm-titlebar h2::before{content:"";width:14px;height:14px;box-sizing:border-box;background:var(--ui-surface);border:1px solid var(--ui-dark);box-shadow:inset 1px 1px var(--ui-highlight),inset -2px -2px var(--ui-sunken);flex:0 0 auto}
.shell-confirm-titlebar[data-contextual-icon] h2::before{display:none}
.shell-confirm-close{width:1.25rem;height:1.15rem;padding:0!important;border-color:var(--ui-border);border-radius:min(var(--shell-radius),4px);background:var(--ui-raised);color:var(--ui-ink);box-shadow:inset 1px 1px var(--ui-light),inset -1px -1px var(--ui-dark);font:700 12px var(--shell-font);line-height:1;cursor:pointer}
.shell-confirm-close:hover{background:var(--ui-hover);color:var(--ui-ink)}
.shell-confirm-close:active{box-shadow:inset 1px 1px var(--ui-dark),inset -1px -1px var(--ui-light)}
.shell-confirm-body{margin:0 2px 2px;padding:clamp(.65rem,var(--shell-space),1.3rem);background:var(--ui-surface);color:var(--ui-ink);box-shadow:inset 1px 1px var(--ui-dark),inset -1px -1px var(--ui-light)}
.shell-confirm-body p{font-size:.88rem;line-height:1.45;color:var(--ui-ink);margin:0}
.shell-confirm-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:clamp(.35rem,calc(var(--shell-space)/2),.7rem);margin-top:var(--shell-space)}
.shell-confirm-actions button{min-width:5.5rem;border:1px solid var(--ui-border);border-radius:min(var(--shell-radius),8px);background:var(--ui-raised);color:var(--ui-ink);box-shadow:inset 1px 1px var(--ui-light),inset -1px -1px var(--ui-dark);padding:.3rem .7rem;font:13px var(--shell-font);cursor:pointer}
.shell-confirm-actions button:hover{background:var(--ui-hover);color:var(--ui-ink)}
.shell-confirm-actions button:active{box-shadow:inset 1px 1px var(--ui-dark),inset -1px -1px var(--ui-light)}
.shell-confirm-actions .danger{border-color:var(--ui-danger-border);background:var(--ui-danger);color:var(--ui-danger-ink)}
.shell-confirm-actions .danger:hover{background:color-mix(in srgb,var(--ui-danger),var(--ui-danger-ink) 10%);color:var(--ui-danger-ink)}
.shell-confirm-spinner{display:inline-flex;align-items:center;gap:.45rem;color:var(--ui-muted-ink);font-size:.82rem}.shell-confirm-spinner::before{content:"";width:.85rem;height:.85rem;box-sizing:border-box;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:shell-confirm-spin .7s linear infinite}@keyframes shell-confirm-spin{to{transform:rotate(360deg)}}
.shell-image-viewer{position:fixed;inset:0;z-index:4100;display:grid;place-items:center;padding:clamp(.5rem,2vw,1.5rem);background:rgb(0 0 0/.84)}
.shell-image-viewer-dialog{display:grid;grid-template-rows:auto minmax(0,1fr);width:min(76rem,100%);height:min(54rem,100%);min-width:0;min-height:0;overflow:hidden;border:1px solid var(--ui-border);border-radius:min(var(--shell-radius),28px);background:var(--ui-surface);color:var(--ui-ink);box-shadow:5px 6px 24px rgb(0 0 0/.68)}
.shell-image-viewer-titlebar{display:flex;align-items:center;justify-content:space-between;gap:.5rem;min-height:1.8rem;padding:.15rem .25rem .15rem .5rem;background:var(--ui-surface);color:var(--ui-ink);border-bottom:1px solid var(--ui-border)}
.shell-image-viewer-titlebar h2{min-width:0;margin:0;overflow:hidden;font:700 .8rem/1.2 var(--shell-font);text-overflow:ellipsis;white-space:nowrap}
.shell-image-viewer-close{width:1.7rem;height:1.45rem;min-height:0;padding:0!important;border:1px solid var(--ui-border);border-radius:min(var(--shell-radius),6px);background:var(--ui-raised);color:var(--ui-ink);font:700 1rem/1 var(--shell-font);cursor:pointer}
.shell-image-viewer-close:hover{background:var(--ui-hover)}.shell-image-viewer-close:focus-visible{outline:2px solid var(--ui-accent);outline-offset:2px}
.shell-image-viewer-body{display:grid;place-items:center;min-width:0;min-height:0;padding:clamp(.35rem,1vw,.75rem);overflow:hidden;background:#090909}
.shell-image-viewer-body img{display:block;width:100%;height:100%;min-width:0;min-height:0;max-width:100%;max-height:calc(100dvh - 4.5rem);border:0;border-radius:0;box-shadow:none;object-fit:scale-down}
[data-image-viewer]{cursor:zoom-in}[data-image-viewer]:focus-visible{outline:2px solid var(--ui-accent);outline-offset:2px}
@media(max-width:560px){.shell-image-viewer{padding:.35rem}.shell-image-viewer-dialog{height:min(48rem,100%)}}
.toast{border:1px solid var(--ui-border);border-left:4px solid var(--shell-accent);border-radius:var(--shell-radius);background:var(--shell-surface-glass);color:var(--shell-surface-ink);box-shadow:none;padding:.8rem .9rem;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.35rem .6rem;animation:toast-in .16s ease-out;cursor:pointer}
.toast:focus-visible{outline:2px solid var(--shell-accent);outline-offset:2px}
.toast[data-level=success]{border-left-color:#4fb477}
.toast[data-level=warn]{border-left-color:#d6a84f}
.toast[data-level=error]{border-left-color:#cf5c5c}
.toast strong{font-size:.92rem}
.toast p{color:var(--ui-muted-ink);grid-column:1/-1;font-size:.84rem;margin:0;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.toast small{color:var(--ui-muted-ink);font-size:.72rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.toast button{border:0;background:transparent;color:inherit;cursor:pointer;font-size:1.1rem;line-height:1}
.toast-head{display:flex;align-items:center;gap:.5rem;min-width:0}
.toast-avatar{width:1.8rem;height:1.8rem;border-radius:50%;background:var(--shell-accent-dark);color:var(--shell-accent-dark-ink);display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:700;overflow:hidden;flex-shrink:0}
.toast-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.toast-head strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.friends-page{align-self:stretch;display:flex;flex:1;flex-direction:column;min-width:0;min-height:0;overflow:hidden}
.friends-toolbar{display:flex;align-items:center;gap:.5rem;flex:0 0 auto;margin-bottom:var(--shell-space)}.friends-toolbar h1{flex:1;min-width:0;overflow:hidden;margin:0;font-size:1rem;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.friends-toolbar .friends-refresh{font-size:.72rem!important;padding:.12rem .55rem!important;margin:0!important}
.friends-window-body{flex:1;min-height:0;display:flex;flex-direction:column;gap:0!important;padding:var(--shell-space);overflow:hidden;background:var(--ui-surface);color:var(--ui-ink)}
.friends-tabs{display:flex;align-items:flex-end;gap:0;padding:0 .2rem;position:relative;z-index:1;overflow-x:auto}
#app-container button.friends-tab{flex:0 0 auto;position:relative;top:2px;margin:0;padding:.35rem .85rem .45rem;border:0!important;border-radius:min(var(--shell-radius),8px) min(var(--shell-radius),8px) 0 0!important;background:var(--ui-surface)!important;color:var(--ui-ink)!important;box-shadow:inset -1px 0 var(--ui-dark),inset 1px 1px var(--ui-highlight),inset -2px 0 var(--ui-sunken),inset 2px 2px var(--ui-light);font-size:.8rem!important;white-space:nowrap;z-index:1}
#app-container button.friends-tab[aria-selected=true]{top:0;margin-right:-2px;padding:.4rem 1rem .6rem;font-weight:700;z-index:3}
#app-container button.friends-tab:focus-visible{outline:1px dotted currentColor;outline-offset:-5px}
.friend-manager{flex:1;min-height:12rem;overflow:auto;border:0;background:var(--ui-surface);color:var(--ui-ink);box-shadow:inset -1px -1px var(--ui-dark),inset 1px 1px var(--ui-highlight),inset -2px -2px var(--ui-sunken),inset 2px 2px var(--ui-light)}
.friend-request-table{width:100%;border-collapse:collapse;font-size:.85rem;color:var(--ui-ink)}
.friend-request-table th,.friend-request-table td{padding:.7rem 1rem;text-align:left;border-bottom:1px solid var(--ui-grid)}
.friend-request-table tr:last-child td{border-bottom:0}
.friend-request-table th{font-size:.72rem;text-transform:uppercase;letter-spacing:.05em;color:var(--ui-muted-ink);background:var(--ui-raised);box-shadow:inset 0 1px var(--ui-light)}
.friend-request-table tbody tr:hover{background:var(--ui-hover)}
.friend-request-table td:nth-child(2),.friend-request-table td:nth-child(3){color:var(--ui-muted-ink);text-transform:capitalize}
#app-container .friend-request-user{display:flex;align-items:center;gap:.55rem;color:var(--ui-ink)!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0!important;font:inherit;cursor:pointer}
.friend-request-user:hover span:last-child{text-decoration:underline}
.friend-request-user:focus-visible{outline:1px dotted currentColor;outline-offset:2px}
.friend-request-avatar{width:1.9rem;height:1.9rem;border-radius:50%;background:var(--ui-accent-dark);color:var(--ui-accent-dark-ink);box-shadow:inset 1px 1px var(--ui-accent-strong),inset -1px -1px var(--ui-dark);display:flex;align-items:center;justify-content:center;font-size:.78rem;font-weight:700;overflow:hidden;flex-shrink:0}
.friend-request-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.friend-request-actions{display:flex;gap:.4rem;justify-content:flex-end}
.friend-request-actions button{font-size:.75rem!important;padding:.25rem .55rem!important;margin:0!important}
.friends-page button.chrome-button{border-color:var(--ui-border)!important;background:var(--ui-raised)!important;color:var(--ui-ink)!important;box-shadow:inset 1px 1px var(--ui-light),inset -1px -1px var(--ui-dark)}
.friends-page button.chrome-button:hover{background:var(--ui-hover)!important}.friends-page button.chrome-button:active{box-shadow:inset 1px 1px var(--ui-dark),inset -1px -1px var(--ui-light)}
.friends-page button.chrome-button-primary{border-color:var(--ui-accent-strong)!important;background:var(--ui-accent-dark)!important;color:var(--ui-accent-dark-ink)!important}.friends-page button.chrome-button-primary:hover{background:var(--ui-accent-mid)!important;color:var(--ui-accent-mid-ink)!important}
.friends-page button.chrome-button-danger{border-color:var(--ui-danger-border)!important;background:var(--ui-danger)!important;color:var(--ui-danger-ink)!important}
.friend-manager-empty{padding:.9rem 1rem;font-size:.85rem;color:var(--ui-muted-ink)}
@media (max-width:560px){.friends-page{width:98%;max-height:86vh}.friend-request-table th:nth-child(3),.friend-request-table td:nth-child(3){display:none}.friend-request-table th,.friend-request-table td{padding:.65rem}.friend-request-actions{justify-content:flex-start;flex-wrap:wrap}}
/* Notifications inbox: transparent app surface with floating, rounded cards. */
#shell-workspace #app-container .notifications-page{--notifications-ink:var(--ui-ink);--notifications-muted:var(--ui-muted-ink);--chrome-control-radius:10px;--chrome-row-radius:14px;--chrome-row-shadow:0 8px 24px rgb(0 0 0/.23);display:flex;flex:1;flex-direction:column;align-self:center;width:min(100%,68rem);min-width:0;min-height:0;overflow:hidden;border:0;background:transparent;box-shadow:none}
.notifications-window-body{display:flex;flex:1;flex-direction:column;min-height:0;overflow:hidden;background:transparent;color:var(--notifications-ink)}
.notifications-header{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:1rem;padding:clamp(.7rem,2vw,1rem) clamp(.75rem,2.5vw,1.25rem);border:0;background:transparent}
.notifications-heading-copy{min-width:0}.notifications-heading-copy h1{margin:0;color:var(--notifications-ink);font-size:clamp(1rem,2vw,1.18rem);line-height:1.2}.notifications-heading-copy p{margin:.18rem 0 0;color:var(--notifications-muted);font-size:.74rem}
#root #app-container .notifications-toolbar.chrome-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:.65rem;min-width:0;padding:.35rem .45rem!important;border:1px solid var(--ui-border)!important;border-radius:14px!important;background:var(--ui-surface)!important;box-shadow:0 4px 16px rgb(0 0 0/.2)!important}
.notifications-filters{display:inline-flex;align-items:center;padding:2px;border:1px solid var(--ui-border);border-radius:999px;background:var(--ui-sunken)}
#app-container button.notifications-filter{--chrome-control-radius:999px;min-height:1.8rem;margin:0!important;padding:.28rem .72rem!important;border:0!important;border-radius:999px!important;background:transparent!important;color:var(--ui-muted-ink)!important;box-shadow:none!important;font-size:.76rem!important;font-weight:600}
.notifications-filter[aria-pressed=true]{background:var(--ui-raised)!important;color:var(--ui-ink)!important;box-shadow:0 1px 4px rgb(0 0 0/.24)!important}.notifications-filter:focus-visible{outline:2px solid var(--ui-accent);outline-offset:2px}
.notifications-commands{display:flex;align-items:center;gap:.4rem}.notifications-commands button{white-space:nowrap}.notifications-commands button:disabled,.notification-actions:disabled{opacity:.55;cursor:default}
.notifications-loading,.notifications-error,.notifications-empty{flex:1;min-height:12rem;padding:clamp(.8rem,2vw,1.25rem)}.notifications-loading-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.notification-skeleton{display:grid;gap:.55rem;margin:0 0 .65rem;padding:.85rem;border:1px solid var(--ui-grid);border-radius:14px;background:var(--ui-raised);overflow:hidden}.notification-skeleton span{display:block;position:relative;height:.68rem;border-radius:999px;background:var(--ui-sunken);overflow:hidden}.notification-skeleton span::after{content:"";position:absolute;inset:0;transform:translateX(-100%);background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--ui-light) 58%,transparent),transparent);animation:notification-shimmer 1.25s infinite}.notification-skeleton-title{width:min(19rem,72%)}.notification-skeleton-meta{width:min(11rem,45%)}.notification-skeleton-body{width:min(31rem,90%)}@keyframes notification-shimmer{to{transform:translateX(100%)}}
.notifications-empty,.notifications-error{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.45rem;text-align:center;color:var(--notifications-muted)}.notifications-empty h2,.notifications-error h2{margin:0;color:var(--notifications-ink);font-size:1rem}.notifications-empty p,.notifications-error p{max-width:28rem;margin:0;font-size:.82rem;line-height:1.5}.notifications-state-icon{display:grid;width:2.35rem;height:2.35rem;place-items:center;margin-bottom:.15rem;border:1px solid var(--ui-border);border-radius:50%;background:var(--ui-raised);color:var(--ui-accent);font-size:1.2rem}
.notifications-notice{margin:var(--shell-space) var(--shell-space) 0;padding:.58rem .72rem;border:1px solid var(--ui-border);border-left:3px solid var(--ui-accent);border-radius:10px;background:var(--ui-raised);color:var(--ui-ink);box-shadow:0 4px 14px rgb(0 0 0/.18);font-size:.78rem}.notifications-notice[data-tone=error]{border-left-color:var(--ui-danger-ink,#a33);color:var(--ui-danger-ink,#a33)}.notifications-live{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.notifications-list{display:flex;flex:1;flex-direction:column;gap:clamp(.45rem,var(--shell-space),.75rem);overflow-y:auto;padding:clamp(.65rem,2vw,1rem)}
.notification-row{display:flex;position:relative;flex-direction:column;gap:.55rem;padding:clamp(.68rem,1.6vw,.9rem);border:1px solid var(--ui-border);border-left:3px solid transparent;border-radius:14px;background:var(--ui-raised);color:var(--notifications-ink);box-shadow:var(--chrome-row-shadow);transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease,background-color .16s ease}.notification-row:hover{--chrome-row-shadow:0 12px 30px rgb(0 0 0/.3);border-color:var(--ui-border);background:color-mix(in srgb,var(--ui-raised) 88%,var(--ui-hover));transform:translateY(-2px)}.notification-row[data-unread=true]{--chrome-row-shadow:0 9px 26px rgb(0 0 0/.27);border-left-color:var(--ui-accent);background:color-mix(in srgb,var(--ui-raised) 92%,var(--ui-accent))}.notification-row[data-unread=true]:hover{--chrome-row-shadow:0 13px 32px rgb(0 0 0/.34)}.notification-row[aria-busy=true]{opacity:.72}
.notification-card-head{display:block;min-width:0}.notification-title-copy{min-width:0}.notification-title-copy h2{margin:0;overflow:hidden;color:var(--notifications-ink);font-size:.9rem;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}.notification-title-copy small{display:block;margin-top:.16rem;color:var(--notifications-muted);font-size:.7rem;font-variant-numeric:tabular-nums}.notification-context{display:inline-flex;align-items:center;width:max-content;margin-left:0;padding:.12rem .42rem;border:1px solid var(--ui-border);border-radius:999px;background:var(--ui-surface);color:var(--notifications-muted);font-size:.64rem;font-weight:600;line-height:1.35}
.notification-body{margin:0!important;color:var(--notifications-muted)!important;font-size:.82rem!important;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
#app-container button.notification-actor{display:flex!important;align-items:center;gap:.55rem;width:max-content!important;max-width:100%;margin:0!important;padding:.2rem!important;border:0!important;border-radius:6px!important;background:transparent!important;color:inherit!important;box-shadow:none!important;text-align:left}.notification-actor:hover{background:var(--ui-hover)!important}.notification-actor:focus-visible{outline:2px solid var(--ui-accent)!important;outline-offset:2px}.notification-actor-avatar{display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;flex-shrink:0;overflow:hidden;border-radius:50%;background:var(--ui-accent-dark);color:var(--ui-accent-dark-ink);box-shadow:inset 1px 1px var(--ui-accent-strong),inset -1px -1px var(--ui-dark);font-size:.8rem;font-weight:700}.notification-actor-avatar img{display:block;width:100%;height:100%;object-fit:cover}.notification-actor-copy{display:flex;min-width:0;flex-direction:column}.notification-actor-copy strong{overflow:hidden;font-size:.78rem;text-overflow:ellipsis;white-space:nowrap}.notification-actor-copy small{color:var(--notifications-muted);font-size:.66rem}
/* All actions share the card's top-right row; Delete is last in DOM. */
#root #app-container .notifications-page .notification-actions{position:absolute;top:.65rem;right:.65rem;z-index:1;display:flex;align-items:center;justify-content:flex-end;flex-wrap:nowrap;gap:.38rem;width:max-content;max-width:calc(100% - 1.3rem);min-width:0;margin:0;padding:0;border:0}
.notification-actions button,.notifications-toolbar button{font-size:.8rem!important;padding:.3rem .7rem!important;margin:0!important}.notification-actions button:focus-visible,.notifications-commands button:focus-visible{outline:2px solid var(--ui-accent);outline-offset:2px}.notification-actions:disabled button{cursor:wait}
#root #app-container .notifications-page .notification-actions button{flex:0 0 auto;white-space:nowrap}
#root #app-container .notifications-page .notification-card-head{padding-right:2.55rem}
#root #app-container .notifications-page .notification-row:has(.notification-mark-read) .notification-card-head{padding-right:4.95rem}
#root #app-container .notifications-page .notification-row:has(.notification-actions .chrome-button-primary) .notification-card-head{padding-right:14.5rem}
#root #app-container .notifications-page .notification-row:has(.notification-actions .chrome-button-primary):has(.notification-mark-read) .notification-card-head{padding-right:16.9rem}
#root #app-container .notifications-page .notification-row:has(.notification-actions button:nth-child(4)) .notification-card-head{padding-right:19.5rem}
#root #app-container .notifications-page .notification-row:has(.notification-actions button:nth-child(3)):not(:has(.notification-mark-read)) .notification-card-head{padding-right:17.2rem}
#root #app-container .notifications-page .notification-mark-read,#root #app-container .notifications-page .notification-delete{display:grid;place-items:center;width:2rem;height:2rem;min-width:2rem;min-height:2rem;margin:0!important;padding:0!important;border-color:var(--ui-border)!important;background:var(--ui-surface)!important;box-shadow:none!important;cursor:pointer}
#root #app-container .notifications-page .notification-mark-read{color:var(--ui-ink)!important}#root #app-container .notifications-page .notification-delete{color:#e59696!important}
.notification-mark-read::before,.notification-delete::before{content:"";display:block;width:1.1rem;height:1.1rem;background:currentColor}.notification-mark-read::before{-webkit-mask:url('/shell/app-icons/eye.svg') center/contain no-repeat;mask:url('/shell/app-icons/eye.svg') center/contain no-repeat}.notification-delete::before{-webkit-mask:url('/shell/app-icons/trash.svg') center/contain no-repeat;mask:url('/shell/app-icons/trash.svg') center/contain no-repeat}
#root #app-container .notifications-page .notification-delete:hover:not(:disabled){border-color:#b96060!important;background:var(--ui-danger)!important;color:#ffd3d3!important}
@media(max-width:700px){.notifications-header{align-items:stretch;flex-direction:column;gap:.65rem}.notifications-toolbar{justify-content:space-between}.notifications-commands{margin-left:auto}}
@media(max-width:600px){#root #app-container .notifications-page .notification-row:has(.notification-actions .chrome-button-primary) .notification-card-head{padding-right:0;padding-top:2.55rem}#root #app-container .notifications-page .notification-row:has(.notification-actions .chrome-button-primary):has(.notification-mark-read) .notification-card-head{padding-right:0}}
@media(max-width:480px){.notifications-page{width:100%;height:100%}.notifications-header{padding:.65rem}.notifications-heading-copy p{display:none}.notifications-toolbar{align-items:stretch;flex-direction:column}.notifications-filters{align-self:flex-start}.notifications-commands{width:100%;margin:0}.notifications-commands button{flex:1}.notifications-list{padding:.55rem}}
@media(prefers-reduced-motion:reduce){.notification-skeleton span::after{animation:none}.notification-row,.notification-row:hover{transition:none;transform:none}}
.homepage-page{--homepage-inner-max-width:44rem;--homepage-inline-pad:max(clamp(.75rem,2vw,1.5rem),calc(50% - 22rem));box-sizing:border-box;display:flex;flex-direction:column;width:100%;min-height:100%;margin:0;background:transparent;color:var(--shell-ink)}.homepage-layout{box-sizing:border-box;display:grid;width:100%;grid-template-columns:minmax(0,1fr);align-items:start;gap:var(--shell-space);padding:clamp(.75rem,2vw,1.5rem) var(--homepage-inline-pad)}.homepage-activity{min-width:0}.homepage-activity-header{margin:0 0 .65rem}.homepage-activity-header h1{margin:0;font-size:1.1rem}.homepage-post-composer-wrap{margin:0 0 .65rem}.homepage-post-composer{color:var(--ui-ink)}.homepage-post-status{min-height:1.1rem;margin:.35rem 0 0;font-size:.8rem;color:#b52f2f}.homepage-post-status:empty{display:none}.homepage-activity .posts-list{margin:0}.homepage-activity .posts-avatar{border-radius:100%}

.messages-page{--messages-surface:var(--ui-surface);--messages-ink:var(--ui-ink);--messages-muted:var(--ui-muted-ink);align-self:stretch;display:flex;flex:1;flex-direction:column;width:100%;height:100%;min-width:0;min-height:0;overflow:hidden}
.messages-titlebar{flex:0 0 auto;justify-content:flex-start}.messages-titlebar h1{overflow:hidden;margin:0;font-size:.78rem;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}
.messages-window-body{flex:1;display:grid;grid-template-columns:minmax(14rem,20rem) 1fr;min-width:0;min-height:0;overflow:hidden}
.messages-sidebar{display:flex;flex-direction:column;border-right:1px solid var(--ui-border);background:var(--messages-surface);color:var(--messages-ink);min-height:0}
.messages-search{width:auto;margin:.5rem;padding:.55rem .65rem;font:inherit}
.messages-search::placeholder{color:var(--ui-field-muted);opacity:1}
.messages-conv-list{flex:1;overflow-y:auto;display:flex;flex-direction:column;border-top:1px solid var(--ui-border)}
.messages-list-heading{padding:.55rem .9rem .35rem;font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--messages-muted)}
.messages-conv-item{display:flex;align-items:center;gap:.6rem;border-width:0 0 1px;padding:.65rem .9rem;margin:0;color:var(--messages-ink);font:inherit;text-align:left;cursor:pointer;position:relative}
.messages-conv-item[data-online=true]::after{content:'';position:absolute;left:2.55rem;top:2.45rem;width:.55rem;height:.55rem;border-radius:50%;background:#3fb950;border:2px solid var(--messages-surface)}
.messages-conv-item:hover{background:var(--ui-hover);color:var(--messages-ink)}
.messages-conv-item:focus-visible{outline:1px dotted currentColor;outline-offset:-4px}
.messages-conv-item[data-selected=true]{border-color:var(--ui-accent-strong);background:var(--ui-accent-dark);color:var(--ui-accent-dark-ink)}
.messages-conv-item[data-archived=true]{color:var(--messages-muted)}
.messages-conv-avatar{width:2.25rem;height:2.25rem;border-radius:50%;background:var(--ui-sunken);color:var(--messages-ink);box-shadow:inset 1px 1px var(--ui-dark),inset -1px -1px var(--ui-light);display:flex;align-items:center;justify-content:center;font-size:.9rem;font-weight:700;overflow:hidden;flex-shrink:0}
.messages-conv-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.messages-profile-link{color:inherit;text-decoration:none}
.messages-profile-link:hover{text-decoration:underline}
.messages-avatar-link{display:flex;flex-shrink:0;border-radius:50%}
.messages-conv-meta{display:flex;flex-direction:column;gap:.15rem;min-width:0;flex:1}
.messages-conv-hide{flex:0 0 auto;width:1.5rem;height:1.5rem;margin:0!important;padding:0!important;border:0!important;background:transparent!important;color:inherit!important;box-shadow:none!important;font:1.25rem/1 sans-serif!important;cursor:pointer}.messages-conv-hide:hover,.messages-conv-hide:focus-visible{opacity:1;background:var(--ui-hover)!important}.messages-conv-hide:focus-visible{outline:1px dotted currentColor;outline-offset:1px}
.messages-name-link{font-size:.9rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:max-content;max-width:100%}
.messages-conv-meta small{font-size:.78rem;color:color-mix(in srgb,currentColor 64%,transparent);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.messages-conv-item[data-unread=true] .messages-name-link{font-weight:700}
.messages-conv-item[data-unread=true] .messages-conv-avatar{box-shadow:0 0 0 2px var(--shell-accent)}
.messages-thread{display:flex;flex:1;flex-direction:column;min-width:0;background:var(--messages-surface);color:var(--messages-ink);min-height:0}
.messages-thread-header{display:flex;align-items:center;gap:.6rem;padding:.6rem .8rem;border-width:0 0 1px;position:relative}
.messages-thread-header[data-online=true]::after{content:'';position:absolute;left:2.35rem;top:2.15rem;width:.5rem;height:.5rem;border-radius:50%;background:#3fb950;border:2px solid var(--messages-surface)}
.messages-thread-name-link{font-size:1rem;font-weight:700}
.messages-thread-header-avatar{width:2rem;height:2rem;border-radius:50%;background:var(--ui-sunken);color:var(--messages-ink);box-shadow:inset 1px 1px var(--ui-dark),inset -1px -1px var(--ui-light);display:flex;align-items:center;justify-content:center;font-size:.8rem;font-weight:700;overflow:hidden;flex-shrink:0}
.messages-thread-header-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.messages-thread-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:var(--shell-space);display:flex;flex-direction:column;gap:.35rem;background:var(--messages-surface);color:var(--messages-ink);box-shadow:inset 1px 1px var(--ui-dark),inset -1px -1px var(--ui-light)}
.messages-group-timestamp{align-self:center;font-size:.72rem;color:var(--messages-muted);margin:.5rem 0 .1rem}
.messages-bubble{max-width:75%;border:1px solid var(--ui-border);border-radius:min(var(--shell-radius),12px);padding:.5rem .8rem;background:var(--ui-raised);color:var(--messages-ink);box-shadow:inset 1px 1px var(--ui-light),inset -1px -1px var(--ui-dark);align-self:flex-start}
.messages-bubble p{margin:0;font-size:.9rem;white-space:pre-wrap;word-break:break-word}
.messages-bubble[data-mine=true]{border-color:var(--ui-accent-strong);background:var(--ui-accent-dark);color:var(--ui-accent-dark-ink);align-self:flex-end}
.messages-composer{display:flex;gap:.5rem;padding:.75rem;border-top:1px solid var(--ui-border);background:var(--ui-raised)}
.messages-composer textarea{flex:1;resize:none;height:2.6rem;padding:.4rem .6rem;font:inherit}
.messages-composer textarea::placeholder{color:var(--ui-field-muted);opacity:1}
.messages-composer button{font-size:.9rem !important;padding:.4rem 1rem !important;margin:0 !important;align-self:flex-end}
.messages-archived-hint{width:100%;font-size:.82rem;line-height:1.4;text-align:center;color:var(--messages-muted);padding:.25rem}
.messages-hint{color:var(--messages-muted);font-size:.9rem;padding:1rem;margin:0}
.messages-typing{color:var(--messages-muted);font-size:.78rem;font-style:italic;padding:.2rem .1rem 0;margin:0;align-self:flex-start}
.messages-typing::after{content:'…';animation:messages-typing-dots 1.2s steps(4,end) infinite}
@keyframes messages-typing-dots{0%{content:''}25%{content:'.'}50%{content:'..'}75%{content:'...'}}
@media (max-width:620px){.messages-window-body{grid-template-columns:minmax(9rem,42%) 1fr}.messages-conv-meta small{display:none}.messages-thread-body{padding:.6rem}.messages-bubble{max-width:88%}}
/* Related post pages share the homepage's centered reading column. */
.posts-page{--shell-radius:14px;box-sizing:border-box;width:100%;min-height:100%;display:flex;flex-direction:column;font-family:var(--shell-font);color:var(--ui-ink)}
.posts-page::before{display:none}
.posts-main{box-sizing:border-box;flex:1;width:100%;max-width:44rem;margin:0 auto;padding:clamp(.75rem,2vw,1.5rem);display:flex;flex-direction:column;gap:.85rem;min-height:0}
.posts-status{min-height:1.1rem;margin:0 2px 2px;padding:0 .85rem .6rem;font-size:.8rem;color:#b52f2f;background:var(--shell-surface)}
.posts-status:empty{padding:0}
.posts-heading{color:var(--ui-page-muted-ink);margin:.4rem 0 0;font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;}
.posts-hint{color:var(--ui-page-muted-ink);font-size:.9rem;margin:0}
.posts-composer,.posts-comment-composer{display:flex;flex-direction:column;gap:.5rem;background:var(--shell-surface);color:inherit;border:1px solid #050505;border-radius:0;box-shadow:inset 1px 1px #3a3a3a,inset -1px -1px #050505;padding:.75rem}
.posts-composer textarea,.posts-comment-composer textarea{resize:none;height:3.4rem;background:var(--shell-surface);border:1px solid #050505;border-radius:0;box-shadow:inset 1px 1px #050505,inset -1px -1px #3a3a3a;color:var(--shell-surface-ink);padding:.45rem .6rem;font:inherit}
.posts-composer-controls{display:flex;align-items:center;gap:.6rem}
.posts-composer-controls button,.posts-comment-composer button{font-size:.85rem !important;padding:.35rem .9rem !important;margin:0 !important}
.posts-composer-submit,.posts-comment-composer button{margin-left:auto !important}
.posts-composer-counter{color:var(--ui-muted-ink);margin-left:auto;font-size:.75rem;font-variant-numeric:tabular-nums}
.posts-composer-counter+.posts-composer-submit{margin-left:0 !important}
.posts-composer-thumbs{display:flex;gap:.5rem;flex-wrap:wrap}
.posts-composer-thumbs:empty{display:none}
.posts-composer-thumb{position:relative;width:4.5rem;height:4.5rem;border-radius:0;overflow:hidden;background:var(--shell-surface);border:1px solid #050505;box-shadow:inset 1px 1px #3a3a3a,inset -1px -1px #050505}
.posts-composer-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.posts-composer-thumb button{position:absolute;top:.15rem;right:.15rem;width:1.3rem;height:1.3rem;line-height:1;padding:0 !important;margin:0 !important;font-size:.85rem !important;border-radius:50%}
.posts-list,.posts-comments,.posts-detail{display:flex;flex-direction:column;gap:.6rem}
.posts-card,.posts-comment{background:var(--shell-surface);color:inherit;border:1px solid #050505;border-radius:0;box-shadow:inset 1px 1px #3a3a3a,inset -1px -1px #050505;padding:.7rem .85rem;display:flex;flex-direction:column;gap:.45rem}
.posts-card.posts-card-compact{background:transparent;color:inherit;border:1px solid rgba(128,128,128,.28);border-radius:8px;box-shadow:none;padding:.65rem}
.posts-card-compact .posts-card-media{grid-template-columns:repeat(auto-fit,minmax(min(7rem,100%),1fr));gap:.35rem}
.posts-card-compact .posts-card-media img{max-height:14rem;border:0;border-radius:6px}
.posts-card-compact .posts-card-footer{color:var(--ui-muted-ink);font-size:.72rem;}
.posts-card-compact .posts-footer-btn{font-size:.72rem !important;padding:.18rem .5rem !important}
.posts-card-compact .posts-comments-btn{margin-left:auto!important}
.posts-card-head{display:flex;align-items:center;gap:.55rem}
.posts-card-head small,.posts-card-head .posts-permalink{color:var(--ui-muted-ink);font-size:.74rem;margin-left:auto;flex-shrink:0}
.posts-card-head .posts-permalink{color:inherit;text-decoration:none}.posts-card-head .posts-permalink:hover{text-decoration:underline}
.posts-avatar{width:2rem;height:2rem;border-radius:0;background:var(--shell-surface);color:inherit;border:1px solid #050505;box-shadow:inset 1px 1px #3a3a3a,inset -1px -1px #050505;display:flex;align-items:center;justify-content:center;font-size:.85rem;font-weight:700;overflow:hidden;flex-shrink:0}
.posts-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.posts-comment-avatar{width:1.6rem;height:1.6rem;font-size:.7rem}
.posts-profile-link{color:inherit;text-decoration:none;display:flex;flex-shrink:0;border-radius:0}
.posts-profile-link:hover{text-decoration:underline}
.posts-author-name{font-size:.9rem;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.posts-card-text{margin:0;font-size:.92rem;white-space:pre-wrap;word-break:break-word}
.posts-card-text a{color:var(--shell-accent);text-decoration:underline}.posts-card-compact .posts-card-text a{color:var(--profile-accent,var(--shell-accent))}
.posts-card-embeds{display:grid;gap:.5rem}.posts-youtube-embed{display:block;width:100%;aspect-ratio:16/9;border:0;border-radius:var(--shell-radius);background:#000}
.posts-card-media{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(10rem,100%),1fr));gap:.4rem;border:0}.posts-card-media img{display:block;width:auto;height:auto;max-width:100%;max-height:20rem;object-fit:contain;border:0;border-radius:0;cursor:zoom-in}.posts-card-media img:focus-visible{outline:2px solid var(--ui-accent);outline-offset:2px}
.posts-card-footer{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap}
.posts-page button,.homepage-post-composer button{border:1px solid #050505 !important;border-radius:0 !important;background:var(--shell-surface) !important;color:var(--shell-surface-ink) !important;box-shadow:inset 1px 1px #3a3a3a,inset -1px -1px #050505}
.posts-page button:hover:not(:disabled),.homepage-post-composer button:hover:not(:disabled){filter:brightness(1.08)}
.posts-page button:active:not(:disabled),.homepage-post-composer button:active:not(:disabled){box-shadow:inset 1px 1px #050505,inset -1px -1px #3a3a3a}
.posts-footer-btn{font-size:.8rem !important;padding:.25rem .7rem !important;margin:0 !important}
.posts-footer-btn:disabled{opacity:.5;cursor:default}
.posts-reaction-btn[data-reacted=true]{--ui-border:var(--profile-accent,var(--shell-accent));border-color:var(--ui-border)!important}
.posts-delete-btn{margin-left:auto !important;color:#e5534b}
.posts-back-btn{align-self:flex-start;font-size:.85rem !important;padding:.3rem .8rem !important;margin:0 !important}
:is(.background-editor-modal,.header-editor-modal,.images-toolbar,.images-card,.hertz-toolbar,.hertz-card,.hertz-composer,.hertz-detail-header,.hertz-track-row,.hertz-uploader,.hertz-player,.friends-page,.friend-manager,.messages-page){background:var(--shell-surface);color:var(--shell-surface-ink);border-radius:var(--shell-radius)}

/* User profile appearance is a shell-level contract. App CSS may choose
   colors and bevels, but it must not replace the user's type, corner, or
   density choices. `inherit` also lets a viewed profile's local font class
   win inside that profile without leaking into the rest of the shell. */
.theme-font-sans{font-family:var(--shell-font) !important}
.theme-font-serif{font-family:Georgia,'Times New Roman',serif !important}
.theme-font-mono{font-family:'SFMono-Regular',Consolas,monospace !important}
#root :where(*):not(.theme-font-sans):not(.theme-font-serif):not(.theme-font-mono),
#root #app-container :where(*):not(.theme-font-sans):not(.theme-font-serif):not(.theme-font-mono){font-family:inherit !important}

/* Compact shells keep the app surface clear and place persistent navigation in
   thumb-reachable safe areas. The same controls and DOM serve both layouts. */
@media (pointer:coarse){body{background-attachment:scroll}}
#root[data-layout="compact"]{min-height:100dvh}
#root[data-layout="compact"] #app-container{min-height:0;padding:calc(env(safe-area-inset-top) + .75rem) .5rem calc(env(safe-area-inset-bottom) + 8rem)}
#root[data-layout="compact"] .app-mount{min-height:0}
#root[data-layout="compact"] #search-toggle,#root[data-layout="compact"] #shell-home-button,#root[data-layout="compact"] #shell-profile-button,#root[data-layout="compact"] #shell-notif-button{width:2.75rem;height:2.75rem;min-width:2.75rem;min-height:2.75rem}
#root[data-layout="compact"] #shell-home-button{top:auto;left:max(.65rem,env(safe-area-inset-left));bottom:calc(env(safe-area-inset-bottom) + .65rem)}
#root[data-layout="compact"] #shell-profile-button{top:auto;right:max(.65rem,env(safe-area-inset-right));bottom:calc(env(safe-area-inset-bottom) + .65rem)}
#root[data-layout="compact"] #shell-notif-button{top:auto;right:calc(max(.65rem,env(safe-area-inset-right)) + 3.35rem);bottom:calc(env(safe-area-inset-bottom) + .65rem)}
#root[data-layout="compact"] #shell-superbar-actions #shell-profile-button{position:static;right:auto;bottom:auto}#root[data-layout="compact"] #shell-superbar-actions #shell-notif-button{position:relative;right:auto;bottom:auto}
#root[data-layout="compact"] #shell-search{top:auto;bottom:calc(env(safe-area-inset-bottom) + .65rem);width:min(18rem,calc(100vw - 12rem));z-index:1002}
#root[data-layout="compact"] #shell-search:not(.minimized){top:calc(env(safe-area-inset-top) + .65rem);bottom:auto;width:min(32rem,calc(100vw - 1.3rem))}
#root[data-layout="compact"] #search-results{max-height:min(50dvh,18rem)}
#root[data-layout="compact"] .images-card:hover .images-delete,#root[data-layout="compact"] .images-delete{opacity:1}

/* Repeated content surfaces stay flat; reserve elevation for transient
   overlays and the few controls that need stronger visual separation. */
:is(
  .background-editor-modal,.header-editor-modal,
  .signup-card,.login-card,.shell-confirm-card,.posts-page,
  .images-toolbar,.images-card,.hertz-toolbar,.hertz-card,.hertz-composer,
  .hertz-detail-header,.hertz-track-row,.hertz-uploader,.hertz-player,
  .friends-page,.friend-manager,
  .messages-page,.chrome-window
){border-color:var(--ui-border) !important;border-radius:min(var(--shell-radius),28px) !important}
.profile-page :is(.profile-header,.widget,.profile-editor-bar,.theme-editor){border-color:var(--ui-border) !important;border-radius:min(var(--shell-radius),28px) !important;background:var(--profile-surface,var(--shell-surface)) !important;box-shadow:none !important}
.profile-page .profile-header::before,.profile-page .profile-editor-bar::before,.profile-page .theme-editor::before,
.profile-page .widget>div:first-child:not(.widget-titlebar)>.widget-heading,.profile-page .widget>.widget-content>.widget-heading,
.profile-page .widget-embed::before,.profile-page .widget-titlebar{
  margin:0 !important;border-radius:min(var(--shell-radius),7px) min(var(--shell-radius),7px) 0 0 !important;
  background:var(--profile-titlebar-start,var(--shell-accent-dark)) !important;
  box-shadow:none !important
}
.profile-page :is(.profile-header,.profile-editor-bar,.theme-editor,.widget-embed)[data-contextual-title]::before,
:is(.login-card,.signup-card,.posts-page)[data-contextual-title]::before{
  content:attr(data-context-title) !important
}
#app-container :where(button,input,select,textarea){border-radius:min(var(--shell-radius),8px) !important}
#app-container .profile-page :where(button,input,select,textarea){border-radius:min(var(--shell-radius),8px) !important}
#app-container :where(.calendar-page-day){border-radius:0 !important}

/* Text-entry fields use a binary light/dark mode derived from the active
   profile surface. Keep native toggles, uploads, and color controls out of
   this contract; scoped profile themes publish their own field pair. */
#app-container :is(
  input:not([type]),input[type=text],input[type=search],input[type=email],
  input[type=password],input[type=url],input[type=tel],input[type=number],
  input[type=date],input[type=datetime-local],input[type=month],
  input[type=time],input[type=week],textarea
){background:var(--shell-field) !important;color:var(--shell-field-ink) !important;caret-color:var(--shell-field-ink) !important}
#app-container :is(
  input:not([type]),input[type=text],input[type=search],input[type=email],
  input[type=password],input[type=url],input[type=tel],input[type=number],
  input[type=date],input[type=datetime-local],input[type=month],
  input[type=time],input[type=week],textarea
)::placeholder{color:var(--ui-field-muted) !important;opacity:1}

/* Density controls both axes of each app's primary page, column, grid, and
   list layouts. Small internal icon/titlebar gaps stay deliberately tight
   so classic chrome keeps its visual rhythm. */
:is(
  .images-page,.images-grid,.hertz-page,
  .hertz-grid,.notifications-list,
  .homepage-layout,.posts-list,.posts-comments,.posts-detail,
  .theme-layout,.tasks-sidebar,.tasks-list,
  .calendar-page-sidebar,.calendar-events-container,.performance-grid
){column-gap:var(--shell-space) !important;row-gap:var(--shell-space) !important}
.theme-density-compact{--profile-layout-space:.75rem}
.theme-density-cozy{--profile-layout-space:1rem}
.theme-density-spacious{--profile-layout-space:1.3rem}
.profile-page,.profile-widgets{column-gap:var(--profile-layout-space,var(--shell-space)) !important;row-gap:var(--profile-layout-space,var(--shell-space)) !important}
.profile-page .widget{margin-bottom:var(--profile-layout-space,var(--shell-space)) !important}
:is(.hertz-public-table,.friend-request-table) :is(th,td){padding-block:clamp(.45rem,calc(var(--shell-space) - .25rem),1rem) !important;padding-inline:clamp(.6rem,calc(var(--shell-space) - .1rem),1.2rem) !important}
:is(.notification-row,.messages-conv-item,.posts-card,.posts-comment,.task-item,.calendar-event-item){padding-block:clamp(.45rem,calc(var(--shell-space) - .25rem),1rem) !important;padding-inline:clamp(.6rem,calc(var(--shell-space) - .1rem),1.2rem) !important}

/* Hertz is an information-dense library: show more tracks and metadata in
   each viewport without changing its table hierarchy. */
#app-container .hertz-public-table{font-size:.8rem}
#app-container .hertz-public-table :is(th,td){padding:.38rem .55rem!important}
#app-container .hertz-public-table th{font-size:.66rem}
#app-container .hertz-public-table th:has(.hertz-board-sort){padding:0!important}
#app-container .hertz-board-sort{padding:.38rem .55rem!important}
#app-container .hertz-public-track-preview{width:2.75rem!important;min-width:2.75rem!important;max-width:2.75rem!important;height:2.75rem!important;min-height:2.75rem!important;max-height:2.75rem!important;flex-basis:2.75rem}
.hertz-collection-art-cell{width:3rem}.hertz-public-track-name{font-size:.84rem!important}.hertz-public-track-owner{font-size:.7rem!important}
.hertz-object-panel{padding:.65rem}.hertz-track-table{font-size:.78rem}.hertz-track-table th,.hertz-track-table td{padding:.38rem .55rem}.hertz-track-table th{font-size:.66rem}
@keyframes toast-in{from{opacity:0;transform:translateY(.4rem)}to{opacity:1;transform:translateY(0)}}

/* Hertz's transport is a compact, edge-to-edge footer rather than a shell card. */
.hertz-player{grid-template-columns:minmax(8rem,1fr) minmax(12rem,2.2fr) minmax(5.5rem,.7fr);gap:clamp(.3rem,1vw,.65rem);min-height:3.2rem;padding:.3rem clamp(.45rem,1vw,.7rem);border-radius:var(--ui-control-radius,10px)!important}
.hertz-player-identity{gap:.4rem}.hertz-player-transport{gap:.45rem}.hertz-player-timeline{gap:.45rem}.hertz-player-times{gap:.2rem;font-size:.64rem}.hertz-player-volume-group{gap:.3rem}
#root .hertz-player-preview{width:2.1rem;height:2.1rem}#root .hertz-player-title{font-size:.75rem}#root .hertz-player-uploader{font-size:.64rem}
@media (max-width:700px){.hertz-player{gap:.3rem .5rem;padding:.3rem .5rem}}
@media (max-width:60rem){#root #app-container{width:100%;margin:0;padding:0}#root[data-layout="compact"] #app-container{margin:0;padding:0}.hertz-page{max-height:calc(100dvh - 3.7rem)}}

/* Flat shell pass: keep brand color, remove reflective gradients and glass. */
#shell-entry-overlay{background:#000}
.shell-entry-identities .shell-entry-tile,.shell-entry-identities .shell-entry-tile:hover{background:var(--ui-raised);box-shadow:none}
.shell-entry-identities .shell-entry-tile.selected{background:var(--ui-accent-dark);box-shadow:none}
.profile-page .profile-header::before,.profile-page .profile-editor-bar::before,.profile-page .theme-editor::before,
.profile-page .widget>div:first-child:not(.widget-titlebar)>.widget-heading,.profile-page .widget>.widget-content>.widget-heading,
.profile-page .widget-embed::before,.profile-page .widget-titlebar{background:var(--profile-titlebar-start,var(--shell-accent-dark)) !important;box-shadow:none !important}
.hertz-setup-backdrop{background:rgb(0 0 0/.72)}
.hertz-infinite-status{background:var(--shell-surface);box-shadow:none}
.hertz-player{background:var(--shell-surface);box-shadow:0 -1px var(--ui-border)}

/* Only real windows and modals use .chrome-titlebar. Widget labels are
   ordinary section headings, so nested content no longer imitates a window. */

.profile-page .widget-titlebar,
.profile-page .widget>div:first-child:not(.widget-titlebar)>.widget-heading,
.profile-page .widget>.widget-content>.widget-heading,
.profile-page .widget-embed::before{
  min-height:0;
  margin:0 !important;
  padding:.65rem .85rem;
  border:0;
  border-bottom:1px solid var(--ui-border);
  border-radius:0 !important;
  background:transparent !important;
  color:var(--ui-ink) !important;
  font:700 .82rem/1.2 var(--shell-font,Arial,Tahoma,sans-serif) !important;
}

.profile-page .widget .widget-heading>.contextual-titlebar-icon{display:none}

/* Remaining legacy app surfaces follow the same flat, bordered system. */
#shell-superbar,.shell-entry-card{box-shadow:none}
.shell-image-viewer-body,.background-image-preview,.header-media-preview,.images-thumbnail,
.theme-color-preview,.theme-color-swatch,
.hertz-composer,.hertz-uploader,.hertz-art-preview{box-shadow:none !important}
.profile-page .widget-controls button,.profile-page .profile-editor-bar button,
.images-page button.chrome-button,
.friends-page button.chrome-button{border-color:var(--ui-border) !important;border-radius:min(var(--shell-radius),6px) !important;background:var(--ui-raised) !important;color:var(--ui-ink) !important;box-shadow:none !important}
.profile-page .widget-controls button:active,.profile-page .profile-editor-bar button:active,
.images-page button.chrome-button:active,
.friends-page button.chrome-button:active{background:var(--ui-hover) !important;box-shadow:none !important}
.hertz-public-track-preview{background:var(--hertz-track-preview-color,var(--ui-accent-dark)) !important;box-shadow:none !important;text-shadow:none !important}
#root .hertz-player-preview{background:var(--hertz-preview-color,var(--shell-accent-dark)) !important;box-shadow:none !important;text-shadow:none !important}
#root .hertz-player-button{background:var(--shell-accent-dark) !important;box-shadow:none !important;text-shadow:none !important}
.hertz-setup-window{box-shadow:none}
.hertz-setup-banner,.hertz-setup-emblem,.hertz-setup-steps,.hertz-setup-steps li.is-active{background:var(--ui-surface);box-shadow:none}
#app-container .hertz-setup-close{background:var(--ui-danger) !important;box-shadow:none !important;text-shadow:none !important}
.signup-card,.login-card,.posts-page,.shell-confirm-card{border-color:var(--ui-border);background:var(--ui-surface);box-shadow:none}
.signup-card::before,.login-card::before,.posts-page::before,.shell-confirm-titlebar{margin:0;background:transparent;color:var(--ui-ink);border-bottom:1px solid var(--ui-border);box-shadow:none}
.signup-card input,.login-card input,.posts-composer textarea,.posts-comment-composer textarea{background:var(--ui-field);border-color:var(--ui-border);box-shadow:none}
.signup-card button,.login-card button,.posts-page button,.homepage-post-composer button,.shell-confirm-close,.shell-confirm-actions button{border-color:var(--ui-border) !important;border-radius:min(var(--shell-radius),6px) !important;background:var(--ui-raised) !important;color:var(--ui-ink) !important;box-shadow:none !important}
.posts-main,.posts-composer,.posts-comment-composer,.posts-composer-thumb,.posts-card,.posts-comment,.posts-avatar,.shell-confirm-body{border-color:var(--ui-border);background:var(--ui-surface);box-shadow:none}
/* Homepage cards sit directly on the page rather than inside .posts-page.
   Their panel background is the themed surface, so explicitly pair it with
   the surface-derived ink instead of inheriting the page-background ink. */
.homepage-activity .posts-card{border-radius:var(--shell-radius);color:var(--ui-ink)}
.homepage-post-composer-wrap .homepage-post-composer{border-radius:var(--shell-radius)}
#app-container button.friends-tab,.friend-manager,.friend-request-table th,.friend-request-avatar,.notification-actor-avatar,.messages-conv-avatar,.messages-thread-header-avatar,.messages-thread-body,.messages-bubble{box-shadow:none !important}
#app-container button.friends-tab{border:1px solid var(--ui-border) !important;background:var(--ui-surface) !important}
.messages-conv-avatar,.messages-thread-header-avatar{background:var(--ui-raised)}

/* Dedicated authentication layout: clear, calm, and separate from window chrome. */
.auth-page{box-sizing:border-box;display:grid;flex:1;min-width:0;min-height:0;place-items:center;padding:clamp(1.25rem,5vw,4rem);background:transparent;color:var(--ui-ink)}
.auth-card{box-sizing:border-box;width:min(100%,27rem);margin:0;padding:clamp(1.35rem,4vw,2.25rem);display:flex;flex-direction:column;gap:1rem;border:1px solid var(--ui-border);border-radius:min(var(--shell-radius),12px);background:var(--ui-surface);color:var(--ui-ink);box-shadow:none;font-family:var(--shell-font,Arial,Tahoma,sans-serif)}
.auth-card::before{display:none !important}.auth-header{display:flex;flex-direction:column;gap:.4rem;margin:0 0:.35rem}.auth-eyebrow{margin:0;color:var(--ui-accent);font-size:.74rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase}.auth-header h1{margin:0;color:var(--ui-ink);font-size:clamp(1.35rem,3vw,1.75rem);line-height:1.15}.auth-intro{margin:0;color:var(--ui-muted-ink);font-size:.9rem;line-height:1.45}
.auth-card .auth-field{display:flex;flex-direction:column;gap:.4rem;margin:0;color:var(--ui-ink);font-size:.84rem;font-weight:600;opacity:1}.auth-card .auth-field input{box-sizing:border-box;width:100%;min-height:2.65rem;margin:0;padding:.6rem .7rem;border:1px solid var(--ui-border);border-radius:min(var(--shell-radius),6px);background:var(--ui-field);color:var(--ui-field-ink);box-shadow:none;font:inherit}.auth-card .auth-field input:focus{border-color:var(--ui-accent);outline:2px solid color-mix(in srgb,var(--ui-accent) 28%,transparent);outline-offset:1px}
#app-container .auth-card .auth-submit{width:100%;min-height:2.7rem;margin:.25rem 0 0;padding:.6rem .9rem;border-color:var(--ui-accent-strong) !important;border-radius:min(var(--shell-radius),6px) !important;background:var(--ui-accent-dark) !important;color:var(--ui-accent-dark-ink) !important;box-shadow:none !important;font-size:.95rem;font-weight:700}#app-container .auth-card .auth-submit:not(:disabled):hover{background:var(--ui-accent-mid) !important}#app-container .auth-card .auth-submit:disabled{opacity:.58}
.auth-status{display:block;min-height:1.25rem;margin:0;color:var(--ui-muted-ink);font-size:.82rem;line-height:1.35}.auth-switch{display:flex;align-items:center;justify-content:center;gap:.35rem;flex-wrap:wrap;margin-top:.15rem;padding-top:1rem;border-top:1px solid var(--ui-border);color:var(--ui-muted-ink);font-size:.84rem}.auth-card .auth-link{width:auto;min-height:0;margin:0;padding:0;border:0 !important;border-radius:0 !important;background:transparent !important;color:var(--ui-accent) !important;box-shadow:none !important;font:inherit;font-weight:700;text-decoration:underline;text-underline-offset:2px}.auth-card .auth-link:hover{color:var(--ui-ink) !important}
/* Login keeps a clear primary action within the shared shell theme. */
#root #app-container .auth-card:is(.login-card,.signup-card){--shell-radius:12px;border-radius:16px !important;background:color-mix(in srgb,var(--shell-surface) 68%,transparent) !important;backdrop-filter:blur(12px)}
/* Official Discord symbol from discord.com/branding, shared by account controls. */
.discord-symbol {
  width: 22px;
  height: 18px;
  object-fit: contain;
  vertical-align: middle;
  flex: none;
}
button > .discord-symbol, [role="status"] > .discord-symbol { margin-inline-end: .45em; }
.google-symbol { display:inline-block; width:20px; height:20px; object-fit:contain; vertical-align:middle; flex:none; background:#fff; }
button:not(.google-auth-button) > .google-symbol, [role="status"] > .google-symbol { margin-inline-end:.45em; }

.auth-card .auth-field>label{margin:0;opacity:1;font:inherit}
.auth-card .auth-password-control{display:flex;align-items:center;gap:.5rem;min-width:0}
.auth-card .auth-password-control input{flex:1;min-width:0}
#root #app-container .auth-card .auth-field input{border-radius:8px !important}
#root #app-container #login-submit{min-height:2.9rem;margin:.25rem 0 0;padding:.7rem 1rem !important;border:1px solid var(--ui-accent-strong) !important;border-radius:8px !important;background:var(--ui-accent-dark) !important;color:var(--ui-accent-dark-ink) !important;box-shadow:none !important;font-size:1rem !important;font-weight:700}
#root #app-container #login-submit:not(:disabled):hover{background:var(--ui-accent-mid) !important}
#root #app-container .login-card :is(#login-forgot,#login-signup,#login-back,#login-resend){min-height:1.75rem;margin:0;padding:.15rem 0 !important;border:0 !important;border-radius:0 !important;background:transparent !important;box-shadow:none !important;font-size:.84rem !important;color:var(--ui-muted-ink) !important;font-weight:500}
#root #app-container .login-card :is(#login-forgot,#login-signup,#login-back,#login-resend):not(:disabled):hover{color:var(--ui-ink) !important;background:transparent !important}
#root #app-container #login-forgot{align-self:flex-end;margin-top:-.4rem}
#root #app-container .login-card :is(#login-password-toggle,#login-confirm-toggle){flex:none;min-height:2.65rem;margin:0;padding:.25rem .2rem !important;border:0 !important;background:transparent !important;box-shadow:none !important;color:var(--ui-muted-ink) !important;font-size:.75rem !important;font-weight:500;white-space:nowrap}
#root #app-container .login-card :is(#login-password-toggle,#login-confirm-toggle):not(:disabled):hover{background:transparent !important;color:var(--ui-ink) !important}
#root #app-container #signup-submit{min-height:2.9rem;margin:.25rem 0 0;padding:.7rem 1rem !important;border:1px solid var(--ui-accent-strong) !important;border-radius:8px !important;background:var(--ui-accent-dark) !important;color:var(--ui-accent-dark-ink) !important;box-shadow:none !important;font-size:1rem !important;font-weight:700}
#root #app-container #signup-submit:not(:disabled):hover{background:var(--ui-accent-mid) !important}
#root #app-container .signup-card :is(#signup-login,#signup-back,#signup-resend){min-height:1.75rem;margin:0;padding:.15rem 0 !important;border:0 !important;border-radius:0 !important;background:transparent !important;box-shadow:none !important;font-size:.84rem !important;color:var(--ui-muted-ink) !important;font-weight:500}
#root #app-container .signup-card :is(#signup-login,#signup-back,#signup-resend):not(:disabled):hover{color:var(--ui-ink) !important;background:transparent !important}
#root #app-container .signup-card :is(#signup-password-toggle,#signup-confirm-toggle){flex:none;min-height:2.65rem;margin:0;padding:.25rem .2rem !important;border:0 !important;background:transparent !important;box-shadow:none !important;color:var(--ui-muted-ink) !important;font-size:.75rem !important;font-weight:500;white-space:nowrap}
#root #app-container .signup-card :is(#signup-password-toggle,#signup-confirm-toggle):not(:disabled):hover{background:transparent !important;color:var(--ui-ink) !important}
.auth-legal{margin:0;color:var(--ui-muted-ink);font-size:.8rem;line-height:1.45}.auth-legal a{color:var(--ui-ink);text-underline-offset:2px}.auth-legal a:focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px}
.auth-password-requirements{margin:0;color:var(--ui-muted-ink);font-size:.8rem;font-weight:400;line-height:1.45}
@media(max-width:480px){.auth-page{padding:1rem}.auth-card{padding:1.25rem}.auth-switch{align-items:flex-start;flex-direction:column}}

/* Persistent workspace: the shell frames the app, while each app continues
   to own only the content mounted inside #app-container. */
#shell-workspace #app-container{align-self:stretch;justify-self:stretch;width:100%;padding:0;overflow:hidden}
#shell-workspace:has(.mindmap-page) #app-container{justify-self:stretch;width:100%}
#shell-workspace:has(.notepad-page) #app-container{justify-self:stretch;width:100%}
#shell-workspace:has(.homepage-page) #app-container{justify-self:stretch;width:100%;padding:0}
/* News centers its reading column inside the full-width scrolling host. */
#root:has(.news-page){height:100dvh;min-height:0;overflow:hidden}
#shell-workspace:has(.news-page){height:100dvh;min-height:0}
#shell-workspace:has(.news-page) #app-container{justify-self:stretch;width:100%;height:100%;min-height:0;padding:0;overflow:hidden}
#shell-workspace:has(.posts-page) #app-container{justify-self:stretch;width:100%;padding:0}
#shell-workspace:has(.profile-page) #app-container{justify-self:stretch;width:100%;padding:0}
#shell-workspace:has(.war-room) #app-container{justify-self:stretch;width:100%}
#shell-workspace:has(.files-app) #app-container{justify-self:stretch;width:100%;padding:0}
#shell-workspace:has(.war-room){height:100dvh;min-height:0}#shell-workspace:has(.war-room) #app-container{height:100%;min-height:0}#shell-workspace:has(.war-room) #app-container>.app-host,#shell-workspace:has(.war-room) #app-container>.app-host>.app-mount{height:100%;min-height:0;overflow:hidden}
#shell-workspace:has(.files-app){height:100dvh;min-height:0}#shell-workspace:has(.files-app) #app-container{height:100%;min-height:0}#shell-workspace:has(.files-app) #app-container>.app-host,#shell-workspace:has(.files-app) #app-container>.app-host>.app-mount{height:100%;min-height:0;overflow:hidden}
#shell-workspace #app-container{display:grid;grid-template-rows:minmax(0,1fr) auto}#shell-workspace #app-container>.app-host{grid-row:1;overflow:auto}#shell-workspace #app-container>.hertz-player{grid-row:2}
/* Messages is a viewport-bound workspace: only its conversation panes may
   scroll. Without a definite height here, a long thread expands the host and
   pushes the composer below the viewport. */
#shell-workspace:has(:is(.calendar-page,.messages-page,.mindmap-page)){height:100dvh;min-height:0}#shell-workspace:has(:is(.calendar-page,.messages-page,.mindmap-page)) #app-container>.app-host{overflow:hidden}#shell-workspace:has(:is(.calendar-page,.messages-page,.mindmap-page)) #app-container>.app-host>.app-mount{min-height:0}
/* Every app shares the same flush workspace edge. App-owned panels may still
   space their own controls, but the shell adds no page gutter or centering. */
#shell-workspace #app-container>.app-host>.app-mount{align-items:stretch;justify-content:flex-start}
#shell-workspace #app-container :is(.profile-page,.posts-page,.social-app){align-self:stretch;width:100%;height:100%;max-width:none;max-height:none;margin:0}#shell-workspace #app-container .homepage-page{align-self:stretch;width:100%;min-height:100%;max-width:none;margin:0}#shell-workspace #app-container .social-app{min-width:0;aspect-ratio:auto}
#shell-workspace #shell-search{position:relative;left:auto;transform:none}
#shell-workspace #shell-search:not(.minimized){width:100%}
#shell-app-list{display:flex;flex-direction:column;gap:.2rem}.shell-app-link{width:100%;display:flex;align-items:center;gap:.55rem;padding:.6rem .7rem;border:1px solid transparent;border-radius:var(--shell-radius);background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}.shell-app-link:hover,.shell-app-link:focus-visible{border-color:var(--ui-border);background:var(--ui-hover);outline:none}.shell-app-link[data-active],#shell-home-button[data-active]{border-color:var(--ui-accent-strong);background:var(--ui-accent-dark);color:var(--ui-accent-dark-ink)}
#shell-recent-apps{display:flex;flex-direction:column;gap:.2rem;padding-bottom:.4rem;border-bottom:1px solid var(--ui-border)}#shell-recent-apps:empty{display:none}#shell-recent-apps h2{margin:0;padding:.15rem .7rem .35rem;color:var(--ui-muted-ink);font-size:.7rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
#shell-app-filter{width:100%;min-height:2.4rem;padding:.55rem .7rem;border:1px solid transparent;border-radius:var(--shell-radius);background:transparent;color:inherit;font:inherit;outline:none}#shell-app-filter::placeholder{color:var(--ui-muted-ink);opacity:1}#shell-app-filter:hover,#shell-app-filter:focus{border-color:var(--ui-border);background:var(--ui-hover)}
/* Crystal Sol turns the shell's app navigation into a public article index. */
#shell-crystal-sol-navigation{display:flex;flex-direction:column;gap:.5rem;min-width:0;width:100%}
.shell-context-toggle{flex-shrink:0;border-bottom-color:var(--ui-border)}
.shell-context-heading{padding:.25rem .7rem;font-size:1rem;line-height:1.4}
.shell-context-status{padding:.25rem .7rem;font-size:.85rem;color:var(--ui-muted-ink);overflow-wrap:anywhere}
.shell-context-status:empty{display:none}
.shell-wiki-links{display:flex;flex-direction:column;gap:.2rem}
.shell-wiki-link{text-decoration:none}
.shell-wiki-link .shell-app-icon{font-size:.7rem;font-weight:600}
.shell-wiki-sections{list-style:none;margin:0 0 .5rem 1rem;padding:0 0 0 .35rem;border-left:1px solid var(--ui-border)}
.shell-wiki-section-link{padding-block:.4rem;font-size:.85rem}
#shell-wiki-filter{width:100%;min-height:2.4rem;padding:.55rem .7rem;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-field);color:inherit;font:inherit}
#shell-wiki-filter::placeholder{color:var(--ui-muted-ink)}
/* Rounded shell controls and translucent surfaces share the card theme. */
#shell-workspace{background:transparent}
#shell-live-background{position:fixed;inset:0;z-index:0;width:100%;height:100%;pointer-events:none;background:linear-gradient(180deg,#1a2b41,#000102)}
#shell-live-background[hidden]{display:none}
html[data-shell-background=canvas] #root{position:relative;z-index:1}
html[data-shell-background=canvas] #shell-workspace{background:transparent}
html[data-shell-background=canvas] :is(.posts-page,.auth-page),html[data-shell-background=canvas]:not([data-profile-background]) .profile-page{background:transparent !important}
.shell-app-folder-chevron{margin-left:auto;font-size:1.25rem}
.shell-app-folder-back{margin-bottom:.45rem;border-bottom-color:var(--ui-border)}
#shell-superbar{border-color:var(--ui-glass-edge);background:var(--ui-glass-sheen),var(--shell-surface-glass);box-shadow:var(--ui-glass-shadow);backdrop-filter:blur(16px) saturate(125%);-webkit-backdrop-filter:blur(16px) saturate(125%)}#shell-left-rail-utilities{background:transparent}
#search-input,#shell-app-filter{border-radius:8px;background-color:var(--ui-field);box-shadow:none}
.shell-app-link,#shell-home-button,#search-toggle,#shell-profile-button,#shell-profile-mode-button,#shell-notif-button{border-radius:8px}
/* Shared panels use rounded corners and background-only transparency. */
:is(.chrome-window,.shell-entry-card,.shell-confirm-card,.shell-image-viewer-dialog,.auth-card,.posts-page,.profile-page .profile-header,.profile-page .widget,.profile-page .profile-editor-bar,.profile-page .theme-editor,.war-room-section,.war-room-node,.war-room-card,.war-room-agent-answer,.war-room-metadata-card){border-radius:16px !important;background:var(--ui-glass-sheen),var(--shell-surface-glass) !important;box-shadow:var(--ui-glass-shadow) !important}#search-results{border-radius:12px;background:var(--shell-surface-glass);box-shadow:none}
@media (min-width:701px){
  html,body{height:100%;overflow:hidden}
  #root,#shell-workspace{height:100dvh;min-height:0;overflow:hidden}
  #shell-workspace #app-container{min-height:0;overflow:auto;overscroll-behavior:contain}
}
/* App pages own their full-width background. */
#shell-workspace{padding-top:0}
@media (max-width:700px){
  #shell-workspace{min-height:100dvh;padding-top:0}
  #shell-workspace #app-container{min-height:100dvh;padding:var(--shell-space)}
  #shell-workspace:has(:is(.calendar-page,.mindmap-page)) #app-container{min-height:0;padding:0}

}

/* Shared informational-app layout. Apps supply semantic content; this keeps
   supporting account/actions panels in the shell's responsive chrome. */
.shell-info-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(14rem,1fr);align-items:start;justify-content:start;gap:var(--shell-space);max-inline-size:68rem}
.shell-info-header{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:.75rem}.shell-info-primary{grid-column:1;justify-self:stretch;min-inline-size:0}.shell-info-aside{grid-column:2;align-self:start}.shell-info-card{box-sizing:border-box;padding:clamp(.65rem,1.2vw,1rem);border:1px solid var(--ui-border);border-radius:var(--shell-radius);background:var(--shell-surface);color:var(--shell-surface-ink);box-shadow:inset 0 1px rgb(255 255 255/.035),inset 0 -1px rgb(0 0 0/.72)}.shell-info-card .shell-info-card{margin-top:.65rem;padding:.65rem;background:var(--ui-surface)}.shell-info-card>:first-child{margin-block-start:0}.shell-info-card>:last-child{margin-block-end:0}.shell-info-media{display:block;max-inline-size:100%;max-block-size:16rem;object-fit:contain}.shell-info-feature{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(11rem,.75fr);gap:var(--shell-space)}.shell-info-feature-visual{grid-row:1/span 2;width:100%;height:100%;max-block-size:22rem;object-fit:cover;background:var(--ui-sunken)}.shell-info-feature-copy{min-width:0}.shell-info-feature-emblem{display:grid;place-items:center;min-width:0}.shell-info-feature-emblem .shell-info-media{max-block-size:7rem}.shell-info-mini-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem}.shell-info-mini-grid>.shell-info-card{margin-top:0}.shell-info-card-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.45rem}.shell-info-card-actions>h3{flex-basis:100%;margin:0}.shell-info-action{display:inline-flex;align-items:center;justify-content:center;min-height:2rem;padding:.35rem .65rem;border:1px solid var(--ui-border);border-radius:var(--shell-radius);background:var(--ui-raised);color:var(--ui-accent);font:inherit;text-decoration:none}.shell-info-action:hover,.shell-info-action:focus-visible{background:var(--ui-hover)}
@media (max-width:700px){.shell-info-layout,.shell-info-feature{grid-template-columns:minmax(0,1fr)}.shell-info-header,.shell-info-primary,.shell-info-aside,.shell-info-feature-visual{grid-column:1;grid-row:auto}.shell-info-mini-grid{grid-template-columns:minmax(0,1fr)}}

/* Crystal Sol: a landing page followed by a public reference wiki. */
#shell-workspace #app-container:has(.crystal-sol){align-self:stretch;justify-self:stretch;width:100%}
.crystal-sol{width:100%;min-width:0}
.crystal-sol .shell-info-layout{grid-template-columns:minmax(0,1fr);width:100%;max-inline-size:68rem;margin-inline:auto;gap:.85rem}
.crystal-sol :is(.shell-info-primary,.shell-info-aside,.shell-info-feature-visual){grid-column:1;grid-row:auto;min-inline-size:0}
.crystal-sol .shell-info-card{border-radius:.65rem;box-shadow:0 .2rem .65rem rgb(0 0 0/.12),inset 0 1px rgb(255 255 255/.045)}
.crystal-sol .cs-top{padding-block:.65rem;border:0;border-bottom:1px solid var(--ui-border);border-radius:0;background:transparent;box-shadow:none}
.crystal-sol .cs-brand{display:flex;align-items:center;gap:.75rem;margin:0;font-size:clamp(1.4rem,3vw,1.8rem);letter-spacing:-.025em}
.crystal-sol .cs-mark{width:2rem;height:2rem}
.crystal-sol img[src="/shell/app-icons/crystal-sol.svg"]{filter:var(--shell-icon-filter)}
.crystal-sol .cs-status{color:var(--ui-muted-ink);font-size:.8rem;text-align:end}
.crystal-sol .cs-hero{position:relative;isolation:isolate;overflow:hidden;padding:clamp(.85rem,2vw,1.35rem);grid-template-columns:minmax(0,1.6fr) minmax(12rem,1fr);align-items:center;gap:1.25rem}
.crystal-sol .cs-hero-background{position:absolute;inset:0;z-index:0;width:100%;height:100%;max-block-size:none;object-fit:cover;opacity:.16;pointer-events:none}
.crystal-sol :is(.cs-copy,.cs-art){position:relative;z-index:1;min-width:0}
.crystal-sol .cs-copy h2{max-width:20ch;margin-block:.5rem .65rem;font-size:clamp(1.75rem,3.5vw,2.65rem);letter-spacing:-.04em;line-height:1.08}
.crystal-sol .cs-lede{max-width:48ch;font-size:1rem;line-height:1.55}
.crystal-sol .cs-actions:not([hidden]){display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.85rem}
.crystal-sol .cs-action{min-height:2.25rem;padding:.45rem .75rem;border:1px solid var(--ui-accent);background:var(--shell-accent-dark);color:var(--shell-accent-ink);font-weight:600}
.crystal-sol .cs-action-secondary{background:transparent;color:var(--ui-accent)}
.crystal-sol .cs-art{align-content:start;gap:.5rem;padding:.65rem;border:1px solid var(--ui-border);border-radius:var(--shell-radius);background:var(--ui-surface)}
.crystal-sol .cs-art .cs-art-logo{width:min(100%,8rem);max-block-size:8rem;height:auto}
.crystal-sol .cs-art-caption{margin:0;color:var(--ui-muted-ink);font-size:.8rem}
.crystal-sol .cs-facts{width:100%;margin:0;font-size:.85rem}
.crystal-sol .cs-facts>div{padding-block:.35rem;border-top:1px solid var(--ui-border)}
.crystal-sol .cs-facts dt{font-weight:700}
.crystal-sol .cs-facts dd{margin:0;color:var(--ui-muted-ink)}
.crystal-sol :is(.cs-section,.cs-access,.cs-panel,.cs-wiki){padding:clamp(.75rem,1.5vw,1.1rem);line-height:1.55}
.crystal-sol :is(h2,h3){line-height:1.3}
.crystal-sol :is(.cs-eyebrow,.cs-panel-label,.cs-card>b){color:var(--ui-muted-ink);font-size:.8rem}
.crystal-sol :is(.cs-section-head,.cs-access>p,.cs-panel>div){max-width:48rem}
.crystal-sol .cs-grid{margin-top:.75rem}
.crystal-sol .cs-card :is(h3,p){margin-top:.5rem}
.crystal-sol .cs-access .cs-action{margin-top:.65rem}
.crystal-sol .cs-ownership{padding:.75rem;border:1px solid var(--ui-border);border-radius:.65rem;line-height:1.55}
.crystal-sol :is(.cs-license-actions,.cs-license-form){display:flex;flex-wrap:wrap;gap:.65rem;align-items:center}
.crystal-sol .cs-license-message{flex-basis:100%;color:var(--ui-muted-ink)}
.crystal-sol .cs-license-message[data-tone=error]{color:var(--ui-danger,#e78b8b)}
.crystal-sol .cs-wiki{scroll-margin-top:1rem}
.crystal-sol .cs-wiki-heading{padding-bottom:.65rem;border-bottom:1px solid var(--ui-border)}
.crystal-sol .cs-wiki-layout{display:grid;grid-template-columns:minmax(0,1fr);margin-top:.85rem;align-items:start}
.crystal-sol [data-wiki-article]{min-width:0;width:100%;max-width:48rem;margin-inline:auto;overflow-wrap:anywhere}
.crystal-sol [data-wiki-article] h1{font-size:clamp(1.6rem,3vw,2rem);font-weight:600;letter-spacing:-.025em;line-height:1.2;padding-bottom:.6rem;border-bottom:1px solid var(--ui-border)}
.crystal-sol .cs-wiki a{color:var(--ui-accent);text-decoration:underline;text-underline-offset:.15em}
.crystal-sol :is(.cs-wiki-summary,.cs-wiki-section p){margin-top:.65rem;white-space:pre-line}
.crystal-sol .cs-wiki-metadata{padding-block:.65rem;margin-top:1.25rem;border-top:1px solid var(--ui-border);font-size:.8rem;color:var(--ui-muted-ink)}
.crystal-sol .cs-wiki-metadata dl{display:flex;flex-wrap:wrap;gap:.75rem 1.5rem;margin:0}
.crystal-sol .cs-wiki-section-image{margin-block:1rem}
.crystal-sol .cs-wiki-section-image img{display:block;width:auto;max-width:100%;max-height:18rem;object-fit:contain;border-radius:.5rem}
.crystal-sol .cs-wiki-metadata dt{font-weight:600}
.crystal-sol .cs-wiki-metadata dd{margin:0}
.crystal-sol .cs-wiki-metadata code{overflow-wrap:anywhere}
.crystal-sol :is(.cs-wiki-section,.cs-wiki-preview){margin-top:1rem;scroll-margin-top:1rem}
/* Section headings lead a linked, indented reading track. */
.crystal-sol .cs-wiki-section{position:relative;padding-left:.85rem;border-left:1px dashed var(--ui-border)}
.crystal-sol .cs-wiki-section::before{content:"";position:absolute;left:-.25rem;top:.65rem;width:.45rem;height:.45rem;border:1px solid var(--ui-muted-ink);border-radius:50%;background:var(--ui-surface)}
.crystal-sol .cs-wiki-section-content{display:flex;gap:1rem;align-items:flex-start;margin-top:.65rem}
.crystal-sol .cs-wiki-section-content>.cs-wiki-section-image{flex:0 0 34%;min-width:0;margin:0}
.crystal-sol .cs-wiki-section-text{flex:1;min-width:0}
.crystal-sol .cs-wiki-section-text p:first-child{margin-top:0}
.crystal-sol .cs-wiki-link-tooltip{position:fixed;z-index:1000;box-sizing:border-box;width:max-content;max-width:min(24rem,calc(100vw - 1rem));max-height:calc(100dvh - 1rem);overflow:auto;padding:.75rem 1rem;border:1px solid var(--ui-border);border-radius:.5rem;background:var(--ui-surface);color:var(--shell-surface-ink);box-shadow:0 .35rem 1rem rgb(0 0 0/.25);font-size:.875rem;line-height:1.5;overflow-wrap:anywhere;--ui-text-edge-treatment:none}
.crystal-sol .cs-wiki-link-tooltip[hidden]{display:none}
.crystal-sol .cs-wiki-link-tooltip strong{display:block;font-weight:650}
.crystal-sol .cs-wiki-link-tooltip p{margin:.3rem 0 0}
@media(max-width:600px){.crystal-sol .cs-wiki-section-content{flex-direction:column;gap:1rem}.crystal-sol .cs-wiki-section-content>.cs-wiki-section-image{width:100%;flex-basis:auto}}
.crystal-sol .cs-wiki-section h2{font-size:1.25rem;font-weight:600;padding-bottom:.4rem;border-bottom:1px solid var(--ui-border)}
.crystal-sol :is(input,textarea,button){font:inherit}
.crystal-sol .cs-license-form input{min-width:0;width:100%;padding:.65rem;border:1px solid var(--ui-border);border-radius:.4rem;background:var(--ui-sunken);color:var(--shell-surface-ink)}
.crystal-sol :is(.cs-redeem-toggle,.cs-license-form button){padding:.55rem .8rem;border:1px solid var(--ui-border);border-radius:.4rem;background:var(--ui-raised);color:var(--shell-surface-ink);cursor:pointer}
.crystal-sol .cs-wiki-publish input{width:auto}
.crystal-sol .cs-footer{border:0;border-top:1px solid var(--ui-border);border-radius:0;background:transparent;box-shadow:none;color:var(--ui-muted-ink);font-size:.8rem}
.crystal-sol :is(.cs-ownership,.cs-license-form,.cs-owned-actions,[data-image-slot],[data-cs-signin],[data-cs-checkout])[hidden]{display:none}
@media(max-width:700px){
  .crystal-sol :is(.cs-hero,.cs-wiki-layout,.cs-grid){grid-template-columns:minmax(0,1fr)}
  .crystal-sol .cs-top{flex-wrap:wrap}
  .crystal-sol .cs-copy h2{max-width:18ch}
}

/* Homepage posts use softer surfaces and controls within the shared shell. */
.homepage-page{--shell-radius:14px}
.homepage-post-composer{border-radius:16px;padding:1rem;gap:.8rem}
.homepage-page .posts-composer textarea{border-radius:12px;padding:.85rem;min-height:6rem}
.homepage-page :is(.posts-footer-btn,.posts-composer button){border-radius:10px !important;min-height:2.25rem;transition:background-color .15s ease,opacity .15s ease}
.homepage-page .posts-composer-thumb{border-radius:12px;overflow:hidden}
.homepage-page button:disabled,.homepage-page button[aria-disabled=true]{opacity:.55;cursor:wait}
.homepage-page :is(button,textarea):focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px}
.homepage-post-status,.posts-feed-error,.posts-reaction-error{color:var(--ui-ink);font-size:.85rem}
@media(prefers-reduced-motion:reduce){.homepage-page button{transition:none}}

.homepage-activity-header,.homepage-compose-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.homepage-page .homepage-new-post,.homepage-compose-dialog button{border:1px solid var(--ui-border);border-radius:10px;padding:.5rem .85rem;background:var(--ui-raised);color:var(--ui-ink);font:inherit;cursor:pointer}
.homepage-compose-dialog{position:fixed;inset:0;margin:auto;box-sizing:border-box;width:min(42rem,calc(100% - 2rem));max-height:calc(100dvh - 2rem);padding:1.25rem;border:1px solid var(--ui-border);border-radius:20px;background:var(--ui-surface);color:var(--ui-ink);box-shadow:0 24px 80px rgb(0 0 0/.45);overflow:auto}
.homepage-compose-dialog::backdrop{background:rgb(0 0 0/.65)}
.homepage-compose-heading{margin-bottom:1rem}.homepage-compose-heading h2{margin:0;font-size:1.1rem}
.homepage-compose-dialog .homepage-post-composer-wrap{margin:0}
.homepage-compose-dialog .homepage-post-composer{padding:0;border:0;background:transparent}
.homepage-compose-dialog #homepage-post-composer-input{box-sizing:border-box;width:100%;height:auto;min-height:5rem;max-height:min(18rem,45dvh);resize:none;overflow-y:auto}
.homepage-compose-dialog .posts-composer-thumb{width: min(16rem,100%);height:10rem}
.homepage-compose-dialog .posts-composer-thumb img{object-fit:contain}


.homepage-page .posts-feed-sentinel{color:var(--ui-page-muted-ink);min-height:2.5rem;display:grid;place-items:center;font-size:.85rem;}

.homepage-page .posts-delete-btn{margin-left:auto;color:#f5a7a7;border-color:#804747}
.posts-delete-status{flex-basis:100%;font-size:.85rem;color:var(--ui-ink)}.posts-delete-status:empty{display:none}

.posts-delete-icon{display:inline-grid;place-items:center;min-width:2.25rem;min-height:2.25rem}
.posts-delete-icon::before{content:"";display:block;width:1.1rem;height:1.1rem;background:currentColor;-webkit-mask:url('/shell/app-icons/trash.svg') center/contain no-repeat;mask:url('/shell/app-icons/trash.svg') center/contain no-repeat}

.homepage-page .homepage-new-post{display:inline-grid;place-items:center;min-width:2.5rem;min-height:2.5rem;padding:.55rem}
.homepage-new-post::before{content:"";display:block;width:1.25rem;height:1.25rem;background:currentColor;-webkit-mask:url('/shell/app-icons/compose.svg') center/contain no-repeat;mask:url('/shell/app-icons/compose.svg') center/contain no-repeat}

.homepage-compose-dialog .homepage-compose-close{display:grid;place-items:center;width:2.5rem;height:2.5rem;padding:0;font-size:1.5rem;line-height:1}

/* Post details, comments, and My Posts follow the homepage presentation. */
.posts-page{max-height:none;overflow:visible;border:0 !important;border-radius:0 !important;background:var(--shell-background);box-shadow:none !important}
.posts-page .posts-main{overflow:visible;background:transparent;box-shadow:none}
.posts-page .posts-status{box-sizing:border-box;width:100%;max-width:44rem;margin:0 auto;background:transparent;color:var(--ui-ink)}
.posts-page .posts-comment,.posts-page .posts-comment-composer{border-radius:16px;padding:1rem;gap:.8rem}
.posts-card .posts-update-title{margin:0;font-size:1.15rem;line-height:1.3;overflow-wrap:anywhere}
.posts-update-title a{color:inherit;text-decoration:underline;text-underline-offset:.15em}
/* One post-card design shared by feeds, profile sections, and post details. */
:is(.homepage-page,.posts-page,.profile-page) .posts-card{--chrome-control-radius:10px;--chrome-control-transition:background-color .15s ease,opacity .15s ease;border-radius:16px;padding:1rem!important;gap:.8rem;color:var(--ui-ink);background:color-mix(in srgb,var(--shell-surface) 68%,transparent)!important}
:is(.homepage-page,.posts-page,.profile-page) .posts-card .posts-card-text{font-size:.92rem;line-height:1.5}
:is(.homepage-page,.posts-page,.profile-page) .posts-card :is(.posts-avatar,.posts-profile-link:not(.posts-author-name)){border-radius:50%}
:is(.homepage-page,.posts-page,.profile-page) .posts-card .posts-avatar{width:2.25rem;height:2.25rem;flex-shrink:0}
:is(.homepage-page,.posts-page,.profile-page) .posts-card .posts-card-media img{border-radius:12px}
:is(.homepage-page,.posts-page,.profile-page) .posts-card .posts-footer-btn{border-radius:10px!important;min-height:2.25rem;font-size:.8rem!important;padding:.35rem .65rem!important;transition:var(--chrome-control-transition)}
:is(.homepage-page,.posts-page,.profile-page) .posts-card .posts-delete-btn{margin-left:auto;color:var(--ui-danger-ink)!important;border-color:var(--ui-danger-border)!important;background:var(--ui-danger)!important}
:is(.homepage-page,.posts-page,.profile-page) .posts-card :is(button,a):focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px}
:is(.homepage-page,.posts-page,.profile-page) .posts-card :is(button:disabled,button[aria-disabled=true]){--chrome-control-cursor:wait;--chrome-control-disabled-opacity:.55;opacity:.55;cursor:wait}
@media(prefers-reduced-motion:reduce){:is(.homepage-page,.posts-page,.profile-page) .posts-card{--chrome-control-transition:none}}
.posts-page :is(.posts-avatar,.posts-profile-link:not(.posts-author-name)){border-radius:50%}
.posts-page button{border-radius:10px !important;min-height:2.25rem;transition:background-color .15s ease,opacity .15s ease}
.posts-page :is(button,textarea):focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px}
.posts-page button:disabled,.posts-page button[aria-disabled=true]{opacity:.55;cursor:wait}
.posts-page .posts-heading{margin:0;font-size:1.1rem;letter-spacing:normal;text-transform:none;opacity:1}
.posts-page-header,.posts-comment-heading,.posts-comments-heading{display:flex;align-items:center;gap:.75rem}
.posts-page-header h1,.posts-comment-heading h2{margin:0;font-size:1.1rem}
.posts-comments-heading{justify-content:space-between}
.posts-page .posts-new-comment{display:inline-grid;place-items:center;min-width:2.5rem;min-height:2.5rem;padding:.55rem !important;margin-left:auto}
.posts-new-comment::before{content:"";display:block;width:1.25rem;height:1.25rem;background:currentColor;-webkit-mask:url('/shell/app-icons/compose.svg') center/contain no-repeat;mask:url('/shell/app-icons/compose.svg') center/contain no-repeat}
.posts-comment-dialog{position:fixed;inset:0;margin:auto;box-sizing:border-box;width:min(42rem,calc(100% - 2rem));max-height:calc(100dvh - 2rem);padding:1.25rem;border:1px solid var(--ui-border);border-radius:20px;background:var(--ui-surface);color:var(--ui-ink);box-shadow:0 24px 80px rgb(0 0 0/.45);overflow:auto}
.posts-comment-dialog::backdrop{background:rgb(0 0 0/.65)}
.posts-comment-heading{justify-content:space-between;margin-bottom:1rem}
.posts-page .posts-comment-close{display:grid;place-items:center;width:2.5rem;height:2.5rem;padding:0 !important;font-size:1.5rem !important;line-height:1}
.posts-comment-dialog .posts-comment-composer{padding:0;border:0;background:transparent}
.posts-comment-dialog textarea{box-sizing:border-box;width:100%;border-radius:12px;min-height:6rem;padding:.85rem}
.posts-page .posts-delete-btn{color:#f5a7a7 !important;border-color:#804747 !important}
@media(prefers-reduced-motion:reduce){.posts-page button{transition:none}}

/* Profile feeds float full post cards directly in their tab page. */
.profile-page .widget-posts{background:transparent !important;border:0 !important;box-shadow:none !important;width:100%;max-width:44rem;align-self:center;gap:.6rem;margin:0 !important}
.profile-page>:is(.profile-header,.profile-widgets,.profile-tabs){width:min(100%,44rem);margin-inline:auto}
.profile-page .profile-widgets{column-count:1;display:flex;flex-direction:column}
.profile-page .profile-tab-panel[hidden]{display:none !important}
.profile-tab-panel>.widget{width:100%;margin:0}
.profile-tabs{display:flex;justify-content:center;flex-wrap:wrap;gap:.5rem}
.profile-tabs [role=tab]{border:1px solid var(--ui-border) !important;border-radius:10px !important;background:var(--ui-raised) !important;color:var(--ui-ink) !important;padding:.55rem .85rem;min-height:2.5rem;font:inherit;cursor:pointer;box-shadow:none !important}
.profile-tabs [aria-selected=true]{background:var(--ui-accent-dark) !important;color:var(--ui-accent-dark-ink) !important;border-color:var(--ui-accent-strong) !important}
.profile-tabs [role=tab]:focus-visible,.profile-tab-panel:focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px}

/* The public profile is a loose stack of rounded elements, not a large panel. */
.profile-page:has(>.profile-tabs){--shell-radius:14px;gap:1.25rem}
.profile-page:has(>.profile-tabs)>.profile-header{border:0 !important;border-radius:0 !important;background:transparent !important;box-shadow:none !important;overflow:visible;padding-bottom:0;color:var(--profile-page-ink,var(--ui-ink))}
.profile-page:has(>.profile-tabs)>.profile-header::before{display:none}
.profile-page:has(>.profile-tabs) .profile-banner{height:clamp(6rem,15vw,10rem);border-radius:20px}
.profile-page:has(>.profile-tabs) .profile-avatar{border-radius:50%;border-color:var(--profile-page-background,var(--shell-background))}
.profile-page:has(>.profile-tabs) .profile-account-meta{color:inherit;flex-wrap:wrap;row-gap:.5rem}
.profile-page .profile-tab-panel>.widget{border:0 !important;border-radius:0 !important;background:transparent !important;box-shadow:none !important;overflow:visible;color:var(--profile-page-ink,var(--ui-ink))}
.profile-page .profile-tab-panel>.widget>div{gap:1rem}
.profile-page .profile-tab-panel>.widget>div>.widget-heading{padding:0;border:0;color:inherit !important;font-size:1.1rem !important}
.profile-page .profile-tab-panel>.widget>div>:not(.widget-heading){margin:0}
.profile-page .profile-tab-panel .profile-bio{padding:0;line-height:1.6}
.profile-page .profile-tab-panel .widget-links{gap:.75rem}
.profile-page .profile-tab-panel .widget-links li{min-width:0}
.profile-page .profile-tab-panel .widget-links a{display:flex;align-items:center;width:100%;min-height:3.5rem;padding:1rem;border:1px solid var(--ui-border);border-radius:16px;background:var(--profile-surface,var(--shell-surface));color:var(--profile-ink,var(--ui-ink));overflow-wrap:anywhere}
.profile-page .profile-tab-panel .widget-links a:hover{background:var(--ui-hover);text-decoration:none}
.profile-page .profile-tab-panel .widget-links a:focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px}
.profile-page .profile-tab-panel .widget-gallery{gap:.85rem}
.profile-page .profile-tab-panel :is(.widget-gallery-item,.widget-embed iframe){border-radius:16px}
.profile-page .profile-tab-panel .widget-friends{gap:1rem}
.profile-page .profile-tab-panel .widget-friends-item{border-radius:14px !important;padding:.65rem}
.profile-page .profile-tab-panel .widget-friends-view-all .widget-friends-avatar{border-radius:50%}
.profile-page>.profile-actions-slot{width:min(100%,44rem);margin-inline:auto}
.profile-actions-slot:empty{display:none}
:is(.profile-guest-actions,.posts-guest-actions){display:flex;align-items:center;gap:1rem}
.profile-actions-slot :is(#shell-profile-actions,#shell-profile-owner-actions){display:flex;flex-direction:row;justify-content:center;flex-wrap:wrap;gap:.6rem}
.profile-actions-slot :is(#shell-profile-actions,#shell-profile-owner-actions) :is(button,[data-join-action]){width:auto;min-height:2.5rem;padding:.6rem .9rem;justify-content:center;border-radius:12px;color:var(--ui-ink);font:inherit}
#shell-profile-actions [data-join-action]{display:inline-flex;align-items:center;gap:.55rem}

.posts-comment-dialog #posts-comment-send{display:block;margin-left:auto;padding:.5rem .9rem;font-size:.85rem}

.profile-actions-slot #shell-profile-owner-actions button{background:var(--ui-raised);border:1px solid var(--ui-border);display:flex;align-items:center;gap:.55rem;cursor:pointer}
.profile-actions-slot #shell-profile-owner-actions button:hover{background:var(--ui-hover)}
.profile-actions-slot #shell-profile-owner-actions button:focus-visible{outline:2px solid var(--ui-accent);outline-offset:2px}

#root #app-container .profile-page .profile-tab-panel{border:0;background:transparent !important;box-shadow:none !important;color:var(--profile-page-ink,var(--ui-ink))}

/* Settings shares the profile reading column and section tabs. */
.settings-page .profile-page>:is(.profile-settings-heading,.settings-hint,.settings-save-bar,.settings-editor){width:min(100%,44rem);margin-inline:auto}
.settings-hint{margin-block:0;color:var(--ui-muted-ink);line-height:1.5}
.settings-save-bar{display:flex;align-items:center;flex-wrap:wrap;gap:.6rem;padding:.75rem 0;position:sticky;top:0;z-index:3;background:var(--shell-background,#000)}
.settings-accent-control{display:flex;align-items:center;gap:.5rem;font-size:.85rem;font-weight:600}
.settings-accent-control input[type=color]{width:2.5rem;height:2.5rem;padding:.2rem;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-raised);cursor:pointer}
#settings-save-status{flex:1 1 12rem;font-size:.85rem;overflow-wrap:anywhere}
.settings-save-bar button{margin:0;min-height:2.5rem}
.settings-editor{display:flex;flex-direction:column;gap:1rem}
.settings-add-section{min-width:2.5rem;min-height:2.5rem;font-size:1.2rem!important}
.section-picker-options{display:flex;flex-wrap:wrap;gap:.6rem}
.section-picker-options p{flex-basis:100%;margin:0 0 .35rem}
.settings-editor>.profile-header{background:transparent !important;border:0 !important;box-shadow:none !important;overflow:visible;padding-bottom:0;color:var(--profile-page-ink,var(--ui-ink))}
.settings-editor .profile-header::before{display:none}
.settings-editor .profile-banner{height:clamp(6rem,15vw,10rem);border-radius:20px;overflow:hidden}
.settings-editor .profile-tab-panel>.widget{background:transparent !important;border:0 !important;box-shadow:none !important;overflow:visible}
.settings-editor .widget-titlebar{background:transparent;box-shadow:none;padding:0 0 .75rem}
.settings-editor .widget-content{padding:0}
.settings-editor .profile-field-input{width:100%;max-width:100%;min-width:0}
.settings-editor .profile-tab-panel{display:flex;flex-direction:column;gap:1rem}
.settings-editor .theme-editor{border:0 !important;box-shadow:none !important;background:transparent !important;padding:.75rem 0}
.settings-editor .profile-editor-bar{background:transparent !important;border:0 !important;box-shadow:none !important}
.settings-editor .profile-editor-bar::before{content:'Add profile section';background:transparent;color:var(--ui-muted-ink);padding:0;margin:0}

.settings-page .profile-page :is(.theme-editor)::before{display:none}
.settings-section-heading{margin:0 0 .65rem;flex-basis:100%;font-size:1rem;font-weight:600;color:var(--ui-ink)}

.profile-tabs [role=tab]{max-width:100%;overflow-wrap:anywhere}
.profile-tab-panel>.widget+.widget{margin-top:1rem}
.settings-tab-controls{display:flex;align-items:center;flex-wrap:wrap;gap:.75rem}
.settings-tab-controls label{display:flex;align-items:center;gap:.5rem;max-width:100%}
.settings-tab-controls input{width:12rem;max-width:100%;min-width:0}

/* Profile editing fields follow the profile's spacing and theme. */
#app-container .settings-page :is(.profile-field-input,.settings-tab-controls input){box-sizing:border-box;min-height:2.75rem;padding:.75rem .9rem;border:1px solid var(--ui-border);border-radius:12px!important;font:inherit;line-height:1.5;box-shadow:inset 0 1px 2px rgb(0 0 0/.12);transition:border-color .15s ease,box-shadow .15s ease}
#app-container .settings-page :is(.profile-field-input,.settings-tab-controls input):hover{border-color:var(--ui-accent-strong)}
#app-container .settings-page :is(.profile-field-input,.settings-tab-controls input):focus{border-color:var(--ui-accent-strong);outline:2px solid var(--ui-accent);outline-offset:3px;box-shadow:0 0 0 4px color-mix(in srgb,var(--ui-accent) 14%,transparent)}
#app-container .settings-page textarea.profile-field-input{min-height:7rem;resize:vertical}
#app-container .settings-page .profile-display-input{font-size:1.25rem;font-weight:600;margin-top:.35rem}
.settings-field-label,.settings-tab-controls label{font-size:.85rem;font-weight:600;color:var(--ui-muted-ink)}
.settings-display-label{display:block;margin-top:1rem;text-align:center}
.settings-tab-controls label{flex-direction:column;align-items:flex-start;gap:.4rem}
.settings-page .widget-list-row:has(input){flex-wrap:wrap;gap:.65rem}
.settings-page .widget-list-row input{flex:1 1 12rem}
@media(prefers-reduced-motion:reduce){#app-container .settings-page :is(.profile-field-input,.settings-tab-controls input){transition:none}}

.settings-tab-controls :is(.settings-default-tab,.settings-remove-tab){min-height:2.75rem;padding:.65rem 1rem;margin:0;align-self:flex-end}
.settings-editor .settings-add-section{align-self:flex-start;min-width:2.75rem;min-height:2.75rem;padding:.5rem .85rem;margin:0}

.profile-tabs .settings-add-tab{min-height:2.5rem;padding:.55rem .85rem;margin:0;font:inherit;font-size:1rem!important}

.crystal-sol .cs-linux-install{flex:1 1 100%;min-width:0;display:grid;gap:.5rem;width:100%}
.crystal-sol .cs-linux-install h4{margin:0;font-size:1rem}
.crystal-sol .cs-linux-install label{font-size:.85rem}
.crystal-sol .cs-install-command{display:flex;gap:.5rem;min-width:0}
.crystal-sol .cs-install-command input{min-width:0;flex:1;width:100%;padding:.65rem;border:1px solid var(--ui-border);border-radius:var(--shell-radius);background:var(--ui-sunken);color:var(--shell-surface-ink);font-family:monospace}
.crystal-sol .cs-install-command button{flex:none;padding:.5rem .75rem;border:1px solid var(--ui-border);border-radius:var(--shell-radius);background:var(--ui-raised);color:var(--shell-surface-ink);cursor:pointer}
.crystal-sol [data-cs-copy-status]{min-height:1.2em;margin:0;font-size:.8rem}

/* Public policy pages share the shell navigation and theme. */
#app-container .shell-legal-page {
  box-sizing: border-box;
  min-height: 0;
  overflow: auto;
  overflow-wrap: anywhere;
  grid-row: 1;
  width: min(38rem, calc(100% - 2rem));
  margin: 2rem auto;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  border: 1px solid var(--ui-border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--ui-surface) 82%, transparent);
  backdrop-filter: blur(12px);
  color: var(--ui-ink);
}
#app-container .shell-legal-page h1 { margin: 0 0 1rem; font-size: 2rem; }
#app-container .shell-legal-page p { line-height: 1.6; }
#app-container .shell-legal-page nav { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
#app-container .shell-legal-page a { color: var(--ui-ink); text-decoration: underline; text-underline-offset: 3px; }
#app-container .shell-legal-page a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

#feedback-form { display: grid; gap: .65rem; }
#feedback-form label { margin-top: .5rem; }
#feedback-form input, #feedback-form textarea, #feedback-form select { box-sizing: border-box; width: 100%; min-width: 0; padding: .65rem; border: 1px solid var(--ui-border); border-radius: 8px; background: var(--ui-field); color: var(--ui-field-ink); font: inherit; }
#feedback-form textarea { resize: vertical; }
#feedback-submit { justify-self: start; padding: .65rem 1rem; }
#feedback-status { min-height: 1.6em; }

/* The shell host scrolls at the viewport edge; the inbox stays centered. */
#root:has(.notifications-page),#shell-workspace:has(.notifications-page){height:100dvh;min-height:0;overflow:hidden}
#shell-workspace:has(.notifications-page) #app-container{width:100%;height:100%;min-height:0;padding:0;overflow:hidden}
#shell-workspace #app-container .notifications-page{min-height:100%;overflow:visible;flex:none}
#shell-workspace #app-container .notifications-window-body{overflow:visible}
#shell-workspace #app-container .notifications-list{overflow:visible;flex:none}

/* App content owns gutters; the scrolling host stays flush on mobile too. */
@media(max-width:700px){#root #shell-workspace #app-container{padding:0}}

/* Settings keeps draft actions visible and media editing discoverable. */
#root:has(.settings-page),#shell-workspace:has(.settings-page){height:100dvh;min-height:0;overflow:hidden}
#shell-workspace:has(.settings-page) #app-container{height:100%;min-height:0;overflow:hidden}
#root #app-container .settings-page{overflow:visible;flex:none;min-height:100%}
#root #app-container .settings-page>.profile-page{height:auto;min-height:100%;overflow:visible}
.settings-save-bar{top:.5rem;z-index:10;padding:.75rem;border:1px solid var(--ui-border);border-radius:14px;background:var(--shell-surface-glass);backdrop-filter:blur(12px)}
.settings-page .media-upload-overlay{opacity:1;inset:auto .3rem .3rem auto;padding:.3rem .5rem;border-radius:8px;font-size:.72rem}
.settings-page .avatar-upload .media-upload-overlay{left:.15rem;right:.15rem;bottom:.25rem;padding:.2rem;font-size:.65rem;text-align:center}
.settings-add-section{font-size:.85rem!important}
.header-editor-tabpanel[hidden],.header-color-tabpanel[hidden]{display:none!important}

.profile-page .profile-bio-card{display:flex;flex-direction:column;border:1px solid var(--ui-border);border-radius:16px;padding:1rem;gap:.8rem;color:var(--ui-ink);background:color-mix(in srgb,var(--shell-surface) 68%,transparent);box-shadow:none}
.profile-page .profile-bio-card .widget-heading{margin:0}
.profile-page .profile-bio-card .profile-bio{margin:0;padding:0;font-size:.92rem;line-height:1.5}

/* Give short text-only posts a little more presence in every feed. */
:is(.homepage-page,.posts-page,.profile-page) .posts-card:not(:has(.posts-card-media,.posts-card-embeds)) .posts-card-text-short{font-size:1.15rem;line-height:1.5}

/* Shared app spotlight, with the same card in the administrator preview. */
.homepage-spotlight{min-width:0;color:var(--ui-ink)}
.homepage-spotlight-heading{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.65rem}
.homepage-spotlight-heading h2{margin:0;font-size:1.1rem}
.homepage-spotlight-card{box-sizing:border-box;display:flex;align-items:center;gap:1.1rem;width:100%;min-width:0;padding:1.1rem;text-align:left;font:inherit;color:var(--ui-ink);background:var(--shell-surface);border:1px solid var(--ui-border);border-radius:16px;overflow:hidden}
button.homepage-spotlight-card{cursor:pointer}
button.homepage-spotlight-card:hover{border-color:var(--shell-accent)}
button.homepage-spotlight-card:focus-visible{outline:2px solid var(--shell-accent);outline-offset:3px}
.homepage-spotlight-image{display:block;max-width:35%;width:auto;height:auto;max-height:10rem;object-fit:contain;border-radius:10px;flex-shrink:1}
.homepage-spotlight-body{min-width:0;overflow-wrap:anywhere}
.homepage-spotlight-body h3{margin:0 0 .4rem;font-size:1.3rem;line-height:1.25}
.homepage-spotlight-body p{margin:0;line-height:1.5;white-space:pre-wrap}
.homepage-spotlight-link{display:block;margin-top:.7rem;font-size:.85rem;color:var(--shell-accent)}
.homepage-spotlight-edit,.homepage-spotlight-dialog button{font:inherit;padding:.45rem .75rem;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-raised);color:var(--ui-ink);cursor:pointer}
.homepage-spotlight-dialog{position:fixed;inset:0;margin:auto;box-sizing:border-box;width:min(42rem,calc(100% - 2rem));max-height:calc(100dvh - 2rem);overflow:auto;padding:1.25rem;border:1px solid var(--ui-border);border-radius:20px;background:var(--ui-surface);color:var(--ui-ink);box-shadow:0 24px 80px rgb(0 0 0/.45)}
.homepage-spotlight-dialog::backdrop{background:rgb(0 0 0/.65)}
.homepage-spotlight-field{display:flex;flex-direction:column;gap:.35rem;margin:.85rem 0;font-size:.9rem}
.homepage-spotlight-field input,.homepage-spotlight-field textarea,.homepage-spotlight-field select{box-sizing:border-box;min-width:0;width:100%;font:inherit;color:var(--ui-ink);background:var(--ui-raised);border:1px solid var(--ui-border);border-radius:8px;padding:.6rem}
.homepage-spotlight-field textarea{min-height:5rem;resize:vertical}
.homepage-spotlight-dialog h3{font-size:.9rem}
.homepage-spotlight-actions{display:flex;justify-content:flex-end;gap:.6rem}
.homepage-spotlight-status{font-size:.85rem;color:var(--ui-ink)}
.homepage-spotlight-dialog button:disabled{opacity:.5;cursor:default}
@media(max-width:420px){.homepage-spotlight-card{flex-direction:column;align-items:flex-start}.homepage-spotlight-image{max-width:100%;max-height:8rem}}


.crystal-sol :is(#cs-hero,#cs-access,#cs-overview,#cs-command,#cs-build,#cs-contest,#cs-progress){scroll-margin-top:1rem}

.crystal-sol .cs-visually-hidden{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* Crystal Sol reading hierarchy and quiet supporting surfaces. */
.shell-context-group-heading{margin:.65rem .7rem .2rem;font-size:.7rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--ui-muted-ink)}
.crystal-sol .shell-info-card{box-shadow:none;border-radius:.65rem}
.crystal-sol .cs-hero{border-color:var(--ui-accent-strong);background:linear-gradient(135deg,var(--ui-surface),var(--shell-surface))}
.crystal-sol .cs-card{background:transparent}
.crystal-sol [data-wiki-article]{line-height:1.65}
.crystal-sol .cs-wiki-section{border-left-color:color-mix(in srgb,var(--ui-muted-ink) 30%,transparent)}
.crystal-sol .cs-wiki-section h2{letter-spacing:-.015em;margin-bottom:0}
.crystal-sol .cs-wiki-section-image img{width:100%;object-position:top left}

/* Compact wiki discovery and consistent modal controls. */
.crystal-sol .cs-wiki-index-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;margin-top:.75rem}
.crystal-sol .cs-wiki-index-cards .cs-wiki-preview{margin:0;padding:.85rem;border:1px solid var(--ui-border);border-radius:.5rem;background:var(--ui-surface)}
.crystal-sol .cs-wiki-preview h3{margin:0;font-size:1rem}
.crystal-sol .cs-wiki-preview p{margin-block:.4rem;font-size:.9rem;color:var(--ui-muted-ink)}
.crystal-sol .cs-wiki-card-detail{font-size:.75rem;color:var(--ui-muted-ink)}
.crystal-sol .cs-wiki-preview:focus-within{border-color:var(--ui-accent)}
.crystal-sol .cs-wiki-breadcrumb{display:flex;flex-wrap:wrap;gap:.35rem;align-items:baseline;margin-bottom:.65rem;font-size:.8rem;color:var(--ui-muted-ink)}
.crystal-sol .cs-wiki-breadcrumb+h1{margin-top:0}
.crystal-sol :is(button,input,textarea,summary,a):focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px}
@media(max-width:600px){.crystal-sol .cs-wiki-index-cards{grid-template-columns:minmax(0,1fr)}}

.shell-context-game>summary{cursor:pointer;padding-inline:.7rem;color:var(--ui-muted-ink)}
.shell-context-game>summary .shell-context-group-heading{display:inline-block;margin-inline:0}
.shell-context-game>summary:focus-visible{outline:2px solid var(--ui-accent);outline-offset:2px}
.crystal-sol .cs-wiki-image-enlarge{display:block;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in}
.crystal-sol .cs-wiki-image-viewer{box-sizing:border-box;width:min(64rem,calc(100% - 2rem));max-height:calc(100dvh - 2rem);padding:1rem;border:1px solid var(--ui-border);border-radius:.65rem;background:var(--ui-surface);color:var(--shell-surface-ink);overflow:auto}
.crystal-sol .cs-wiki-image-viewer::backdrop{background:rgb(0 0 0/.8)}
.crystal-sol .cs-wiki-image-viewer img{display:block;max-width:100%;max-height:75dvh;width:auto;height:auto;margin:.75rem auto;object-fit:contain}
.crystal-sol .cs-wiki-image-viewer button{display:block;margin-left:auto;padding:.45rem .7rem;border:1px solid var(--ui-border);border-radius:.4rem;background:var(--ui-raised);color:inherit;cursor:pointer}
.crystal-sol .cs-wiki-image-viewer p{font-size:.85rem;color:var(--ui-muted-ink)}

/* Landing and wiki are independent destinations in the same app lifecycle. */
.crystal-sol.cs-landing-page .cs-wiki{display:none}
.crystal-sol.cs-wiki-page :is(.cs-hero,.cs-access,.cs-ownership,.cs-section,.cs-panel,.cs-status){display:none}
.crystal-sol.cs-wiki-page .shell-info-layout{max-inline-size:74rem}
.crystal-sol.cs-wiki-page .cs-wiki{container:crystal-wiki/inline-size;border:0;background:transparent;padding:0;box-shadow:none}
.crystal-sol.cs-wiki-page .cs-wiki.shell-info-card{background-image:none!important}
.crystal-sol.cs-wiki-page .cs-wiki-heading{display:flex;justify-content:space-between;align-items:end;gap:1rem;padding:.35rem .15rem .85rem;border-bottom:1px solid var(--ui-glass-edge)}
.crystal-sol.cs-wiki-page .cs-wiki-heading :is(h2,p){margin:0}
.crystal-sol.cs-wiki-page .cs-wiki-heading h2{font-size:1.1rem;letter-spacing:-.015em}
.crystal-sol.cs-wiki-page .cs-wiki-heading>p{font-size:.8rem;color:var(--ui-muted-ink);text-align:right}
.crystal-sol.cs-wiki-page [data-wiki-status]:empty{display:none}
.crystal-sol.cs-wiki-page .cs-wiki-layout{grid-template-columns:minmax(0,1fr) 13rem;gap:1.15rem;margin-top:1rem}
.crystal-sol.cs-wiki-page .cs-wiki-navigation{display:none}
.crystal-sol.cs-wiki-page .cs-wiki-reading{grid-column:1;grid-row:1;min-width:0;padding:clamp(1rem,2.5cqi,2rem);border:1px solid var(--ui-glass-edge);border-radius:.65rem;background:var(--ui-glass-sheen),var(--shell-surface-glass);box-shadow:var(--ui-glass-shadow);backdrop-filter:blur(16px)}
.crystal-sol.cs-wiki-page [data-wiki-article]{max-width:72ch;font-size:.98rem;line-height:1.75}
.crystal-sol.cs-wiki-page [data-wiki-article] h1{font-size:clamp(1.85rem,3.5cqi,2.5rem);font-weight:500;letter-spacing:-.035em;padding-bottom:.65rem;margin-top:0}
.crystal-sol.cs-wiki-page .cs-wiki-summary{color:var(--ui-muted-ink);font-size:1rem;line-height:1.7;margin-block:.8rem 1.6rem}
.crystal-sol.cs-wiki-page .cs-wiki-section{margin-top:2rem;padding-left:0;border-left:0;scroll-margin-top:1rem}
.crystal-sol.cs-wiki-page .cs-wiki-section::before{display:none}
.crystal-sol.cs-wiki-page .cs-wiki-section h2{font-size:1.35rem;font-weight:500;letter-spacing:-.02em;padding-bottom:.4rem;border-color:var(--ui-glass-edge)}
/* Floats let prose return to the full article width below each illustration.
   Each section owns its float, so short sections cannot overlap the next one. */
.crystal-sol.cs-wiki-page .cs-wiki-section-content{display:flow-root;margin-top:.9rem}
.crystal-sol.cs-wiki-page .cs-wiki-section-content>.cs-wiki-section-image{box-sizing:border-box;float:right;width:36%;max-width:18rem;margin:0 0 .85rem 1.1rem;padding:.35rem;border:1px solid var(--ui-glass-edge);border-radius:.6rem;background:var(--ui-glass-sheen),var(--shell-surface-glass);box-shadow:var(--ui-glass-shadow)}
.crystal-sol.cs-wiki-page .cs-wiki-section:nth-of-type(even) .cs-wiki-section-content>.cs-wiki-section-image{float:left;margin:0 1.1rem .85rem 0}
.crystal-sol.cs-wiki-page .cs-wiki-section-text p{margin-block:0 .9rem}
.crystal-sol.cs-wiki-page .cs-wiki-section-text p:last-child{margin-bottom:0}
.crystal-sol.cs-wiki-page :is(.cs-wiki-navigation,.cs-wiki-contents){min-width:0;padding:.8rem;border:1px solid var(--ui-glass-edge);border-radius:.6rem;background:var(--ui-glass-sheen),var(--shell-surface-glass);box-shadow:var(--ui-glass-shadow);backdrop-filter:blur(16px);font-size:.82rem;line-height:1.5}
.crystal-sol.cs-wiki-page .cs-wiki-contents{grid-column:2;grid-row:1;position:sticky;top:1rem;align-self:start}
.crystal-sol.cs-wiki-page .cs-wiki-contents[hidden]{display:none}
.crystal-sol.cs-wiki-page :is(.cs-wiki-navigation,.cs-wiki-contents) summary{font-weight:650;cursor:pointer;letter-spacing:.015em}
.crystal-sol.cs-wiki-page :is(.cs-wiki-navigation,.cs-wiki-contents) nav{padding-top:.7rem}
.crystal-sol.cs-wiki-page :is(.cs-wiki-navigation,.cs-wiki-contents) a{display:block;padding:.3rem .4rem;border-radius:.3rem;text-decoration:none;overflow-wrap:anywhere}
.crystal-sol.cs-wiki-page :is(.cs-wiki-navigation,.cs-wiki-contents) a:hover{background:var(--ui-raised);text-decoration:underline}
.crystal-sol.cs-wiki-page :is(.cs-wiki-navigation,.cs-wiki-contents) a[aria-current]{background:color-mix(in srgb,var(--ui-accent) 16%,transparent);box-shadow:inset 2px 0 var(--ui-accent);font-weight:650}
.crystal-sol.cs-wiki-page :is([data-wiki-nav-list],[data-wiki-toc]){display:grid;gap:.2rem;padding:0;margin:0;list-style:none}
.crystal-sol.cs-wiki-page [data-wiki-toc]{counter-reset:wiki-section}
.crystal-sol.cs-wiki-page [data-wiki-toc] a{counter-increment:wiki-section;display:flex;gap:.6rem}
.crystal-sol.cs-wiki-page [data-wiki-toc] a::before{content:counter(wiki-section);color:var(--ui-muted-ink);min-width:1ch;font-variant-numeric:tabular-nums}
.crystal-sol.cs-wiki-page .cs-wiki-search{display:grid;gap:.4rem;margin-block:.85rem .65rem;font-size:.75rem;color:var(--ui-muted-ink)}
.crystal-sol.cs-wiki-page [data-wiki-filter]{box-sizing:border-box;min-width:0;width:100%;padding:.5rem .6rem;border:1px solid var(--ui-border);border-radius:.35rem;background:var(--ui-field);color:var(--shell-surface-ink);box-shadow:inset 0 1px 4px rgb(0 0 0/.15)}
.crystal-sol.cs-wiki-page [data-wiki-filter-status]{margin:.65rem .4rem 0;color:var(--ui-muted-ink);font-size:.75rem}
.crystal-sol.cs-wiki-page .cs-wiki-layout:has(.cs-wiki-contents[hidden]){grid-template-columns:minmax(0,1fr)}
.crystal-sol.cs-wiki-page .cs-wiki-search-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.25rem .6rem;align-items:end;margin-block:.8rem}
.crystal-sol.cs-wiki-page .cs-wiki-search-bar .cs-wiki-search{margin:0;font-size:.85rem}
.crystal-sol.cs-wiki-page .cs-wiki-search-bar [data-wiki-filter]{min-height:2.75rem;font:inherit;font-size:1rem;border-radius:.5rem;box-shadow:inset 0 1px 5px rgb(0 0 0/.25),0 1px var(--ui-glass-edge)}
.crystal-sol.cs-wiki-page .cs-wiki-search-bar [data-wiki-filter-status]{grid-column:1/-1;margin:.15rem 0 0}
.crystal-sol.cs-wiki-page .cs-wiki-search-bar .cs-action{min-height:2.75rem;margin:0}
.crystal-sol :is([data-wiki-search-results],[data-wiki-search-clear])[hidden]{display:none}
.crystal-sol.cs-wiki-page .cs-wiki-search-results{padding:.8rem;border:1px solid var(--ui-glass-edge);border-radius:.65rem;background:var(--ui-glass-sheen),var(--shell-surface-glass)}
.crystal-sol.cs-wiki-page .cs-wiki-search-results ul{display:grid;gap:.75rem;padding:0;margin:.65rem 0 0;list-style:none}
.crystal-sol.cs-wiki-page .cs-wiki-search-results li{min-width:0;overflow-wrap:anywhere}
.crystal-sol.cs-wiki-page .cs-wiki-search-results a{display:inline-block;font-weight:600;color:var(--ui-accent);text-decoration:underline;text-underline-offset:.15em}
.crystal-sol.cs-wiki-page .cs-wiki-search-results a:focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px}
.crystal-sol.cs-wiki-page .cs-wiki-search-results p{margin:.2rem 0 0;font-size:.9rem;line-height:1.5;color:var(--ui-muted-ink)}
.crystal-sol.cs-wiki-page .cs-wiki-search-section{display:block;font-size:.8rem;margin-top:.15rem}
@media(max-width:480px){.crystal-sol.cs-wiki-page .cs-wiki-search-bar{grid-template-columns:minmax(0,1fr)}.crystal-sol.cs-wiki-page .cs-wiki-search-bar .cs-action{justify-self:start}}

.crystal-sol.cs-wiki-page .cs-wiki-directory-heading{font-size:1.2rem;font-weight:500;padding-bottom:.5rem;border-bottom:1px solid var(--ui-glass-edge)}
.crystal-sol.cs-wiki-page .cs-wiki-index-cards{grid-template-columns:minmax(0,1fr);gap:0;margin-top:.25rem}
.crystal-sol.cs-wiki-page .cs-wiki-index-cards .cs-wiki-preview{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.2rem 1rem;padding:1rem 0;border:0;border-bottom:1px solid var(--ui-border);border-radius:0;background:transparent}
.crystal-sol.cs-wiki-page .cs-wiki-preview h3{grid-column:1;grid-row:1;font-size:1.08rem;line-height:1.4}
.crystal-sol.cs-wiki-page .cs-wiki-preview p{grid-column:1;grid-row:2;margin:0;line-height:1.55}
.crystal-sol.cs-wiki-page .cs-wiki-card-detail{grid-column:2;grid-row:1;padding-top:.2rem;white-space:nowrap}
.crystal-sol.cs-wiki-page .cs-wiki-preview:has(.cs-wiki-card-image){grid-template-columns:3.5rem minmax(0,1fr) auto}
.crystal-sol.cs-wiki-page .cs-wiki-preview:has(.cs-wiki-card-image) :is(h3,p){grid-column:2}
.crystal-sol.cs-wiki-page .cs-wiki-preview:has(.cs-wiki-card-image) .cs-wiki-card-detail{grid-column:3}
.crystal-sol.cs-wiki-page .cs-wiki-card-image{grid-column:1;grid-row:1/3;align-self:start;margin:0}
.crystal-sol.cs-wiki-page .cs-wiki-card-image img{width:3.5rem;height:3.5rem;max-height:3.5rem;border:1px solid var(--ui-border);border-radius:.35rem;background:var(--ui-sunken)}
.crystal-sol.cs-wiki-page .cs-wiki-metadata{margin-top:2.25rem;padding-top:1rem;border-color:var(--ui-glass-edge);font-size:.75rem;line-height:1.55}
.crystal-sol.cs-wiki-page .cs-wiki-metadata dl{gap:.65rem 1.25rem}
.crystal-sol.cs-wiki-page .cs-wiki-metadata code{font-size:.7rem}
@container crystal-wiki (max-width:56rem){
  .crystal-sol.cs-wiki-page .cs-wiki-layout{grid-template-columns:minmax(0,1fr);gap:.85rem}
  .crystal-sol.cs-wiki-page .cs-wiki-contents{position:static;grid-column:1;grid-row:1}
  .crystal-sol.cs-wiki-page .cs-wiki-reading{grid-column:1;grid-row:2}
  .crystal-sol.cs-wiki-page .cs-wiki-layout:has(.cs-wiki-contents[hidden]) .cs-wiki-reading{grid-row:1}
  .crystal-sol.cs-wiki-page [data-wiki-toc]{grid-template-columns:repeat(2,minmax(0,1fr));gap:.25rem .75rem}
}
@media(max-width:760px){
  .crystal-sol.cs-wiki-page .cs-wiki-heading{align-items:start;flex-direction:column;gap:.35rem}
  .crystal-sol.cs-wiki-page .cs-wiki-heading>p{text-align:left}
  .crystal-sol.cs-wiki-page .cs-wiki-navigation{display:block;grid-column:1;grid-row:1}
  .crystal-sol.cs-wiki-page .cs-wiki-contents{grid-column:1;grid-row:2}
  .crystal-sol.cs-wiki-page .cs-wiki-reading{grid-column:1;grid-row:3;padding:1rem}
  .crystal-sol.cs-wiki-page .cs-wiki-layout:has(.cs-wiki-contents[hidden]) .cs-wiki-reading{grid-row:2}
  .crystal-sol.cs-wiki-page [data-wiki-toc]{grid-template-columns:minmax(0,1fr)}
  .crystal-sol.cs-wiki-page .cs-wiki-section-content>.cs-wiki-section-image,
  .crystal-sol.cs-wiki-page .cs-wiki-section:nth-of-type(even) .cs-wiki-section-content>.cs-wiki-section-image{float:none;width:100%;max-width:none;margin:0 0 1rem}
  .crystal-sol.cs-wiki-page .cs-wiki-card-detail{grid-column:1;grid-row:3;padding:0}
  .crystal-sol.cs-wiki-page .cs-wiki-preview:has(.cs-wiki-card-image) .cs-wiki-card-detail{grid-column:2}
}

.crystal-sol .cs-top-wiki{margin-left:auto;font-size:.85rem}
.crystal-sol .cs-wiki-gateway{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem}
.crystal-sol .cs-wiki-gateway h2{margin-block:.25rem;font-size:1.25rem}
.crystal-sol .cs-wiki-gateway p{margin-block:.3rem;color:var(--ui-muted-ink);font-size:.9rem}
.crystal-sol .cs-wiki-gateway .cs-action{flex-shrink:0}
.crystal-sol.cs-wiki-page :is(.cs-wiki-gateway,.cs-top-wiki){display:none}
.crystal-sol .cs-wiki-card-image{display:block;margin-bottom:.65rem}
.crystal-sol .cs-wiki-card-image .cs-wiki-section-image{margin:0}
.crystal-sol .cs-wiki-card-image img{width:100%;height:9rem;max-height:9rem;object-fit:contain;background:var(--ui-sunken)}
@media(max-width:600px){.crystal-sol .cs-wiki-gateway{flex-direction:column;align-items:flex-start}}

/* Shared Aero reflections follow the current owner or local profile accent. */
:is(.posts-card,.news-card,.shell-info-card,.homepage-spotlight-card,.profile-page .profile-bio-card,.toast){
  background-image:var(--ui-glass-sheen)!important;
  border-color:var(--ui-glass-edge);
  box-shadow:var(--ui-glass-shadow);
}
:is(#search-input,#shell-app-filter){border-color:var(--ui-border);box-shadow:inset 0 1px 5px rgb(0 0 0/.3),0 1px var(--ui-glass-edge)}
#search-results{background-image:var(--ui-glass-sheen);box-shadow:var(--ui-glass-shadow);backdrop-filter:blur(12px)}

/* Public profile decoration belongs to the viewed profile, never the shell. */
.profile-page[data-profile-appearance]{
  position:relative;isolation:isolate;
  background-color:var(--profile-page-background,transparent)!important;
  background-image:var(--profile-page-image,none)!important;
  background-size:var(--profile-page-size,cover)!important;
  background-repeat:var(--profile-page-repeat,no-repeat)!important;
  background-position:var(--profile-page-position,center)!important;
}
.profile-page[data-profile-appearance]>.profile-live-background{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:clip}
.profile-page[data-profile-appearance]>:not(.profile-live-background){position:relative;z-index:1}
.profile-live-background canvas{display:block;width:100%;height:100%;pointer-events:none}
.profile-live-background canvas[hidden]{display:none}

/* Keep profile animation anchored to the viewport inside its profile bounds. */
.profile-page[data-profile-appearance]>.profile-live-background canvas{position:sticky;top:0;height:min(100%,100dvh)}



/* Settings and the app landing page use the same area blocks. */
.settings-page{--settings-border:color-mix(in srgb,var(--ui-accent) 30%,var(--ui-border));--settings-sheen:var(--ui-glass-sheen);--settings-glass-shadow:var(--ui-glass-shadow)}
.settings-page .settings-landing{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}
#app-container .settings-page .settings-area-node{position:relative;display:grid;grid-template-columns:2.5rem minmax(0,1fr);align-items:center;gap:.75rem;min-width:0;min-height:5.5rem;width:100%;padding:.8rem 2rem .8rem .85rem;text-align:left;white-space:normal;border:1px solid var(--settings-border);border-radius:12px;background:var(--settings-sheen),var(--shell-surface-glass);color:var(--ui-ink);box-shadow:var(--settings-glass-shadow);transition:border-color .18s,background .18s,transform .18s}
#app-container .settings-page .settings-area-node:hover{border-color:var(--ui-accent);background:var(--settings-sheen),var(--shell-surface-glass);box-shadow:var(--settings-glass-shadow),0 0 20px color-mix(in srgb,var(--ui-accent) 13%,transparent);transform:translateY(-2px)}
.settings-page .settings-node-icon{display:grid;place-items:center;width:2.5rem;height:2.5rem;padding:.55rem;border:1px solid color-mix(in srgb,var(--ui-accent) 22%,transparent);border-radius:12px;background:linear-gradient(180deg,rgb(255 255 255/.14),transparent 55%),color-mix(in srgb,var(--ui-accent) 16%,transparent);color:var(--ui-accent);box-shadow:inset 0 1px 0 rgb(255 255 255/.2),0 3px 10px color-mix(in srgb,var(--ui-accent) 10%,transparent)}
.settings-page .settings-node-icon svg{display:block;width:100%;height:100%}
.settings-page .settings-node-copy{display:flex;flex-direction:column;gap:.2rem;min-width:0}
.settings-page .settings-node-copy strong{font-size:1rem;line-height:1.3;font-weight:600;letter-spacing:-.015em}
.settings-page .settings-node-copy>span{font-size:.82rem;font-weight:400;color:var(--ui-muted-ink);line-height:1.45}
.settings-page .settings-node-arrow{position:absolute;right:.75rem;top:50%;transform:translateY(-50%);color:var(--ui-muted-ink);font-size:1.15rem;font-weight:400}
@media(max-width:600px){
.settings-page .settings-landing{grid-template-columns:minmax(0,1fr);gap:.5rem}
#app-container .settings-page .settings-area-node{min-height:0;display:grid;grid-template-columns:2.5rem minmax(0,1fr);align-items:center;gap:.75rem;padding:.75rem 2rem .75rem .75rem}
.settings-page .settings-node-copy{gap:.3rem}
.settings-page .settings-node-arrow{right:.75rem;top:50%}
}
@media(prefers-reduced-motion:reduce){
#app-container .settings-page .settings-area-node{transition:none}
#app-container .settings-page .settings-area-node:hover{transform:none}
}
/* The persistent page header uses a clear blurred backing. */
/* Match the 36px controls plus 2px bar padding on each side. */
#shell-workspace{--shell-header-clearance:40px}
/* Initial clearance belongs inside the scroll owner, so content can pass
   behind the blurred header rather than clipping at its lower edge. */
#root #shell-workspace #app-container{padding-top:0!important}
#root #shell-workspace #app-container>.app-host{padding-top:var(--shell-header-clearance)}
#root #shell-workspace #app-container:not(:has(>.app-host)){padding-top:var(--shell-header-clearance)!important}
#shell-header{position:fixed;inset:0 0 auto;z-index:7;display:flex;align-items:center;justify-content:space-between;gap:2px;padding:2px;pointer-events:auto;background:transparent;border:0;border-radius:0;box-shadow:none}
#shell-header::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;backdrop-filter:blur(20px) saturate(145%);-webkit-backdrop-filter:blur(20px) saturate(145%)}
#shell-header>*{pointer-events:auto}
#shell-header-branding,#shell-header-actions,#shell-header-actions #shell-left-rail-utilities{display:flex;align-items:center;gap:2px;min-width:0;background:transparent;border:0;box-shadow:none;padding:0}
#shell-header-branding{flex:0 1 auto}
#shell-header-actions{flex:0 0 auto;margin-left:auto}
#root #shell-header :is(#shell-home-button,#shell-community-link,#shell-apps-link,#shell-profile-button,#shell-notif-button,#shell-session-actions button){position:relative;inset:auto;display:flex;align-items:center;justify-content:center;gap:0;box-sizing:border-box;width:36px;min-width:36px;height:36px;min-height:36px;margin:0!important;padding:2px!important;border:0!important;border-radius:var(--ui-control-radius,10px)!important;background:transparent!important;box-shadow:none!important;color:var(--shell-surface-ink);font:inherit;text-decoration:none;backdrop-filter:none;cursor:pointer}
#shell-header :is(button,a)>img{width:24px;height:24px;object-fit:contain}
/* Normalize authored black and white symbols in the fallback, preserving photos. */
#shell-header :is(#shell-community-link,#shell-apps-link,#shell-session-actions button,#shell-notif-button)>img{filter:var(--shell-icon-filter) drop-shadow(0 0 1px #000) drop-shadow(0 0 1px #fff)}
#shell-community-link{--header-symbol:url('/shell/app-icons/community.svg')}
#shell-apps-link{--header-symbol:url('/shell/app-icons/apps.svg')}
#shell-session-actions button[data-symbol="login"]{--header-symbol:url('/shell/app-icons/login.svg')}
#shell-notif-button{--header-symbol:url('/shell/app-icons/notifications.svg')}
/* Sample the actual blurred page through each symbol's alpha mask. Keeping blur
   on a sibling pseudo element lets the symbol filter see the page backdrop. */
@supports ((backdrop-filter:invert(1)) or (-webkit-backdrop-filter:invert(1))) and ((mask-image:url("")) or (-webkit-mask-image:url(""))){
  #shell-header :is(#shell-community-link,#shell-apps-link,#shell-session-actions button,#shell-notif-button)>img{opacity:0}
  #shell-header :is(#shell-community-link,#shell-apps-link,#shell-session-actions button,#shell-notif-button)::before{content:"";position:absolute;inset:0;margin:auto;width:24px;height:24px;pointer-events:none;mask:var(--header-symbol) center/contain no-repeat;-webkit-mask:var(--header-symbol) center/contain no-repeat;backdrop-filter:grayscale(1) contrast(100) invert(1);-webkit-backdrop-filter:grayscale(1) contrast(100) invert(1)}
}
/* Brand artwork keeps its original color and transparency in every theme. */
#shell-header #shell-home-button>img{filter:none;opacity:1}
#shell-header #shell-home-button::before{content:none}
/* Animate the artwork, keeping the compact hit targets stationary. */
#shell-header :is(button,a)>img,#shell-header .initial{transition:transform 140ms ease-out}
#shell-header :is(button,a)::before{transition:width 140ms ease-out,height 140ms ease-out}
#root #shell-header :is(#shell-home-button,#shell-community-link,#shell-apps-link,#shell-profile-button,#shell-notif-button,#shell-session-actions button){transition:background-color 140ms ease-out}
#root #shell-header :is(#shell-home-button,#shell-community-link,#shell-apps-link,#shell-profile-button,#shell-notif-button,#shell-session-actions button):is(:hover,:focus-visible){background:rgb(127 127 127/.24)!important}
#shell-header :is(button,a):is(:hover,:focus-visible)>img,#shell-header :is(button,a):is(:hover,:focus-visible)>.initial{transform:scale(1.08)}
#root #shell-header :is(#shell-home-button,#shell-community-link,#shell-apps-link,#shell-profile-button,#shell-notif-button,#shell-session-actions button):active{background:rgb(127 127 127/.4)!important}
#shell-header :is(button,a):active>img,#shell-header :is(button,a):active>.initial{transform:scale(.9)}
#root #shell-header :is(button,a):is(:hover,:focus-visible)::before{width:26px;height:26px}
#root #shell-header :is(button,a):active::before{width:22px;height:22px}
@media(prefers-reduced-motion:reduce){
  #root #shell-header :is(button,a),#shell-header :is(button,a)>img,#shell-header :is(button,a)::before,#shell-header .initial{transition:none!important}
  #shell-header :is(button,a)>img,#shell-header :is(button,a)::before,#shell-header .initial{transform:none!important}
  #shell-header :is(button,a)::before{width:24px!important;height:24px!important}
}
#shell-header .shell-app-label{display:none}
#shell-header :is(button,a):focus-visible{outline:2px solid var(--ui-accent);outline-offset:-3px}
#shell-header-actions :is(#shell-profile-slot,#shell-notification-section,#shell-session-actions){display:flex;flex-direction:row;align-items:center;gap:2px;margin:0;padding:0;align-self:auto}
#shell-header-actions :is(#shell-notification-section,#shell-session-actions)>h2{display:none}
#shell-header #shell-profile-button :is(img,.initial){width:1.75rem;height:1.75rem;flex:0 0 auto;border-radius:50%}
#shell-header #shell-profile-button .initial{display:grid;place-items:center;background:var(--shell-accent-dark);color:var(--shell-accent-dark-ink)}
#root #shell-header #shell-profile-button{position:static;top:auto;right:auto;bottom:auto}
#root #shell-header #shell-notif-button{position:relative;top:auto;right:auto;bottom:auto;padding:.35rem}
#shell-header #shell-notif-button .shell-app-label{display:none}

/* Dedicated app launcher; tiles share the Settings area component. */
#shell-workspace #app-container .app-launcher{display:flex;flex-direction:column;align-self:center;gap:1rem;width:min(100%,64rem);min-height:100%;max-width:64rem;margin:0 auto;padding:0 clamp(.75rem,2vw,1.5rem) 2rem;background:transparent}
.app-launcher h1{font-size:clamp(1.5rem,3vw,1.85rem);font-weight:650;letter-spacing:-.045em;line-height:1.15}
.app-launcher h2{font-size:1.1rem;font-weight:600;margin:0}
.app-launcher>p{font-size:.85rem;line-height:1.5;color:var(--ui-muted-ink)}
.app-launcher input[type=search]{width:100%;min-height:2.75rem;padding:.55rem .75rem;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-field);color:var(--ui-ink);font:inherit}
.app-launcher .settings-node-icon img{display:block;width:100%;height:100%;object-fit:contain}
.app-launcher [hidden]{display:none!important}
.app-launcher section{display:flex;flex-direction:column;gap:.6rem}
.launcher-app-sections{display:flex;flex-direction:column;gap:1.25rem}
.launcher-status:empty{display:none}

/* Header clearance is reserved by the shared container above. */
.homepage-page:not(.app-launcher)>.homepage-layout,
.posts-page>.posts-main,
.chrono-app,.calendar-page,.notepad-page,
#shell-workspace #app-container .settings-page>.profile-page{padding-top:0}
/* Calendar retains its pane surface below the shared header. */
.calendar-page{background:var(--calendar-surface)}

/* Messages uses one lighter glass surface, with scrolling inside each pane. */
#app-container .messages-page{--messages-surface:color-mix(in srgb,var(--shell-surface) 38%,transparent);flex:none;align-self:center;width:calc(100% - 1.5rem);max-width:72rem;height:calc(100dvh - var(--shell-header-clearance,5rem) - .75rem);margin:0 auto .75rem;border:1px solid var(--ui-glass-edge);border-radius:16px;background:var(--ui-glass-sheen),var(--messages-surface);box-shadow:var(--ui-glass-shadow);backdrop-filter:blur(16px) saturate(125%);color:var(--shell-surface-ink)}
#app-container .messages-window-body{grid-template-columns:minmax(14rem,19rem) minmax(0,1fr)}
#app-container .messages-page :is(.messages-sidebar,.messages-thread,.messages-thread-body,.messages-composer,.messages-thread-header){background:transparent;box-shadow:none}
#app-container .messages-page .messages-conv-item{background:transparent}
#app-container .messages-page .messages-conv-item:is(:hover,[data-selected=true]){background:color-mix(in srgb,var(--ui-accent-dark) 38%,transparent)}
#app-container .messages-page .messages-bubble{max-width:min(75%,36rem);background:color-mix(in srgb,var(--ui-raised) 55%,transparent)}
#app-container .messages-page .messages-bubble[data-mine=true]{background:color-mix(in srgb,var(--ui-accent-dark) 60%,transparent)}
.messages-back{display:none}
@media(max-width:700px){
  #app-container .messages-window-body{grid-template-columns:minmax(0,1fr)}
  .messages-page:not([data-thread-open]) .messages-thread,.messages-page[data-thread-open] .messages-sidebar{display:none}
  .messages-page .messages-back{display:inline-flex;min-height:2.75rem;align-items:center;flex-shrink:0}
  #app-container .messages-page .messages-bubble{max-width:88%}
}

.messages-thread-header[data-online=true]::after{display:none}
.messages-thread-header-avatar{position:relative}
.messages-thread-header[data-online=true] .messages-thread-header-avatar::after{content:'';position:absolute;right:1px;bottom:1px;width:.5rem;height:.5rem;border-radius:50%;background:#3fb950;border:1px solid var(--messages-surface)}

/* Friends shares Messages' centered, lighter glass window. */
#app-container .friends-page{flex:none;align-self:center;width:calc(100% - 1.5rem);max-width:72rem;height:calc(100dvh - var(--shell-header-clearance,5rem) - .75rem);max-height:none;margin:0 auto .75rem;border:1px solid var(--ui-glass-edge);border-radius:16px;background:var(--ui-glass-sheen),color-mix(in srgb,var(--shell-surface) 38%,transparent);box-shadow:var(--ui-glass-shadow);backdrop-filter:blur(16px) saturate(125%);color:var(--shell-surface-ink)}
#root #app-container .friends-page :is(.friends-window-body,.friend-manager,.friend-request-table th){background:transparent!important;box-shadow:none}
#app-container .friends-page .friend-manager{min-height:0}
#app-container .friends-page .friend-request-table tbody tr:hover{background:color-mix(in srgb,var(--ui-hover) 30%,transparent)}
#app-container .friends-page button.friends-tab{background:var(--ui-button-sheen),color-mix(in srgb,var(--shell-surface) 20%,transparent)!important;min-height:2.75rem}
#app-container .friends-page button.friends-tab[aria-selected=true]{background:var(--ui-button-sheen),color-mix(in srgb,var(--ui-accent-dark) 38%,transparent)!important}
#app-container .friends-page .friends-refresh{min-height:2.75rem;min-width:2.75rem}
@media(max-width:700px){
  #app-container .friends-page .friend-request-actions{flex-wrap:wrap;justify-content:flex-start}
  #app-container .friends-page .friend-request-actions button{min-height:2.75rem;min-width:2.75rem}
  #app-container .friends-page .friend-request-user{max-width:100%;overflow-wrap:anywhere}
}

/* Calendar follows the same centered glass window as Messages and Friends. */
#app-container .calendar-page{flex:none;align-self:center;width:calc(100% - 1.5rem);max-width:72rem;height:calc(100dvh - var(--shell-header-clearance,5rem) - .75rem);margin:0 auto .75rem;padding:0;border:1px solid var(--ui-glass-edge);border-radius:16px;background:var(--ui-glass-sheen),color-mix(in srgb,var(--shell-surface) 38%,transparent);box-shadow:var(--ui-glass-shadow);backdrop-filter:blur(16px) saturate(125%)}
#root #app-container .calendar-page :is(.calendar-window-body,.calendar-page-grid,.calendar-panel,.calendar-panel-body){background:transparent!important;box-shadow:none}
#root #app-container .calendar-page :is(.calendar-page-nav,.calendar-page-day-header,.calendar-panel-heading){background:var(--ui-glass-sheen),color-mix(in srgb,var(--shell-surface) 18%,transparent);box-shadow:none}
#root #app-container .calendar-page .calendar-page-day:not(.is-selected):not(.is-today){--chrome-button-fill:transparent;background:var(--ui-glass-sheen),transparent!important;box-shadow:none}
#root #app-container .calendar-page .calendar-page-day:not(.is-selected):not(.is-today):hover:not(:disabled){background:color-mix(in srgb,var(--ui-hover) 28%,transparent)!important}
#app-container .calendar-page .calendar-page-sidebar{overflow-y:auto}
#app-container .calendar-page .calendar-events-container{overflow:auto}
#app-container .calendar-page :is(.calendar-nav-button,.calendar-add-button,.calendar-event-item-btn){min-width:2.75rem;min-height:2.75rem;height:auto}
@media(max-width:900px){
 #app-container .calendar-page .calendar-layout{flex-direction:column;overflow:auto}
 #app-container .calendar-page .calendar-main{flex:0 0 auto;min-height:24rem;width:100%}
 #app-container .calendar-page .calendar-page-sidebar{display:flex;flex:0 0 auto;width:100%;overflow:visible}
}

/* Keep the canvas editor inside the same centered, lighter glass window. */
#app-container .mindmap-page{flex:none;align-self:center;width:calc(100% - 1.5rem);max-width:72rem;height:calc(100dvh - var(--shell-header-clearance,5rem) - .75rem);margin:0 auto .75rem;border:1px solid var(--ui-glass-edge);border-radius:16px;background:var(--ui-glass-sheen),color-mix(in srgb,var(--shell-surface) 38%,transparent);box-shadow:var(--ui-glass-shadow);backdrop-filter:blur(16px) saturate(125%)}
#root #app-container .mindmap-page :is(.mindmap-header,.mindmap-board-tabs,.mindmap-canvas-shell,.mindmap-status){background:transparent!important;box-shadow:none}
#app-container .mindmap-page .mindmap-board-switcher{flex-wrap:nowrap}
#app-container .mindmap-page .mindmap-board-tab{flex:0 0 auto;background:transparent}
#app-container .mindmap-page .mindmap-board-tab.is-active{background:color-mix(in srgb,var(--ui-accent-dark) 28%,transparent)}
#app-container .mindmap-page .mindmap-board-focus-btn{--chrome-button-fill:transparent;min-height:2.75rem}
#app-container .mindmap-page .mindmap-mode-button{min-width:2.75rem;min-height:2.75rem}
@media(max-width:700px){
 #app-container .mindmap-page .mindmap-minimap{width:5.5rem;height:3.5rem}
 #app-container .mindmap-page .mindmap-help{max-width:calc(100% - 1rem)}
}

/* Images shares the centered glass window; image pixels stay fully opaque. */
#app-container .images-page{flex:none;align-self:center;width:calc(100% - 1.5rem);max-width:72rem;height:calc(100dvh - var(--shell-header-clearance,5rem) - .75rem);margin:0 auto .75rem;border:1px solid var(--ui-glass-edge);border-radius:16px;background:var(--ui-glass-sheen),color-mix(in srgb,var(--shell-surface) 38%,transparent);box-shadow:var(--ui-glass-shadow);backdrop-filter:blur(16px) saturate(125%)}
#root #app-container .images-page :is(.images-workspace,.images-toolbar,.images-statusbar){background:transparent!important;box-shadow:none}
#root #app-container .images-page .images-card{background:color-mix(in srgb,var(--shell-surface) 20%,transparent)!important;box-shadow:none}
#root #app-container .images-page .images-card:is(:hover,:focus-within){background:color-mix(in srgb,var(--ui-accent-dark) 28%,transparent)!important}
#root #app-container .images-page .images-refresh{min-width:2.75rem;min-height:2.75rem}
@media(max-width:700px){
 #app-container .images-page .images-delete{opacity:1;min-width:2.75rem;min-height:2.75rem}
}

/* Notepad keeps an ample editor inside the same centered glass window. */
#app-container .notepad-page{--shell-field:color-mix(in srgb,var(--shell-surface) 12%,transparent);--ui-field:var(--shell-field);flex:none;align-self:center;width:calc(100% - 1.5rem);max-width:72rem;height:calc(100dvh - var(--shell-header-clearance,5rem) - .75rem);margin:0 auto .75rem;padding:0;overflow:hidden;border:1px solid var(--ui-glass-edge);border-radius:16px;background:var(--ui-glass-sheen),color-mix(in srgb,var(--shell-surface) 38%,transparent);box-shadow:var(--ui-glass-shadow);backdrop-filter:blur(16px) saturate(125%)}
#root #app-container .notepad-page :is(.notepad-page-header,.notepad-workspace,.notepad-editor,.notepad-hashtags-row,.notepad-statusbar){background:transparent!important;box-shadow:none}
#app-container .notepad-page .notepad-page-header{flex:0 0 auto}
#app-container .notepad-page .notepad-editor{min-height:0}
#app-container .notepad-page .notepad-textarea{min-height:0}
#app-container .notepad-page .notepad-title{flex:0 0 auto}
#app-container .notepad-page .notepad-statusbar{flex:0 0 auto}
#root #app-container .notepad-page .notepad-page-action{min-width:2.75rem;min-height:2.75rem}

/* Hertz: a glass music workspace with independent navigation and player. */
#root{--hertz-player-dock-height:6rem}
#shell-workspace #app-container .hertz-page{box-sizing:border-box;flex:none;align-self:center;width:calc(100% - 1.5rem);max-width:76rem;height:calc(100dvh - var(--shell-header-clearance,5rem) - 1rem);min-height:18rem;max-height:none;margin:0 auto 1rem;overflow:hidden;border:1px solid var(--ui-glass-edge);border-radius:16px;background:var(--ui-glass-sheen),color-mix(in srgb,var(--shell-surface) 38%,transparent);color:var(--shell-surface-ink);box-shadow:var(--ui-glass-shadow);backdrop-filter:blur(16px) saturate(125%)}
#root[data-hertz-player-active=true] #app-container .hertz-page{height:calc(100dvh - var(--shell-header-clearance,5rem) - var(--hertz-player-dock-height) - 1rem)}
.hertz-page .hertz-tab-anchor{padding:.8rem .8rem 0;background:transparent;border:0;z-index:2}
#root #app-container .hertz-page :is(.hertz-tabs,.hertz-object-tabs){display:inline-flex;align-self:flex-start;width:max-content;max-width:100%;justify-content:flex-start;margin:0;overflow:visible;border-radius:14px;background:var(--ui-glass-sheen),color-mix(in srgb,var(--shell-surface) 35%,transparent);box-shadow:inset 0 1px rgb(255 255 255/.15);backdrop-filter:none}
#root #app-container .hertz-page :is(.hertz-tab,.hertz-object-tab){top:0;min-width:0;min-height:2.75rem;padding:.6rem .9rem;font-size:.85rem}
#root #app-container .hertz-page .hertz-profile-tabs{margin:.25rem 0 .75rem}
.hertz-page .hertz-app-body{min-height:0;padding:.85rem;gap:1rem;background:transparent;color:inherit;overflow:auto}
#root #app-container .hertz-page .hertz-board-panel{min-height:0;gap:.5rem;border:0;background:transparent!important;color:inherit;box-shadow:none!important}
#root #app-container .hertz-page .hertz-board-toolbar{flex-shrink:0;min-height:4.5rem;gap:.75rem;padding:.85rem;margin:0 0 .5rem;border:1px solid var(--ui-glass-edge);border-radius:12px!important;background:var(--ui-glass-sheen),color-mix(in srgb,var(--shell-surface) 24%,transparent);box-shadow:inset 0 1px rgb(255 255 255/.12)}
.hertz-page .hertz-board-toolbar h2{font-size:1.1rem;font-weight:600}.hertz-page .hertz-main-controls{min-width:0;gap:.5rem}.hertz-page .hertz-toolbar-search{box-sizing:border-box;min-width:0;width:100%;min-height:2.75rem;border-radius:8px;padding:.55rem .75rem}
#app-container .hertz-page .hertz-btn{min-height:2.75rem}.hertz-page .hertz-collection-filters{margin:0 0 .5rem;padding:.65rem .8rem;border-color:var(--ui-glass-edge);border-radius:10px;background:color-mix(in srgb,var(--shell-surface) 18%,transparent);font-size:.8rem}.hertz-page .hertz-collection-filter{min-height:2rem}
.hertz-page .hertz-public-table-wrap{border:1px solid var(--ui-glass-edge);border-radius:12px;background:color-mix(in srgb,var(--shell-surface) 20%,transparent);box-shadow:inset 0 1px rgb(255 255 255/.1)}
#app-container .hertz-page .hertz-public-table{font-size:.86rem}#app-container .hertz-page .hertz-public-table :is(th,td){padding:.65rem .75rem!important}#app-container .hertz-page .hertz-public-table th{border:0;border-bottom:1px solid var(--ui-glass-edge);background:var(--ui-glass-sheen),color-mix(in srgb,var(--shell-surface) 45%,transparent);color:var(--shell-surface-ink);font-size:.78rem;text-transform:none;letter-spacing:normal}#app-container .hertz-page .hertz-public-table th:has(.hertz-board-sort){padding:0!important}#app-container .hertz-page .hertz-board-sort{min-height:2.75rem;padding:.65rem .75rem!important}.hertz-page .hertz-public-table tbody tr{background:transparent}.hertz-page .hertz-public-table tbody tr:hover{background:color-mix(in srgb,var(--ui-accent) 12%,transparent)}.hertz-page .hertz-public-table td{border-bottom-color:color-mix(in srgb,var(--ui-border) 45%,transparent)}
.hertz-page :is(.hertz-detail-header,.hertz-object-panel,.hertz-composer,.hertz-uploader){border:1px solid var(--ui-glass-edge);border-radius:12px;background:var(--ui-glass-sheen),color-mix(in srgb,var(--shell-surface) 25%,transparent);box-shadow:inset 0 1px rgb(255 255 255/.12)}
.hertz-page .hertz-object-nav{padding:.8rem .85rem 0}#app-container .hertz-page .hertz-app-back{min-height:2.75rem;padding:.5rem .75rem!important;font-size:.8rem!important}
#root .hertz-player{box-sizing:border-box;width:calc(100% - 1rem);max-width:76rem;min-height:4.75rem;margin:.5rem auto;padding:.6rem .8rem;border:1px solid var(--ui-glass-edge);border-radius:16px!important;background:var(--ui-glass-sheen),var(--shell-surface-glass);color:var(--shell-surface-ink);box-shadow:var(--ui-glass-shadow);backdrop-filter:blur(20px) saturate(135%)}
#root .hertz-player[hidden]{display:none}
#root :is(.hertz-player-preview,.hertz-player-button){box-sizing:border-box;width:2.75rem;min-width:2.75rem;height:2.75rem;min-height:2.75rem;border:1px solid var(--ui-glass-edge)!important;border-radius:10px!important;background:var(--ui-button-sheen),var(--shell-accent-dark)!important;box-shadow:var(--ui-button-shadow)!important}
#root .hertz-player-title{font-size:.85rem}#root .hertz-player-uploader{font-size:.75rem;color:var(--shell-surface-ink)!important}.hertz-player-times{font-size:.75rem}.hertz-player-timeline{gap:.65rem}.hertz-player-range{min-height:2.75rem}
.hertz-page :is(button,input):focus-visible{outline:2px solid var(--ui-accent);outline-offset:2px}
@media(max-width:700px){#root{--hertz-player-dock-height:8.5rem}#shell-workspace #app-container .hertz-page{width:calc(100% - 1rem)}.hertz-page .hertz-board-toolbar{align-items:stretch}.hertz-page .hertz-main-controls{display:grid;grid-template-columns:minmax(0,1fr) auto}.hertz-page .hertz-toolbar-search{order:0;max-width:none}.hertz-page .hertz-public-table-wrap{flex:1;min-height:0}.hertz-page .hertz-app-body{padding:.65rem}.hertz-page .hertz-tab-anchor{padding:.65rem .65rem 0}#root .hertz-player{grid-template-columns:minmax(0,1fr) auto;min-height:7rem;padding:.5rem .65rem;gap:.35rem .5rem}#root .hertz-player-transport{grid-column:1 / -1;grid-row:2}.hertz-player-volume-group{grid-column:2;grid-row:1}.hertz-player-volume{display:none}}
@media(hover:none){.hertz-page .hertz-public-track-play-icon{opacity:1}}
#root:has(.hertz-page){height:100dvh;min-height:0;overflow:hidden}
#shell-workspace:has(.hertz-page){height:auto;min-height:0}
#shell-workspace:has(.hertz-page) #app-container{height:100%;min-height:0;padding:0;overflow:hidden}
@media(max-height:600px){#root:has(.hertz-page){height:auto;min-height:100dvh;overflow:visible}#shell-workspace:has(.hertz-page) #app-container{height:auto;overflow:visible}#shell-workspace #app-container .hertz-page{min-height:22rem}.hertz-page .hertz-app-body{max-height:24rem}}
#root #app-container .hertz-page :is(.hertz-public-track-name,.hertz-public-track-owner,.hertz-collection-name,.hertz-collection-object-name,.hertz-board-sort){--ui-button-sheen:none;--ui-button-shadow:none;--chrome-button-border:transparent;--chrome-button-fill:transparent;--chrome-control-radius:0}
#app-container .hertz-page .hertz-public-track-owner{font-size:.78rem!important}
#app-container .hertz-page .hertz-public-table th:last-child{display:table-cell;width:0;padding:0!important;border:0;font-size:0}
#app-container .hertz-page .hertz-public-table td.hertz-context-cell{width:0;padding:0!important;border:0}

/* Wallpaper-facing text keeps an opposing edge as its own ink changes.
   Recompute per element/pseudo: an inherited computed shadow would retain
   the parent's color when a nested label chooses different ink. Low
   specificity preserves deliberate component treatments on painted controls. */
:where(body,body *),:where(body,body *)::before,:where(body,body *)::after,:where(body,body *)::marker,:where(body,body *)::placeholder{
  text-shadow:var(--ui-text-edge-treatment,0 1px 2px rgb(0 0 0/.82));
}
@supports(color:color(from currentColor xyz-d65 x y z)){
  :where(body,body *),:where(body,body *)::before,:where(body,body *)::after,:where(body,body *)::marker,:where(body,body *)::placeholder{
    --ui-text-outline-color:color(from currentColor xyz-d65 .95047 1 1.08883 / calc(.95 * clamp(0,calc((.179 - y) * 100000),1)));
    --ui-text-shadow-color:color(from currentColor xyz-d65 0 0 0 / calc(.82 * (1 - clamp(0,calc((.179 - y) * 100000),1))));
    text-shadow:var(--ui-text-edge-treatment,-.75px 0 0 var(--ui-text-outline-color),.75px 0 0 var(--ui-text-outline-color),0 -.75px 0 var(--ui-text-outline-color),0 .75px 0 var(--ui-text-outline-color),0 1px 2px var(--ui-text-shadow-color));
  }
}
/* SVG labels may set fill independently of CSS color. A neutral two-tone
   edge protects those glyphs without replacing the chart's authored fill. */
:where(svg text,svg tspan){text-shadow:var(--ui-text-edge-treatment,-.75px 0 0 rgb(255 255 255/.95),.75px 0 0 rgb(255 255 255/.95),0 -.75px 0 rgb(255 255 255/.95),0 .75px 0 rgb(255 255 255/.95),0 1px 3px rgb(0 0 0/.95))}

/* Painted surface boundaries keep their descendants crisp. A component that
   removes its surface should also remove this boundary token. */
:where(.ui-text-surface,.chrome-window,.chrome-field,.profile-field-input,.weather-field input,.cs-wiki-search-bar input,.auth-card,.posts-card,.settings-area-node,.homepage-project,
  .weather-now,.weather-detail,.weather-hour,.weather-day,.weather-empty,.weather-alert-box,
  .hertz-page,.hertz-player,.friends-page,.messages-page,.calendar-page,.mindmap-page,.images-page,.notepad-page,
  .cs-wiki-reading,.cs-wiki-navigation,.cs-wiki-contents,.cs-wiki-search-results,
  .crystal-sol .shell-info-card:not(.cs-wiki)) {--ui-text-edge-treatment:none}

/* Wiki prose sits on glass; reserve depth for headings and wallpaper labels. */
.crystal-sol.cs-wiki-page{--cs-wiki-ink:color-mix(in srgb,var(--shell-surface-ink) 80%,white);--cs-wiki-muted:color-mix(in srgb,var(--shell-surface-ink) 84%,var(--shell-surface));--cs-wiki-link:#98dce7}
.crystal-sol.cs-wiki-page .cs-wiki-reading{color:var(--cs-wiki-ink);background:var(--ui-glass-sheen),color-mix(in srgb,var(--shell-surface) 84%,transparent)}
.crystal-sol.cs-wiki-page :is(.cs-wiki-summary,.cs-wiki-preview p,.cs-wiki-section-content){color:var(--cs-wiki-ink)}
.crystal-sol.cs-wiki-page :is(.cs-wiki-card-detail,.cs-wiki-metadata){color:var(--cs-wiki-muted);--ui-text-edge-treatment:none}
.crystal-sol.cs-wiki-page .cs-wiki-reading a{color:var(--cs-wiki-link);text-decoration:underline;text-underline-offset:.18em;--ui-text-edge-treatment:none}
.crystal-sol.cs-wiki-page .cs-wiki-reading a:hover{color:#c2f0f5}
.crystal-sol.cs-wiki-page :is(.cs-brand,.cs-wiki-reading h1,.cs-wiki-reading h2,.cs-wiki-reading h3){--ui-text-edge-treatment:0 1px 2px rgb(0 0 0/.35)}
/* Wiki entity reference: browsing belongs to the reader, including desktop. */
.crystal-sol.cs-wiki-page .cs-wiki-layout{grid-template-columns:13rem minmax(0,1fr) 12rem}
.crystal-sol.cs-wiki-page .cs-wiki-layout:has(.cs-wiki-contents[hidden]){grid-template-columns:13rem minmax(0,1fr)}
.crystal-sol.cs-wiki-page .cs-wiki-navigation{display:block;grid-column:1;grid-row:1;max-height:75vh;overflow:auto;position:sticky;top:1rem}
.crystal-sol.cs-wiki-page .cs-wiki-reading{grid-column:2;grid-row:1}
.crystal-sol.cs-wiki-page .cs-wiki-contents{grid-column:3;grid-row:1}
.crystal-sol.cs-wiki-page [data-wiki-nav-list] ul{list-style:none;padding:0;margin:.3rem 0 .6rem}
.crystal-sol.cs-wiki-page [data-wiki-group]>details>summary{padding:.4rem 0;overflow-wrap:anywhere}
.crystal-sol.cs-wiki-page .cs-wiki-filters{display:flex;gap:.65rem;flex-wrap:wrap;grid-column:1/-1}
.crystal-sol.cs-wiki-page .cs-wiki-filters label{display:grid;gap:.25rem;flex:1 1 9rem;min-width:0;font-size:.85rem;color:var(--ui-muted-ink)}
.crystal-sol.cs-wiki-page .cs-wiki-filters select{box-sizing:border-box;width:100%;min-width:0;min-height:2.75rem;padding:.5rem;border:1px solid var(--ui-border);border-radius:.5rem;background:var(--ui-field);color:var(--shell-surface-ink);font:inherit;text-shadow:none}
.crystal-sol.cs-wiki-page .cs-wiki-entity-facts{display:flex;gap:.3rem 1rem;flex-wrap:wrap;margin:.6rem 0;font-size:.85rem}
.crystal-sol.cs-wiki-page .cs-wiki-entity-facts>div{display:inline-flex;gap:.35rem;align-items:baseline}
.crystal-sol.cs-wiki-page .cs-wiki-entity-facts dt{color:var(--ui-muted-ink)}
.crystal-sol.cs-wiki-page .cs-wiki-entity-facts dd{margin:0}
.crystal-sol.cs-wiki-page .cs-wiki-references ul{columns:2;column-gap:1.5rem;padding-left:1.25rem}
.crystal-sol.cs-wiki-page .cs-wiki-references li{break-inside:avoid;overflow-wrap:anywhere;margin:.3rem 0}
@container crystal-wiki (max-width:70rem){
 .crystal-sol.cs-wiki-page .cs-wiki-layout,.crystal-sol.cs-wiki-page .cs-wiki-layout:has(.cs-wiki-contents[hidden]){grid-template-columns:12rem minmax(0,1fr)}
 .crystal-sol.cs-wiki-page .cs-wiki-reading,.crystal-sol.cs-wiki-page .cs-wiki-layout:has(.cs-wiki-contents[hidden]) .cs-wiki-reading{grid-column:2;grid-row:2}
 .crystal-sol.cs-wiki-page .cs-wiki-layout:has(.cs-wiki-contents[hidden]) .cs-wiki-reading{grid-row:1}
 .crystal-sol.cs-wiki-page .cs-wiki-contents{grid-column:2;grid-row:1;position:static}
 .crystal-sol.cs-wiki-page .cs-wiki-navigation{grid-row:1/3}
}
@media(max-width:760px){
 .crystal-sol.cs-wiki-page .cs-wiki-layout,.crystal-sol.cs-wiki-page .cs-wiki-layout:has(.cs-wiki-contents[hidden]){grid-template-columns:minmax(0,1fr)}
 .crystal-sol.cs-wiki-page .cs-wiki-navigation{grid-column:1;grid-row:1;position:static;max-height:none}
 .crystal-sol.cs-wiki-page .cs-wiki-contents{grid-column:1;grid-row:2}
 .crystal-sol.cs-wiki-page .cs-wiki-reading{grid-column:1;grid-row:3}
 .crystal-sol.cs-wiki-page .cs-wiki-layout:has(.cs-wiki-contents[hidden]) .cs-wiki-reading{grid-column:1;grid-row:2}
 .crystal-sol.cs-wiki-page .cs-wiki-references ul{columns:1}
}
.crystal-sol.cs-wiki-page .cs-wiki-entity-link{display:inline-flex;align-items:center;gap:.65rem;max-width:100%;min-height:2.75rem;vertical-align:middle;overflow-wrap:anywhere}
.crystal-sol.cs-wiki-page [data-wiki-entity-thumbnail]{display:block;width:4.5rem;height:2.5rem;flex:none;object-fit:cover;border:1px solid var(--ui-border);border-radius:.3rem;background:var(--ui-sunken)}
.crystal-sol.cs-wiki-page .cs-wiki-section li:has([data-wiki-entity-thumbnail]){margin-block:.5rem}
@media(max-width:480px){.crystal-sol.cs-wiki-page [data-wiki-entity-thumbnail]{width:3.5rem;height:2rem}}

/* Keep search and article introductions compact without discarding reference content. */
.crystal-sol.cs-wiki-page .cs-wiki{scroll-margin-top:calc(var(--shell-header-clearance,0px) + .5rem)}
.crystal-sol.cs-wiki-page :is(.cs-wiki-section,.cs-wiki-entity-intro){scroll-margin-top:calc(var(--shell-header-clearance,0px) + .5rem)}
.crystal-sol.cs-wiki-page .cs-wiki-section-text ul{padding-inline-start:1.25rem}
.crystal-sol.cs-wiki-page .cs-wiki-heading{padding-block:0 .5rem}
.crystal-sol.cs-wiki-page .cs-wiki-search-bar{grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:.4rem .75rem}
.crystal-sol.cs-wiki-page .cs-wiki-filter-panel{min-width:0;padding-top:1.6rem}
.crystal-sol.cs-wiki-page .cs-wiki-filter-panel>summary{cursor:pointer;min-height:2.75rem;display:list-item;align-content:center;padding-inline:.35rem;font-size:.9rem}
.crystal-sol.cs-wiki-page .cs-wiki-filter-panel[open]{grid-column:1/-1;padding-top:0}
.crystal-sol.cs-wiki-page .cs-wiki-filters{margin-top:.4rem}
.crystal-sol.cs-wiki-page [data-wiki-filter-status]{margin:0;font-size:.8rem}
.crystal-sol.cs-wiki-page [data-wiki-search-clear]{grid-column:1/-1;justify-self:start}
.crystal-sol.cs-wiki-page .cs-wiki-search-results{max-height:min(25rem,50dvh);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.crystal-sol.cs-wiki-page [data-wiki-navigation][hidden]{display:none}
.crystal-sol.cs-wiki-page .cs-wiki-layout:has([data-wiki-navigation][hidden]){grid-template-columns:minmax(0,1fr) 12rem}
.crystal-sol.cs-wiki-page .cs-wiki-layout:has([data-wiki-navigation][hidden]):has(.cs-wiki-contents[hidden]){grid-template-columns:minmax(0,1fr)}
.crystal-sol.cs-wiki-page .cs-wiki-layout:has([data-wiki-navigation][hidden]) .cs-wiki-reading{grid-column:1;grid-row:1}
.crystal-sol.cs-wiki-page .cs-wiki-layout:has([data-wiki-navigation][hidden]) .cs-wiki-contents{grid-column:2;grid-row:1}
.crystal-sol.cs-wiki-page .cs-wiki-entity-intro{display:grid;grid-template-columns:minmax(0,1fr);gap:1rem;margin-block:1rem}
.crystal-sol.cs-wiki-page .cs-wiki-entity-intro:has(.cs-wiki-section-image){grid-template-columns:minmax(0,1fr) minmax(9rem,14rem)}
.crystal-sol.cs-wiki-page .cs-wiki-entity-copy{min-width:0}
.crystal-sol.cs-wiki-page .cs-wiki-entity-intro .cs-wiki-summary{margin-block:.4rem}
.crystal-sol.cs-wiki-page .cs-wiki-entity-intro>.cs-wiki-section-image{width:100%;max-width:14rem;margin:0;align-self:start}
.crystal-sol.cs-wiki-page .cs-wiki-entity-intro .cs-wiki-section-image img{max-height:12rem;object-fit:contain}
.crystal-sol.cs-wiki-page .cs-wiki-anchor{display:block;height:0;scroll-margin-top:var(--shell-header-clearance,4rem)}
@container crystal-wiki (max-width:70rem){
 .crystal-sol.cs-wiki-page .cs-wiki-layout:has([data-wiki-navigation][hidden]){grid-template-columns:minmax(0,1fr)}
 .crystal-sol.cs-wiki-page .cs-wiki-layout:has([data-wiki-navigation][hidden]) .cs-wiki-contents{grid-column:1;grid-row:1}
 .crystal-sol.cs-wiki-page .cs-wiki-layout:has([data-wiki-navigation][hidden]) .cs-wiki-reading{grid-column:1;grid-row:2}
 .crystal-sol.cs-wiki-page .cs-wiki-layout:has([data-wiki-navigation][hidden]):has(.cs-wiki-contents[hidden]) .cs-wiki-reading{grid-row:1}
}
@media(max-width:760px){
 .crystal-sol.cs-wiki-page .cs-wiki-entity-intro:has(.cs-wiki-section-image){grid-template-columns:minmax(0,1fr)}
 .crystal-sol.cs-wiki-page .cs-wiki-entity-intro>.cs-wiki-section-image{max-width:none}
}

/* Community tags are metadata, separate from the post body. */
.community-tag-editor{display:grid;gap:.4rem;min-width:0}
.community-tag-editor input{box-sizing:border-box;width:100%;padding:.65rem;font:inherit;color:var(--ui-ink);background:var(--ui-field);border:1px solid var(--ui-border);border-radius:10px}
.community-tag-editor p{margin:0;font-size:.85rem;color:var(--ui-ink)}
.posts-tags{display:flex;flex-wrap:wrap;gap:.5rem;margin-block:.5rem}
.posts-tag{display:inline-block;color:var(--ui-ink);background:var(--ui-raised);border:1px solid var(--ui-border);border-radius:1rem;padding:.2rem .6rem;overflow-wrap:anywhere}

/* Local Community drafts share the feed's reading width and outer scrolling. */
.community-drafts{box-sizing:border-box;min-width:0;margin:0 0 1rem;color:var(--ui-ink)}
.community-drafts h2{font-size:1rem;margin:.5rem 0}
.community-drafts>p,.community-draft-controls p{font-size:.85rem;line-height:1.5;margin:.4rem 0}
.community-drafts-list{display:grid;gap:.65rem}
.community-draft-row{box-sizing:border-box;min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:.65rem;padding:1rem;border:1px solid var(--ui-border);border-radius:16px;background:var(--ui-surface);color:var(--ui-ink)}
.community-draft-row p{flex-basis:100%;min-width:0;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.community-draft-row img{width:5rem;height:4rem;object-fit:contain;border-radius:8px}
.community-draft-row time{font-size:.8rem;flex:1 1 12rem}
.community-draft-controls{display:flex;gap:.65rem;flex-wrap:wrap;align-items:center;margin-top:.65rem}
.community-draft-controls p{flex:1 1 100%}
.community-draft-controls [hidden]{display:none!important}

/* The composer scrolls its editing area while keeping its actions in view. */
.homepage-compose-dialog{height:fit-content;max-height:calc(100dvh - 2rem);overflow:hidden;gap:0}
.homepage-compose-dialog[open]{display:flex;flex-direction:column}
.homepage-compose-heading{flex:none}
.homepage-compose-dialog .homepage-post-composer-wrap{display:flex;flex:0 1 auto;min-height:0;min-width:0}
.homepage-compose-dialog .homepage-post-composer{display:flex;flex:0 1 auto;flex-direction:column;min-height:0;min-width:0;width:100%;gap:0}
.community-compose-body{flex:0 1 auto;min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;padding:.2rem .25rem .75rem}
.community-compose-editor{display:flex;flex-direction:column;gap:.85rem;min-width:0}
.community-compose-actions{flex:none;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:.5rem .85rem;position:relative;z-index:1;padding:.55rem .25rem max(.25rem,env(safe-area-inset-bottom));background:transparent;color:var(--ui-ink)}
.community-compose-action-details{min-width:0;overflow-wrap:anywhere}
.community-compose-actions>.posts-composer-submit{align-self:end;justify-self:end}
.community-compose-actions .posts-composer-controls{flex-wrap:wrap;gap:.5rem}
.community-compose-actions .posts-composer-counter{flex:0 1 auto;margin:0;font-size:.8rem;color:var(--ui-muted-ink)}
.community-compose-actions .community-draft-controls{gap:.5rem;margin-top:.25rem}
.community-compose-actions .community-draft-controls p{margin:.15rem 0}
.community-compose-editor[hidden],#community-post-preview-card[hidden]{display:none!important}
.community-tag-box{display:flex;align-items:center;flex-wrap:wrap;gap:.4rem;border:1px solid transparent;border-radius:10px;padding:.3rem;background:color-mix(in srgb,var(--ui-field) 45%,transparent);color:var(--ui-ink)}
.community-tag-chips{display:contents}
.community-tag-editor .community-tag-box input{flex:1 1 10rem;width:auto;min-width:6rem;border:0;padding:.4rem;background:transparent}
.community-tag-chip{display:inline-flex;align-items:center;gap:.25rem;max-width:100%;overflow-wrap:anywhere;padding:.1rem .2rem .1rem .55rem;border:1px solid var(--ui-border);border-radius:1rem;background:var(--ui-raised);color:var(--ui-ink)}
.homepage-compose-dialog .community-tag-chip button{display:grid;place-items:center;min-height:1.75rem;min-width:1.75rem;border:0;padding:.1rem!important;border-radius:50%!important}
.homepage-compose-dialog .posts-composer-thumbs{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(14rem,100%),1fr));gap:.85rem}
.community-image-card{display:flex;flex-direction:column;min-width:0;gap:.35rem}
.homepage-compose-dialog .community-image-card .posts-composer-thumb{display:block;width:100%;height:10rem;flex:none}
.homepage-compose-dialog .posts-composer-thumb .community-image-enlarge{display:block;position:static;width:100%;height:100%;min-height:0;padding:0!important;margin:0!important;border:0;border-radius:0!important;background:transparent!important;cursor:zoom-in}
.community-image-card label{font-size:.85rem}
.homepage-compose-dialog .posts-composer .community-image-alt{height:4.5rem;min-height:4.5rem;padding:.5rem;resize:vertical;font-size:.85rem}
.community-image-preview{box-sizing:border-box;position:fixed;inset:0;margin:auto;width:min(80rem,calc(100% - 1rem));max-height:calc(100dvh - 1rem);padding:1rem;overflow:auto;border:1px solid var(--ui-border);border-radius:16px;background:var(--ui-surface);color:var(--ui-ink)}
.community-image-preview::backdrop{background:rgb(0 0 0/.75)}
.community-image-preview h2{font-size:1rem;margin:0 0 .75rem}
.community-image-preview img{display:block;width:100%;max-height:calc(100dvh - 9rem);object-fit:contain;margin-top:.75rem}
.community-image-preview button{font:inherit;color:var(--ui-ink);background:var(--ui-raised);border:1px solid var(--ui-border);border-radius:10px;padding:.5rem .85rem}
#community-post-preview-card .posts-card{margin:0}
#community-post-preview-card .posts-card-media img{width:100%;max-height:26rem;object-fit:contain}

/* Composer modes share the shell's Aero tabs and semantic action hierarchy. */
.homepage-compose-dialog .community-compose-tabs{flex:none;margin:0 0 .65rem;display:flex;gap:.35rem}
.homepage-compose-dialog .community-compose-tab{flex:1}
.homepage-compose-dialog .community-compose-tab[aria-selected=true]{font-weight:650}
.homepage-compose-dialog .community-compose-secondary{--chrome-button-fill:var(--ui-surface);--chrome-button-border:var(--ui-border);background-color:var(--ui-surface)!important;color:var(--ui-ink)!important}
.homepage-compose-dialog .posts-composer-submit{font-weight:700;min-width:5.5rem;background-color:var(--ui-accent-dark)!important;color:var(--ui-accent-dark-ink)!important;border-color:var(--ui-accent-strong)!important}
.homepage-compose-dialog[data-compose-mode=preview] :is(#community-attach-image,#community-new-draft,#community-draft-retry,#community-draft-copy,.posts-composer-counter){display:none!important}
#community-post-preview-card a:not([href]){cursor:default;text-decoration:none}

.community-draft-row button[data-draft-action=resume][aria-disabled=true]{opacity:.5;cursor:wait}

/* One modal face; inner panels and navigation do not paint extra windows. */
#root #app-container #homepage-compose-dialog [role=tabpanel]{border:0;background-color:transparent!important;background-image:none!important;box-shadow:none!important;border-radius:0!important}
#root #app-container #homepage-compose-dialog .community-compose-tabs{justify-content:flex-start;padding:.1rem 0;gap:.4rem;border:0;background:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;border-radius:0}
#root #app-container #homepage-compose-dialog .community-compose-tab{flex:0 1 auto;min-height:2.25rem;padding:.4rem .85rem;border:0!important;background-image:none!important;background-color:transparent!important;box-shadow:none!important}
#root #app-container #homepage-compose-dialog .community-compose-tab[aria-selected=true]{background-color:var(--ui-raised)!important;color:var(--ui-ink)!important;box-shadow:inset 0 -2px var(--ui-accent)!important}
#root #app-container #homepage-compose-dialog :is(#homepage-post-composer-input,.community-image-alt){border:1px solid transparent;background-color:color-mix(in srgb,var(--ui-field) 45%,transparent)!important;background-image:none!important;box-shadow:none!important;color:var(--ui-ink)}
.homepage-compose-dialog :is(#homepage-post-composer-input,.community-image-alt):focus-visible,.homepage-compose-dialog .community-tag-box:focus-within{outline:2px solid var(--ui-accent);outline-offset:1px}
#root #app-container #homepage-compose-dialog .homepage-compose-close{border-color:transparent;background-color:transparent!important;background-image:none!important;box-shadow:none!important}
.homepage-compose-dialog :is(#community-tag-hint,#community-draft-status,#homepage-post-status):empty{display:none}
.homepage-compose-dialog .community-image-card .posts-composer-thumb{border-color:transparent;box-shadow:none}
@media(max-height:480px){.homepage-compose-dialog{padding:.75rem}.homepage-compose-heading{margin-bottom:.5rem}.homepage-compose-dialog .community-compose-tabs{margin-bottom:.4rem}.community-compose-actions{padding-top:.35rem}}
#root #app-container #homepage-compose-dialog .community-tag-box input{border:0;background-color:transparent!important;background-image:none!important;box-shadow:none!important;color:var(--ui-ink)}
.homepage-compose-dialog .homepage-compose-close{--chrome-button-fill:transparent;--chrome-button-border:transparent}

.homepage-compose-dialog .posts-composer-thumbs:empty{display:none}
#root #app-container #homepage-compose-dialog #community-post-preview-card .posts-card{border:0;background-color:transparent!important;background-image:none!important;box-shadow:none!important;padding:.25rem!important}

#shell-workspace:has(.skillbot-page){height:100dvh;min-height:0}
#shell-workspace:has(.skillbot-page) #app-container>.app-host{overflow:hidden}
#shell-workspace:has(.skillbot-page) #app-container>.app-host>.app-mount{min-height:0}

/* Background customization is retired, including saved profile backdrops. */
.profile-live-background{display:none!important}

/* Header labels follow their icons when the viewport has room. */
@media(min-width:769px){
 #root #shell-header :is(#shell-home-button,#shell-community-link,#shell-apps-link,#shell-profile-button,#shell-notif-button,#shell-session-actions button){width:auto;gap:.4rem;padding:2px 8px!important}
 #shell-header .shell-app-label,#shell-header #shell-notif-button .shell-app-label{display:inline;font-size:.85rem;white-space:nowrap}
 #shell-header :is(#shell-community-link,#shell-apps-link,#shell-session-actions button,#shell-notif-button)::before{right:auto;left:8px}
}

/* Guest actions keep their native link or button behavior wherever an app places them. */
[data-guest-join]{display:inline-flex;align-items:center;justify-content:center;gap:.4em}
:is([data-guest-join],#shell-join-hint)::after{content:"";order:-1;flex:none;width:1.2em;height:1.2em;background-color:currentColor;mask:url('/shell/app-icons/signup.svg') center/contain no-repeat}
html[data-authenticated] :is([data-guest-join],[data-join-action]),[data-guest-join][hidden]{display:none!important}
#root #shell-header #shell-session-actions [data-guest-join]{width:auto;gap:.4rem;padding:2px 8px!important;font-size:.85rem}
#shell-header #shell-session-actions [data-guest-join]::before{content:none}
#shell-header #shell-session-actions [data-guest-join]::after{width:24px;height:24px}
#shell-join-hint{position:fixed;inset:auto;z-index:1000;display:inline-flex;align-items:center;gap:.4em;width:max-content;margin:0;padding:.4rem .65rem;border:1px solid var(--ui-border);border-radius:6px;background:var(--ui-raised);color:var(--ui-ink);font:600 .85rem/1.4 var(--shell-font);white-space:nowrap;cursor:pointer}

/* Show the drafts boundary only when device-local records exist. */
.community-drafts[hidden]{display:none!important}
.community-drafts{padding-bottom:1rem;border-bottom:1px solid var(--ui-glass-edge)}
.posts-feed-loading{padding:1rem;text-align:center;color:var(--ui-muted-ink);font-size:.9rem}

/* Normal document flow: footer follows the entire workspace and app content. */
#site-footer{position:static;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem;clear:both;width:100%;padding:1.25rem clamp(1rem,3vw,2rem);margin:0;border-top:1px solid var(--ui-border);background:var(--ui-dark);color:#aaa;font-size:.85rem}
#site-footer a{color:#bdbdbd;text-decoration:none;min-height:2.75rem;display:inline-flex;align-items:center;gap:.5rem}
#site-footer a:hover{color:#fff;text-decoration:underline}
#site-footer a:focus-visible{outline:2px solid #cfcfcf;outline-offset:3px}
#site-footer .site-footer-brand{color:#ededed;font-weight:600}
#site-footer .site-footer-brand img{width:24px;height:24px;object-fit:contain}
#site-footer nav{display:flex;flex-wrap:wrap;gap:1.25rem}

/* Keep the footer in the active page's scroll flow, beyond its content. */
#root #shell-workspace #app-container>.app-host[data-state="active"]{overflow-y:auto!important}
#root #shell-workspace #app-container>.app-host[data-state="active"]>.app-mount{flex:0 0 auto!important;height:auto!important;min-height:calc(100dvh - var(--shell-header-clearance,40px))!important}
#root[data-hertz-player-active="true"] #shell-workspace #app-container>.app-host[data-state="active"]>.app-mount{min-height:calc(100dvh - var(--shell-header-clearance,40px) - var(--hertz-player-dock-height))!important}
#site-footer{flex:0 0 auto}

/* Policy and feedback pages use the document flow, not a scrolling card. */
#root #shell-workspace #app-container:has(>.shell-legal-page){display:flex;flex:1 0 auto;flex-direction:column;width:100%;height:auto;overflow:visible;padding:var(--shell-header-clearance,40px) 0 0!important}
#app-container>.shell-legal-page{overflow:visible;max-height:none;height:auto}
#app-container:has(>.shell-legal-page)>#site-footer{margin-top:auto}
#feedback-form .feedback-field-error{margin:0;font-size:.85rem;line-height:1.4;color:#ededed}
#feedback-form .feedback-field-error[hidden]{display:none}
#feedback-form [aria-invalid=true]{border-color:#bdbdbd!important}
#feedback-form label span{font-size:.8rem;color:#aaa}

/* Readable policy typography within the shared neutral page layout. */
#app-container .shell-legal-page>h2{margin:1.5rem 0 .5rem;font-size:1.2rem;line-height:1.3}
#app-container .shell-legal-page>p{margin:.75rem 0}
#app-container .shell-legal-page>ul{padding-left:1.35rem;margin:.75rem 0}
#app-container .shell-legal-page li{line-height:1.6;margin:.5rem 0}

/* Public information routes own one document scrollbar, even on desktop. */
html:has(#app-container>.shell-legal-page){height:auto!important;overflow-x:clip!important;overflow-y:auto!important}
body:has(#app-container>.shell-legal-page){height:auto!important;min-height:100dvh;overflow:visible!important}
#root:has(#app-container>.shell-legal-page),#shell-workspace:has(#app-container>.shell-legal-page){height:auto!important;min-height:100dvh!important;overflow:visible!important}
#app-container>.shell-legal-page{width:min(76rem,calc(100% - 2rem));padding:0;border:0;background:transparent}
.policy-intro,.policy-section,.feedback-guidance,#feedback-form{padding:1.25rem;border:1px solid #484848;background:#222;min-width:0}
.policy-intro{margin-bottom:1rem}
.policy-sections{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,24rem),1fr));gap:1rem;align-items:start}
#app-container .policy-section h2{margin:0 0 .65rem;font-size:1.2rem;line-height:1.3}
#app-container :is(.policy-section,.policy-intro,.feedback-guidance) p{margin:.75rem 0;line-height:1.6}
#app-container .policy-section ul{padding-left:1.35rem;margin:.75rem 0}
#app-container :is(.policy-section,.policy-intro,.feedback-guidance)>:last-child{margin-bottom:0}
#app-container>.shell-feedback-page{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:1rem;align-items:start}
#feedback-form{align-self:start}
@media(max-width:700px){#app-container>.shell-feedback-page{grid-template-columns:minmax(0,1fr)}}

/* Shell-owned desktop and chat survive app navigation without sharing app DOM. */
#root{--shell-chat-width:360px;--shell-chat-bottom:0px}
#root[data-hertz-player-active="true"]{--shell-chat-bottom:var(--hertz-player-dock-height)}
#shell-chat-host{position:fixed;right:0;top:40px;bottom:var(--shell-chat-bottom);width:var(--shell-chat-width);z-index:30;min-width:0;color:#ededed;font: .85rem/1.45 var(--shell-font);background:#1c1c1c;border-left:1px solid #3c3c3c}
#shell-chat-host[hidden],#shell-chat-host [hidden]{display:none!important}
#shell-chat-host button,#shell-chat-host input,#shell-chat-host textarea{font:inherit;color:inherit;border:1px solid #484848;border-radius:0;background:#2b2b2b;box-shadow:none;padding:.45rem .65rem;margin:0;transition:none;text-shadow:none}
#shell-chat-host button{cursor:pointer}
#shell-chat-host button:hover:not(:disabled){background:#383838}
#shell-chat-host button:disabled{opacity:.55;cursor:default}
#shell-chat-host :is(button,input,textarea):focus-visible{outline:2px solid #ddd;outline-offset:-2px}
.shell-chat-panel{display:flex;flex-direction:column;height:100%;min-height:0}
.shell-chat-heading{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.75rem .8rem .5rem;flex:none}
.shell-chat-heading h2{font-size:1rem;margin:0;font-weight:600}
#shell-chat-host .shell-chat-minimize{border:0;background:transparent;min-width:36px;min-height:36px;padding:0;font-size:1.2rem}
.shell-chat-search-label{display:block;padding:0 .8rem .6rem;flex:none}
#shell-chat-host .shell-chat-search{width:100%;min-width:0;background:#181818}
.shell-chat-list{overflow-y:auto;overscroll-behavior:contain;padding:0 .4rem .5rem;flex:1 1 30%;min-height:72px;max-height:40%}
#shell-chat-host .shell-chat-contact{display:flex;align-items:center;gap:.6rem;width:100%;min-height:54px;padding:.5rem;border:0;background:transparent;text-align:left}
#shell-chat-host .shell-chat-contact[aria-pressed="true"]{background:#333}
.shell-chat-avatar{display:grid;place-items:center;width:32px;height:32px;flex:none;background:#3a3a3a;color:#eee;font-weight:500;overflow:hidden}
.shell-chat-avatar img{display:block;width:100%;height:100%;object-fit:cover}
.shell-chat-contact-copy{display:flex;flex-direction:column;min-width:0;flex:1;gap:.1rem}
.shell-chat-contact-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}
.shell-chat-preview{color:#b3b3b3;font-size:.75rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.shell-chat-contact-unread{font-size:.65rem;color:#ededed;border-bottom:1px solid #aaa;flex:none}
.shell-chat-thread{margin-top:auto;display:flex;flex-direction:column;flex:1 1 65%;min-height:0;background:#222;border-top:1px solid #555}
.shell-chat-thread-heading{padding:.7rem .8rem .5rem;flex:none}
.shell-chat-name{font-size:.95rem;font-weight:600;margin:0}
.shell-chat-presence{font-size:.75rem;color:#b3b3b3;margin:.2rem 0 0}
#shell-chat-host .shell-chat-older{flex:none;border:0;border-top:1px solid #3c3c3c;border-bottom:1px solid #3c3c3c;font-size:.75rem;padding:.3rem .5rem;background:transparent}
.shell-chat-log{display:flex;flex-direction:column;align-items:flex-start;gap:.65rem;flex:1 1 auto;min-height:64px;overflow-y:auto;overscroll-behavior:contain;padding:.65rem .8rem}
.shell-chat-bubble{max-width:90%;padding:.5rem .65rem;background:#333;flex:none;overflow-wrap:anywhere;white-space:pre-wrap}
.shell-chat-bubble[data-mine="true"]{align-self:flex-end;background:#444}
.shell-chat-bubble p{margin:0;line-height:1.5}
.shell-chat-bubble time{display:block;font-size:.65rem;color:#c1c1c1;margin-top:.25rem;text-align:right}
.shell-chat-typing{font-size:.75rem;min-height:1.2rem;color:#b3b3b3;padding:0 .8rem;flex:none}
.shell-chat-compose{display:flex;gap:.5rem;padding:.5rem .8rem;flex:none;border-top:1px solid #3c3c3c;align-items:flex-end}
#shell-chat-host .shell-chat-input{background:#181818;min-width:0;width:100%;resize:none;max-height:7rem;min-height:44px;flex:1}
#shell-chat-host .shell-chat-send{background:#ddd;color:#181818;border-color:#ddd;min-height:44px}
.shell-chat-status{font-size:.75rem;color:#ccc;padding:0 .8rem;flex:none;overflow-wrap:anywhere}
.shell-chat-status:empty{display:none}
#shell-chat-host .shell-chat-full{align-self:flex-end;font-size:.75rem;text-decoration:underline!important;background:transparent;border:0;margin:.2rem .8rem .5rem;padding:.25rem 0}
.shell-chat-empty{font-size:.8rem;color:#b3b3b3;line-height:1.6;padding:.5rem;margin:0}
.shell-chat-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#shell-chat-host[data-collapsed="true"]{top:auto;bottom:calc(var(--shell-chat-bottom) + .75rem);right:.75rem;left:auto;width:auto;border:0;background:transparent}
#shell-chat-host .shell-chat-toggle{display:flex;align-items:center;gap:.65rem;min-height:44px;padding:.65rem 1rem;background:#292929}
.shell-chat-unread:not(:empty){min-width:1.3rem;text-align:center;background:#ddd;color:#181818;padding:0 .2rem}
#root[data-shell-chat] #toast-stack{left:.75rem;right:auto;bottom:calc(var(--shell-chat-bottom) + .75rem);width:min(22rem,calc(100vw - 1.5rem))}
@media(min-width:1200px){
 #root[data-shell-chat="expanded"] #shell-workspace{width:calc(100% - var(--shell-chat-width));flex:none}
 #root[data-shell-chat="expanded"] #shell-workspace #app-container>.hertz-player{position:fixed;bottom:0;left:0;right:0;width:100%;max-width:none;margin:0!important;z-index:40}
 #root[data-shell-chat="expanded"][data-hertz-player-active="true"] #shell-workspace{padding-bottom:var(--hertz-player-dock-height)}
}
@media(max-width:1199px){#shell-chat-host{top:auto;bottom:calc(var(--shell-chat-bottom) + .75rem);right:.75rem;width:min(360px,calc(100vw - 1.5rem));height:min(650px,calc(100dvh - 40px - var(--shell-chat-bottom) - 1.5rem));border:1px solid #555}#shell-chat-host[data-collapsed="true"]{height:auto}}
@media(max-width:700px){#root{--shell-chat-width:100%}#shell-chat-host{right:0;bottom:var(--shell-chat-bottom);width:100%;height:min(680px,calc(100dvh - 40px - var(--shell-chat-bottom)));border:0;border-top:1px solid #555}#shell-chat-host .shell-chat-input,#shell-chat-host .shell-chat-search{font-size:16px}.shell-chat-list{flex-basis:22%;max-height:25%;min-height:54px}.shell-chat-thread{flex-basis:75%}#root[data-shell-chat="expanded"] #toast-stack{top:44px;bottom:auto;max-height:20dvh}.shell-chat-heading{padding-top:.35rem;padding-bottom:.25rem}#shell-chat-host button{min-height:40px}}
@media(max-height:600px){.shell-chat-search-label{display:none}.shell-chat-list{max-height:20%;min-height:45px}.shell-chat-thread-heading{padding:.35rem .6rem}.shell-chat-heading{padding:.25rem .6rem}.shell-chat-typing{min-height:1rem}.shell-chat-compose{padding:.35rem .6rem}.shell-chat-thread{flex-basis:75%}}
#root #shell-workspace #app-container:has(>.shell-desktop-page){display:flex;flex-direction:column;min-height:calc(100dvh - var(--shell-chat-bottom));overflow-y:auto}
.shell-desktop-page{width:min(100%,76rem);align-self:center;flex:1;padding:clamp(1rem,3vw,2.5rem);padding-top:clamp(1rem,3vw,2.5rem);color:#ededed}
.shell-desktop-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:2rem}
.shell-desktop-heading h1{font-size:1.8rem;letter-spacing:-.04em;margin:0 0 .35rem}
.shell-desktop-heading p,.shell-desktop-note{color:#b3b3b3;line-height:1.6}
.shell-desktop-page h2{font-size:1rem;margin:0 0 .8rem}
.shell-desktop-apps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem}
#root #app-container .shell-desktop-app{display:flex;flex-direction:column;align-items:flex-start;text-align:left;min-width:0;min-height:145px;padding:1rem;gap:.6rem;border:1px solid #3c3c3c;background:#222!important;color:#ededed!important;box-shadow:none;border-radius:0;white-space:normal}
.shell-desktop-app img{object-fit:contain;filter:grayscale(1) brightness(0) invert(1)}
.shell-desktop-app span{width:100%;overflow-wrap:anywhere;font-size:.8rem;color:#b3b3b3;line-height:1.5}
.shell-desktop-note{margin-top:2rem;font-size:.85rem}
@media(max-width:800px){.shell-desktop-apps{grid-template-columns:repeat(2,minmax(0,1fr))}.shell-desktop-heading{align-items:flex-start;flex-direction:column}}

/* Open conversation identity: photo beside name and presence. */
.shell-chat-thread-heading{display:flex;align-items:center;gap:.65rem}
.shell-chat-thread-heading>div{min-width:0;flex:1;overflow-wrap:anywhere}
.shell-chat-thread-avatar{display:flex;flex:none}
.shell-chat-thread-avatar .shell-chat-avatar{width:36px;height:36px}

/* The collapsed chat launcher owns a clear lane beside footer navigation. */
#shell-chat-host .shell-chat-launcher-icon{display:block;width:20px;height:20px;flex:none;object-fit:contain;filter:brightness(0) invert(1)}
#root[data-shell-chat="collapsed"] #site-footer{padding-inline-end:calc(var(--shell-chat-launcher-width,170px) + 1.5rem)}
#root[data-shell-chat="collapsed"] #site-footer :is(.site-footer-brand,nav){min-width:0;max-width:100%;overflow-wrap:anywhere}
#root[data-shell-chat="collapsed"] #site-footer .site-footer-brand img{flex:none}
