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

:root {
  --ink: #171613;
  --muted: #6e6a61;
  --faint: #918b80;
  --line: #ded9cf;
  --line-strong: #c9c2b6;
  --paper: #fffdf8;
  --wash: #f5f5ef;
  --panel: #fbfaf4;
  --charcoal: #24211c;
  --moss: #0b5f78;
  --moss-strong: #08475a;
  --cobalt: #2856a3;
  --rose: #933542;
  --amber: #b97b19;
  --mint: #d7eef4;
  --blue-wash: #dce7fa;
  --rose-wash: #f3dcdf;
  --amber-wash: #f5e4c6;
  --shadow: 0 18px 60px rgba(28, 23, 16, 0.12);
  --sidebar-width: 284px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    linear-gradient(rgba(23, 22, 19, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 22, 19, 0.035) 1px, transparent 1px),
    var(--wash);
  background-size: 34px 34px, 34px 34px, auto;
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  font-weight: 400;
  line-height: 1.42;
  letter-spacing: 0;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

button:disabled,
input:disabled {
  cursor: not-allowed;
}

.sprite {
  display: none;
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
  max-width: 100vw;
  overflow-x: hidden;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px 16px;
  border-right: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(18px);
}

.brand-block {
  padding: 6px 8px 17px;
  border-bottom: 1px solid var(--line);
}

.brand-logo {
  display: block;
  height: auto;
  object-fit: contain;
}

.brand-logo-dashboard {
  width: min(232px, 100%);
}

.mobile-menu-button {
  position: fixed;
  top: 26px;
  right: 16px;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--charcoal);
  border-radius: 8px;
  background: var(--charcoal);
  color: var(--paper);
  box-shadow: 0 8px 20px rgba(28, 23, 16, 0.08);
}

@media (min-width: 861px) {
  .mobile-menu-button {
    display: none;
  }
}

.nav-stack {
  display: grid;
  gap: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 500;
  text-align: left;
}

.nav-item:hover {
  color: var(--ink);
  background: rgba(36, 33, 28, 0.045);
}

.nav-item.is-active {
  color: var(--paper);
  background: var(--charcoal);
  border-color: var(--charcoal);
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(28, 23, 16, 0.16);
}

.sidebar-card {
  margin-top: auto;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(47, 102, 89, 0.08), transparent 52%),
    var(--panel);
}

.mini-label,
.eyebrow,
.field-label,
.table-label {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: none;
}

.link-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  margin-top: 8px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 500;
}

.workspace {
  min-width: 0;
  max-width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(170px, 260px) minmax(220px, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 26px;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 245, 239, 0.9);
  backdrop-filter: blur(18px);
}

.title-zone {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 4px;
}

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

h1,
h2,
h3 {
  font-family: "Poppins", "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 600;
}

h1 {
  margin-bottom: 0;
  font-size: 1.72rem;
  line-height: 1.1;
}

h2 {
  margin-bottom: 0;
  font-size: 1.32rem;
}

h3 {
  margin-bottom: 4px;
  font-size: 1.08rem;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.86);
  color: var(--muted);
}

.search-box:focus-within {
  border-color: var(--charcoal);
  box-shadow: 0 0 0 3px rgba(36, 33, 28, 0.08);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.primary-button,
.ghost-button,
.icon-button,
.danger-button,
.quiet-button,
.segment-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border-radius: 8px;
  font-weight: 600;
  white-space: nowrap;
  min-width: 0;
  text-decoration: none;
}

.primary-button span,
.ghost-button span,
.danger-button span,
.quiet-button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.primary-button {
  padding: 0 14px;
  border: 1px solid var(--moss-strong);
  background: var(--moss);
  color: white;
  box-shadow: 0 10px 22px rgba(47, 102, 89, 0.22);
}

.primary-button:hover {
  background: var(--moss-strong);
}

.ghost-button,
.quiet-button,
.segment-button {
  padding: 0 12px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.82);
  color: var(--ink);
}

.ghost-button:hover,
.quiet-button:hover,
.segment-button:hover {
  border-color: var(--line-strong);
  background: var(--paper);
}

