/* STARBOT — токены и базовый каркас из Penpot-макетов «STARCKOFF · Админка»
   (палитра совпадает с Postpilot app.css). Полный UI добирается в Фазе 3. */

:root {
  --bg: #1F2936;
  --panel: #17212B;
  --border: #3E546A;
  --accent: #6AB3F3;
  --text: #F5F5F5;
  --muted: #8B98A5;
  --dim: #5C6E80;
  --ok: #4FB06D;
  --error: #E6584C;
  --warn: #E0A33E;
  --ink: #0F1720;
  --radius: 6px;
  --sidebar-w: 240px;
  --header-h: 72px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  font-size: 14px;
}

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

/* --- каркас: сайдбар + хедер + контент --- */
.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: var(--panel);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  gap: 4px;
}

.sidebar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  padding: 8px 12px 14px;
  letter-spacing: .05em;
}
.brand-logo {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--accent);
  flex: 0 0 26px;
}

/* --- переключатель подключений (экран 12a) --- */
.switcher { position: relative; margin-bottom: 10px; }
.switcher-head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.switcher-head .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 32px;
}
.switcher-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.switcher-info strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.switcher-info small { color: var(--dim); font-size: 11px; }
.switcher .chev { color: var(--dim); font-size: 11px; transition: transform .15s; }
.switcher.open .chev { transform: rotate(180deg); }

.switcher-drop {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
}
.switcher.open .switcher-drop { display: block; }

.sw-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.sw-row:hover { background: rgba(106, 179, 243, .08); }
.sw-row.current { background: rgba(106, 179, 243, .14); }
.sw-row.static { cursor: default; }
.sw-row.static:hover { background: transparent; }
.sw-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sw-info strong { font-size: 12px; }
.sw-info small { color: var(--dim); font-size: 10px; }
.sw-row .check { color: var(--accent); }
.sw-add {
  display: block;
  padding: 10px;
  margin-top: 4px;
  border-top: 1px solid var(--border);
  color: var(--accent);
  font-size: 13px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 8px;
  background: var(--dim);
}
.dot.ok { background: var(--ok); }
.dot.warn { background: var(--warn); }
.dot.err { background: var(--error); }
.dot.off { background: var(--dim); }

.menu-label {
  color: var(--dim);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 10px 12px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--muted);
}
.nav-item svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-item:hover { color: var(--text); background: rgba(106, 179, 243, .08); }
.nav-item.active { color: var(--accent); background: rgba(106, 179, 243, .14); }

.sidebar .spacer { flex: 1; }

.status-foot { border-top: 1px solid var(--border); padding-top: 12px; }
.status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  padding: 4px 12px;
}

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

.header {
  height: var(--header-h);
  flex: 0 0 var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}
.header h1 { font-size: 18px; margin: 0; font-weight: 600; }
.header .who { color: var(--muted); font-size: 13px; }

.content { padding: 28px 32px; }

/* --- атомы (компоненты дизайн-системы) --- */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}
.card h2 { margin: 0 0 14px; font-size: 15px; font-weight: 600; }

.btn {
  display: inline-block;
  padding: 9px 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  cursor: pointer;
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
}
.btn.outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.danger { background: var(--error); color: var(--text); }

.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
/* пилюля может быть <button> — сбрасываем браузерный вид */
button.pill {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  line-height: 1.4;
  margin: 2px 2px 2px 0;
}
button.pill:hover { filter: brightness(1.25); }
.pill.ok { background: rgba(79, 176, 109, .18); color: var(--ok); }
.pill.warn { background: rgba(224, 163, 62, .18); color: var(--warn); }
.pill.error { background: rgba(230, 88, 76, .18); color: var(--error); }
.pill.info { background: rgba(106, 179, 243, .18); color: var(--accent); }
.pill.neutral { background: rgba(139, 152, 165, .18); color: var(--muted); }

.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-tile {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.stat-tile .value { font-size: 26px; font-weight: 700; }
.stat-tile .label { color: var(--muted); font-size: 13px; margin-top: 4px; }

table.data { width: 100%; border-collapse: collapse; }
table.data th {
  text-align: left;
  color: var(--dim);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
table.data td { padding: 10px 12px; border-bottom: 1px solid rgba(62, 84, 106, .4); }

.scroll-pane {
  max-height: 280px;
  overflow: auto;
}
.scroll-pane table.data { border-collapse: separate; border-spacing: 0; }
.scroll-pane table.data th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--panel);
}

input[type=text], input[type=password], input[type=number], textarea, select {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 12px;
  font: inherit;
  width: 100%;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }

label { display: block; color: var(--muted); font-size: 13px; margin: 12px 0 6px; }

.form-error { color: var(--error); margin: 10px 0; }

label.inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  margin: 4px 14px 4px 0;
  font-size: 13px;
}
label.inline input[type=checkbox] { accent-color: var(--accent); width: auto; }

.flash {
  border-radius: var(--radius);
  padding: 10px 16px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  background: var(--panel);
}
.flash.success { border-color: var(--ok); color: var(--ok); }
.flash.error { border-color: var(--error); color: var(--error); }

