/* Общие токены: интерфейс сдержанный, акцент на рабочих данных. */
:root {
  --green: #087f5b;
  --dark: #103b30;
  --mint: #e6f6ee;
  --ink: #1d3029;
  --muted: #6a7a72;
  --line: #e2e9e5;
  --canvas: #f5f7f5;
  --orange: #a75513;
  --red: #b93843;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font:
    16px/1.5 -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(26px, 2.5vw, 36px);
  letter-spacing: -0.045em;
  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 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  transition: background 0.15s;
}
.button:hover {
  background: #f0f6f2;
}
.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.button.primary:hover {
  background: #056449;
}
.button.danger {
  color: var(--red);
  background: #fff5f5;
}
.button.text {
  background: none;
  border-color: transparent;
  color: var(--green);
}
.button.compact {
  padding: 6px 11px;
  min-height: 34px;
}
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.room-shell { width: min(1100px, 92vw); min-height: 70vh; background: #0d1713; color: white; display: flex; flex-direction: column; }
.room-shell .modal-head { background: #14231d; border-color: #2a3b34; }
.room-shell .modal-head h2 { margin: 4px 0 0; }
.room-status { padding: 10px 20px; color: #b8ccc3; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; padding: 12px 20px; flex: 1; }
.video-tile { position: relative; min-height: 220px; border-radius: 14px; overflow: hidden; background: #1b2a24; }
.video-tile video { width: 100%; height: 100%; object-fit: cover; }
.video-tile audio { display: none; }
.video-tile span { position: absolute; left: 12px; bottom: 12px; padding: 5px 9px; border-radius: 7px; background: rgba(0,0,0,.6); }
.room-controls { display: flex; justify-content: center; gap: 10px; padding: 16px; background: #14231d; }
.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: 36px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 20px 70px #103b3008;
}
.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: 230px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  padding: 28px 16px 20px;
  background: white;
  border-right: 1px solid var(--line);
  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: #8b9991;
}
.nav {
  display: grid;
  gap: 6px;
}
.nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border: 0;
  border-radius: 10px;
  padding: 12px 14px;
  background: transparent;
  color: #53665b;
  font-size: 14px;
  font-weight: 600;
}
.nav button:hover {
  background: #f5f8f6;
}
.nav button.active {
  background: var(--mint);
  color: var(--green);
}
.nav-icon {
  font-size: 19px;
  width: 22px;
  text-align: center;
}
.sidebar-foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 18px 10px 0;
  font-size: 14px;
}
.sidebar-foot small {
  display: block;
}
.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 {
  font-size: 14px;
  color: var(--muted);
}
.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: 15px;
  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: var(--dark);
  color: white;
  border-color: var(--dark);
}
.metric:first-child span,
.metric:first-child small {
  color: #bcdbcd;
}
.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;
}
.message {
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}
.message p {
  white-space: pre-wrap;
  margin: 6px 0;
  overflow-wrap: anywhere;
}
.message.mine {
  border-left: 3px solid var(--green);
  background: #f5fbf7;
}
.compose {
  display: flex;
  gap: 10px;
  padding: 18px;
}
.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;
}
@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) {
  .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;
  }
  .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;
  }
}
