@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
  --bg: #e5ebf3;
  --bg-soft: #f2f5f9;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --line: #d5dce6;
  --line-strong: #b9c4d2;
  --text: #111a2b;
  --muted: #58667d;
  --heading: #0f1b30;
  --accent: #1e4f93;
  --accent-strong: #163d73;
  --accent-soft: #e9f0fb;
  --success: #166e4f;
  --success-soft: #e8f7ef;
  --danger: #ab3547;
  --danger-soft: #fdeff2;
  --warning: #825d1a;
  --warning-soft: #fff5db;
  --radius-xl: 9px;
  --radius-lg: 7px;
  --radius-md: 6px;
  --radius-sm: 4px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.07);
  --shadow-md: 0 10px 24px rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body.app {
  margin: 0;
  color: var(--text);
  font-family: 'IBM Plex Sans', 'Segoe UI', sans-serif;
  text-rendering: geometricPrecision;
  background: linear-gradient(180deg, #edf2f8 0%, var(--bg) 100%);
}

body.app--login {
  background: linear-gradient(180deg, #eef2f8 0%, #e2e8f1 100%);
}

body.app--admin {
  background:
    linear-gradient(180deg, rgba(15, 42, 82, 0.04) 0%, transparent 140px),
    linear-gradient(180deg, #edf2f8 0%, #e3eaf3 100%);
}

.page {
  width: min(1120px, calc(100% - 40px));
  margin: 24px auto 48px;
  display: grid;
  gap: 16px;
  animation: page-enter 0.2s ease both;
}

.page--wide {
  width: min(1280px, calc(100% - 40px));
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
}

.page--wide > .topbar {
  grid-column: 1 / -1;
}

.page--wide > section:nth-of-type(1) {
  grid-column: 1 / 8;
}

.page--wide > section:nth-of-type(2) {
  grid-column: 8 / -1;
}

.page--wide > section:nth-of-type(3) {
  grid-column: 1 / -1;
}

.page--wide > section:nth-of-type(4) {
  grid-column: 1 / 5;
}

.page--wide > section:nth-of-type(5) {
  grid-column: 5 / -1;
}

.page--admin-event > section:nth-of-type(1) {
  grid-column: 1 / -1;
}

.page--admin-event > section:nth-of-type(2) {
  grid-column: 1 / 8;
}

.page--admin-event > section:nth-of-type(3) {
  grid-column: 8 / -1;
}

.page--admin-event .table-wrap {
  max-height: min(66vh, 620px);
  overflow: auto;
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(3px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-xl);
  border: 1px solid #1a3359;
  background: #102847;
  box-shadow: 0 4px 12px rgba(12, 25, 46, 0.22);
}

.topbar-stack {
  display: grid;
  gap: 5px;
}

.eyebrow {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #98aacc;
}

.topbar h1 {
  margin: 0;
  font-size: clamp(22px, 1.8vw, 34px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #f7faff;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.topbar-actions .topbar-action {
  min-height: 38px;
  padding: 0 14px;
  border-radius: var(--radius-lg);
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 16px;
}

.card--hero {
  background: linear-gradient(180deg, #fbfcff 0%, #f6f9fd 100%);
  border-color: #c8d4e5;
}

.card--hero::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
}

.card--muted {
  background: var(--surface-soft);
}

h2,
h3,
h4 {
  margin: 0;
  color: var(--heading);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h2 {
  font-size: clamp(22px, 1.6vw, 30px);
}

h3 {
  font-size: clamp(20px, 1.35vw, 26px);
}

h4 {
  font-size: 15px;
}

section.card > h2,
section.card > h3 {
  display: flex;
  align-items: center;
  gap: 12px;
}

section.card > h2::after,
section.card > h3::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(17, 34, 60, 0.14), transparent);
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.small {
  font-size: 12px;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 1.2px;
  text-underline-offset: 3px;
}

a.button,
button {
  appearance: none;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.005em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  color: #ffffff;
  background: #1f4f93;
  box-shadow: 0 2px 6px rgba(26, 68, 128, 0.16);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    border-color 0.12s ease,
    background 0.12s ease;
}

button:hover,
a.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(26, 68, 128, 0.2);
  background: #1a4380;
}

button.secondary,
a.button.secondary {
  color: #26364f;
  border-color: var(--line-strong);
  background: #ffffff;
  box-shadow: none;
}

button.secondary:hover,
a.button.secondary:hover {
  background: #f2f5fa;
  box-shadow: none;
}

.topbar .button.secondary,
.topbar button.secondary {
  color: #e8efff;
  border-color: rgba(219, 231, 255, 0.26);
  background: rgba(255, 255, 255, 0.04);
}

.topbar .button.secondary:hover,
.topbar button.secondary:hover {
  border-color: rgba(219, 231, 255, 0.38);
  background: rgba(255, 255, 255, 0.11);
}

button.danger,
a.button.danger {
  background: #b13f52;
  box-shadow: 0 3px 10px rgba(168, 54, 72, 0.22);
}

button.danger:hover,
a.button.danger:hover {
  background: #9e3345;
}

button:disabled,
a.button:disabled {
  opacity: 0.55;
  transform: none;
  box-shadow: none;
  cursor: not-allowed;
}

button:focus-visible,
a.button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role='button']:focus-visible,
[contenteditable='true']:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 79, 147, 0.22);
}

