/* ============================================================
   Dev Tester — Industrial Tech themes (light + dark)
   Палитра/типографика по DESIGN.md (Hanken Grotesk + JetBrains Mono)
   ============================================================ */

* { box-sizing: border-box; }

:root {
  /* ── Light theme (default) ── */
  --bg:                  #f7f9fc;
  --bg-grid:             #d8dadd;
  --surface:             #ffffff;
  --surface-alt:         #eceef1;
  --surface-high:        #e0e3e6;
  --text:                #191c1e;
  --text-muted:          #434656;
  --text-faint:          #737688;
  --border:              #c3c5d9;
  --border-strong:       #737688;

  --primary:             #003ec7;
  --primary-hover:       #0030a0;
  --primary-soft:        #dfe3ff;
  --secondary:           #fe6b00;          /* safety orange */
  --secondary-soft:      #ffdbcc;
  --tertiary:            #3f4f65;
  --success:             #1a7f37;
  --warn:                #fe6b00;
  --danger:              #ba1a1a;
  --danger-soft:         #ffdad6;

  --col-backlog:         #737688;
  --col-progress:        #003ec7;
  --col-review:          #5a3acf;
  --col-testing:         #a04100;
  --col-done:            #1a7f37;
  --col-problems:        #ba1a1a;

  --priority-low:        #737688;
  --priority-medium:     #003ec7;
  --priority-high:       #a04100;
  --priority-critical:   #ba1a1a;

  --shadow-sm:           0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md:           0 2px 8px rgba(15, 23, 42, 0.10);
  --shadow-lg:           0 8px 24px rgba(15, 23, 42, 0.14);

  --r-sm:                2px;
  --r-md:                4px;
  --r-lg:                6px;

  --font-sans:           'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:           'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

:root[data-theme="dark"] {
  --bg:                  #0f1115;
  --bg-grid:             #1e2024;
  --surface:             #1a1c20;
  --surface-alt:         #1e2024;
  --surface-high:        #282a2e;
  --text:                #e2e2e8;
  --text-muted:          #c3c5d9;
  --text-faint:          #8d90a2;
  --border:              #434656;
  --border-strong:       #8d90a2;

  --primary:             #b7c4ff;
  --primary-hover:       #dfe3ff;
  --primary-soft:        rgba(183, 196, 255, 0.16);
  --secondary:           #ffb693;
  --secondary-soft:      rgba(255, 182, 147, 0.18);
  --tertiary:            #00dbe9;
  --success:             #6ee7a8;
  --warn:                #ffb693;
  --danger:              #ffb4ab;
  --danger-soft:         rgba(255, 180, 171, 0.18);

  --col-backlog:         #8d90a2;
  --col-progress:        #b7c4ff;
  --col-review:          #c4b5fd;
  --col-testing:         #ffb693;
  --col-done:            #6ee7a8;
  --col-problems:        #ffb4ab;

  --priority-low:        #8d90a2;
  --priority-medium:     #b7c4ff;
  --priority-high:       #ffb693;
  --priority-critical:   #ffb4ab;

  --shadow-sm:           0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md:           0 2px 8px rgba(0, 0, 0, 0.6);
  --shadow-lg:           0 8px 24px rgba(0, 0, 0, 0.7);
}

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  background-image: radial-gradient(var(--bg-grid) 0.5px, transparent 0.5px);
  background-size: 32px 32px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── Утилитарный mono-label ── */
.label, .column-head, .priority-badge, .label-pill,
.tab, .metric-label, .checklist-head, .badge,
.bycol-item, .source-github {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* ── Шапка ── */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.header-left  { display: flex; align-items: center; gap: 28px; }
.header-right { display: flex; gap: 8px; align-items: center; }

.app-header h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: var(--primary);
}
.app-header h1::before {
  content: '▮';
  color: var(--secondary);
  margin-right: 8px;
}

/* ── Табы ── */
.tabs { display: flex; gap: 0; }
.tab {
  background: transparent;
  border: 1px solid var(--border);
  border-right-width: 0;
  padding: 7px 16px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  border-radius: 0;
}
.tab:first-child { border-radius: var(--r-md) 0 0 var(--r-md); }
.tab:last-child  { border-radius: 0 var(--r-md) var(--r-md) 0; border-right-width: 1px; }
.tab:hover       { background: var(--surface-alt); color: var(--text); }
.tab.active      { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── Кнопки ── */
.btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 7px 14px;
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font-sans);
  font-weight: 600;
  border-radius: var(--r-md);
  transition: border-color 0.12s, background 0.12s, color 0.12s;
}
.btn:hover { background: var(--surface-alt); border-color: var(--border-strong); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }

.btn-secondary { background: var(--surface-alt); }
.btn-secondary:hover { background: var(--surface-high); }

.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #8b0d0d; border-color: #8b0d0d; }

.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--surface-alt); border-color: var(--border); }

.btn-icon {
  width: 34px; height: 34px;
  padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
}

