:root{--shell-accent:#4a9eff;--shell-accent-dark:#1d3a57;--shell-accent-dark-ink:#f5f5f5;--shell-accent-mid:#254a70;--shell-accent-strong:#3a6fa8;--shell-accent-ink:#dcecff;--shell-surface:#161616;--shell-surface-ink:#f5f5f5;--shell-surface-glass:rgba(26,26,26,.88);--shell-home-logo-filter:none;--shell-background:#0f0f0f;--shell-ink:#f5f5f5;--shell-background-image:none;--shell-background-size:auto;--shell-background-repeat:repeat;--shell-background-position:top left;--shell-font:system-ui,-apple-system,sans-serif;--shell-radius:8px;--shell-space:.75rem;--shell-field:#111111;--shell-field-ink:#f5f5f5}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
*{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}
body{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);min-height:100vh}
.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{font-size:.82rem;opacity:.72}.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{min-height:100vh;display:flex;flex-direction:column}
#shell-search{position:fixed;top:1.5rem;left:50%;transform:translateX(-50%);z-index:1000;width:min(32rem,90vw);transition:width .2s ease}
#shell-search.minimized{width:auto}
#search-toggle,#shell-home-button,#shell-profile-button,#shell-profile-mode-button,#shell-profile-actions button,#shell-notif-button,#shell-dock button{width:2.5rem;height:2.5rem;border-radius:50%;border:1px solid var(--ui-border);background:var(--shell-surface-glass);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:var(--shell-surface-ink);font-size:1.1rem;cursor:pointer;transition:background .15s,box-shadow .15s,transform .15s;box-shadow:inset 0 1px var(--ui-edge-highlight),0 4px 24px rgba(0,0,0,.4);display:flex;align-items:center;justify-content:center}
#search-toggle{display:none;margin:0 auto}
#search-toggle::before{content:'🔍'}
#shell-home-button{position:fixed;top:1.5rem;left:1.5rem;z-index:1000;display:flex;overflow:hidden;padding:0}
#shell-home-button img{width:100%;height:100%;object-fit:cover;display:block;filter:var(--shell-home-logo-filter)}
#shell-profile-button{position:fixed;top:1.5rem;right:1.5rem;z-index:1000;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-profile-mode-button{position:fixed;top:4.75rem;right:1.5rem;z-index:1000;display:flex}
#shell-profile-actions{position:fixed;top:50%;right:1.5rem;z-index:1000;display:flex;flex-direction:column;gap:.65rem;transform:translateY(-50%)}
#shell-profile-actions button:disabled{opacity:.55;cursor:default}
#shell-notif-button{position:fixed;top:1.5rem;right:4.75rem;z-index:1000;display:flex}
#shell-notif-button::before{content:'🔔'}
#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)}
/* app dock: bare row of resident-app buttons, bottom-left, aligned with the
   home button's left rail. The container itself has no chrome — each entry
   is the same glass circle as the corner buttons above. */
#shell-dock{position:fixed;bottom:1.5rem;left:1.5rem;z-index:1000;display:flex;align-items:center;gap:.65rem;background:none;border:none;padding:0}
#shell-dock:empty{display:none}
#shell-dock button{position:relative}
#shell-dock button .initial{font-size:.95rem;font-weight:700}
#shell-dock button[data-state=active]{border-color:var(--shell-accent)}
#shell-dock button[data-state=active]::after{content:'';position:absolute;bottom:-.6rem;left:50%;transform:translateX(-50%);width:.28rem;height:.28rem;border-radius:50%;background:var(--shell-accent)}
#shell-dock button[data-state=suspended]{opacity:.55}
#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,#shell-dock button:hover{background:rgba(34,34,34,.82);color:#f5f5f5;box-shadow:inset 0 1px rgb(255 255 255/.2),0 4px 32px rgba(0,0,0,.6);transform:scale(1.08)}
#shell-home-button:hover img{filter:none}
#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,#shell-dock 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:color-mix(in srgb,var(--shell-field) 88%,transparent);-webkit-backdrop-filter:blur(8px) saturate(135%);backdrop-filter:blur(8px) saturate(135%);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 var(--ui-edge-highlight),0 4px 24px rgba(0,0,0,.4)}
#search-input:focus{border-color:color-mix(in srgb,var(--shell-accent) 62%,transparent);background:color-mix(in srgb,var(--shell-field) 88%,transparent);box-shadow:inset 0 1px var(--ui-edge-highlight),0 4px 32px rgba(0,0,0,.6),0 0 8px color-mix(in srgb,var(--shell-accent) 38%,transparent)}
#search-input::placeholder{color:color-mix(in srgb,var(--shell-field-ink) 58%,var(--shell-field));opacity:1}
#search-results{display:none;position:absolute;top:calc(100% + .5rem);left:0;right:0;background:var(--shell-surface-glass);-webkit-backdrop-filter:blur(8px) saturate(135%);backdrop-filter:blur(8px) saturate(135%);border:1px solid var(--ui-border);border-radius:var(--shell-radius);box-shadow:inset 0 1px var(--ui-edge-highlight),0 8px 32px 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;display:flex;flex-direction:column;padding:calc(4.5rem + var(--shell-space)) calc(var(--shell-space) + var(--shell-space)) calc(var(--shell-space) + var(--shell-space))}
.app-mount{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;font-family:var(--shell-font)}
/* the whole profile is a loose stack of independently floating panels
   over the (customizable) page background — the wrapper itself has no
   surface of its own, just layout. */
