/* Fighter Monitor - космическая тема
   Палитра: фон #060B1C, панели #0B1330, границы #1C2A52,
   акценты: циан #3EE0EA, фиолет #7C5CFF, розовый #FF3D8A, зеленый #2EE6A8 */

:root {
  --bg: #060b1c;
  --bg-deep: #040814;
  --panel: #0b1330;
  --panel-2: #0e1a3e;
  --line: #1c2a52;
  --line-soft: #16214372;
  --text: #e8eefc;
  --muted: #8a97b8;
  --cyan: #3ee0ea;
  --violet: #7c5cff;
  --pink: #ff3d8a;
  --green: #2ee6a8;
  --amber: #f5c451;
  --grad: linear-gradient(90deg, #2ec5e8 0%, #7c5cff 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --sidebar-w: 252px;
  --shadow: 0 12px 40px rgba(2, 6, 20, 0.55);
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  font-family: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(124, 92, 255, 0.16), transparent 60%),
    radial-gradient(900px 480px at -10% 15%, rgba(62, 224, 234, 0.10), transparent 55%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Звездное небо */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 22%, rgba(255,255,255,0.55), transparent 55%),
    radial-gradient(1px 1px at 28% 68%, rgba(255,255,255,0.35), transparent 55%),
    radial-gradient(1.6px 1.6px at 46% 12%, rgba(180,220,255,0.5), transparent 55%),
    radial-gradient(1px 1px at 61% 41%, rgba(255,255,255,0.3), transparent 55%),
    radial-gradient(1.3px 1.3px at 74% 78%, rgba(255,255,255,0.4), transparent 55%),
    radial-gradient(1px 1px at 88% 27%, rgba(190,230,255,0.45), transparent 55%),
    radial-gradient(1.5px 1.5px at 93% 62%, rgba(255,255,255,0.35), transparent 55%),
    radial-gradient(1px 1px at 7% 84%, rgba(255,255,255,0.3), transparent 55%),
    radial-gradient(1.2px 1.2px at 37% 91%, rgba(200,225,255,0.4), transparent 55%),
    radial-gradient(1px 1px at 55% 58%, rgba(255,255,255,0.25), transparent 55%);
}

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

h1, h2, h3 { margin: 0 0 6px; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: 26px; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }

p { margin: 0; }

/* ===== Каркас ===== */

.shell {
  position: relative;
  display: flex;
  min-height: 100vh;
}

/* ===== Сайдбар ===== */

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: rgba(6, 10, 26, 0.86);
  border-right: 1px solid var(--line-soft);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 15px;
  line-height: 1.15;
}

.brand .logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 19px;
  background: radial-gradient(circle at 30% 25%, #3ee0ea44, transparent 60%), var(--panel-2);
  border: 1px solid var(--line);
}

.brand em { color: var(--cyan); font-style: normal; }

.nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  transition: background 0.15s, color 0.15s;
}

.nav a:hover { color: var(--text); background: rgba(124, 92, 255, 0.10); text-decoration: none; }

.nav a.active {
  color: var(--text);
  background: linear-gradient(90deg, rgba(62, 224, 234, 0.14), rgba(124, 92, 255, 0.20));
  border: 1px solid rgba(124, 92, 255, 0.35);
}

.nav .icon { width: 20px; text-align: center; opacity: 0.9; }

.sidebar .spacer { flex: 1; }

.user-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 14px;
  font-size: 13px;
  color: var(--muted);
}

.user-card .who {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 10px;
}

.user-card .avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad);
  font-size: 14px;
  color: #05122a;
  font-weight: 800;
}

.user-card .row { display: flex; justify-content: space-between; padding: 3px 0; }
.user-card .row b { color: var(--cyan); font-weight: 700; }

.logout-form { margin-top: 10px; }

.logout-form button {
  width: 100%;
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}

.logout-form button:hover { color: var(--text); border-color: #2b3d70; }

/* ===== Мобильная шапка ===== */

.mobile-top {
  display: none;
  position: sticky;
  top: 0;
  z-index: 40;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(5, 9, 22, 0.94);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(8px);
}

.burger {
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  font-size: 19px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

#nav-toggle { display: none; }

/* ===== Контент ===== */

.main {
  flex: 1;
  min-width: 0;
  padding: 26px 30px 60px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar .sub { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ===== Кнопки ===== */

button, .btn {
  font: inherit;
  cursor: pointer;
  border: none;
  border-radius: 12px;
  padding: 11px 18px;
  font-weight: 700;
  font-size: 14px;
  color: #061126;
  background: var(--grad);
  transition: filter 0.15s, transform 0.1s;
}

button:hover, .btn:hover { filter: brightness(1.1); }
button:active { transform: translateY(1px); }

button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

button.secondary, .btn.secondary {
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--line);
}

button.ghost {
  background: none;
  color: var(--muted);
  border: 1px solid transparent;
  padding: 8px 12px;
}

button.ghost:hover { color: var(--text); }

button.danger {
  background: rgba(255, 61, 138, 0.14);
  color: var(--pink);
  border: 1px solid rgba(255, 61, 138, 0.4);
}

.btn-outline-cyan {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(62, 224, 234, 0.45);
  background: rgba(62, 224, 234, 0.07);
  color: var(--cyan);
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 14px;
}

.btn-outline-cyan:hover { text-decoration: none; background: rgba(62, 224, 234, 0.14); }

/* ===== Сообщения ===== */

.flash {
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 14px;
  border: 1px solid;
}

.flash.ok {
  background: rgba(46, 230, 168, 0.10);
  border-color: rgba(46, 230, 168, 0.4);
  color: var(--green);
}

.flash.warn {
  background: rgba(245, 196, 81, 0.08);
  border-color: rgba(245, 196, 81, 0.38);
  color: var(--amber);
}

/* ===== Статистика ===== */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow);
}

.stat .head { display: flex; align-items: center; gap: 12px; }

.stat .ico {
  width: 44px; height: 44px;
  border-radius: 13px;
  display: grid; place-items: center;
  font-size: 20px;
  border: 1px solid var(--line);
}

.stat.c1 .ico { background: rgba(62, 224, 234, 0.12); }
.stat.c2 .ico { background: rgba(124, 92, 255, 0.14); }
.stat.c3 .ico { background: rgba(124, 92, 255, 0.10); }
.stat.c4 .ico { background: rgba(255, 61, 138, 0.12); }

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

.stat .num { font-size: 28px; font-weight: 800; line-height: 1; }
.stat.c1 .num { color: var(--cyan); }
.stat.c2 .num { color: var(--green); }
.stat.c3 .num { color: var(--violet); }
.stat.c4 .num { color: var(--pink); }

.stat .foot {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line-soft);
  padding-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.stat .foot b { color: var(--text); }

/* ===== Сетка колонок ===== */

.columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
  align-items: start;
}

.col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

/* ===== Панели ===== */

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.panel.accent { border-color: rgba(62, 224, 234, 0.35); }

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-head .count {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 9px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
  margin-left: 8px;
}

.kicker {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

/* ===== Список мониторов ===== */

.mon-list { display: flex; flex-direction: column; gap: 10px; }

.mon {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(14, 26, 62, 0.45);
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
}

.mon .badge-letter {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--violet), #4a3db0);
}

