:root {
  --bg-app: #0f0f12;
  --bg-surface: #0f0f12;
  --bg-raised: #1e1e24;
  --bg-panel: #1a1a20;
  --bg-input: #121218;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.13);
  --text: #f4f6fa;
  --text-muted: #9aa3b8;
  --accent: #ff3e5e;
  --accent-soft: #ff5f7a;
  --accent-dim: rgba(255, 62, 94, 0.14);
  --radius: 8px;
  --radius-lg: 10px;
  --ctrl-h: 36px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  --scrollbar-thumb: #2f3a4a;
  --scrollbar-thumb-hover: #3d4d64;
  --scrollbar-track: rgba(15, 18, 25, 0.55);
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 5px;
}

*::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 5px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: var(--scrollbar-thumb-hover);
  background-clip: padding-box;
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

html {
  height: 100%;
}

body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.45;
  background: var(--bg-app);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.app.app--behindModal {
  filter: brightness(0.52) saturate(0.88);
  pointer-events: none;
  user-select: none;
  transition: filter 0.12s ease;
}

.app {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr minmax(220px, 280px);
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "topbar topbar"
    "main right"
    "status status";
  min-height: 0;
}

/* ——— Top bar ——— */
.topbar {
  grid-area: topbar;
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  min-height: 56px;
  padding: 0 16px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}

.topbarBrand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}

.topbarLogo {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--accent) 0%, #c41f3f 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 2px 10px rgba(255, 62, 94, 0.35);
}

.topbarLogo__inner {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.05em;
  color: #fff;
  line-height: 1;
}

.topbarBrandName {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}

.topbarBrand:hover .topbarBrandName {
  color: #fff;
}

.brand {
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 2px;
  background: var(--accent);
  vertical-align: middle;
  transform: translateY(-1px);
}

.announcementBanner {
  flex: 1;
  min-width: 140px;
  max-width: min(760px, 100%);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 8px 16px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid rgba(255, 62, 94, 0.35);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(122, 30, 45, 0.65) 0%, rgba(60, 12, 24, 0.88) 100%);
}

.announcementIcon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fde047, #eab308);
  color: inherit;
  font-size: 15px;
  line-height: 1;
}

.announcementBanner p {
  margin: 0;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fde8ec;
  font-size: 12px;
  font-weight: 600;
}

.announcementLinkBtn {
  height: 26px;
  min-height: 26px;
  flex-shrink: 0;
  padding: 0 10px;
  border-color: rgba(255, 62, 94, 0.45);
  background: rgba(255, 62, 94, 0.22);
  color: #fff;
  font-size: 12px;
}

.topbarActions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 0;
  margin-left: auto;
  overflow: visible;
  scrollbar-width: none;
  padding: 8px 0;
}

.topbarActions::-webkit-scrollbar {
  display: none;
}

.topbarActions .topbarCreateBtn {
  flex-shrink: 0;
  height: 34px;
  min-height: 34px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
}

