:root {
  --canvas: #ffffff;
  --canvas-deep: #f3f7f1;
  --surface: #ffffff;
  --surface-soft: #f7faf5;
  --paper: #ffffff;
  --ink: #223228;
  --muted: rgba(34, 50, 40, 0.72);
  --muted-strong: rgba(34, 50, 40, 0.84);
  --line: rgba(34, 50, 40, 0.12);
  --line-strong: rgba(34, 50, 40, 0.18);
  --accent: #49693f;
  --accent-deep: #304a29;
  --accent-soft: rgba(73, 105, 63, 0.12);
  --accent-softer: rgba(73, 105, 63, 0.06);
  --warm: #e7efe3;
  --danger: #b9342f;
  --shadow: 0 8px 28px rgba(25, 22, 19, 0.05);
  --shadow-strong: 0 18px 44px rgba(25, 22, 19, 0.12);
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 18px;
  --radius-xs: 14px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  height: 100%;
}

body {
  margin: 0;
  height: 100%;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.icon-defs {
  display: none;
}

.mobile-app-redirect {
  align-items: center;
  background: var(--canvas);
  color: var(--ink);
  display: grid;
  gap: 14px;
  min-height: 100%;
  padding: 28px;
  place-content: center;
  text-align: center;
}

.mobile-app-redirect .brand-mark {
  justify-self: center;
}

.mobile-app-redirect h1 {
  color: var(--accent-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1.05;
  margin: 0;
  max-width: 360px;
}

.mobile-app-redirect p:not(.eyebrow) {
  color: var(--muted);
  margin: 0;
  max-width: 320px;
}

.mobile-app-redirect-visible .manager-shell {
  display: none;
}

.manager-shell {
  display: grid;
  grid-template-columns: 304px minmax(0, 1fr);
  height: 100%;
  min-height: 100vh;
  padding: 12px;
}

.sidebar {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px;
  position: sticky;
  top: 12px;
  height: calc(100vh - 24px);
}

.brand {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: flex;
  gap: 12px;
  padding: 12px;
}

.brand-mark {
  align-items: center;
  background: var(--accent-deep);
  border-radius: var(--radius-xs);
  color: #ffffff;
  display: flex;
  height: 48px;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
  width: 48px;
}

.brand-mark img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.brand p,
.eyebrow {
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.brand h1,
.topbar h2,
.auth-panel h2,
.panel h3,
.section-header h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  margin: 0;
}

.brand h1 {
  font-size: 24px;
}

.tool-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: visible;
}

.tool-nav__group {
  display: grid;
  gap: 5px;
}

.tool-nav__group[hidden] {
  display: none;
}

.tool-nav__group-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin: 2px 2px 0;
  text-transform: uppercase;
}

.tool-nav__item {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(73, 105, 63, 0.12);
  border-radius: var(--radius-xs);
  color: var(--muted-strong);
  display: flex;
  font-size: 13px;
  font-weight: 800;
  gap: 10px;
  padding: 8px 10px;
  text-align: left;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  width: 100%;
}

.tool-nav__icon {
  background: var(--accent-softer);
  border: 1px solid rgba(73, 105, 63, 0.1);
  border-radius: 9px;
  color: var(--accent-deep);
  flex: 0 0 auto;
  height: 28px;
  padding: 6px;
  width: 28px;
}

.tool-nav__icon path {
  fill: currentColor;
}

.tool-nav__label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.tool-nav__badge {
  align-items: center;
  background: var(--danger);
  border: 2px solid #ffffff;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 900;
  height: 20px;
  justify-content: center;
  line-height: 1;
  margin-left: auto;
  min-width: 20px;
  padding: 0 5px;
}

.tool-nav__badge[hidden] {
  display: none;
}

.tool-nav__item:hover,
.tool-nav__item:focus-visible,
.tool-nav__item.is-active {
  background: #ffffff;
  border-color: rgba(73, 105, 63, 0.26);
  box-shadow: 0 8px 18px rgba(25, 22, 19, 0.08);
  color: var(--accent-deep);
  transform: translateY(-1px);
}

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

