@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Work+Sans:wght@400;500;600&display=swap");

:root {
  color-scheme: light;
  --bg: #f5f1ea;
  --panel: #ffffff;
  --ink: #1b1b1b;
  --muted: #6a6760;
  --accent: #0f5d4c;
  --accent-soft: #d8eee9;
  --accent-strong: #0b3b31;
  --highlight: #ffe9a8;
  --border: #e2ddd3;
  --shadow: 0 20px 60px rgba(20, 20, 20, 0.12);
  --radius: 16px;
}

:root[data-theme="ocean"] {
  --bg: #e8f2fb;
  --panel: #ffffff;
  --ink: #0f2236;
  --muted: #51647a;
  --accent: #1b6fb3;
  --accent-soft: #d6e9fb;
  --accent-strong: #0f4d80;
  --highlight: #ffe6bf;
  --border: #d9e3ef;
  --shadow: 0 20px 60px rgba(16, 36, 64, 0.12);
}

:root[data-theme="forest"] {
  --bg: #edf5ef;
  --panel: #ffffff;
  --ink: #13251c;
  --muted: #5c6b62;
  --accent: #2b7a4b;
  --accent-soft: #d9efe2;
  --accent-strong: #1f5b36;
  --highlight: #f4e6b6;
  --border: #d8e2db;
  --shadow: 0 20px 60px rgba(20, 40, 30, 0.12);
}

:root[data-theme="slate"] {
  --bg: #eef0f4;
  --panel: #ffffff;
  --ink: #1e2330;
  --muted: #586174;
  --accent: #3b4f70;
  --accent-soft: #dce3f0;
  --accent-strong: #2a3b56;
  --highlight: #f3e0b0;
  --border: #d6dbe5;
  --shadow: 0 20px 60px rgba(30, 36, 52, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #ffffff 0%, var(--bg) 55%, #efe7da 100%);
}

.dashboard {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
  background: #1f2a36;
}

.sidebar {
  background: #1f2a36;
  border-right: 1px solid var(--border);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 100vh;
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.sidebar__brand-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar__logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #2f4356;
  color: #dfe9f3;
  font-weight: 700;
  display: grid;
  place-items: center;
  letter-spacing: 0.1em;
}

.sidebar__title {
  font-size: 14px;
  font-weight: 700;
  color: #f5f8fb;
}

.sidebar__meta {
  font-size: 11px;
  color: #9fb0c1;
  margin-top: 4px;
}

.sidebar__mobile-actions {
  display: none;
  align-items: center;
  gap: 10px;
}

.sidebar__nav {
  display: grid;
  gap: 8px;
  align-content: start;
  flex: 1;
  overflow-y: auto;
}

.sidebar__mobile {
  display: none;
}

.sidebar__toggle {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.sidebar__toggle-icon {
  position: relative;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  display: inline-block;
}

.sidebar__toggle-icon::before,
.sidebar__toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.sidebar__toggle-icon::before {
  top: -6px;
}

.sidebar__toggle-icon::after {
  top: 6px;
}

.sidebar__link {
  text-decoration: none;
  color: #d5dde7;
  font-weight: 600;
  padding: 5px 7px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: block;
  font-size: 14px;
}

.sidebar__link:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  background: #2a3b4c;
}

.sidebar__link.is-active {
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
  background: #2a3b4c;
}

.sidebar__logout {
  margin-top: 12px;
  font-size: 14px;
  padding: 5px 7px;
}

.sidebar .btn--ghost {
  color: #d5dde7;
  border-color: rgba(255, 255, 255, 0.3);
}

.sidebar .btn--ghost:hover {
  background: #2a3b4c;
  color: #ffffff;
}

.content {
  background: #f4f6f9;
  min-height: 100vh;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #1f2a36;
  color: #ffffff;
  padding: 0;
  border-radius: 0;
  box-shadow: 0 18px 40px rgba(13, 42, 74, 0.25);
  position: sticky;
  top: 0;
  z-index: 3;
}

.topbar__inner {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
}

.topbar--public {
  background: #1f2a36;
  color: #ffffff;
  border: none;
  box-shadow: 0 18px 40px rgba(13, 42, 74, 0.25);
}

.topbar--public .topbar__logo {
  background: #2f4356;
}

.topbar--public .topbar__subtitle {
  color: #9fb0c1;
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar__logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #2f4356;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.topbar__title {
  font-weight: 700;
  font-size: 15px;
}

.topbar__subtitle {
  font-size: 12px;
  color: #9fb0c1;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar__link {
  color: #d5e2f1;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 10px;
}

.topbar__link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.topbar__icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
}