.danger-button {
  padding: 0 12px;
  border: 1px solid rgba(147, 53, 66, 0.38);
  background: var(--rose-wash);
  color: var(--rose);
}

.icon-button {
  width: 38px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.profile-pill {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}

.avatar,
.member-avatar {
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--charcoal);
  color: white;
  font-size: 0.76rem;
  font-weight: 600;
}

.avatar {
  width: 30px;
  height: 30px;
}

.content {
  padding: 26px;
}

.public-route .app-shell {
  display: block;
  min-height: 100vh;
}

.public-route .sidebar,
.public-route .topbar,
.public-route .mobile-menu-button {
  display: none;
}

.public-route .workspace {
  max-width: none;
}

.public-route .content {
  padding: 0;
}

.public-page {
  min-height: 100vh;
  padding: 24px clamp(18px, 4vw, 48px) 48px;
}

.public-page-header,
.public-hero,
.public-booking-layout {
  width: min(1120px, 100%);
  margin-inline: auto;
}

.public-page-header {
  display: flex;
  align-items: center;
  min-height: 70px;
  margin-bottom: 28px;
}

.public-page-logo {
  display: block;
  width: min(290px, 80vw);
  height: auto;
}

.public-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 22px;
  align-items: end;
  margin-bottom: 22px;
}

.public-hero-copy h1 {
  margin: 0 0 14px;
  font-size: 4rem;
  line-height: 0.98;
}

.public-hero-copy p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.public-hero-note,
.public-info-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: 0 8px 26px rgba(28, 23, 16, 0.055);
}

.public-hero-note {
  padding: 16px;
}

.public-hero-note strong {
  display: block;
  margin: 8px 0 5px;
  font-family: "Poppins", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1.22rem;
  font-weight: 600;
}

.public-hero-note p {
  margin: 0;
  color: var(--muted);
}

.public-booking-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.75fr) minmax(360px, 1fr);
  gap: 22px;
  align-items: start;
}

.public-info-panel {
  padding: 18px;
}

.public-info-panel h2 {
  margin-bottom: 14px;
}

.public-info-list {
  display: grid;
  gap: 12px;
}

.public-info-list span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-weight: 500;
}

.public-booking-column {
  min-width: 0;
}

.single-event-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 58px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.single-event-summary strong {
  display: block;
  font-weight: 600;
}

.single-event-summary small {
  color: var(--muted);
  font-weight: 500;
}

.public-confirmation .ghost-button {
  width: 100%;
}

.confirmation-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.confirmation-copy {
  margin-bottom: 16px;
  color: var(--muted);
}

.public-page-centered {
  display: grid;
  place-items: center;
}

.public-not-found {
  display: grid;
  justify-items: start;
  gap: 14px;
  width: min(520px, 100%);
}

.view-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.9fr);
  gap: 22px;
  align-items: start;
}

.section-stack {
  display: grid;
  gap: 18px;
}

.panel,
.event-card,
.booking-card,
.workflow-card,
.person-card,
.settings-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 8px 26px rgba(28, 23, 16, 0.055);
}

.panel {
  padding: 18px;
}

.panel-header,
.card-header,
.booking-header,
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.panel-header p,
.card-header p,
.booking-header p,
.modal-header p {
  margin: 4px 0 0;
  color: var(--muted);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.stat-card strong {
  display: block;
  margin-top: 14px;
  font-family: "Poppins", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
}

.stat-card span:last-child {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-weight: 500;
}

.accent-moss {
  border-top: 4px solid var(--moss);
}

.accent-cobalt {
  border-top: 4px solid var(--cobalt);
}

.accent-rose {
  border-top: 4px solid var(--rose);
}

.accent-amber {
  border-top: 4px solid var(--amber);
}

.event-list,
.booking-list,
.workflow-list,
.people-grid,
.settings-grid {
  display: grid;
  gap: 12px;
}

.event-card,
.booking-card,
.workflow-card,
.person-card,
.settings-panel {
  padding: 16px;
}

.event-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
}

.event-main {
  min-width: 0;
}

.event-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.event-color {
  width: 11px;
  height: 40px;
  border-radius: 999px;
  background: var(--moss);
  flex: 0 0 11px;
}