.pill.violet { background: rgba(155, 120, 240, .18); color: #B39DF0; }
.pill.system {
  background: rgba(224, 163, 62, .18);
  color: var(--warn);
  border: 1px solid rgba(224, 163, 62, .45);
}

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

/* --- редактор публикации (экран 04) --- */
.header-sub { color: var(--muted); font-size: 13px; font-weight: 400; margin-left: 14px; }

.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 1200px) { .editor-grid { grid-template-columns: 1fr; } }

.cardhead { display: flex; justify-content: space-between; align-items: center; }
.cardhead h2 { margin-bottom: 14px; }

.fieldlabel {
  display: block;
  color: var(--dim);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 14px 0 6px;
}

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

.mdtoolbar {
  display: flex;
  gap: 4px;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 6px 10px;
}
.mdtoolbar button {
  background: transparent;
  border: none;
  color: var(--muted);
  font: inherit;
  width: 30px;
  height: 26px;
  border-radius: 4px;
  cursor: pointer;
}
.mdtoolbar button:hover { background: rgba(106, 179, 243, .12); color: var(--text); }
.mdtoolbar .mdhint { margin-left: auto; color: var(--dim); font-size: 12px; }
.mdtoolbar + textarea { border-radius: 0 0 var(--radius) var(--radius); }

.media-row {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 8px;
}
.media-thumb {
  width: 72px;
  height: 48px;
  flex: 0 0 72px;
  background: var(--ink);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 18px;
}
.media-info { flex: 1; min-width: 0; }
.media-info a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-meta { color: var(--dim); font-size: 12px; margin-top: 2px; }
.btn-danger-text { color: var(--error) !important; }

.btn-cols {
  display: flex;
  color: var(--dim);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.btn-cols span:first-child { width: 218px; margin-left: 22px; }

.btnrow { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; }
.btnrow input[name=btn_text] { max-width: 210px; }
.draghandle { color: var(--dim); cursor: grab; user-select: none; }
.xbtn {
  background: transparent;
  border: none;
  color: var(--dim);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
}
.xbtn:hover { color: var(--error); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(106, 179, 243, .12);
  color: var(--accent);
  border: 1px solid rgba(106, 179, 243, .35);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
}
.chip button { background: none; border: none; color: var(--accent); cursor: pointer; font-size: 14px; padding: 0; }

.tzhint {
  background: rgba(106, 179, 243, .08);
  border: 1px solid rgba(106, 179, 243, .2);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 12px;
  padding: 8px 12px;
  margin-bottom: 10px;
}
.tzhint b { color: var(--accent); font-weight: 600; }

.switch {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  cursor: pointer;
  color: var(--text);
  font-size: 13px;
}
.switch input { display: none; }
.switch .track {
  width: 34px;
  height: 18px;
  flex: 0 0 34px;
  border-radius: 999px;
  background: var(--dim);
  position: relative;
  transition: background .15s;
}
.switch .track::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--text);
  transition: left .15s;
}
.switch input:checked + .track { background: var(--ok); }
.switch input:checked + .track::after { left: 18px; }

.preview-bubble {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}
.preview-media {
  min-height: 40px;
  border-radius: 6px;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 22px;
  margin-bottom: 10px;
}
.preview-media:empty { display: none; }
.preview-text { font-size: 13px; line-height: 1.45; word-wrap: break-word; }
.preview-text a { pointer-events: none; }
.preview-buttons { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.pv-btn {
  background: rgba(106, 179, 243, .10);
  border: 1px solid rgba(106, 179, 243, .25);
  color: var(--accent);
  text-align: center;
  border-radius: 6px;
  padding: 7px;
  font-size: 13px;
}

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  padding: 6px 0 6px 20px;
  position: relative;
  color: var(--muted);
  font-size: 13px;
}
.checklist li::before {
  content: '●';
  position: absolute;
  left: 0;
  font-size: 10px;
  top: 9px;
}
.checklist li.ok::before { color: var(--ok); }
.checklist li.warn::before { color: var(--warn); }
.checklist li.warn { color: var(--warn); }

.nearest { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.btn-block { display: block; width: 100%; margin-bottom: 8px; text-align: center; }

/* --- медиатека (экран 18) --- */
a.media-card { display: block; color: inherit; }
a.media-card:hover { border-color: var(--dim); }
a.media-card.selected { border-color: var(--accent); }

.media-thumb-lg {
  width: 132px;
  height: 88px;
  flex: 0 0 132px;
  overflow: hidden;
}
.media-thumb-lg img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }

.media-preview-lg {
  background: var(--ink);
  border: 1px solid var(--border);
  border-radius: 10px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.media-preview-lg video, .media-preview-lg img { width: 100%; max-height: 260px; object-fit: contain; }
.media-preview-lg .doc-glyph { font-size: 42px; padding: 60px 0; }

.meta-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.meta-table td { padding: 4px 0; vertical-align: top; }
.meta-table td:first-child { color: var(--dim); width: 110px; }
.meta-table td:last-child { color: var(--muted); }

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 34px;
  color: var(--muted);
  cursor: pointer;
  margin-bottom: 20px;
}
.dropzone:hover { border-color: var(--accent); color: var(--text); }

