/* Голос — локальный шрифт с кириллицей. Лицензия: assets/fonts/OFL.txt. */
@font-face {
  font-family: "Golos Text";
  src: url("assets/fonts/golos-text.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
/* Общие токены: интерфейс сдержанный, акцент на рабочих данных. */
:root {
  --green: #19754e;
  --dark: #173c2e;
  --mint: #eaf3ec;
  --ink: #202c25;
  --muted: #738078;
  --line: #e3e8e3;
  --canvas: #f5f6f3;
  --orange: #a75513;
  --red: #b93843;
}
* {
  box-sizing: border-box;
}
[hidden] { display: none !important; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font:
    15px/1.5 "Golos Text", -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
:focus-visible {
  outline: 3px solid #69bba0;
}
a {
  color: var(--green);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(25px, 2.3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 8px;
}
h2 {
  font-size: 22px;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 17px;
  margin-bottom: 10px;
}
.muted,
small {
  color: var(--muted);
}
small {
  font-size: 13px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 750;
  color: var(--green);
}
.button:not(.btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s;
}
.button:not(.btn):hover {
  background: #f0f6f2;
}
.button:not(.btn).primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.button:not(.btn).primary:hover {
  background: #056449;
}
.button:not(.btn).danger {
  color: var(--red);
  background: #fff5f5;
}
.button:not(.btn).text {
  background: none;
  border-color: transparent;
  color: var(--green);
}
.button:not(.btn).compact {
  padding: 6px 11px;
  min-height: 34px;
}
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.room-dialog { width: min(1180px, calc(100vw - 40px)); max-height: 94dvh; border: 1px solid #29443a; border-radius: 24px; background: #08130f; overflow: hidden; }
.room-dialog::backdrop { background: #0b1f19a8; backdrop-filter: blur(8px); }
.room-shell { min-height: min(780px, 88dvh); background: radial-gradient(circle at 50% 30%, #183129 0, #0b1914 52%, #08130f 100%); color: #f6faf8; display: flex; flex-direction: column; }
.room-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 92px; padding: 20px 26px; border-bottom: 1px solid #ffffff12; background: #0d1e18d9; }
.room-head h2 { margin: 2px 0 0; color: #fff; font-size: 20px; }
.room-kicker { color: #64d6ae; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.room-head-actions { display: flex; align-items: center; gap: 14px; }
.room-live { display: inline-flex; align-items: center; gap: 7px; color: #a8c3b8; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.room-live i { width: 7px; height: 7px; border-radius: 50%; background: #32c98e; box-shadow: 0 0 0 5px #32c98e1f; }
.room-close { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #ffffff1a; border-radius: 12px; background: #ffffff0a; color: #fff; font-size: 27px; line-height: 1; }
.room-close:hover { background: #ffffff14; }
.room-status { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 9px 20px; color: #a8c3b8; font-size: 13px; }
.room-spinner { width: 13px; height: 13px; border: 2px solid #ffffff24; border-top-color: #56d3a5; border-radius: 50%; animation: room-spin .8s linear infinite; }
@keyframes room-spin { to { transform: rotate(360deg); } }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); grid-auto-rows: minmax(260px, 1fr); align-content: center; gap: 14px; padding: 10px 24px 24px; flex: 1; }
.video-tile { position: relative; min-height: 270px; border: 1px solid #ffffff12; border-radius: 18px; overflow: hidden; background: linear-gradient(145deg, #19342b, #10241d); box-shadow: 0 16px 40px #0003; }
.video-media, .video-media video { position: absolute; inset: 0; width: 100%; height: 100%; }
.video-media video { object-fit: cover; }
.video-media audio { display: none; }
.video-placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; color: #aac1b8; }
.video-placeholder strong { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; color: #eafff7; background: linear-gradient(145deg, #177f60, #0d5b45); box-shadow: 0 0 0 9px #ffffff0a; font-size: 28px; letter-spacing: .03em; }
.video-placeholder span { font-size: 13px; }
.video-tile:not(.is-camera-off) .video-placeholder { display: none; }
.video-tile footer { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.participant-name { padding: 7px 11px; border-radius: 9px; background: #06100cbb; color: #fff; font-size: 13px; font-weight: 700; backdrop-filter: blur(8px); }
.participant-mic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #16835f; color: #75f0c1; font-size: 9px; }
.video-tile.is-muted .participant-mic { background: #311c20; color: #ff7d8a; }
.room-controls { display: flex; justify-content: center; gap: 10px; padding: 18px 22px; border-top: 1px solid #ffffff12; background: #0d1e18e8; }
.room-control { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 10px 16px; border: 1px solid #ffffff18; border-radius: 13px; background: #ffffff0d; color: #edf7f3; font: inherit; font-size: 13px; font-weight: 700; }
.room-control:hover { background: #ffffff18; }
.room-control svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.room-control.is-on { color: #06291d; background: #69d9b1; border-color: #69d9b1; }
.room-control.leave { color: #ffdadd; background: #5a2028; border-color: #74313a; }
.room-control.leave:hover { background: #712832; }
.room-error { place-self: center; max-width: 460px; padding: 30px; text-align: center; color: #fff; }
.room-error strong { font-size: 20px; }
.room-error p { margin: 8px 0 0; color: #a8c3b8; }
.badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 650;
  background: var(--mint);
  color: var(--green);
  white-space: nowrap;
}
.badge.neutral {
  background: #eef1ef;
  color: #5a6962;
}
.badge.warn {
  background: #fff3e4;
  color: var(--orange);
}
.badge.bad {
  background: #fff0f1;
  color: var(--red);
}
.logo {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--green);
  color: white;
  font-size: 25px;
  font-weight: 800;
  flex-shrink: 0;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 750;
  letter-spacing: -0.025em;
}
.brand small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.04em;
  font-weight: 500;
}
.login {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 22px;
}
.login-card {
  width: min(420px, 100%);
  padding: 40px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 40px #173c2e07;
}
.login-card .brand {
  margin-bottom: 30px;
}
.login-card h1 {
  font-size: 28px;
  margin-bottom: 24px;
}
.login-card .button {
  width: 100%;
}
.field {
  display: grid;
  gap: 7px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 600;
}
input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  background: white;
  color: var(--ink);
  border: 1px solid #ccd9d1;
  border-radius: 9px;
  font-size: 15px;
}
textarea {
  min-height: 104px;
  resize: vertical;
}
input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--green);
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
}
.error {
  color: var(--red);
  font-size: 14px;
  white-space: pre-wrap;
}
.shell {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  padding: 28px 16px 20px;
  background: #17382c;
  color: #f3f6f0;
  border-right: 1px solid #17382c;
  display: flex;
  flex-direction: column;
}
.sidebar .brand {
  padding: 0 12px 34px;
}
.nav-label {
  padding: 0 14px 10px;
  font-size: 11px;
  letter-spacing: 0.13em;
  color: #9bac9e;
}
.nav {
  display: grid;
  gap: 6px;
}
.nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border: 0;
  border-radius: 7px;
  padding: 12px 14px;
  background: transparent;
  color: #c1cec3;
  font-size: 14px;
  font-weight: 450;
}
.nav button:hover {
  background: #ffffff09;
  color: #fff;
}
.nav button.active {
  background: #d9ead7;
  color: #173c2e;
}
.nav-icon {
  font-size: 19px;
  width: 22px;
  text-align: center;
}
.sidebar-foot {
  margin-top: auto;
  border-top: 1px solid #ffffff18;
  padding: 18px 10px 0;
  font-size: 14px;
}
.sidebar-foot small {
  display: block;
  color: #a4b7a9;
}
.sidebar .brand small { color: #a4b7a9; font-size: 9px; margin-top: 3px; letter-spacing: .1em; }
.sidebar .logo { background: #d9ead7; color: #173c2e; border-radius: 8px; }
.nav-icon svg { width: 19px; height: 19px; display: block; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.topbar {
  height: 74px;
  padding: 0 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  background: #ffffffc9;
}
.breadcrumb {
  min-width: 0;
  font-size: 14px;
  color: var(--muted);
}
.topbar > .actions { flex-shrink: 0; flex-wrap: nowrap; }
.breadcrumb span {
  color: var(--ink);
}
.content {
  padding: 32px 34px 60px;
  max-width: 1660px;
  margin: auto;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.heading p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 0;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  overflow: hidden;
}
.pad {
  padding: 24px;
}
.panel-head {
  padding: 19px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}
.panel-head h2,
.panel-head h3 {
  margin: 0;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}
.metric {
  padding: 22px;
}
.metric span {
  font-size: 13px;
  color: var(--muted);
}
.metric strong {
  display: block;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.06em;
  margin: 11px 0;
}
.metric:first-child {
  background: #e8efe3;
  color: var(--dark);
  border-color: #dce5d8;
}
.metric:first-child span,
.metric:first-child small {
  color: #54725b;
}
.columns {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 22px;
  align-items: start;
}
.stack {
  display: grid;
  gap: 20px;
}
.toolbar {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.toolbar input {
  flex: 1;
  min-width: 190px;
  max-width: 420px;
}
.toolbar select {
  width: auto;
  max-width: 230px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 14px;
}
th {
  background: #fafbf9;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.065em;
  color: #7d8b82;
  font-weight: 650;
  white-space: nowrap;
}
th,
td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fcfefc;
}
td small {
  display: block;
  margin-top: 4px;
}
.title-cell {
  min-width: 230px;
  max-width: 360px;
}
.row-link {
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  color: var(--ink);
  font-weight: 650;
}
.row-link:hover {
  color: var(--green);
}
.table-foot {
  padding: 13px 20px;
  color: var(--muted);
  font-size: 12px;
  background: #fcfdfb;
  border-top: 1px solid var(--line);
}
.empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
}
.empty h3 {
  color: var(--ink);
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 22px 0;
  border-bottom: 1px solid var(--line);
}
.tabs button {
  padding: 12px 13px;
  font-size: 14px;
  white-space: nowrap;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
}
.tabs button.active {
  border-color: var(--green);
  color: var(--green);
  font-weight: 650;
}
.event-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin: 24px 0 0;
}
.event-header h1 {
  max-width: 800px;
}
.event-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 18px;
  color: var(--muted);
  font-size: 14px;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.info-grid dt {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.info-grid dd {
  margin: 0;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.banner {
  padding: 16px 20px;
  background: #eaf6ef;
  color: #285c43;
  border: 1px solid #d2e9dc;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 20px;
}
.banner.warn {
  background: #fff8e9;
  border-color: #f1e0ba;
  color: #85531c;
}
.event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.event-card {
  display: flex;
  flex-direction: column;
}
.event-card .pad {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.event-card h2 {
  font-size: 21px;
  line-height: 1.3;
}
.event-card .actions {
  margin-top: auto;
}
.event-card-top {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: #e9f4ec;
  border-bottom: 1px solid var(--line);
}
.event-card-top time {
  display: grid;
  font-size: 13px;
  color: var(--green);
}
.event-card-top strong {
  font-size: 32px;
  line-height: 1.1;
}
.agenda-row {
  padding: 20px;
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}
.agenda-row time {
  color: var(--green);
  font-weight: 700;
}
.organizer {
  display: flex;
  align-items: start;
  gap: 14px;
}
.avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--mint);
  color: var(--green);
  border-radius: 13px;
  font-weight: 650;
}
.trip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.trip-grid .panel:last-child {
  grid-column: 1 / -1;
}
.progress-row {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.progress-row:last-child {
  border-bottom: 0;
}
dialog {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  width: min(720px, calc(100vw - 32px));
  max-height: 90dvh;
  color: var(--ink);
  box-shadow: 0 30px 90px #12372c33;
}
dialog::backdrop {
  background: #122b2370;
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  margin: 0;
}
.modal-body {
  padding: 24px 26px;
}
.modal-footer {
  padding: 18px 26px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  background: #fafcf9;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 18px;
}
.field.wide {
  grid-column: 1 / -1;
}
#toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  max-width: 420px;
  padding: 15px 20px;
  background: var(--dark);
  color: white;
  border-radius: 12px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  font-size: 14px;
}
#toast.show {
  opacity: 1;
}
/* Команда: фото и зона ответственности заметны раньше служебных действий. */
.organizer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 20px; max-width: 1200px; }
.organizer-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px; min-width: 0; }
.organizer-identity { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.organizer-portrait { width: 84px; height: 96px; flex: 0 0 84px; display: grid; place-items: center; overflow: hidden; border-radius: 10px; background: #e9eee5; color: #527452; }
.organizer-card:nth-child(2n) .organizer-portrait { background: #f3ede3; color: #8c7351; }
.organizer-card:nth-child(3n) .organizer-portrait { background: #e7edf1; color: #597487; }
.organizer-portrait img { width: 100%; height: 100%; object-fit: cover; }
.organizer-portrait span { font-size: 27px; font-weight: 500; letter-spacing: -.04em; }
.organizer-identity h2 { font-size: 22px; font-weight: 550; line-height: 1.25; margin: 0; overflow-wrap: anywhere; }
.organizer-role { font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.organizer-description { font-size: 14px; line-height: 1.65; color: #57665c; white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 22px; }
.organizer-responsibility { margin: 0 0 24px; border-left: 2px solid #a3bf9c; padding-left: 14px; }
.organizer-responsibility span { color: var(--muted); font-size: 11px; }
.organizer-responsibility p { font-size: 14px; margin: 5px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.organizer-contacts { margin-top: auto; padding-top: 4px; }
.organizer-contacts a { position: relative; display: grid; gap: 4px; padding: 13px 24px 13px 0; text-decoration: none; border-top: 1px solid var(--line); color: var(--ink); }
.organizer-contacts a:hover strong { color: var(--green); }
.organizer-contacts a span { font-size: 11px; color: var(--muted); }
.organizer-contacts a strong { font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.organizer-contacts i { position: absolute; right: 2px; top: 24px; color: var(--muted); font-style: normal; }
.organizer-edit { display: flex; justify-content: space-between; gap: 10px; padding-top: 16px; margin-top: 3px; border-top: 1px solid var(--line); }
.organizer-edit .text { color: var(--muted); }
.photo-field { display: flex; gap: 20px; padding: 16px; border: 1px dashed #c7d5c6; border-radius: 10px; background: #fafcf9; }
.photo-field > div:last-child { min-width: 0; flex: 1; }
.photo-field label { display: grid; gap: 8px; }
.photo-field input[type="file"] { padding: 0; border: 0; border-radius: 0; font-size: 12px; min-height: 34px; background: none; margin: 8px 0 0; }
.photo-field input::file-selector-button { border: 1px solid #cbd6ca; background: white; padding: 7px 10px; border-radius: 6px; color: var(--ink); font: inherit; margin-right: 10px; cursor: pointer; }
.photo-field small { display: block; font-weight: 400; font-size: 11px; }
.photo-field .check { display: flex; margin-bottom: 0; font-size: 12px; }
.photo-preview { height: 82px; width: 82px; flex: 0 0 82px; display: grid; place-items: center; border-radius: 8px; background: #e7eee3; overflow: hidden; }
.photo-preview span { font-size: 30px; font-weight: 400; color: #7e987a; }
.photo-preview img { height: 100%; width: 100%; object-fit: cover; }
.auth-footer { display: flex; justify-content: center; flex-wrap: wrap; gap: 5px 8px; margin-top: 24px; font-size: 12px; color: var(--muted); }
.auth-link { background: none; border: 0; padding: 0; font-size: inherit; color: var(--green); font-weight: 550; }
.auth-link:hover { text-decoration: underline; }
.account-label { color: var(--muted); font-size: 12px; }
.video-entry { display: flex; align-items: center; gap: 36px; padding: 40px; max-width: 1000px; }
.video-entry h2 { margin: 10px 0; font-size: 26px; font-weight: 550; }
.video-entry p { max-width: 540px; font-size: 14px; margin-bottom: 24px; }
.video-entry-symbol { flex: 0 0 128px; height: 128px; background: #e8eee0; border-radius: 28px; display: grid; place-items: center; color: #537742; }
.video-entry-symbol svg { width: 60px; height: 60px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linejoin: round; }
.event-card { transition: border-color .2s, box-shadow .2s; }
.event-card:hover { border-color: #bdcfba; box-shadow: 0 4px 16px #173c2e05; }
.event-card-top { background: #edf1e9; }
.event-card:nth-child(2n) .event-card-top { background: #f0eee6; }
.event-card h2 { font-weight: 550; letter-spacing: -.035em; }
.event-header h1 { max-width: 750px; margin-bottom: 16px; }
.tabs { margin-bottom: 30px; }
.info-grid dd { font-weight: 450; }
@media (max-width: 1150px) {
  .shell {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .content {
    padding: 24px 20px;
  }
  .metrics,
  .event-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .columns {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .room-dialog { width: 100vw; max-width: none; max-height: 100dvh; height: 100dvh; border: 0; border-radius: 0; }
  .room-shell { min-height: 100dvh; }
  .room-head { min-height: 76px; padding: 15px 16px; }
  .room-head h2 { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; }
  .room-live { display: none; }
  .video-grid { grid-template-columns: 1fr; grid-auto-rows: minmax(220px, 1fr); padding: 8px 12px 14px; }
  .video-tile { min-height: 220px; }
  .room-controls { gap: 8px; padding: 12px; }
  .room-control { width: 52px; min-width: 52px; height: 50px; padding: 0; border-radius: 14px; }
  .room-control span { display: none; }
  .shell {
    display: block;
  }
  .sidebar {
    position: relative;
    height: auto;
    padding: 14px;
    border-right: 0;
  }
  .sidebar .brand {
    padding: 0 0 14px;
  }
  .nav-label,
  .sidebar-foot {
    display: none;
  }
  .nav {
    display: flex;
    overflow-x: auto;
  }
  .nav button {
    white-space: nowrap;
    padding: 10px;
  }
  .nav-icon {
    display: none;
  }
  .topbar {
    height: auto;
    min-height: 60px;
    padding: 10px 16px;
  }
  .topbar .badge {
    display: none;
  }
  .account-label { display: none; }
  .organizer-card { padding: 22px; }
  .organizer-grid { grid-template-columns: 1fr; }
  .login-card { padding: 30px 24px; }
  .video-entry { padding: 26px; align-items: flex-start; gap: 22px; flex-direction: column; }
  .video-entry-symbol { flex-basis: auto; width: 72px; height: 72px; border-radius: 18px; }
  .video-entry-symbol svg { width: 38px; height: 38px; }
  .content {
    padding: 24px 14px 50px;
  }
  .heading,
  .event-header {
    flex-direction: column;
    align-items: stretch;
  }
  .event-grid,
  .info-grid,
  .trip-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .metric {
    padding: 16px;
  }
  .metric strong {
    font-size: 28px;
  }
  .pad {
    padding: 18px;
  }
  .toolbar {
    padding: 14px;
  }
  .toolbar select,
  .toolbar input {
    max-width: none;
    width: 100%;
  }
  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .modal-body {
    padding: 20px;
  }
  #toast {
    left: 15px;
    right: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* Чат мероприятия. Изолирован от стилей видеокомнаты. */
.chat-workspace { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; min-width: 0; }
.event-chat { position: relative; isolation: isolate; display: flex; flex-direction: column; height: max(560px, calc(100dvh - 300px)); min-width: 0; min-height: 0; overflow: hidden; border: 1px solid #dce4dd; border-radius: 16px; box-shadow: 0 4px 20px #233b2c04; }
.event-chat svg { display: block; width: 22px; height: 22px; flex-shrink: 0; }
.event-chat-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 90px; padding: 21px 24px; background: #fff; border-bottom: 1px solid #e6ebe5; }
.event-chat-title { display: flex; align-items: center; gap: 13px; min-width: 0; }
.event-chat-title h2 { font-size: 18px; font-weight: 600; line-height: 1.3; margin: 0 0 5px; letter-spacing: -.025em; color: #24382c; }
.chat-room-mark { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #dfebe0; border-radius: 13px; background: #eaf3e9; color: #35714b; flex-shrink: 0; }
.chat-subtitle { margin: 0; font-size: 11px; line-height: 1.5; color: #77847a; }
.chat-subtitle > span { padding: 0 5px; color: #b4beb4; }
.chat-header-actions { display: flex; align-items: center; flex-shrink: 0; gap: 16px; }
.chat-connection { display: flex; align-items: center; gap: 7px; flex-shrink: 0; font-size: 11px; color: #708074; }
.chat-connection i { width: 6px; height: 6px; border-radius: 50%; background: #95a38e; }
.chat-connection[data-state="online"] { color: #50735a; }
.chat-connection[data-state="online"] i { background: #489965; box-shadow: 0 0 0 3px #48996512; }
.chat-connection[data-state="offline"] { color: #a56136; }
.chat-connection[data-state="offline"] i { background: #c88746; }
.chat-connection-error { padding: 7px 24px; background: #fff8eb; color: #7d6335; font-size: 12px; }
.chat-stage { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 0; background: #f5f7f4; }
.chat-timeline { flex: 1; min-height: 0; overflow: auto; padding: 6px 24px 24px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #cbd7cb transparent; outline-offset: -3px; }
.chat-day-divider { display: flex; justify-content: center; padding: 20px 0 22px; }
.chat-day-divider span { padding: 5px 12px; border: 1px solid #e5ebe2; border-radius: 20px; background: #eef2eb; color: #7b8876; font-size: 10px; font-weight: 500; }
.chat-message { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 18px; }
.chat-avatar { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; margin-top: 22px; background: #e2ebdf; border: 1px solid #dce6d9; border-radius: 12px; color: #527049; font-size: 11px; font-weight: 600; }
.chat-person:nth-of-type(4n) .chat-avatar { background: #e4eae7; border-color: #dce5e0; color: #597767; }
.chat-person:nth-of-type(4n + 2) .chat-avatar { background: #eeeadf; border-color: #e6e0d0; color: #82734f; }
.chat-message-main { max-width: min(82%, 600px); min-width: 0; }
.chat-message-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 6px 1px; }
.chat-message-meta strong { font-size: 12px; font-weight: 550; color: #50694e; }
.chat-message-meta > span { font-size: 11px; color: #61735b; }
.chat-bubble { min-width: 100px; padding: 11px 14px 7px; border: 1px solid #e5eae2; border-radius: 3px 14px 14px; background: #fff; box-shadow: 0 1px 2px #233b2904; }
.chat-message-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; font-size: 15px; color: #2e4030; }
.chat-message-footer { display: flex; justify-content: flex-end; align-items: center; gap: 6px; min-height: 20px; margin-top: 4px; color: #63765e; font-size: 11px; line-height: 1.4; }
.chat-delivered { font-size: 12px; color: #559260; }
.chat-message.is-own { justify-content: flex-end; }
.chat-message.is-own .chat-avatar { display: none; }
.chat-message.is-own .chat-bubble { background: #e5f2e7; border-color: #dbe9d8; border-radius: 14px 3px 14px 14px; }
.chat-message.is-own .chat-message-meta { justify-content: flex-end; }
.chat-message.is-own .chat-message-text { color: #2c472f; }
.chat-message.is-continuation { margin-top: -11px; }
.chat-message.is-continuation .chat-message-meta { display: none; }
.chat-message.is-continuation .chat-avatar { visibility: hidden; margin-top: 0; }
.chat-message.is-deleted .chat-bubble { background: transparent; border-style: dashed; border-color: #dae1d5; box-shadow: none; }
.chat-message.is-deleted .chat-message-text { font-style: italic; color: #8a9782; font-size: 12px; }
.chat-message-menu { position: relative; margin-left: 1px; }
.chat-message-menu summary { display: grid; place-items: center; width: 25px; height: 22px; border-radius: 6px; color: #87947f; cursor: pointer; list-style: none; }
.chat-message-menu summary::-webkit-details-marker { display: none; }
.chat-message-menu summary svg { width: 16px; height: 16px; }
.chat-message-menu summary:hover, .chat-message-menu[open] summary { background: #78946413; color: #3e633b; }
.chat-message-menu > div { position: absolute; bottom: calc(100% + 6px); right: -3px; z-index: 2; min-width: 172px; padding: 5px; border: 1px solid #dee6d9; border-radius: 10px; background: #fff; box-shadow: 0 8px 24px #28372116; }
.chat-message-menu > div button { display: block; width: 100%; min-height: 36px; padding: 8px 10px; border: 0; border-radius: 6px; background: transparent; text-align: left; white-space: nowrap; font-size: 12px; color: #607150; }
.chat-message-menu > div button:hover { background: #f2f6ed; color: #375730; }
.chat-message-menu > div button[data-action="message-delete"] { color: #b4554f; }
.chat-file { display: flex; align-items: center; gap: 11px; width: 100%; min-width: 0; max-width: 420px; border: 1px solid #e1e8dc; border-radius: 10px; padding: 10px; margin: 3px 0 7px; background: #f8faf5; text-align: left; color: inherit; font: inherit; transition: background .15s, border-color .15s; }
.chat-message-text + .chat-file { margin-top: 12px; }
.chat-file:hover { border-color: #abc19f; background: #f0f5e9; }
.chat-file:disabled { opacity: .65; cursor: wait; }
.chat-file-icon { display: grid; place-items: center; flex: 0 0 37px; width: 37px; height: 44px; border: 1px solid #d7e1cf; border-radius: 8px; background: #eaf1e3; color: #668450; font-size: 9px; font-weight: 600; letter-spacing: .02em; }
.chat-file-copy { min-width: 0; flex: 1; }
.chat-file-copy strong { display: block; font-size: 13px; font-weight: 500; overflow-wrap: anywhere; line-height: 1.45; color: #374b30; }
.chat-file-copy small { display: block; margin-top: 4px; font-size: 10px; color: #819173; }
.chat-file-download { display: grid; place-items: center; width: 27px; height: 30px; color: #739763; flex-shrink: 0; }
.chat-file-download svg { width: 17px; height: 17px; }
.is-own .chat-file { background: #f2f8ee; border-color: #d5e4ce; }
.chat-empty { min-height: 280px; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px; text-align: center; }
.chat-empty > span { display: grid; place-items: center; width: 62px; height: 62px; border: 1px solid #dee6d6; background: #ecf1e7; border-radius: 19px; color: #8a9f78; margin-bottom: 20px; }
.chat-empty > span svg { width: 27px; height: 27px; }
.chat-empty h3 { font-size: 18px; font-weight: 500; margin: 0 0 8px; color: #4e6544; }
.chat-empty p { max-width: 340px; margin: 0; font-size: 13px; line-height: 1.7; color: #86927d; }
.chat-loading { display: flex; justify-content: center; padding: 10px 0 0; }
.chat-loading .button { color: #839279; font-size: 11px; }
.chat-new-messages { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); border: 1px solid #cddcc1; border-radius: 20px; box-shadow: 0 3px 18px #25331a13; background: #fff; color: #4f7940; padding: 10px 17px; font: inherit; font-size: 11px; white-space: nowrap; }
.chat-composer { padding: 16px 18px 12px; border-top: 1px solid #e2e9dc; background: #fff; }
.chat-compose-row { display: flex; align-items: flex-end; gap: 10px; padding: 7px; background: #f7f9f4; border: 1px solid #dde6d5; border-radius: 13px; transition: border-color .15s, box-shadow .15s; }
.chat-compose-row:focus-within { border-color: #95b881; box-shadow: 0 0 0 3px #8aaa6910; }
.chat-input { flex: 1; min-width: 0; min-height: 44px; max-height: 140px; resize: none; margin: 0; padding: 10px 0 9px; border: 0; background: transparent; border-radius: 0; box-shadow: none; outline: none; font: inherit; font-size: 15px; line-height: 1.6; color: #374b2e; overflow-y: auto; }
.chat-input:focus { outline: none; box-shadow: none; border: 0; }
.chat-input::placeholder { color: #94a287; }
.chat-attach, .chat-send { flex: 0 0 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 44px; height: 44px; border: 0; border-radius: 9px; }
.chat-attach { background: transparent; color: #758e63; }
.chat-attach:hover { background: #e8efdf; color: #4f7540; }
.chat-send { flex-basis: auto; min-width: 128px; width: auto; padding: 0 14px; background: #527b3e; color: #fff; font-size: 12px; font-weight: 500; transition: background .15s; }
.chat-send svg { width: 18px; height: 18px; }
.chat-send:hover { background: #416930; }
.chat-send:disabled { background: #e2eadb; color: #95a985; opacity: 1; cursor: default; }
.chat-attach:disabled { opacity: .4; cursor: default; }
.chat-compose-footer { display: flex; justify-content: space-between; gap: 12px; padding: 9px 5px 0; color: #92a084; font-size: 10px; line-height: 1.5; }
.chat-character-count { flex-shrink: 0; }
.chat-composer-error { margin: 0 0 12px; padding: 10px 13px; border-radius: 8px; background: #fff4ec; color: #9a573c; line-height: 1.5; font-size: 12px; }
.chat-selected-files { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-selected-files:not(:empty) { margin-bottom: 13px; }
.chat-selected-file { display: flex; align-items: center; gap: 9px; min-width: 0; max-width: 280px; padding: 8px; border: 1px solid #e0e7d9; border-radius: 10px; background: #f8faf5; }
.chat-selected-file .chat-file-icon { width: 28px; height: 34px; flex-basis: 28px; font-size: 8px; }
.chat-selected-file > div { min-width: 0; }
.chat-selected-file strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 500; color: #5e7154; }
.chat-selected-file small { display: block; margin-top: 3px; font-size: 10px; color: #9ca791; }
.chat-selected-file > button { display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border: 0; border-radius: 7px; padding: 4px; background: transparent; color: #93a388; }
.chat-selected-file > button:hover { background: #e8efe2; color: #536d43; }
.chat-selected-file > button svg { width: 15px; height: 15px; }
.chat-readonly { padding: 18px 24px; border-top: 1px solid #e0e7db; background: #fff; color: #86947c; font-size: 12px; text-align: center; }
.chat-spinner { width: 17px; height: 17px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: chat-spin .7s linear infinite; }
@keyframes chat-spin { to { transform: rotate(360deg); } }
.event-chat.is-dragging::after { content: "Отпустите файлы, чтобы прикрепить их к сообщению"; position: absolute; z-index: 5; inset: 9px; display: grid; place-items: center; padding: 30px; text-align: center; background: #f0f7e8f2; border: 2px dashed #93b57a; border-radius: 13px; color: #587a42; font-size: 17px; pointer-events: none; }

/* Участники и вложения рядом с перепиской; на небольшом экране — выдвижная панель. */
.chat-aside { display: flex; flex-direction: column; min-width: 0; height: max(560px, calc(100dvh - 300px)); overflow: hidden; border: 1px solid #dde5d8; border-radius: 16px; background: #fff; }
.chat-aside-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 25px 20px 19px; }
.chat-aside-head h3 { margin: 0; font-size: 15px; font-weight: 550; letter-spacing: -.02em; color: #374a2f; }
.chat-aside-tabs { display: flex; gap: 4px; margin: 0 16px 18px; padding: 4px; border-radius: 10px; background: #f2f5ed; }
.chat-aside-tabs button { flex: 1; min-height: 37px; border: 1px solid transparent; border-radius: 7px; background: transparent; font-size: 12px; color: #68785c; }
.chat-aside-tabs button.active { border-color: #e2e9d9; background: #fff; color: #526f3e; font-weight: 550; box-shadow: 0 1px 3px #273c1805; }
.chat-aside-tabs button:not(.active):hover { color: #426232; background: #eaf0e3; }
.chat-aside-tabs button > span { margin-left: 4px; font-size: 10px; color: #95a486; }
.chat-aside-content { flex: 1; min-height: 0; overflow-y: auto; padding: 0 16px 16px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #d3deca transparent; }
.chat-person { display: flex; align-items: center; gap: 10px; padding: 12px 4px; border-bottom: 1px solid #f0f3eb; }
.chat-person:last-child { border-bottom: 0; }
.chat-person .chat-avatar { margin: 0; }
.chat-person > div { min-width: 0; }
.chat-person strong { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 500; line-height: 1.4; color: #3e5135; overflow-wrap: anywhere; }
.chat-person small { display: block; font-size: 11px; color: #68785c; }
.chat-aside .chat-file { margin: 0 0 10px; gap: 9px; padding: 9px; background: #fafcf7; }
.chat-aside .chat-file:hover { background: #f1f6e9; }
.chat-aside .chat-file-icon { flex-basis: 30px; width: 30px; height: 39px; font-size: 8px; }
.chat-aside .chat-file-copy strong { font-size: 12px; }
.chat-aside .chat-file-copy small { font-size: 10px; color: #68785c; }
.chat-aside .chat-file-download { width: 18px; }
.chat-aside .chat-file-download svg { width: 15px; height: 15px; }
.chat-aside-note { margin: 0; padding: 17px 20px 20px; border-top: 1px solid #edf1e6; color: #68785c; font-size: 11px; line-height: 1.7; }
.chat-aside-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 46px 12px; text-align: center; color: #91a07f; font-size: 12px; line-height: 1.7; }
.chat-aside-empty strong { font-size: 12px; font-weight: 500; color: #688151; }
.chat-aside-empty p { margin: 0; font-size: 11px; }
.chat-aside-empty svg { width: 27px; height: 27px; color: #a0b08c; }
.chat-panel-toggle, .chat-panel-close { display: none; place-items: center; width: 34px; height: 34px; padding: 6px; border: 1px solid #e2e9d9; border-radius: 9px; background: #fff; color: #789161; }
.chat-panel-toggle:hover, .chat-panel-close:hover { background: #f0f5e7; color: #42662f; }
.chat-panel-close svg, .chat-panel-toggle svg { width: 20px; height: 20px; }
.chat-panel-backdrop { display: none; }
@media (max-width: 1279px) {
  .chat-workspace { grid-template-columns: minmax(0, 1fr); }
  .chat-aside { display: none; }
  .chat-panel-toggle, .chat-panel-close { display: grid; }
  .chat-workspace.is-panel-open .chat-aside { display: flex; position: absolute; top: 0; right: 0; z-index: 4; width: min(320px, 100%); height: 100%; box-shadow: -10px 0 36px #24361b14; }
  .chat-workspace.is-panel-open .chat-panel-backdrop { display: block; position: absolute; z-index: 3; inset: 0; border: 0; border-radius: 16px; background: #21381b36; }
}
@media (max-width: 720px) {
  .event-chat { height: max(510px, calc(100dvh - 240px)); min-height: 460px; border-radius: 13px; }
  .event-chat-header { min-height: 80px; padding: 15px 13px; gap: 10px; }
  .event-chat-title { gap: 10px; }
  .event-chat-title h2 { font-size: 16px; }
  .chat-room-mark { width: 38px; height: 38px; border-radius: 11px; }
  .chat-subtitle { max-width: 200px; font-size: 10px; }
  .chat-header-actions { gap: 8px; }
  .chat-connection { font-size: 10px; max-width: 82px; }
  .chat-timeline { padding: 0 12px 20px; }
  .chat-message { gap: 7px; }
  .chat-message .chat-avatar { width: 30px; height: 30px; flex-basis: 30px; font-size: 9px; border-radius: 10px; }
  .chat-message-main { max-width: calc(100% - 37px); }
  .chat-message.is-own .chat-message-main { max-width: 90%; }
  .chat-bubble { padding: 10px 11px 7px; }
  .chat-message-text { font-size: 15px; }
  .chat-file { padding: 8px; gap: 8px; }
  .chat-file-icon { flex-basis: 29px; width: 29px; height: 37px; font-size: 8px; }
  .chat-file-copy strong { font-size: 12px; }
  .chat-file-download { width: 20px; }
  .chat-composer { padding: 12px 10px 10px; }
  .chat-compose-row { gap: 5px; padding: 5px; }
  .chat-attach, .chat-send { width: 42px; min-width: 42px; height: 44px; padding: 0; flex-basis: 42px; }
  .chat-send > span:not(.chat-spinner) { display: none; }
  .chat-input { font-size: 16px; padding-top: 9px; }
  .chat-compose-footer { gap: 8px; font-size: 9px; }
  .chat-keyboard-hint { display: none; }
  .chat-selected-file { max-width: 100%; flex: 1 1 100%; }
  .chat-selected-file > div { flex: 1; }
  .chat-selected-file > button { width: 36px; height: 36px; }
}
@media (max-width: 430px) {
  .chat-connection { font-size: 0; }
  .chat-connection i { width: 7px; height: 7px; }
  .chat-header-actions { gap: 11px; }
}
@media (prefers-reduced-motion: reduce) { .chat-spinner { animation-duration: 2s; } }

/* Карточка мероприятия: обложка, редактируемый обзор и файловые материалы. */
.chat-quote { display: block; width: 100%; padding: 9px 11px; margin: 0 0 10px; border: 0; border-left: 3px solid #527b3e; border-radius: 0 6px 6px 0; background: #183d2a08; color: #374b30; text-align: left; }
.chat-quote strong, .chat-quote span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-quote strong { font-size: 12px; margin-bottom: 4px; }
.chat-quote span { font-size: 13px; color: #5b6958; }
.chat-reply-draft { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.chat-reply-draft .chat-quote { margin: 0; min-width: 0; }
.chat-reply-cancel { flex: 0 0 36px; height: 36px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 8px; color: #55714c; }
.chat-unread-divider { text-align: center; background: #e5efdf; color: #466137; padding: 8px; margin: 12px -12px 20px; font-size: 12px; font-weight: 600; }
.chat-unread-count { display: inline-block; margin-left: 8px; padding: 2px 7px; background: #e4eede; color: #456238; border-radius: 10px; font-size: 12px; vertical-align: middle; }
.chat-unread-count[hidden] { display: none; }
.chat-mute { border: 1px solid #dce4d7; padding: 8px 10px; border-radius: 8px; background: white; color: #506d43; font-size: 11px; }
.chat-mute[aria-pressed="true"] { color: #71766d; background: #f1f3ef; }
.chat-image-attachment { max-width: 340px; margin-top: 8px; }
.chat-image-preview { display: block; position: relative; width: 100%; border: 0; padding: 0; background: #e8eee4; border-radius: 9px; overflow: hidden; text-align: center; }
.chat-image-preview img { display: block; width: 100%; height: 190px; object-fit: contain; font-size: 12px; color: #65755b; }
.chat-image-preview span { display: block; padding: 7px; background: #f2f6ed; color: #49603e; font-size: 11px; }
.chat-lightbox-dialog { width: min(1100px, 96vw); max-width: 96vw; padding: 0; }
.chat-lightbox { padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.chat-lightbox header { display: flex; width: 100%; gap: 20px; align-items: center; justify-content: space-between; }
.chat-lightbox header strong { min-width: 0; overflow-wrap: anywhere; }
.chat-lightbox img { display: block; max-width: 100%; max-height: 75dvh; object-fit: contain; }
.chat-message.is-highlighted .chat-bubble { animation: chat-highlight 2s ease-out; }
@keyframes chat-highlight { from { box-shadow: 0 0 0 3px #82ab65; } to { box-shadow: none; } }
@media (max-width: 720px) { .chat-header-actions { gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 124px; } .chat-mute { padding: 7px; font-size: 10px; } .chat-image-preview img { height: 150px; } }
@media (prefers-reduced-motion: reduce) { .chat-message.is-highlighted .chat-bubble { animation: none; outline: 2px solid #82ab65; } }
.event-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 264px;
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid #dbe3d7;
  border-radius: 14px;
  background: #e8eee4;
  color: var(--dark);
}
.event-cover {
  position: absolute;
  z-index: -2;
  inset: 0;
  pointer-events: none;
}
.event-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.event-hero.has-cover {
  border-color: #254437;
  background: #19392d;
  color: #fff;
}
.event-hero.has-cover::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(100deg, #071e17e6, #0b231bd4 54%, #071e17a8);
  pointer-events: none;
}
.event-hero-content {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  width: 100%;
  min-width: 0;
  padding: 32px;
}
.event-hero-main {
  flex: 1;
  min-width: 0;
  max-width: 790px;
}
.event-hero-main > .badge {
  margin-bottom: 16px;
}
.event-hero .eyebrow {
  display: block;
  margin: 0 0 10px;
  font-size: 10px;
  letter-spacing: .13em;
}
.event-hero-main > .actions .eyebrow {
  margin: 0;
}
.event-hero h1 {
  max-width: 760px;
  margin: 0 0 14px;
  font-size: clamp(26px, 2.7vw, 38px);
  font-weight: 550;
  line-height: 1.15;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}
.event-summary {
  max-width: 670px;
  margin-bottom: 20px;
  color: #48604e;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.event-hero .event-meta {
  gap: 8px 18px;
  color: #4b6553;
  font-size: 12px;
}
.event-hero .event-meta > * {
  min-width: 0;
  overflow-wrap: anywhere;
}
.event-hero.has-cover .eyebrow {
  color: #c0dfc6;
}
.event-hero.has-cover .event-summary,
.event-hero.has-cover .event-meta {
  color: #e1ece4;
}
.event-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  flex: 0 1 240px;
  gap: 8px;
}
.event-hero-actions .button {
  max-width: 100%;
  text-align: center;
}
.event-hero.has-cover .event-hero-actions .button:not(.primary):not(.danger) {
  background: #f8faf7;
  border-color: #f8faf7;
  color: #203d2b;
}
.event-hero.has-cover .event-hero-actions .button:not(.primary):not(.danger):hover {
  background: #e4eddf;
  border-color: #e4eddf;
}
.event-hero.has-cover .event-hero-actions .primary {
  background: #c7e1bd;
  border-color: #c7e1bd;
  color: #203d2b;
}
.event-hero.has-cover .event-hero-actions .primary:hover {
  background: #d7ebcf;
  border-color: #d7ebcf;
}
.event-hero.is-chat-hero { min-height: 0; margin-top: 13px; border: 0; border-radius: 0; background: transparent; color: #243d2f; }
.event-hero.is-chat-hero .event-hero-content { padding: 0; gap: 0; }
.event-hero.is-chat-hero h1 { max-width: none; margin-bottom: 0; font-size: clamp(21px, 2vw, 27px); font-weight: 550; line-height: 1.3; letter-spacing: -.035em; }
.event-hero.is-chat-hero .event-cover,
.event-hero.is-chat-hero::after,
.event-hero.is-chat-hero .event-hero-main > .actions,
.event-hero.is-chat-hero .event-summary,
.event-hero.is-chat-hero .event-meta,
.event-hero.is-chat-hero .event-hero-actions { display: none; }
.content:has(.event-chat) { padding-top: 22px; padding-bottom: 22px; }
.content:has(.event-chat) .tabs { margin-top: 17px; margin-bottom: 18px; }
.overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(270px, 1fr);
  gap: 22px;
  align-items: start;
}
.overview-main,
.overview-aside {
  min-width: 0;
}
.overview-layout .panel {
  min-width: 0;
}
.overview-layout h2 {
  margin-bottom: 18px;
  font-size: 20px;
  font-weight: 550;
}
.overview-description {
  margin-bottom: 0;
  color: #4e6055;
  font-size: 14px;
  line-height: 1.85;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Programme: a quiet editorial schedule, shared by overview and the full tab. */
.programme-section { padding: 26px 28px 6px; }
.programme-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 24px; }
.programme-head h2,
.overview-layout .programme-head h2 { margin: 0 0 9px; font-size: 22px; line-height: 1.3; letter-spacing: -.035em; font-weight: 550; }
.programme-head p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.programme-timezone { display: inline-block; margin-left: 8px; color: #65756b; font-size: 10px; letter-spacing: .06em; }
.programme-link { flex: 0 0 auto; padding: 4px 0; font-size: 13px; gap: 9px; }
.programme-list { margin: 0; padding: 0; list-style: none; }
.programme-item { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 20px; padding: 24px 0; border-top: 1px solid var(--line); align-items: start; }
.programme-time { display: flex; gap: 4px; padding-top: 2px; color: #5d6d63; font-size: 14px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.programme-time span { white-space: nowrap; }
.programme-copy { min-width: 0; }
.programme-copy h3 { margin: 0; font-size: 16px; line-height: 1.5; font-weight: 550; letter-spacing: -.015em; overflow-wrap: anywhere; }
.programme-copy p { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.programme-side { display: grid; justify-items: end; gap: 14px; max-width: 165px; }
.programme-location { display: flex; gap: 7px; align-items: flex-start; color: var(--muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.programme-location svg { flex: 0 0 16px; width: 16px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.programme-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.programme-empty { padding: 28px 0 32px; border-top: 1px solid var(--line); }
.programme-empty h3 { margin: 0 0 8px; font-size: 16px; font-weight: 550; }
.programme-empty p { margin: 0; max-width: 48ch; color: var(--muted); font-size: 14px; line-height: 1.7; }
.programme-footer { padding: 4px 0 14px 130px; }
.programme-footer .button { padding-left: 0; }
.registration-form .form-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.registration-form .field { min-width: 0; grid-column: span 3; align-content: start; }
.registration-form .name-part { grid-column: span 2; }
@media (max-width: 720px) {
  .programme-section { padding: 22px 20px 2px; }
  .programme-head { flex-wrap: wrap; gap: 10px; padding-bottom: 18px; }
  .programme-head h2,
  .overview-layout .programme-head h2 { font-size: 20px; }
  .programme-item { grid-template-columns: 52px minmax(0, 1fr); gap: 14px; padding: 21px 0; }
  .programme-time { font-size: 14px; }
  .programme-time { flex-direction: column; gap: 0; }
  .programme-copy h3 { font-size: 15px; }
  .programme-side { grid-column: 2; justify-items: start; max-width: none; }
  .programme-actions { justify-content: flex-start; }
  .programme-footer { padding-left: 66px; }
  .registration-form .form-grid { grid-template-columns: minmax(0, 1fr); }
  .registration-form .field,
  .registration-form .name-part { grid-column: 1; }
}
.overview-kicker {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.overview-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.overview-section-head h2 {
  margin: 0;
}
.overview-aside .info-grid {
  gap: 20px 14px;
}
.overview-aside .info-grid dd {
  font-size: 14px;
}
.event-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 22px;
}
.event-tag-list span {
  max-width: 100%;
  padding: 5px 10px;
  border: 1px solid #e0e7dc;
  border-radius: 6px;
  background: #f5f7f1;
  color: #526a50;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.overview-contact {
  display: grid;
  gap: 0;
}
.overview-contact h3 {
  margin-bottom: 12px;
}
.overview-contact > p {
  margin-bottom: 16px;
  color: #53645a;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.overview-contact a {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.overview-contact a:last-child {
  padding-bottom: 0;
}
.overview-contact a:hover {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.overview-contact small {
  font-size: 11px;
}

/* Материалы — только названные файлы; действия доступны рядом с каждым файлом. */
.resource-summary {
  margin: -10px 0 22px;
  color: var(--muted);
  font-size: 13px;
}
.resource-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.resource-card {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  min-width: 0;
  padding: 21px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: border-color .15s;
}
.resource-card:hover {
  border-color: #c3d0be;
}
.resource-file-icon {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 58px;
  padding: 6px;
  border: 1px solid #dce7d7;
  border-radius: 9px;
  background: #eef4e9;
  color: #527a42;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .02em;
  text-transform: uppercase;
  overflow: hidden;
}
.resource-file-icon svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}
.resource-details {
  flex: 1 1 200px;
  min-width: 0;
}
.resource-details h3 {
  margin: 0 0 5px;
  font-size: 15px;
  font-weight: 550;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.resource-details p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.resource-details small {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.resource-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  flex: 0 1 auto;
  gap: 7px;
  margin-left: auto;
}
.resource-actions .button {
  font-size: 12px;
}
.resource-actions .button.text {
  color: var(--muted);
}
.resource-actions .button.danger {
  color: var(--red);
}
.resource-empty {
  display: grid;
  justify-items: center;
  padding: 54px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-align: center;
}
.resource-empty-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 64px;
  margin-bottom: 22px;
  border: 1px solid #dfe7d9;
  border-radius: 12px;
  background: #eff4e9;
  color: #6b865e;
}
.resource-empty-icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}
.resource-empty h2 {
  margin-bottom: 9px;
  font-size: 20px;
  font-weight: 550;
}
.resource-empty p {
  max-width: 430px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.resource-empty p:last-child {
  margin-bottom: 0;
}
.resource-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.resource-toolbar .toolbar {
  flex: 1;
  padding: 0;
  border: 0;
}
.toolbar:has([data-filter="format"]) input {
  flex: 1 1 240px;
  min-width: 0;
  max-width: 100%;
}
.toolbar:has([data-filter="format"]) select {
  flex: 0 1 175px;
  min-width: 0;
  max-width: 100%;
  text-overflow: ellipsis;
}
.toolbar:has([data-filter="format"]) > .button {
  margin-left: auto;
}

/* Большая форма обзора сохраняет заголовок и действия при прокрутке. */
dialog.event-editor {
  width: min(920px, calc(100vw - 32px));
  overscroll-behavior: contain;
}
.event-editor .modal-head {
  position: sticky;
  z-index: 3;
  top: 0;
  background: #fff;
}
.event-editor .modal-footer {
  position: sticky;
  z-index: 3;
  bottom: 0;
  background: #fafcf9;
}
.event-editor .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.form-section {
  grid-column: 1 / -1;
  padding-top: 22px;
  margin: 8px 0 21px;
  border-top: 1px solid var(--line);
}
.form-section:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}
.form-section h3 {
  margin-bottom: 5px;
  font-size: 16px;
  font-weight: 550;
}
.form-section p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.field-hint {
  display: block;
  margin-top: 7px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.55;
}
.cover-field {
  grid-column: 1 / -1;
  align-items: center;
  margin-bottom: 20px;
}
.cover-preview {
  display: grid;
  place-items: center;
  flex: 0 0 190px;
  width: 190px;
  height: auto;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border: 1px solid #dce5d5;
  border-radius: 8px;
  background: #e8eee4;
  color: #738b6b;
  text-align: center;
}
.cover-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover-preview span {
  padding: 12px;
  font-size: 11px;
}
.photo-inputcopy {
  min-width: 0;
}
.photo-inputcopy small {
  line-height: 1.5;
}
.file-upload-field {
  display: grid;
  grid-column: 1 / -1;
  gap: 10px;
  min-width: 0;
  padding: 20px;
  margin-bottom: 22px;
  border: 1px dashed #b7c9b3;
  border-radius: 10px;
  background: #f8faf5;
  font-size: 13px;
  font-weight: 500;
}
.file-upload-field input[type="file"] {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
}
.file-upload-field input::file-selector-button {
  padding: 9px 12px;
  margin-right: 12px;
  border: 1px solid #c6d2c0;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.file-upload-field input::file-selector-button:hover {
  background: #edf3e8;
}
.file-upload-field small,
.file-selection-note {
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.file-selection-note {
  margin: 0;
  color: #536b4e;
}
@media (max-width: 1120px) {
  .event-hero-content {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }
  .event-hero-actions {
    flex: 0 1 auto;
    justify-content: flex-start;
  }
  .overview-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .overview-aside .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .event-hero {
    min-height: 260px;
    margin-top: 18px;
    border-radius: 12px;
  }
  .event-hero-content {
    padding: 25px 21px;
  }
  .event-hero h1 {
    font-size: 27px;
  }
  .event-summary {
    font-size: 13px;
  }
  .event-hero-actions {
    width: 100%;
  }
  .event-hero-actions .button {
    flex: 1 1 145px;
    font-size: 12px;
  }
  .event-hero .event-meta {
    align-items: flex-start;
    flex-direction: column;
  }
  .overview-layout,
  .overview-main,
  .overview-aside {
    gap: 16px;
  }
  .resource-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
  }
  .resource-file-icon {
    width: 44px;
    height: 54px;
  }
  .resource-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    margin-left: 0;
    padding-top: 13px;
    border-top: 1px solid var(--line);
  }
  .resource-actions .button {
    flex: 1 1 auto;
  }
  .resource-empty {
    padding: 40px 22px;
  }
  .toolbar:has([data-filter="format"]) input {
    flex-basis: 100%;
  }
  .toolbar:has([data-filter="format"]) select {
    flex: 1 1 145px;
    max-width: calc(50% - 5px);
  }
  .event-editor .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .event-editor .modal-head,
  .event-editor .modal-footer {
    padding: 16px 20px;
  }
  .event-editor .modal-head h2 {
    font-size: 19px;
  }
  .event-editor .modal-head .button {
    padding: 7px 10px;
    font-size: 12px;
  }
  .cover-field {
    align-items: stretch;
    flex-direction: column;
    gap: 15px;
    padding: 14px;
  }
  .cover-preview {
    flex: none;
    width: 100%;
  }
  .file-upload-field {
    padding: 16px;
  }
}
