:root {
  --blue: #1a4a9c;
  --blue-dark: #0f2f6b;
  --blue-deep: #071833;
  --gold: #c4a574;
  --gold-light: #e0c9a0;
  --gold-dim: rgba(196, 165, 116, 0.22);
  --white: #ffffff;
  --snow: #eef3fa;
  --ink: #122038;
  --muted: #5a6b86;
  --line: rgba(26, 74, 156, 0.14);
  --ok: #1f8a5b;
  --err: #c62828;
  --debt-bg: #ffe8e6;
  --font-display: "Libre Baskerville", "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(196,165,116,0.18), transparent 55%),
    linear-gradient(180deg, #dfe8f6 0%, var(--snow) 28%, #ffffff 100%);
}

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

.shell { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem 3rem; }
.shell-auth { max-width: none; padding: 0; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(180deg, var(--blue-deep), var(--blue));
  border-bottom: 4px solid var(--gold);
  box-shadow: 0 10px 30px rgba(7, 24, 51, 0.28);
}
.topbar-inner {
  max-width: 1140px; margin: 0 auto; padding: 0.85rem 1.25rem;
  display: flex; gap: 1rem; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
}
.brand {
  display: flex; align-items: baseline; gap: 0.55rem;
  font-family: var(--font-display); color: var(--white); text-decoration: none !important;
}
.brand-name { font-size: 1.6rem; font-weight: 700; }
.brand-domain { font-size: 0.72rem; color: var(--gold-light); letter-spacing: 0.08em; }

.nav { display: flex; flex-wrap: wrap; gap: 0.15rem 0.7rem; }
.nav a {
  color: rgba(255,255,255,0.88); font-size: 0.86rem;
  padding: 0.2rem 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a.active {
  color: var(--gold-light); text-decoration: none; border-color: var(--gold);
}

.userchip {
  font-size: 0.85rem; color: rgba(255,255,255,0.8);
  display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap;
}
.who-highlight strong {
  color: var(--gold-light);
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}
.userchip a { color: var(--gold-light); }

.hero { padding: 1.8rem 0 1rem; display: grid; gap: 0.5rem; }
.hero h1 {
  margin: 0; font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.7rem); color: var(--blue-deep); line-height: 1.05;
}
.hero p { margin: 0; color: var(--muted); max-width: 40rem; }

.meander {
  height: 8px; border-radius: 2px; margin: 0.2rem 0 1.1rem; opacity: 0.9;
  background: repeating-linear-gradient(90deg, var(--blue) 0 10px, var(--blue) 10px 12px, var(--gold) 12px 22px, var(--gold) 22px 24px);
}

.grid-2 { display: grid; gap: 1.25rem; grid-template-columns: 1.2fr 1fr; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 12px 32px rgba(7, 24, 51, 0.06);
}
.panel h2, .panel h3 {
  margin: 0 0 0.75rem; font-family: var(--font-display); color: var(--blue-deep);
}
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }

.news-item { padding: 1rem 0; border-top: 1px solid var(--line); }
.news-item:first-of-type { border-top: 0; padding-top: 0; }
.news-meta { font-size: 0.78rem; color: var(--muted); margin-bottom: 0.35rem; }
.news-compose { margin-bottom: 1rem; }
.media-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.6rem 0; }
.media-row img.thumb, .media-row video { max-width: 220px; border-radius: 10px; cursor: zoom-in; }
.file-chip {
  display: inline-block; padding: 0.35rem 0.7rem; border-radius: 999px;
  background: var(--snow); border: 1px solid var(--line); font-size: 0.82rem;
}
.comment {
  margin-top: 0.5rem; padding: 0.55rem 0.7rem;
  background: var(--snow); border-radius: 10px; border-left: 3px solid var(--gold);
}
.comment .who { font-size: 0.78rem; color: var(--blue); margin-bottom: 0.15rem; }
.about-goals h2 { font-family: var(--font-display); color: var(--blue-deep); }
.about-prose {
  line-height: 1.55;
  color: var(--ink);
}
.about-prose p { margin: 0 0 0.65rem; }
.about-creed {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

table.data { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.data th, table.data td {
  text-align: left; padding: 0.5rem 0.35rem; border-bottom: 1px solid var(--line); vertical-align: top;
}
table.data th {
  color: var(--blue); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em;
  background: rgba(26,74,156,0.05);
}
.jersey { font-family: var(--font-display); font-weight: 700; color: var(--gold); }
tr.debtor { background: var(--debt-bg) !important; }

button, .btn, input[type=submit] {
  appearance: none; border: 0; cursor: pointer;
  background: var(--blue); color: white; font-weight: 700;
  border-radius: 999px; padding: 0.55rem 1.15rem;
  font-family: var(--font-body); font-size: 0.92rem;
}
button.secondary, .btn.secondary {
  background: transparent; border: 1px solid var(--line); color: var(--blue-dark);
}
button.gold, .btn-xl.gold { background: var(--gold); color: var(--blue-deep); }
button:hover { filter: brightness(1.05); }

.btn-xl {
  display: inline-flex; justify-content: center; align-items: center;
  min-width: 10rem; padding: 0.9rem 1.4rem; border-radius: 999px;
  background: var(--blue); color: white !important; font-weight: 800;
  text-decoration: none !important; font-size: 1.05rem;
}

.tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tabs a {
  padding: 0.4rem 0.85rem; border-radius: 999px; border: 1px solid var(--line);
  color: var(--blue-dark); font-size: 0.88rem; background: var(--white);
}
.tabs a.active { background: var(--blue); color: white; border-color: var(--blue); text-decoration: none; }

form.stack { display: grid; gap: 0.7rem; }
label { display: grid; gap: 0.3rem; font-size: 0.85rem; color: var(--muted); }
input, textarea, select {
  width: 100%; border-radius: 12px; border: 1px solid var(--line);
  background: var(--white); color: var(--ink); padding: 0.65rem 0.8rem; font: inherit;
}
.hint-input::placeholder { color: var(--blue); opacity: 0.75; font-weight: 600; }

.flash { list-style: none; padding: 0; margin: 1rem 0; }
.flash li { padding: 0.7rem 0.9rem; border-radius: 12px; margin-bottom: 0.4rem; }
.flash .ok { background: rgba(31,138,91,0.12); border: 1px solid rgba(31,138,91,0.3); }
.flash .error { background: rgba(198,40,40,0.1); border: 1px solid rgba(198,40,40,0.3); }

.auth-hero {
  min-height: 100vh; display: grid; place-items: center; padding: 1.5rem;
  position: relative; overflow: hidden;
}
.auth-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 360px at 15% 20%, rgba(196,165,116,0.28), transparent 60%),
    radial-gradient(800px 400px at 90% 80%, rgba(26,74,156,0.35), transparent 55%),
    linear-gradient(145deg, var(--blue-deep), var(--blue) 55%, #163a7a);
}
.auth-hero.compact .auth-hero-bg { display: none; }
.auth-hero.compact {
  background: linear-gradient(145deg, var(--blue-deep), var(--blue) 60%, #163a7a);
}
.auth-card {
  position: relative; z-index: 1;
  width: min(440px, 100%);
  background: rgba(255,255,255,0.97);
  border-top: 4px solid var(--gold);
  border-radius: 24px;
  padding: 1.8rem 1.6rem;
  box-shadow: 0 30px 80px rgba(0,0,0,0.28);
}
.welcome-card { width: min(520px, 100%); text-align: center; }
.welcome-card h1 {
  margin: 0.2rem 0 0.7rem; font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 3.6rem); color: var(--blue-deep);
}
.eyebrow { letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-size: 0.75rem; margin: 0; }
.lead { color: var(--muted); margin: 0 0 1.4rem; line-height: 1.45; }
.auth-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.auth-card h1 { font-family: var(--font-display); color: var(--blue-deep); margin: 0 0 1rem; font-size: 1.55rem; }
.hint { font-size: 0.82rem; color: var(--muted); text-align: center; margin-top: 1rem; }

.chat-box { display: grid; gap: 0.75rem; max-height: 55vh; overflow: auto; }
.msg { background: var(--snow); border: 1px solid var(--line); border-radius: 14px; padding: 0.7rem 0.85rem; }
.msg.mine { border-color: rgba(196,165,116,0.5); background: #fffaf0; }
.msg .who { font-size: 0.78rem; color: var(--blue); margin-bottom: 0.25rem; }
.msg .when { float: right; color: var(--muted); }
.msg-text, .comment .msg-text {
  line-height: 1.45;
  word-break: break-word;
}
.emoji-compose { display: grid; gap: 0.35rem; }
.emoji-bar {
  display: flex; flex-wrap: wrap; gap: 0.2rem;
  padding: 0.35rem 0.4rem;
  background: var(--snow);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.emoji-btn {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0.12rem 0.2rem;
  line-height: 1;
  font-size: 0.95rem;
  border-radius: 6px;
  transition: background 0.12s, transform 0.08s;
}
.emoji-btn:hover {
  background: rgba(26, 74, 156, 0.1);
  transform: scale(1.12);
}
.emoji-btn:active { transform: scale(0.95); }
.peer-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.peer-list a {
  padding: 0.35rem 0.7rem; border-radius: 999px; border: 1px solid var(--line); font-size: 0.85rem;
}

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.stats.stats-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .stats.stats-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .stats, .stats.stats-4 { grid-template-columns: 1fr; }
}
.stat {
  background: linear-gradient(180deg, rgba(26,74,156,0.08), var(--white));
  border-radius: 14px; padding: 0.9rem; border: 1px solid var(--line);
}
.stat.stat-warn {
  background: linear-gradient(180deg, rgba(198,40,40,0.1), var(--white));
  border-color: rgba(198,40,40,0.25);
}
.stat b { display: block; font-size: 1.4rem; font-family: var(--font-display); color: var(--blue-deep); }
.stat span { color: var(--muted); font-size: 0.8rem; }

.badge {
  display: inline-block; padding: 0.12rem 0.45rem; border-radius: 999px;
  font-size: 0.7rem; border: 1px solid var(--line); color: rgba(255,255,255,0.9);
}
.badge.admin { border-color: var(--gold); color: var(--gold-light); background: var(--gold-dim); }
.badge.team { border-color: rgba(255,255,255,0.35); }
.pc-body .badge.team,
.team-badges .badge.team {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(26,74,156,0.08);
}
.team-badges { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0.35rem 0 0.5rem; }
.coach-card .photo-wrap {
  background: linear-gradient(165deg, #071833 0%, #1a4a9c 50%, #c4a574 130%);
}
.coach-card .jersey { color: var(--blue-deep); letter-spacing: 0.04em; }

.roster-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.player-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: 0 10px 24px rgba(7,24,51,0.05);
}
.photo-wrap {
  aspect-ratio: 1.05;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.15rem 1rem 0.85rem;
  background:
    radial-gradient(120% 90% at 50% 20%, rgba(224,201,160,0.22), transparent 55%),
    linear-gradient(165deg, #0a1f4a 0%, #1a4a9c 55%, #163a7a 100%);
}
.photo-wrap img {
  width: min(78%, 200px);
  aspect-ratio: 1;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 12%;
  background: #f3f6fb;
  border: 3px solid var(--gold-light);
  box-shadow:
    0 0 0 4px rgba(26, 74, 156, 0.35),
    0 12px 28px rgba(7, 24, 51, 0.35);
  cursor: zoom-in;
}
.photo-ph {
  width: min(78%, 200px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--gold-light);
  background: linear-gradient(160deg, #071833, #1a4a9c);
  border: 3px solid var(--gold-light);
  box-shadow:
    0 0 0 4px rgba(26, 74, 156, 0.35),
    0 12px 28px rgba(7, 24, 51, 0.35);
}
.pc-body { padding: 0.35rem 1rem 1rem; }
.pc-body h3 { margin: 0.2rem 0; font-size: 1rem; }

.filters { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: end; }
.filters label { min-width: 10rem; }
.rank { margin: 0; padding-left: 1.2rem; }
.rank li { margin: 0.25rem 0; }

.list-link {
  display: block; padding: 0.55rem 0; border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none;
}
.list-link:hover { color: var(--blue); }
.roster-text { background: var(--snow); border-radius: 12px; padding: 0.8rem; margin: 0.6rem 0; }
.roster-text p { margin: 0.25rem 0; font-size: 0.92rem; }

.doc-preview-wrap { display: flex; justify-content: center; margin-top: 1rem; }
.doc-preview {
  width: min(720px, 100%);
  background: #fff;
  color: #111;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  padding: 2.2rem 2.4rem 2rem;
  font-family: "Times New Roman", Times, serif;
  line-height: 1.45;
}
.doc-preview-title { text-align: center; font-size: 1.35rem; margin: 0 0 0.35rem; font-weight: 700; }
.doc-preview-meta { text-align: center; margin: 0 0 0.8rem; font-size: 0.95rem; }
.doc-preview-note { text-align: center; margin: 0 0 0.8rem; font-style: italic; color: #444; }
.doc-preview h3 { margin: 1.1rem 0 0.45rem; font-size: 1rem; }
.doc-preview .data { font-family: inherit; font-size: 0.92rem; }

.lines-preview { margin-top: 1rem; }
.lines-meta {
  display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center;
  margin-bottom: 0.85rem;
}
.lines-meta-label {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--muted); min-width: 4.5rem;
}
.lines-chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.28rem 0.65rem; border-radius: 999px;
  background: rgba(26,74,156,0.08); font-size: 0.88rem;
}
.lines-chip.coach { background: rgba(214, 140, 40, 0.15); }
.lines-chip.goalie { background: rgba(46, 140, 78, 0.12); }
.lines-chip.warn { background: rgba(180, 60, 60, 0.1); }

.lines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.line-card {
  background: linear-gradient(165deg, #fff 0%, #f4f7fc 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(7, 24, 51, 0.06);
}
.line-card-head {
  display: flex; align-items: baseline; gap: 0.45rem;
  padding: 0.65rem 0.85rem;
  background: linear-gradient(90deg, #1a4a9c, #2d6fd4);
  color: #fff;
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.03em;
}
.line-num {
  font-size: 1.35rem; font-weight: 800; line-height: 1;
  min-width: 1.4rem; text-align: center;
}
.line-count { margin-left: auto; opacity: 0.85; font-size: 0.75rem; }
.line-players { list-style: none; margin: 0; padding: 0.55rem 0.65rem 0.75rem; }
.line-players li {
  display: grid; grid-template-columns: 2.2rem 1fr auto;
  gap: 0.35rem; align-items: center;
  padding: 0.35rem 0.25rem; border-bottom: 1px dashed rgba(0,0,0,0.06);
}
.line-players li:last-child { border-bottom: none; }
.line-jersey {
  width: 2rem; height: 2rem; border-radius: 50%;
  background: #1a4a9c; color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 0.82rem;
}
.line-name { font-weight: 600; font-size: 0.92rem; }
.line-amp { font-size: 0.78rem; color: var(--muted); }

.lines-editor {
  display: grid; gap: 0.35rem;
  max-height: 320px; overflow: auto;
  border: 1px solid var(--line); border-radius: 10px; padding: 0.55rem;
}
.lines-editor-row {
  display: grid; grid-template-columns: 2.5rem 1fr 5rem;
  gap: 0.45rem; align-items: center; font-size: 0.88rem;
}
.lines-editor-row select { padding: 0.3rem; font-size: 0.85rem; }

.lines-unassigned { margin-top: 1.25rem; }
.lines-unassigned h3 { margin-top: 0; font-size: 1rem; }

@media print {
  .site-nav, .hero, .meander, footer, .small { display: none !important; }
  .line-card { break-inside: avoid; box-shadow: none; }
}

.pager { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; margin-top: 0.75rem; font-size: 0.88rem; }
.pager a { padding: 0.25rem 0.55rem; border-radius: 8px; background: rgba(26,74,156,0.08); }
.pager .current { padding: 0.25rem 0.55rem; font-weight: 700; }

.pay-box { margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--line); }

.team-photos h2 { margin-top: 0; }
.team-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.85rem;
}
.team-photo-grid figure { margin: 0; }
.team-photo-grid img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  object-position: center center;
  border-radius: 12px;
  border: 1px solid var(--line);
  cursor: zoom-in;
  background: var(--snow);
}
.team-photo-grid figcaption {
  margin-top: 0.45rem;
  font-size: 0.82rem;
  color: var(--muted);
}
@media (max-width: 720px) {
  .team-photo-grid { grid-template-columns: 1fr; }
}

.qr { width: 220px; max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); margin-top: 0.5rem; background:#fff; }
.debt-total { font-size: 1.1rem; color: var(--err); }

.kit-legend { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.kit-chip {
  display: inline-block; padding: 0.3rem 0.7rem; border-radius: 8px;
  font-size: 0.82rem; font-weight: 700;
}
.kit-chip.kit-0 { background: #d8f0dd; color: #1a5c2e; }
.kit-chip.kit-1 { background: #d6e4f7; color: #1a3f7a; }
.kit-chip.kit-2 { background: #fde8c8; color: #8a4b00; }
.kit-chip.kit-3 { background: #e8d9f5; color: #5a2d82; }

.kit-panel { overflow: visible; }
.kit-toolbar {
  display: flex; gap: 0.75rem; flex-wrap: wrap;
  align-items: center; margin-bottom: 0.75rem;
}
.kit-toolbar h2 { margin: 0; flex: 1; }
.kit-filters { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.kit-table {
  table-layout: fixed;
  width: 100%;
  font-size: 0.78rem;
}
.kit-table col.c-fio { width: 18%; }
.kit-table col.c-st { width: 12%; }
.kit-table col.c-num { width: 5%; }
.kit-table col.c-sz { width: 7%; }
.kit-table col.c-dt { width: 11%; }
.kit-table col.c-note { width: 22%; }
.kit-table col.c-ok { width: 5%; }

.kit-table th,
.kit-table td {
  padding: 0.28rem 0.25rem;
  vertical-align: top;
  overflow: visible;
}
.kit-fio {
  white-space: normal;
  line-height: 1.2;
  word-break: break-word;
}
.kit-fio b { font-size: 0.8rem; font-weight: 700; }
.kit-teams { display: inline-flex; gap: 0.2rem; margin-left: 0.2rem; }
.kit-teams .badge { font-size: 0.62rem; padding: 0.05rem 0.28rem; }

.kit-table input,
.kit-table select,
.kit-table textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0.28rem 0.3rem;
  font-size: 0.75rem;
}
.kit-table textarea {
  resize: vertical;
  min-height: 2.4rem;
  line-height: 1.25;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  field-sizing: content;
}
.kit-note { overflow: visible; }
.kit-table input[type=number] { text-align: center; }
.kit-table input[type=date] {
  font-size: 0.7rem;
  padding: 0.22rem 0.15rem;
}
.kit-ok {
  width: 100%;
  padding: 0.28rem 0.2rem !important;
  font-size: 0.72rem !important;
}
.kit-toolbar .btn {
  white-space: nowrap;
  text-decoration: none !important;
}

.kit-table tr.kit-st-player td { background: rgba(46, 140, 78, 0.12); }
.kit-table tr.kit-st-captain td { background: rgba(26, 74, 156, 0.10); }
.kit-table tr.kit-st-sew td { background: rgba(214, 140, 40, 0.14); }
.kit-table tr.kit-st-other td { background: rgba(120, 70, 170, 0.12); }
.kit-table tr.kit-row:hover td { filter: brightness(0.97); }

@media (min-width: 1100px) {
  .shell:has(.kit-table) { max-width: 1280px; }
}

/* Документы 40+ */
.docs40-section h2,
.docs40-track h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}
.docs40-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.docs40-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(26, 74, 156, 0.08);
}
.docs40-list li:last-child { border-bottom: 0; }
.docs40-list a { font-weight: 600; }
.docs40-track { margin-top: 1.25rem; }
.docs40-track-head { margin-bottom: 0.75rem; }
.docs40-scroll { overflow-x: auto; }
.docs40-table { min-width: 920px; }
.docs40-table th.c-chk,
.docs40-table td.c-chk {
  text-align: center;
  white-space: normal;
  font-size: 0.72rem;
  line-height: 1.15;
  max-width: 4.8rem;
  vertical-align: middle;
}
.docs40-table th.c-fio { min-width: 11rem; }
.docs40-table th.c-ready,
.docs40-table td.c-ready { text-align: center; white-space: nowrap; }
.docs40-table th.c-note { min-width: 8rem; }
.docs40-table td.c-note input[type=text] {
  width: 100%;
  min-width: 7rem;
  font: inherit;
  font-size: 0.85rem;
  padding: 0.25rem 0.4rem;
}
.docs40-table input[type=checkbox] {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: #1a4a9c;
  cursor: pointer;
}
.docs40-table tr.docs-ok td { background: rgba(46, 140, 78, 0.10); }
.docs40-table tr.docs-partial td { background: rgba(214, 140, 40, 0.08); }
.docs40-table tr.docs-empty td { background: transparent; }
.docs-yes { color: #2e8c4e; font-weight: 700; }
.docs-no { color: #99a; }
.btn.tiny {
  padding: 0.25rem 0.55rem;
  font-size: 0.78rem;
}

.event-chip {
  display: inline-block; margin: 0.15rem; padding: 0.2rem 0.5rem;
  border-radius: 8px; background: rgba(26,74,156,0.08); font-size: 0.78rem;
}

.lightbox {
  position: fixed; inset: 0; background: rgba(7,24,51,0.88);
  display: grid; place-items: center; z-index: 100; cursor: zoom-out;
}
.lightbox img { max-width: 92vw; max-height: 92vh; border-radius: 8px; }

footer {
  margin-top: 2.5rem; padding-top: 1rem;
  border-top: 3px solid var(--gold); color: var(--muted); font-size: 0.82rem;
}