/* сетка плиток медиатеки */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.media-tile {
  display: block;
  color: inherit;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.media-tile:hover { border-color: var(--dim); }
.media-tile.selected { border-color: var(--accent); }
.tile-thumb {
  height: 122px;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tile-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tile-thumb .glyph { color: var(--accent); font-size: 26px; }
.tile-info { padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.tile-info strong { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-meta { color: var(--dim); font-size: 10px; }
.tile-meta.warn { color: var(--warn); }

/* лайтбокс: полноэкранный просмотр с зумом */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 32, .96);
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.lightbox.open { display: flex; }
.lightbox img, .lightbox video {
  max-width: 94vw;
  max-height: 92vh;
  transition: transform .15s ease-out;
  cursor: zoom-in;
}
.lb-close {
  position: absolute;
  top: 18px; right: 24px;
  z-index: 101;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 26px;
  cursor: pointer;
}
.lb-close:hover { color: var(--text); }

/* модалка выбора медиа в редакторе */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 23, 32, .8);
  align-items: center;
  justify-content: center;
}
.modal-backdrop.open { display: flex; }
.modal {
  width: 680px;
  max-width: 94vw;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
}
.modal .modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.modal .modal-head h3 { margin: 0; font-size: 16px; }
.modal .media-grid { grid-template-columns: repeat(3, 1fr); }
.media-tile.pick { cursor: pointer; }

/* системная модалка подтверждения (вместо нативного confirm) */
.confirm-modal .modal { width: 440px; }
.confirm-modal .confirm-text { color: var(--text); font-size: 14px; line-height: 1.5; margin: 4px 0 20px; }
.confirm-modal .confirm-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* кликабельный текст сообщения в журнале */
button.msg-open {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 320px;
}
button.msg-open:hover { color: var(--accent); }

/* живой журнал: бейдж и анимация появления строки */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
@keyframes rowIn {
  0% { opacity: 0; transform: translateY(-10px); background: rgba(106, 179, 243, .22); }
  40% { opacity: 1; transform: translateY(0); background: rgba(106, 179, 243, .22); }
  100% { background: transparent; }
}
tr.row-in { animation: rowIn 1.6s ease-out; }
tr.row-in td { animation: inherit; }

/* --- календарь: месячная сетка (экран 05) --- */
.legend { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; margin-right: 8px; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid rgba(62, 84, 106, .35);
}
.cal-head { border-top: none; }
.cal-hcell {
  padding: 10px 12px;
  color: var(--dim);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.cal-cell {
  min-height: 118px;
  padding: 8px 8px 10px;
  border-left: 1px solid rgba(62, 84, 106, .35);
}
.cal-cell:first-child { border-left: none; }
.cal-cell.dim { opacity: .38; }
.cal-cell.today { background: rgba(106, 179, 243, .07); }
.cal-daynum {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}
.cal-cell.today .cal-daynum span:first-child { color: var(--accent); font-weight: 700; }
.cal-today-label { color: var(--accent); font-size: 10px; }
.cal-chip {
  display: block;
  width: 100%;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
  border: none;
  font: inherit;
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 11px;
  margin-bottom: 4px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.cal-chip:hover { filter: brightness(1.35); }
.cal-chip b { font-weight: 600; margin-right: 4px; }
.cal-chip.sent { background: rgba(79, 176, 109, .14); }
.cal-chip.sent b { color: var(--ok); }
.cal-chip.planned { background: rgba(106, 179, 243, .12); }
.cal-chip.planned b { color: var(--accent); }
.cal-more { color: var(--dim); font-size: 10px; padding-left: 2px; }

/* прогресс сжатия ffmpeg */
.compress-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.compress-label { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.compress-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  overflow: hidden;
}
.compress-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 3px;
  transition: width .4s ease;
}

.tile-compress {
  margin-top: 6px;
  padding: 4px 10px !important;
  font-size: 11px !important;
  align-self: flex-start;
}
.estimate {
  border: 1px solid rgba(106, 179, 243, .4);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 14px;
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
}

/* --- настройки: вертикальные «Разделы» слева (макеты 08–16) --- */
.settings-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
@media (max-width: 1100px) { .settings-grid { grid-template-columns: 1fr; } }
.settings-nav { padding: 16px 12px; }
.snav-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13px;
}
.snav-item:hover { color: var(--text); background: rgba(106, 179, 243, .08); }
.snav-item.active { color: var(--accent); background: rgba(106, 179, 243, .14); }
.edit-row td { background: var(--bg); }

.rule-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--bg);
  border: 1px solid rgba(62, 84, 106, .4);
  border-radius: var(--radius);
  padding: 10px 16px;
  margin-bottom: 8px;
}
.rule-hint { color: var(--dim); font-size: 12px; }

/* --- страница логина --- */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-card {
  width: 380px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.login-card h1 { font-size: 20px; margin: 0 0 20px; text-align: center; }
.login-card .btn { width: 100%; margin-top: 18px; }

tr.captcha td { background: rgba(224, 163, 62, .10); }