.topbar__icon-text {
  font-weight: 700;
  font-size: 12px;
}

.topbar__notifications {
  position: relative;
}

.topbar__badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #f26b5b;
  color: #fff;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  min-width: 18px;
  text-align: center;
}

.topbar__dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 42px;
  width: 280px;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 22, 30, 0.18);
  padding: 12px;
  z-index: 5;
  max-height: 320px;
  overflow: auto;
}

.topbar__notifications:hover .topbar__dropdown,
.topbar__notifications.is-open .topbar__dropdown {
  display: block;
}

.topbar__dropdown-title {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 8px;
}

.topbar__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.topbar__list-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  background: #fffaf0;
  font-size: 12px;
}

.topbar__list-title {
  font-weight: 700;
  margin-bottom: 2px;
}

.topbar__list-meta {
  color: var(--muted);
}

.topbar__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1f6bb8;
  color: #ffffff;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.app {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 20px 24px;
  display: grid;
  gap: 24px;
}

.auth {
  min-height: 100vh;
  display: grid;
  gap: 24px;
  padding: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
  justify-items: stretch;
}

.auth--portal {
  padding: 40px 32px;
  background: radial-gradient(circle at top left, #ffffff 0%, #edf3f9 45%, #e4eef6 100%);
}

.auth--portal .auth__grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(280px, 0.95fr);
  gap: 32px;
  align-items: stretch;
}

.auth--portal .auth__pane--form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth--portal .auth__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk", "Work Sans", "IBM Plex Sans", sans-serif;
}

.auth--portal .auth__brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.18em;
  display: grid;
  place-items: center;
  font-size: 14px;
}

.auth--portal .auth__brand-title {
  font-size: 16px;
  font-weight: 700;
}

.auth--portal .auth__brand-subtitle {
  font-size: 12px;
  color: var(--muted);
}

.auth--portal .auth__headline {
  font-family: "Space Grotesk", "Work Sans", "IBM Plex Sans", sans-serif;
  font-size: 40px;
  margin: 0;
}

.auth--portal .auth__subhead {
  margin: 0 0 8px;
  color: var(--muted);
  max-width: 520px;
  font-size: 16px;
}

.auth--portal .auth__card {
  box-shadow: 0 22px 50px rgba(24, 40, 60, 0.12);
  border-color: rgba(23, 47, 70, 0.12);
}

.auth__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.auth__divider::before,
.auth__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(30, 60, 90, 0.15);
}

.auth--portal .auth__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.auth--portal .auth__divider--compact {
  margin: 6px 0;
}

.auth--portal .auth__divider::before,
.auth--portal .auth__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(30, 60, 90, 0.15);
}

.auth--portal .auth__helper {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
}

.auth--portal .auth__link {
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.auth--portal .auth__link:hover {
  text-decoration: underline;
}

.auth--portal .auth__social {
  width: 100%;
  border-radius: 14px;
  padding: 12px 16px;
  border-color: #cfd8e3;
  color: #1c2a38;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.auth__google {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 6px;
}

.auth__google > div,
.auth__google iframe {
  max-width: 100%;
}

.auth--portal .auth__social[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth--portal .auth__social-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  color: #ea4335;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid #e1e8f0;
}

.auth--portal .auth__signup {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.auth--portal .form__label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.auth--portal .form__input {
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid #d7e2ec;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.auth--portal .auth__submit {
  width: 100%;
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 15px;
}

.auth--portal .auth__pane--art {
  background: linear-gradient(160deg, #2f7f9b 0%, #2b5b84 50%, #1b3a54 100%);
  border-radius: 28px;
  color: #f8fbff;
  position: relative;
  overflow: hidden;
  padding: 36px;
  box-shadow: 0 30px 80px rgba(20, 40, 60, 0.35);
}

.auth--portal .auth__pane--art::before,
.auth--portal .auth__pane--art::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  top: -80px;
  right: -60px;
}

.auth--portal .auth__pane--art::after {
  width: 280px;
  height: 280px;
  top: auto;
  bottom: -120px;
  left: -90px;
  background: rgba(255, 255, 255, 0.06);
}

.auth--portal .auth__art {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
}

.auth--portal .auth__art-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 700;
  letter-spacing: 0.14em;
}

.auth--portal .auth__art-title {
  margin: 0;
  font-size: 26px;
  font-family: "Space Grotesk", "Work Sans", "IBM Plex Sans", sans-serif;
}

.auth--portal .auth__art-copy {
  margin: 0;
  font-size: 15px;
  color: rgba(248, 251, 255, 0.85);
}

.auth--portal .auth__art-illustration {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 18px;
}

.auth--portal .auth__art-illustration svg {
  width: 100%;
  height: auto;
  display: block;
}

.auth--portal .auth__art-meta {
  font-size: 13px;
  color: rgba(248, 251, 255, 0.7);
}

@media (max-width: 980px) {
  .auth--portal {
    padding: 28px 20px;
  }

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

  .auth--portal .auth__pane--art {
    order: -1;
  }
}

@media (max-width: 720px) {
  .auth--portal .auth__headline {
    font-size: 32px;
  }
}

.auth__topbar {
  grid-column: 1 / -1;
}

.auth__panel {
  width: 100%;
}

.auth__panel--wide {
  grid-column: 1 / -1;
}

.auth__panel--intro {
  display: grid;
  gap: 12px;
}

.auth__panel--hidden {
  display: none;
}

.auth__panel--hidden:target {
  display: block;
}

.auth__close {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.auth__close:hover {
  text-decoration: underline;
}

.app__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--panel);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.app__header--dashboard {
  position: sticky;
  top: 90px;
  z-index: 2;
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 8px 4px;
}

.app__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 6px;
}