.grid {
  display: grid;
  gap: 12px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

label {
  display: block;
  margin-bottom: 6px;
  color: #2b3b55;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

input,
select,
textarea {
  width: 100%;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px 11px;
  transition:
    border-color 0.12s ease,
    box-shadow 0.12s ease,
    background 0.12s ease;
}

input,
select {
  min-height: 40px;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #c4d0df;
}

input::placeholder,
textarea::placeholder {
  color: #8793a8;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #7f9ec8;
  box-shadow: 0 0 0 3px rgba(30, 79, 147, 0.16);
}

input[type='radio'],
input[type='checkbox'] {
  accent-color: var(--accent);
}

input[type='checkbox'] {
  width: auto;
  min-height: 0;
}

textarea {
  min-height: 106px;
  resize: vertical;
}

#createCases,
#editCases {
  min-height: 96px;
}

ul,
ol {
  margin: 8px 0 0;
  padding-left: 20px;
}

li {
  margin-bottom: 5px;
  color: var(--muted);
}

.case-grid,
.case-config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.case-option,
.case-config-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.case-option {
  cursor: pointer;
  transition:
    border-color 0.12s ease,
    box-shadow 0.12s ease,
    transform 0.12s ease;
}

.case-option:hover {
  border-color: #9db2d0;
  box-shadow: 0 3px 8px rgba(17, 31, 55, 0.1);
  transform: translateY(-1px);
}

.case-option > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.case-option strong {
  color: var(--heading);
  font-size: 15px;
}

.case-option input {
  width: auto;
  min-height: 0;
}

.case-option.selected {
  border-color: #6f8fbc;
  background: #f1f6ff;
  box-shadow: 0 0 0 2px rgba(30, 79, 147, 0.13);
}

.case-option.disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.case-option.disabled:hover {
  border-color: var(--line);
  box-shadow: none;
  transform: none;
}

.case-config-card .small {
  margin: 0;
}

.case-config-card h4 {
  font-size: 15px;
}

.admin-form-card {
  gap: 14px;
  background: #f8fafd;
  border-color: #c6d3e4;
}

.admin-form-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(30, 79, 147, 0.55), rgba(30, 79, 147, 0));
}

.admin-form-card > h2 {
  margin-bottom: 2px;
}

.panel-block {
  border: 1px solid #cfd9e8;
  border-radius: var(--radius-lg);
  background: #ffffff;
  padding: 11px;
  gap: 10px;
}

.panel-block .step-actions {
  margin-top: 0;
}

