/* V59: shared, accessible application shell. No remote dependencies. */
:root{--bg:#101116;--bg-soft:#15161e;--surface:#191b24;--surface-2:#20232f;--surface-3:#292d3d;--text:#f2f3fb;--muted:#b0b6ca;--muted-2:#9ba5bc;--line:#34394b;--accent:#8179ff;--accent-2:#b8b2ff;--radius:12px;--radius-sm:8px;--shadow:0 6px 24px #0002}
body{background:var(--bg);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:14px;line-height:1.6}
.topbar{background:#14161ef5;border-bottom:1px solid var(--line);min-height:72px;position:sticky;top:0;z-index:20;backdrop-filter:blur(12px)}
.brand-mark{border-radius:10px;background:linear-gradient(145deg,#8078ff,#526add);box-shadow:none;font-size:15px}
.shell{max-width:1700px;margin:auto;display:flex;align-items:stretch}
.sidebar{flex:0 0 235px;background:#14161e;border-right:1px solid var(--line);padding:20px 14px;position:sticky;top:72px;height:calc(100vh - 72px);overflow-y:auto}
.sidebar a{border-radius:7px;padding:9px 12px;margin:2px 0;font-weight:500}
.sidebar a:hover,.sidebar a[aria-current="page"]{background:#8179ff20;color:#dad7ff}
main{min-width:0;flex:1;padding:26px 32px 60px}
.workspace-bar{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:30px;padding-bottom:16px;border-bottom:1px solid var(--line);color:var(--muted)}
h1{font-size:clamp(26px,3vw,36px);letter-spacing:-1px;line-height:1.2}h2{font-size:21px;letter-spacing:-.4px}h3{font-size:17px}
.pagehead{margin-bottom:24px}.card{padding:24px;border:1px solid var(--line);box-shadow:var(--shadow);background:var(--surface);border-radius:12px}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:18px;margin:20px 0}.grid2,.grid3{gap:18px}
.eyebrow,.nav-label{font-size:11px;text-transform:uppercase;letter-spacing:1.8px;color:#b0aaff}
button,.button{border-radius:7px;font-weight:650;min-height:40px;transition:background .15s,transform .15s}button:hover,.button:hover{transform:translateY(-1px)}
input,select,textarea{background:#11131c;border:1px solid #444b63;border-radius:7px;color:var(--text);min-height:42px;max-width:100%}label{color:#d6daeb}select[multiple]{min-height:130px}
:focus-visible{outline:3px solid #b2acff;outline-offset:4px}.pill{font-size:12px;border:1px solid #4b5270;background:#24283a;color:#dddfff}.muted{color:var(--muted)}
.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse}th{text-align:left;color:#b8bed1}td,th{padding:12px;border-bottom:1px solid var(--line)}
.skip-link{position:fixed;top:-80px;left:16px;z-index:100;background:white;color:black;padding:12px}.skip-link:focus{top:12px}
.search-form{display:grid;gap:12px;grid-template-columns:1fr auto}.search-form label{grid-column:1/-1}.notice{border-left:3px solid var(--accent);background:#8179ff12}
.server-card{border-top:3px solid #8179ff}.server-avatar{border-radius:10px;background:#30304c;color:#d6d1ff}.workspace-switch{border:1px solid #45485d;margin-bottom:16px}
@media(max-width:900px){.topbar{position:relative;flex-wrap:wrap;gap:12px;padding:16px}.topbar nav{flex-wrap:wrap}.shell{display:block}.sidebar{position:relative;top:auto;height:auto;width:auto;display:flex;flex-wrap:wrap;gap:4px;padding:12px;border-right:0;border-bottom:1px solid var(--line)}.sidebar a{font-size:12px;padding:6px 9px}.nav-label,.nav-spacer,.server-id{display:none}main{padding:22px 16px}.workspace-bar{align-items:flex-start;flex-direction:column;margin-bottom:20px}.grid2,.grid3{grid-template-columns:1fr}.search-form{grid-template-columns:1fr}.card{padding:18px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.owner-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.secure-flow{display:grid;gap:8px;padding-left:24px}.split-head{display:flex;gap:20px;justify-content:space-between;align-items:flex-start}.status-badge{padding:6px 10px;border-radius:999px;border:1px solid var(--border,#283044);font-size:.82rem;text-transform:uppercase}.status-badge.ok{background:rgba(61,190,120,.12)}.status-badge.warn{background:rgba(240,170,60,.12)}.fingerprint{display:block;overflow-wrap:anywhere;padding:10px;border-radius:8px;background:rgba(0,0,0,.24)}.diff-view{max-height:560px;overflow:auto;white-space:pre;font-size:.78rem;padding:14px;border-radius:10px;background:#05070c;border:1px solid var(--border,#283044)}.gate-list{display:grid;gap:10px}.gate{display:grid;grid-template-columns:minmax(140px,1fr) auto;gap:6px 16px;padding:12px;border:1px solid var(--border,#283044);border-radius:10px}.gate small{grid-column:1/-1;white-space:pre-wrap;max-height:140px;overflow:auto}.action-row{display:flex;gap:16px;flex-wrap:wrap;align-items:flex-end}.action-row form{flex:1;min-width:260px}.kv{display:grid;grid-template-columns:max-content 1fr;gap:7px 16px}.kv dt{color:var(--muted,#9aa4b6)}.kv dd{margin:0;overflow-wrap:anywhere}@media(max-width:900px){.owner-grid{grid-template-columns:1fr}.split-head{display:block}}

/* V60 owner operations: Repair Center + signed updater. */
.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 20px}.metric-card{display:flex;flex-direction:column;gap:3px;padding:18px;border:1px solid var(--line);border-radius:var(--radius);background:linear-gradient(155deg,var(--surface),var(--surface-2));color:var(--text);text-decoration:none;min-height:116px}.metric-card:hover{border-color:#6964ba;background:linear-gradient(155deg,#1c1e29,#242738)}.metric-card strong{font-size:22px;line-height:1.25;overflow-wrap:anywhere}.metric-card small{color:var(--muted)}.metric-label{text-transform:uppercase;letter-spacing:1.3px;font-size:10px;color:var(--accent-2);font-weight:750}
.owner-feature-card{position:relative;overflow:hidden}.owner-feature-card::after{content:"";position:absolute;width:140px;height:140px;border-radius:50%;right:-60px;top:-70px;background:#8179ff12;pointer-events:none}.feature-points{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.feature-points span,.trust-strip span{border:1px solid var(--line);background:var(--surface-2);border-radius:999px;padding:5px 9px;font-size:12px;color:#d5d8e8}.trust-strip{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.button.secondary{background:var(--surface-3);border-color:#4a5068}.check-grid{display:grid;gap:3px}.check-row{display:flex;justify-content:space-between;gap:18px;padding:9px 0;border-bottom:1px solid #ffffff0c}.text-ok{color:#84e5ad}.text-warn{color:#ffc978}.event-list{display:grid}.event-row{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid #ffffff0c}.event-row div{display:flex;flex-direction:column}.event-row small{color:var(--muted)}.event-row>span{color:var(--muted);text-align:right}.compact-confirm{display:grid;grid-template-columns:minmax(120px,1fr) auto;gap:6px}.compact-confirm input{min-width:160px}
.form-grid{display:grid;gap:15px}.form-grid>label{display:grid;gap:6px}.check-option{grid-template-columns:auto 1fr!important;align-items:center}.check-option input{min-height:auto;width:18px;height:18px}.choice-grid{border:0;padding:0;margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.choice-grid legend{margin-bottom:8px;color:#d6daeb;font-weight:700}.choice-grid label{display:flex;align-items:flex-start;gap:10px;padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2);cursor:pointer}.choice-grid input{min-height:auto;width:17px;height:17px;margin-top:3px}.choice-grid span{display:grid}.choice-grid small{color:var(--muted)}.patch-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}.patch-meta>div{padding:12px;border:1px solid var(--line);border-radius:9px;background:var(--surface-2);display:flex;justify-content:space-between;gap:10px}.patch-meta span{color:var(--muted)}.deploy-panel{display:grid!important;gap:10px;padding:16px;border:1px solid #8f5f5f66;border-radius:10px;background:#5d252516}.deploy-panel label{display:grid;gap:5px}.staged-release{border-color:#4c8063}.empty-state{padding:24px;text-align:center;border:1px dashed #4a5068;border-radius:10px;background:#11131c77}.empty-state p{color:var(--muted);margin-bottom:0}.dangerbox{border-color:#74464b}.dangerbox .button.danger{background:#8b4046}
@media(max-width:1100px){.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.metric-grid,.choice-grid,.patch-meta{grid-template-columns:1fr}.metric-card{min-height:auto}.compact-confirm{grid-template-columns:1fr}.event-row{align-items:flex-start;flex-direction:column}.action-row form{min-width:100%}}

/* v63 MainZoglin Helper */
.helper-pagehead{align-items:flex-start}.helper-provider{display:flex;align-items:center;gap:.5rem}.helper-layout{display:grid;grid-template-columns:minmax(220px,280px) minmax(0,1fr);gap:1rem;align-items:start}.helper-history{position:sticky;top:5.5rem;max-height:calc(100vh - 7rem);display:flex;flex-direction:column;gap:.75rem}.helper-new{width:100%;text-align:center}.helper-history-list{display:flex;flex-direction:column;gap:.35rem;overflow:auto}.helper-history-item{display:flex;flex-direction:column;gap:.2rem;padding:.7rem .75rem;border-radius:.75rem;text-decoration:none;border:1px solid transparent}.helper-history-item:hover,.helper-history-item.active{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.08)}.helper-history-item strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.helper-history-item small{opacity:.6}.helper-clear-form{margin-top:auto}.helper-chat-card{padding:0;overflow:hidden}.helper-chat-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1rem .75rem;border-bottom:1px solid rgba(255,255,255,.08)}.helper-chat-head h2{margin:.15rem 0}.helper-thread{min-height:360px;max-height:62vh;overflow-y:auto;padding:1rem;display:flex;flex-direction:column;gap:1rem;scroll-behavior:smooth}.helper-empty{text-align:center;margin:auto;max-width:520px;padding:3rem 1rem}.helper-message{max-width:min(820px,92%);padding:.85rem 1rem;border-radius:1rem;border:1px solid rgba(255,255,255,.08)}.helper-message.user{align-self:flex-end;background:rgba(88,101,242,.14)}.helper-message.assistant{align-self:flex-start;background:rgba(255,255,255,.035)}.helper-message-meta{display:flex;gap:.6rem;align-items:center;margin-bottom:.45rem;font-size:.82rem}.helper-message-meta span{opacity:.55}.helper-message-body p{margin:.35rem 0 .7rem}.helper-message-body pre{overflow:auto;padding:.8rem;border-radius:.65rem;background:rgba(0,0,0,.32)}.helper-message-body code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.helper-copy{margin-top:.35rem}.helper-composer{border-top:1px solid rgba(255,255,255,.08);padding:1rem}.helper-composer textarea{width:100%;resize:vertical;min-height:76px;max-height:220px}.helper-composer-row{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-top:.6rem}.helper-privacy{padding:0 1rem 1rem;margin:0}.helper-loading{align-self:flex-start;display:flex;align-items:center;gap:.35rem;padding:.8rem 1rem}.helper-loading[hidden]{display:none}.helper-loading span{width:.45rem;height:.45rem;border-radius:50%;background:currentColor;opacity:.45;animation:mzhelperdot 1s infinite alternate}.helper-loading span:nth-child(2){animation-delay:.2s}.helper-loading span:nth-child(3){animation-delay:.4s}.helper-loading em{margin-left:.35rem;opacity:.65;font-style:normal}@keyframes mzhelperdot{to{opacity:1;transform:translateY(-2px)}}.helper-docs{margin-top:1rem}.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:850px){.helper-layout{grid-template-columns:1fr}.helper-history{position:static;max-height:none}.helper-history-list{max-height:180px}.helper-thread{max-height:none;min-height:300px}.helper-message{max-width:96%}}
