/* Tong toi giong ban desktop (#1e1e1e / #2d2d2d), mau nut giu nguyen y nghia cu. */
:root {
  --bg: #1e1e1e; --panel: #252526; --field: #2d2d2d; --line: #3a3a3a;
  --text: #f2f2f2; --muted: #9a9a9a; --accent: #4a90e2;
  --go: #27ae60; --danger: #c0392b; --warn: #e67e22; --neutral: #5f6b6d;
  --ok: #5fd38d; --err: #ff7b72; --head: #f0b35a;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { background: var(--bg); color: var(--text); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: var(--accent); text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }

/* ── Khung ── */
.topbar { display: flex; align-items: center; gap: 16px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; color: var(--text); letter-spacing: .02em; }
.topbar nav { margin-left: auto; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar nav form { margin: 0; }
.link { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; }
.link:hover { color: var(--text); }

.dash { display: flex; flex-direction: column; gap: 12px; padding: 12px 16px 16px; height: calc(100vh - 45px - 42px); min-height: 560px; }
.page { padding: 16px; max-width: 1000px; margin: 0 auto; }
.page h1 { font-size: 20px; margin: 4px 0 16px; }

/* ── Form ── */
input, select { background: var(--field); border: 1px solid var(--line); border-radius: 4px; padding: 6px 8px; min-width: 0; }
input:focus, select:focus { outline: none; border-color: var(--accent); }
.btn { background: var(--neutral); border: 0; border-radius: 4px; padding: 7px 12px; font-weight: 600; cursor: pointer; white-space: nowrap; color: #fff; }
.btn:hover:not(:disabled) { filter: brightness(1.15); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--accent); }
.btn.go { background: var(--go); }
.btn.danger { background: var(--danger); }
.btn.warn { background: var(--warn); }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn.loading { position: relative; color: transparent; }
.btn.loading::after { content: ""; position: absolute; inset: 0; margin: auto; width: 14px; height: 14px;
  border: 2px solid #fff; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Dang nhap ── */
.auth { flex: 1; display: grid; place-items: center; padding: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 20px; }
.auth .card { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 12px; }
.auth h1 { margin: 0 0 4px; font-size: 20px; }
.auth label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 13px; }
.auth input { color: var(--text); font-size: 14px; padding: 8px 10px; }
.auth .btn { padding: 9px; margin-top: 4px; }
.back { font-size: 13px; text-align: center; }
.msg { margin: 0; padding: 8px 10px; border-radius: 4px; font-size: 13px; }
.msg.err { background: rgba(255,123,114,.12); color: var(--err); }
.msg.ok { background: rgba(95,211,141,.12); color: var(--ok); }

/* ── Thanh cong cu ── */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.field { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.field.cred { flex: 1 1 420px; margin: 0; }
.balance { color: #00e676; font-weight: 700; white-space: nowrap; }
.spacer { flex: 1; }

/* ── Bang campaign ── */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; display: flex; flex-direction: column; min-height: 0; }
.panel:first-of-type { flex: 1.2; }
.panel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.panel-head h2 { font-size: 14px; margin: 0; }
.pill { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--field); color: var(--muted); border: 1px solid var(--line); }
.pill.on { color: #0e1a12; background: var(--ok); border-color: var(--ok); font-weight: 700; }
.panel-head .pill { margin-left: auto; }

.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 4px; }
.camp-wrap { flex: 1; min-height: 140px; }
.grid { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.grid th, .grid td { padding: 6px 10px; text-align: center; border-bottom: 1px solid #303030; }
.grid th { position: sticky; top: 0; background: #333; font-weight: 600; font-size: 13px; z-index: 1; }
#campTable th[data-col] { cursor: pointer; user-select: none; }
#campTable th[data-col]::after { content: attr(data-arrow); margin-left: 4px; font-size: 10px; color: var(--accent); }
#campTable td:nth-child(3) { text-align: left; }
#campTable tbody tr { cursor: pointer; }
#campTable tbody tr:hover { background: #2f2f30; }
#campTable tbody tr.sel { background: rgba(74,144,226,.28); }
.grid td.chk, .grid th.chk { width: 36px; padding: 6px; }
.chk input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.st-run { color: var(--ok); }
.st-stop { color: var(--muted); }
.empty { color: var(--muted); padding: 24px !important; cursor: default; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* ── Log ── */
.log-panel { flex: 1; padding: 0; overflow: hidden; }
.log { margin: 0; padding: 10px 12px; height: 100%; min-height: 160px; overflow: auto; background: var(--field);
  font: 12.5px/1.5 Consolas, "Cascadia Mono", Menlo, monospace; white-space: pre-wrap; word-break: break-word; }
.l-ok { color: var(--ok); } .l-err { color: var(--err); } .l-head { color: var(--head); }

/* ── Hop thoai cai dat ── */
dialog { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 0;
  width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 32px); }
dialog::backdrop { background: rgba(0,0,0,.6); }
.opt-form { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.opt-form h3 { margin: 0 0 4px; font-size: 16px; }
.opt-form h4 { margin: 12px 0 2px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--warn); }
.opt-form label { display: grid; grid-template-columns: 1fr 130px; align-items: center; gap: 12px; color: #ccc; font-size: 13px; }
.opt-form label.check { display: flex; gap: 8px; color: var(--text); }
.opt-form label.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.opt-form .off { opacity: .4; pointer-events: none; }
.note { margin: 0; color: var(--muted); font-size: 12px; white-space: pre-line; }
.dlg-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }

.row-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.row-form input[type=email], .row-form input[type=text] { flex: 1 1 200px; }
.check { display: flex; align-items: center; gap: 6px; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #333; border: 1px solid var(--line);
  padding: 10px 16px; border-radius: 6px; box-shadow: 0 6px 24px rgba(0,0,0,.4); max-width: calc(100vw - 32px); z-index: 10; }

/* ── Dien thoai ── */
@media (max-width: 700px) {
  .dash { height: auto; }
  .panel:first-of-type { flex: none; }
  .camp-wrap { max-height: 55vh; }
  .log { height: 50vh; }
  .spacer { display: none; }
  .field.cred { flex-basis: 100%; flex-wrap: wrap; }
  .opt-form label { grid-template-columns: 1fr 110px; }
  .grid th, .grid td { padding: 6px; }
}

/* ── Nut tu toi uu tren tung dong ── */
.opt-col { width: 150px; }
.opt-cell { white-space: nowrap; }
.ib { display: inline-grid; place-items: center; width: 30px; height: 30px; margin: 0 2px; padding: 0; vertical-align: middle;
  border-radius: 50%; border: 1px solid var(--line); background: var(--field); color: var(--muted); cursor: pointer; }
.ib svg { width: 16px; height: 16px; fill: currentColor; }
.ib:hover:not(:disabled) { color: var(--text); border-color: #555; }
.ib:disabled { opacity: .5; cursor: default; }
.ib.toggle { color: var(--go); border-color: rgba(39,174,96,.5); }
.ib.toggle:hover:not(:disabled) { background: var(--go); color: #fff; }
.ib.toggle.on { background: var(--warn); border-color: var(--warn); color: #fff; }
.ib.toggle.on:hover:not(:disabled) { filter: brightness(1.12); }
.ib.edit:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: #fff; }
/* Da co cai dat rieng: cham xanh nho tren but chi */
.ib.edit.custom { position: relative; color: var(--text); }
.ib.edit.custom::after { content: ""; position: absolute; top: 2px; right: 2px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); border: 1px solid var(--panel); }
.next { display: inline-block; min-width: 38px; margin-left: 4px; font-size: 11px; color: var(--muted); vertical-align: middle; }
#campTable tbody tr.opt-on td:nth-child(2) { box-shadow: inset 3px 0 0 var(--warn); }
.dlg-sub { margin: -2px 0 6px; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 700px) { .opt-col { width: auto; } .next { display: none; } }

/* -- Dang ky / quan tri -- */
.hint { margin: -4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.auth.stack { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.auth.stack .card { width: 100%; max-width: 360px; }
.page h2 { font-size: 15px; margin: 22px 0 10px; display: flex; align-items: center; gap: 8px; }
.page .msg { margin-bottom: 12px; }
.mono { font-family: Consolas, Menlo, monospace; }
.row-actions { white-space: nowrap; }
.row-actions form { display: inline; margin: 0 2px; }
.st-bad { color: var(--err); cursor: help; }
.warn-pill { background: var(--warn); color: #fff; border-color: var(--warn); font-weight: 700; }
.admin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.admin-cols .card { display: flex; flex-direction: column; gap: 10px; }
.admin-cols h2 { margin: 0; }
textarea { background: var(--field); border: 1px solid var(--line); border-radius: 4px; padding: 8px; color: var(--text);
  font: 13px/1.5 Consolas, Menlo, monospace; resize: vertical; width: 100%; }
textarea:focus { outline: none; border-color: var(--accent); }
@media (max-width: 700px) { .admin-cols { grid-template-columns: 1fr; } }

.back-top { display: inline-block; margin-bottom: 8px; }
.back-top:hover { color: var(--text); border-color: #555; }

/* -- Logo + chan trang -- */
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand img { border-radius: 6px; }
.page { flex: 1; width: 100%; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 16px;
  border-top: 1px solid var(--line); font-size: 12px; color: #bdbdbd; }
.site-footer .muted { color: #7d7d7d; }
@media (max-width: 700px) { .site-footer { flex-direction: column; } }
.auth-brand { display: flex; align-items: center; gap: 10px; }
.auth-brand img { border-radius: 7px; }
.role-admin { background: var(--warn); color: #fff; border-color: var(--warn); }
.role-manager { color: var(--accent); border-color: var(--accent); }
.admin-cols select { width: 100%; }

/* -- O nhap key: hien key da luu + nut mat -- */
.cred-box { position: relative; flex: 1; min-width: 140px; display: flex; }
.cred-box input { flex: 1; padding-right: 34px; font-family: Consolas, Menlo, monospace; }
.eye { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 30px; height: 28px; padding: 0;
  display: grid; place-items: center; background: none; border: 0; color: var(--muted); cursor: pointer; }
.eye:hover { color: var(--text); }
.eye svg { width: 18px; height: 18px; fill: currentColor; }
.cred-state { font-size: 12px; white-space: nowrap; }
.cred-state.ok { color: var(--ok); }
.cred-state.none { color: var(--muted); }
.cred-state.dirty { color: var(--warn); font-weight: 600; }

/* -- O tim kiem campaign -- */
.search { position: relative; display: flex; align-items: center; gap: 8px; flex: 1 1 260px; max-width: 420px; }
.search svg { position: absolute; left: 9px; width: 16px; height: 16px; fill: var(--muted); pointer-events: none; }
.search input { flex: 1; min-width: 0; padding-left: 32px; }
.search input::-webkit-search-cancel-button { cursor: pointer; }
#searchCount { font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* -- Thanh menu tren moi trang -- */
.topbar { position: sticky; top: 0; z-index: 5; background: var(--bg); }
.topbar nav a { color: var(--muted); padding: 5px 2px; border-bottom: 2px solid transparent; }
.topbar nav a:hover { color: var(--text); }
.topbar nav a.active { color: var(--text); border-bottom-color: var(--accent); }
.topbar nav a.nav-cta { color: #fff; background: var(--accent); padding: 5px 12px; border-radius: 4px; border-bottom: 0; }
.topbar nav a.nav-cta:hover { filter: brightness(1.12); }
.topbar nav a.nav-cta.active { background: transparent; color: var(--text); padding: 5px 2px; border-radius: 0;
  border-bottom: 2px solid var(--accent); }
.account-link { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 700px) {
  .topbar { flex-wrap: wrap; gap: 8px 16px; }
  .topbar nav { gap: 12px; }
  .account-link { max-width: 140px; }
}

/* -- Nut doi ngon ngu tren thanh menu -- */
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; order: 99; }
.topbar nav .lang-switch a { padding: 3px 8px; font-size: 12px; font-weight: 600; color: var(--muted); border: 0; }
.topbar nav .lang-switch a + a { border-left: 1px solid var(--line); }
.topbar nav .lang-switch a.on { background: var(--accent); color: #fff; }
.topbar nav .lang-switch a:not(.on):hover { color: var(--text); background: var(--field); }

/* Che key/token bang dau cham ma KHONG dung type=password (tranh Chrome hoi luu mat khau) */
input.masked { -webkit-text-security: disc; text-security: disc; }
input.masked::placeholder { -webkit-text-security: none; }

/* -- Trang chi tiet nguoi dung -- */
.user-link { color: var(--text); border-bottom: 1px dashed #666; }
.user-link:hover { color: var(--accent); border-bottom-color: var(--accent); }
.ud-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 18px; margin: 6px 0 14px; word-break: break-all; }
.ud-card { margin-bottom: 14px; }
.ud-card h2 { margin: 0 0 10px; font-size: 15px; }
.ud-card h3 { margin: 14px 0 6px; font-size: 13px; }
.ud-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.ud-row h2 { margin: 0; }
.ud-row form { margin: 0; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.st-pill-ok { color: #0e1a12; background: var(--ok); border-color: var(--ok); }
.st-pill-bad { color: #fff; background: var(--danger); border-color: var(--danger); }
table.keys th { position: static; text-align: left; width: 120px; background: transparent; }
table.keys td { text-align: left; }
.key-cell { word-break: break-all; }
.key-val.revealed { color: var(--head); background: rgba(240,179,90,.08); padding: 2px 4px; border-radius: 3px; user-select: all; }
.key-result { font-size: 12px; white-space: nowrap; }
.key-result.ok { color: var(--ok); }
.key-result.bad { color: var(--err); }
.grid td.left { text-align: left; }
.grid tr.opt-on td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
.ud-log { max-height: 360px; height: auto; border-radius: 4px; }
.audit { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.8; }
@media (max-width: 700px) { table.keys th { width: auto; } .key-result { white-space: normal; } }
.key-cell .muted { word-break: normal; white-space: nowrap; }
@media (max-width: 700px) {
  table.keys, table.keys tbody, table.keys tr, table.keys th, table.keys td { display: block; width: auto; }
  table.keys tr { padding: 8px 4px; border-bottom: 1px solid #303030; }
  table.keys th, table.keys td { border: 0; padding: 3px 6px; }
  table.keys .row-actions { white-space: normal; display: flex; flex-wrap: wrap; gap: 6px; }
  table.keys .row-actions .btn { margin: 0; }
}

.src-note { font-size: 12px; color: var(--muted); background: var(--field); border: 1px dashed var(--line);
  padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 700px) { .src-note { white-space: normal; } }

.opt-form h3:focus { outline: none; }

/* -- Nut bat/tat tu toi uu hang loat -- */
.act-sep { width: 1px; align-self: stretch; background: var(--line); margin: 0 4px; }
.btn.ghost-warn { background: transparent; border: 1px solid var(--warn); color: var(--warn); }
.btn.ghost-warn:hover:not(:disabled) { background: rgba(230,126,34,.12); filter: none; }
@media (max-width: 700px) { .act-sep { display: none; } }

/* -- Dong vua doi trang thai nhay sang ~2s -- */
@keyframes rowflash { 0%, 30% { background: rgba(95,211,141,.28); } 100% { background: transparent; } }
#campTable tbody tr.flash td { animation: rowflash 2.2s ease-out; }
@media (prefers-reduced-motion: reduce) { #campTable tbody tr.flash td { animation: none; } }


/* -- Nut chep nhanh ref -- */
.cp-box { margin-top: 6px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 6px; font-size: 13px; }
.cp-box ol { margin: 6px 0 0; padding-left: 20px; line-height: 1.9; color: var(--muted); }
.cp-box ol li:first-child { color: var(--text); }
.bookmarklet { display: inline-block; margin-left: 6px; padding: 2px 12px; border-radius: 999px; background: var(--accent);
  color: #fff !important; font-weight: 600; cursor: grab; text-decoration: none; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(74,144,226,.7); } 50% { box-shadow: 0 0 0 8px rgba(74,144,226,0); } }
.btn.pulse { animation: pulse 1.4s ease-out 4; }

/* -- Camp dang dung: nut bat tu toi uu bi khoa -- */
.ib.toggle.blocked { color: var(--muted); border-color: var(--line); opacity: .4; cursor: not-allowed; }
.ib.toggle.blocked:hover:not(:disabled) { background: var(--field); color: var(--muted); }

/* -- Khung moi dang ky Propush qua link ref (trang dang ky) -- */
.card.invite { border-color: rgba(39,174,96,.55); background: linear-gradient(180deg, rgba(39,174,96,.10), transparent 70%), var(--panel); }
.invite h2 { margin: 0; font-size: 17px; }
.invite p { margin: 0; color: #cfcfcf; font-size: 13.5px; line-height: 1.5; }
.invite-btn { display: block; text-align: center; padding: 11px 14px; font-size: 14.5px; text-decoration: none; }
.invite-link { display: flex; align-items: center; gap: 8px; }
.invite-link code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 6px 8px;
  background: var(--field); border: 1px solid var(--line); border-radius: 4px; font-size: 12px; user-select: all; }
.invite-steps { margin: 0; padding-left: 20px; color: var(--muted); font-size: 12.5px; line-height: 1.7; }

.contact { margin: 0; font-size: 13.5px; color: #cfcfcf; }
.contact a { color: var(--accent); }

/* TsArbitrage (chi admin) */
.arb .toolbar + .toolbar { margin-top: -4px; }
.arb #quick { display: contents; }
.arb td.spot { cursor: text; font-variant-numeric: tabular-nums; }
.arb .spot-edit { width: 100%; max-width: 110px; padding: 2px 6px; text-align: center; }
.arb .panel > .note { margin-top: 6px; }

/* Camp Manager */
.cm .cm-group { display: contents; }
.cm #cmTable td.name { text-align: left; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm #cmTable th[data-col] { cursor: pointer; user-select: none; white-space: nowrap; }
.cm #cmTable tbody tr { cursor: pointer; }
.cm #cmTable tbody tr:hover { background: #2f2f30; }
.cm #cmTable tbody tr.sel { background: rgba(74,144,226,.28); }
.cm #cmTable td { white-space: nowrap; }
.cm .field.check { gap: 6px; }
.cm-dlg { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 40px); }
.cm-dlg:has(.cm-nb), .cm-dlg:has(.cm-lf .cm-list) { width: min(980px, calc(100vw - 32px)); }
.cm-form { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.cm-form h3 { margin: 0; font-size: 16px; }
.cm-dlg-head { display: flex; align-items: center; gap: 8px; }
.cm-dlg-head h3 { flex: 1; }
.cm-dlg-body { display: flex; flex-direction: column; gap: 8px; }
.cm-col { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.cm-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, max-content)); gap: 6px 10px; align-items: center; }
.cm-label { color: #ddd; font-size: 13px; }
.cm-label.muted { color: var(--muted); font-size: 12px; }
.cm-label.b, .cm-check.b { font-weight: 700; }
.cm-label.accent { color: var(--ok); font-weight: 700; }
.cm-pre { white-space: pre-line; margin: 0; }
.cm-check { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; cursor: pointer; }
.cm-check input, .cm-li input { accent-color: var(--accent); }
.cm-list { max-height: 240px; min-height: 60px; overflow: auto; border: 1px solid var(--line); border-radius: 4px;
  background: var(--field); padding: 4px 6px; display: flex; flex-direction: column; min-width: 160px; }
.cm-li { font-size: 13px; padding: 2px 0; cursor: pointer; white-space: nowrap; }
.cm-lf { border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; margin: 0; min-width: 0; }
.cm-lf legend { color: #ccc; font-weight: 700; font-size: 12.5px; padding: 0 4px; }
.cm-nb .cm-tab { margin: 10px 0 4px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--warn); }
.cm-nb > div { display: flex; flex-direction: column; gap: 8px; }
.cm-dlg textarea { width: 100%; box-sizing: border-box; }
.cm-dlg select { max-width: 100%; }
.cm-frame { min-width: 0; }
