:root {
  --bg: #0f1320;
  --card: #1a2030;
  --line: #2a3346;
  --text: #e6eaf2;
  --muted: #8a93a6;
  --accent: #3a7afe;
  --error: #ff6b6b;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}
.center { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.muted { color: var(--muted); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}
.login { width: 320px; display: flex; flex-direction: column; gap: 14px; }
.login h1 { margin: 0; font-size: 20px; }
.login p { margin: 0 0 6px; font-size: 13px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
input {
  padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line);
  background: #0c1018; color: var(--text); font-size: 15px;
}
input:focus { outline: none; border-color: var(--accent); }
button {
  padding: 11px 14px; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--accent); color: #fff; font-size: 15px; font-weight: 600;
}
button:hover { filter: brightness(1.08); }
button.link { background: none; color: var(--muted); padding: 6px 10px; font-weight: 400; }
.error {
  background: rgba(255, 107, 107, .12); border: 1px solid var(--error);
  color: var(--error); padding: 9px 12px; border-radius: 8px; font-size: 13px;
}
.topbar {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 22px; border-bottom: 1px solid var(--line); background: var(--card);
}
.brand { font-weight: 700; }
.spacer { flex: 1; }
.grid {
  display: grid; gap: 18px; padding: 28px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 1100px; margin: 0 auto;
}
.module { position: relative; text-decoration: none; color: var(--text); }
.module h2 { margin: 0 0 8px; font-size: 17px; }
.module p { margin: 0; font-size: 13px; }
.module.disabled { opacity: .6; pointer-events: none; }
.badge {
  position: absolute; top: 16px; right: 16px; font-size: 11px;
  background: var(--line); color: var(--muted); padding: 3px 8px; border-radius: 20px;
}
.badge-on { background: rgba(58, 122, 254, .18); color: #9cc0ff; }
a.brand { text-decoration: none; color: var(--text); }

/* Контент-страницы (список, карточка) */
.content { max-width: 1100px; margin: 0 auto; padding: 24px; }
.content h2 { font-size: 16px; margin: 22px 0 10px; }
.muted-h { color: var(--muted); }
.toolbar { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.search {
  flex: 1; max-width: 360px; padding: 9px 12px; border-radius: 8px;
  border: 1px solid var(--line); background: #0c1018; color: var(--text);
}
.nowrap { white-space: nowrap; }
.range-input { min-width: 320px; cursor: pointer; }
.small { font-size: 12px; }

/* Таблица */
.grid-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.grid-table th {
  text-align: left; color: var(--muted); font-weight: 500; font-size: 12px;
  padding: 8px 10px; border-bottom: 1px solid var(--line);
}
.grid-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); }
.grid-table tr.row { cursor: pointer; }
.grid-table tr.row:hover { background: rgba(58, 122, 254, .08); }
.grid-table.compact td { padding: 5px 10px; }

/* Карточка события */
.event { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px; margin-top: 12px; }
.event h1 { font-size: 22px; margin: 10px 0 6px; }
.event h3 { font-size: 15px; margin: 20px 0 8px; color: var(--muted); }
.event-media { position: relative; }
.event .logo { max-height: 120px; border-radius: 10px; }
.preview { color: #c7cedd; margin: 0 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.chip { background: var(--line); color: #c7cedd; font-size: 12px; padding: 4px 10px; border-radius: 20px; }
.chip-alt { background: rgba(58, 122, 254, .16); color: #9cc0ff; }
.props { display: grid; grid-template-columns: 160px 1fr; gap: 6px 16px; margin: 12px 0; font-size: 14px; }
.props dt { color: var(--muted); }
.props dd { margin: 0; }
.description { white-space: pre-wrap; line-height: 1.5; color: #d7ddea; }
.photos { display: flex; flex-wrap: wrap; gap: 10px; }
.photos img { max-height: 180px; border-radius: 10px; border: 1px solid var(--line); }