.tool-nav__item.is-active .tool-nav__icon {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.session-card {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: auto;
  padding: 12px;
}

.sign-out-button {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  height: 42px;
  justify-content: center;
  padding: 0;
  width: 42px;
}

.sign-out-button svg {
  display: block;
  height: 24px;
  width: 24px;
}

.sign-out-button path {
  fill: currentColor;
}

.session-label {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}

.workspace {
  min-width: 0;
  padding: 10px 10px 10px 28px;
}

.topbar {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 22px;
  padding: 18px 20px;
  backdrop-filter: blur(14px);
}

.topbar .eyebrow,
.auth-panel .eyebrow,
.section-header .eyebrow {
  color: var(--accent-deep);
}

.topbar h2,
.auth-panel h2 {
  color: var(--accent-deep);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
}

.status-pill {
  background: rgba(216, 226, 213, 0.34);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 12px 16px;
  text-transform: uppercase;
}

.status-pill[data-state="success"] {
  color: var(--accent-deep);
}

.status-pill[data-state="error"] {
  color: var(--danger);
}

.auth-panel,
.panel,
.metric-card,
.calendar-panel,
.event-list-panel,
.embed-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.auth-panel {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) 360px;
  padding: 28px;
}

.muted,
.panel p {
  color: var(--muted);
  line-height: 1.6;
}

.auth-form,
.embed-form {
  display: grid;
  gap: 14px;
}

label {
  color: var(--accent-deep);
  display: grid;
  font-size: 13px;
  font-weight: 800;
  gap: 7px;
}