.panel-block > .grid-2 > .step-actions {
  align-self: end;
}

.panel-block > .grid-2 > .step-actions button,
.panel-block > .grid-2 > .step-actions .button {
  min-width: 0;
}

label > input[type='checkbox'] {
  margin-right: 8px;
  transform: translateY(1px);
}

.rich-editor {
  border: 1px solid #cfd9e8;
  border-radius: var(--radius-lg);
  background: #ffffff;
  overflow: hidden;
}

.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  border-bottom: 1px solid #d6deeb;
  background: #f3f6fa;
}

.rich-toolbar button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: var(--radius-sm);
  box-shadow: none;
  border-color: #c3cedd;
  background: #ffffff;
  color: #2b3d5b;
}

.rich-editor-area {
  min-height: 165px;
  max-height: 420px;
  overflow: auto;
  padding: 14px;
  outline: none;
  line-height: 1.58;
  background: #ffffff;
}

#createDescriptionEditor {
  min-height: 160px;
}

#editDescriptionEditor {
  min-height: 145px;
}

.rich-editor-area:empty::before {
  content: 'Введите описание мероприятия (можно с форматированием).';
  color: #8895a9;
}

.rich-view {
  color: var(--text);
  line-height: 1.62;
}

.rich-view h2,
.rich-view h3 {
  margin: 0 0 10px;
}

.rich-view p {
  margin: 0 0 9px;
  color: inherit;
}

.rich-view ul,
.rich-view ol {
  margin: 8px 0 10px 20px;
  padding: 0;
}

.rich-view li {
  color: inherit;
}

.status {
  min-height: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.status:not(:empty) {
  border: 1px solid #cdd8e8;
  border-radius: var(--radius-sm);
  background: #f2f6fc;
  padding: 10px 11px;
}

.status.error {
  color: var(--danger);
}

.status.error:not(:empty) {
  border-color: #ecc8d0;
  background: #fff4f6;
}

.status.success {
  color: var(--success);
}

.status.success:not(:empty) {
  border-color: #b8e4d3;
  background: #ecfaf3;
}

#publicLinkWrap,
#settingsLinkWrap {
  border: 1px solid #c8d7ea;
  border-radius: var(--radius-md);
  background: #f2f7ff;
  padding: 10px 11px;
}

#settingsLinkWrap .button {
  min-height: 36px;
}

.stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.step-badge {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 10px;
}

.step-badge.active {
  border-color: #8aa5cb;
  background: var(--accent-soft);
  color: #1d3d69;
}

.step {
  display: none;
}

.step.active {
  display: block;
  animation: section-enter 0.18s ease both;
}

.step > h3 {
  margin-bottom: 14px;
}

