:root {
  --bg: #08131a;
  --panel: rgba(8, 21, 28, 0.82);
  --panel-strong: rgba(9, 18, 24, 0.96);
  --ink: #e8f1ed;
  --muted: #9db1b0;
  --line: rgba(147, 184, 175, 0.18);
  --gold: #ffbf47;
  --teal: #3fd0c9;
  --danger: #ff6f61;
  --success: #74d680;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(4, 10, 12, 0.95), rgba(7, 22, 31, 0.9)),
    radial-gradient(circle at top, rgba(255, 191, 71, 0.15), transparent 35%);
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  position: relative;
}

.bg-grid,
.bg-radial {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.bg-grid {
  background-image:
    linear-gradient(rgba(157, 177, 176, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(157, 177, 176, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
}

.bg-radial {
  background:
    radial-gradient(circle at 20% 10%, rgba(63, 208, 201, 0.16), transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(255, 191, 71, 0.18), transparent 24%);
}

.topbar,
.shell,
.admin-shell,
.login-shell {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px 12px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 191, 71, 0.95), rgba(194, 109, 33, 0.95));
  color: #14110d;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow);
}

.eyebrow,
.signal-label,
.meta-label {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3, p {
  margin: 0;
}

.admin-link,
.calendar-nav,
.filter-pill {
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  padding: 10px 16px;
  transition: 160ms ease;
}

.admin-link:hover,
.calendar-nav:hover,
.filter-pill:hover,
.filter-pill.active {
  border-color: rgba(255, 191, 71, 0.5);
  background: rgba(255, 191, 71, 0.12);
}

.shell,
.admin-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 32px 48px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 24px;
  margin-top: 20px;
}

.hero-copy,
.signal-panel,
.calendar-section,
.metric-card,
.request-card,
.login-card {
  background: var(--panel);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-copy {
  border-radius: 28px;
  padding: 24px;
}

.terminal-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(63, 208, 201, 0.22);
  margin-bottom: 22px;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--line);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--danger);
}

.terminal-bar span:nth-child(2) {
  background: var(--gold);
}

.terminal-bar span:nth-child(3) {
  background: var(--success);
}

.typed-briefing {
  margin: 0;
  min-height: 210px;
  padding: 22px;
  color: #91ffba;
  background: linear-gradient(180deg, rgba(2, 12, 9, 0.92), rgba(6, 27, 21, 0.92));
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.97rem;
  white-space: pre-wrap;
}

.hero-text {
  display: grid;
  gap: 16px;
  color: var(--muted);
  line-height: 1.6;
}

.primary-btn,
.secondary-btn,
.danger-btn {
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  font: inherit;
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease;
}

.primary-btn:hover,
.secondary-btn:hover,
.danger-btn:hover {
  transform: translateY(-1px);
}