.app__title {
  margin: 0;
  font-size: 32px;
}

.app__subtitle {
  margin: 8px 0 0;
  color: var(--muted);
}

.app__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app__chip {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
}

.panel {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 22px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  scroll-margin-top: 100px;
}

.panel--dashboard {
  background: linear-gradient(135deg, #ffffff 0%, #f7f8fb 55%, #eef2f7 100%);
  border: 1px solid #dfe7f2;
}

.panel__title {
  margin: 0 0 16px;
  font-size: 20px;
}

.panel__subtitle {
  margin: 18px 0 10px;
  font-size: 16px;
}

.panel__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

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

.form__row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.form__group {
  display: grid;
  gap: 8px;
}

.form__label {
  font-weight: 600;
}

.form__input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
}

.form__input--compact {
  max-width: 260px;
  padding: 10px 12px;
}

.form__textarea {
  resize: vertical;
  min-height: 90px;
}

.form__hint {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.billing-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display: grid;
  gap: 10px;
  margin: 12px 0 16px;
}

.billing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
}

.billing-row span {
  color: var(--muted);
  font-weight: 500;
}

.form__check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.form__checkbox {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.form__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  text-decoration: none;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn--primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.status {
  font-size: 14px;
  color: var(--muted);
}

.status.is-error {
  color: #b00020;
}

.status.is-success {
  color: #0f5d4c;
}

.panel__split {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.volunteer__list-column {
  display: grid;
  gap: 12px;
}

.volunteer__list-scroll {
  display: grid;
  gap: 18px;
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 8px;
}

.volunteer__form-column {
  align-self: start;
  position: sticky;
  top: 110px;
}

.settings__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.settings__tab {
  padding: 8px 16px;
  font-size: 13px;
}

.settings__tab.is-active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.layout-editor {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  align-items: start;
}

.layout-editor__controls {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
}

.layout-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.layout-toolbar__actions,
.layout-toolbar__palette {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.layout-editor__stage {
  width: 100%;
}

.layout-canvas {
  position: relative;
  width: 100%;
  border: 1px dashed var(--border);
  border-radius: 16px;
  background: #f6f7fb;
  overflow: hidden;
  min-height: 260px;
}

.layout-canvas img {
  width: 100%;
  height: auto;
  display: block;
}

.layout-overlay {
  position: absolute;
  inset: 0;
}

.layout-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  padding: 24px;
}

.layout-item {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  cursor: grab;
  user-select: none;
  pointer-events: auto;
  box-sizing: border-box;
  text-align: center;
  padding: 2px;
}

.layout-item.is-dragging {
  cursor: grabbing;
}

.layout-item.is-selected {
  box-shadow: 0 0 0 2px rgba(27, 127, 122, 0.35);
}

.layout-item--pin {
  border-radius: 50%;
}

.layout-item--rect {
  border-radius: 10px;
}

.layout-item--circle {
  border-radius: 50%;
}

.layout-item--seat {
  border-radius: 50%;
  font-size: 11px;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.layout-item--table {
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.layout-item--booth {
  border-radius: 10px;
  border: 2px dashed rgba(255, 255, 255, 0.6);
}

.layout-item--label {
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 500;
}

.layout-item--zone {
  background: rgba(27, 127, 122, 0.15);
  border: 2px dashed rgba(27, 127, 122, 0.8);
  color: #1b7f7a;
  font-weight: 600;
}

.layout-item__handle {
  position: absolute;
  width: 10px;
  height: 10px;
  right: 2px;
  bottom: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.2);
  cursor: se-resize;
}

.layout-item:not(.is-selected) .layout-item__handle {
  display: none;
}

.layout-editor__inspector {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  background: var(--panel);
  display: grid;
  gap: 12px;
}

.layout-inspector__empty {
  color: var(--muted);
  font-size: 14px;
}

.layout-inspector__meta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.layout-inspector__label {
  font-size: 16px;
  font-weight: 600;
}

.layout-inspector__details {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.layout-inspector__detail {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.layout-viewer {
  display: grid;
  gap: 12px;
}

.layout-viewer__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}

.layout-viewer__meta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.layout-canvas--viewer {
  min-height: 200px;
}

.event-modal__layout {
  margin-top: 16px;
}

.layout-viewer .layout-item {
  cursor: pointer;
}

.self-service__grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(320px, 2fr) minmax(260px, 1fr);
  align-items: start;
}

.self-service__column {
  display: grid;
  gap: 16px;
}

.self-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  background: #fff8ed;
  display: grid;
  gap: 12px;
}

.self-card .panel__subtitle {
  margin-bottom: 4px;
}

.self-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.self-card__toggle {
  padding: 6px 12px;
  font-size: 12px;
}

.self-card__body {
  display: grid;
  gap: 12px;
}

@media (max-width: 960px) {
  .self-service__grid {
    grid-template-columns: 1fr;
  }
}

.shift-panel {
  margin-top: 20px;
}

.shift-panel__lists {
  margin-top: 16px;
}

.shift-schedule {
  --columns: 1;
  margin: 12px 0 16px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid #e5eaf3;
  background: #f7f9fc;
  display: grid;
  gap: 10px;
}

.shift-schedule--full {
  grid-column: 1 / -1;
}

.shift-schedule__axis {
  display: grid;
  grid-template-columns: repeat(var(--columns), minmax(64px, 1fr));
  gap: 0;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.shift-schedule__axis-item {
  text-align: center;
  padding: 4px 2px;
  border-left: 1px solid #e0e6f0;
}

.shift-schedule__axis-item:first-child {
  border-left: none;
}

.shift-schedule__rows {
  display: grid;
  gap: 10px;
}

.shift-schedule__day {
  display: grid;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #e5eaf3;
}

.shift-schedule__day:first-child {
  padding-top: 0;
  border-top: none;
}

.shift-schedule__day-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.shift-schedule__row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  align-items: center;
}

.shift-schedule__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.shift-schedule__track {
  position: relative;
  height: 32px;
  border-radius: 12px;
  border: 1px solid #e0e6f0;
  background: linear-gradient(to right, rgba(24, 36, 52, 0.08) 1px, transparent 1px);
  background-size: calc(100% / var(--columns)) 100%;
  overflow: hidden;
}

.shift-schedule__bar {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: var(--left);
  width: var(--width);
  background: linear-gradient(90deg, #4b9cd3 0%, #2b6cb0 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shift-schedule__empty {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  padding: 12px 0;
}

.shift-roster {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  display: grid;
  gap: 12px;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.list__item {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  display: grid;
  gap: 8px;
  background: #fffaf0;
}

.list__item[data-calendar-event-id] {
  cursor: pointer;
}

.list__title {
  font-weight: 600;
  margin: 0;
}

.list__title--with-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.online-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #28a745;
  box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.18);
  flex: 0 0 auto;
}

.list__meta {
  font-size: 12px;
  color: var(--muted);
}

.list__actions {
  display: flex;
  gap: 8px;
}

.list__edit {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.list__inputs {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 8px;
}

.badge {
  margin-top: 16px;
  display: grid;
  gap: 12px;
  align-items: center;
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 16px;
}

.badge__qr {
  width: 140px;
  height: 140px;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
}

.badge__meta {
  display: grid;
  gap: 6px;
}

.badge__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.badge__code {
  font-size: 18px;
  font-weight: 700;
}

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

.calendar__layout {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  align-items: start;
}

.calendar {
  background: #fdfbf5;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.calendar__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.calendar__filters {
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.calendar__search {
  flex: 1 1 220px;
  max-width: 320px;
}

.calendar__title {
  font-weight: 700;
}

.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.calendar__cell {
  border: 1px solid var(--border);
  border-radius: 10px;
  min-height: 68px;
  padding: 8px;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: inherit;
}

.calendar__cell--head {
  border: none;
  background: transparent;
  min-height: auto;
  padding: 0 0 4px;
  text-align: center;
  font-weight: 700;
  font-size: 12px;
  color: var(--muted);
  cursor: default;
}

.calendar__cell--empty {
  border: none;
  background: transparent;
  cursor: default;
  min-height: 0;
}

.calendar__cell--today {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.calendar__cell--selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.calendar__day {
  font-weight: 600;
  font-size: 13px;
}

.calendar__events {
  margin-top: 6px;
  display: grid;
  gap: 4px;
}

.calendar__event {
  font-size: 11px;
  font-weight: 600;
  color: #1d3f7a;
  background: #dbe9ff;
  border-radius: 8px;
  padding: 2px 6px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar__event--task-open {
  color: #7a1f1f;
  background: #ffd7d7;
}

.calendar__event--task-full {
  color: #1e6a3a;
  background: #d9f2e1;
}

.calendar__more {
  font-size: 11px;
  color: var(--muted);
}

.calendar__panel {
  display: grid;
  gap: 16px;
}

.calendar__panel-section {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.calendar__panel-title {
  font-weight: 700;
  margin-bottom: 8px;
}

.calendar__selected {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--highlight);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 600;
}

#email-template-placeholders {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 30;
}

.modal.is-open {
  display: flex;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 42, 74, 0.45);
}

.modal__content {
  position: relative;
  width: min(92vw, 560px);
  max-height: 85vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 22px 24px;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.modal__title {
  margin: 0;
  font-size: 20px;
}

.modal__close {
  border: 1px solid var(--border);
  background: #f3f4f7;
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
  cursor: pointer;
}

.modal__meta {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
}

.modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.modal__description {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

.dashboard__hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.dashboard__hero-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
  text-align: right;
}

.dashboard__date {
  font-size: 12px;
  font-weight: 600;
  color: #5b6774;
  background: #eef2f7;
  padding: 6px 12px;
  border-radius: 999px;
}

.dashboard__eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  color: #7b8794;
}

.dashboard__title {
  margin: 6px 0 0;
  font-size: 26px;
}

.dashboard__grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 16px;
}

.dashboard__card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e0e6f0;
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.08);
  padding: 18px 20px;
}

.dashboard__card--accent {
  background: #1f2a36;
  color: #f5f8fb;
  border-color: #1f2a36;
}

.dashboard__card--accent .dashboard__card-title {
  color: #ffffff;
}

.dashboard__card--wide {
  grid-column: 1 / -1;
}

.dashboard__card-title {
  margin: 0 0 12px;
  font-size: 16px;
}

.dashboard__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.dashboard__item {
  background: #f8fafc;
  border-radius: 14px;
  border: 1px solid #e5eaf3;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
}

.dashboard__card--accent .dashboard__item {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

.dashboard__item--empty {
  text-align: center;
  color: var(--muted);
  background: #ffffff;
}

.dashboard__card--accent .dashboard__item--empty {
  background: rgba(255, 255, 255, 0.14);
  color: #d5dde7;
}

.dashboard__item-title {
  font-weight: 600;
}

.dashboard__card--accent .dashboard__item-title {
  color: #ffffff;
}

.dashboard__item-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.dashboard__card--accent .dashboard__item-meta {
  color: #d5dde7;
}

.dashboard__item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dashboard__pill {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e3e8f0;
  color: #2a3b4c;
}

.dashboard__card--accent .dashboard__pill {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.dashboard__pill--event {
  background: #dbe9ff;
  color: #1d3f7a;
}

.dashboard__pill--task {
  background: #d9f2e1;
  color: #1e6a3a;
}

.dashboard__pill--private {
  background: #ffe9c2;
  color: #9a5b00;
}

.trend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
  gap: 12px;
  align-items: end;
  min-height: 180px;
  padding: 12px;
  background: #f7f9fc;
  border-radius: 16px;
  border: 1px solid #e5eaf3;
}

.trend__group {
  display: grid;
  gap: 6px;
  align-items: end;
}

.trend__stack {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 120px;
}

.trend__bar {
  flex: 1;
  border-radius: 8px 8px 6px 6px;
  height: calc(var(--value) * 1%);
  min-height: 0;
}

.trend__bar--event {
  background: linear-gradient(180deg, #7fb3ff 0%, #2b6cb0 100%);
}

.trend__bar--task {
  background: linear-gradient(180deg, #9be7c4 0%, #2b7a4b 100%);
}

.trend__value {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
}

.trend__label {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

.trend__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted);
}

.trend__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trend__legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}

.trend__legend-swatch--event {
  background: #3b82f6;
}

.trend__legend-swatch--task {
  background: #2b7a4b;
}

.trend__empty {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  padding: 30px 10px;
}

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

.metrics--compact {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.metric {
  background: #f8fafc;
  border-radius: 18px;
  border: 1px solid #e5eaf3;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.metric__icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #1f2a36;
  background: #e3e8f0;
}

.metric__body {
  display: grid;
  gap: 6px;
}

.metric__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #65758b;
}

.metric__value {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
}

.metric__value--split {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.metric__value-sub {
  font-size: 12px;
  font-weight: 600;
  color: #16a34a;
  text-transform: none;
}

.metric[data-tone="accent"] .metric__icon {
  background: #d8eee9;
  color: #0f5d4c;
}

.metric[data-tone="blue"] .metric__icon {
  background: #dbe9ff;
  color: #1d3f7a;
}

.metric[data-tone="amber"] .metric__icon {
  background: #ffe9c2;
  color: #9a5b00;
}

.metric[data-tone="teal"] .metric__icon {
  background: #cfeff1;
  color: #0b7285;
}

.metric[data-tone="purple"] .metric__icon {
  background: #eadcff;
  color: #5b2c83;
}

.metric[data-tone="slate"] .metric__icon {
  background: #e2e8f0;
  color: #334155;
}

.metric[data-tone="green"] .metric__icon {
  background: #d9f2e1;
  color: #1e6a3a;
}

.metric[data-tone="navy"] .metric__icon {
  background: #dbe4ff;
  color: #1f2a6b;
}

.metric[data-tone="orange"] .metric__icon {
  background: #ffe0cc;
  color: #a24600;
}

.metric[data-tone="rose"] .metric__icon {
  background: #ffd5e1;
  color: #a61c4c;
}

.scanner {
  margin: 12px 0 16px;
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: #f9fafc;
}

.scanner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.scanner__view {
  width: min(360px, 100%);
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: #0d1b2a;
}

.scanner__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.qr {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}

.qr__code {
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f3f4f7;
}

.qr__url {
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
}

.qr-manager__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.qr-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  display: grid;
  gap: 10px;
  box-shadow: var(--shadow);
}

.qr-card__code {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  background: #f3f4f7;
  display: grid;
  place-items: center;
  margin: 0 auto;
}

.qr-card__title {
  font-weight: 600;
}

.qr-card__meta {
  font-size: 12px;
  color: var(--muted);
}

.qr-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 600;
}

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

.is-hidden {
  display: none;
}

@media (max-width: 720px) {
  .dashboard {
    grid-template-columns: 1fr;
  }

  .volunteer__list-scroll {
    max-height: none;
    padding-right: 0;
  }

  .volunteer__form-column {
    position: static;
  }

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

  .dashboard__hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard__hero-meta {
    justify-items: start;
    text-align: left;
  }

  .sidebar {
    position: relative;
    height: auto;
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .sidebar__nav {
    display: none;
  }

  .sidebar__mobile {
    display: block;
  }

  .sidebar__mobile-actions {
    display: inline-flex;
  }

  .sidebar.is-open .sidebar__nav {
    display: grid;
    grid-template-columns: 1fr;
    flex: initial;
    overflow: visible;
    margin-top: 12px;
  }

  .sidebar__logout {
    margin-top: 16px;
    width: 100%;
    display: none;
  }

  .sidebar.is-open .sidebar__logout {
    display: block;
  }

  .content {
    padding: 0 16px 60px;
  }

  .topbar {
    display: none;
  }

  .app__title {
    font-size: 26px;
  }

  .badge {
    justify-items: center;
    text-align: center;
  }

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

  .calendar__cell {
    min-height: 56px;
  }

  .shift-schedule__row {
    grid-template-columns: 90px 1fr;
  }

  .shift-schedule__axis {
    grid-template-columns: repeat(var(--columns), minmax(48px, 1fr));
    font-size: 10px;
  }

  .shift-schedule__bar {
    font-size: 10px;
  }

  .auth__panel--wide {
    grid-column: 1 / -1;
  }
}
