/* ORP Server Panel — "Game Host × Obsidian Gold" (design option 7) */
:root {
  --bg: #0c0d10;
  --sidebar: #101115;
  --surface: #14161b;
  --inset: #0f1014;
  --console: #08090b;
  --border: #22252c;
  --divider: #1b1d22;
  --text: #ece8e1;
  --text-2: #a39f97;
  --muted: #8e8a82;
  --faint: #6b675f;
  --gold: #c9a45c;
  --gold-hi: #e2c37f;
  --gold-ink: #15130e;
  --gold-soft: #1c1a15;
  --ok: #5fbf74;
  --ok-text: #8fd19e;
  --ok-bg: #121812;
  --ok-line: #2c3b2e;
  --warn: #d6a445;
  --bad: #f0a093;
  --bad-bg: #221413;
  --bad-line: #4a2622;
  --radius: 14px;
  --radius-lg: 18px;
  --display: Outfit, "Nunito Sans", system-ui, sans-serif;
  --body: "Nunito Sans", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --sidebar-w: 250px;
  --topbar-h: 58px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 var(--body); }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; }
h1 { font-size: 20px; }
h2 { font-size: 17px; }
a { color: var(--gold); }
a:hover { color: var(--gold-hi); }
code { font-family: var(--mono); color: var(--gold); font-size: .92em; }
.sub, .hint, .meta { color: var(--muted); font-size: 12.5px; }
.hint, .meta { margin: 6px 0 0; }
.mono { font-family: var(--mono); }
[hidden], .hidden { display: none !important; }