.profile-page{width:min(56rem,95%);display:flex;flex-direction:column;gap:1rem}
.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
   (customize-profile 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-username{opacity:.55;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{opacity:.45}
.profile-presence::before{content:'';display:inline-block;width:.5rem;height:.5rem;border-radius:50%;background:#666;margin-right:.4rem}
.profile-presence.online{opacity:.9;color:#7ee787}
.profile-presence.online::before{background:#3fb950;box-shadow:0 0 0 2px rgba(63,185,80,.18)}
.profile-activity,.profile-joined{opacity:.55}
.profile-activity::before,.profile-joined::before{content:'\00b7';margin-right:.5rem}
.profile-bio{font-size:1rem;padding:0 1.5rem;white-space:pre-wrap;overflow-wrap:anywhere}
.profile-hint{opacity:.45;font-size:.95rem;padding:1rem}
.profile-hint-inline{opacity:.45;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[role=button]{cursor:zoom-in;outline:none}
.widget-gallery-item[role=button]: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)}
.gallery-overlay{position:fixed;inset:0;z-index:3000;display:flex;align-items:center;justify-content:center;padding:1rem;background:rgba(0,0,0,.72)}
.gallery-window{width:min(72rem,96vw);height:min(50rem,92vh);display:flex;min-width:0;flex-direction:column;overflow:hidden;background:var(--ui-surface);color:var(--ui-ink)}
.gallery-titlebar{flex:0 0 auto;font:700 .78rem/1.2 var(--shell-font,Arial,Tahoma,sans-serif)}.gallery-title-left{display:flex;min-width:0;align-items:center;gap:.35rem}.gallery-title-left>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gallery-title-icon{position:relative}.gallery-title-icon::after{content:'▧';position:absolute;inset:-3px auto auto 1px;width:auto;height:auto;border:0;background:none;color:#ff0;font-size:13px;line-height:1;box-shadow:none}.gallery-window .gallery-titlebar-close{width:1.25rem;height:1.15rem;min-height:0;margin:0;padding:0;border-radius:0;font:700 12px/1 var(--shell-font,Arial,Tahoma,sans-serif)}
.gallery-image-body{flex:1;min-width:0;min-height:0;display:flex;align-items:center;justify-content:center;margin:2px;padding:.5rem;overflow:auto;background:var(--ui-field);box-shadow:inset 1px 1px var(--ui-dark),inset -1px -1px var(--ui-highlight),inset 2px 2px var(--ui-sunken)}.gallery-image-body img{display:block;max-width:100%;max-height:100%;object-fit:contain;border:0;border-radius:0;box-shadow:none}.gallery-statusbar{flex:0 0 auto;margin:0 2px 2px;padding:.2rem .45rem;overflow:hidden;border:1px solid var(--ui-dark);border-right-color:var(--ui-highlight);border-bottom-color:var(--ui-highlight);color:var(--ui-ink);font:12px var(--shell-font,Arial,Tahoma,sans-serif);text-overflow:ellipsis;white-space:nowrap}
@media(max-width:560px){.gallery-window{width:98vw;height:88vh}.gallery-overlay{padding:.35rem}}
.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{font-size:.8rem;opacity:.6;margin:.35rem 0 0}
.widget-error{opacity:.5;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{display:flex;flex-direction:column;gap:.35rem;margin-top:.5rem;font-size:.85rem;opacity:.85}
.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 (customize-profile 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{display:flex;flex-direction:column;gap:.2rem;opacity:.8}
.theme-editor select,.theme-editor input[type=color]{background:#1a1a1a;border:1px solid #444;border-radius:6px;color:#e0e0e0;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 .customize-profile-header::before{content:'Customize Profile'}
.profile-page .customize-title{display:none}
.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{margin:0 0 .85rem .85rem}
.profile-page .theme-editor label:last-child{margin-right:.85rem}
.theme-color-picker{width:3rem;min-height:1.65rem;overflow:hidden;border:1px solid #444 !important;border-radius:0 !important;padding:2px !important;margin:0 !important;box-shadow:inset 1px 1px rgba(255,255,255,.38),inset -1px -1px rgba(0,0,0,.62)}
.theme-color-picker-preview{display:block;width:100%;min-height:1.35rem;background-color:var(--theme-picker-color) !important;box-shadow:inset 0 0 0 1px rgb(0 0 0/.28)}
.theme-color-picker-accent,.theme-color-picker-widgets{display:block}
.theme-background-button,.theme-header-button{align-self:flex-end;margin:0 0 .85rem .1rem !important;padding:.3rem .65rem !important}
.theme-color-picker-overlay{position:fixed;inset:0;z-index:2850;display:flex;align-items:center;justify-content:center;padding:1rem;background:rgba(0,0,0,.65)}
.theme-color-picker-modal{width:min(22rem,92vw);display:flex;flex-direction:column;gap:.8rem;padding:1rem;border:1px solid #333;background:#161616;color:#e0e0e0;box-shadow:inset 1px 1px #3a3a3a,inset -1px -1px #050505,0 18px 70px rgba(0,0,0,.58);font-family:Arial,Tahoma,sans-serif}
.theme-color-picker-modal h2{margin:0;font-size:1rem}.theme-color-palette-heading{margin:.15rem 0 -.35rem;font-size:.72rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.72}.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}.theme-color-picker-actions{display:flex;justify-content:flex-end;gap:.5rem}.theme-color-picker-actions button{border-radius:0 !important;font-size:.82rem !important;padding:.35rem .7rem !important;margin:0 !important}
.customize-title{font-size:1.25rem;margin:.75rem 0 0}
.customize-link{font-size:.85rem !important;padding:.4rem .9rem !important;margin:.75rem 1.5rem 0 !important}
.images-page{width:min(68rem,96%);height:min(46rem,84vh);display:flex;flex-direction:column;gap:0;overflow:hidden}
.images-titlebar{flex:0 0 auto}.images-titlebar h1{min-width:0;overflow:hidden;margin:0;font-size:.78rem;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}
.images-titlebar-icon{position:relative;background:var(--ui-surface)}.images-titlebar-icon::before{content:"";position:absolute;inset:2px 2px 4px;background:linear-gradient(135deg,var(--ui-accent-mid) 0 48%,var(--ui-accent-dark) 49%)}.images-titlebar-icon::after{content:"";position:absolute;left:2px;right:2px;bottom:2px;height:3px;background:var(--ui-raised);border-top:1px solid var(--ui-highlight)}
.images-window-body{flex:1;min-height:0;display:flex;flex-direction:column;gap:0!important;padding:2px!important;overflow:hidden;background:var(--ui-raised);color:var(--ui-ink)}
.images-addressbar{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:.45rem;padding:.3rem .45rem;border-bottom:1px solid var(--ui-dark);font-size:.76rem}.images-address{min-width:0;padding:.25rem .45rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;background:var(--ui-field);color:var(--ui-field-ink);box-shadow:inset 1px 1px var(--ui-dark),inset -1px -1px var(--ui-highlight)}
.images-workspace{flex:1;min-height:0;margin:2px;overflow:auto;background:var(--ui-field);color:var(--ui-field-ink);box-shadow:inset 1px 1px var(--ui-dark),inset -1px -1px var(--ui-highlight),inset 2px 2px var(--ui-sunken);container-type:inline-size}
.images-hint{margin:0;padding:1rem;color:color-mix(in srgb,var(--ui-field-ink) 62%,var(--ui-field));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:0!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:color-mix(in srgb,var(--ui-field-ink) 62%,var(--ui-field));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;margin-top:1px;padding:.22rem .5rem;border:1px solid var(--ui-dark);border-right-color:var(--ui-highlight);border-bottom-color:var(--ui-highlight);font-size:.72rem;color:var(--ui-ink)}
@media (max-width:560px){.images-page{width:98%;height:86vh}.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{width:min(98%,calc(90dvh * 16 / 9));aspect-ratio:16/9;display:flex;flex-direction:column;color:var(--ui-ink)}
.hertz-window{width:100%;height:100%;min-height:0;display:flex;flex-direction:column;background:var(--ui-surface);color:var(--ui-ink)}
.hertz-titlebar{flex:0 0 auto;font:700 .78rem/1.2 var(--shell-font,Arial,Tahoma,sans-serif)}
.hertz-titlebar-left{display:flex;align-items:center;gap:.35rem;min-width:0}
#app-container .hertz-titlebar-back{min-height:1.2rem;margin:0!important;padding:.1rem .45rem!important;font-size:.7rem!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-window-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-object-file-command,.hertz-object-menu{position:relative;display:flex;align-items:center}
.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;padding:.35rem .65rem 0;background:linear-gradient(180deg,rgb(255 255 255/.12),transparent),color-mix(in srgb,var(--shell-surface) 82%,transparent);box-shadow:inset 0 1px rgb(255 255 255/.2),0 4px 14px rgb(0 0 0/.15);-webkit-backdrop-filter:blur(12px) saturate(145%);backdrop-filter:blur(12px) saturate(145%)}
.hertz-tabs{display:flex;align-items:flex-end;gap:0;padding:0 .15rem;position:relative;z-index:2}
#app-container button.hertz-tab{position:relative;top:2px;min-width:8rem;margin:0;padding:.35rem .85rem;border:0;border-radius:0!important;background:var(--ui-raised);color:var(--ui-ink);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}
#app-container button.hertz-tab[aria-selected=true]{top:0;padding:.4rem 1rem .55rem;font-weight:700;background:var(--ui-surface);z-index:2}
#app-container button.hertz-tab:focus-visible{outline:1px dotted var(--ui-ink);outline-offset:-5px}
.hertz-board-body{padding-top:0}.hertz-board-panel{display:flex;flex-direction:column;min-height:16rem;margin-top:0;padding:0;border:0;background:var(--ui-surface);color:var(--ui-ink);box-shadow:inset -1px -1px var(--ui-highlight),inset 1px 1px var(--ui-dark),inset -2px -2px var(--ui-light),inset 2px 2px var(--ui-sunken)}
.hertz-board-toolbar{justify-content:space-between;margin-bottom:.5rem}
.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:inset 1px 1px var(--ui-light),inset -1px -1px var(--ui-dark);cursor:pointer;transition:none}
#app-container .hertz-btn:hover{background:var(--ui-hover);color:var(--ui-ink)}
#app-container .hertz-btn:active{box-shadow:inset 1px 1px var(--ui-dark),inset -1px -1px var(--ui-light)}
#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:inset 1px 1px var(--ui-dark),inset -1px -1px var(--ui-light)}
.hertz-public-table{width:100%;min-width:58rem;border-collapse:collapse;text-align:left;font-size:.86rem;table-layout:fixed}
.hertz-public-table th{padding:.6rem .75rem;border:1px solid var(--ui-border);background:var(--ui-raised);color:var(--ui-muted-ink);box-shadow:inset 1px 1px var(--ui-light);font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;white-space:nowrap}
.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 th:nth-child(1),.hertz-public-board-table td:nth-child(1){width:4.5rem;text-align:center}
.hertz-public-board-table th:nth-child(2),.hertz-public-board-table td:nth-child(2){width:auto}
.hertz-public-board-table th:nth-child(3),.hertz-public-board-table td:nth-child(3),.hertz-public-board-table th:nth-child(4),.hertz-public-board-table td:nth-child(4){width:5.5rem;text-align:right}
.hertz-public-table .hertz-object-cell,.hertz-library-table td:nth-child(1),.hertz-public-board-table td:nth-child(2){min-width:0}
.hertz-public-table .hertz-object-cell strong,.hertz-library-table td:nth-child(1) strong,.hertz-public-board-table td:nth-child(2) 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-board-table td:nth-child(2) 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-board-table td:nth-child(2) small,.hertz-public-table td:nth-child(1) small,.hertz-public-table td:nth-child(2) small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;opacity:.58;margin-top:.18rem;line-height:1.25}
#app-container .hertz-public-track-preview{position:relative;width:3rem;height:3rem;display:grid;place-items:center;margin:0;padding:0;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-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-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-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),.hertz-public-board-table td:nth-child(3),.hertz-public-board-table td:nth-child(4){color:var(--ui-muted-ink);overflow:hidden;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-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{font-size:.85rem;opacity:.65;margin:0}
.hertz-card-meta{display:flex;gap:.75rem;font-size:.78rem;opacity:.6}
.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:radial-gradient(circle at 50% 35%,rgba(72,132,181,.18),rgba(0,0,0,.62) 58%,rgba(0,0,0,.76));-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.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;opacity:.62}.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{opacity:.86}.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{display:flex;align-items:center;gap:.5rem;font-size:.85rem;opacity:.85}
.hertz-composer-actions{display:flex;gap:.5rem}
.hertz-infinite-status{align-self:center;margin:.35rem 0;padding:.45rem .8rem;border-radius:999px;background:color-mix(in srgb,var(--shell-surface) 78%,transparent);box-shadow:inset 0 1px rgb(255 255 255/.16);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);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{display:flex;align-items:center;gap:.5rem;font-size:.85rem;opacity:.8}
.hertz-object-tabs{display:flex;align-items:flex-end;border-bottom:1px solid var(--ui-border);padding:.2rem .35rem 0;overflow-x:auto}
#app-container button.hertz-object-tab{margin:0 -1px -1px 0;padding:.45rem 1rem;border:1px solid var(--ui-border);border-radius:5px 5px 0 0!important;background:var(--ui-raised);color:var(--ui-muted-ink);box-shadow:inset 1px 1px var(--ui-light);font-size:.82rem}
#app-container button.hertz-object-tab[aria-selected=true]{position:relative;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-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{display:flex;flex-direction:column;gap:.5rem}
.hertz-track-row{display:flex;align-items:center;gap:.65rem;border:1px solid var(--ui-border);border-radius:0;background:var(--ui-raised);color:var(--ui-ink);box-shadow:inset 1px 1px var(--ui-light);padding:.6rem .75rem;flex-wrap:wrap}
.hertz-track-logo{width:2.25rem;height:2.25rem;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:.8rem;font-weight:700;color:#fff;background:#1a1d24;flex-shrink:0}
.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{font-size:.75rem;opacity:.55}
.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-window>.hertz-player{position:sticky;bottom:0;z-index:4;flex:0 0 auto;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;background:linear-gradient(180deg,rgb(255 255 255/.16),transparent 45%,rgb(0 0 0/.1)),color-mix(in srgb,var(--shell-surface) 72%,transparent);color:var(--shell-surface-ink);box-shadow:inset 0 1px rgb(255 255 255/.3),inset 0 -1px rgb(0 0 0/.28),0 -8px 30px rgb(0 0 0/.22);-webkit-backdrop-filter:blur(18px) saturate(155%);backdrop-filter:blur(18px) saturate(155%)}
.hertz-window>.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}#app-container .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}.hertz-player-copy{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:.08rem}#app-container .hertz-player-title,#app-container .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}#app-container .hertz-player-title{color:var(--shell-surface-ink)!important;font-size:.78rem;font-weight:700}#app-container .hertz-player-uploader{color:color-mix(in srgb,var(--shell-surface-ink) 58%,transparent)!important;font-size:.66rem}#app-container :is(.hertz-player-title,.hertz-player-uploader):hover:not(:disabled){text-decoration:underline}#app-container :is(.hertz-player-preview,.hertz-player-title,.hertz-player-uploader):focus-visible{outline:2px solid var(--shell-accent);outline-offset:2px}#app-container :is(.hertz-player-preview,.hertz-player-title,.hertz-player-uploader):disabled{cursor:default}
.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}
#app-container .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}#app-container .hertz-player-button:hover:not(:disabled){filter:brightness(1.15);transform:translateY(-1px)}#app-container .hertz-player-button:active:not(:disabled){transform:translateY(0);box-shadow:inset 0 1px rgb(0 0 0/.24)!important}#app-container .hertz-player-button:focus-visible{outline:2px solid var(--shell-accent);outline-offset:2px}#app-container .hertz-player-button:disabled{opacity:.38;cursor:default}.hertz-player-toggle{font-size:1rem!important}.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){.hertz-page{width:100%;height:90dvh;aspect-ratio:auto}.hertz-window{height:100%}.hertz-window>.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:0;flex:1}.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}}
/* 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:'Create account'}
.signup-card h2,.login-card h2{display:none}
.signup-card label,.login-card label{display:flex;flex-direction:column;gap:.25rem;font-size:.85rem;opacity:.85;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{font-size:.85rem;opacity:.6;min-height:1.2em;margin:0 .85rem}
.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))}
.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)}
.toast{border:1px solid #333;border-left:4px solid var(--shell-accent);border-radius:var(--shell-radius);background:var(--shell-surface-glass);color:var(--shell-surface-ink);box-shadow:0 10px 34px rgba(0,0,0,.45);padding:.8rem .9rem;display:grid;grid-template-columns: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{grid-column:1/-1;font-size:.84rem;opacity:.72;margin:0}
.toast small{font-size:.72rem;opacity:.45}
.toast button{border:0;background:transparent;color:inherit;opacity:.7;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}
.notifications-page{--notifications-surface:var(--ui-surface);--notifications-ink:var(--ui-ink);--notifications-muted:var(--ui-muted-ink);width:min(48rem,96%);height:min(42rem,82vh);display:flex;flex-direction:column;overflow:hidden}
.notifications-titlebar{flex:0 0 auto;justify-content:flex-start}.notifications-titlebar h1{overflow:hidden;margin:0;font-size:.78rem;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}
.notifications-window-body{flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden;background:var(--notifications-surface);color:var(--notifications-ink)}
.notifications-toolbar{justify-content:flex-end}
.notifications-list{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:var(--shell-space);padding:var(--shell-space)}
.notifications-hint{padding:1rem;margin:0;color:var(--notifications-muted);font-size:.9rem}
.friends-page{width:min(52rem,96%);max-height:min(44rem,84vh);display:flex;flex-direction:column;overflow:hidden}
.friends-titlebar{flex:0 0 auto}.friends-titlebar h1{flex:1;min-width:0;overflow:hidden;margin:0;font-size:.78rem;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}
.friends-titlebar .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}}
.notification-row{padding:.9rem;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.4rem .75rem;border-radius:min(var(--shell-radius),8px);background:var(--ui-raised);color:var(--notifications-ink)}
.notification-row[data-unread=true]{border-left:4px solid var(--ui-accent);box-shadow:inset 1px 1px var(--ui-light),inset -1px -1px var(--ui-dark)}
.notification-row strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.notification-row p{grid-column:1/-1;color:var(--notifications-muted);font-size:.9rem}
.notification-row small{color:var(--notifications-muted);font-size:.75rem}
.notification-actor{grid-column:1/-1;display:flex!important;align-items:center;gap:.55rem;width:max-content!important;max-width:100%;border:0!important;background:transparent!important;color:inherit!important;padding:0!important;margin:.2rem 0 0!important;font-size:.9rem!important;box-shadow:none!important}
.notification-actor:hover span:last-child{text-decoration:underline}
.notification-actor-avatar{width:2rem;height:2rem;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:.8rem;font-weight:700;overflow:hidden;flex-shrink:0}
.notification-actor-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.notification-actions{display:flex;justify-content:flex-end;gap:.4rem;flex-wrap:wrap}
.notification-actions button,.notifications-toolbar button{font-size:.8rem !important;padding:.3rem .7rem !important;margin:0 !important}
@media (max-width:560px){.notifications-page{width:98%;height:84vh}.notification-row{grid-template-columns:1fr}.notification-row small{text-align:left}.notification-actions{grid-column:1/-1;justify-content:flex-start}}
.homepage-page{width:min(72rem,95%);margin:0 auto}
.homepage-layout{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:1rem;align-items:start}
.homepage-left{min-height:1px}
.homepage-widgets{display:flex;flex-direction:column;gap:1rem}
/* homepage widgets: Windows-98-style dark chrome (same bevel/gradient
   recipe as the notepad app's window), each widget a little titlebar'd
   window instead of a borderless floating tile. */
.homepage-widgets .widget{margin:0;padding:0;display:flex;flex-direction:column;align-items:stretch;gap:0;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}
.homepage-widgets .widget-titlebar{flex:0 0 auto;min-height:1.65rem;display:flex;align-items:center;gap:.5rem;margin:2px 2px 0;padding:0 .3rem 0 .35rem;border-radius:min(var(--shell-radius),5px) min(var(--shell-radius),5px) 0 0;background:linear-gradient(90deg,var(--shell-accent-dark) 0%,var(--shell-accent-mid) 100%);color:var(--shell-accent-ink)}
.homepage-widgets .widget-titlebar-left{display:flex;align-items:center;gap:.35rem;min-width:0}
.homepage-widgets .widget-titlebar-icon{width:14px;height:14px;box-sizing:border-box;background:#202020;border:1px solid #0f0f0f;box-shadow:inset 1px 1px #4a4a4a,inset -2px -2px #111;position:relative;flex:0 0 auto}
.homepage-widgets .widget-titlebar-icon::after{content:'';position:absolute;left:3px;right:2px;top:4px;height:1px;background:#8a8a8a;box-shadow:0 3px #8a8a8a,0 6px #8a8a8a}
.homepage-widgets .widget-titlebar .widget-heading{font-size:.78rem;font-weight:700;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:inherit;margin:0}
.homepage-widgets .widget-body{flex:1;min-width:0;padding:.85rem .9rem;display:flex;flex-direction:column;gap:.6rem}
.homepage-widgets .widget-cal-month{font-size:.85rem;font-weight:700;flex:1;text-align:center;color:inherit;margin:0}
.homepage-widgets .widget-controls{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:.4rem}
.homepage-widgets .widget-controls button{min-width:1.7rem;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;font:700 12px Arial,sans-serif !important;padding:.15rem .4rem !important;margin:0 !important;cursor:pointer}
.homepage-widgets .widget-controls button:hover{background:#2a2a2a !important}
.homepage-widgets .widget-controls button:active{box-shadow:inset 1px 1px #050505,inset -1px -1px #444}
.homepage-widgets table{width:100%;border-collapse:collapse;font-size:.8rem}
.homepage-widgets th{padding:.25rem 0;color:var(--shell-surface-ink);opacity:.65;font-weight:700;text-transform:uppercase;font-size:.62rem;letter-spacing:.03em;border-bottom:1px solid #2a2a2a}
.homepage-widgets td{padding:.1rem;text-align:center}
.homepage-widgets td a{display:block;padding:.2rem;color:var(--shell-surface-ink);text-decoration:none;border:1px solid transparent}
.homepage-widgets td a:hover{background:var(--shell-accent-mid);color:var(--shell-accent-ink)}
.homepage-widgets td a[aria-current=date]{background:var(--shell-accent-dark);border-color:var(--shell-accent-strong);color:var(--shell-accent-ink);font-weight:700}
.homepage-widgets .widget-cal-dots{display:flex;gap:2px;justify-content:center;align-items:center;min-height:5px;margin-top:1px}
.homepage-widgets .widget-cal-dot{width:5px;height:5px;border-radius:50%;background:#8faed6}
.homepage-widgets .widget-cal-dot[data-type=meeting]{background:#a97bd6}
.homepage-widgets .widget-cal-dot[data-type=reminder]{background:#d6a97b}
.homepage-widgets .widget-cal-dot[data-type=personal]{background:#7bd6a9}
.homepage-widgets .widget-cal-dot[data-type=holiday]{background:#d6c27b}
.homepage-widgets .widget-cal-dot-more{width:0;height:0;border-left:3px solid transparent;border-right:3px solid transparent;border-bottom:5px solid #8a8a8a}
.homepage-widgets .widget-cal-today{display:flex;flex-direction:column;gap:.3rem;border-top:1px solid #2a2a2a;padding-top:.5rem}
.homepage-widgets .widget-cal-today-item{display:flex;justify-content:space-between;gap:.5rem;font-size:.78rem;color:inherit}
.homepage-widgets .widget-cal-today-item span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.homepage-widgets .widget-cal-today-time{flex-shrink:0;color:inherit;opacity:.65}
.homepage-widgets .widget-cal-today-more{color:inherit;font-size:.78rem;text-decoration:underline}
.homepage-widgets .widget-cal-today-more:hover{text-decoration:underline}
.homepage-widgets .widget-body>a{align-self:flex-start;color:inherit;font-size:.82rem;text-decoration:underline}
.homepage-widgets .widget-body>a:hover{text-decoration:underline}
.homepage-widgets .widget-friends-avatar{border-radius:100%}
.homepage-widgets .widget-friends-item{border-radius:0;color:var(--shell-surface-ink)!important}
.homepage-widgets .widget-friends-item:focus-visible{box-shadow:0 0 0 2px var(--shell-accent)}
/* Feed cards sit inside the Community Feed widget, so they should expose
   the owner's chosen widget color instead of adding a fixed gray layer. */
.homepage-left .posts-card{background:transparent;border-color:color-mix(in srgb,var(--shell-surface-ink) 24%,transparent)}
.homepage-left .posts-avatar{border-radius:100%}
.homepage-left .posts-avatar,.homepage-left .posts-footer-btn{background:transparent !important;color:inherit !important}
.homepage-left .posts-footer-btn{border-color:color-mix(in srgb,var(--shell-surface-ink) 32%,transparent)}
.posts-feed-more{align-self:center;margin:.2rem 0 0 !important}
@media (max-width:760px){.homepage-layout{grid-template-columns:1fr}}
.homepage-stat{font-size:1.6rem;font-weight:700;margin:0}
.messages-page{--messages-surface:var(--ui-surface);--messages-ink:var(--ui-ink);--messages-muted:var(--ui-muted-ink);width:min(56rem,96%);height:min(38rem,80vh);display:flex;flex-direction:column;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-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(--messages-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]{opacity:.68}
.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-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-direction:column;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;overflow-y:auto;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(--messages-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-page{width:98%;height:82vh}.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%}}
/* Posts is a self-contained Windows-98 window.  Its surface and all
   readable text deliberately come from the active profile theme: this
   keeps posts legible when the owner selects either a pale or dark widget
   background. */
.posts-page{width:min(44rem,96%);max-height:82vh;display:flex;flex-direction:column;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:Arial,Tahoma,sans-serif;overflow:hidden}
.posts-page::before{content:'Posts';flex:0 0 auto;min-height:1.65rem;display:flex;align-items:center;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-size:.78rem;font-weight:700;line-height:1.2}
.posts-main{flex:1;overflow-y:auto;margin:0 2px;padding:.85rem;display:flex;flex-direction:column;gap:.75rem;min-height:0;background:var(--shell-surface);color:inherit;box-shadow:inset 1px 1px #050505,inset -1px -1px #2a2a2a}
.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{margin:.4rem 0 0;font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:inherit;opacity:.65}
.posts-hint{opacity:.5;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{margin-left:auto;font-size:.75rem;opacity:.45;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(7rem,1fr));gap:.35rem}
.posts-card-compact .posts-card-media img{max-height:14rem;border:0;border-radius:6px}
.posts-card-compact .posts-card-footer{font-size:.72rem;opacity:.7}
.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-compact .posts-reaction-btn[data-reacted=true]{background:var(--profile-accent,var(--shell-accent))!important;color:var(--shell-accent-ink)!important}
.posts-card-head{display:flex;align-items:center;gap:.55rem}
.posts-card-head small,.posts-card-head .posts-permalink{font-size:.74rem;opacity:.5;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-media{display:grid;grid-template-columns:repeat(auto-fit,minmax(10rem,1fr));gap:.4rem}
.posts-card-media img{display:block;width:100%;height:auto;max-height:20rem;object-fit:contain;border-radius:0;border:1px solid #050505}
.posts-card-footer{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap}
.posts-page 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){filter:brightness(1.08)}
.posts-page 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]{background:var(--shell-accent-dark) !important;border-color:var(--shell-accent);color:var(--shell-accent-dark-ink) !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,.theme-color-picker-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:system-ui,-apple-system,sans-serif !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}

/* Near-borderless Aero shell: a faint hairline defines each translucent
   surface while highlights, blur, and shadow carry the visual separation. */
:is(
  .background-editor-modal,.header-editor-modal,.theme-color-picker-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}
.homepage-widgets .widget{border-color:var(--ui-border) !important;border-radius:min(var(--shell-radius),28px) !important;background:color-mix(in srgb,var(--shell-surface) 78%,transparent) !important;box-shadow:inset 0 1px var(--ui-edge-highlight),inset 0 -1px var(--ui-edge-shadow),4px 5px 18px rgba(0,0,0,.4) !important;-webkit-backdrop-filter:blur(14px) saturate(145%);backdrop-filter:blur(14px) saturate(145%)}
.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:color-mix(in srgb,var(--profile-surface,var(--shell-surface)) 78%,transparent) !important;box-shadow:inset 0 1px var(--ui-edge-highlight),inset 0 -1px var(--ui-edge-shadow),4px 5px 18px rgba(0,0,0,.4) !important;-webkit-backdrop-filter:blur(14px) saturate(145%);backdrop-filter:blur(14px) saturate(145%)}
.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,.homepage-widgets .widget-titlebar{
  margin:0 !important;border-radius:min(var(--shell-radius),7px) min(var(--shell-radius),7px) 0 0 !important;
  background:linear-gradient(180deg,rgb(255 255 255/.24),transparent 48%,rgb(0 0 0/.09) 100%),linear-gradient(90deg,color-mix(in srgb,var(--profile-titlebar-start,var(--shell-accent-dark)) 54%,transparent),color-mix(in srgb,var(--profile-titlebar-end,var(--shell-accent-mid)) 46%,transparent)) !important;
  box-shadow:inset 0 1px rgb(255 255 255/.28),inset 0 -1px var(--ui-border);-webkit-backdrop-filter:blur(16px) saturate(155%);backdrop-filter:blur(16px) saturate(155%)
}
.profile-page :is(.profile-header,.profile-editor-bar,.theme-editor,.widget-embed)[data-contextual-icon]::before,
:is(.login-card,.signup-card,.posts-page)[data-contextual-icon]::before{
  content:attr(data-context-icon) ' ' 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:color-mix(in srgb,var(--shell-field-ink) 58%,var(--shell-field)) !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}
@keyframes toast-in{from{opacity:0;transform:translateY(.4rem)}to{opacity:1;transform:translateY(0)}}