.topbarActions .topbarServersBtn {
  flex-shrink: 0;
  height: 34px;
  min-height: 34px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.topbarServersBtn:hover:enabled {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.topbarServersBtn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.topbarCluster {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.topbarCluster + .topbarCluster {
  padding-left: 12px;
  margin-left: 2px;
  border-left: 1px solid var(--border);
}

.headerMenu {
  position: relative;
}

.headerMenuBtn {
  gap: 8px;
  justify-content: flex-start;
  min-width: 0;
}

.topbar .headerMenuBtn {
  height: 34px;
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

.topbar .headerMenuBtn:hover:enabled {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.headerMenuBtn::after {
  content: "☰";
  color: var(--text-muted);
  font-size: 13px;
}

.headerPanel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 50;
  width: min(430px, calc(100vw - 32px));
  max-height: calc(100vh - 92px);
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: #10151f;
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.52);
}

.headerPanel--settings {
  width: min(390px, calc(100vw - 32px));
}

.panelMenuHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.panelMenuHead h2,
.aboutBox h3 {
  margin: 0;
  font-size: 14px;
}

.panelMenuHead p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

#activeAccountSummary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.accountList {
  display: grid;
  gap: 8px;
}

.accountRow {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.accountSkull {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: block;
  border-radius: 4px;
  background-color: var(--bg-input);
}

.accountSkull--pixel {
  image-rendering: pixelated;
}

.headerMenuBtn .accountSkull,
#activeAccountSummary .accountSkull {
  width: 24px;
  height: 24px;
}

.headerAccountLabel {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.accountName {
  min-width: 0;
}

.accountName strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.accountName span {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 11px;
}

.accountRow--active {
  border-color: rgba(255, 62, 94, 0.52);
  background: var(--accent-dim);
}

.accountListEmpty {
  margin: 0;
  padding: 14px;
  color: var(--text-muted);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}

.settingsMenuGroup {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.settingsMenuGroup button {
  justify-content: flex-start;
}

.settingsToggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
}

.settingsToggle strong,
.settingsToggle small {
  display: block;
}

.settingsToggle strong {
  font-size: 13px;
  font-weight: 600;
}

.settingsToggle small {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
}

.settingsToggle .settingsMutedNote {
  margin-top: 4px;
  color: var(--text-muted);
  opacity: 0.88;
}

.settingsToggle input {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.aboutBox {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.aboutBox dl {
  margin: 10px 0 0;
}

.aboutBox dl div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.aboutBox dt {
  color: var(--text-muted);
}

.aboutBox dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* ——— Controls: one height everywhere ——— */
button,
select,
input:not([type="checkbox"]):not([type="radio"]) {
  height: var(--ctrl-h);
  min-height: var(--ctrl-h);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius);
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  background: var(--bg-raised);
  color: var(--text);
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

button:hover:enabled {
  background: var(--bg-raised);
  border-color: rgba(255, 62, 94, 0.45);
}

button:active:enabled {
  transform: translateY(1px);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btnDanger {
  color: #fb7185;
}

button.btn--primary,
.launchBtn,
.topbarCreateBtn {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
}

button.btn--primary:hover:enabled,
.launchBtn:hover:enabled,
.topbarCreateBtn:hover:enabled {
  background: var(--accent-soft);
  border-color: transparent;
}

select,
input:not([type="checkbox"]):not([type="radio"]),
textarea {
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  color: var(--text);
  border-radius: var(--radius);
}

select,
input:not([type="checkbox"]):not([type="radio"]) {
  padding: 0 10px;
}

select {
  cursor: pointer;
  min-width: 120px;
}

textarea {
  min-height: 80px;
  padding: 10px 12px;
  resize: vertical;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.4;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

.topbarActions select {
  min-width: 160px;
  max-width: 200px;
}

.topbarActions input#offlineUsername {
  width: 160px;
  flex-shrink: 0;
}

/* ——— Modal ——— */
.modalBackdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.62);
}

.modalCard {
  width: min(440px, 100%);
  padding: 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.56);
}

.modalCard--narrow {
  width: min(400px, 100%);
}

.modalTitleLike {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.exportPickGrid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

button.exportPickChoice {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.exportPickCancel {
  margin-top: 4px;
  background: transparent;
  border-color: var(--border);
  color: var(--text-muted);
}

.exportPickCancel:hover:enabled {
  border-color: var(--border-strong);
  color: var(--text);
}

#launcherExportBusyBackdrop {
  z-index: 10001;
}

.exportBusyCard {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 28px 22px;
}

.exportBusySpinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  animation: exportBusySpin 0.75s linear infinite;
}

@keyframes exportBusySpin {
  to {
    transform: rotate(360deg);
  }
}

.exportBusyText {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.exportBusyHint {
  margin: 0;
  max-width: 280px;
}

.exportBusyCard .exportProgressRow {
  width: 100%;
  max-width: 320px;
  margin-top: 4px;
}

.exportBusyCard .importProgressCaption {
  text-align: center;
}

.modalActions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

#appDialogInput {
  width: 100%;
  margin-top: 8px;
}

#appDialogConfirmBtn.btnDanger {
  background: #be123c;
  border-color: transparent;
  color: #fff;
}

#appDialogConfirmBtn.btnDanger:hover:enabled {
  background: #e11d48;
}

.accountAddChoices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.offlineAccountForm label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
}

/* ——— Main instance grid ——— */
.instancesMain {
  grid-area: main;
  min-height: 0;
  padding: 20px;
  overflow: auto;
  background: var(--bg-app);
}

#instances {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  align-content: start;
}

