:root {
  --bg: #0b0f1a;
  --bg-elevated: #111827;
  --sidebar: #0d1220;
  --panel: #151c2e;
  --panel-hover: #1a2238;
  --border: rgba(148, 163, 184, 0.12);
  --border-strong: rgba(148, 163, 184, 0.22);
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.35);
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.12);
  --danger: #f43f5e;
  --danger-bg: rgba(244, 63, 94, 0.12);
  --warning: #f59e0b;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --font: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(16, 185, 129, 0.06), transparent);
  pointer-events: none;
  z-index: 0;
}

#app { position: relative; z-index: 1; }

/* —— Login —— */
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 900px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-brand { display: none; }
}

.login-brand {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(145deg, #1e1b4b 0%, #0f172a 50%, #0b0f1a 100%);
  border-right: 1px solid var(--border);
}

.login-brand__logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}

.login-brand__mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #a855f7);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: 0 8px 32px var(--accent-glow);
}

.login-brand h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.login-brand p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 380px;
  margin: 0 0 28px;
}

.login-brand__features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.login-brand__features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.login-brand__features li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.login-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  box-shadow: var(--shadow);
}

.login-card h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 600;
}

.login-card .sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 28px;
}

/* —— Shell layout —— */
.shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.sidebar__mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #a855f7);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.sidebar__title {
  font-weight: 600;
  font-size: 1rem;
}

.sidebar__subtitle {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav a, .nav button.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  background: transparent;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}

.nav a:hover, .nav button.nav-item:hover {
  background: var(--panel-hover);
  color: var(--text);
}

.nav a.active, .nav button.nav-item.active {
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-hover);
}

.nav svg { flex-shrink: 0; opacity: 0.85; }

.sidebar__foot {
  margin-top: auto;
  padding: 16px 12px;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 32px;
  border-bottom: 1px solid var(--border);
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.topbar__meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 13px;
}

.user-chip__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #14b8a6);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
}

.content {
  padding: 28px 32px 48px;
  max-width: 1280px;
}

.section { display: none; }
.section.active { display: block; }

/* —— Stats —— */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  opacity: 0.5;
}

.stat-card__label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 8px;
}

.stat-card__value {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stat-card__hint {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 6px;
}

.stat-card--accent { border-color: rgba(99, 102, 241, 0.25); }
.stat-card--success { border-color: rgba(16, 185, 129, 0.25); }

/* —— Panels —— */
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
  overflow: hidden;
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
}

.panel__head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.panel__body { padding: 20px 22px; }

/* —— Table —— */
.table-wrap { overflow-x: auto; }

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  text-align: left;
  padding: 12px 14px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }

.data-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* —— Forms —— */
.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

label.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

input, select, textarea {
  font-family: inherit;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 14px;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

input.mono, .mono {
  font-family: var(--mono);
  font-size: 13px;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.1s, background 0.15s, box-shadow 0.15s;
}

.btn:active { transform: scale(0.98); }

.btn--primary {
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: #fff;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--accent-hover), #8b5cf6);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
}

.btn--ghost:hover {
  background: var(--panel-hover);
  color: var(--text);
}

.btn--danger {
  background: var(--danger-bg);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.btn--danger:hover { background: rgba(244, 63, 94, 0.2); }

.btn--sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn--icon {
  padding: 8px;
  min-width: 36px;
}

/* —— Badges —— */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 500;
}

.badge--on {
  background: var(--success-bg);
  color: #6ee7b7;
}

.badge--off {
  background: var(--danger-bg);
  color: #fda4af;
}

.badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* —— Campaign cards —— */
.campaign-list { display: flex; flex-direction: column; gap: 16px; }

.campaign-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.campaign-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border);
}

.campaign-card__title {
  font-weight: 600;
  font-size: 1rem;
}

.campaign-card__slug {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.campaign-card__body { padding: 20px; }

.weight-bar {
  display: flex;
  height: 6px;
  border-radius: 99px;
  overflow: hidden;
  background: var(--bg-elevated);
  margin-top: 12px;
  gap: 2px;
}

.weight-bar span {
  height: 100%;
  min-width: 4px;
  border-radius: 2px;
}

.routes-table input { padding: 8px 10px; font-size: 13px; }

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-state svg { opacity: 0.4; margin-bottom: 12px; }

/* —— Link copy —— */
.link-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.link-cell code {
  flex: 1;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-hover);
  word-break: break-all;
}

/* —— Toast —— */
.toast-root {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--panel);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  font-size: 14px;
  animation: toast-in 0.3s ease;
  max-width: 320px;
}

.toast--success { border-left: 3px solid var(--success); }
.toast--error { border-left: 3px solid var(--danger); }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.alert {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-top: 12px;
}

.alert--error {
  background: var(--danger-bg);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.25);
}

.hint-block {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.hint-block strong { color: var(--accent-hover); }

@media (max-width: 768px) {
  .shell { flex-direction: column; }
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }
  .content { padding: 20px 16px; }
  .topbar { padding: 16px; flex-wrap: wrap; }
}

