/* Shared interaction states and the Studio light palette. */
html body {
  --idz-pressed:linear-gradient(116deg,#5349cd 0%,#326ec0 58%,#13779f 100%);
  --idz-pressed-ink:#fff;
  --idz-pressed-line:#79c5fb;
}
html[data-theme] body #appSidebar .navitem.active,
html[data-theme] body #appSidebar .navitem:active,
html[data-theme] body .i23 .cat.on,
html[data-theme] body .i23 .vtog button.on,
html[data-theme] body :is(.cc-tab,.cs-tab,.ls-tab,.ao-tab,.cl-tab,.au-mode-tab,.sb-tab,.mp-chip,.mp-opt,.kb-cat,.kb-sw,.view-toggle-btn,.h3-pack-tabs button,.h3-mywork-tabs button,.pc-mw-tabs button,.cl2-seg button,.pe-tabs button,.pe-thi button,.view-toggle button,#selectModeBtn):is(.on,.active,.is-active,.sel,[aria-selected=true]),
html[data-theme] body :is(button,.btn,.button,[role=button]):not(:disabled):not([aria-disabled=true]):not(.del):not(.danger):not(.music-btn-danger):not(.nav-backdrop):active {
  background:var(--idz-pressed)!important;
  color:var(--idz-pressed-ink)!important;
  -webkit-text-fill-color:currentColor!important;
  border-color:var(--idz-pressed-line)!important;
}
html[data-theme] body .i23 .cat.on b {background:#ffffff20;color:#fff}
html[data-theme] body .idz-mode[data-theme-toggle] {
  display:inline-flex!important;align-items:center;justify-content:center;
  min-height:38px;padding:8px 13px;white-space:nowrap;border-radius:10px;
  border:1px solid var(--border2,#547384);background:var(--card2,#213345);
  color:var(--text,#edf7fb);font:700 12px/1.3 var(--font,system-ui,sans-serif);
  cursor:pointer;
}
html[data-theme] body .idz-mode:focus-visible{outline:2px solid #2275b1!important;outline-offset:3px}
html body .idz-header-actions .idz-mode {margin-inline-start:auto}
html body .idz-mode-login {
  position:absolute;z-index:10;top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right))
}
html body:has(.idz-mode-login) .login-shell {margin-block-start:52px}
html body .lm .idz-mode[data-theme-toggle]{width:auto;height:42px}

html:root[data-theme=light],html:root[data-theme=light] body {
  --bg:#edf4f8!important;--bg2:#e2edf4!important;--card:#fff!important;--card2:#eaf3f8!important;
  --border:#c7d8e4!important;--border2:#9bb3c6!important;--text:#172c3f!important;--muted:#40586b!important;--faint:#4c6174!important;
  --accent:#165d8c!important;--accent2:#174b75!important;--accent-soft:#ddebfa!important;--accent-ink:#173e62!important;
  --input:#fff!important;--input-ink:#172c3f!important;--input-hint:#4c6174!important;--input-caret:#165d8c!important;
  --header:#f7fbfe!important;--sidebar-bg:#e7f1f7!important;--side-ink:#243e54!important;--side-muted:#4c6174!important;--side-active:#ddebfa!important;
  --hero:linear-gradient(115deg,#e0f3f6,#f1f7fd 75%)!important;--hero-ink:#172c3f!important;--hero-muted:#40586b!important;
  --hover:#ddebfa!important;--gold:var(--idz-pressed,linear-gradient(116deg,#5349cd,#13779f))!important;
  --gold-hover:linear-gradient(116deg,#463bb7,#0c658a)!important;--on-accent:#fff!important;
  --good:#176142!important;--warn:#725014!important;--orange:#84361a!important;--bad:#a31d3a!important;
  --danger-bg:#ffedf1!important;--danger-line:#ddaabc!important;--success-bg:#e6f6ef!important;--success-line:#a4d3bd!important;--warning-bg:#fff2d6!important;--warning-line:#d9b879!important;
  --kr-ring:0 0 0 3px #2972a533!important;--kr-btn:#eaf3f8!important;--kr-btn-hover:#dceaf3!important;--kr-th:#e6f0f7!important;
  --au-accent:#165d8c!important;--au-accent-2:#174b75!important;
  color-scheme:light;
}
html:root[data-theme=light]{background:#edf4f8!important}
html[data-theme=light] body :is(.topbar,.mobile-bar){background:var(--header)!important}
html[data-theme=light] body .mobile-bar .brand-name{color:var(--text)}
html[data-theme=light] body #appSidebar .navitem{color:var(--side-ink)!important}
html[data-theme=light] body #appSidebar .navitem:hover{background:#d9e9f4!important}
html:root[data-theme=light] body #appSidebar .navitem.active,
html:root[data-theme=light] body #appSidebar .navitem:active{background:var(--idz-pressed)!important;color:#fff!important}
html[data-theme=light] body #appSidebar :is(.brand-mark,.avatar){background:#d6e9f4;color:var(--text)}
html[data-theme=light] body .i23 :is(.hero h2,.hero h2 span,.i23-eyebrow){color:var(--text)}
html[data-theme=light] body .i23 .i23-project-head{border-color:var(--border);border-left-color:#2583a1}
html[data-theme=light] body .i23 #iRefresh{background:#ddf3f0;color:#194f49;border-color:#80b5ad}
html[data-theme=light] body .i23 #iRefresh:hover:not(:disabled){background:#cdebe6;color:#194f49}
html[data-theme=light] body .i23 :is(.card:hover,button:hover:not(:disabled),a.btn:hover){background:var(--hover)}
html[data-theme=light] body .i23 :is(.th,table.lt th){background:#e2edf4;color:#263e52}
html[data-theme=light] body .i23 :is(.ext,.cnt){background:#243c50;color:#fff}
html[data-theme=light] body .i23 .vbox{background:var(--card);color:var(--text)}
html[data-theme=light] body .i23 .viewer button.del{background:#ffedf1;border-color:#b46a80;color:#8c2342}
html[data-theme=light] body .i23 .viewer button.del.arm{background:#a63351;color:#fff}
html[data-theme=light] body .i23 table.lt :is(tbody tr:hover,tr.on){background:#ddebfa}
html[data-theme=light] body :is(.entry h2,.wordmark strong,.field-label){color:var(--text)}
html[data-theme=light] body :is(.entry-top,.entry-top svg,.story-bottom span:last-child,.input-icon,.reveal,.otp-telegram){color:var(--accent)}
html[data-theme=light] body :is(.intro,.story-bottom,.wordmark small,.protection,.connection,.remember,.private-note,.otp-hint){color:var(--muted)}
html[data-theme=light] body .entry-inner{background:#fff;border-color:var(--border);box-shadow:0 18px 46px #24445d1c}
html[data-theme=light] body .entry .input-wrap input{background:#f2f8fc!important;color:var(--text)!important;-webkit-text-fill-color:var(--text)!important;border-color:var(--border2);caret-color:var(--accent)!important}
html[data-theme=light] body .entry .input-wrap input::placeholder{color:var(--input-hint)!important;-webkit-text-fill-color:var(--input-hint)!important}
html[data-theme=light] body .entry .input-wrap input:is(:autofill,:-webkit-autofill){-webkit-box-shadow:0 0 0 1000px #f2f8fc inset!important}
html[data-theme=light] body :is(.logo,.secondary,.otp-paste,.otp-icon){color:var(--accent);background:#e3f1fa;border-color:var(--border2)}
html[data-theme=light] body .submit{background:var(--idz-pressed);color:#fff;border-color:#629dcc;box-shadow:none}
html[data-theme=light] body .lm button{background:#edf6f9;color:#17394f;border-color:#a4bfce}
html[data-theme] body #appSidebar .navitem.active:hover{background:var(--idz-pressed)!important;color:#fff!important}
html[data-theme=light] body .i23 .viewer :is(button:not(.del),a.btn){color:var(--text);background:var(--card2);border-color:var(--border2)}
@media(max-width:480px){
 html body .idz-header-actions .idz-mode{padding-inline:9px}
 html body:has(.idz-mode-login) .login-shell{margin-block-start:58px}
}

/* Keep one visible switch in the rightmost slot of the top bar. */
html body .idz-header-actions {
  display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;min-width:0;
}
html[data-theme] body .idz-mode.idz-mode-desktop[data-theme-toggle] {
  order:10;flex:none;margin-inline-start:0;
}
html[data-theme] body .idz-mode.idz-mode-mobile[data-theme-toggle] {
  display:none!important;
}
@media(max-width:900px) {
  html[data-theme] body .idz-mode.idz-mode-desktop[data-theme-toggle]{display:none!important}
  html[data-theme] body .idz-mode.idz-mode-mobile[data-theme-toggle]{display:inline-flex!important;flex:none;min-height:44px}
  html body .mobile-bar .brand-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
