:root {
  --ink: #f4f7f6;
  --ink-dark: #0a0c0b;
  --muted: #9bac9b;
  --green: #033b35;
  --green-deep: #02241c;
  --mint: rgba(212, 175, 55, 0.15);
  --coral: #1a1e1d;
  --yellow: #ffd84f;
  --edge: rgba(244, 247, 246, 0.28);
  --edge-strong: rgba(244, 247, 246, 0.38);
  --edge-soft: rgba(244, 247, 246, 0.16);
  --yellow-glow: rgba(255, 216, 79, 0.58);
  --yellow-glow-soft: rgba(255, 216, 79, 0.32);
  --yellow-gradient: linear-gradient(135deg, #fff0a1, #ffd84f, #f2b51f);
  --available: #38c66a;
  --available-gradient: linear-gradient(135deg, #95e879, #39c96b, #12864a);
  --available-glow: rgba(56, 198, 106, 0.38);
  --booked: #ff5a4d;
  --booked-gradient: linear-gradient(135deg, #ff8a72, #ff4f45, #b7192f);
  --booked-glow: rgba(255, 79, 69, 0.42);
  --paper: rgba(3, 46, 38, 0.4);
  --cloud: rgba(0, 0, 0, 0.2);
  --line: var(--edge-soft);
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  --radius: 12px;
  color-scheme: dark;
  font-family: 'Outfit', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}


body {
  margin: 0;
  background: var(--green-deep);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

.bg-geometry {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: #021a14;
}

.chevron {
  position: absolute;
  top: 50%;
  left: -20vw;
  width: 100vh;
  height: 100vh;
  border: 40px solid;
  border-image: linear-gradient(135deg, #e6c25e, #9b783f, #1a1e1d) 1;
  transform: translateY(-50%) rotate(45deg);
  opacity: 0.4;
  box-shadow: 0 0 100px rgba(0,0,0,0.8) inset, 0 0 100px rgba(0,0,0,0.8);
}
.chevron.c2 {
  left: 0;
  width: 140vh;
  height: 140vh;
  border-width: 60px;
  opacity: 0.2;
}
.chevron.c3 {
  left: 20vw;
  width: 180vh;
  height: 180vh;
  border-width: 80px;
  opacity: 0.1;
}


body.owner-open {
  background: var(--cloud);
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

svg {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
  flex: 0 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 36, 28, 0.7); border-bottom: 1px solid var(--line); box-shadow: 0 4px 30px rgba(0,0,0,0.5);
  backdrop-filter: blur(16px);
}

.hero {
  position: relative;
  min-height: 520px;
  height: 74svh;
  max-height: 720px;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}







.site-nav,
.owner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-nav {
  padding: 18px 0;
}

.wordmark {
  text-decoration: none;
  font-weight: 750;
  line-height: 1.1;
}

.nav-actions,
.hero-actions,
.contact-list,
.owner-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

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

.nav-button,
.action-button,
.tool-button,
.booking-actions a,
.contact-list a,
.contact-list button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  padding: 0 0.9rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 750;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.nav-button:hover,
.action-button:hover,
.tool-button:hover,
.booking-actions a:hover,
.contact-list a:hover,
.contact-list button:hover {
  border-color: var(--yellow);
  box-shadow: 0 0 0 1px rgba(255, 216, 79, 0.22), 0 0 18px var(--yellow-glow-soft);
  transform: translateY(-1px);
}

.site-header .nav-button {
  border-color: var(--edge);
  background: rgba(10, 15, 14, 0.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow); border: 1px solid var(--edge);
  color: var(--ink);
}

.public-main {
  background: transparent;
}

.booking-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.1rem;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 1rem;
}

.profile-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: rgba(10, 15, 14, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1rem;
}

.profile-photo {
  width: 112px;
  height: 136px;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  object-fit: cover;
  object-position: 52% 36%;
}

.profile-panel h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.02;
}

.profile-copy > p:not(.eyebrow) {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.profile-rate {
  font-weight: 800;
}

.booking-guidance {
  justify-self: end;
  max-width: 24rem;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: right;
}

.booking-guidance p {
  margin: 0;
}

.profile-panel .hero-actions {
  align-items: stretch;
  justify-content: flex-end;
}

.profile-panel .action-button {
  border: 1px solid var(--edge);
  background: rgba(10, 15, 14, 0.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow);
  color: var(--ink);
  backdrop-filter: none;
}

.profile-panel .action-button.primary {
  border: 1px solid var(--edge);
  background: rgba(10, 15, 14, 0.6);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.profile-panel .action-button:hover {
  border-color: var(--yellow);
  box-shadow: 0 0 0 1px rgba(255, 216, 79, 0.22), 0 0 18px var(--yellow-glow-soft), var(--shadow);
}

.availability-panel {
  min-width: 0;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: rgba(10, 15, 14, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.hero-content {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: clamp(96px, 16vh, 150px);
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

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

.hero h1,
.section-heading h2,
.contact-band h2,
.owner-heading h1,
.editor-panel h2 {
  margin: 0;
  line-height: 1.02;
}

.hero h1 {
  max-width: 680px;
  font-size: clamp(3rem, 8vw, 6.8rem);
}

.hero-copy {
  max-width: 560px;
  margin: 1.1rem 0 1.6rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.action-button {
  min-width: 136px;
  border-color: var(--edge-strong);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.action-button.primary {
  background: var(--yellow-gradient);
  border-color: transparent;
  color: var(--ink-dark);
  box-shadow: 0 4px 15px var(--yellow-glow);
}

.contact-band {
  padding: clamp(44px, 7vw, 84px) clamp(20px, 5vw, 72px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(1180px, 100%);
  margin: 0 auto 1.6rem;
}

.availability-panel .section-heading {
  width: 100%;
}

.section-heading p:last-child {
  max-width: 340px;
  margin: 0;
  color: var(--muted);
}

.section-heading h2,
.contact-band h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  width: 100%;
  margin: 0 auto;
}

.month-card {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  padding: 0.8rem;
}

.month-card h3 {
  margin: 0;
  font-size: 1rem;
}

.weekdays,
.days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.6rem;
}

.weekdays span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
}

.calendar-day,
.owner-day {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  border: 1px solid var(--edge-soft);
  border-radius: 7px;
  background: var(--cloud);
  color: var(--muted);
  text-align: center;
}

.calendar-day {
  aspect-ratio: 1;
  min-height: 32px;
  width: 100%;
  padding: 0.15rem;
}

.calendar-day strong {
  line-height: 1;
}

.calendar-day small {
  display: block;
  width: 100%;
  overflow: hidden;
  color: inherit;
  font-size: 0.67rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-day.blank {
  visibility: hidden;
}

.calendar-day.available {
  background: var(--available-gradient);
  color: var(--ink-dark);
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
}

.calendar-day.selected {
  border-color: var(--yellow);
  box-shadow: 0 0 0 1px rgba(255, 216, 79, 0.22), 0 0 18px var(--yellow-glow-soft), 0 0 30px rgba(255, 216, 79, 0.18);
}

.calendar-day.available:focus-visible,
.owner-day:focus-visible,
.status-segment button:focus-visible,
.action-button:focus-visible,
.tool-button:focus-visible,
.nav-button:focus-visible,
.booking-actions a:focus-visible,
.contact-list button:focus-visible {
  outline: 2px solid var(--yellow); outline-offset: 4px;
  outline-offset: 2px;
}

.calendar-day.past {
  opacity: 0.38;
}

.calendar-empty {
  grid-column: 1 / -1;
  border: 1px dashed var(--edge);
  border-radius: var(--radius);
  background: rgba(10, 15, 14, 0.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow);
  padding: 1.25rem;
  color: var(--muted);
}

.booking-panel {
  width: min(1180px, 100%);
  margin: 1rem auto 0;
  border: 1px solid var(--edge-strong);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(12px);
  color: var(--white);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

.booking-panel h3 {
  margin: 0 0 0.3rem;
  font-size: 1.35rem;
}

.booking-panel p {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.82);
}

.booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.booking-actions a {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--edge);
  color: var(--white);
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  background: var(--cloud);
}

.contact-location {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-weight: 650;
}

.contact-actions {
  display: grid;
  justify-items: end;
  gap: 0.65rem;
}

.contact-actions h3 {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 800;
}

.contact-list a,
.contact-list button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  min-height: 44px;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: rgba(10, 15, 14, 0.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow);
  padding: 0 0.85rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 750;
  cursor: pointer;
}

.policy-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(460px, calc(100% - 32px));
  border: 1px solid var(--edge);
  border-radius: calc(var(--radius) * 1.4);
  background: #021a14;
  color: var(--ink);
  box-shadow: 0 32px 80px rgba(0,0,0,0.85);
  padding: 0;
  overflow: hidden;
}

.policy-modal::backdrop {
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}

.policy-modal-inner {
  display: grid;
  gap: 0.9rem;
  padding: 1.5rem;
}

.policy-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.policy-modal-header h2 {
  margin: 0;
  font-size: 1.35rem;
}

.policy-modal p {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}

.owner-view {
  min-height: 100svh;
}

.owner-header {
  position: sticky;
  top: 0;
  z-index: 4;
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 36, 28, 0.7); border-bottom: 1px solid var(--line); box-shadow: 0 4px 30px rgba(0,0,0,0.5);
  padding: 0.8rem clamp(16px, 4vw, 40px);
  backdrop-filter: blur(16px);
}

.owner-wordmark {
  color: var(--ink);
}

.tool-button {
  min-height: 40px;
  border-color: var(--edge);
  background: rgba(10, 15, 14, 0.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow); border: 1px solid var(--edge);
  color: var(--ink);
}

.owner-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 1rem;
}

.owner-calendar-panel {
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: rgba(10, 15, 14, 0.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow);
  box-shadow: 0 8px 28px rgba(20, 49, 45, 0.07);
  padding: 1rem;
}

.owner-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.owner-heading h1 {
  font-size: clamp(1.8rem, 4vw, 3.6rem);
}

.owner-status {
  min-width: 130px;
  margin: 0;
  border-radius: var(--radius);
  background: rgba(212, 175, 55, 0.15);
  padding: 0.45rem 0.65rem;
  color: var(--yellow);
  font-weight: 750;
  text-align: center;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-weight: 750;
  font-size: 1.15rem;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-dot {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  background: var(--cloud);
}

.legend-dot.available {
  background: var(--available-gradient);
  box-shadow: 0 2px 10px var(--available-glow);
}

.legend-dot.booked {
  background: var(--booked-gradient);
  box-shadow: 0 2px 12px var(--booked-glow);
}

.legend-dot.unavailable {
  background: var(--muted);
}

.owner-months {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.owner-month {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  padding: 0.8rem;
}

.owner-month h2 {
  margin: 0;
  font-size: 1rem;
}

.owner-day {
  aspect-ratio: 1;
  min-height: 34px;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.owner-month .calendar-day.blank {
  min-height: 34px;
}

.owner-day.available {
  background: var(--available-gradient);
  color: var(--ink-dark);
  font-weight: 800;
  border: 1px solid transparent;
}

.owner-day.booked {
  background: var(--booked-gradient);
  color: var(--white);
  border: 1px solid var(--edge);
  box-shadow: 0 0 0 1px var(--edge-soft), 0 8px 20px var(--booked-glow);
}

.owner-day.booked::before {
  position: absolute;
  right: 4px;
  bottom: 3px;
  color: rgba(255,255,255,0.88);
  content: "WORK";
  font-size: 0.45rem;
  font-weight: 900;
  line-height: 1;
}

.owner-day.unavailable {
  background: var(--cloud);
  color: var(--muted);
}

.owner-day.selected {
  border-color: var(--yellow);
  box-shadow: 0 0 0 1px rgba(255, 216, 79, 0.22), 0 0 18px var(--yellow-glow-soft), 0 0 30px rgba(255, 216, 79, 0.18);
}

.owner-day.has-note::after {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.owner-day.booked.has-note::after {
  top: 4px;
  bottom: auto;
  background: rgba(255,255,255,0.9);
}

/* Form inside editor modal */

#dayEditor {
  display: grid;
  gap: 0.85rem;
}

#dayEditor label,
.field-group {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

#dayEditor input,
#dayEditor textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--edge-soft);
  border-radius: var(--radius);
  background: rgba(0,0,0,0.4);
  color: var(--ink);
  padding: 0.65rem 0.7rem;
}

#dayEditor textarea {
  resize: vertical;
}

.save-day-button {
  width: 100%;
  justify-content: center;
  margin-top: 0.25rem;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.save-day-button.has-changes {
  animation: pulse-save 1.8s ease-in-out infinite;
}

@keyframes pulse-save {
  0%, 100% { box-shadow: 0 4px 15px var(--yellow-glow); }
  50%       { box-shadow: 0 4px 28px rgba(212,175,55,0.65); }
}

.time-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.status-segment {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
}

.status-segment button {
  min-width: 0;
  min-height: 40px;
  border: 1px solid var(--edge-soft);
  border-radius: var(--radius);
  background: rgba(0,0,0,0.4);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

.status-segment button.active {
  border-color: var(--yellow);
  box-shadow: 0 0 0 1px var(--yellow);
  color: var(--white);
}

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

  .profile-panel {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    margin-top: 0;
  }

  .profile-panel .hero-actions {
    grid-column: 1 / -1;
  }

  .profile-panel .booking-guidance {
    grid-column: 1 / -1;
    justify-self: start;
    max-width: none;
    text-align: left;
  }

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

  .owner-shell {
    grid-template-columns: 1fr;
  }

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

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

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

  .nav-link {
    display: none;
  }

  .section-heading,
  .contact-band {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
  }

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

  .month-card .weekdays,
  .month-card .days {
    gap: clamp(0.35rem, 2vw, 0.6rem);
  }

  .contact-list {
    align-items: stretch;
  }

  .contact-actions {
    justify-items: stretch;
  }

  .contact-list a,
  .contact-list button,
  .action-button,
  .booking-actions a {
    width: 100%;
  }

  .profile-panel {
    grid-template-columns: 1fr;
  }

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

  .owner-toolbar {
    width: 100%;
  }

  .tool-button {
    flex: 1 1 auto;
  }

  .owner-shell {
    padding: 0.75rem;
  }

  .owner-calendar-panel {
    padding: 0.75rem;
  }

  .owner-heading {
    display: grid;
  }

  .owner-status {
    width: 100%;
  }

  .owner-months {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .owner-month {
    gap: 0.55rem;
    padding: 0.7rem;
  }

  .owner-day,
  .owner-month .calendar-day.blank {
    min-height: clamp(38px, 11vw, 48px);
  }

  .owner-day {
    font-size: clamp(0.8rem, 4vw, 1rem);
  }
}

@media (max-width: 420px) {
  .site-nav,
  .booking-dashboard {
    width: min(100% - 28px, 1180px);
  }

  .contact-band {
    padding-left: 14px;
    padding-right: 14px;
  }

  .calendar-day {
    min-height: 0;
    font-size: clamp(0.82rem, 4vw, 1rem);
  }

  .calendar-day small {
    display: none;
  }

  .owner-shell {
    padding: 0.55rem;
  }

  .owner-calendar-panel {
    padding: 0.6rem;
  }

  .owner-month {
    padding: 0.6rem;
  }

  .owner-month .weekdays,
  .owner-month .days {
    gap: 0.42rem;
  }

  .owner-day,
  .owner-month .calendar-day.blank {
    min-height: 38px;
  }

  .time-row,
  .status-segment {
    grid-template-columns: 1fr;
  }
}

/* ─── Owner unlock screen ─────────────────────────────────────────────────── */

.owner-unlock {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(48px, 10vw, 100px) 20px;
  text-align: center;
}

.owner-unlock h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
}

.owner-unlock p {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.owner-unlock form {
  display: grid;
  gap: 0.75rem;
  width: min(360px, 100%);
  text-align: left;
}

.owner-unlock label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.owner-unlock input[type="password"] {
  width: 100%;
  border: 1px solid var(--edge-soft);
  border-radius: var(--radius);
  background: rgba(0,0,0,0.4);
  color: var(--ink);
  padding: 0.75rem 0.9rem;
  font-size: 1rem;
}

.owner-unlock input[type="password"]:focus {
  outline: 2px solid var(--yellow); outline-offset: 4px;
  outline-offset: 2px;
}

.owner-unlock button[type="submit"] {
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: var(--radius);
  background: var(--yellow-gradient); color: var(--ink-dark); font-weight: 800; border: none; box-shadow: 0 2px 10px rgba(212,175,55,0.3);
  color: var(--white);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.owner-unlock button[type="submit"]:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.8); border: 1px solid var(--edge); backdrop-filter: blur(12px);
  transform: translateY(-1px);
}

.owner-unlock button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.unlock-error {
  margin: 0;
  color: var(--coral);
  font-size: 0.9rem;
  font-weight: 750;
  text-align: center;
}

/* ─── Practice dropdown row ───────────────────────────────────────────────── */

.practice-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
}

#practiceSelect {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--edge-soft);
  border-radius: var(--radius);
  background: rgba(0,0,0,0.4);
  color: var(--ink);
  padding: 0.65rem 0.7rem;
  font: inherit;
  cursor: pointer;
}

#practiceSelect:focus {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

.manage-btn {
  flex-shrink: 0;
  min-height: 40px;
  padding: 0 0.65rem;
  font-size: 0.82rem;
}

/* ─── Day info popup ──────────────────────────────────────────────────────── */

.day-popup {
  position: absolute;
  z-index: 300;
  min-width: 240px;
  max-width: 300px;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: rgba(2, 20, 14, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.75), 0 0 0 1px var(--edge-soft);
  padding: 1rem;
  color: var(--ink);
  animation: popup-in 150ms ease;
}

@keyframes popup-in {
  from { opacity: 0; transform: translateY(-5px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

.popup-close {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 120ms, background 120ms;
}

.popup-close:hover { color: var(--ink); background: rgba(255,255,255,0.08); }

.popup-date {
  margin: 0 1.8rem 0.4rem 0;
  font-size: 0.86rem;
  font-weight: 750;
  color: var(--muted);
}

.popup-badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.popup-badge--available  { background: rgba(56,198,106,0.18); color: #8be87c; border: 1px solid rgba(56,198,106,0.38); }
.popup-badge--booked     { background: rgba(255,90,77,0.18); color: #ff9a86;    border: 1px solid rgba(255,90,77,0.45); }
.popup-badge--unavailable{ background: rgba(155,172,155,0.12); color: var(--muted);  border: 1px solid rgba(155,172,155,0.2); }

.popup-details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.22rem 0.6rem;
  margin: 0;
  font-size: 0.84rem;
}

.popup-details dt { color: var(--muted); font-weight: 750; white-space: nowrap; }
.popup-details dd { margin: 0; color: var(--ink); word-break: break-word; }

.popup-edit-btn {
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.5rem;
}

/* ─── Editor modal ────────────────────────────────────────────────────────── */

.editor-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(400px, calc(100% - 32px));
  max-height: min(88svh, 740px);
  border: 1px solid var(--edge);
  border-radius: calc(var(--radius) * 1.4);
  background: #021a14;
  color: var(--ink);
  box-shadow: 0 32px 80px rgba(0,0,0,0.85);
  padding: 0;
  overflow: hidden;
}

.editor-modal::backdrop {
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}

.editor-modal-inner {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: min(88svh, 740px);
  padding: 1.5rem;
  gap: 1.2rem;
}

.editor-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.editor-modal-header h2 { margin: 0; font-size: 1.35rem; }

/* ─── Practices modal ─────────────────────────────────────────────────────── */

.practices-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(660px, calc(100% - 32px));
  max-height: min(88svh, 740px);
  border: 1px solid var(--edge);
  border-radius: calc(var(--radius) * 1.4);
  background: #021a14;
  color: var(--ink);
  box-shadow: 0 32px 80px rgba(0,0,0,0.85);
  padding: 0;
  overflow: hidden;
}

.practices-modal::backdrop {
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}

.practices-modal-inner {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: min(88svh, 740px);
  padding: 1.5rem;
  gap: 1.2rem;
}

.practices-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.practices-modal-header h2 { margin: 0; font-size: 1.35rem; }

/* Practice form */

.practice-form {
  display: grid;
  gap: 0.8rem;
  border: 1px solid var(--edge-soft);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.025);
  padding: 1rem;
}

.practice-form-fields { display: grid; gap: 0.7rem; }

.practice-form label {
  display: grid;
  gap: 0.28rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.practice-form label em { color: var(--yellow); font-style: normal; }

.practice-form input,
.practice-form textarea {
  width: 100%;
  border: 1px solid var(--edge-soft);
  border-radius: var(--radius);
  background: rgba(0,0,0,0.4);
  color: var(--ink);
  padding: 0.58rem 0.7rem;
  font: inherit;
}

.practice-form textarea { resize: vertical; }

.practice-form input:focus,
.practice-form textarea:focus { outline: 2px solid var(--yellow); outline-offset: 2px; }

.practice-form-actions { display: flex; gap: 0.55rem; flex-wrap: wrap; }

.practices-divider { border: none; border-top: 1px solid var(--edge-soft); margin: 0; }

/* Practice list */

.practices-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }

.practice-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  border: 1px solid var(--edge-soft);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.025);
  padding: 0.75rem 0.9rem;
}

.practice-item-info { display: grid; gap: 0.18rem; min-width: 0; font-size: 0.86rem; }
.practice-item-info strong { font-size: 0.98rem; color: var(--ink); }
.practice-item-info span  { color: var(--muted); word-break: break-word; }
.practice-item-rate { color: var(--yellow) !important; font-weight: 750; }

.practice-item-actions { display: flex; gap: 0.35rem; flex-shrink: 0; align-self: flex-start; }
.practice-item-actions .tool-button { min-height: 32px; padding: 0 0.55rem; font-size: 0.8rem; }

.delete-btn { border-color: rgba(255,80,80,0.28) !important; color: rgba(255,120,120,0.9) !important; }
.delete-btn:hover { background: rgba(255,50,50,0.1) !important; }

.practices-empty {
  margin: 0;
  color: var(--muted);
  text-align: center;
  padding: 1.4rem;
  border: 1px dashed var(--edge);
  border-radius: var(--radius);
}