/* —— 简洁版单页 —— */
.login-simple {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-simple .login-card {
  width: 100%;
  max-width: 380px;
}

.login-simple h1 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.btn--block { width: 100%; margin-top: 20px; }

.top-simple {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.top-simple strong { font-size: 1.1rem; margin-right: 12px; }

.top-simple__actions { display: flex; gap: 8px; }

.muted { color: var(--text-muted); font-size: 13px; }

.main-simple {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.toolbar h2 { margin: 0; font-size: 1.15rem; }

.tip {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.node-rows { display: flex; flex-direction: column; gap: 12px; }

.node-row {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.node-row__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.node-row__name {
  font-size: 1rem;
  font-weight: 600;
  border: none;
  background: transparent;
  padding: 4px 0;
  flex: 1;
}

.node-row__url { margin-bottom: 8px; }

.node-row__auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

@media (max-width: 520px) {
  .node-row__auth { grid-template-columns: 1fr; }
}

.node-row__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.node-row__meta {
  display: grid;
  grid-template-columns: 1fr minmax(90px, 120px) minmax(120px, 160px);
  gap: 10px;
  align-items: center;
}

.node-row__limit {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

.node-row__limit input {
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 13px;
}

.node-row__status { font-size: 12px; }
.node-row__status.ok { color: #6ee7b7; }
.node-row__status.err { color: #fda4af; }

.empty { color: var(--text-muted); text-align: center; padding: 32px; }

.records-fold {
  margin-top: 28px;
  padding: 12px 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.records-fold summary {
  cursor: pointer;
  user-select: none;
  margin-bottom: 12px;
}

/* Toggle switch */
.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.switch input { display: none; }

.switch__slider {
  width: 44px;
  height: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 99px;
  position: relative;
  transition: background 0.2s;
}

.switch__slider::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform 0.2s;
}

.switch input:checked + .switch__slider {
  background: var(--danger);
  border-color: var(--danger);
}

.switch input:checked + .switch__slider::after {
  transform: translateX(20px);
}

.switch__label {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* —— Login audits table (match proxy /pmxt) —— */
.audits-panel__head {
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
}

.audits-panel__desc {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.audits-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-left: auto;
}

.audits-filter-node {
  min-width: 140px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 13px;
}

.audits-search-wrap input {
  width: min(320px, 70vw);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 13px;
}

.audits-table-wrap {
  overflow-x: auto;
  padding: 0 !important;
}

.admin-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table thead tr {
  border-bottom: 1px solid var(--border-strong);
  background: var(--bg-elevated);
}

.admin-table th {
  padding: 12px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.admin-table td {
  padding: 12px 14px;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
}

.admin-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.admin-table tbody tr:hover {
  background: rgba(99, 102, 241, 0.08);
}

.admin-table .col-2fa {
  min-width: 200px;
  max-width: 360px;
}

.admin-table .col-note {
  min-width: 120px;
  max-width: 220px;
}

.audit-ts {
  white-space: nowrap;
  color: var(--text-secondary);
  font-family: var(--mono);
  font-size: 12px;
}

.field-mono {
  display: inline-block;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  font-family: var(--mono);
  font-size: 12px;
  color: #c7d2fe;
}

.field-mono-full {
  display: inline-block;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.45;
  color: #c7d2fe;
  word-break: break-all;
  white-space: normal;
}

.field-copyable {
  cursor: copy;
  border: none;
  text-align: left;
}

.field-copyable:hover {
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.35);
}

.action-chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  border: none;
  font-size: 12px;
  font-weight: 500;
  cursor: copy;
}

.action-chip-success {
  background: rgba(73, 170, 25, 0.15);
  color: #6abe39;
}

.action-chip-warning {
  background: rgba(216, 150, 20, 0.15);
  color: #e8b339;
}

.audit-tag {
  font-size: 12px;
}

.audit-tag--sky { color: #7dd3fc; }
.audit-tag--amber { color: #fbbf24; }
.audit-tag--danger { color: #f87171; }

.audit-note {
  font-size: 13px;
  color: var(--text-secondary);
}

.audits-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 48px 16px !important;
}

.manual-2fa-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 200px;
  max-width: 320px;
}

.manual-2fa-input {
  flex: 1;
  min-width: 120px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.manual-2fa-save {
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 12px;
  cursor: pointer;
}

.note-cell {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  max-width: 200px;
}

.note-preview {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.note-edit-btn {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 2px 4px;
}

.note-edit-btn:hover {
  color: var(--text-primary);
}

.action-chip-danger {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
}

.col-actions {
  white-space: nowrap;
  width: 72px;
}

.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  padding: 24px;
}

.confirm-overlay.hidden {
  display: none;
}

.confirm-panel {
  width: min(440px, 100%);
  background: var(--panel-bg, #1a1d24);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.note-textarea {
  width: 100%;
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  resize: vertical;
  min-height: 96px;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.confirm-title {
  margin: 0;
  font-size: 16px;
}

.confirm-desc.err {
  color: #f87171;
  font-size: 12px;
  margin-top: 8px;
}
