/* Existing Smile theme and wallpaper remain configurable; readable glass surfaces. */
:root{--smile-ink:#f2f5fb;--smile-muted:#d0d9e8;--smile-accent:#bed6f9;--smile-accent-ink:#14212a;--smile-header-height:110px;--smile-surface:rgba(var(--glass-rgb,20,28,38),max(.84,var(--glass-alpha,.84)));--smile-line:#ffffff}
html{scroll-padding-top:calc(var(--smile-header-height) + 1rem);scroll-padding-bottom:6rem}
body{color:var(--smile-ink);line-height:1.55}body::before{filter:brightness(.68);}
*,*::before,*::after{box-sizing:border-box}
.smile-skip{position:fixed;left:1rem;top:-8rem;z-index:1000;padding:.75rem 1rem;background:#172132;color:#fff;border:2px solid #fff;border-radius:10px}.smile-skip:focus{top:.5rem}
html body header.topbar{position:sticky!important;top:0!important;margin:0!important;inset:auto!important;min-height:76px;height:auto!important;border-radius:0!important;width:100%!important;max-width:none!important;display:grid!important;grid-template-columns:auto minmax(240px,1fr) minmax(180px,320px) auto!important;align-items:center;gap:.75rem;padding:.6rem clamp(.75rem,2vw,2rem)!important;background:var(--smile-surface)!important;border:0!important;border-bottom:1px solid var(--smile-line)!important;backdrop-filter:blur(var(--glass-blur,12px))!important;z-index:70;box-shadow:0 4px 20px #0002!important}
header.topbar .brand-home{display:flex!important;align-items:center;gap:.6rem!important;color:var(--smile-ink)!important;font-size:1.1rem!important;white-space:nowrap}.topbar .cat-mark{width:38px!important;height:38px!important;flex:none}.topbar .brand-home>span:last-child{display:block!important}
.primary-navigation{display:flex!important;gap:.35rem;align-items:center;justify-content:center;min-width:0}.primary-navigation .topnav{min-height:44px!important;padding:.6rem .9rem!important;font-size:.9rem!important;border-radius:12px!important;white-space:normal;line-height:1.3;display:block!important}
.profile-wrap{min-width:0;position:relative!important}.profile-button{min-height:44px!important;max-width:200px;display:flex;align-items:center;gap:.4rem;padding:.4rem .6rem!important}.profile-name{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-menu{right:0!important;left:auto!important;max-width:min(300px,calc(100vw - 24px));width:max-content!important;z-index:90!important;background:var(--smile-surface)!important}.profile-menu button{text-align:left;white-space:normal;min-height:44px!important}
html body .shell{width:100%;max-width:1480px!important;margin:0 auto!important;padding:0!important;min-width:0}.shell.archive-active{grid-template-columns:220px minmax(0,1fr)!important}html body #work,html body.home-screen #work{min-width:0;padding:clamp(1rem,2.3vw,2rem)!important;scroll-margin-top:calc(var(--smile-header-height) + 1rem)}
h1,.home-hero h1{font-size:clamp(1.75rem,2.6vw,2.5rem)!important;line-height:1.18!important;letter-spacing:-.025em;font-weight:750!important;margin:0!important}h2{font-size:1.15rem;line-height:1.35}h3{font-size:1rem}p{margin:.55rem 0}.heading{gap:1rem;align-items:flex-start!important;margin-bottom:1.4rem!important}.section-description{color:var(--smile-muted);max-width:65ch;font-size:.94rem}.home-hero,.home-screen .home-hero{padding-top:0!important;margin-bottom:1.25rem!important}.home-badges{margin-top:.75rem;gap:.5rem}.home-quick-actions{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:1rem}
.card,.home-card,.home-panel,.notice,.advice-box,.quick-assistant,dialog{color:var(--smile-ink)!important;background:var(--smile-surface)!important;border:1px solid var(--smile-line)!important;border-radius:16px!important;box-shadow:0 8px 24px #0002!important;backdrop-filter:blur(var(--glass-blur,12px))!important;min-width:0;max-width:100%}
.card,.home-panel{padding:clamp(1rem,1.6vw,1.5rem)!important}.home-card{padding:1rem!important;gap:.75rem!important}.cards{gap:1rem}.home-stat-grid,.home-bottom-grid,.settingsgrid{gap:1rem}.home-card-copy strong{font-size:clamp(1.3rem,2vw,1.8rem)!important;white-space:normal!important}.home-card-copy small,.home-card-note,.home-panel h2,.home-progress-block>small,.home-activity-footer,.home-activity-row time,.home-checks{font-size:.85rem!important;color:var(--smile-muted)!important}.home-panel h2{font-size:1rem!important;color:var(--smile-ink)!important}.home-server-metrics{margin-left:0!important;flex-wrap:wrap!important}.home-server-metrics>span{font-size:.75rem!important}.home-activity-row{min-height:44px!important;font-size:.9rem!important}.home-activity-row>span:nth-child(2){white-space:normal!important;overflow-wrap:anywhere}
small,.muted,.preview,.personmeta{color:var(--smile-muted)!important}a{color:var(--smile-accent)}.card p,.message .body,blockquote,pre,.assistant-message,.home-panel,.home-card-copy{overflow-wrap:anywhere;word-break:normal}pre{white-space:pre-wrap}button,input,select,textarea{font:inherit;max-width:100%;min-width:0}button,input,select,summary{min-height:44px}button,summary{touch-action:manipulation}button{color:var(--smile-ink)!important;background:var(--smile-surface)!important;border-color:var(--smile-line)!important;line-height:1.35;white-space:normal}button[disabled]{opacity:.7;cursor:not-allowed}
input,select,textarea{color:var(--smile-ink)!important;background:rgba(var(--glass-rgb,20,28,38),.96)!important;border:1px solid var(--smile-line)!important;border-radius:10px!important}input::placeholder,textarea::placeholder{color:var(--smile-muted);opacity:1}input[type=checkbox],input[type=radio]{min-height:24px;min-width:24px;width:24px;height:24px}label{line-height:1.45}fieldset{min-width:0;max-width:100%}.toolbar,.actions,.pager,.setting>label{flex-wrap:wrap;gap:.6rem}.toolbar input{flex:1 1 180px;min-width:0}.pager>span{overflow-wrap:anywhere}.people-filters,.memory-tools-row{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr))!important;gap:.8rem}.people-filters label{display:grid;gap:.3rem}.person{align-items:flex-start;gap:.75rem!important}.person>div{flex:1;min-width:0}.person .badge{white-space:normal;max-width:40%}.preview{white-space:normal!important}.settingsgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.color-main,.rgb-fields,.color-panel{max-width:100%;min-width:0}.rgb-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
button[aria-current=page],.primary-navigation .active,.mobile-nav [aria-current=page],.navbtn[aria-current=page]{background:var(--accent)!important;color:var(--smile-accent-ink)!important;border-color:var(--smile-accent)!important;box-shadow:inset 0 -3px var(--smile-accent-ink)!important;font-weight:700}.primary-navigation .active{opacity:1!important}button[aria-current=page] svg{color:inherit!important}
:focus-visible{outline:3px solid var(--smile-accent)!important;outline-offset:4px!important;scroll-margin-top:calc(var(--smile-header-height) + 16px);scroll-margin-bottom:100px}#sidebar{top:var(--smile-header-height)!important;max-height:calc(100dvh - var(--smile-header-height));padding:1rem!important;color:var(--smile-ink);background:var(--smile-surface)!important}.navbtn{width:100%;text-align:left}.archive-tools{margin-top:.6rem;border-top:1px solid var(--smile-line);padding-top:.6rem}.archive-tools summary{cursor:pointer;padding:.5rem;font-weight:600}.archive-tools .navbtn{margin-top:.35rem}.smile-operational-tools{width:100%;grid-column:1/-1;background:var(--smile-surface);border:1px solid var(--smile-line);border-radius:16px;padding:1rem}.smile-operational-tools>summary{font-weight:650;cursor:pointer}.smile-operation-list{display:grid;gap:1rem;margin-top:1rem}
.smile-state{padding:clamp(1.4rem,4vw,2.5rem);text-align:left;max-width:720px;margin:1rem auto}.smile-state h2{margin:0 0 .5rem}.smile-state p{max-width:58ch;color:var(--smile-muted)}.smile-state .actions{margin-top:1rem}.smile-state[data-kind=loading]{border-style:dashed!important}.smile-status-line{font-size:.9rem;color:var(--smile-muted)}.smile-state:focus{outline-offset:4px}
#musicSlot{width:100%;min-width:0;max-width:320px;position:relative}html body #musicSlot>#musicDock.collapsed{position:relative!important;left:auto!important;top:auto!important;margin:0!important;width:100%!important;min-width:0!important;max-width:none!important;height:52px!important;display:grid!important;grid-template-columns:32px minmax(0,1fr) 44px!important;padding:.25rem .5rem!important;gap:.4rem!important;background:var(--smile-surface)!important;border-color:var(--smile-line)!important}#musicSlot>#musicDock.collapsed .music-info{min-width:0;display:contents!important}#musicSlot>#musicDock.collapsed .music-art{width:32px!important;height:32px!important;font-size:1rem}#musicSlot>#musicDock.collapsed .music-track{min-width:0!important;max-width:none!important}#musicSlot>#musicDock.collapsed .music-track strong{font-size:.8rem!important}#musicSlot>#musicDock.collapsed .music-body{display:block!important;width:auto!important;min-width:0!important}#musicSlot>#musicDock.collapsed .music-controls{width:44px!important;min-width:0!important;margin:0!important;padding:0!important}#musicSlot>#musicDock.collapsed .music-controls button:not(#musicPlay),#musicSlot>#musicDock.collapsed .music-volume{display:none!important}#musicSlot>#musicDock.collapsed #musicPlay{width:44px!important;height:44px!important;min-height:44px!important;position:relative!important;right:auto!important;top:auto!important;transform:none!important;background:var(--accent)!important;color:var(--smile-accent-ink)!important}html body #musicSlot>#musicDock:not(.collapsed){left:0!important;right:auto!important;top:calc(100% + .5rem)!important;width:min(430px,calc(100vw - 24px))!important;max-height:calc(100dvh - var(--smile-header-height) - 100px);overflow:auto;background:rgba(var(--glass-rgb),.98)!important;z-index:95!important}
#toast{max-width:calc(100vw - 24px);bottom:calc(var(--mobile-bottom-space,0px) + 1rem);color:var(--smile-ink)!important;background:rgba(var(--glass-rgb),.98)!important;z-index:110}dialog{max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto}dialog::backdrop{background:#030b16b8}dialog form{max-width:100%}table{max-width:100%}.growth-table-wrap{overflow:auto;max-width:100%}#smileTelegramClient{max-width:100vw;top:var(--telegram-host-top,var(--smile-header-height))!important;bottom:var(--mobile-bottom-space,0px)!important}
@media(max-width:1100px){html body header.topbar{grid-template-columns:auto minmax(0,1fr) auto!important}header.topbar .primary-navigation{grid-column:2;grid-row:1}header.topbar .profile-wrap{grid-column:3;grid-row:1}#musicSlot{grid-column:1/-1;max-width:none;grid-row:2}.profile-name{display:none!important}.settingsgrid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){html body header.topbar{padding:.4rem .75rem!important;gap:.35rem!important;grid-template-columns:minmax(0,1fr) auto!important}header.topbar .primary-navigation{display:none!important}header.topbar .profile-wrap{grid-column:2!important;grid-row:1!important}.topbar .cat-mark{width:30px!important;height:30px!important}.topbar .brand-home{font-size:1rem!important;min-height:44px}#musicSlot{grid-row:2;max-width:none}html body .shell,html body .shell.archive-active{display:block!important;margin:0!important;padding:0!important}html body #work,html body.home-screen #work{padding:1rem .75rem calc(100px + env(safe-area-inset-bottom))!important}.home-stat-grid{grid-template-columns:minmax(0,1fr)!important}.home-bottom-grid,.settingsgrid,.stats{grid-template-columns:minmax(0,1fr)!important}.home-hero,.home-screen .home-hero{margin:0 0 1rem!important;padding:0!important}.home-hero h1{font-size:1.75rem!important}.home-badges>span,.home-badges>button{font-size:.8rem!important}.home-dashboard:not(.layout-editing) .home-layout-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:1rem!important;height:auto!important;min-height:0!important}.home-dashboard:not(.layout-editing) .home-widget{position:relative!important;inset:auto!important;width:100%!important;height:auto!important;transform:none!important;margin:0!important;min-width:0!important;max-width:100%!important}.home-dashboard:not(.layout-editing) .home-widget>.home-panel,.home-dashboard:not(.layout-editing) .home-widget>.home-card{height:auto!important;max-height:none!important;overflow:visible!important}.home-dashboard:not(.layout-editing) .home-widget>.home-card{min-height:112px!important}.home-dashboard:not(.layout-editing) .home-layout-grid>details{margin:0}.home-dashboard .home-activity-row{grid-template-columns:18px minmax(0,1fr);gap:.5rem}.home-activity-row time{grid-column:2}.home-server-metrics{margin:0!important}.person{flex-wrap:wrap!important}.person .badge{max-width:100%}.heading{flex-wrap:wrap}.heading #refresh{min-width:100px}#sidebar.open{position:fixed!important;left:.5rem!important;width:min(300px,calc(100vw - 16px))!important;top:calc(var(--smile-header-height) + .5rem)!important;bottom:84px;height:auto!important;max-height:none!important;overflow:auto;z-index:100}.shade{inset:var(--smile-header-height) 0 80px!important;z-index:99!important}.mobile-nav{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;position:fixed!important;inset:auto .5rem .5rem!important;gap:.25rem!important;padding:.35rem .25rem calc(.35rem + env(safe-area-inset-bottom))!important;background:rgba(var(--glass-rgb),.98)!important;color:var(--smile-ink);z-index:105!important;border:1px solid var(--smile-line)!important;max-width:calc(100vw - 16px);border-radius:16px!important;backdrop-filter:blur(12px)}.mobile-nav button{min-height:48px!important;min-width:0!important;font-size:.75rem!important;padding:.25rem!important;white-space:normal!important;line-height:1.2!important}.mobile-nav .nav-icon{font-size:1rem}.quick-assistant{max-width:calc(100vw - 24px)!important;right:12px!important;bottom:92px!important}.home-screen .heading{display:none!important}.smile-operation-list .home-widget{position:relative!important}.layout-toolbar{justify-content:flex-start!important;margin:.5rem 0 1rem!important}.layout-toolbar .layout-pencil{min-width:44px;min-height:44px}.growth-table-wrap{max-width:calc(100vw - 56px)} }
@media(min-width:761px){.mobile-nav{display:none!important}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}#musicViz{display:none!important}}
.primary-navigation .topnav,.home-quick-actions>button{margin:0!important}.home-quick-actions{justify-content:flex-start!important}.luri-heading{flex-wrap:wrap!important;gap:.6rem!important}.luri-heading .luri-settings{flex-shrink:0!important;white-space:nowrap!important;min-height:44px!important;padding:.5rem .7rem!important}.home-hero,.heading,#content>p{background:var(--smile-surface);border-radius:16px;padding:1rem!important}.home-badges,.home-badges b,.home-badges button{color:var(--smile-ink)!important}
html body .card,html body .home-panel,html body .home-card,html body .notice,html body .advice-box,html body .quick-assistant,html body dialog{background:var(--smile-surface)!important;color:var(--smile-ink)!important;border-color:var(--smile-line)!important}.home-card-icon,.home-panel h2 svg{color:var(--smile-accent)!important}

/* Keep header groups together; editorial controls occupy their own document space. */
html body header.topbar{display:block!important;padding:0!important}
.topbar-inner{display:grid;grid-template-columns:auto auto minmax(320px,380px) auto;justify-content:center;align-items:center;gap:1rem;max-width:1280px;width:100%;margin:0 auto;padding:.65rem 1.25rem;min-width:0}
.topbar-inner>.brand-home{grid-column:1!important;grid-row:1!important;justify-self:start!important}
.topbar-inner>.primary-navigation{grid-column:2!important;grid-row:1!important;justify-content:flex-start}
.topbar-inner>#musicSlot{grid-column:3!important;grid-row:1!important;max-width:none;width:100%;left:auto!important;right:auto!important;top:auto!important;margin:0!important}
.topbar-inner>.profile-wrap{grid-column:4!important;grid-row:1!important;justify-self:end}
.layout-toolbar.editor-open{position:relative;display:flex;align-items:center;gap:.75rem!important;margin:0 0 1.75rem!important;padding:1rem;background:rgb(var(--glass-rgb));color:var(--smile-ink);border:1px solid var(--smile-line);border-radius:16px;isolation:isolate}
.layout-toolbar.editor-open>label{flex-wrap:wrap;min-width:0}.layout-toolbar.editor-open button{min-height:44px;flex-shrink:0}.layout-toolbar.editor-open select{max-width:100%}
.layout-toolbar.editor-open>.layout-visibility{position:static;flex:0 0 100%;min-width:0;width:100%;order:2;border-top:1px solid var(--smile-line);padding-top:.5rem}
.layout-toolbar .layout-visibility>div{position:static!important;inset:auto!important;z-index:auto!important;min-width:0!important;width:100%;max-height:none!important;overflow:visible!important;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:.5rem .75rem;padding:.75rem 0 0!important;border:0!important;border-radius:0!important;background:rgb(var(--glass-rgb))!important;color:var(--smile-ink)!important}
.layout-visibility:not([open])>div{display:none!important}
.layout-toolbar .layout-visibility label{display:flex;align-items:center;gap:.75rem;min-height:44px;padding:.5rem .65rem;min-width:0;color:var(--smile-ink)!important;background:rgb(var(--glass-rgb));border-radius:8px;line-height:1.4;overflow-wrap:normal}
.layout-visibility input[type=checkbox]{flex:none;accent-color:var(--accent)}
.layout-toolbar .layout-status{color:var(--smile-ink)!important;flex:0 0 100%;font-size:.9rem}
.layout-editing .home-widget{padding-top:48px}.layout-editing .widget-controls{min-height:44px;background:rgb(var(--glass-rgb))!important;color:var(--smile-ink);border:1px solid var(--smile-line);border-radius:12px 12px 0 0}.widget-controls button{min-height:36px!important;min-width:36px}.widget-controls strong{font-size:.85rem;color:var(--smile-ink)}
@media(max-width:1100px){.topbar-inner{grid-template-columns:auto minmax(0,1fr) auto;gap:.65rem;padding:.65rem 1rem}.topbar-inner>.profile-wrap{grid-column:3!important}.topbar-inner>#musicSlot{grid-column:1/-1!important;grid-row:2!important}}
@media(max-width:760px){.topbar-inner{grid-template-columns:minmax(0,1fr) auto;gap:.5rem;padding:.4rem .75rem}.topbar-inner>.profile-wrap{grid-column:2!important}.layout-toolbar.editor-open{padding:.75rem;gap:.65rem!important}.layout-toolbar.editor-open>label{flex-basis:100%}.layout-toolbar.editor-open>label select{flex:1;min-width:0}.layout-toolbar .layout-visibility>div{grid-template-columns:minmax(0,1fr)}}
html body #musicSlot>#musicDock.collapsed{right:auto!important;bottom:auto!important}
html body header.topbar{top:0!important;bottom:auto!important;left:auto!important;right:auto!important}
/* The owner's live website controls are authoritative, not desktop defaults. */
:root{--smile-ink:var(--text);--smile-muted:var(--text);--smile-accent:var(--accent);--smile-accent-ink:var(--accent-ink);--smile-surface:rgba(var(--glass-rgb),var(--glass-alpha));--smile-line:rgba(var(--theme-rgb),.32)}
html body .home-nav-group,html body .profile-button,html body #musicSlot>#musicDock.collapsed,html body .shell.archive-active #sidebar,html body .shell.archive-active #content .card{background:var(--smile-surface)!important;backdrop-filter:blur(var(--glass-blur))!important;-webkit-backdrop-filter:blur(var(--glass-blur))!important}
html body .home-dashboard,html body .home-hero h1,html body .home-card-copy strong,html body .home-panel,html body .home-activity-row{color:var(--text)!important}
