.nd-app-actions{display:flex;align-items:center;gap:6px;margin-left:10px;flex-shrink:0}
.nd-app-actions button{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;min-width:44px;border:0;border-radius:12px;padding:8px 12px;background:rgba(130,160,154,.16);color:inherit;cursor:pointer}
.nd-app-actions svg{width:22px;height:22px}.nd-unread{position:absolute;top:1px;right:1px;background:#c6ff43;color:#172016!important;border-radius:20px;min-width:17px;font-size:11px;text-align:center}
.nd-notifications{position:fixed;z-index:11000;right:16px;top:80px;width:min(390px,calc(100vw - 32px));max-height:calc(100dvh - 110px);overflow:auto;background:var(--nd-surface,#293b3a);color:var(--nd-text,#eff4ef);box-shadow:0 16px 50px #0005;border-radius:20px;padding:20px}
.nd-notice-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.nd-notice-head h2{font-size:20px;margin:0}.nd-notice-head button{border:0;background:transparent;color:inherit;width:44px;height:44px;font-size:26px;cursor:pointer}
.nd-notice-item{display:grid;gap:5px;padding:14px 12px;margin:6px 0;border-radius:12px;background:#98b4b315;text-decoration:none;color:inherit;border-left:3px solid #859a96}.nd-notice-item small{opacity:.7}.nd-notice-item.is-success{border-color:#bff24a}.nd-notice-item.is-error{border-color:#ff716b;background:#fe716b13}
.nd-notice-item:hover{background:#b9ddae22}.nd-notifications [data-notice-status]{font-size:13px;line-height:1.5;margin:16px 0}
.nd-install-dialog{max-width:min(520px,calc(100vw - 32px));border:0;border-radius:22px;padding:30px;background:var(--nd-surface,#293b3a);color:var(--nd-text,#fff);box-shadow:0 24px 70px #0005;line-height:1.6}.nd-install-dialog::backdrop{background:#07131488;backdrop-filter:blur(8px)}
@media(max-width:900px){.nd-app-actions{margin-left:4px;gap:2px}.nd-install span{display:none}.nd-app-actions button{padding:6px}.nd-notifications{top:72px}.top{gap:4px!important}.top-context{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}

@media(max-width:600px){body>.top .top-context{display:none!important}.nd-notifications .nd-install{display:flex;align-items:center;gap:8px;margin-top:10px}.nd-notifications .nd-install span{display:inline}.nd-notifications .nd-install svg{width:18px;height:18px}.top #userbar{margin-left:auto!important}.nd-app-actions{margin-left:0!important}.top>.nd-language-switch{margin-left:0!important}}

@media(max-width:600px){html body.nd-v42 .top .nd-balance-menu>summary{width:44px!important;min-width:44px!important;padding:8px!important;justify-content:center}html body.nd-v42 .top .nd-balance-menu>summary>span{display:none!important}html body.nd-v42 .top .userbar{gap:6px!important}html body.nd-v42 .top .nd-language{margin:0!important;flex-shrink:1}html body.nd-v42 .top{padding-inline:10px!important}}
.nd-notice-item progress{width:100%;height:5px;accent-color:#bbeb5c}
@media(max-width:600px){html body.nd-v42 .nd-language>span{display:none!important}html body.nd-v42 .nd-language{padding:0 4px;gap:0;min-width:52px}html body.nd-v42 .nd-language select{max-width:54px;width:54px;padding:4px;height:44px}html body.nd-v42 .nd-balance-panel{position:fixed;left:10px;right:10px;top:70px;width:auto;max-height:calc(100dvh - 85px);overflow:auto}}

/* Shared compact account controls; avatar stays last in DOM and visually. */
html body.nd-v42 .top #userbar { display: flex; align-items: center; flex-wrap: nowrap; gap: .5rem; }
html body.nd-v42 .top .nd-app-actions { gap: .25rem; margin: 0; }
html body.nd-v42 .top .nd-app-actions button { width: 2.75rem; min-width: 2.75rem; height: 2.75rem; padding: .625rem; }
html body.nd-v42 .nd-install > span { display: none !important; }
html body.nd-v42 .top .avatar { flex: 0 0 auto; }
html body.nd-v42 .top .nd-balance-menu > summary { width: auto !important; min-width: 2.75rem !important; padding: .5rem .625rem !important; gap: .375rem; }
html body.nd-v42 .top .nd-balance-menu > summary > .nd-balance-amount { display: inline !important; font-variant-numeric: tabular-nums; font-weight: 650; }
html body.nd-v42 .top .nd-balance-menu > summary > .nd-credit-mark { display: inline !important; color: var(--nd-brand); }
html body.nd-v42 .nd-balance-caption { font-size: 1.25rem; }
.nd-balance-plan { margin: 0; padding: .25rem .625rem .625rem; font-size: .8125rem; color: var(--nd-secondary); }
html[data-theme] body.nd-v42 .nd-theme-toggle { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 3.5rem; width: 3.5rem; min-width: 3.5rem; height: 2.75rem; padding: 0; border: 0 !important; background: transparent !important; }
html body.nd-v42 .top .nd-language { height: 2.75rem; min-height: 2.75rem; padding: 0 .25rem; }
html body.nd-v42 .top .nd-language > span { display: none; }
html body.nd-v42 .top .nd-language select { min-height: 2.75rem !important; height: 2.75rem; width: 3rem !important; cursor: pointer; }
@media (max-width: 600px) {
  html body.nd-v42 .top { padding-inline: .375rem !important; gap: .25rem !important; }
  html body.nd-v42 .top #userbar { gap: .125rem !important; margin-left: auto !important; }
  html[data-theme] body.nd-v42 .top .nd-theme-toggle { flex-basis: 2.75rem; width: 2.75rem; min-width: 2.75rem; }
  html body.nd-v42 .top .nd-theme-track { width: 2.5rem; height: 1.5rem; }
  html body.nd-v42 .top .nd-theme-thumb { width: 1.125rem; height: 1.125rem; }
  html body.nd-v42 .top .nd-theme-toggle[aria-checked="true"] .nd-theme-thumb { transform: translateX(1rem); }
  html body.nd-v42 .top .nd-theme-track svg { width: .75rem; height: .75rem; }
  html body.nd-v42 .top .nd-theme-sun { left: .25rem; }
  html body.nd-v42 .top .nd-theme-moon { right: .25rem; }
  html body.nd-v42 .top .nd-balance-menu > summary { padding-inline: .375rem !important; gap: .25rem; font-size: .75rem; }
  html body.nd-v42 .top .nd-balance-menu > summary > .nd-credit-mark { display: none !important; }
  html body.nd-v42 .top .nd-language { min-width: 2.875rem; width: 2.875rem; padding: 0; margin: 0; }
  html body.nd-v42 .top .nd-language select { width: 2.75rem !important; max-width: 2.75rem; padding: 0 !important; }
}
@media (prefers-reduced-motion: reduce) { .nd-theme-track, .nd-theme-thumb { transition: none; } }

/* Version information belongs to the existing bell, never a floating interruption. */
.nd-studio-dot{position:absolute;right:5px;bottom:5px;width:7px;height:7px;border-radius:50%;background:#96aaa6;box-shadow:0 0 0 2px var(--nd-surface,#293b3a);pointer-events:none}
.nd-bell[data-studio-state="ready"] .nd-studio-dot{background:#6cdb9b}
.nd-bell[data-studio-state="offline"] .nd-studio-dot{background:#e5b85c}
.nd-bell[data-studio-state="error"] .nd-studio-dot{background:#ff928c}
.nd-studio-status{margin:12px 0 16px;padding:14px;border:1px solid var(--nd-border,#78968b40);border-radius:14px;background:var(--nd-surface-raised,#73928b0d);display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;align-items:start}
.nd-studio-status h3{grid-column:1/-1;margin:0 0 8px;font-size:12px;font-weight:600;color:var(--nd-secondary,#a8b9b3)}
.nd-studio-status [data-studio-state]{grid-column:1/-1;margin:0;font-size:14px;font-weight:650;line-height:1.5;min-height:3em}
.nd-studio-status [data-studio-detail]{grid-column:1/-1;margin:4px 0 10px;font-size:12px;line-height:1.5;min-height:3em;color:var(--nd-secondary,#a8b9b3)}
.nd-studio-status [data-studio-check]{grid-column:1/-1;justify-self:start;min-height:44px;min-width:100px}
.nd-studio-status [data-studio-check]:disabled{opacity:.55;cursor:default}
.nd-studio-status[data-state="ready"] [data-studio-state]{color:var(--nd-success,#6cdb9b)}
.nd-studio-status[data-state="error"] [data-studio-state]{color:var(--nd-error,#ff928c)}
.nd-notifications .nd-install{display:flex;align-items:center;gap:8px;margin-top:10px;min-height:44px}
.nd-notifications .nd-install[hidden]{display:none}
html body.nd-v42 .nd-notifications .nd-install>span,.nd-notifications .nd-install>span{display:inline!important}
.nd-notifications .nd-install svg{width:18px;height:18px}
.nd-notifications button:focus-visible,.nd-bell:focus-visible{outline:2px solid var(--nd-text,#eff4ef);outline-offset:3px}
html[data-theme="light"] .nd-studio-status[data-state="ready"] [data-studio-state]{color:#176d43}
html[data-theme="light"] .nd-studio-status[data-state="error"] [data-studio-state]{color:#b82929}
html[data-theme="light"] .nd-bell[data-studio-state="ready"] .nd-studio-dot{background:#176d43}
html[data-theme="light"] .nd-bell[data-studio-state="offline"] .nd-studio-dot{background:#926009}
html[data-theme="light"] .nd-bell[data-studio-state="error"] .nd-studio-dot{background:#b82929}
/* Status changes have no animation, including with reduced-motion enabled. */
