/* Vibbsy readable palette: overrides legacy important tokens. */
html[data-mc-theme="arctic"]{--mc-bg:#ffffff!important;--mc-side:#edf3f9!important;--mc-panel:#ffffff!important;--mc-border:#8296ad!important;--mc-text:#162334!important;--mc-muted:#46596e!important;--mc-accent:#075da8!important;--mc-accent-text:#ffffff!important;--mc-hover:#d8e8fa!important;--mc-danger:#9d1c24!important;color-scheme:light!important;}
html[data-mc-theme="neon"]{--mc-bg:#ffffff!important;--mc-side:#e7f4f0!important;--mc-panel:#ffffff!important;--mc-border:#719b91!important;--mc-text:#132c29!important;--mc-muted:#3e5c56!important;--mc-accent:#00665b!important;--mc-accent-text:#ffffff!important;--mc-hover:#ccebe2!important;--mc-danger:#9d1c24!important;color-scheme:light!important;}
html[data-mc-theme="aurora"]{--mc-bg:#ffffff!important;--mc-side:#edf0fa!important;--mc-panel:#ffffff!important;--mc-border:#9099bc!important;--mc-text:#202541!important;--mc-muted:#505879!important;--mc-accent:#4346a1!important;--mc-accent-text:#ffffff!important;--mc-hover:#dfe4fa!important;--mc-danger:#9d1c24!important;color-scheme:light!important;}
html[data-mc-theme="sunset"]{--mc-bg:#fffaf6!important;--mc-side:#f7e9df!important;--mc-panel:#ffffff!important;--mc-border:#b29a89!important;--mc-text:#352821!important;--mc-muted:#655044!important;--mc-accent:#a13d19!important;--mc-accent-text:#ffffff!important;--mc-hover:#f4ded0!important;--mc-danger:#9d1c24!important;color-scheme:light!important;}
html[data-mc-theme="gold"]{--mc-bg:#20252d!important;--mc-side:#2a323d!important;--mc-panel:#343e4b!important;--mc-border:#8393a6!important;--mc-text:#f8fafc!important;--mc-muted:#d1dbe8!important;--mc-accent:#8fdbff!important;--mc-accent-text:#11202b!important;--mc-hover:#3c4a59!important;--mc-danger:#ffb3b3!important;color-scheme:dark!important;}
html[data-mc-theme]{--mc-surface:var(--mc-panel)!important;--mc-panel-2:var(--mc-side)!important;--mc-line:var(--mc-border)!important;--mc-dim:var(--mc-muted)!important;--mc-cyan:var(--mc-accent)!important;--mc-lime:var(--mc-accent)!important;--mc-glow:transparent!important;--bg:var(--mc-bg)!important;--pane:var(--mc-panel)!important;--pane2:var(--mc-side)!important;--line:var(--mc-border)!important;--text:var(--mc-text)!important;--muted:var(--mc-muted)!important;--lime:var(--mc-accent)!important;--sub:var(--mc-muted)!important;--panel:var(--mc-panel)!important;--a:var(--mc-accent)!important;--bright:var(--mc-accent)!important;--focus:var(--mc-accent)!important;background:var(--mc-bg)!important;color:var(--mc-text)!important;}
html[data-mc-theme] body{background:var(--mc-bg)!important;color:var(--mc-text)!important;color-scheme:inherit!important;}
html[data-mc-theme] body:has(#mc-workspace) :is(#mc-topic,#mc-nicks,#mc-tabs,#mc-network-tabs,main>footer,main>header,.toolbar){background:var(--mc-side)!important;color:var(--mc-text)!important;border-color:var(--mc-border)!important;}
html[data-mc-theme] body:has(#mc-workspace) #messages{background:var(--mc-bg)!important;color:var(--mc-text)!important;font-size:15px!important;}
html[data-mc-theme] body:has(#mc-workspace) #messages .line{color:var(--mc-text)!important;font-size:15px!important;line-height:1.65!important;}
html[data-mc-theme] body:has(#mc-workspace) #messages .line strong{color:var(--mc-accent)!important;font-weight:750!important;}
html[data-mc-theme] body:has(#mc-workspace) #messages .line time,html[data-mc-theme] body:has(#mc-workspace) #messages .line.system{color:var(--mc-muted)!important;font-size:13px!important;}
html[data-mc-theme] body:has(#mc-workspace) :is(#mc-nicks,#mc-topic) :is(h2,h3,small,span,.mc-mode,.mc-muted){color:var(--mc-text)!important;}
html[data-mc-theme] body:has(#mc-workspace) #mc-tabs .mc-tab{background:var(--mc-panel)!important;color:var(--mc-text)!important;border-color:var(--mc-border)!important;}
html[data-mc-theme] body:has(#mc-workspace) #mc-tabs .mc-tab.selected,html[data-mc-theme] body:has(#mc-workspace) #mc-network-tabs .mc-network-pill.active,html[data-mc-theme] body:has(#mc-workspace) #vb-mobile-nav button[aria-current='page'],html[data-mc-theme] body:has(#mc-workspace) .mc-tab-v089[aria-selected='true']{background:var(--mc-hover)!important;color:var(--mc-text)!important;border-color:var(--mc-accent)!important;box-shadow:inset 0 -3px var(--mc-accent)!important;font-weight:750!important;}
html[data-mc-theme] body:has(#mc-workspace) #mc-tabs .mc-tab :is(.mc-tab-title,.mc-tab-glyph){color:inherit!important;}
html[data-mc-theme] body:has(#mc-workspace) :is(.mc-net-unread,.mc-network-badge,.mc-badge){background:var(--mc-accent)!important;color:var(--mc-accent-text)!important;}
html[data-mc-theme] body:has(#mc-workspace) :is(.mc-v03-menu,.mc-net-settings-menu,.mc-v04-call-card,.mc-nickfallback,#mc-photo-viewer,.mc-feedback){background:var(--mc-panel)!important;color:var(--mc-text)!important;border-color:var(--mc-border)!important;}
html[data-mc-theme] body:has(#mc-workspace) :is(.mc-v03-menu,.mc-net-settings-menu,.mc-nickfallback) button,html[data-mc-theme] body:has(#mc-workspace) :is(.mc-v03-more,.mc-v04-call-nick){background:var(--mc-panel)!important;color:var(--mc-text)!important;border-color:var(--mc-border)!important;}
html[data-mc-theme] body:has(#mc-workspace) :is(.mc-v03-menu,.mc-net-settings-menu) button:hover{background:var(--mc-hover)!important;color:var(--mc-text)!important;}
html[data-mc-theme] body:has(#mc-workspace) aside .aside-bottom a,html[data-mc-theme] body:has(#mc-workspace) :is(.mc-enterprise-people,a[href='/photos']){background:var(--mc-panel)!important;color:var(--mc-text)!important;border-color:var(--mc-border)!important;}
html[data-mc-theme] body:has(#mc-workspace) #compose input#message{color:var(--mc-text)!important;background:var(--mc-panel)!important;font-size:16px!important;}
html[data-mc-theme] body :is(input,textarea)::placeholder{color:var(--mc-muted)!important;opacity:1!important;}
html[data-mc-theme] body :is(#autherror,#editerror){color:var(--mc-danger)!important;}
html[data-mc-theme] body :is(.eyebrow,.chips span,.mc-v03-indicator){color:var(--mc-muted)!important;border-color:var(--mc-border)!important;}
html[data-mc-theme] body:has(#mc-workspace) #messages a{color:var(--mc-accent)!important;text-decoration:underline!important;}
html[data-mc-theme] body:has(#mc-workspace) #mc-list-panel :is(td,th){color:var(--mc-text)!important;background:var(--mc-panel)!important;}
html[data-mc-theme] body:has(#mc-workspace) #mc-list-panel td:first-child{color:var(--mc-accent)!important;}
html[data-mc-theme] body:has(#mc-workspace) #compose button:last-of-type{background:var(--mc-accent)!important;color:var(--mc-accent-text)!important;}
html[data-mc-theme] body:has(#mc-workspace) #compose button:last-of-type:hover{filter:brightness(.93)!important;}
html[data-mc-theme]:not([data-vb-irc-colors='original']) body #messages .line .vb-irc-format{color:inherit!important;background:transparent!important;}
html[data-mc-theme] .vb-color-toggle{display:inline-flex!important;align-items:center;gap:5px;white-space:nowrap;font-size:12px!important;margin:0!important;color:var(--mc-text)!important;}
html[data-mc-theme] .vb-color-toggle input{width:auto!important;margin:0!important;accent-color:var(--mc-accent);}

/* Vibbsy Theme Studio v1 */
html[data-mc-theme][data-vb-studio] body.vb-compact:has(#mc-workspace) #messages .line,html[data-mc-theme][data-vb-studio] body #messages .line{font-family:var(--vb-studio-font)!important;font-size:var(--vb-studio-size)!important;line-height:1.5!important;}
html[data-mc-theme][data-vb-studio] body.vb-compact:has(#mc-workspace) #messages .line strong,html[data-mc-theme][data-vb-studio] body #messages .line strong{font-size:var(--vb-studio-size)!important;}
html[data-mc-theme][data-vb-studio] body.vb-compact:has(#mc-workspace) #messages .line time{font-size:var(--vb-studio-small)!important;}
html[data-mc-theme][data-vb-studio] body.vb-compact:has(#mc-workspace) #messages .line.system{font-size:var(--vb-studio-system)!important;}
html[data-mc-theme][data-vb-studio] body.vb-compact:has(#mc-workspace) #compose input#message{font-family:var(--vb-studio-font)!important;font-size:max(16px,var(--vb-studio-size))!important;}
#vb-theme-studio{box-sizing:border-box;width:min(680px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:18px!important;overflow:auto;overscroll-behavior:contain;border:1px solid var(--mc-border);border-radius:10px;}
#vb-theme-studio h2{font-size:22px;margin:0 0 6px}#vb-theme-studio h3{font-size:14px;margin:14px 0 6px}#vb-theme-studio p{font-size:13px;margin:8px 0;overflow-wrap:anywhere;}
#vb-theme-studio .vb-ts-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;margin:12px 0}#vb-theme-studio .vb-ts-fields label{display:flex;flex-direction:column;gap:5px;font-size:12px!important;margin:0!important;min-width:0;}
#vb-theme-studio input[type=color]{width:100%!important;height:38px;padding:3px!important;cursor:pointer}#vb-theme-studio input[type=range]{width:100%!important;min-width:0;accent-color:var(--mc-accent)}#vb-theme-studio select{width:100%!important;min-width:0}
#vb-theme-studio .vb-ts-buttons{display:flex;flex-wrap:wrap;gap:6px}#vb-theme-studio .vb-ts-buttons button{min-height:38px;padding:7px 10px!important;font-size:12px!important;white-space:normal;}
#vb-theme-studio .vb-ts-sample{border:1px solid var(--mc-border);border-radius:6px;overflow:hidden;display:grid;gap:6px;padding:8px;min-height:100px;}#vb-theme-studio .vb-ts-sample>div{padding:6px;overflow-wrap:anywhere;}#vb-theme-studio textarea{width:100%!important;box-sizing:border-box;resize:vertical;font:12px monospace!important;}
@media(max-width:480px){#vb-theme-studio{padding:12px!important}#vb-theme-studio .vb-ts-fields{grid-template-columns:repeat(2,minmax(0,1fr))}#vb-theme-studio .vb-ts-buttons button{min-height:44px}}