@media (min-width: 1180px) {
  #instances {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.instanceCard {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: auto;
  min-height: 140px;
  padding: 16px;
  overflow: hidden;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.instanceCard:hover {
  border-color: rgba(255, 62, 94, 0.38);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
}

.instanceCard--selected {
  border-color: rgba(255, 62, 94, 0.65);
  box-shadow: 0 0 0 1px rgba(255, 62, 94, 0.24);
}

.instanceCard__title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-transform: none;
  color: var(--text);
  min-width: 0;
  max-width: 100%;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.instanceCard__subtitle {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.instanceCard__meta {
  display: block;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.launchBtn {
  width: 100%;
  margin-top: auto;
}

/* ——— Typography ——— */
h1,
h2,
h3 {
  margin-top: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.panel > h2 {
  font-size: 15px;
  margin-bottom: 12px;
  color: var(--text);
}

.panelHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.panelHead h3 {
  flex: 1;
  margin: 0;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.btnIcon {
  width: var(--ctrl-h);
  min-width: var(--ctrl-h);
  padding: 0;
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1;
  font-weight: 400;
  color: var(--text-muted);
  background: transparent;
  border-color: var(--border);
}

.btnIcon:hover:enabled {
  color: var(--text);
  background: var(--bg-raised);
  border-color: var(--border-strong);
}

.instanceSettingsSummary {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* ——— Right panel ——— */
.rightPanelSidebar {
  /* Instance quick actions mount here when an instance is selected. */
}

.rightPanel {
  grid-area: right;
  min-height: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg-surface);
  border-left: 1px solid var(--border);
}

.sectionTitle {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 8px;
  text-transform: none;
}

.panelHint {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
}

.instanceManageSection {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.modrinthImportRow {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.createPanelMrpackRow {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.importLabel {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.panelToggleBtn {
  width: 100%;
}

.btnBlock {
  width: 100%;
}

.panel {
  background: var(--bg-app);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 0;
}

.panel:last-child {
  margin-bottom: 0;
}

.row,
.col {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.col {
  flex-direction: column;
}

.col > label + input,
.col > label + select,
.col > label + textarea {
  margin-top: 0;
}

.col .row {
  margin-bottom: 0;
}

.col .row input {
  flex: 1;
  min-width: 0;
}

.col .row button {
  flex-shrink: 0;
}

.tabBtn {
  flex: 1;
  min-width: 0;
}

.tabBtn.active {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: #fff;
}

.tabBtn:not(.active) {
  background: var(--bg-raised);
}

.instanceQuickActionsBtns {
  margin-bottom: 0;
}

/* ——— Status ——— */
.statusDock {
  grid-area: status;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-top: 1px solid var(--border);
  background: #07080c;
}

.importProgressRow {
  flex-shrink: 0;
  padding: 8px 16px 6px;
}

.importProgressRow.hidden {
  display: none;
}

.importProgressTrack {
  height: 8px;
  border-radius: 4px;
  background: var(--bg-raised);
  overflow: hidden;
  border: 1px solid var(--border);
}

.importProgressFill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.12s ease-out;
}

.launchProgressFill {
  width: 8%;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
}

.launchProgressRow .importProgressCaption {
  color: var(--text);
}

.importProgressCaption {
  margin: 6px 0 0;
  padding: 0;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.statusFooter {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
}

.statusBar {
  grid-area: unset;
  margin: 0;
  flex: 1;
  min-width: 0;
  min-height: 0;
  border-top: none;
  background: transparent;
  padding: 8px 0;
  max-height: 68px;
  overflow-y: auto;
  font-size: 12px;
  line-height: 1.45;
  font-family: inherit;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-muted);
}

.footerActions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.footerActionBtn {
  height: 26px;
  min-height: 26px;
  padding: 0 10px;
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-muted);
  font-size: 12px;
  text-decoration: none;
}

.footerActionBtn:hover:enabled {
  color: var(--text);
}

.statusBar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.statusBar::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 3px;
  border: 1px solid transparent;
  background-clip: padding-box;
}

.statusBar::-webkit-scrollbar-thumb:hover {
  background-color: var(--scrollbar-thumb-hover);
}

/* ——— Context menu ——— */
.ctxMenu {
  position: fixed;
  z-index: 9999;
  min-width: 200px;
  padding: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.ctxMenu.hidden {
  display: none;
}

.ctxItem {
  padding: 9px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  user-select: none;
  color: var(--text);
  font-size: 13px;
}

.ctxItem:hover {
  background: var(--accent-dim);
}

.ctxDisabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ctxDanger {
  color: #fb7185;
}

.ctxSeparator,
.ctxSeparatorItem {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}

.hidden {
  display: none !important;
}