/* ── Фильтры ── */
.filters {
  display: flex;
  gap: 8px;
  padding: 12px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.filters select, .filters input {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 13px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
  transition: border-color 0.12s;
}
.filters select:focus, .filters input:focus {
  outline: none;
  border-color: var(--primary);
}

/* ── Виды/секции ── */
.view { display: none; padding: 20px 24px; }
.view-active { display: block; }

/* ── Канбан ── */
.board {
  display: grid;
  grid-template-columns: repeat(6, minmax(220px, 1fr));
  gap: 12px;
  align-items: flex-start;
}
.column {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 200px);
  overflow: hidden;
}
.column-head {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.column-head .count {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 1px 8px;
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 700;
  font-family: var(--font-mono);
}

/* верхняя цветная полоса под названием колонки */
.column[data-name="Backlog"]     { border-top: 3px solid var(--col-backlog); }
.column[data-name="In Progress"] { border-top: 3px solid var(--col-progress); }
.column[data-name="Code Review"] { border-top: 3px solid var(--col-review); }
.column[data-name="Testing"]     { border-top: 3px solid var(--col-testing); }
.column[data-name="Done"]        { border-top: 3px solid var(--col-done); }
.column[data-name="Problems"]    { border-top: 3px solid var(--col-problems); }

.column-body {
  padding: 8px;
  flex: 1;
  overflow-y: auto;
  min-height: 80px;
}
.column-body.drag-over {
  background: var(--primary-soft);
  outline: 1px dashed var(--primary);
  outline-offset: -4px;
}

/* ── Карточка задачи ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 12px;
  margin-bottom: 8px;
  cursor: grab;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.12s, box-shadow 0.12s, transform 0.12s;
}
.card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.card.dragging { opacity: 0.4; }

.card-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  line-height: 1.3;
  color: var(--text);
}
.card-meta {
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.priority-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: var(--r-sm);
  font-size: 10px;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.priority-low      { background: var(--priority-low); }
.priority-medium   { background: var(--priority-medium); }
.priority-high     { background: var(--priority-high); }
.priority-critical { background: var(--priority-critical); }

.label-pill {
  display: inline-block;
  padding: 1px 6px;
  border-radius: var(--r-sm);
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid transparent;
}
.label-pill.bug        { background: var(--danger-soft); color: var(--danger); }
.label-pill.feature    { background: rgba(26, 127, 55, 0.15); color: var(--success); }
.label-pill.regression { background: var(--secondary-soft); color: var(--secondary); }

.card .pr-link {
  font-size: 10px;
  color: var(--primary);
  text-decoration: none;
  font-family: var(--font-mono);
  border-bottom: 1px dashed var(--primary);
}
.card .pr-link:hover { color: var(--primary-hover); }
.card .source-github {
  font-size: 9px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Дашборд ── */
.dashboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.metric-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--primary);
}
.metric-wide { grid-column: span 3; }
.metric-wide::before { background: var(--secondary); }
.metric-label {
  color: var(--text-muted);
  font-size: 11px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
}
.metric-value {
  font-size: 40px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
}

.bycol { display: flex; gap: 12px; flex-wrap: wrap; }
.bycol-item {
  padding: 8px 14px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--text-muted);
}
.bycol-item .n {
  font-weight: 700;
  margin-left: 8px;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 13px;
}

/* ── Модалка ── */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; }
.modal.hidden { display: none; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 17, 21, 0.6);
  backdrop-filter: blur(2px);
}
.modal-window {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  width: 720px;
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transition: width 0.18s ease;
}

/* Whiteboard pane */
.wb-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--surface-alt);
  position: relative;
}
.wb-pane iframe {
  flex: 1;
  width: 100%;
  border: 0;
  display: block;
}
.wb-status {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  pointer-events: none;
}
.wb-saved {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--success);
  letter-spacing: 0.05em;
  opacity: 0.9;
  text-transform: uppercase;
}

/* Whiteboard режим — модалка растягивается, форма прячется */
.modal-window[data-mode="whiteboard"] {
  width: 95vw;
  max-width: 1600px;
  height: 92vh;
  max-height: 92vh;
}
.modal-window[data-mode="whiteboard"] .modal-body { display: none; }
.modal-window[data-mode="whiteboard"] #wb-pane { display: flex !important; }
.modal-window[data-mode="whiteboard"] #t-delete,
.modal-window[data-mode="whiteboard"] #t-save {
  display: none;
}
:root[data-theme="dark"] .modal-window {
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(183, 196, 255, 0.1);
}
.modal-header {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
}
.modal-header h2 {
  margin: 0;
  font-size: 13px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--text);
}
.modal-title-tail { color: var(--text-muted); font-size: 12px; }

