:root {
  --bg: #0d1117;
  --bg-soft: #131a24;
  --panel: #161e2a;
  --panel-2: #1b2534;
  --border: #243044;
  --text: #e6edf6;
  --muted: #8b98ab;
  --accent: #2aabee;
  --accent-2: #229ed9;
  --ok: #2ecc71;
  --danger: #ff5c6c;
  --warn: #ffb347;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  font-family: "JetBrains Mono", Consolas, monospace;
  background: rgba(255, 255, 255, .06);
  padding: 1px 5px;
  border-radius: 5px;
  font-size: 12.5px;
}

h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: 22px; }
h2 { font-size: 16px; }
h3 { font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

.app { display: flex; min-height: 100vh; }

/* ------------------------------------------------------------- сайдбар */
.sidebar {
  width: 236px;
  flex: 0 0 236px;
  background: var(--bg-soft);
  border-right: 1px solid var(--border);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), #1c7ed6);
  font-weight: 800; font-size: 15px; color: #fff;
  flex: 0 0 36px;
}
.brand-mark.big { width: 52px; height: 52px; font-size: 20px; border-radius: 15px; }
.brand-text { display: flex; flex-direction: column; font-weight: 650; line-height: 1.2; }
.brand-text small { color: var(--muted); font-weight: 400; font-size: 11.5px; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  color: var(--muted);
  padding: 9px 11px;
  border-radius: 9px;
  font-size: 14px;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .04); text-decoration: none; }