.event-title-row h3,
.booking-card h3 {
  overflow-wrap: anywhere;
}

.meta-row,
.card-actions,
.chip-row,
.booking-meta,
.workflow-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.meta-row {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.meta-chip,
.status-chip,
.route-chip,
.slot-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.status-chip.active,
.route-chip {
  border-color: rgba(47, 102, 89, 0.24);
  background: var(--mint);
  color: var(--moss-strong);
}

.status-chip.paused {
  border-color: rgba(147, 53, 66, 0.18);
  background: var(--rose-wash);
  color: var(--rose);
}

.card-actions {
  justify-content: flex-end;
}

.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 46px;
  height: 26px;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch span {
  width: 100%;
  height: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #ebe7dc;
  transition: background 160ms ease, border-color 160ms ease;
}

.switch span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
  transition: transform 160ms ease;
}

.switch input:checked + span {
  border-color: var(--moss);
  background: var(--moss);
}

.switch input:checked + span::after {
  transform: translateX(20px);
}

.booking-widget {
  position: sticky;
  top: 96px;
}

.public-card {
  overflow: hidden;
  padding: 0;
}

.public-card-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 18px;
  color: var(--paper);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 45%),
    var(--charcoal);
}

.public-badge {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.public-card-top h2 {
  margin-bottom: 2px;
}

.public-card-top p {
  margin: 0;
  color: rgba(255, 253, 248, 0.74);
}

.booking-flow {
  padding: 16px;
}

.event-select-grid {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.event-select {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 54px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  text-align: left;
}

.event-select strong {
  display: block;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.event-select small {
  color: var(--muted);
  font-weight: 500;
}

.event-select.is-selected {
  border-color: var(--charcoal);
  box-shadow: inset 4px 0 0 var(--moss);
}

.date-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
  margin: 12px 0 14px;
}

.date-button {
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: 58px;
  padding: 6px 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}

.date-button small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: none;
}

.date-button strong {
  font-size: 1.12rem;
  font-weight: 600;
}

.date-button.is-selected {
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: white;
}

.date-button.is-selected small {
  color: rgba(255, 255, 255, 0.72);
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.slot-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
}

.slot-button.is-selected {
  border-color: var(--moss-strong);
  background: var(--mint);
  color: var(--moss-strong);
}

.slot-button:disabled {
  color: var(--faint);
  background: #eeeae1;
  text-decoration: line-through;
}

.booking-form {
  display: grid;
  gap: 10px;
}

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

.field {
  display: grid;
  gap: 7px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.toggle-row strong {
  display: block;
  margin-top: 2px;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  outline: 0;
}

.field input,
.field select {
  height: 42px;
  padding: 0 11px;
}

.field textarea {
  min-height: 86px;
  resize: vertical;
  padding: 10px 11px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--charcoal);
  box-shadow: 0 0 0 3px rgba(36, 33, 28, 0.08);
}

.schedule-board {
  display: grid;
  gap: 10px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.timeline-time {
  color: var(--muted);
  font-weight: 600;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.58);
  text-align: center;
}

.empty-state strong {
  display: block;
  margin-bottom: 4px;
  font-family: "Poppins", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
}

.empty-state p {
  max-width: 380px;
  margin: 0;
  color: var(--muted);
}

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

.segments {
  display: inline-flex;
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
}

.segment-button {
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
}

.segment-button.is-active {
  background: var(--charcoal);
  color: var(--paper);
}

.booking-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.booking-card.cancelled {
  opacity: 0.72;
}

.booking-person {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.booking-person .member-avatar {
  width: 34px;
  height: 34px;
}

.booking-meta {
  margin-top: 10px;
  color: var(--muted);
  font-weight: 500;
}

.availability-table {
  display: grid;
  gap: 9px;
}

.availability-row {
  display: grid;
  grid-template-columns: 120px 70px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.time-range {
  display: grid;
  grid-template-columns: minmax(96px, 1fr) minmax(96px, 1fr);
  gap: 8px;
}

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

.person-card {
  display: grid;
  gap: 14px;
}

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

.member-avatar {
  width: 42px;
  height: 42px;
  background: var(--moss);
}

.member-avatar.cobalt {
  background: var(--cobalt);
}

.member-avatar.rose {
  background: var(--rose);
}

.capacity-bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8e3d8;
}

.capacity-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--moss);
}

