:root {
  --ink: #17201b;
  --muted: #5d6861;
  --line: #d8ded7;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --sage: #557b63;
  --leaf: #315b49;
  --clay: #bd7454;
  --sky: #dfeef1;
  --gold: #e7b95f;
  --shadow: 0 18px 50px rgba(23, 32, 27, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 246, 0.92);
  border-bottom: 1px solid rgba(216, 222, 215, 0.8);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 42px;
  place-items: center;
  background: var(--leaf);
  color: white;
  border-radius: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.top-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 650;
}

.top-nav .nav-cta {
  padding: 10px 14px;
  background: var(--clay);
  color: white;
  border-radius: 6px;
  box-shadow: 0 10px 22px rgba(189, 116, 84, 0.22);
}

.hero {
  position: relative;
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, rgba(23, 32, 27, 0.82), rgba(23, 32, 27, 0.28) 55%, rgba(23, 32, 27, 0.08));
}

.hero img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  width: min(720px, 100%);
  padding: clamp(40px, 7vw, 92px) clamp(18px, 5vw, 72px);
  color: white;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--gold);
}

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

h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.hero p {
  max-width: 590px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.hero-actions,
.area-days {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-button,
.secondary-button,
.ghost-button {
  min-height: 44px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  background: var(--clay);
  color: white;
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(189, 116, 84, 0.24);
}

.secondary-button {
  padding: 12px 18px;
  background: white;
  color: var(--leaf);
  border-radius: 6px;
}

.ghost-button {
  padding: 10px 14px;
  background: transparent;
  color: var(--leaf);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.compact {
  min-height: 38px;
  padding: 8px 12px;
}

.section,
.booking-band,
.app-shell {
  padding: clamp(44px, 7vw, 88px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 780px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.process-band {
  padding: clamp(44px, 7vw, 88px) clamp(18px, 5vw, 72px);
  background: #fff;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.process-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9faf6;
}

.process-grid strong {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  place-items: center;
  background: var(--gold);
  border-radius: 50%;
}

.service-card,
.tool-panel,
.booking-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.service-card {
  min-height: 210px;
  padding: 24px;
}

.service-card span {
  color: var(--clay);
  font-weight: 900;
}

.booking-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: start;
  background: var(--sky);
}

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

.area-days span {
  padding: 8px 10px;
  background: rgba(49, 91, 73, 0.09);
  border: 1px solid rgba(49, 91, 73, 0.18);
  border-radius: 999px;
  color: var(--leaf);
  font-size: 13px;
  font-weight: 800;
}

.booking-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(18px, 4vw, 30px);
}

.mini-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  background: #fdfdfb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mini-form h3 {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.checkbox-row {
  display: flex;
  align-items: center;
}

.checkbox-row input {
  width: 18px;
  min-height: 18px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

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

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--leaf);
  font-weight: 800;
}

.app-shell {
  --app-x-padding: clamp(18px, 5vw, 72px);
  padding: 0 var(--app-x-padding) clamp(44px, 7vw, 88px);
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  min-height: calc(100vh - 70px);
  background: #edf3ec;
}

.app-shell.signed-out {
  grid-template-columns: 1fr;
}

.login-screen {
  grid-column: 1 / -1;
  display: grid;
  min-height: calc(100vh - 160px);
  place-items: center;
}

.login-panel {
  display: grid;
  width: min(520px, 100%);
  gap: 16px;
  padding: clamp(22px, 5vw, 36px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.app-sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(190px, 0.65fr) minmax(360px, 1.8fr) auto;
  gap: 14px;
  align-items: center;
  margin-inline: calc(var(--app-x-padding) * -1);
  padding: 10px var(--app-x-padding);
  background: var(--leaf);
  color: white;
  border-radius: 0;
  box-shadow: 0 10px 24px rgba(23, 32, 27, 0.14);
}

.app-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sidebar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.tab-button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  cursor: pointer;
  font-weight: 850;
  text-align: center;
}

.tab-button.active {
  background: white;
  color: var(--leaf);
}

.app-sidebar p,
.app-sidebar .eyebrow {
  color: rgba(255, 255, 255, 0.76);
  margin-bottom: 4px;
}

.app-sidebar h2 {
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.12;
}

.app-main {
  min-width: 0;
  padding-top: 4px;
}

.tool-panel {
  padding: 20px;
}

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

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.summary-strip span {
  padding: 12px;
  background: #f6f7f3;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 800;
}

.summary-strip strong {
  display: block;
  color: var(--leaf);
  font-size: 24px;
}

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

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.schedule-panel-title {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(280px, auto) minmax(160px, 1fr);
  align-items: start;
}

.schedule-date-title h3 {
  margin: 0;
  text-align: center;
}

.schedule-date-title {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.schedule-left-actions {
  display: grid;
  justify-items: start;
}

.schedule-controls {
  display: grid;
  gap: 10px;
  justify-items: end;
  justify-self: end;
}

.control-hidden {
  display: none;
}

.segmented-control,
.schedule-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.segmented-control button {
  min-height: 38px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--leaf);
  cursor: pointer;
  font-weight: 850;
}

.segmented-control button.active {
  background: var(--leaf);
  border-color: var(--leaf);
  color: white;
}

.schedule-undo {
  justify-self: start;
  min-height: 34px;
  padding: 7px 10px;
}

.schedule-undo:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.schedule-navigation {
  align-items: center;
  flex-wrap: nowrap;
  justify-content: center;
  overflow-x: auto;
  max-width: 100%;
  justify-self: center;
}

.panel-title h3 {
  margin: 0;
}

.route-map {
  position: relative;
  height: 330px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(85, 123, 99, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(85, 123, 99, 0.12) 1px, transparent 1px),
    #f7fbf8;
  background-size: 44px 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.map-stop {
  position: absolute;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  transform: translate(-50%, -50%);
  background: var(--clay);
  color: white;
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(23, 32, 27, 0.18);
  font-size: 13px;
  font-weight: 900;
}

.map-line {
  position: absolute;
  height: 3px;
  transform-origin: left center;
  background: var(--sage);
}

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

.stats-grid > * {
  padding: 12px;
  background: #f6f7f3;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 750;
}

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

.route-insights span,
.integration-panel {
  padding: 12px;
  background: #fdfdfb;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
}

.route-insights strong {
  display: block;
  color: var(--leaf);
  font-size: 22px;
}

.request-list {
  display: grid;
  gap: 12px;
  max-height: none;
  overflow: auto;
  padding-right: 4px;
}

.request-card {
  padding: 16px;
  background: #fdfdfb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.request-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.status-pill {
  align-self: start;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(231, 185, 95, 0.24);
  color: #7b5815;
  font-size: 12px;
  font-weight: 900;
}

.status-confirmed {
  background: rgba(85, 123, 99, 0.16);
  color: var(--leaf);
}

.status-declined {
  background: rgba(189, 116, 84, 0.16);
  color: #823e25;
}

.status-rescheduled {
  background: rgba(61, 108, 129, 0.14);
  color: #2e5a6f;
}

.status-completed {
  background: rgba(49, 91, 73, 0.18);
  color: var(--leaf);
}

.status-checked-in {
  background: rgba(61, 108, 129, 0.14);
  color: #2e5a6f;
}

.status-in-progress {
  background: rgba(231, 185, 95, 0.24);
  color: #7b5815;
}

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

.detail-list div {
  padding: 10px;
  background: #f6f7f3;
  border-radius: 6px;
}

.detail-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-list dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-weight: 750;
}

.detail-list.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 10px 0;
}