@keyframes section-enter {
  from {
    opacity: 0;
    transform: translateY(2px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  align-items: center;
}

.step-actions--tight {
  margin-top: 8px;
}

.event-settings-controls {
  display: grid;
  grid-template-columns: minmax(200px, 280px) minmax(240px, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.field-compact {
  width: 100%;
  max-width: 320px;
}

.inline-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  min-height: 36px;
  padding-bottom: 0;
  color: #2f415f;
}

.inline-checkbox input[type='checkbox'] {
  margin: 0;
  transform: none;
}

.inline-checkbox span {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.event-settings-actions {
  justify-self: end;
  align-self: center;
}

.event-settings-actions button {
  min-width: 178px;
}

.invite-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.invite-action-card {
  display: grid;
  gap: 8px;
}

.invite-action-card .step-actions {
  margin-top: 2px;
}

.invite-action-card button {
  min-width: 146px;
}

.warning {
  border: 1px solid #efd6a5;
  border-radius: var(--radius-md);
  background: var(--warning-soft);
  color: var(--warning);
  padding: 10px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid #cfd9e8;
  border-radius: var(--radius-lg);
  background: #ffffff;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid #e4eaf3;
  text-align: left;
  padding: 10px;
  font-size: 13px;
  vertical-align: top;
}

th {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #5d6d86;
  background: #f3f6fb;
  position: sticky;
  top: 0;
  z-index: 1;
}

tbody tr:nth-child(even) td {
  background: #fafbfd;
}

tr:last-child td {
  border-bottom: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  width: fit-content;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
}

.pill.good {
  background: var(--success-soft);
  color: var(--success);
  border-color: #c6e7d9;
}

.pill.bad {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: #f0ccd3;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 17, 31, 0.62);
  backdrop-filter: blur(4px);
}

.modal.active {
  display: flex;
}

.modal-card {
  width: min(520px, 100%);
  border: 1px solid #c7d3e3;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-md);
  padding: 18px;
  display: grid;
  gap: 12px;
  position: relative;
}

.modal-card--wide {
  width: min(1100px, 100%);
}

.modal-card > h3 {
  padding-right: 44px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  min-height: 32px;
  min-width: 32px;
  padding: 0;
  border: 1px solid #c9d5e6;
  border-radius: 50%;
  background: #f8fbff;
  color: #354967;
  box-shadow: none;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}

.modal-close:hover {
  background: #edf3fb;
  border-color: #b5c4da;
  box-shadow: none;
  transform: none;
}

code {
  font-family: 'JetBrains Mono', 'SFMono-Regular', 'Consolas', monospace;
  font-size: 0.9em;
  color: #1c3556;
  background: #eaf1fd;
  border-radius: 4px;
  padding: 2px 6px;
  display: inline-block;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

.copy-token {
  cursor: pointer;
  transition:
    background 0.12s ease,
    color 0.12s ease;
}

.copy-token:hover {
  background: #dce8fb;
}

.copy-token.is-copied {
  background: #d6f1e4;
  color: #106845;
}

td code.copy-token {
  max-width: 100%;
}

.modal-card p code.copy-token {
  font-size: 0.95em;
}

#eventsGrid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}

#eventsGrid .card {
  min-height: 0;
  align-content: start;
  gap: 10px;
  border-color: #c9d4e4;
}

#eventsGrid .rich-view {
  position: relative;
  overflow: hidden;
  max-height: 140px;
  mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
}

#eventsGrid .rich-view.is-expandable {
  cursor: pointer;
}

#eventsGrid .rich-view.is-expandable:hover {
  color: #192a45;
}

#eventsGrid .rich-view.is-expanded {
  max-height: none;
  mask-image: none;
  -webkit-mask-image: none;
}

#eventsGrid .description-hint {
  color: #5f708b;
  margin-top: -1px;
}

.admin-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}

.event-summary-card {
  cursor: pointer;
  background: #ffffff;
  border-color: #c6d3e4;
  box-shadow: 0 2px 8px rgba(15, 31, 56, 0.08);
  transition:
    border-color 0.12s ease,
    box-shadow 0.12s ease,
    transform 0.12s ease;
}

.event-summary-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(30, 79, 147, 0.75), rgba(30, 79, 147, 0));
}

.event-summary-card:hover {
  transform: translateY(-1px);
  border-color: #97afd0;
  box-shadow: 0 8px 16px rgba(16, 30, 54, 0.12);
}

.event-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.event-summary-slug,
.event-summary-date {
  color: #5a6b85;
}

.event-summary-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.event-summary-metrics > span {
  border: 1px solid #d2dceb;
  border-radius: var(--radius-sm);
  background: #f8fafd;
  padding: 8px 9px;
  font-size: 12px;
  color: #4a5c7a;
  min-width: 150px;
  max-width: 220px;
}

.event-summary-metrics strong {
  color: var(--heading);
}

.event-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.event-overview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.event-overview-grid > span {
  border: 1px solid #d0dbeb;
  border-radius: var(--radius-md);
  background: #ffffff;
  padding: 10px 11px;
  font-size: 12px;
  color: #4b5c78;
  min-width: 160px;
  max-width: 220px;
}

.event-overview-grid strong {
  color: var(--heading);
}

.table-wrap--max {
  max-height: min(56vh, 430px);
  overflow: auto;
}

.page-status-wide {
  grid-column: 1 / -1;
}

.page--login {
  min-height: calc(100vh - 48px);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
}

.auth-layout {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(330px, 1fr) minmax(420px, 1.05fr);
  gap: 16px;
}

.auth-hero {
  border: 1px solid #1b3258;
  background: #102847;
  box-shadow: 0 8px 18px rgba(14, 24, 42, 0.22);
  padding: 20px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.auth-hero .eyebrow {
  color: #9cb2d3;
}

.auth-hero h1 {
  margin: 0;
  font-size: clamp(22px, 2vw, 34px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: #f4f7ff;
}

.auth-lead {
  color: #c9d7ee;
  font-size: 15px;
}

.auth-facts {
  display: grid;
  gap: 8px;
}

.auth-facts p {
  margin: 0;
  border: 1px solid rgba(199, 213, 238, 0.24);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.07);
  color: #d2def4;
  padding: 10px;
  font-size: 13px;
}

.auth-facts strong {
  color: #f3f7ff;
  margin-right: 6px;
}

.auth-hero .button.secondary {
  margin-top: auto;
  justify-self: start;
  color: #e2ecff;
  border-color: rgba(226, 236, 255, 0.34);
  background: rgba(255, 255, 255, 0.05);
}

.auth-hero .button.secondary:hover {
  background: rgba(255, 255, 255, 0.11);
}

.auth-form {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-color: #c7d4e4;
  background: #ffffff;
}

.auth-form h2 {
  font-size: clamp(22px, 2vw, 34px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.auth-form > h2::after {
  background: linear-gradient(90deg, rgba(17, 34, 60, 0.16), transparent);
}

.auth-fields {
  display: grid;
  gap: 10px;
}

.auth-form input {
  min-height: 44px;
}

.auth-form button {
  width: 100%;
  min-height: 44px;
}

.auth-form .status:not(:empty) {
  border-style: solid;
}

@media (max-width: 1180px) {
  .page,
  .page--wide {
    width: min(1280px, calc(100% - 28px));
  }

  .page--wide {
    grid-template-columns: 1fr;
  }

  .page--wide > section {
    grid-column: 1 / -1 !important;
  }

  .auth-layout {
    grid-template-columns: 1fr;
  }

  .event-settings-controls,
  .invite-actions-grid {
    grid-template-columns: 1fr;
  }

  .field-compact {
    max-width: none;
  }

  .event-settings-actions {
    justify-self: start;
  }

  .page--login {
    min-height: 0;
    margin-top: 14px;
  }
}

@media (max-width: 760px) {
  .page,
  .page--wide {
    width: calc(100% - 18px);
    margin-top: 10px;
    margin-bottom: 20px;
    gap: 10px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px;
  }

  .topbar h1 {
    font-size: clamp(26px, 8vw, 34px);
  }

  .topbar-actions,
  .step-actions {
    width: 100%;
  }

  .topbar-actions .button,
  .topbar-actions button,
  .step-actions .button,
  .step-actions button {
    width: 100%;
  }

  .topbar-actions .topbar-action {
    min-width: 0;
  }

  .event-settings-actions button,
  .invite-action-card button {
    min-width: 0;
    width: 100%;
  }

  .card,
  .auth-hero,
  .auth-form,
  .modal-card {
    padding: 14px;
    border-radius: 8px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .stepper {
    display: grid;
    grid-template-columns: 1fr;
  }

  .event-summary-metrics {
    grid-template-columns: 1fr;
  }

  .step-badge {
    text-align: center;
  }

  th,
  td {
    padding: 8px 7px;
    font-size: 12px;
  }

  .auth-hero h1,
  .auth-form h2 {
    font-size: clamp(24px, 7vw, 32px);
  }

  .auth-hero .button {
    width: 100%;
    justify-self: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