/* Form / Whiteboard переключалка */
.modal-tabs { display: flex; gap: 0; }
.modal-tab {
  background: var(--surface);
  border: 1px solid var(--border);
  border-right-width: 0;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-radius: 0;
}
.modal-tab:first-child { border-radius: var(--r-md) 0 0 var(--r-md); }
.modal-tab:last-child  { border-radius: 0 var(--r-md) var(--r-md) 0; border-right-width: 1px; }
.modal-tab:hover:not(:disabled) { background: var(--surface-alt); color: var(--text); }
.modal-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.modal-tab:disabled { opacity: 0.5; cursor: not-allowed; }
.modal-close { margin-left: auto; }
.modal-close {
  background: transparent; border: none;
  font-size: 22px; cursor: pointer;
  color: var(--text-muted);
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
}
.modal-close:hover { background: var(--surface-high); color: var(--text); }

.modal-body { padding: 18px 20px; overflow-y: auto; flex: 1; }
.modal-body label {
  display: block;
  margin-bottom: 12px;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.modal-body input[type=text],
.modal-body textarea,
.modal-body select {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--surface);
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  transition: border-color 0.12s;
}
.modal-body input[type=text]:focus,
.modal-body textarea:focus,
.modal-body select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}
.modal-body textarea { resize: vertical; min-height: 80px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
  display: flex;
  gap: 8px;
  align-items: center;
}
.modal-footer .spacer { flex: 1; }

/* ── Чек-листы ── */
#checklists-section { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 8px; }
.section-head h3 {
  margin: 0;
  font-size: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.checklist-add { display: flex; gap: 6px; flex-wrap: wrap; }
.checklist-add select, .checklist-add input {
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 13px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
}
.checklist {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 12px;
  background: var(--surface-alt);
}
.checklist-head {
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--r-md) var(--r-md) 0 0;
}
.checklist-head .badge {
  font-size: 10px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 1px 6px;
  color: var(--text-muted);
  font-weight: 700;
}
.checklist-items { padding: 6px; }
.cl-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  margin-bottom: 4px;
}
.cl-item .text { flex: 1; }
.cl-item.s-passed   { background: rgba(26, 127, 55, 0.10); border-color: rgba(26, 127, 55, 0.4); }
.cl-item.s-failed   { background: var(--danger-soft); border-color: var(--danger); }
.cl-item.s-blocked  { background: var(--secondary-soft); border-color: var(--secondary); }
.cl-item .bug-link {
  font-size: 10px;
  color: var(--danger);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cl-add-row { display: flex; gap: 6px; padding: 6px 8px; }
.cl-add-row input {
  flex: 1;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 13px;
  background: var(--surface);
  color: var(--text);
}

/* ── AI-помощник ── */
#ai-section { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.ai-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ai-actions select, .ai-actions input {
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 12px;
  background: var(--surface);
  color: var(--text);
}
.ai-output {
  padding: 12px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin: 12px 0;
  white-space: pre-wrap;
  line-height: 1.6;
  font-size: 13px;
  max-height: 320px;
  overflow-y: auto;
  font-family: var(--font-sans);
}
.ai-output ul { margin: 4px 0; padding-left: 22px; }
.ai-output li { margin: 4px 0; }
.ai-output .ai-output-actions {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.ai-chat { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.ai-messages {
  max-height: 280px;
  overflow-y: auto;
  padding: 10px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  min-height: 60px;
}
.ai-messages:empty::before {
  content: '// CLAUDE_CHAT :: WAITING_FOR_INPUT';
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.ai-msg {
  padding: 9px 12px;
  margin-bottom: 6px;
  border-radius: var(--r-sm);
  white-space: pre-wrap;
  line-height: 1.5;
  font-size: 13px;
  border: 1px solid var(--border);
}
.ai-msg-user      { background: var(--primary-soft); border-color: var(--primary); color: var(--text); }
.ai-msg-assistant { background: var(--surface); }
.ai-msg-error     { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.ai-input { display: flex; gap: 6px; }
.ai-input textarea {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  resize: vertical;
  font-family: var(--font-sans);
  font-size: 13px;
  background: var(--surface);
  color: var(--text);
  min-height: 50px;
}
.ai-input textarea:focus { outline: none; border-color: var(--primary); }

.cl-item .ai-bug-btn {
  font-size: 10px;
  padding: 2px 6px;
  background: var(--danger-soft);
  border-color: var(--danger);
  color: var(--danger);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cl-item .ai-bug-btn:hover { background: var(--danger); color: #fff; }

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--text);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  z-index: 200;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-strong);
}
.toast.error { background: var(--danger); color: #fff; border-color: var(--danger); }
.toast.ok    { background: var(--success); color: #fff; border-color: var(--success); }

/* ── Login & user-info ── */
.user-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.user-role {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 1px 6px;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary);
}
.modal-login-window { width: 420px; }
.login-error {
  margin: 8px 0;
  padding: 8px 10px;
  background: var(--danger-soft);
  border: 1px solid var(--danger);
  color: var(--danger);
  border-radius: var(--r-md);
  font-size: 13px;
}
.login-hint {
  margin: 14px 0 0;
  padding: 10px;
  background: var(--surface-alt);
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
.login-hint code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 1px 5px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.hidden { display: none !important; }

/* ── Скроллбары (только Webkit) ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--surface-alt); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }
