/* queue.css — Стили кабинета лороведа и очереди задач */

:root {
  --nes-bg: #091728;
  --nes-bg-dark: #050d18;
  --nes-card-bg: #0d1e32;
  --nes-card-hover: #12253d;
  --nes-panel-border: 1px solid #234568;
  --nes-gold: #ffcb05;
  --nes-cyan: #38bdf8;
  --nes-green: #22c55e;
  --nes-red: #f43f5e;
  --nes-amber: #f59e0b;
  --nes-purple: #c084fc;
  --font-title: 'Russo One', sans-serif;
  --font-body: 'Rubik', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100vh;
  background-color: var(--nes-bg);
  color: #f8fafc;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.12) 0%, transparent 60%),
    linear-gradient(rgba(0,0,0,0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.15) 1px, transparent 1px);
  background-size: 100% 100%, 36px 36px, 36px 36px;
}

.queue-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

/* ── Шапка ───────────────────────────────────────────────────────────── */

.queue-head {
  margin-bottom: 24px;
}

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

.back-link {
  color: var(--nes-cyan);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
}

.back-link:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

.nav-links {
  display: flex;
  gap: 12px;
}

.nav-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid #334155;
  transition: all 0.15s ease;
}

.nav-links a:hover {
  color: #f8fafc;
  background: #334155;
  border-color: var(--nes-cyan);
}

.eyebrow {
  color: var(--nes-gold);
  font-family: var(--font-title);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.queue-head h1 {
  font-family: var(--font-title);
  font-size: 32px;
  color: #f8fafc;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.lede {
  color: #94a3b8;
  font-size: 14px;
  max-width: 800px;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* ── Блок авторизации ────────────────────────────────────────────────── */

.auth-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0d1e32;
  border: var(--nes-panel-border);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.auth-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #64748b;
  display: inline-block;
}

.status-dot.online {
  background: var(--nes-green);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.status-dot.offline {
  background: var(--nes-amber);
}

.auth-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.auth-controls input {
  background: #050d18;
  border: 1px solid #334155;
  color: #f8fafc;
  padding: 6px 12px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  width: 180px;
  transition: border-color 0.15s;
}

.auth-controls input:focus {
  outline: none;
  border-color: var(--nes-cyan);
}

.btn-primary {
  background: #0284c7;
  color: #fff;
  border: 1px solid #38bdf8;
  padding: 6px 14px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-primary:hover {
  background: #0369a1;
}

/* ── Статистика и табы ───────────────────────────────────────────────── */

.statline {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #94a3b8;
  font-family: var(--font-mono);
  margin-bottom: 14px;
}

.queue-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tab-btn {
  background: #0d1e32;
  border: 1px solid #234568;
  color: #94a3b8;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.tab-btn .badge {
  background: #1e293b;
  color: var(--nes-cyan);
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 700;
}

.tab-btn:hover {
  border-color: #38bdf8;
  color: #f8fafc;
}

.tab-btn.active {
  background: #1e3a5f;
  border-color: var(--nes-cyan);
  color: #f8fafc;
}

.tab-btn.active .badge {
  background: var(--nes-cyan);
  color: #091728;
}

/* ── Тулбар ──────────────────────────────────────────────────────────── */

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.search {
  flex: 1 1 300px;
  display: flex;
  align-items: center;
  background: #0d1e32;
  border: var(--nes-panel-border);
  border-radius: 6px;
  padding: 8px 12px;
  gap: 8px;
  color: #94a3b8;
}

.search input {
  background: transparent;
  border: none;
  color: #f8fafc;
  font-size: 13px;
  width: 100%;
}

.search input:focus {
  outline: none;
}

.btn-refresh {
  background: #1e293b;
  border: 1px solid #334155;
  color: #cbd5e1;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.15s;
}

.btn-refresh:hover {
  background: #334155;
  color: #f8fafc;
  border-color: var(--nes-cyan);
}

.count {
  color: #64748b;
  font-size: 12px;
  font-family: var(--font-mono);
}

/* ── Уведомления ─────────────────────────────────────────────────────── */

.notice-box {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 13px;
}

.notice-box.success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid var(--nes-green);
  color: #86efac;
}

.notice-box.error {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid var(--nes-red);
  color: #fda4af;
}

/* ── Список задач ────────────────────────────────────────────────────── */

.queue-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.task-card {
  background: var(--nes-card-bg);
  border: var(--nes-panel-border);
  border-radius: 8px;
  padding: 18px 20px;
  position: relative;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.task-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.task-card.lore-s8 {
  border-left: 5px solid var(--nes-gold);
}

.task-card.lore-unproven {
  border-left: 5px solid var(--nes-amber);
}

.task-card.lore-live {
  border-left: 5px solid var(--nes-cyan);
}

.task-card.resolved {
  border-left: 5px solid var(--nes-green);
  opacity: 0.85;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.card-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.badge-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.badge-s8 {
  background: rgba(255, 203, 5, 0.15);
  color: var(--nes-gold);
  border: 1px solid rgba(255, 203, 5, 0.4);
}

.badge-unproven {
  background: rgba(245, 158, 11, 0.15);
  color: var(--nes-amber);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-live {
  background: rgba(56, 189, 248, 0.15);
  color: var(--nes-cyan);
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.card-match-title {
  font-family: var(--font-title);
  font-size: 20px;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-match-title .vs {
  font-size: 14px;
  color: #64748b;
  font-family: var(--font-mono);
}

.card-meta {
  color: #94a3b8;
  font-size: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.card-meta .meta-pill {
  background: #1e293b;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #334155;
  color: #cbd5e1;
}

/* ── Блоки внутри карточки ───────────────────────────────────────────── */

.card-doubt {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-left: 3px solid var(--nes-amber);
  padding: 10px 14px;
  border-radius: 4px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #fef08a;
  line-height: 1.5;
}

.card-doubt strong {
  color: var(--nes-amber);
  font-weight: 700;
}

.card-task {
  background: rgba(56, 189, 248, 0.05);
  border-left: 3px solid var(--nes-cyan);
  padding: 8px 12px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #e2e8f0;
}

.card-task strong {
  color: var(--nes-cyan);
}

.card-current-state {
  display: flex;
  gap: 16px;
  background: #050d18;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid #1e293b;
  font-size: 12px;
  color: #cbd5e1;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.card-current-state .state-item strong {
  color: #94a3b8;
  margin-right: 4px;
}

.card-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  font-size: 12px;
}

.card-links strong {
  color: #94a3b8;
}

.link-btn {
  background: #1e293b;
  border: 1px solid #334155;
  color: #38bdf8 !important;
  text-decoration: none;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.link-btn:hover {
  background: #0284c7;
  color: #fff !important;
  border-color: #38bdf8;
}

/* ── Форма решения лороведа ──────────────────────────────────────────── */

.decision-box {
  background: #050d18;
  border: 1px solid #234568;
  border-radius: 6px;
  padding: 14px 16px;
  margin-top: 10px;
}

.decision-header {
  font-family: var(--font-title);
  font-size: 13px;
  color: var(--nes-gold);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: #0d1e32;
  border: 1px solid #334155;
  color: #f8fafc;
  padding: 7px 10px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 13px;
  transition: border-color 0.15s;
}

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

.score-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.score-inputs input {
  width: 60px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
}

.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid #1e293b;
  padding-top: 12px;
}

.btn-save {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: 1px solid #34d399;
  padding: 8px 18px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-save:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.5);
}

.btn-preview {
  background: #1e293b;
  color: var(--nes-cyan);
  border: 1px solid #334155;
  padding: 8px 14px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-preview:hover {
  background: #334155;
  border-color: var(--nes-cyan);
}

.diff-preview-box {
  margin-top: 10px;
  padding: 10px 12px;
  background: #091728;
  border: 1px dashed var(--nes-cyan);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #e2e8f0;
  max-height: 200px;
  overflow-y: auto;
}

.diff-preview-box pre {
  white-space: pre-wrap;
  word-break: break-all;
}

/* ── Журнал ──────────────────────────────────────────────────────────── */

.journal-section {
  margin-top: 48px;
  border-top: var(--nes-panel-border);
  padding-top: 24px;
}

.journal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.journal-header h2 {
  font-family: var(--font-title);
  font-size: 20px;
  color: #f8fafc;
}

.btn-undo {
  background: #334155;
  border: 1px solid #475569;
  color: #f8fafc;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
}

.btn-undo:hover:not(:disabled) {
  background: #475569;
  border-color: var(--nes-red);
}

.btn-undo:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.journal-entries {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.journal-item {
  background: #0d1e32;
  border-left: 3px solid var(--nes-cyan);
  padding: 8px 12px;
  font-size: 12px;
  border-radius: 0 4px 4px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.journal-item .time {
  color: #64748b;
  font-family: var(--font-mono);
}

.journal-item .author {
  color: var(--nes-gold);
  font-weight: 600;
}

/* ── Подвал ──────────────────────────────────────────────────────────── */

.queue-footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid #1e293b;
  text-align: center;
  color: #64748b;
  font-size: 12px;
}

.footer-links {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--nes-cyan);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .queue-wrap {
    padding: 16px 12px 40px;
  }
  .queue-head h1 {
    font-size: 24px;
  }
  .card-match-title {
    font-size: 17px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}
.archive-review-form { margin-top:20px; padding:18px; border:1px solid #234568; border-radius:8px; background:#091728; }
.archive-review-form h3 { color:var(--nes-gold); margin-bottom:12px; }
.archive-review-form p { color:#a5b8ce; font-size:13px; margin:12px 0; }
.archive-review-form label { display:flex; flex-direction:column; gap:6px; color:#cbd5e1; font-size:13px; }
.archive-review-form input,.archive-review-form select,.archive-review-form textarea { padding:10px; border:1px solid #234568; border-radius:6px; background:#06111e; color:#f8fafc; width:100%; min-width:0; font:14px var(--font-body); }
.archive-review-form input[type=checkbox] { width:24px; height:24px; }
.archive-review-form textarea { min-height:80px; resize:vertical; }
.review-game { padding:14px; margin:16px 0; border:1px solid #234568; border-radius:6px; }
.review-game legend { color:var(--nes-cyan); padding:0 6px; }
.review-result { margin-top:16px; color:#f8fafc; max-height:360px; overflow:auto; font-size:12px; }

.archive-review-form .form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
@media(max-width:640px) { .archive-review-form .form-grid { grid-template-columns:minmax(0,1fr); } }
/* Подсказки ников: выбор только явным действием пользователя. */
.nick-combobox { position:relative; display:block; min-width:0; }
.nick-options { position:absolute; left:0; right:0; top:calc(100% + 4px); z-index:300; padding:5px; max-height:240px; overflow:auto; background:#10263f; border:1px solid #38bdf8; border-radius:6px; box-shadow:0 12px 24px #0008; color:#cbd5e1; }
.nick-options[hidden],.archive-review-form [hidden] { display:none!important; }
.nick-options [role=option] { display:block; padding:10px 12px; cursor:pointer; color:#f8fafc; border-radius:4px; }
.nick-options [role=option]:hover,.nick-options [aria-selected=true] { background:#234568; color:#ffcb05; }
.common-roster { padding:16px; margin:18px 0; background:#0d1e32; border:1px solid #234568; border-radius:8px; }
.common-roster h4 { margin-bottom:12px; color:#ffcb05; }
.common-roster > button { margin-top:12px; }
.game-pairs { margin-bottom:12px; color:#e8eef6; font-size:14px; font-weight:600; overflow-wrap:anywhere; }
.review-scoreline { display:grid; grid-template-columns:80px 16px 80px minmax(150px,1fr) auto; gap:10px; align-items:end; }
.score-colon { align-self:center; padding-top:18px; text-align:center; font-size:22px; }
.review-scoreline input[type=number] { text-align:center; font:700 20px var(--font-mono); }
.archive-review-form .game-playoff { flex-direction:row; align-items:center; padding-bottom:10px; }
.review-pk { display:grid; grid-template-columns:100px 100px; gap:12px; padding-top:12px; }
.game-tools { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.game-tools button { font-size:12px; }
.row-player-fields { margin-top:14px; }
.review-workspace {display:grid;grid-template-columns:minmax(240px,.8fr) minmax(0,1.5fr);gap:20px;align-items:start;margin-top:18px;}
.review-source {position:sticky;top:16px;max-height:80vh;overflow:auto;padding:16px;background:#091728;border:1px solid #234568;border-radius:6px;}
.review-source pre {white-space:pre-wrap;overflow-wrap:anywhere;font:14px/1.7 var(--font-body);margin-top:12px;}
.review-edit-pane {min-width:0;}
.review-workspace:not(.editing) {display:block;}
.review-workspace:not(.editing) .review-source {position:static;margin-bottom:12px;}
.review-workspace.editing .review-edit-pane > [data-review-open] {display:none;}
.review-workspace:not(.editing) .workspace-tabs {display:none;}
.review-workspace .archive-review-form {margin-top:16px;}
.workspace-tabs {display:none;}
.draft-status {color:var(--nes-cyan)!important;line-height:1.5;}
.field-error {color:#fca5a5;font-size:12px;line-height:1.5;}
.archive-review-form [aria-invalid=true] {border-color:#f87171;outline:1px solid #f87171;}
.work-filters {display:flex;gap:12px;flex-wrap:wrap;align-items:end;margin:12px 0;}
.work-filters label {display:grid;grid-template-columns:minmax(0,1fr);gap:6px;color:#cbd5e1;font-size:13px;min-width:0;width:min(380px,100%);}
.work-filters select {width:100%;min-width:0;max-width:100%;padding:10px;color:#fff;background:#091728;border:1px solid #234568;border-radius:5px;}
.journal-operation summary {cursor:pointer;line-height:1.6;}
.journal-operation {padding:14px 0;border-bottom:1px solid #234568;overflow-wrap:anywhere;}
.journal-operation button {margin-top:10px;}
.publication-status {padding:12px 16px;border-left:3px solid var(--nes-cyan);color:#cbd5e1;font-size:14px;line-height:1.6;}
.decision-form [hidden] {display:none!important;}
.decision-form [aria-invalid=true] {border-color:#f87171;}
.diff-preview-box {white-space:pre-wrap;line-height:1.6;}
.archive-review-form button:disabled,.decision-form button:disabled {opacity:.45;cursor:not-allowed;box-shadow:none;}
.comparison-game {margin:14px 0;}
.review-result {max-height:none;overflow:visible;overflow-wrap:anywhere;}
.comparison-game table {width:100%;border-collapse:collapse;table-layout:fixed;margin-top:8px;font-size:13px;}
.comparison-game th,.comparison-game td {text-align:left;padding:8px;border:1px solid #234568;vertical-align:top;overflow-wrap:anywhere;}
.comparison-game th {color:#ffcb05;}
.comparison-game td:last-child {background:#12312d;}
.conflict-panel,.report-assistant {padding:16px;margin:16px 0;border:1px solid #b08824;background:#102238;border-radius:6px;}
.conflict-panel {border-color:#f59e0b;}
.conflict-panel h4 {color:#ffcb05;}
.conflict-panel label {margin:12px 0;}
.conflict-panel p {white-space:pre-wrap;}
.conflict-panel pre {white-space:pre-wrap;overflow-wrap:anywhere;max-height:300px;overflow:auto;font:13px/1.6 var(--font-body);}
.report-assistant summary {cursor:pointer;color:#38bdf8;font-weight:600;}
.report-assistant textarea {margin:12px 0;min-height:140px;}
.archive-review-form .report-choice {display:block;margin:12px 0;padding:10px;background:#091728;overflow-wrap:anywhere;}
.report-choice input[type=checkbox] {display:inline-block;width:22px;height:22px;margin-right:10px;vertical-align:middle;}
.report-choice small {display:block;margin-top:8px;color:#fbbf24;}
.report-assistant pre {white-space:pre-wrap;overflow-wrap:anywhere;}
.proposal-source {color:#fbbf24!important;}
[data-confirm-proposal][aria-pressed=true] {color:#86efac;border-color:#22c55e;}
@media(max-width:1100px) {
 .review-workspace {grid-template-columns:minmax(0,1fr);}
 .workspace-tabs {display:flex;gap:8px;position:sticky;top:0;z-index:15;background:#0d1e32;padding:10px 0;}
 .workspace-tabs button {padding:10px 16px;background:#091728;color:#38bdf8;border:1px solid #234568;border-radius:5px;}
 .workspace-tabs [aria-pressed=true] {color:#ffcb05;border-color:#ffcb05;}
 .review-source {position:static;max-height:none;}
 .review-workspace.editing[data-pane=editor] .review-source,.review-workspace.editing[data-pane=source] .review-edit-pane {display:none;}
}
@media(max-width:640px) {
 .review-scoreline { grid-template-columns:minmax(0,1fr) 12px minmax(0,1fr); }
 .review-scoreline > label:nth-of-type(3) { grid-column:1/3; }
 .game-playoff { grid-column:3; }
 .common-roster,.review-game { padding:12px; }
}

.skip-link {position:fixed;left:12px;top:8px;z-index:100001;padding:12px 18px;background:#ffcb05;color:#071423;font-weight:700;transform:translateY(-160%);}
.skip-link:focus {transform:translateY(0);}
:where(a,button,input,select,textarea):focus-visible {outline:3px solid #38bdf8;outline-offset:3px;}

/* Крупное поле видео и последовательные подсказки для редактора архива. */
.nst-video-help,.video-help {grid-column:1/-1;padding:16px;border:1px solid #38bdf8;border-radius:6px;background:#10283c;color:#e2e8f0;line-height:1.6;font-size:15px;}
.nst-video-help h3 {font-size:18px;margin:0 0 10px;color:#ffcb05;}
.nst-video-help label,.video-help label {display:block;font-size:16px;font-weight:600;}
.nst-video-help input,.video-help input {display:block;box-sizing:border-box;width:100%;min-height:46px;padding:10px;margin-top:8px;background:#091b2b;color:#fff;border:1px solid #65839a;border-radius:4px;font-size:16px;}
.nst-video-help button {min-height:44px;font-size:16px;padding:10px 16px;}
.video-help p,.nst-video-help p {margin:10px 0;}
.video-help summary,.nst-edit-sources-advanced summary {padding:8px 0;color:#38bdf8;cursor:pointer;font-size:15px;}
.video-help ol {padding-left:24px;}
.optional-field {font-size:14px;font-weight:400;color:#cbd5e1;}
.nst-video-help a,.video-help a {color:#38bdf8;overflow-wrap:anywhere;}