.detail-list.compact div {
  padding: 8px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.history-list {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.history-list span {
  padding: 8px 10px;
  background: #f6f7f3;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

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

.message-card {
  padding: 18px;
  background: #fdfdfb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.message-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.message-card > p {
  padding: 14px;
  background: #f6f7f3;
  border-radius: 8px;
  color: var(--ink);
}

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

.backend-card {
  padding: 18px;
  background: #fdfdfb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.checklist label {
  display: flex;
  align-items: center;
  padding: 10px;
  background: #f6f7f3;
  border-radius: 6px;
}

.checklist input {
  width: 18px;
  min-height: 18px;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 12px;
}

.ops-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.integration-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
}

.integration-panel p {
  margin-bottom: 0;
}

.integration-panel span {
  flex: 0 0 auto;
  padding: 8px 10px;
  background: rgba(85, 123, 99, 0.14);
  border-radius: 999px;
  color: var(--leaf);
  font-weight: 900;
}

.schedule-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.day-board,
.empty-state {
  min-height: 330px;
  padding: 18px;
  background: #fdfdfb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.day-board {
  overflow: auto;
}

.schedule-board {
  display: grid;
  grid-template-columns: clamp(48px, 7vw, 78px) minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  margin-top: 18px;
}

.schedule-time-axis {
  position: relative;
  height: var(--schedule-height);
  margin-top: 58px;
  border-right: 1px solid var(--line);
}

.schedule-time-axis span {
  position: absolute;
  right: 10px;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.drag-time-marker {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  transform: translateY(-50%);
  background: var(--clay);
}

.drag-time-marker span {
  position: absolute;
  right: 10px;
  top: -12px;
  padding: 3px 6px;
  background: var(--clay);
  border-radius: 999px;
  color: white;
  font-size: 11px;
  font-weight: 900;
}

.schedule-columns {
  display: grid;
  grid-template-columns: repeat(var(--schedule-column-count, 1), minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.schedule-column {
  display: grid;
  grid-template-rows: 64px var(--schedule-height);
  min-width: 0;
}

.schedule-column header {
  display: grid;
  align-content: center;
  padding: 8px 10px;
  overflow: hidden;
  background: #f6f7f3;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.schedule-column.is-today header {
  background: rgba(85, 123, 99, 0.14);
  border-color: rgba(85, 123, 99, 0.42);
  box-shadow: inset 0 3px 0 var(--leaf);
}

.schedule-column.is-today header strong {
  color: var(--leaf);
}

.schedule-column.is-closed header {
  background: #eef0ec;
  border-color: #d8ded7;
  color: #8e978f;
}

.schedule-column.is-closed header span {
  color: #9aa39d;
}

.schedule-column.is-closed .schedule-track {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(142, 151, 143, 0.12) 0,
      rgba(142, 151, 143, 0.12) 8px,
      transparent 8px,
      transparent 16px
    ),
    #f1f2ef;
  cursor: not-allowed;
}

.day-open-header {
  cursor: pointer;
}

.month-cell[data-open-date] {
  cursor: pointer;
}

.month-cell[data-open-date] .month-appointment {
  cursor: pointer;
}

.schedule-column header strong,
.schedule-column header span {
  overflow-wrap: anywhere;
  white-space: normal;
}

.schedule-column header span {
  color: var(--muted);
  font-size: clamp(10px, 1vw, 12px);
  font-weight: 750;
}

.month-board {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(4px, 1vw, 10px);
  margin-top: 18px;
}

.month-weekday {
  padding: 8px clamp(4px, 1vw, 10px);
  background: var(--leaf);
  color: white;
  border-radius: 6px;
  font-weight: 900;
  text-align: center;
}

.month-cell {
  min-height: clamp(92px, 15vw, 132px);
  padding: clamp(6px, 1vw, 10px);
  background: #fdfdfb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.month-cell.is-today {
  background: rgba(85, 123, 99, 0.1);
  border-color: rgba(85, 123, 99, 0.5);
  box-shadow: inset 0 3px 0 var(--leaf);
}

.month-cell.is-today header strong,
.month-cell.is-today header span {
  color: var(--leaf);
}

.month-cell.is-closed {
  background: #f1f2ef;
  color: #8e978f;
}

.month-cell.is-closed header span {
  color: #9aa39d;
}

.month-cell.outside-month {
  opacity: 0.48;
  background: #f6f7f3;
}

.month-cell header {
  display: grid;
  gap: 2px;
  margin-bottom: 8px;
}

.month-cell header strong {
  font-size: clamp(15px, 2vw, 20px);
}

.month-cell header span {
  color: var(--muted);
  font-size: clamp(10px, 1.3vw, 12px);
  font-weight: 800;
}

.month-appointment {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 6px;
  overflow: hidden;
  background: #3faedf;
  border: 0;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  font-size: clamp(10px, 1.2vw, 12px);
  font-weight: 850;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-track {
  position: relative;
  height: var(--schedule-height);
  overflow: hidden;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(85, 123, 99, 0.12) 0,
      rgba(85, 123, 99, 0.12) 1px,
      transparent 1px,
      transparent 102px
    ),
    #f9faf6;
  border: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
}

.groom-block {
  position: absolute;
  right: auto;
  min-height: 42px;
  padding: 9px 10px;
  overflow: hidden;
  background: #3faedf;
  border-radius: 7px;
  color: white;
  box-shadow: 0 8px 18px rgba(23, 32, 27, 0.14);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.groom-block.is-moving {
  z-index: 4;
  cursor: grabbing;
  opacity: 0.86;
  outline: 3px solid rgba(231, 185, 95, 0.65);
}

.groom-block.drag-origin-ghost {
  filter: grayscale(1);
  opacity: 0.28;
  pointer-events: none;
  box-shadow: none;
}

.groom-block.drag-target-preview {
  z-index: 4;
  opacity: 0.9;
  pointer-events: none;
  outline: 3px solid rgba(231, 185, 95, 0.65);
}

.groom-block.status-pending {
  background: #e7b95f;
  color: #3f3218;
}

.groom-block.status-confirmed {
  background: #3faedf;
}

.groom-block.status-rescheduled {
  background: #c894b9;
}

.groom-block.status-completed {
  background: #557b63;
}

.groom-block.status-declined,
.groom-block.out-of-zone {
  background: var(--clay);
}

.groom-block.has-conflict {
  outline: 3px solid rgba(231, 185, 95, 0.75);
}

.groom-block strong,
.groom-block span,
.groom-block small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.groom-block strong {
  font-size: 13px;
}

.groom-block span,
.groom-block small {
  font-size: 12px;
}

.resize-handle {
  position: absolute;
  left: 0;
  right: 0;
  height: 10px;
  cursor: ns-resize;
}

.resize-handle.top {
  top: 0;
}

.resize-handle.bottom {
  bottom: 0;
}

.context-menu {
  position: fixed;
  z-index: 30;
  display: grid;
  min-width: 220px;
  padding: 8px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.context-menu[hidden] {
  display: none;
}

.context-menu .menu-group {
  display: grid;
  gap: 4px;
  padding: 6px 0;
}

.context-menu .menu-group:first-child {
  padding-top: 0;
}

.context-menu .menu-group:last-child {
  padding-bottom: 0;
}

.context-menu .menu-group + .menu-group {
  border-top: 1px solid var(--line);
}

.context-menu button {
  min-height: 36px;
  padding: 8px 10px;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  text-align: left;
}

.context-menu button:hover {
  background: #f6f7f3;
}

.context-menu .menu-state {
  background: rgba(85, 123, 99, 0.12);
  color: var(--leaf);
}

.context-menu button:disabled {
  color: #9aa39d;
  cursor: not-allowed;
  opacity: 0.55;
}

.context-menu .menu-state:disabled {
  cursor: default;
  opacity: 1;
}

.context-menu button:disabled:hover {
  background: transparent;
}

.context-menu .menu-state:disabled:hover {
  background: rgba(85, 123, 99, 0.12);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(23, 32, 27, 0.42);
}

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

.confirm-panel {
  position: relative;
  display: grid;
  gap: 12px;
  width: min(430px, 100%);
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.confirm-panel h3,
.confirm-panel p {
  margin: 0;
}

.icon-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: #f6f7f3;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.icon-close:hover {
  background: #eef1e8;
}

.confirm-actions {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.editor-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.editor-panel .panel-title {
  grid-column: 1 / -1;
}

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

.client-card {
  padding: 18px;
  background: #fdfdfb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.client-card.profile-focus {
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(85, 123, 99, 0.18);
}

.pet-stack {
  display: grid;
  gap: 12px;
}

.pet-card {
  padding: 12px;
  background: #f6f7f3;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.pet-card h4 {
  margin: 0;
}

.rule {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: #fdfdfb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

@media (max-width: 920px) {
  .top-nav a:not(.nav-cta) {
    display: none;
  }

  .app-sidebar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-block: 10px;
  }

  .schedule-panel-title {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .schedule-navigation,
  .schedule-controls,
  .schedule-left-actions {
    justify-self: start;
  }

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

  .service-grid,
  .process-grid,
  .booking-band,
  .app-shell,
  .schedule-layout,
  .client-grid,
  .backend-grid {
    grid-template-columns: 1fr;
  }

  .booking-copy {
    position: static;
  }

  .rules-grid,
  .ops-grid,
  .summary-strip,
  .route-insights,
  .checklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
  }

  .brand small {
    display: none;
  }

  h1 {
    font-size: 46px;
  }

  .booking-form,
  .mini-form,
  .rules-grid,
  .stats-grid,
  .detail-list,
  .ops-grid,
  .summary-strip,
  .route-insights,
  .checklist {
    grid-template-columns: 1fr;
  }

  .integration-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .hero {
    min-height: 680px;
  }
}