input,
select,
textarea {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  color: var(--ink);
  padding: 12px 13px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(73, 105, 63, 0.36);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.primary-button,
.text-button,
.icon-button {
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.primary-button {
  background: var(--accent-deep);
  border: 1px solid var(--accent-deep);
  color: #ffffff;
  padding: 12px 16px;
}

.text-button,
.icon-button {
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--accent-deep);
  padding: 10px 12px;
}

.primary-button:hover,
.text-button:hover,
.icon-button:hover,
.primary-button:focus-visible,
.text-button:focus-visible,
.icon-button:focus-visible {
  box-shadow: 0 8px 18px rgba(25, 22, 19, 0.08);
  transform: translateY(-1px);
}

.form-status {
  color: var(--danger);
  font-weight: 700;
  margin: 0;
}

.content,
.section {
  min-width: 0;
}

.section {
  display: none;
}

.section.is-active {
  display: block;
}

.metric-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.metric-card {
  background: #ffffff;
  padding: 20px;
}

.metric-card span {
  color: var(--muted);
  display: block;
  font-weight: 800;
  margin-bottom: 10px;
}

.metric-card strong {
  color: var(--accent-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 500;
}

.panel {
  padding: 22px;
}

.panel h3,
.section-header h3 {
  color: var(--accent-deep);
  font-size: 1.6rem;
  font-weight: 500;
}

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

.section-header--compact {
  margin-bottom: 14px;
}

.admin-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-grid--notifications {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.admin-grid--billboard {
  grid-template-columns: minmax(0, 1fr) 380px;
}

.admin-grid--overrides {
  align-items: start;
  grid-template-columns: minmax(0, 1fr) 420px;
}

.panel-head {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.status-pill--inline {
  box-shadow: none;
  font-size: 11px;
  padding: 8px 11px;
}

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

.form-grid__wide {
  grid-column: 1 / -1;
}

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

.button-row--top {
  align-items: center;
  margin-top: 0;
}

.toggle-row {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: row;
  gap: 12px;
  padding: 9px 12px;
}

.toggle-row span {
  display: grid;
  gap: 2px;
}

.toggle-row strong {
  color: var(--muted);
  font-size: 12px;
}

.toggle-row input {
  accent-color: var(--accent-deep);
  box-shadow: none;
  height: 18px;
  width: 18px;
}

.segmented-field {
  border: 0;
  margin: 0;
  padding: 0;
}

.segmented-field legend {
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 7px;
}

.segment-row {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  padding: 4px;
}

.segment {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--muted-strong);
  font-weight: 800;
  padding: 10px 18px;
}

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

.notification-preview {
  align-self: stretch;
}

.notification-card-preview {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 16px;
}

.billboard-preview {
  align-self: stretch;
}

.billboard-card-preview {
  background:
    linear-gradient(180deg, rgba(73, 105, 63, 0.08), rgba(255, 255, 255, 0.92)),
    #ffffff;
  border: 1px solid rgba(73, 105, 63, 0.16);
  border-radius: var(--radius-md);
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 20px;
}

.billboard-card-preview.is-hidden {
  opacity: 0.56;
}

.billboard-card-preview span {
  background: rgba(216, 226, 213, 0.44);
  border: 1px solid rgba(73, 105, 63, 0.16);
  border-radius: 999px;
  color: var(--accent);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  justify-self: start;
  letter-spacing: 0.08em;
  padding: 8px 10px;
  text-transform: uppercase;
}

.billboard-card-preview strong {
  color: var(--accent-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.12;
}

.billboard-card-preview p {
  color: var(--muted-strong);
  line-height: 1.55;
  margin: 0;
}

.billboard-card-preview small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.notification-card-preview strong {
  color: var(--accent-deep);
  font-size: 20px;
  line-height: 1.25;
}

.notification-card-preview p {
  margin: 0;
}

.notification-card-preview small {
  color: var(--muted);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.notification-chip,
.chip {
  appearance: none;
  background: rgba(216, 226, 213, 0.34);
  border: 1px solid rgba(73, 105, 63, 0.18);
  border-radius: 999px;
  color: var(--accent);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 9px 11px;
  text-transform: uppercase;
}

.chip.is-active,
.chip[aria-pressed="true"] {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #ffffff;
}

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

.admin-notif-tabs,
.admin-notif-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-notif-controls label {
  min-width: 170px;
}

.admin-notif-list {
  display: grid;
  gap: 12px;
}

.admin-notif-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 15px;
}

.admin-notif-item__top {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.admin-notif-item__status,
.admin-notif-item__meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-notif-item__title {
  color: var(--accent-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 7px;
}

.admin-notif-item__body {
  color: var(--muted-strong);
  line-height: 1.55;
  margin-bottom: 10px;
}

.admin-notif-item__meta a {
  color: var(--accent-deep);
  font-weight: 800;
}

.admin-notif-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 12px;
}

.text-button--compact,
.danger-button--compact {
  min-height: 34px;
  padding: 8px 12px;
}

.order-list,
.edit-items,
.menu-results,
.operations-summary-list,
.day-editor-list,
.season-tab-row {
  display: grid;
  gap: 12px;
}

.order-card,
.operation-summary-card,
.day-editor-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: grid;
  gap: 12px;
  padding: 15px;
}

.order-card__header,
.order-card__meta,
.order-item-row,
.edit-item-row,
.operation-summary-card__header,
.day-editor-card__header,
.drawer__header,
.drawer__subhead,
.menu-result {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.order-card__title {
  color: var(--accent-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
}

.order-card h4 {
  color: var(--accent-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

.order-card__note {
  color: var(--muted-strong);
  line-height: 1.5;
  margin: 0;
}

.notice-summary {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: grid;
  gap: 9px;
  margin: 16px 0;
  min-height: 92px;
  padding: 15px;
}

.notice-summary strong {
  color: var(--accent-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.2;
}

.notice-summary p {
  margin: 0;
}

.notice-summary small {
  color: var(--muted);
  font-weight: 700;
}

.profile-detail-list {
  display: grid;
  gap: 12px;
}

.member-access-controls {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) 220px 180px;
  margin-bottom: 16px;
}

.profile-detail-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: grid;
  gap: 10px;
  padding: 15px;
}

.profile-detail-panel h4 {
  color: var(--accent-deep);
  font-size: 15px;
  font-weight: 900;
  margin: 0;
}

.profile-detail-row {
  display: grid;
  gap: 4px;
}

.profile-detail-row span {
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-detail-row strong {
  color: var(--muted-strong);
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.operation-summary-card {
  text-align: left;
  width: 100%;
}

.operation-summary-card.is-active {
  border-color: rgba(73, 105, 63, 0.34);
  box-shadow: 0 8px 18px rgba(25, 22, 19, 0.08);
}

.operation-summary-card__title,
.day-editor-card__title {
  color: var(--accent-deep);
  font-size: 17px;
  font-weight: 900;
}

.operation-summary-card__meta,
.operation-summary-card__note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  margin-top: 4px;
}

.operation-summary-card__note {
  color: var(--danger);
}

.order-card__meta,
.order-card__notes,
.order-item-row span,
.edit-item-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.order-items {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  display: grid;
  gap: 8px;
  padding: 10px;
}

.order-item-row strong,
.edit-item-row strong,
.menu-result strong {
  color: var(--ink);
  font-weight: 800;
}

.order-card__actions,
.edit-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.danger-button {
  background: #fff7f6;
  border: 1px solid rgba(185, 52, 47, 0.22);
  border-radius: 999px;
  color: var(--danger);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 10px 12px;
  text-transform: uppercase;
}

.drawer {
  inset: 0;
  position: fixed;
  z-index: 20;
}

.drawer__scrim {
  background: rgba(34, 50, 40, 0.32);
  border: 0;
  inset: 0;
  position: absolute;
  width: 100%;
}

.drawer__sheet {
  background: #ffffff;
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-strong);
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  margin-left: auto;
  max-width: 620px;
  overflow: auto;
  padding: 20px;
  position: relative;
  width: min(620px, 100%);
}

.drawer__sheet--wide {
  max-width: 760px;
  width: min(760px, 100%);
}

.drawer__handle {
  background: rgba(34, 50, 40, 0.16);
  border-radius: 999px;
  height: 4px;
  margin: 0 auto;
  width: 58px;
}

.drawer__header h3,
.drawer__subhead h4 {
  color: var(--accent-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  margin: 0;
}

.drawer__subhead {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.drawer__subhead strong {
  color: var(--accent-deep);
  font-size: 20px;
}

.edit-item-row,
.menu-result {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 12px;
}

.edit-item-actions input {
  max-width: 92px;
}

.qty-button {
  background: rgba(216, 226, 213, 0.34);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-deep);
  font-weight: 900;
  height: 34px;
  width: 34px;
}

.drawer__search {
  margin-top: 4px;
}

.hours-editor-panel {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: grid;
  gap: 14px;
  padding: 14px;
}

.day-editor-card {
  gap: 10px;
}

.day-editor-card__controls {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr);
}

.happy-hour-card .day-editor-card__controls {
  grid-template-columns: minmax(112px, 140px) auto minmax(112px, 140px);
  justify-content: start;
}

.summary-list {
  display: grid;
  gap: 6px;
}

.summary-list__item {
  align-items: baseline;
  display: grid;
  gap: 8px;
  grid-template-columns: 36px minmax(0, 1fr);
}

.summary-list__item strong {
  color: var(--accent-deep);
}

.summary-list__item span {
  overflow-wrap: anywhere;
}

.day-toggle {
  align-items: center;
  background: rgba(216, 226, 213, 0.34);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-strong);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  gap: 8px;
  min-width: 78px;
  padding: 6px 10px 6px 6px;
  text-transform: uppercase;
}

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

.day-toggle__knob {
  background: #ffffff;
  border: 1px solid rgba(73, 105, 63, 0.16);
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(25, 22, 19, 0.12);
  display: block;
  height: 22px;
  width: 22px;
}

.day-toggle:not(.is-active) .day-toggle__knob {
  background: var(--surface-soft);
}

.to-label {
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.season-tab-row {
  display: flex;
  flex-wrap: wrap;
}

.calendar-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(560px, 1fr) 360px;
}

.calendar-panel,
.event-list-panel,
.embed-panel {
  padding: 20px;
}

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

.calendar-toolbar strong {
  color: var(--accent-deep);
  font-size: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

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

.calendar-view-toggle {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  padding: 4px;
}

.calendar-view-toggle .segment {
  padding: 8px 13px;
}

.calendar-grid--week {
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  overflow-x: auto;
  padding-bottom: 4px;
}

.calendar-weekdays {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
  text-align: center;
}

.calendar-day {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  min-height: 88px;
  padding: 9px;
}

.calendar-day:hover {
  background: var(--accent-softer);
  border-color: rgba(73, 105, 63, 0.22);
}

.calendar-day.is-muted {
  opacity: 0.45;
}

.calendar-day strong {
  display: block;
  margin-bottom: 8px;
}

.calendar-day--week {
  min-height: 420px;
}

.calendar-day__empty {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 700;
}

.event-dot {
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: #ffffff;
  display: block;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 5px;
  max-height: 35px;
  overflow: hidden;
  padding: 5px 6px;
  text-align: left;
  white-space: normal;
  width: 100%;
}

.calendar-day--week .event-dot {
  white-space: normal;
}

.calendar-day--week .event-dot span {
  color: currentColor;
  display: block;
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 2px;
  opacity: 0.78;
}

.event-dot--button:hover,
.event-dot--button:focus-visible,
.event-row--linked:hover,
.event-row--linked:focus-visible {
  border-color: rgba(73, 105, 63, 0.38);
  box-shadow: 0 8px 18px rgba(25, 22, 19, 0.08);
  transform: translateY(-1px);
}

.event-list-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: calc(100vh - 134px);
}

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

.source-chip {
  background: rgba(216, 226, 213, 0.28);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  padding: 7px 9px;
}

.source-chip input {
  margin: 0;
}

.event-list {
  display: grid;
  gap: 10px;
  overflow: auto;
}

.event-row {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 12px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.event-row--linked {
  cursor: pointer;
}

.event-row strong {
  color: var(--accent-deep);
  display: block;
  margin-bottom: 5px;
}

.event-row span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.event-row small {
  color: var(--accent-deep);
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-top: 8px;
  text-transform: uppercase;
}

.embed-panel {
  min-height: calc(100vh - 154px);
  position: relative;
}

.embed-form {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 16px;
}

.embed-form .primary-button {
  align-self: end;
}

iframe {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: none;
  height: calc(100vh - 270px);
  width: 100%;
}

.embed-empty {
  background: var(--surface-soft);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-weight: 700;
  margin: 0;
  padding: 32px;
  text-align: center;
}

@media (max-width: 980px) {
  .manager-shell {
    grid-template-columns: 232px minmax(0, 1fr);
    min-width: 760px;
    overflow-x: auto;
    padding: 10px;
  }

  .sidebar {
    border-radius: var(--radius-md);
    gap: 12px;
    height: calc(100vh - 20px);
    padding: 10px;
    top: 10px;
  }

  .brand {
    gap: 10px;
    padding: 10px;
  }

  .brand-mark {
    height: 42px;
    width: 42px;
  }

  .brand p {
    font-size: 9px;
  }

  .brand h1 {
    font-size: 21px;
    line-height: 1.05;
  }

  .tool-nav__item {
    font-size: 12px;
    gap: 8px;
    padding: 8px;
    white-space: normal;
  }

  .tool-nav__icon {
    height: 26px;
    padding: 6px;
    width: 26px;
  }

  .session-card {
    padding: 10px;
  }

  .workspace {
    padding-left: 16px;
  }

  .auth-panel,
  .calendar-layout,
  .admin-grid--notifications,
  .admin-grid--billboard,
  .admin-grid--overrides,
  .member-access-controls,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .admin-notif-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
}