.primary-btn {
  background: linear-gradient(135deg, var(--gold), #d98d2b);
  color: #14110d;
  font-weight: 700;
}

.secondary-btn {
  background: rgba(63, 208, 201, 0.16);
  color: var(--ink);
  border: 1px solid rgba(63, 208, 201, 0.3);
}

.danger-btn {
  background: rgba(255, 111, 97, 0.16);
  color: var(--ink);
  border: 1px solid rgba(255, 111, 97, 0.3);
}

.small {
  padding: 10px 14px;
  border-radius: 12px;
}

.signal-panel {
  display: grid;
  gap: 18px;
  align-content: start;
  border-radius: 28px;
  padding: 24px;
}

.signal-card {
  border-radius: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.signal-card.alt {
  background: linear-gradient(180deg, rgba(63, 208, 201, 0.1), rgba(255, 191, 71, 0.06));
}

#editableSiteContent {
  display: grid;
  gap: 24px;
}

.editor-cta-row {
  margin-top: 24px;
}

.editor-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.editor-cta-card p {
  color: var(--muted);
  margin-top: 8px;
}

.site-editor-shell {
  max-width: 1440px;
}

.site-editor-intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.site-editor-intro .metric-card {
  padding: 22px;
  border-radius: 24px;
}

.site-editor-intro .metric-card p {
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.6;
}

.site-editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  padding: 18px 20px;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.site-editor-status-wrap {
  min-width: 220px;
}

.site-editor-status {
  margin-top: 6px;
  color: var(--ink);
}

.site-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.site-editor-sidebar {
  display: grid;
  gap: 18px;
}

.theme-editor-group {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.theme-editor-help {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.theme-variable-grid {
  display: grid;
  gap: 12px;
}

.theme-variable-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(6, 19, 25, 0.5);
}

.theme-variable-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 500;
}

.theme-variable-label code {
  font-family: "IBM Plex Mono", monospace;
  color: var(--gold);
}

.theme-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-color-input {
  width: 54px;
  min-width: 54px;
  height: 42px;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.theme-alpha-input {
  flex: 1;
}

.theme-alpha-value {
  min-width: 48px;
  text-align: right;
  font-family: "IBM Plex Mono", monospace;
  color: var(--muted);
}

.theme-value-input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  padding: 10px 12px;
  font: 0.9rem/1.4 "IBM Plex Mono", monospace;
}

.theme-code-block {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(6, 19, 25, 0.86);
  color: #91ffba;
  font: 0.86rem/1.55 "IBM Plex Mono", monospace;
}

.site-custom-css-input {
  width: 100%;
  min-height: 260px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(6, 19, 25, 0.86);
  color: var(--ink);
  padding: 14px 16px;
  font: 0.92rem/1.5 "IBM Plex Mono", monospace;
  resize: vertical;
}

.site-editor-canvas-wrap {
  min-width: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

#siteEditorCanvas {
  min-height: 720px;
}

.site-editor-body .gjs-one-bg {
  background-color: #0d1b22;
}

.site-editor-body .gjs-two-color {
  color: #dfeeee;
}

.site-editor-body .gjs-three-bg {
  background-color: #102630;
}

.site-editor-body .gjs-four-color,
.site-editor-body .gjs-color-main {
  color: #ffbf47;
}

.site-editor-body .gjs-pn-btn.gjs-pn-active,
.site-editor-body .gjs-block:hover {
  color: #08131a;
  background: #ffbf47;
}

.site-editor-body .gjs-block {
  min-height: auto;
  border-radius: 14px;
  padding: 12px;
}

.signal-card p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.calendar-section {
  margin-top: 26px;
  border-radius: 28px;
  padding: 24px;
}

.section-heading,
.calendar-toolbar,
.request-head,
.request-actions,
.metrics-row,
.filters,
.topbar-actions,
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.legend {
  display: flex;
  gap: 16px;
  color: var(--muted);
  flex-wrap: wrap;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}

.dot-open { background: rgba(116, 214, 128, 0.9); }
.dot-blocked { background: rgba(255, 111, 97, 0.9); }
.dot-selected { background: rgba(255, 191, 71, 0.9); }

.calendar-toolbar {
  margin: 22px 0 16px;
}

.calendar-summary-note {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  gap: 10px 12px;
  margin: 18px 0;
  color: var(--muted);
  align-items: center;
}

.summary-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-pill.pending {
  background: rgba(255, 191, 71, 0.18);
  color: #ffe2aa;
  border: 1px solid rgba(255, 191, 71, 0.34);
}

.summary-pill.approved {
  background: rgba(255, 111, 97, 0.22);
  color: #ffe2dd;
  border: 1px solid rgba(255, 111, 97, 0.34);
}

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

.calendar-scroll {
  width: 100%;
}

.calendar-weekday,
.calendar-day {
  border-radius: 18px;
  border: 1px solid var(--line);
}

.calendar-weekday {
  padding: 12px 10px;
  text-align: center;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calendar-day {
  min-height: 108px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.025);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.calendar-day:hover {
  transform: translateY(-1px);
}

.calendar-day:disabled {
  cursor: not-allowed;
  transform: none;
}

.calendar-day.muted {
  opacity: 0.35;
}

.calendar-day.available {
  background: linear-gradient(180deg, rgba(116, 214, 128, 0.12), rgba(116, 214, 128, 0.04));
  border-color: rgba(116, 214, 128, 0.24);
}

.calendar-day.blocked {
  background: linear-gradient(180deg, rgba(255, 111, 97, 0.22), rgba(255, 111, 97, 0.08));
  border-color: rgba(255, 111, 97, 0.28);
}

.calendar-day.selected {
  background: linear-gradient(180deg, rgba(255, 191, 71, 0.24), rgba(255, 191, 71, 0.08));
  border-color: rgba(255, 191, 71, 0.4);
}

.calendar-day.past {
  background: linear-gradient(180deg, rgba(123, 136, 145, 0.12), rgba(123, 136, 145, 0.05));
  border-color: rgba(123, 136, 145, 0.22);
  opacity: 0.68;
}

.calendar-day.today {
  outline: 1px solid rgba(63, 208, 201, 0.7);
}

.calendar-day-num {
  font-weight: 700;
  color: var(--ink);
}

.calendar-day-meta {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.3;
}

.calendar-day-meta.available {
  color: #99e4a4;
}

.calendar-day-meta.locked {
  color: #ffb3ab;
}

.calendar-day-meta.draft {
  color: #ffd47a;
}

.calendar-day-meta.past {
  color: #c3cfd0;
}

.calendar-events {
  display: grid;
  gap: 4px;
}

.calendar-event {
  display: block;
  width: 100%;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.68rem;
  line-height: 1.2;
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.calendar-event.approved {
  background: rgba(255, 111, 97, 0.22);
  color: #ffe2dd;
  border: 1px solid rgba(255, 111, 97, 0.34);
}

.calendar-event.pending {
  background: rgba(255, 191, 71, 0.18);
  color: #ffe2aa;
  border: 1px solid rgba(255, 191, 71, 0.34);
}

.blocked-summary {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 6px;
}

.past-events-section {
  margin-top: 28px;
  padding: 24px;
  border-radius: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.past-events-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
  padding-top: 6px;
  margin-bottom: 16px;
}

.past-event-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 111, 97, 0.2);
  background: linear-gradient(180deg, rgba(255, 111, 97, 0.1), rgba(255, 255, 255, 0.03));
  color: var(--muted);
}

.past-event-card[role="button"] {
  cursor: pointer;
}

.past-event-card[role="button"]:focus-visible {
  outline: 2px solid rgba(232, 197, 107, 0.65);
  outline-offset: 3px;
}

.past-event-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.past-event-toggle strong {
  color: var(--ink);
}

.past-event-chevron {
  color: var(--gold);
  font-size: 1.15rem;
  line-height: 1;
}

.past-event-body {
  display: grid;
  gap: 8px;
}

.past-event-card h3 {
  color: var(--ink);
}

.past-event-card.empty {
  opacity: 0.8;
}

.blocked-chip {
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  display: inline-flex;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.blocked-chip.pending {
  background: rgba(255, 191, 71, 0.12);
  border-color: rgba(255, 191, 71, 0.26);
}

.blocked-chip.approved {
  background: rgba(255, 111, 97, 0.12);
  border-color: rgba(255, 111, 97, 0.26);
}

.blocked-chip.empty {
  opacity: 0.8;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(1, 8, 11, 0.75);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 20;
}

.hidden {
  display: none;
}

.modal-card {
  width: min(920px, 100%);
  max-height: 92vh;
  overflow: auto;
  border-radius: 28px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 24px;
  position: relative;
}

.day-detail-card {
  width: min(640px, 100%);
}

.day-detail-list {
  display: grid;
  gap: 14px;
}

.day-detail-entry {
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 8px;
}

.day-detail-entry.pending {
  background: rgba(255, 191, 71, 0.08);
  border-color: rgba(255, 191, 71, 0.22);
}

.day-detail-entry.approved {
  background: rgba(255, 111, 97, 0.08);
  border-color: rgba(255, 111, 97, 0.22);
}

.day-detail-status {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.day-detail-status.pending {
  background: rgba(255, 191, 71, 0.18);
  color: #ffe2aa;
}

.day-detail-status.approved {
  background: rgba(255, 111, 97, 0.22);
  color: #ffe2dd;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font-size: 1.6rem;
  cursor: pointer;
}

.modal-head p,
.selection-preview,
.form-status,
.request-grid p,
.request-notes p,
.field-help {
  color: var(--muted);
}

.field-help {
  font-size: 0.82rem;
}

.booking-form,
.field-grid,
.request-notes {
  display: grid;
  gap: 16px;
}

.field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 8px;
}

label.section-break {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

label.full {
  grid-column: 1 / -1;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

.selection-preview,
.flash-error,
.metric-card,
.request-card.empty {
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.flash-error {
  color: #ffd4ce;
  background: rgba(255, 111, 97, 0.14);
  border-color: rgba(255, 111, 97, 0.32);
}

.admin-login-body,
.admin-body {
  min-height: 100vh;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(460px, 100%);
  border-radius: 28px;
  padding: 28px;
  display: grid;
  gap: 18px;
}

.admin-link.inline {
  padding: 0;
  border: 0;
  background: transparent;
}

.metrics-row {
  flex-wrap: wrap;
  margin-top: 18px;
}

.metric-card {
  flex: 1 1 220px;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.35rem;
}

.mono {
  font-family: "IBM Plex Mono", monospace;
}

.filters {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin: 22px 0;
}

.requests-list {
  display: grid;
  gap: 16px;
}

.request-card {
  border-radius: 24px;
  padding: 22px;
}

.request-status {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
}

.status-pending {
  background: rgba(255, 191, 71, 0.16);
  color: var(--gold);
}

.status-approved {
  background: rgba(116, 214, 128, 0.16);
  color: var(--success);
}

.status-rejected {
  background: rgba(255, 111, 97, 0.16);
  color: #ffb1a8;
}

.request-status.protected {
  background: rgba(63, 208, 201, 0.16);
  color: var(--teal);
  margin-left: 8px;
}

.calendar-floor-settings {
  margin-bottom: 22px;
}

.calendar-floor-form {
  display: flex;
  align-items: end;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.calendar-floor-form label {
  min-width: 220px;
}

.request-times,
.request-grid,
.request-notes {
  margin-top: 18px;
}

.request-times,
.request-grid {
  color: var(--muted);
}

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

.request-notes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.request-publish {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.7fr);
  gap: 16px;
  margin-top: 18px;
}

.publish-field,
.publish-toggle {
  display: grid;
  gap: 8px;
}

.publish-toggle {
  align-content: end;
}

.publish-toggle input {
  width: auto;
  margin-right: 8px;
}

.publish-toggle span {
  color: var(--muted);
}

.publish-toggle {
  grid-auto-flow: column;
  justify-content: start;
  align-items: center;
}

.action-status {
  color: var(--muted);
}

.request-actions button:disabled,
.calendar-nav:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.blocked-chip em {
  color: var(--ink);
  font-style: normal;
  display: block;
  margin-top: 4px;
}

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

  .field-grid,
  .request-grid,
  .request-notes,
  .request-publish,
  .past-events-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar,
  .shell,
  .admin-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .topbar {
    padding-top: 12px;
    padding-bottom: 8px;
    gap: 10px;
  }

  .shell,
  .admin-shell {
    padding-top: 12px;
    padding-bottom: 18px;
  }

  .topbar,
  .section-heading,
  .request-head,
  .request-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .calendar-scroll {
    overflow-x: visible;
    padding-bottom: 0;
  }

  .calendar-grid {
    min-width: 0;
    gap: 5px;
  }

  .calendar-day {
    min-height: 74px;
    padding: 6px 5px;
    border-radius: 16px;
  }

  .calendar-day-num {
    font-size: 0.88rem;
  }

  .calendar-day-meta {
    font-size: 0.61rem;
  }

  .calendar-day-meta.available {
    display: none;
  }

  .calendar-day-meta.past {
    display: none;
  }

  .calendar-event {
    font-size: 0.52rem;
    padding: 2px 4px;
  }

  .calendar-weekday {
    padding: 8px 2px;
    font-size: 0.64rem;
    letter-spacing: 0.04em;
  }

  .calendar-toolbar h3 {
    font-size: 0.98rem;
    text-align: center;
    flex: 1 1 auto;
  }

  .calendar-toolbar {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 12px;
  }

  .calendar-nav {
    padding: 7px 10px;
    font-size: 0.82rem;
  }

  .blocked-summary {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 12px;
  }

  .blocked-chip {
    padding: 12px 14px;
    border-radius: 18px;
    display: grid;
  gap: 4px;
}

.blocked-chip[role="button"] {
  cursor: pointer;
}

.blocked-chip[role="button"]:focus-visible {
  outline: 2px solid rgba(232, 197, 107, 0.65);
  outline-offset: 3px;
}

  .calendar-floor-form {
    flex-direction: column;
    align-items: stretch;
  }

  .calendar-summary-note {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .modal-card {
    padding: 16px;
    border-radius: 20px;
  }

  .field-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  input,
  textarea,
  select {
    min-height: 48px;
    font-size: 16px;
  }

  textarea {
    min-height: 120px;
  }

  .selection-preview {
    font-size: 0.95rem;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-btn,
  .secondary-btn,
  .danger-btn {
    width: 100%;
  }

  .hero-copy,
  .signal-panel,
  .calendar-section,
  .past-events-section,
  .editor-cta-card,
  .request-card,
  .login-card {
    padding: 16px;
    border-radius: 20px;
  }

  .typed-briefing {
    min-height: 210px;
    padding: 14px;
    font-size: 0.84rem;
  }

  .request-head,
  .request-actions,
  .metrics-row,
  .filters,
  .topbar-actions {
    gap: 8px;
  }

  .request-times {
    width: 100%;
    display: grid;
    gap: 6px;
  }

  .editor-cta-card,
  .site-editor-toolbar,
  .site-editor-stage,
  .site-editor-intro {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .site-editor-toolbar,
  .editor-cta-card {
    gap: 12px;
  }

  .site-editor-actions {
    width: 100%;
  }

  .site-editor-sidebar {
    order: 2;
  }

  .site-editor-canvas-wrap {
    order: 1;
  }

  .theme-variable-label,
  .theme-input-row {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .theme-alpha-value {
    text-align: left;
  }

  .hero,
  .signal-panel,
  .requests-list,
  .past-events-grid {
    gap: 12px;
  }

  .section-heading {
    gap: 8px;
    margin-bottom: 14px;
  }

  .editor-cta-row,
  .past-events-section {
    margin-top: 16px;
  }
}