/* ---------------------------------------------------------- scrollbar -- */
* { scrollbar-width: thin; scrollbar-color: #34363d transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2e3037; border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }

/* ------------------------------------------------------------- layout -- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 30;
  display: flex; flex-direction: column; gap: 20px; padding: 22px 16px;
  background: var(--sidebar); border-right: 1px solid var(--border); overflow-y: auto;
}
.main { flex: 1; min-width: 0; margin-left: var(--sidebar-w); display: flex; flex-direction: column; }

.brand { display: flex; align-items: center; gap: 10px; padding: 0 6px; }
.brand strong { font-family: var(--display); font-size: 19px; font-weight: 600; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--gold); color: var(--gold); font-family: var(--display); font-weight: 700; font-size: 17px;
}

.server-chip {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
}
.server-chip-text { display: grid; min-width: 0; }
.server-chip-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--faint); }
.dot.ok { background: var(--ok); }
.dot.warn { background: var(--warn); }
.dot.bad { background: var(--bad); }

.nav { display: grid; gap: 3px; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 10px;
  color: var(--text-2); text-decoration: none; font-weight: 600;
}
.nav svg, .icon-link svg, .btn.icon svg {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.nav a:hover { background: var(--surface); color: var(--text); }
.nav a.active { background: var(--gold-soft); color: var(--gold-hi); }
.nav-label { margin: 12px 12px 4px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }

.viewer {
  margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
}
.viewer img, .viewer-avatar { width: 34px; height: 34px; border-radius: 50%; }
.viewer-text { display: grid; min-width: 0; flex: 1; }
.viewer-text > span:first-child { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-link { display: inline-flex; padding: 6px; border-radius: 8px; color: var(--muted); }
.icon-link:hover { color: var(--gold-hi); background: var(--gold-soft); }

.topbar {
  position: sticky; top: 0; z-index: 10; height: var(--topbar-h);
  display: flex; align-items: center; gap: 12px; padding: 0 28px;
  background: rgba(12, 13, 16, .9); backdrop-filter: blur(6px); border-bottom: 1px solid var(--border);
}
.topbar .sub { margin-left: auto; }
#menu-toggle { display: none; }

.page { padding: 24px 28px; display: grid; gap: 20px; align-content: start; }
.empty { color: var(--muted); margin: 0; }
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 25; }

/* ----------------------------------------------------- dashboard hero -- */
.hero {
  display: grid; gap: 22px; padding: 28px 30px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.hero-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.hero-title { display: grid; gap: 10px; min-width: 0; }
.hero-name { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-name h2 { font-size: 30px; font-weight: 700; line-height: 1.15; }
.badge {
  font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px;
  color: var(--ok-text); background: var(--ok-bg); border: 1px solid var(--ok-line);
}
.badge::before { content: "● "; }
.badge.bad { color: var(--bad); background: var(--bad-bg); border-color: var(--bad-line); }
.badge.warn { color: var(--warn); background: #1d1810; border-color: #4a3b1c; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  font-size: 13.5px; color: var(--text-2); padding: 5px 10px; border-radius: 8px;
  background: var(--inset); border: 1px solid var(--border); text-decoration: none;
}
.chip-link:hover { color: var(--gold-hi); border-color: var(--gold); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile { display: grid; gap: 8px; padding: 16px 18px; background: var(--inset); border-radius: var(--radius); align-content: start; }
.tile-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.tile-value { font-family: var(--display); font-size: 28px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile-value small { font-size: 17px; color: var(--muted); font-weight: 500; }
.tile-sub { font-size: 13px; color: var(--muted); }
.bar { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 3px; transition: width .4s; }
.bar i.hot { background: var(--bad); }

/* ------------------------------------------------ dashboard lower row -- */
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.dash-grid.single { grid-template-columns: minmax(0, 1fr); }
.console-card {
  display: flex; flex-direction: column; min-height: 360px; max-height: 520px;
  background: var(--console); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
}
.console-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--divider); }
.console-title { font-family: var(--display); font-weight: 600; font-size: 15px; }
.console-head a { font-size: 13px; font-weight: 700; text-decoration: none; }
.console-body {
  flex: 1; margin: 0; padding: 14px 18px; overflow: auto;
  font: 12.5px/1.75 var(--mono); color: #a8a399; white-space: pre-wrap; word-break: break-word;
}
.console-foot { padding: 11px 18px; border-top: 1px solid var(--divider); font-size: 12.5px; color: var(--muted); }

.side-col { display: grid; gap: 12px; align-content: start; }
.side-title { font-size: 16px; }
.service-rows { display: grid; gap: 12px; }
.service-row {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.service-row-text { display: grid; flex: 1; min-width: 0; }
.service-row-name { font-weight: 700; font-size: 14.5px; }
.service-row-meta { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.service-row-actions { display: flex; gap: 6px; }
.server-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; padding: 8px 4px; font-size: 13px; color: var(--muted); }
.server-line b { color: var(--text-2); font-weight: 600; }

/* ------------------------------------------------------------ buttons -- */
.btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--border); color: var(--text); font: 600 13px/1.2 var(--body); cursor: pointer; text-decoration: none;
}
.btn:hover { border-color: var(--gold); color: var(--text); }
.btn:disabled { cursor: not-allowed; opacity: .55; }
.btn.primary { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.btn.primary:hover { background: var(--gold-hi); border-color: var(--gold-hi); color: var(--gold-ink); }
.btn.danger { background: var(--bad-bg); border-color: var(--bad-line); color: var(--bad); }
.btn.danger:hover { border-color: var(--bad); color: var(--bad); }
.btn.ghost { background: transparent; }
.btn.big { padding: 12px 22px; border-radius: 12px; font: 600 15px/1.2 var(--display); }
.btn.big:disabled { background: #1a1b1f; border-color: #1a1b1f; color: #5f5b54; opacity: 1; }
.btn.small { padding: 5px 10px; font-size: 12px; border-radius: 8px; }
.btn.icon { padding: 7px; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .nav a:focus-visible, .chip-link:focus-visible, .icon-link:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}

/* ------------------------------------------------------ panels, lists -- */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 24px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.panel > .panel-head { margin-bottom: 14px; }
.panel > .panel-head + .hint { margin-top: -6px; }
.panel-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.list { list-style: none; margin: 14px 0 8px; padding: 0; display: grid; gap: 8px; }
.list li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; background: var(--inset); border-radius: 10px; font-size: 13.5px; }
.list li .muted { color: var(--muted); }

input[type=search], input[type=text], input[type=password],  select, .field input:not([type=checkbox]), .field textarea {
  background: var(--inset); border: 1px solid var(--border); color: var(--text);
  border-radius: 10px; padding: 8px 11px; font: 13px var(--body);
}
.check { color: var(--muted); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
input[type=checkbox] { accent-color: var(--gold); }

/* --------------------------------------------------------------- logs -- */
.logs-page { height: calc(100vh - var(--topbar-h)); grid-template-rows: auto 1fr; }
.logs-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.logs-toolbar select { min-width: 210px; }
.logs-toolbar input[type=search] { width: 240px; }
.logs-body {
  margin: 0; min-height: 0; overflow: auto; padding: 16px 18px;
  background: var(--console); border: 1px solid var(--border); border-radius: var(--radius-lg);
  font: 12.5px/1.7 var(--mono); color: #a8a399; white-space: pre-wrap; word-break: break-word;
}

/* -------------------------------------------------------------- files -- */
.conn { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 14px 0; font-size: 13.5px; }
.conn dt { color: var(--muted); }
.conn dd { margin: 0; font-family: var(--mono); word-break: break-all; }
.notice { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; font-size: 13px; background: var(--gold-soft); border: 1px solid #3a3222; }
.key-form { display: grid; gap: 10px; max-width: 760px; }
.field { display: grid; gap: 6px; color: var(--muted); font-size: 12.5px; }
.field input:not([type=checkbox]), .field textarea { width: 100%; font: 13px/1.45 var(--body); }
.field textarea { resize: vertical; word-break: break-all; }
.howto { margin-top: 14px; font-size: 13.5px; }
.howto summary { cursor: pointer; color: var(--gold); font-weight: 600; }
.howto ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 7px; }

/* ------------------------------------------------------ users/activity -- */
.dialog.wide { width: min(720px, calc(100vw - 24px)); }
.field-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.preset { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.preset button {
  background: var(--inset); border: 1px solid var(--border); color: var(--text-2); cursor: pointer;
  border-radius: 8px; padding: 3px 9px; font: 600 12px var(--body);
}
.preset button:hover { border-color: var(--gold); color: var(--gold-hi); }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.perm {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 12px;
  background: var(--inset); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-size: 13px; font-weight: 600;
}
.perm:has(select:not(.off)) { border-color: #3a3222; }
.perm select { padding: 5px 8px; }
.perm select.off { color: var(--muted); }
.files-fields { display: grid; gap: 14px; }
.table-wrap { overflow-x: auto; margin-top: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; padding: 8px 10px; white-space: nowrap; }
td { padding: 9px 10px; border-top: 1px solid var(--divider); }
td.muted { color: var(--muted); white-space: normal; }
.user-list { display: grid; gap: 8px; margin-top: 14px; }
.user-row {
  display: grid; grid-template-columns: auto minmax(120px, 200px) 1fr auto; align-items: center; gap: 14px;
  width: 100%; padding: 12px 14px; text-align: left; cursor: pointer; font: inherit; color: var(--text);
  background: var(--inset); border: 1px solid var(--border); border-radius: 12px;
  transition: border-color .15s, background .15s;
}
.user-row:hover, .user-row:focus-visible { border-color: #3a3222; background: var(--gold-soft); outline: none; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--gold-soft); border: 1px solid #3a3222; color: var(--gold-hi); font: 700 14px var(--display, var(--body));
}
.user-name { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.chip.lvl-logs::before { background: #9cc3e6; }
.chip.lvl-control::before { background: var(--gold); }
.chip.files::before { background: #cdb3e8; }
.chip.none { border-style: dashed; color: var(--muted); }
.chip.none::before { display: none; }
.user-edit { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.user-row:hover .user-edit { color: var(--gold-hi); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; color: var(--muted); font-size: 12px; }
.legend .chip { background: none; border: 0; padding: 0; color: var(--muted); font-weight: 500; }
.push-left { margin-right: auto; }
@media (max-width: 720px) {
  .user-row { grid-template-columns: auto 1fr auto; }
  .user-row .chips { grid-column: 1 / -1; }
}
.row-actions { display: flex; gap: 6px; }
.activity-table td:first-child { white-space: nowrap; color: var(--muted); font-family: var(--mono); font-size: 12px; }
.activity-table td:nth-child(2) { white-space: nowrap; }
.tag { padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--inset); border: 1px solid var(--border); color: var(--muted); }
.tag.auth { color: #9cc3e6; }
.tag.action { color: var(--gold-hi); }
.tag.users { color: #cdb3e8; }
#activity-filter { width: 200px; }

/* ------------------------------------------------------------- dialog -- */
.dialog {
  width: min(580px, calc(100vw - 24px)); background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px;
}
.dialog::backdrop { background: rgba(0, 0, 0, .65); }
.dialog form { display: grid; gap: 14px; }
#sftp-fields { display: grid; gap: 14px; }
.field-label { color: var(--text-2); font-weight: 600; font-size: 13px; }
.folder-all { margin-top: 2px; display: grid; gap: 6px; }
.folder.covered-item { opacity: .45; pointer-events: none; }
.folder-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px;
  max-height: 230px; overflow: auto; padding: 2px 2px 4px;
}
.folder-grid.covered { opacity: .45; pointer-events: none; }
.folder {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px; cursor: pointer;
  background: var(--inset); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); font-size: 13px; font-weight: 600;
}
.folder:hover { border-color: #3a3222; }
.folder:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); color: var(--gold-hi); }
.folder input { margin: 0; flex: none; }
.folder span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder-everything { font-weight: 700; }
.folder-empty { color: var(--muted); font-size: 13px; padding: 6px 2px; }
.pass-form { display: grid; gap: 10px; max-width: 620px; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--divider); }
.form-title { font-size: 15px; }
.pass-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .pass-fields { grid-template-columns: minmax(0, 1fr); } }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }

.toast {
  position: fixed; right: 18px; bottom: 18px; z-index: 50; max-width: 420px;
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--gold);
  padding: 12px 16px; border-radius: 12px; white-space: pre-wrap; font-size: 13.5px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .5);
}
.toast.error { border-left-color: var(--bad); }

/* -------------------------------------------------------------- login -- */
.login-page { min-height: 100vh; display: grid; place-items: center; }
.login-box {
  width: min(390px, calc(100vw - 32px)); padding: 32px; text-align: center; display: grid; gap: 14px; justify-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.login-box .brand-mark { width: 48px; height: 48px; border-radius: 12px; font-size: 22px; }
.login-box h1 { font-size: 24px; }
.login-error { margin: 0; padding: 9px 12px; border-radius: 10px; font-size: 13px; background: var(--bad-bg); border: 1px solid var(--bad-line); color: var(--bad); }
.btn.discord { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); padding: 11px 20px; font: 600 15px var(--display); border-radius: 12px; }
.btn.discord:hover { background: var(--gold-hi); border-color: var(--gold-hi); color: var(--gold-ink); }

/* ------------------------------------------------------------- mobile -- */
@media (max-width: 1100px) {
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0, 0, 0, .6); }
  .sidebar.open { transform: none; }
  .main { margin-left: 0; }
  #menu-toggle { display: inline-flex; }
  .page { padding: 14px; }
  .topbar { padding: 0 12px; }
  .topbar .sub { display: none; }
  .hero { padding: 20px; }
  .hero-name h2 { font-size: 24px; }
  .logs-toolbar input[type=search] { width: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  .sidebar, .bar i { transition: none; }
}

/* ------------------------------------------------------- console lines -- */
.log-line { display: flex; gap: 12px; padding: 0 4px; border-radius: 4px; }
.log-line:hover { background: rgba(255, 255, 255, .03); }
.log-ts { flex: none; color: var(--faint); user-select: none; font-variant-numeric: tabular-nums; }
.log-msg { min-width: 0; white-space: pre-wrap; word-break: break-word; }
.sev-warn { color: #e6c15a; }
.sev-error { color: #f0786a; }

/* ------------------------------------------------- server (VPS) card -- */
.server-card {
  display: grid; gap: 14px; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.server-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.server-card-title { font-family: var(--display); font-weight: 600; font-size: 15px; }
.meters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.meter { display: grid; gap: 6px; align-content: start; }
.meter-label { font-size: 12px; font-weight: 600; color: var(--muted); }
.meter-value { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.meter-sub { font-size: 12px; color: var(--muted); }
.meter .bar { height: 5px; }

/* ------------------------------------------------------- more menu -- */
.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-list {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 330px;
  display: grid; gap: 2px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .55);
}
.menu-list button {
  display: grid; gap: 2px; text-align: left; padding: 9px 11px; border: none; border-radius: 9px;
  background: transparent; color: var(--text); font: 13px/1.35 var(--body); cursor: pointer;
}
.menu-list button:hover, .menu-list button:focus-visible { background: var(--gold-soft); }
.menu-list button b { font-weight: 700; }
.menu-list button span { color: var(--muted); font-size: 12px; }

/* ------------------------------------------------- SFTP app chooser -- */
.app-dialog { display: grid; gap: 16px; }
.app-dialog section { display: grid; gap: 12px; }
.app-dialog h2 { font-size: 18px; }
.app-options { display: grid; gap: 8px; }
.app-option {
  display: grid; gap: 3px; text-align: left; padding: 14px 16px; cursor: pointer;
  background: var(--inset); border: 1px solid var(--border); border-radius: 12px; color: var(--text); font: 14px/1.35 var(--body);
}
.app-option:hover, .app-option:focus-visible { border-color: var(--gold); background: var(--gold-soft); }
.app-option b { font: 600 16px var(--display); }
.app-option span { color: var(--muted); font-size: 13px; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; }
.app-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.field input[readonly] { color: var(--muted); cursor: default; }
