/* Focus: shared presentation layer. No control or transport behavior. */
:root{--bg:#080a16;--panel:#121322;--surface:#121322;--surface2:#1c1d30;--line:#303247;--ink:#f4f6ff;--text:#f4f6ff;--muted:#a8b1c9;--violet:#7dd9ff;--pink:#ff2d8d;--green:#64f5d2;color-scheme:dark}
body{background:var(--bg);font-size:16px;line-height:1.5}
button,input,select,textarea{font:inherit;min-height:44px;max-width:100%}
input,select,textarea{min-width:0}input[type=checkbox],input[type=radio]{min-height:20px;width:20px;flex:none}
button{line-height:1.35;white-space:normal}button:hover{transform:none}
button:focus-visible,a:focus-visible,select:focus-visible{outline:2px solid var(--violet);outline-offset:3px}
h1,h2,h3,p,td,dd,.person-card,.feed-row{overflow-wrap:anywhere}
h1{font-size:clamp(26px,3vw,36px)!important;line-height:1.2}h2{font-size:24px}h3{font-size:18px}
.panel,.config-card,.metric,.login-card,.person-card,.community-message{background:var(--panel);border:1px solid var(--line);border-radius:18px;box-shadow:none}
.hero{background:var(--panel);border-color:var(--line);border-radius:18px;min-height:0;padding:24px;gap:20px}
.hero p:empty{display:none}.hero .eyebrow{font-size:12px}.login-glow{display:none}
.primary,button:not([class]),.button-link{background:var(--pink);box-shadow:none;color:white}
.secondary,.ghost,.social-brand,nav button,.top nav a{box-shadow:none}
nav button.active,#community-nav button[aria-current=page],.top nav a[aria-current=page]{background:#7dd9ff16;color:var(--violet);border:1px solid #7dd9ff55}
.top nav a,.app-shell nav button{font-size:15px;letter-spacing:0}
.brand-icon,.login-logo{box-shadow:none;filter:none}.login-card{padding:28px}.beta-version{color:var(--muted)}
.shell{max-width:1440px;padding:28px}.page{padding-top:24px}.panel{padding:20px}
.app-shell{grid-template-columns:220px minmax(0,1fr)}.app-shell aside{padding:18px 12px;background:var(--bg);overflow-y:auto}
.app-shell .brand{padding:4px 4px 24px}.app-shell .brand>div{font-size:16px}
.app-shell main{padding:0 24px 24px}.app-shell header{height:auto;min-height:92px;padding:16px 0;gap:16px;flex-wrap:wrap;background:#080a16f5}
.header-controls{flex:1;justify-content:flex-end;flex-wrap:wrap;min-width:0}.header-controls select{min-width:0;width:min(100%,240px)}
.status{font-size:13px;min-height:40px}.status i{box-shadow:none;flex-shrink:0}
.top{gap:16px;background:#080a16f5;align-items:center;flex-wrap:wrap}.top nav{min-width:0;flex-wrap:wrap;overflow:visible}
.top nav a{white-space:normal}.top form{margin:0}.top .brand small{font-size:12px}
.focus-language{display:flex;gap:10px;align-items:center;margin:0;font-size:14px;color:var(--muted)}
.focus-language select{width:auto;min-width:116px;padding:8px;background:var(--surface);color:var(--text)}
.login-card>.focus-language{justify-content:flex-end;margin-bottom:20px}
.focus-menu{display:none;align-items:center;gap:10px;margin:0;font-size:14px;width:100%}.focus-menu select{flex:1;min-width:0}
.stats-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr))}.stats-grid article.accent{background:var(--surface);border-color:var(--line)}
.stats-grid span{font-size:14px;font-weight:500}.stats-grid strong{font-size:30px}.stats-grid article{padding:16px}
.cards,.community-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr))}
.panel-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr))}.form-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))}
label{font-size:15px;font-weight:500}.form-grid>*,.panel-grid>*,.cards>*{min-width:0}.form-grid .wide{grid-column:1/-1}
.page-actions,.panel-head,.config-card footer,.actions,.dmx-actions{flex-wrap:wrap}.health-list div,dl div{gap:18px;flex-wrap:wrap}.health-list b,dd{overflow-wrap:anywhere;min-width:0}
.health-list span{font-size:14px}.feed-row{grid-template-columns:85px minmax(80px,110px) minmax(0,1fr) auto}
.pill{white-space:normal;max-width:100%;font-size:12px}.config-card p{font-size:14px}.privacy-note{font-size:14px;max-width:76ch}
.dmx-option{background:var(--surface);border-color:var(--line);align-items:flex-start}.dmx-option small{font-size:14px}
.person-card{flex-wrap:wrap}.community-message.mine{background:#233344}.community-message small,.muted{color:var(--muted)}
.community-compose textarea{min-width:0}.community-thread{scrollbar-gutter:stable}.community-compose{flex-wrap:wrap}
th,td{white-space:normal;vertical-align:top}.table-wrap,.diag-table-wrap,.event-table-wrap{max-width:100%}
#toast{max-width:calc(100vw - 32px);right:16px;bottom:16px}
@media(max-width:1050px){
 .app-shell{display:block}.app-shell aside{position:static;height:auto;padding:12px 20px;border-right:0;border-bottom:1px solid var(--line);display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:12px}
 .app-shell aside nav{display:none}.app-shell .brand{padding:0}.app-shell .aside-bottom{margin:0 0 0 auto;display:flex;align-items:center;gap:12px}.app-shell .admin-card{display:none}
 .focus-menu{display:flex}.top nav{display:none!important}.app-shell header{position:static}.top{position:static}
 .app-shell .aside-bottom button{width:auto}.header-controls{justify-content:flex-start}
 .focus-table,.focus-table tbody,.focus-table tr,.focus-table td{display:block;width:100%;min-width:0!important}
 .focus-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .focus-table tr{padding:12px;border:1px solid var(--line);border-radius:14px;margin:12px 0;background:var(--surface)}
 .focus-table td{display:grid;grid-template-columns:minmax(100px,32%) minmax(0,1fr);gap:12px;padding:8px 0;font-size:15px;white-space:normal;overflow-wrap:anywhere}
 .focus-table td::before{content:attr(data-label);font-size:13px;color:var(--muted);font-weight:500}
 .focus-table td[colspan]{display:block}.focus-table td[colspan]::before{display:none}
 .focus-table td>*{min-width:0;max-width:100%}.focus-table td .diag-toy{flex-wrap:wrap}
}
@media(max-width:600px){
 .shell,.app-shell main{padding:16px}.app-shell aside{padding:12px 16px}.app-shell header{padding:0 0 16px}.header-controls{width:100%}.header-controls select{width:100%;flex-basis:100%}
 .hero{flex-direction:column;padding:20px}.panel{padding:16px}.panel-head,.page-actions{align-items:flex-start}.login-body{padding:16px}.login-card{padding:22px;width:100%}
 .login-shell{padding:16px}.feed-row{grid-template-columns:1fr 1fr}.feed-row>:nth-child(n+3){grid-column:1/-1}
 .detail-grid,.settings-grid,.mail-layout,.dmx-monitor{grid-template-columns:1fr}.community-message{max-width:100%}.community-compose{flex-direction:column;align-items:stretch}
 .focus-table td{grid-template-columns:1fr;gap:4px}.brand small{letter-spacing:.04em}.top{padding:12px 16px}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

.live-badge>[data-i18n]{width:auto;height:auto;border-radius:0;background:none;box-shadow:none;margin:0}

.header-controls .focus-language{min-width:0;flex-wrap:wrap}.header-controls .focus-language select{width:auto;flex:0 1 auto;min-width:116px}

.device-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.device-stats article{min-width:0;padding:14px}.device-stats span{font-size:14px}.device-stats strong{font-size:28px}.toy-cell>span{display:flex;flex-direction:column;align-items:flex-start;gap:3px}
@media(max-width:600px){.app-shell header>div:first-child{flex-basis:100%}.header-controls{flex:1 0 100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.header-controls>.focus-language,.header-controls>#event-select{grid-column:1/-1}.header-controls>.focus-language{justify-content:space-between}.header-controls>.status{font-size:12px;padding:8px;min-width:0;overflow-wrap:anywhere}.header-controls>#event-select{max-width:100%;width:100%}}

.top>.focus-language{margin-left:auto}.focus-more{position:relative}.focus-more summary{cursor:pointer;min-height:44px;padding:9px 12px;color:var(--muted);border:1px solid var(--line);border-radius:10px}.focus-more>div{position:absolute;right:0;top:100%;z-index:20;display:grid;gap:4px;padding:12px;min-width:260px;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:0 16px 32px #0006}.focus-more>div>a{display:block}