.mon:nth-child(4n+2) .badge-letter { background: linear-gradient(135deg, #2ec5e8, #1b6fd0); }
.mon:nth-child(4n+3) .badge-letter { background: linear-gradient(135deg, var(--green), #148f66); }
.mon:nth-child(4n) .badge-letter { background: linear-gradient(135deg, var(--pink), #b0246a); }

.mon .info { min-width: 0; }
.mon .name { font-weight: 700; font-size: 15px; }

.mon .url {
  display: block;
  color: var(--cyan);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 2px 0 7px;
}

.chips { display: flex; gap: 6px; flex-wrap: wrap; }

.chip {
  font-size: 12px;
  color: var(--muted);
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px 9px;
}

.mon .side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.status {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-radius: 8px;
  padding: 5px 10px;
}

.status.on { color: var(--green); background: rgba(46, 230, 168, 0.12); border: 1px solid rgba(46, 230, 168, 0.4); }
.status.off { color: var(--amber); background: rgba(245, 196, 81, 0.1); border: 1px solid rgba(245, 196, 81, 0.4); }

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

.mon .err {
  grid-column: 1 / -1;
  color: var(--amber);
  font-size: 13px;
  background: rgba(245, 196, 81, 0.07);
  border: 1px solid rgba(245, 196, 81, 0.25);
  border-radius: 10px;
  padding: 9px 12px;
}

/* Кебаб-меню */

.kebab { position: relative; }

.kebab summary {
  list-style: none;
  cursor: pointer;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--muted);
  font-size: 17px;
  font-weight: 800;
  user-select: none;
}

.kebab summary::-webkit-details-marker { display: none; }
.kebab[open] summary { color: var(--text); border-color: var(--cyan); }

.kebab .menu {
  position: absolute;
  right: 0;
  top: 42px;
  z-index: 30;
  min-width: 190px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.kebab .menu form { margin: 0; }

.kebab .menu button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  padding: 9px 11px;
  border-radius: 8px;
}

.kebab .menu button:hover { background: rgba(124, 92, 255, 0.14); filter: none; }
.kebab .menu button.danger-item { color: var(--pink); }
.kebab .menu button.danger-item:hover { background: rgba(255, 61, 138, 0.12); }

.empty {
  text-align: center;
  color: var(--muted);
  padding: 34px 16px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  font-size: 14px;
}

/* ===== Добавить наблюдение ===== */

.add-option {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(14, 26, 62, 0.5);
  padding: 15px 16px;
  margin-top: 12px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.add-option:hover { border-color: rgba(62, 224, 234, 0.5); }

.add-option .ico {
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 13px;
  display: grid; place-items: center;
  font-size: 21px;
  background: var(--bg-deep);
  border: 1px solid var(--line);
}

.add-option .t { font-weight: 700; color: var(--cyan); font-size: 14px; }
.add-option .d { color: var(--muted); font-size: 13px; margin-top: 2px; }
.add-option .arr { margin-left: auto; color: var(--muted); font-size: 18px; }

/* Формы */

form.grid { display: grid; gap: 12px; }

label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }

input, select, textarea {
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 13px;
  width: 100%;
}

input::placeholder, textarea::placeholder { color: #55648c; }

input:focus, select:focus, textarea:focus { border-color: var(--cyan); outline: none; }

label.checkbox {
  grid-auto-flow: column;
  justify-content: start;
  align-items: center;
  gap: 9px;
}

label.checkbox input { width: 17px; height: 17px; accent-color: var(--violet); }

details.form-block { border: 1px solid var(--line); border-radius: 14px; background: rgba(14,26,62,0.4); margin-top: 12px; }
details.form-block > summary { list-style: none; cursor: pointer; padding: 0; }
details.form-block > summary::-webkit-details-marker { display: none; }
details.form-block > summary .add-option { border: none; margin: 0; background: none; }
details.form-block .body { padding: 4px 16px 16px; }

.selectors-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }

/* Превью анализа */

.preview-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 10px; }
.preview-table th, .preview-table td { padding: 8px 10px; border-bottom: 1px solid var(--line-soft); text-align: left; }
.preview-table th { color: var(--muted); font-weight: 600; font-size: 12px; }

.confidence { font-weight: 800; color: var(--green); }
.confidence.low { color: var(--amber); }

/* Экспертный блок */

.expert-cta {
  background:
    radial-gradient(500px 220px at 90% 0%, rgba(124, 92, 255, 0.22), transparent 60%),
    var(--panel);
}

.expert-cta .clock { color: var(--muted); font-size: 13px; margin-top: 10px; display: flex; align-items: center; gap: 7px; }

/* ===== История ===== */

.history-item {
  border-bottom: 1px solid var(--line-soft);
  padding: 13px 2px;
  font-size: 14px;
}

.history-item:last-child { border-bottom: none; }

.history-item .when { color: var(--muted); font-size: 12px; }
.history-item .mon-name { font-weight: 700; color: var(--cyan); }
.history-item pre {
  margin: 8px 0 0;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  background: var(--bg-deep);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 10px 12px;
}

/* ===== Диалог редактирования ===== */

dialog.edit-dialog {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  width: min(620px, calc(100vw - 32px));
  max-height: 88vh;
  overflow-y: auto;
}

dialog.edit-dialog::backdrop { background: rgba(3, 6, 16, 0.75); backdrop-filter: blur(3px); }

.dialog-close { display: flex; justify-content: flex-end; margin-bottom: 4px; }

/* ===== Адаптив ===== */

@media (max-width: 1180px) {
  .columns { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .mobile-top { display: flex; }

  .sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    z-index: 50;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    box-shadow: var(--shadow);
    height: 100dvh;
  }

  #nav-toggle:checked ~ .shell .sidebar { transform: translateX(0); }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(3, 6, 16, 0.6);
  }

  #nav-toggle:checked ~ .nav-overlay { display: block; }

  .main { padding: 16px 14px 48px; }

  .mon { grid-template-columns: 40px minmax(0, 1fr); }
  .mon .badge-letter { width: 40px; height: 40px; font-size: 16px; }
  .mon .side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }

  .selectors-grid { grid-template-columns: 1fr; }
  .topbar { flex-direction: column; }
}

@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  h1 { font-size: 22px; }
  .stat .num { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ===== Tabler-иконки ===== */

.ti {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.ti-sm { width: 17px; height: 17px; }
.ti-lg { width: 23px; height: 23px; }
.ti-xl { width: 34px; height: 34px; }

.nav .icon { display: inline-flex; }
.nav a .ti { stroke-width: 1.75; }

.brand .logo { color: var(--cyan); }
.stat .ico { stroke-width: 1.75; }
.stat.c1 .ico { color: var(--cyan); }
.stat.c2 .ico { color: var(--green); }
.stat.c3 .ico { color: var(--violet); }
.stat.c4 .ico { color: var(--pink); }

.add-option .ico { color: var(--cyan); stroke-width: 1.75; }

.btn-outline-cyan .ti, button .ti { vertical-align: -3px; }

.kebab .menu button {
  display: flex;
  align-items: center;
  gap: 9px;
}

.kebab summary .ti { width: 18px; height: 18px; }

.expert-cta .clock { align-items: center; }

/* ===== Подписки ===== */
.subscription-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 6px;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
}
.subscription-mini.active {
  color: #93f7ca;
  background: rgba(55, 211, 153, 0.10);
  border: 1px solid rgba(55, 211, 153, 0.24);
}
.subscription-mini.inactive {
  color: #ff9ca8;
  background: rgba(255, 91, 112, 0.09);
  border: 1px solid rgba(255, 91, 112, 0.22);
}
.subscription-admin { min-width: 330px; }
.subscription-form {
  display: grid;
  grid-template-columns: 90px 160px 160px auto;
  gap: 6px;
  align-items: center;
}
.subscription-form input {
  min-width: 0;
  padding: 8px 9px;
  font-size: 12px;
}
.subscription-form button,
.subscription-actions button {
  padding: 8px 10px;
  font-size: 12px;
  white-space: nowrap;
}
.subscription-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}
.subscription-actions form { margin: 0; }
@media (max-width: 1100px) {
  .subscription-form { grid-template-columns: 1fr 1fr; }
  .subscription-admin { min-width: 260px; }
}


/* ===== Чат поддержки ===== */
.support-chat {
  max-height: 420px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(3, 8, 24, 0.58);
}
.chat-message {
  max-width: 82%;
  padding: 11px 13px;
  border-radius: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.chat-message.from-user {
  align-self: flex-end;
  background: rgba(62, 224, 234, 0.12);
  border: 1px solid rgba(62, 224, 234, 0.28);
}
.chat-message.from-admin {
  align-self: flex-start;
  background: rgba(124, 92, 255, 0.15);
  border: 1px solid rgba(124, 92, 255, 0.30);
}
.chat-meta { color: var(--muted); font-size: 11px; margin-bottom: 5px; }
.chat-body { color: var(--text); font-size: 14px; }
.chat-link { display: inline-block; margin-top: 7px; font-size: 12px; }
.chat-empty { color: var(--muted); text-align: center; padding: 24px 8px; }
@media (max-width: 640px) {
  .chat-message { max-width: 94%; }
  .support-chat { max-height: 360px; padding: 10px; }
}


/* ===== Компактный чат и автообновление ===== */
.support-chat {
  max-height: 340px;
  min-height: 0;
  gap: 8px;
  padding: 10px;
}

.chat-message {
  display: block;
  width: fit-content;
  min-width: 0;
  min-height: 0 !important;
  height: auto !important;
  flex: 0 0 auto;
  max-width: min(82%, 620px);
  padding: 9px 11px;
  border-radius: 13px;
}

.chat-meta {
  margin: 0 0 4px;
  line-height: 1.25;
}

.chat-body {
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .support-chat {
    max-height: 320px;
    padding: 8px;
  }

  .chat-message {
    max-width: 88%;
    padding: 8px 10px;
  }
}


/* ===== Способы входа ===== */
.account-access {
  margin-bottom: 18px;
}

.account-access-grid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.account-method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(3, 8, 24, 0.42);
}

.account-method > div:first-child {
  display: grid;
  gap: 4px;
}

.account-method strong {
  font-size: 14px;
}

.account-method span:not(.status) {
  color: var(--muted);
  font-size: 13px;
}

.account-method-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.account-method-actions form {
  margin: 0;
}

@media (max-width: 640px) {
  .account-method {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-method-actions {
    width: 100%;
    justify-content: space-between;
  }

  .account-method-actions button {
    width: auto;
  }
}


.release-feed{scroll-margin-top:18px}.release-list{display:grid;gap:10px}.release-card{border:1px solid var(--line,#263247);border-radius:14px;background:rgba(255,255,255,.025);overflow:hidden}.release-card.latest{border-color:#20d9ff;box-shadow:0 0 0 1px rgba(32,217,255,.12)}.release-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 16px;cursor:pointer;list-style:none;user-select:none}.release-summary::-webkit-details-marker{display:none}.release-summary:hover{background:rgba(255,255,255,.025)}.release-summary-main,.release-summary-side{display:flex;align-items:center;gap:11px;min-width:0}.release-summary-main strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.release-version{display:inline-flex;flex:0 0 auto;padding:4px 9px;border-radius:999px;background:rgba(32,217,255,.12);color:#20d9ff;font-size:12px;font-weight:800}.release-summary time{color:var(--muted,#8792a8);font-size:12px;white-space:nowrap}.release-chevron{color:#20d9ff;font-size:20px;line-height:1;transition:transform .2s ease}.release-card[open] .release-chevron{transform:rotate(180deg)}.release-details{padding:0 16px 16px;border-top:1px solid rgba(255,255,255,.06)}.release-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:16px}.release-columns>div{padding:13px;border-radius:12px;background:rgba(255,255,255,.035)}.release-columns strong{display:block;margin-bottom:7px}.release-columns p{margin:0;white-space:pre-line;color:var(--muted,#a5afc2);line-height:1.55}@media(max-width:800px){.release-summary{align-items:flex-start}.release-summary-main{align-items:flex-start}.release-summary-side{margin-left:auto}.release-summary-main strong{white-space:normal}.release-columns{grid-template-columns:1fr}}