.nav a.active { color: #fff; background: rgba(42, 171, 238, .14); box-shadow: inset 2px 0 0 var(--accent); }

.sidebar-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.link-btn {
  background: none; border: 0; padding: 0; color: var(--muted);
  font: inherit; cursor: pointer;
}
.link-btn:hover { color: var(--danger); }

/* ---------------------------------------------------------------- контент */
.main { flex: 1; padding: 26px 30px 60px; max-width: 1280px; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.topbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.subtitle { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; max-width: 760px; }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.card h2 { margin-bottom: 12px; }
.card-head h2 { margin-bottom: 0; }

.grid { display: grid; gap: 16px; }
.grid > * { min-width: 0; }
.grid.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 16px; }
.grid.two-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.editor { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-lg { display: flex; flex-direction: column; gap: 16px; }

.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-label { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; }
.stat-value { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.stat-note { color: var(--muted); font-size: 12.5px; }

/* ------------------------------------------------------------------ формы */
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
label > span, .field-label { font-size: 12.5px; color: var(--muted); }

input[type="text"], input[type="password"], input[type="number"], input[type="file"],
select, textarea {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 9px;
  padding: 9px 11px;
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 80px; font-family: inherit; }
input[type="file"] { padding: 7px; font-size: 13px; }
input::placeholder, textarea::placeholder { color: #5b697d; }

.row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.grow { flex: 1 1 180px; }
.inline-check { flex-direction: row; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.inline-check input { width: auto; }
.row-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.row-form input[type="text"] { flex: 1 1 240px; }

/* ------------------------------------------------- панель форматирования */
.format-toolbar { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0 6px; }
.format-toolbar button {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 7px;
  padding: 4px 8px;
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}
.format-toolbar button:hover { background: #223044; }

.tag-status { font-size: 12px; color: var(--muted); margin: -2px 0 6px; }
.tag-status.good { color: #7ee2a6; }
.tag-status.bad { color: #ff9aa4; }

/* ------------------------------------------------------------ защита */
.level-card {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  background: var(--bg-soft);
}
.level-card:hover { border-color: #34506c; }
.level-card.selected { border-color: var(--accent); background: rgba(42, 171, 238, .08); }
.level-card input { width: auto; margin-top: 3px; }
.level-card .grow { flex: 1 1 auto; }

/* --------------------------------------------------- подзаголовки карточек */
.card-subhead {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 14px 0 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}
.card-subhead h3 { margin: 0; }
.hint-inline { font-size: 12px; color: var(--muted); }

/* -------------------------------------------------------- карта сценария */
.flow-scroll {
  overflow: auto;
  max-height: 72vh;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0f1620;
  padding: 8px;
}
.flow-scroll svg { display: block; }
.flow-node { cursor: pointer; }
.flow-node:hover rect { stroke: var(--accent); }
.flow-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
}
.flow-legend .dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: -1px;
}
.flow-legend .dot.blue { background: #1d3a52; border: 2px solid var(--accent); }
.flow-legend .dot.grey { background: #16202c; border: 1px solid var(--border); }

/* ------------------------------------------------------ цвет кнопки */
.style-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.style-row .field-label { margin: 0 4px 0 0; }
.swatch { display: inline-flex; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch .dot {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: block;
  border: 2px solid transparent;
  transition: transform .1s;
}
.swatch:hover .dot { transform: scale(1.08); }
.swatch input:checked + .dot { border-color: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, .18); }
.dot.none { background: var(--panel-2); border: 1px dashed var(--border); }
.dot.red { background: #e5484d; }
.dot.green { background: #30a46c; }
.dot.blue { background: #2aabee; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 9px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 550;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { background: #223044; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #04121d; }
.btn.primary:hover { background: #46b8f5; }
.btn.danger { border-color: rgba(255, 92, 108, .5); color: var(--danger); }
.btn.danger:hover { background: rgba(255, 92, 108, .12); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 5px 9px; font-size: 12.5px; border-radius: 7px; }
.btn.icon { padding: 5px 7px; min-width: 28px; }
.btn:disabled { opacity: .35; cursor: default; }
.inline { display: inline; }

/* ----------------------------------------------------------- уведомления */
.banner {
  border-radius: 11px;
  padding: 11px 14px;
  margin-bottom: 16px;
  font-size: 13.5px;
  border: 1px solid transparent;
}
.banner.ok { background: rgba(46, 204, 113, .1); border-color: rgba(46, 204, 113, .35); color: #9be7b8; }
.banner.err { background: rgba(255, 92, 108, .1); border-color: rgba(255, 92, 108, .35); color: #ffb3ba; }
.banner.warn { background: rgba(255, 179, 71, .1); border-color: rgba(255, 179, 71, .35); color: #ffd7a1; }
.banner a { color: inherit; text-decoration: underline; }

/* --------------------------------------------------------------- таблицы */
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
  text-align: left;
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
.table td { padding: 10px; border-bottom: 1px solid rgba(36, 48, 68, .6); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: rgba(255, 255, 255, .015); }
.table.compact td, .table.compact th { padding: 7px 8px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11.5px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(255, 255, 255, .03);
}
.badge.ok { color: #79e2a2; border-color: rgba(46, 204, 113, .4); }
.badge.danger { color: #ff9aa4; border-color: rgba(255, 92, 108, .45); }
.badge.accent { color: #7ecbf7; border-color: rgba(42, 171, 238, .5); }
.badge.warn { color: #ffd7a1; border-color: rgba(255, 179, 71, .45); }

/* ------------------------------------------------------------------ тикеты */
.ticket-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 4px 0 16px;
}
.ticket-msg {
  max-width: 82%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px 12px 12px 4px;
  padding: 9px 12px;
}
.ticket-msg.admin {
  align-self: flex-end;
  background: rgba(42, 171, 238, .12);
  border-color: rgba(42, 171, 238, .35);
  border-radius: 12px 12px 4px 12px;
}
.ticket-msg-meta { font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
.ticket-msg-text { white-space: pre-wrap; font-size: 13.5px; word-break: break-word; }

/* -------------------------------------------------------------- дашборд */
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; }
.checklist .check {
  width: 24px; height: 24px; flex: 0 0 24px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid; place-items: center;
  font-size: 12px; color: var(--muted);
}
.checklist li.done .check { background: rgba(46, 204, 113, .16); border-color: rgba(46, 204, 113, .5); color: #7ee2a6; }
.checklist li.done b { color: var(--muted); }

.mini-preview {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  white-space: pre-wrap;
  font-size: 13.5px;
  max-height: 180px;
  overflow: auto;
  margin-bottom: 12px;
}

.lead { border-top: 1px solid var(--border); padding-top: 10px; margin-top: 10px; }
.lead:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.lead-meta { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 13px; }
.lead-text { font-size: 13.5px; color: #c7d3e3; white-space: pre-wrap; margin-top: 3px; }
.lead-row {
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.lead-row:last-of-type { border-bottom: 0; }

/* ------------------------------------------------------- редактор экрана */
.button-card {
  border: 1px solid var(--border);
  background: var(--bg-soft);
  border-radius: 11px;
  padding: 12px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.button-head { display: flex; justify-content: space-between; align-items: center; }
.button-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.add-button { border: 1px dashed var(--border); border-radius: 11px; padding: 10px 12px; margin-top: 6px; }
.add-button summary { cursor: pointer; color: var(--accent); font-size: 13.5px; }
.add-button form { margin-top: 12px; }
.hint-block { margin-top: 14px; font-size: 13px; color: var(--muted); }
.hint-block summary { cursor: pointer; color: var(--muted); }
.hint-block ul { margin: 10px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }

.divider { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }
.field-label { display: block; margin-bottom: 6px; }
.readonly-value { padding: 9px 11px; border-radius: 9px; background: rgba(255, 255, 255, .03); border: 1px solid var(--border); color: var(--muted); }
.media-current { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.media-current img { max-width: 120px; max-height: 90px; border-radius: 8px; border: 1px solid var(--border); }

/* ------------------------------------------------------------- телефон */
.preview-col { position: sticky; top: 20px; }
.phone {
  background: #0f1620;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 12px;
  box-shadow: var(--shadow);
  max-width: 320px;
}
.phone-top { display: flex; gap: 10px; align-items: center; padding: 4px 4px 12px; border-bottom: 1px solid var(--border); }
.phone-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #1c7ed6);
  display: grid; place-items: center; font-weight: 700; color: #04121d;
}
.phone-name { font-size: 13.5px; font-weight: 600; }
.phone-status { font-size: 11.5px; color: var(--muted); }
.phone-chat {
  padding: 14px 6px 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 460px;
  overflow: auto;
}
.bubble {
  background: #1c2736;
  border-radius: 14px 14px 14px 4px;
  padding: 9px 11px;
  font-size: 13px;
  white-space: pre-wrap;
  word-break: break-word;
}
.bubble-media { color: var(--muted); font-size: 11.5px; margin-bottom: 4px; }
.bubble-kb { display: flex; flex-direction: column; gap: 5px; }
.kb-row { display: flex; gap: 5px; }
.kb-btn {
  flex: 1;
  text-align: center;
  background: #22344a;
  border: 1px solid #2c425b;
  border-radius: 7px;
  padding: 6px 8px;
  font-size: 12px;
  color: #bfe3fb;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ------------------------------------------------------------- рассылки */
.progress { height: 6px; background: rgba(255, 255, 255, .07); border-radius: 99px; overflow: hidden; margin-bottom: 5px; min-width: 140px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #57d0a0); width: 0; transition: width .4s; }
.progress-cell { min-width: 180px; }
.bullets { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; color: #c7d3e3; }

/* -------------------------------------------------------------- утилиты */
.hint { color: var(--muted); font-size: 12.5px; margin: 10px 0 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.strong { font-weight: 600; color: var(--text); }
.mono { font-family: "JetBrains Mono", Consolas, monospace; font-size: 12.5px; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.empty { color: var(--muted); padding: 18px 0; text-align: center; }
.pager { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.hidden { display: none; }
.text-ok { color: #7ee2a6; }
.text-err { color: #ff9aa4; }
.link { font-size: 13px; }

/* ------------------------------------------------------------- сценарии */
.scenario-group {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 12px;
  background: var(--panel-2);
  transition: border-color .15s, box-shadow .15s, opacity .15s;
}
.scenario-group.dragging { opacity: .45; border-color: var(--accent); }
.scenario-group:hover { border-color: var(--accent); }
.scenario-head { display: flex; align-items: center; gap: 8px; }
.scenario-head b { font-size: 14px; }
.drag-handle {
  cursor: grab;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 6px;
  user-select: none;
  touch-action: none;
}
.drag-handle:hover { color: var(--accent); background: rgba(47, 128, 237, .12); }
.drag-handle:active { cursor: grabbing; }
.scenario-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); flex: none;
}
.scenario-list { margin: 8px 0 0; padding-left: 26px; display: flex; flex-direction: column; gap: 6px; }
.scenario-list li { font-size: 13.5px; }
.scenario-list a { color: var(--text); text-decoration: none; }
.scenario-list a:hover { color: var(--accent); text-decoration: underline; }

.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  padding: 10px 18px; border-radius: 10px; font-size: 13px;
  background: var(--panel); border: 1px solid var(--border);
  box-shadow: var(--shadow); z-index: 60;
}
.toast.ok { color: var(--ok); border-color: rgba(31, 157, 85, .45); }
.toast.err { color: var(--danger); border-color: rgba(229, 72, 77, .45); }

/* ---------------------------------------------------------------- логин */
.login-body { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.login-head { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 20px; text-align: center; }
.login-head h1 { font-size: 20px; }
.login-head p { margin: 0; color: var(--muted); font-size: 13px; }

@media (max-width: 1080px) {
  .grid.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.editor { grid-template-columns: 1fr; }
  .preview-col { position: static; order: -1; }
  .phone { max-width: 100%; }
}

@media (max-width: 820px) {
  .app { flex-direction: column; }
  .sidebar {
    width: 100%; flex: none; height: auto; position: static;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand . foot" "nav nav nav";
    align-items: center;
    gap: 8px 12px;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .brand { grid-area: brand; }
  .brand-text { font-size: 14px; }
  .brand-text small { display: none; }
  .nav { grid-area: nav; flex-direction: row; gap: 4px; overflow-x: auto; padding-bottom: 2px; }
  .nav a { white-space: nowrap; font-size: 13px; padding: 7px 10px; }
  .sidebar-foot {
    grid-area: foot; margin: 0; border: 0; padding: 0;
    flex-direction: row; align-items: center; gap: 10px;
  }
  .sidebar-foot a { display: none; }
  .sidebar-foot form { margin: 0; }
  .main { padding: 16px 12px 50px; }
  .grid.two, .grid.two-fields { grid-template-columns: 1fr; }
  .grid.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar { flex-direction: column; }
  .row-form input[type="text"] { flex: 1 1 100%; }
}

/* ======================================================= светлая тема ===== */
.theme-light {
  --bg: #eef2f8;
  --bg-soft: #ffffff;
  --panel: #ffffff;
  --panel-2: #f2f6fc;
  --border: #d9e1ec;
  --text: #182230;
  --muted: #64748b;
  --accent: #2f80ed;
  --accent-2: #1f6fdd;
  --ok: #1f9d55;
  --danger: #e5484d;
  --warn: #d98600;
  --shadow: 0 6px 18px rgba(24, 34, 48, .08);
}
.theme-light .sidebar { background: #ffffff; }
.theme-light .nav a:hover { background: #eef3fb; }
.theme-light .nav a.active { background: #e7f0fe; color: #1f6fdd; }
.theme-light .btn { background: #f2f6fc; }
.theme-light .btn:hover { background: #e7eef8; }
.theme-light .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.theme-light .table tr:hover td { background: #f7faff; }
.theme-light .bubble { background: #dceafc; color: #10283f; }
.theme-light .kb-btn { background: #eef4fe; border-color: #d3e0f5; color: #1f5fbf; }
.theme-light .phone { background: #f7faff; }
.theme-light .phone-top { border-color: #e2e9f4; }
.theme-light .ticket-msg { background: #f4f7fc; }
.theme-light .ticket-msg.admin { background: #e3efff; }
.theme-light .level-card { background: #f7faff; }
.theme-light .mini-preview, .theme-light .readonly-value { background: #f7faff; }
.theme-light .banner.ok { background: #e6f7ee; border-color: #b7e6cd; color: #16613f; }
.theme-light .banner.err { background: #fdecef; border-color: #f6c6ce; color: #a31f2f; }
.theme-light .banner.warn { background: #fff5e2; border-color: #f3d9a8; color: #8a5a00; }
.theme-light .badge.ok { color: #16613f; border-color: #b7e6cd; }
.theme-light .badge.danger { color: #a31f2f; }
.theme-light .badge.accent { color: #1f5fbf; }
.theme-light .badge.warn { color: #8a5a00; }
.theme-light .flow-scroll { background: #f7faff; }
.theme-light .format-toolbar button { background: #f2f6fc; }
.theme-light .format-toolbar button:hover { background: #e7eef8; }
.theme-light .login-card { background: #ffffff; }
.theme-light .sidebar-foot { border-color: #e2e9f4; }
.theme-light code { background: rgba(15, 35, 60, .06); }
.theme-light .add-button { border-color: #cdd8e6; }
.theme-light .button-card { background: #f7faff; }
.theme-light .stat-value { color: #0f1a29; }