.workflow-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.workflow-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--blue-wash);
  color: var(--cobalt);
}

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

.settings-panel {
  display: grid;
  gap: 13px;
}

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

.swatch {
  width: 34px;
  height: 34px;
  border: 2px solid var(--paper);
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--line);
}

.swatch.is-active {
  box-shadow: 0 0 0 3px var(--charcoal);
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(23, 22, 19, 0.45);
}

.modal-layer[hidden] {
  display: none;
}

.modal {
  width: min(650px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.modal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

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

.color-radio {
  position: relative;
}

.color-radio input {
  position: absolute;
  opacity: 0;
}

.color-radio span {
  display: block;
  width: 32px;
  height: 32px;
  border: 2px solid var(--paper);
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--line);
}

.color-radio input:checked + span {
  box-shadow: 0 0 0 3px var(--charcoal);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  transform: translateY(18px);
  max-width: min(360px, calc(100vw - 40px));
  padding: 12px 14px;
  border: 1px solid rgba(47, 102, 89, 0.24);
  border-radius: 8px;
  background: var(--charcoal);
  color: var(--paper);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1120px) {
  .view-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .booking-widget {
    position: static;
  }

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

  .public-booking-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    gap: 0;
    padding: 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    min-width: 0;
    max-width: 100vw;
    overflow: hidden;
  }

  .brand-block {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    max-width: none;
    min-height: 68px;
    padding: 4px 56px 4px 0;
    border-bottom: 0;
  }

  .brand-logo-dashboard {
    width: min(256px, 100%);
  }

  .mobile-menu-button {
    position: fixed;
    top: 26px;
    right: 16px;
    z-index: 8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--charcoal);
    color: var(--paper);
    box-shadow: 0 8px 20px rgba(28, 23, 16, 0.08);
  }

  .mobile-menu-button:hover,
  .sidebar.is-menu-open .mobile-menu-button {
    border-color: var(--charcoal);
    background: var(--moss);
    color: var(--paper);
  }

  .nav-stack {
    display: none;
    gap: 6px;
    width: 100%;
    margin-top: 12px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.96);
    box-shadow: 0 10px 28px rgba(28, 23, 16, 0.08);
  }

  .sidebar.is-menu-open .nav-stack {
    display: grid;
  }

  .nav-item {
    width: 100%;
  }

  .sidebar-card {
    display: none;
  }

  .topbar {
    position: static;
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
    min-width: 0;
    max-width: 100vw;
  }

  .topbar > * {
    min-width: 0;
  }

  .topbar-actions {
    justify-content: flex-start;
  }

  .search-box {
    width: 100%;
  }

  .content {
    padding: 16px;
    min-width: 0;
    max-width: 100vw;
  }

  .public-page {
    padding: 18px 16px 36px;
  }

  .public-page-header {
    min-height: 56px;
    margin-bottom: 20px;
  }

  .public-page-logo {
    width: min(260px, 82vw);
  }

  .public-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .public-hero-copy h1 {
    font-size: 2.55rem;
    line-height: 1.04;
  }

  .availability-row {
    grid-template-columns: 1fr auto;
  }

  .availability-row .time-range,
  .availability-row .quiet-button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .stat-grid,
  .field-grid,
  .people-grid,
  .settings-grid,
  .slot-grid {
    grid-template-columns: 1fr;
  }

  .date-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  .date-button {
    min-height: 52px;
  }

  .link-chip span {
    overflow-wrap: anywhere;
  }

  .event-card,
  .booking-card,
  .workflow-card,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .card-actions,
  .booking-card .card-actions {
    justify-content: flex-start;
  }

  .topbar-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .topbar-actions .ghost-button,
  .topbar-actions .primary-button {
    padding-inline: 10px;
  }

  .profile-pill {
    display: none;
  }

  .ghost-button,
  .primary-button {
    width: 100%;
  }
}
