/* Оперативный экран в стиле OCSQ: тёмный charcoal, синие акценты, плотные таблицы. */

.ops-dashboard {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr) 340px;
  gap: 10px;
  align-items: stretch;
  height: calc(100vh - 70px);
  min-height: 640px;
}

/* ---------- чат ---------- */
.ops-chat {
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  height: auto;
  min-height: 0;
  overflow: hidden;
  background: #34363a;
}
.ops-chat .card-head { padding: 9px 12px; margin: 0; border-bottom: 1px solid var(--border); }
.ops-chat .card-head h3 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: #c7c9cd; font-weight: 600; }
.ops-chat .hint { font-size: 9.5px; }
.chat-compose { border-bottom: 1px solid var(--border); padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; background: #2e3033; }
.chat-preset-row, .chat-input-row { display: flex; gap: 6px; align-items: center; }
.chat-preset-row .input, .chat-input-row .input { flex: 1; min-width: 0; }
.chat-compose .input { background: #232426; border-color: #3d3e42; }
.chat-send-arrow {
  width: 30px; height: 30px; flex: 0 0 30px;
  display: grid; place-items: center;
  border: 1px solid #45474c;
  border-radius: 3px;
  background: #343538;
  color: #d7d9dd;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.chat-send-arrow:hover { background: #3d3f43; color: #fff; border-color: #5a5d63; }
.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: #4a4c50 transparent;
}
.chat-msg { padding: 6px 12px 7px; border-bottom: 1px solid rgba(255, 255, 255, 0.055); }
.chat-msg:nth-child(odd) { background: rgba(255, 255, 255, 0.018); }
.chat-broadcast { background: rgba(226, 184, 92, 0.05) !important; }
.chat-meta { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.chat-time { color: #7d8086; font-family: var(--mono); font-size: 8.8px; flex: 0 0 auto; }
.chat-name { color: #e4e5e8; cursor: pointer; font-weight: 600; font-size: 11.2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-name:hover { color: #8dc4ff; text-decoration: underline; }
.chat-name.broadcast-name { color: var(--warn); cursor: default; }
.chat-name.broadcast-name:hover { text-decoration: none; }
.chat-badge { margin-left: auto; color: #6fb3ff; font-size: 8.4px; letter-spacing: 0.04em; text-transform: uppercase; flex: 0 0 auto; }
.chat-msg.chat-admin .chat-badge { color: #71d8c5; }
.chat-msg.chat-broadcast .chat-badge { color: var(--warn); }
.chat-text { color: #79baff; font-size: 12px; line-height: 1.35; margin-top: 1px; word-break: break-word; white-space: pre-wrap; }
.chat-msg.chat-broadcast .chat-text { color: #e2c37a; }

/* ---------- центр: hero + команды ---------- */
.ops-center { display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 0; }

.ops-hero {
  position: relative;
  height: 172px;
  flex: 0 0 172px;
  border: 1px solid #45474c;
  border-radius: 4px;
  overflow: hidden;
  background: #202124;
  cursor: pointer;
}
.ops-hero-image {
  position: absolute;
  inset: 0;
  display: block;
  background: center / cover no-repeat;
  opacity: 0.9;
  filter: saturate(0.82) brightness(0.92);
}
.ops-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 20, 22, 0.46), rgba(18, 20, 22, 0.08) 55%, rgba(18, 20, 22, 0.45)),
    linear-gradient(180deg, rgba(12, 13, 15, 0.38), rgba(12, 13, 15, 0.05) 45%, rgba(12, 13, 15, 0.64));
}
.ops-hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 12px 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.ops-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.ops-hero-metrics { display: flex; align-items: flex-start; gap: 34px; flex-wrap: wrap; }
.ops-metric { min-width: 0; }
.ops-metric span { display: block; color: #c6c8cc; font-size: 8.8px; text-transform: uppercase; letter-spacing: 0.07em; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65); }
.ops-metric b { display: block; margin-top: 1px; color: #fff; font-size: 23px; font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7); }
.ops-hero-actions { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.ops-hero-actions .btn, .ops-hero-actions .pill {
  background: rgba(20, 21, 23, 0.62);
  border-color: rgba(255, 255, 255, 0.22);
  color: #e8e9eb;
  backdrop-filter: blur(3px);
}
.ops-hero-actions .btn:hover { background: rgba(35, 37, 40, 0.85); }
.ops-hero-actions .pill { font-size: 10.5px; padding: 5px 9px; }
.ops-hero-map { display: flex; flex-direction: column; align-items: flex-end; text-align: right; line-height: 1.1; }
.ops-hero-map-name { color: #fff; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8); }
.ops-hero-map-sub { color: #c2c5c9; font-size: 9.5px; margin-top: 2px; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7); }

.ops-team-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; min-height: 0; flex: 1; align-items: stretch; }
.team-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #2a2b2e;
  border: 1px solid #3d3e42;
  border-radius: 4px;
  overflow: hidden;
  min-height: 0;
}
.team-column.team-one { border-top: 2px solid #b23a3a; }
.team-column.team-two { border-top: 2px solid #2f6fae; }
.team-banner { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #303134; border-bottom: 1px solid #3d3e42; min-width: 0; }
.team-flag {
  position: relative;
  width: 29px; height: 19px; flex: 0 0 29px;
  border-radius: 2px;
  overflow: hidden;
  background: #4a4c50;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.flag-usa { background: repeating-linear-gradient(180deg, #b22234 0 2px, #fff 2px 4px); }
.flag-usa::after { content: ""; position: absolute; left: 0; top: 0; width: 12px; height: 10px; background: #3c3b6e; }
.flag-usmc { background: #b22234; }
.flag-usmc::after { content: "★"; position: absolute; inset: 0; display: grid; place-items: center; color: #e7c24a; font-size: 10px; }
.flag-rgf, .flag-vdv { background: linear-gradient(180deg, #fff 0 33%, #0039a6 33% 66%, #d52b1e 66%); }
.flag-baf { background: #012169; }
.flag-baf::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 43%, #fff 43% 57%, transparent 57%), linear-gradient(0deg, transparent 36%, #fff 36% 64%, transparent 64%), linear-gradient(90deg, transparent 46%, #c8102e 46% 54%, transparent 54%), linear-gradient(0deg, transparent 41%, #c8102e 41% 59%, transparent 59%); }
.flag-caf { background: linear-gradient(90deg, #d52b1e 0 25%, #fff 25% 75%, #d52b1e 75%); }
.flag-crf { background: linear-gradient(180deg, #d52b1e 0 33%, #fff 33% 66%, #d52b1e 66%); }
.flag-afu { background: linear-gradient(180deg, #0057b7 0 50%, #ffd700 50%); }
.flag-adf { background: #012169; }
.flag-adf::after { content: "✦"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 8px; }
.flag-pla, .flag-plan, .flag-pla-a { background: #de2910; }
.flag-pla::after, .flag-plan::after, .flag-pla-a::after { content: "★"; position: absolute; left: 3px; top: 2px; color: #ffde00; font-size: 7px; }
.flag-plan { background: linear-gradient(180deg, #de2910 0 75%, #1c4f9c 75%); }
.flag-mea, .flag-gfi, .flag-irn { background: linear-gradient(180deg, #2e7d32 0 33%, #fff 33% 66%, #c62828 66%); }
.flag-ins, .flag-imf { background: linear-gradient(180deg, #151515 0 33%, #c62828 33% 66%, #2e7d32 66%); }
.flag-tlf { background: #e30a17; }
.flag-tlf::after { content: "☾"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 10px; }
.flag-wpmc, .flag-epmc { background: linear-gradient(135deg, #2c2c2c 0 50%, #6b6b6b 50%); }
.flag-civ { background: repeating-linear-gradient(45deg, #555 0 3px, #777 3px 6px); }

/* Реальные изображения флагов; CSS-градиенты выше остаются фолбэком. */
.flag-usa { background-image: url("/static/flags/USA.svg"); }
.flag-usmc { background-image: url("/static/flags/USMC.svg"); }
.flag-rgf { background-image: url("/static/flags/RGF.svg"); }
.flag-vdv { background-image: url("/static/flags/VDV.svg"); }
.flag-baf { background-image: url("/static/flags/BAF.svg"); }
.flag-caf { background-image: url("/static/flags/CAF.svg"); }
.flag-crf { background-image: url("/static/flags/CRF.svg"); }
.flag-afu { background-image: url("/static/flags/AFU.svg"); }
.flag-adf { background-image: url("/static/flags/ADF.svg"); }
.flag-pla { background-image: url("/static/flags/PLA.svg"); }
.flag-pla-a { background-image: url("/static/flags/PLAAGF.svg"); }
.flag-plan { background-image: url("/static/flags/PLANMC.svg"); }
.flag-mea { background-image: url("/static/flags/MEA.svg"); }
.flag-mei { background-image: url("/static/flags/MEI.svg"); }
.flag-ins { background-image: url("/static/flags/INS.svg"); }
.flag-imf { background-image: url("/static/flags/IMF.svg"); }
.flag-gfi, .flag-irn { background-image: url("/static/flags/GFI.svg"); }
.flag-tlf { background-image: url("/static/flags/TLF.svg"); }
.flag-wpmc { background-image: url("/static/flags/WPMC.svg"); }
.flag-epmc { background-image: url("/static/flags/EPMC.svg"); }
.flag-civ { background-image: url("/static/flags/CIV.svg"); }

.flag-usa, .flag-usmc, .flag-rgf, .flag-vdv, .flag-baf, .flag-caf,
.flag-crf, .flag-afu, .flag-adf, .flag-pla, .flag-pla-a, .flag-plan,
.flag-mea, .flag-mei, .flag-ins, .flag-imf, .flag-gfi, .flag-irn,
.flag-tlf, .flag-wpmc, .flag-epmc, .flag-civ {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.flag-usa::after, .flag-usmc::after, .flag-adf::after, .flag-pla::after,
.flag-plan::after, .flag-pla-a::after, .flag-tlf::after,
.flag-baf::before { content: none; }
.team-banner-meta { min-width: 0; flex: 1; }
.team-banner-meta b { display: block; color: #f0f1f3; font-size: 17px; font-weight: 600; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-banner-meta span { display: block; color: #8f9298; font-size: 8.6px; text-transform: uppercase; letter-spacing: 0.07em; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-banner-tickets { margin-left: auto; text-align: right; flex: 0 0 auto; }
.team-banner-tickets b { display: block; color: #fff; font-size: 19px; font-weight: 700; line-height: 1; }
.team-banner-tickets span { color: #96999f; font-size: 9px; }
.team-ticketbar { height: 3px; background: #3a3b3f; flex: 0 0 3px; }
.team-ticketbar i { display: block; height: 100%; width: 50%; background: #b23a3a; transition: width 0.4s; }
.team-two .team-ticketbar i { background: #2f6fae; }
.team-col-foot { display: flex; justify-content: space-between; gap: 8px; padding: 4px 10px; border-bottom: 1px solid #3d3e42; color: #85888e; font-size: 9px; }
.team-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 0 0 6px; scrollbar-width: thin; scrollbar-color: #4a4c50 transparent; }
.squad-block { border: 0; border-bottom: 1px solid #3b3c40; margin: 0; overflow: hidden; background: transparent; }
.squad-head { display: flex; align-items: center; gap: 6px; padding: 5px 8px; background: #343538; border-bottom: 1px solid rgba(255, 255, 255, 0.045); }
.squad-index { width: 18px; height: 18px; flex: 0 0 18px; display: grid; place-items: center; border-radius: 50%; background: #43454a; color: #d7d9dd; font-size: 8.5px; font-family: var(--mono); }
.squad-name { font-weight: 500; font-size: 11px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.squad-name { border: 0; background: transparent; color: #e4e5e8; padding: 0; text-align: left; cursor: pointer; font: inherit; font-size: 11px; }
button.squad-name:hover { color: #8dc4ff; }
.squad-count { color: #9a9da3; font-size: 9px; font-family: var(--mono); white-space: nowrap; margin-left: auto; }
.squad-lock { color: #a8aaae; font-size: 9px; }
.squad-disband { border: 0; background: transparent; color: #7d8086; font-size: 8.5px; cursor: pointer; padding: 0 2px; opacity: 0; transition: opacity 0.12s; }
.squad-head:hover .squad-disband { opacity: 1; }
.squad-disband:hover { color: var(--danger); }
.squad-member { display: flex; align-items: center; gap: 5px; padding: 3px 7px; font-size: 10.6px; border-top: 1px solid rgba(255, 255, 255, 0.04); }
.role-icon { width: 14px; height: 14px; flex: 0 0 14px; display: grid; place-items: center; border: 1px solid #52545a; border-radius: 50%; color: #b9bbc0; font-size: 8px; line-height: 1; }
.member-name { color: #dfe0e3; cursor: pointer; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-name:hover { color: #8dc4ff; }
.member-leader { color: #d9b34a; font-size: 8px; }
.member-role { margin-left: auto; color: #85888e; font-size: 8.8px; white-space: nowrap; }
.empty-team { color: #85888e; text-align: center; padding: 20px 4px; font-size: 10.5px; }
.unassigned-block { border-bottom: 1px solid #3b3c40; overflow: hidden; background: transparent; }
.unassigned-title { display: flex; align-items: center; gap: 6px; padding: 5px 8px; background: #343538; color: #b9bbc0; font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.06em; }
.unassigned-badge { width: 18px; height: 18px; flex: 0 0 18px; display: grid; place-items: center; border-radius: 50%; background: #43454a; color: #d7d9dd; font-size: 7.5px; font-family: var(--mono); }

/* ---------- правая колонка ---------- */
.ops-rail { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ops-rail-card { margin: 0; padding: 0; overflow: hidden; }
.ops-rail-card .card-head { padding: 7px 11px; margin: 0; border-bottom: 1px solid var(--border); }
.ops-rail-card .card-head h3 { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: #b9bbc0; font-weight: 600; }
.ops-rail-card .badge { font-size: 9px; padding: 1px 6px; border-radius: 3px; }
.next-map-card .card-head { border-bottom: 0; }
.rail-map {
  position: relative;
  display: block;
  width: 100%;
  height: 112px;
  border: 0;
  border-top: 1px solid var(--border);
  background: #202124;
  color: #fff;
  padding: 0;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
}
.rail-map-image { position: absolute; inset: 0; background: center / cover no-repeat; filter: saturate(0.72) brightness(0.64); transition: transform 0.2s; }
.rail-map:hover .rail-map-image { transform: scale(1.03); }
.rail-map-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 16, 18, 0.12), rgba(15, 16, 18, 0.82)); }
.rail-map-copy { position: absolute; left: 11px; right: 11px; bottom: 9px; z-index: 2; display: flex; flex-direction: column; gap: 1px; }
.rail-map-title { font-size: 16px; font-weight: 700; line-height: 1.15; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8); }
.rail-map-sub { color: #c3c6ca; font-size: 9.5px; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7); }
.violations-list { display: flex; flex-direction: column; gap: 0; max-height: 205px; overflow-y: auto; padding: 4px 9px 7px; }
.violation { border-left: 2px solid #b23a3a; padding: 4px 7px; margin: 3px 0; background: rgba(224, 90, 90, 0.04); font-size: 10.2px; }
.violation .names { color: #e6e7e9; cursor: pointer; }
.violation .names:hover { text-decoration: underline; }
.violation .meta { color: #9b6a6a; font-size: 8.8px; margin-top: 1px; }
.disconnected-list { display: flex; flex-direction: column; max-height: 210px; overflow-y: auto; padding: 4px 9px 7px; }
.disconnected-item { display: flex; align-items: baseline; gap: 8px; font-size: 10.5px; padding: 4px 1px; border-bottom: 1px solid rgba(255, 255, 255, 0.045); cursor: pointer; }
.disconnected-item:hover { background: rgba(255, 255, 255, 0.035); }
.disconnected-item:last-child { border-bottom: 0; }
.disconnected-item .time { margin-left: auto; color: #7d8086; font-family: var(--mono); font-size: 8.8px; }
.disconnected-item .name { cursor: pointer; color: #c4c6ca; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.disconnected-item .name:hover { color: #fff; }
.ops-serverline { display: flex; justify-content: space-between; gap: 8px; padding: 3px 2px; color: #777a80; font-size: 8.8px; margin-top: auto; }
.ops-serverline b { color: #a4a6ab; font-weight: 500; }

/* ---------- карточка игрока ---------- */
.player-details { width: min(680px, calc(100vw - 24px)); padding: 0; overflow: hidden; }
.pd-head { display: flex; gap: 11px; align-items: flex-start; padding: 13px 15px; background: #303134; border-bottom: 1px solid var(--border); }
.pd-avatar { width: 54px; height: 54px; border-radius: 3px; background: #202124; border: 1px solid var(--border); object-fit: cover; flex: 0 0 54px; }
.pd-ident { min-width: 0; flex: 1; }
.pd-ident h3 { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-sub { color: #a4a6ab; font-size: 10.5px; margin-top: 2px; }
.pd-steam { display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.pd-steam a { font-size: 9.5px; color: #85888e; }
.pd-tabs { display: flex; gap: 3px; padding: 8px 14px 0; border-bottom: 1px solid var(--border); }
.pd-tab { border: 0; border-radius: 3px 3px 0 0; background: transparent; color: #a4a6ab; font: inherit; font-size: 10.5px; padding: 5px 10px; cursor: pointer; }
.pd-tab:hover { color: #e4e5e8; background: rgba(255, 255, 255, 0.035); }
.pd-tab.active { color: #f1f6f5; background: #2f5f58; }
.pd-body { min-height: 190px; max-height: 340px; overflow-y: auto; padding: 8px 14px; }
.pd-history-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 9px;
}
.pd-history-item {
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 6px 8px;
  background: #303134;
}
.pd-history-item span { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: 0.05em; }
.pd-history-item b { display: block; color: var(--text); font-size: 12px; margin-top: 2px; }
.pd-session {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 2px;
  border-bottom: 1px solid var(--border);
  font-size: 10.5px;
  color: var(--muted);
}
.pd-session:last-child { border-bottom: 0; }
.pd-session b { color: var(--text); font-weight: 600; white-space: nowrap; }
.pd-session.online b { color: var(--green); }
.table tr.clickable-row { cursor: pointer; }
.table tr.clickable-row:hover td { background: rgba(255, 255, 255, 0.035); }
.pd-message { font-size: 10.8px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); padding: 4px 0; color: #c7c9cd; }
.pd-message .time { color: #7d8086; font-family: var(--mono); font-size: 8.8px; margin-right: 6px; }
.pd-badge { color: #6fb3ff; font-size: 8.5px; text-transform: uppercase; margin-right: 6px; }
.pd-msg-text { color: #79baff; }
.pd-action-row { display: flex; gap: 8px; align-items: baseline; font-size: 10.8px; padding: 5px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.pd-action-row .kind { color: #79baff; font-family: var(--mono); font-size: 9px; }
.pd-action-row .time { margin-left: auto; color: #7d8086; font-family: var(--mono); font-size: 8.8px; }
.pd-note { border: 1px solid var(--border); border-radius: 3px; padding: 6px 8px; margin-bottom: 5px; font-size: 10.8px; background: #303134; }
.pd-note .note-meta { display: flex; justify-content: space-between; gap: 8px; color: #85888e; font-size: 8.8px; margin-bottom: 2px; }
.pd-actions { display: flex; flex-wrap: wrap; gap: 5px; border-top: 1px solid var(--border); padding: 9px 14px; background: #2b2c2f; }
.pd-actions .btn { font-size: 10.5px; }
.pm-note-form { padding: 8px 14px 0; }

/* ---------- выбор карты ---------- */
.map-dialog { width: min(1000px, calc(100vw - 24px)); padding: 0; overflow: hidden; }
.map-dialog > .card-head { padding: 10px 14px; margin: 0; background: #303134; border-bottom: 1px solid var(--border); }
.map-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 10px; height: min(70vh, 620px); padding: 10px; }
.map-browser { display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.map-filter-row { display: flex; flex-direction: column; gap: 6px; }
.map-filter-row .input { flex: none; width: 100%; min-width: 0; }
.map-filter-row select.input { width: 100%; }
.map-list { overflow-y: auto; display: flex; flex-direction: column; gap: 1px; border: 1px solid var(--border); border-radius: 3px; padding: 3px; min-height: 0; background: #26272a; }
.map-row { border: 0; border-radius: 2px; background: transparent; color: #a4a6ab; text-align: left; font: inherit; font-size: 10.5px; padding: 5px 6px; cursor: pointer; display: flex; gap: 6px; align-items: baseline; }
.map-row:hover { background: rgba(255, 255, 255, 0.05); color: #e4e5e8; }
.map-row.active { background: var(--accent-soft); color: #8dc4ff; }
.map-row .gm { margin-left: 6px; color: #7d8086; font-family: var(--mono); font-size: 8.8px; flex: 0 0 auto; }
.map-row-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-row-flags { margin-left: auto; display: flex; align-items: center; gap: 3px; flex: 0 0 auto; }
.map-row-flag { width: 14px; height: 9px; flex: 0 0 14px; border-radius: 1px; }
.map-detail { overflow-y: auto; border: 1px solid var(--border); border-radius: 3px; padding: 9px; min-height: 0; background: #2a2b2e; }
.map-preview {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(38vh, 390px);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: #202124;
  cursor: zoom-in;
}
.map-preview.empty { width: 100%; height: 150px; }
.map-zoom-hint { text-align: center; font-size: 9px; margin-top: 2px; }
.map-detail h3 { margin-top: 7px; font-size: 16px; }
.map-detail .sub { color: #a4a6ab; font-size: 10.5px; }
.map-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 8px; }
.map-team { border: 1px solid var(--border); border-radius: 3px; padding: 6px; font-size: 10.2px; background: #303134; }
.map-team b { font-size: 10.8px; }
.map-team-head { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; min-width: 0; }
.map-team-head b { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.map-factions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; align-items: flex-end; }
.map-faction-row { flex: 1 1 180px; display: flex; flex-direction: column; gap: 4px; font-size: 9.8px; color: #a4a6ab; }
.map-faction-row select { width: 100%; }
.map-flags { margin-top: 5px; font-size: 10.2px; }
.map-flags summary { cursor: pointer; color: #a4a6ab; font-size: 10.2px; }
.map-flags .hint { margin-top: 4px; }
.vehicle-list { margin: 4px 0 0; padding-left: 14px; color: #9a9da3; font-size: 9.8px; }
.map-actions { display: flex; gap: 6px; margin-top: 9px; }
.map-objectives { color: #9a9da3; font-size: 10px; margin-top: 6px; }
.map-image-dialog { width: auto; max-width: 96vw; max-height: 94vh; padding: 0; border: 1px solid #55575d; background: #111214; overflow: hidden; }
.map-image-wrap { position: relative; line-height: 0; }
.map-image-dialog img { display: block; width: auto; max-width: 94vw; height: auto; max-height: 90vh; object-fit: contain; }
.map-image-close { position: absolute; top: 8px; right: 8px; z-index: 2; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #55575d; border-radius: 3px; background: rgba(28, 29, 31, 0.85); color: #e4e5e8; font-size: 14px; cursor: pointer; }
.map-image-close:hover { background: #3a3b3f; }

/* ---------- журнал ---------- */
.adminlog-table td { font-size: 10.8px; }
.adminlog-type { font-family: var(--mono); font-size: 9.2px; color: #79baff; }
.adminlog-details { color: #a4a6ab; max-width: 500px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1500px) {
  .ops-dashboard { grid-template-columns: 300px minmax(0, 1fr) 320px; }
  .ops-hero-metrics { gap: 24px; }
}
@media (max-width: 1180px) {
  .ops-dashboard { grid-template-columns: 280px minmax(0, 1fr); height: auto; min-height: 0; }
  .ops-rail { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .ops-serverline { grid-column: 1 / -1; }
  .ops-chat { height: 560px; min-height: 560px; }
  .team-column { min-height: 340px; max-height: 620px; }
}
@media (max-width: 980px) {
  .ops-dashboard { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .ops-chat { height: 430px; min-height: 430px; }
  .ops-rail { grid-column: auto; grid-template-columns: 1fr 1fr; }
  .ops-hero { height: 158px; flex-basis: 158px; }
  .ops-hero-metrics { gap: 18px; }
  .ops-metric b { font-size: 18px; }
  .map-layout { grid-template-columns: 1fr; height: auto; }
  .map-list { max-height: 230px; }
  .map-detail { max-height: 440px; }
}
@media (max-width: 680px) {
  .ops-team-columns { grid-template-columns: 1fr; }
  .team-column { min-height: 340px; max-height: none; }
  .ops-rail { grid-template-columns: 1fr; }
  .ops-hero { height: 180px; flex-basis: 180px; }
  .ops-hero-top { flex-direction: column; gap: 6px; }
  .ops-hero-actions { align-self: flex-start; }
  .ops-hero-metrics { gap: 14px; }
  .ops-hero-map-name { font-size: 17px; }
  .map-teams { grid-template-columns: 1fr; }
  .pd-avatar { width: 46px; height: 46px; flex-basis: 46px; }
}
