:root {
  --bg: #000000;
  --surface: rgba(0, 0, 0, 0.6);
  --surface-strong: rgba(0, 0, 0, 0.72);
  --surface-soft: rgba(0, 0, 0, 0.42);
  --gold: #d4af37;
  --gold-soft: rgba(212, 175, 55, 0.1);
  --text: #fff8ec;
  --muted: #c3bcb0;
  --faint: #91887c;
  --line: rgba(212, 175, 55, 0.11);
  --line-strong: rgba(212, 175, 55, 0.2);
  --line-gold: rgba(212, 175, 55, 0.22);
  --danger: #d28a73;
  --radius-panel: 30px;
  --radius-card: 22px;
  --shadow-panel: none;
  --shadow-soft: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #000;
  color: var(--text);
  font-family: Aptos, "Segoe UI", sans-serif;
  isolation: isolate;
  letter-spacing: -0.01em;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.dashboard-demo-note {
  display: none;
}

.live-demo-events {
  display: none;
}

.appointment-filters {
  border-bottom: 1px solid var(--line-strong);
  margin: 0 0 18px;
  padding: 0 0 16px;
  position: relative;
  z-index: 2;
}

.appointment-filter-toggle {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--gold);
  cursor: pointer;
  display: inline-flex;
  flex-shrink: 0;
  font: inherit;
  font-size: 0.82rem;
  gap: 12px;
  min-height: 44px;
  padding: 8px 12px;
}

.appointment-filter-toggle[hidden] {
  display: none;
}

.appointment-filter-toggle:focus-visible,
.appointment-filter-reset:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.filter-toggle-chevron {
  border-bottom: 1px solid currentColor;
  border-right: 1px solid currentColor;
  height: 6px;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 300ms ease;
  width: 6px;
}

.appointment-filter-toggle[aria-expanded="true"] .filter-toggle-chevron {
  transform: translateY(2px) rotate(225deg);
}

/* Progressive enhancement: visible without JS; never tab into closed fields. */
.appointment-filter-disclosure.is-enhanced {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  transition: grid-template-rows 320ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 200ms ease, visibility 0s linear 320ms;
}

.appointment-filter-disclosure.is-enhanced.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.appointment-filter-inner {
  min-height: 0;
  overflow: hidden;
}

.appointment-filter-inner .appointment-filters {
  /* Keep keyboard outlines inside the animated clipping boundary. */
  margin: 0 0 18px;
  padding: 6px 6px 16px;
}

.appointment-filters .appointment-filter-reset {
  margin-top: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .appointment-filter-disclosure.is-enhanced,
  .filter-toggle-chevron {
    transition: none;
  }
}

.appointment-filter-reset {
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--gold);
  cursor: pointer;
  font-size: 0.8rem;
  min-height: 44px;
  padding: 8px 12px;
}

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

.appointment-filter-search,
.appointment-filter-choice {
  grid-column: span 2;
}

.appointment-filter-fields label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.appointment-filter-fields label > span {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.appointment-filter-fields input,
.appointment-filter-fields select {
  background: #0c0c0b;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text);
  color-scheme: dark;
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
  min-height: 44px;
  min-width: 0;
  padding: 10px;
  width: 100%;
}

.appointment-filter-fields input[aria-invalid="true"] {
  border-color: var(--danger);
}

.appointment-filter-scope,
.appointment-filter-feedback {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
  margin: 12px 0 0;
}

.appointment-filter-feedback {
  color: var(--gold);
  margin-top: 5px;
}

.appointment-filter-feedback.is-error {
  color: var(--danger);
}

@media (max-width: 600px) {
  .appointment-filter-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .appointment-filter-search {
    grid-column: 1 / -1;
  }

  .appointment-filter-choice {
    grid-column: auto;
  }

  .appointment-filter-fields input,
  .appointment-filter-fields select {
    font-size: 1rem;
    min-height: 48px;
    padding: 8px;
  }
}

@media (max-width: 360px) {
  .appointment-filter-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}

body[data-role="demo"] .dashboard-demo-note {
  align-items: center;
  background: #0a0a0a;
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  color: rgba(255, 255, 255, 0.76);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.78rem;
  gap: 8px 16px;
  justify-content: center;
  padding: 10px 18px;
  position: relative;
  z-index: 20;
}

body[data-role="demo"] .dashboard-demo-note strong,
body[data-role="demo"] .dashboard-demo-note a,
body[data-role="demo"] .dashboard-demo-note button {
  color: #f0cf62;
}

body[data-role="demo"] .dashboard-demo-note a,
body[data-role="demo"] .dashboard-demo-note button {
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  padding: 0;
  text-decoration: none;
}

body[data-role="demo"] .quick-link[href="/management"] {
  display: none !important;
}

button,
input,
select {
  font: inherit;
  touch-action: manipulation;
}

button {
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.quick-link,
.ghost-link,
.hero-arrow,
.hero-indicators button,
.stat-card,
.panel-toggle,
.chart-range button,
.schedule-day,
.schedule-slot,
.action-button,
.block-form button,
.analytics-close {
  will-change: transform;
}

.quick-link:active,
.ghost-link:active,
.hero-indicators button:active,
.stat-card:active,
.panel-toggle:active,
.chart-range button:active,
.schedule-day:active,
.schedule-slot:active,
.action-button:active,
.block-form button:active,
.analytics-close:active {
  transition-duration: 55ms;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(212, 175, 55, 0.58);
  outline-offset: 3px;
}

.dashboard-shell {
  margin: 0 auto;
  max-width: 1280px;
  padding: 42px 30px 72px;
  position: relative;
  transition:
    margin-right 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
    max-width 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
    padding-right 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 10;
}

.ambient-tools {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

.ambient-tool {
  left: clamp(86px, var(--x, 50%), calc(100vw - 86px));
}

.demo-rain-icon {
  --rain-size: clamp(38px, 5vw, 64px);
  animation-duration: var(--rain-duration, 24s);
  animation-delay: var(--rain-delay, 0s);
  height: var(--rain-size);
  left: min(var(--rain-x, 10%), calc(100% - var(--rain-size)));
  width: var(--rain-size);
}

.demo-rain-icon img { opacity: 0.8; }
.demo-rain-icon:nth-child(n+7) img { opacity: 0.45; }
.demo-rain-icon:nth-child(1) { --rain-x: 2%; --rain-delay: -5s; }
.demo-rain-icon:nth-child(2) { --rain-x: 6%; --rain-delay: -19s; --rain-duration: 31s; }
.demo-rain-icon:nth-child(3) { --rain-x: 93%; --rain-delay: -7s; --rain-duration: 30s; }
.demo-rain-icon:nth-child(4) { --rain-x: 96%; --rain-delay: -15s; --rain-duration: 25s; }
.demo-rain-icon:nth-child(5) { --rain-x: 90%; --rain-delay: -24s; --rain-duration: 28s; }
.demo-rain-icon:nth-child(6) { --rain-x: 4%; --rain-delay: -12s; --rain-duration: 29s; }
.demo-rain-icon:nth-child(7) { --rain-x: 31%; --rain-delay: -6s; }
.demo-rain-icon:nth-child(8) { --rain-x: 68%; --rain-delay: -16s; }
.demo-rain-icon:nth-child(9) { --rain-x: 48%; --rain-delay: -22s; --rain-duration: 27s; }

@media (max-width: 768px) {
  .demo-rain-icon img { opacity: 0.58; }
  .demo-rain-icon:nth-child(n+6) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .demo-rain-icon { display: none; }
}

body[data-role="demo"] :is(.request-card, .month-day-appointment) .demo-appointment-arrival {
  color: #bdb3a0;
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.4;
  margin-top: 0.35rem;
}

.dashboard-topbar,
.today-hero,
.form-message,
.workspace-grid,
.dashboard-panel {
  position: relative;
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .request-card.is-moving-out,
  .appointment-inline-detail,
  .request-list.is-flowing .request-card,
  .request-list.is-new-booking .request-card,
  .timeline-slot.is-completing,
  .metric-pill.is-new-booking,
  .metric-pill.is-new-booking::after,
  .hero-slide.is-new-booking,
  .hero-slide.is-new-booking::after,
  .hero-indicators button {
    animation: none;
  }

  .hero-track {
    transition: none;
  }
}

@media (hover: none), (pointer: coarse) {
  .nav-orb,
  .quick-link,
  .ghost-link,
  .hero-indicators button,
  .stat-card,
  .panel-toggle,
  .chart-range button,
  .schedule-day,
  .schedule-slot,
  .action-button,
  .block-form button,
  .analytics-close {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .quick-link:active,
  .quick-link.is-active {
    background: rgba(0, 0, 0, 0.48);
    border-color: rgba(212, 175, 55, 0.12);
    color: var(--gold);
  }

  .ghost-link:active,
  .stat-card:active,
  .panel-toggle:active,
  .chart-range button:active,
  .analytics-close:active {
    background: rgba(212, 175, 55, 0.07);
    border-color: rgba(212, 175, 55, 0.22);
    color: var(--gold);
  }

  .hero-indicators button:active,
  .hero-indicators button.is-active {
    background: var(--gold);
    border-color: rgba(212, 175, 55, 0.42);
    transform: translateY(-1px);
  }

  .schedule-day:active,
  .schedule-day.is-selected {
    background: rgba(212, 175, 55, 0.095);
    border-color: rgba(212, 175, 55, 0.18);
    color: var(--gold);
  }

  .schedule-slot:active,
  .schedule-slot.is-selected,
  .request-card:active,
  .blocked-item:active {
    border-color: rgba(212, 175, 55, 0.18);
    transform: translateY(1px) scale(0.992);
  }

  .action-button:active,
  .block-form button:active {
    border-color: rgba(212, 175, 55, 0.32);
    color: #ffffff;
  }
}

.nav-orb {
  align-items: center;
  background:
    linear-gradient(115deg, transparent 0 34%, rgba(255, 255, 255, 0.28) 42%, transparent 54%),
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.48), transparent 25%),
    radial-gradient(circle at 68% 76%, rgba(255, 236, 174, 0.24), transparent 30%),
    linear-gradient(145deg, #e1c158, #8f7324);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  box-shadow:
    0 0 18px rgba(212, 175, 55, 0.18),
    0 18px 42px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -10px 18px rgba(72, 52, 7, 0.18);
  cursor: pointer;
  display: inline-flex;
  height: 46px;
  justify-content: center;
  left: auto;
  padding: 0;
  position: fixed;
  right: 24px;
  top: 65px;
  transform: none;
  transition:
    box-shadow 90ms ease,
    opacity 220ms ease,
    visibility 0ms linear 220ms;
  width: 46px;
  z-index: 35;
}

.nav-orb::before {
  content: none;
}

.nav-orb.is-auto-hidden {
  opacity: 0;
  pointer-events: none;
  transform: none;
  visibility: hidden;
}

.nav-orb span,
.nav-orb span::before,
.nav-orb span::after {
  background: rgba(17, 17, 17, 0.78);
  border-radius: 999px;
  content: "";
  display: block;
  height: 4px;
  width: 4px;
}

.nav-orb span {
  position: relative;
  z-index: 1;
}

.nav-orb span::before,
.nav-orb span::after {
  position: absolute;
  top: 0;
}

.nav-orb span::before {
  left: -8px;
}

.nav-orb span::after {
  right: -8px;
}

.nav-orb:hover {
  box-shadow:
    0 0 24px rgba(212, 175, 55, 0.24),
    0 22px 54px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
  transform: none;
}

.nav-orb:active,
.nav-open .nav-orb {
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0ms;
  transform: none;
  visibility: visible;
}

.dashboard-sidebar {
  background: rgba(10, 10, 10, 0.94);
  border: 0;
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 10px;
  left: auto;
  max-height: calc(100dvh - 140px);
  opacity: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px;
  pointer-events: none;
  position: fixed;
  right: 24px;
  top: 118px;
  transform: translateX(calc(100% + 24px));
  transform-origin: right top;
  transition:
    opacity 220ms ease,
    transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
  width: 176px;
  z-index: 30;
}

.nav-open .dashboard-sidebar {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.sidebar-head {
  align-items: center;
  display: flex;
  gap: 10px;
}

.sidebar-head .card-label {
  margin: 0;
}

.dashboard-topbar {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 16px 24px;
  position: relative;
}

.dashboard-logo {
  align-items: center;
  animation: none;
  backdrop-filter: none !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: inline-flex;
  flex-shrink: 0;
  justify-content: flex-start;
  max-height: none;
  max-width: none;
  overflow: hidden;
  position: relative;
  transition: opacity 0.2s ease;
}

.dashboard-logo::after {
  animation: norvex-logo-metal-shine 7600ms cubic-bezier(0.22, 1, 0.36, 1) infinite;
  background:
    linear-gradient(
      112deg,
      transparent 0%,
      transparent 39%,
      rgba(255, 247, 200, 0.2) 45%,
      rgba(255, 255, 255, 0.48) 49%,
      rgba(212, 175, 55, 0.28) 54%,
      transparent 62%,
      transparent 100%
    );
  background-size: 230% 100%;
  content: "";
  display: none;
  inset: -22% -45%;
  mask-image: url("/norvex-logo-transparent.png?v=asset-2");
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-image: url("/norvex-logo-transparent.png?v=asset-2");
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mix-blend-mode: screen;
  opacity: 0.28;
  pointer-events: none;
  position: absolute;
  transform: translateZ(0);
}

.dashboard-logo:hover {
  opacity: 0.8;
}

.dashboard-logo img {
  background: transparent;
  border: 0;
  display: block;
  height: 68px;
  image-rendering: auto;
  max-height: none;
  max-width: none;
  object-fit: contain;
  width: auto;
}

@keyframes nexa-logo-enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes nexa-logo-shine {
  0% {
    opacity: 0;
    transform: translateX(-120%) skewX(-18deg);
  }

  35% {
    opacity: 0.55;
  }

  100% {
    opacity: 0;
    transform: translateX(120%) skewX(-18deg);
  }
}

@keyframes norvex-logo-metal-shine {
  0%,
  42% {
    background-position: 140% 50%;
    opacity: 0.2;
  }

  58% {
    opacity: 0.42;
  }

  76%,
  100% {
    background-position: -55% 50%;
    opacity: 0.18;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-logo {
    animation: none;
  }

  .dashboard-logo::after {
    animation: none;
    opacity: 0.22;
  }
}

.topbar-copy {
  left: 50%;
  max-width: 720px;
  min-width: 0;
  position: absolute;
  text-align: center;
  transform: translateX(-50%);
}

.dashboard-topbar h1,
.dashboard-topbar .intro {
  text-align: center;
}

.dashboard-clock {
  align-items: baseline;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: 999px;
  color: var(--text);
  display: inline-flex;
  flex-shrink: 0;
  gap: 6px;
  padding: 9px 13px;
}

.dashboard-clock::after {
  background: rgba(212, 175, 55, 0.2);
  content: "";
  height: 16px;
  width: 1px;
}

.dashboard-clock span {
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  min-width: 7ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.dashboard-clock small {
  color: var(--text);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.eyebrow,
.card-label {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.today-calendar-trigger {
  background: #050505;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 999px;
  color: var(--gold);
  cursor: pointer;
  display: inline-flex;
  justify-self: start;
  padding: 7px 11px;
}

.today-picker-wrap {
  display: inline-grid;
  justify-items: start;
  position: relative;
}

.today-date-popup {
  background: #050505;
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.42);
  left: 0;
  margin-top: 8px;
  min-width: 216px;
  opacity: 0;
  padding: 10px;
  pointer-events: none;
  position: absolute;
  top: 100%;
  transform: translateY(-4px) scale(0.98);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 20;
}

.today-date-popup.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

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

.today-date-option {
  background: rgba(212, 175, 55, 0.07);
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-radius: 12px;
  color: var(--gold);
  cursor: pointer;
  display: grid;
  gap: 2px;
  min-height: 48px;
  padding: 7px 6px;
  text-align: center;
  transition: background 140ms ease, border-color 140ms ease, transform 90ms ease;
}

.today-date-option:hover,
.today-date-option.is-selected {
  background: rgba(212, 175, 55, 0.14);
  border-color: rgba(212, 175, 55, 0.36);
}

.today-date-option:active {
  transform: translateY(1px);
}

.today-date-option strong {
  color: var(--gold);
  font-size: 0.82rem;
  line-height: 1;
}

.today-date-option span {
  color: rgba(212, 175, 55, 0.72);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  line-height: 1;
}

h2 {
  font-size: clamp(1.24rem, 1.9vw, 1.68rem);
  line-height: 1.15;
}

h2 span {
  color: var(--gold);
  font-size: 0.86em;
}

h3 {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.28;
}

.intro {
  color: var(--muted);
  line-height: 1.7;
  margin: 4px 0 0;
  max-width: 520px;
  opacity: 0.7;
  text-align: left;
}

.topbar-actions {
  align-items: center;
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

.ghost-link {
  align-items: center;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  display: inline-flex;
  font-size: 0.85rem;
  font-weight: 700;
  min-height: 40px;
  padding: 10px 15px;
  text-decoration: none;
  transition:
    background-color 90ms ease,
    border-color 90ms ease,
    color 90ms ease,
    transform 90ms ease;
}

.ghost-link:hover {
  background: rgba(212, 175, 55, 0.07);
  border-color: rgba(212, 175, 55, 0.26);
  color: var(--gold);
  transform: translateY(-1px);
}

.ghost-link:active {
  box-shadow:
    inset 0 2px 7px rgba(0, 0, 0, 0.18),
    0 4px 10px rgba(0, 0, 0, 0.1);
  transform: translateY(1px) scale(0.982);
}

.today-hero {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  margin-bottom: 18px;
  min-height: 270px;
  overflow: visible;
  padding: 0;
  position: relative;
}

.hero-viewport {
  background: rgba(0, 0, 0, 0.52);
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 36px;
  cursor: grab;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  overflow: hidden;
  touch-action: pan-y;
}

.hero-viewport:active {
  cursor: grabbing;
}

.hero-track {
  min-height: 218px;
  overflow: hidden;
  position: relative;
}

.hero-slide {
  align-content: center;
  display: grid;
  font-family: inherit;
  font-weight: 600;
  inset: 0;
  min-height: 218px;
  opacity: 0;
  padding: clamp(18px, 3.6vw, 46px);
  pointer-events: none;
  position: absolute;
  transform: translateX(28px) scale(0.985);
  transition:
    opacity 280ms ease,
    transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
  z-index: 1;
}

.hero-slide.is-before {
  transform: translateX(-28px) scale(0.985);
}

.hero-slide.is-after {
  transform: translateX(28px) scale(0.985);
}

.hero-track.is-instant .hero-slide {
  transition: none;
}

.hero-slide h2 {
  font-family: inherit;
  font-size: clamp(1.55rem, 3.2vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 0.95;
  max-width: 780px;
}

.hero-slide .hero-overview-title {
  font-size: clamp(1.55rem, 3.2vw, 2.8rem);
  font-weight: 600;
  line-height: 1.05;
}

.hero-kpi-slide {
  align-items: center;
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
}

.hero-kpi-slide h2 {
  color: var(--text);
  font-size: clamp(1.15rem, 2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
  max-width: 320px;
}

.hero-kpi-value,
.hero-next-customer {
  color: var(--gold);
  font-family: inherit;
  font-size: clamp(2.25rem, 5.4vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-align: right;
}

.hero-free-value {
  background: transparent;
  border: 0;
  justify-self: end;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  padding: 0;
}

.hero-completed-value {
  font-size: clamp(1.45rem, 3vw, 2.6rem);
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.hero-next-customer {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.hero-next-customer strong {
  color: var(--gold);
  font-family: inherit;
  font-size: clamp(1.85rem, 4.2vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.hero-next-customer .hero-next-meta {
  align-items: center;
  color: var(--text);
  display: inline-flex;
  font-size: clamp(0.95rem, 1.7vw, 1.25rem);
  gap: 0.45em;
  justify-content: flex-end;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.hero-next-customer .hero-next-meta span {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

.hero-next-customer .hero-next-meta i {
  color: rgba(212, 175, 55, 0.72);
  font-style: normal;
}

.hero-slide h2 span {
  color: var(--gold);
}

.hero-time-strip {
  align-items: baseline;
  display: inline-flex;
  gap: 14px;
  margin-top: 16px;
}

.hero-time-strip span {
  color: var(--text);
  font-size: clamp(0.92rem, 1.6vw, 1.12rem);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero-time-strip strong {
  color: var(--gold);
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.hero-slide h2 .hero-number,
.hero-slide h2 #today-count,
#accepted-section h2 span,
#active-section h2 span {
  font-family: inherit;
  font-size: 0.58em;
}

.hero-arrow {
  align-items: center;
  background: rgba(12, 12, 12, 0.58);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  font-size: 1.05rem;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  position: relative;
  transition:
    background-color 90ms ease,
    border-color 90ms ease,
    color 90ms ease,
    transform 70ms ease;
  width: 42px;
  z-index: 2;
}

.hero-arrow-prev {
  grid-column: 1;
  grid-row: 1;
}

.hero-arrow-next {
  grid-column: 4;
  grid-row: 1;
}

.hero-mini-calendar {
  align-self: center;
  background: #050505;
  border: 1px solid rgba(212, 175, 55, 0.14);
  border-radius: 20px;
  display: grid;
  gap: 6px;
  grid-column: 3;
  grid-row: 1;
  grid-template-columns: repeat(7, 26px);
  padding: 12px;
}

.hero-mini-date {
  align-items: center;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 10px;
  color: var(--gold);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 900;
  height: 26px;
  justify-content: center;
  padding: 0;
  transition:
    background-color 120ms ease,
    border-color 120ms ease,
    color 120ms ease,
    transform 80ms ease;
}

.hero-mini-date:hover,
.hero-mini-date.is-selected {
  background: rgba(212, 175, 55, 0.16);
  border-color: rgba(212, 175, 55, 0.42);
  color: #ffe7a0;
}

.hero-mini-date:active {
  transform: scale(0.96);
}

.hero-indicators {
  display: flex;
  gap: 7px;
  grid-column: 2;
  grid-row: 2;
  justify-content: center;
  margin-top: -2px;
  pointer-events: auto;
  position: relative;
  z-index: 3;
}

.hero-indicators button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  height: 24px;
  margin: -8.5px;
  padding: 0;
  position: relative;
  transition:
    width 180ms ease;
  width: 24px;
}

.hero-indicators button::after {
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: 999px;
  content: "";
  height: 7px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    width 180ms ease;
  width: 7px;
}

.hero-indicators button.is-active {
  width: 39px;
}

.hero-indicators button.is-active::after {
  background: var(--gold);
  border-color: rgba(212, 175, 55, 0.42);
  transform: translate(-50%, calc(-50% - 1px));
  width: 22px;
}

.hero-arrow:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.32);
  color: var(--gold);
}

.hero-arrow:active {
  transform: translateY(1px) scale(0.982);
}

.salon-illustration {
  color: rgba(212, 175, 55, 0.42);
  pointer-events: none;
  position: absolute;
}

.salon-illustration svg {
  display: block;
  height: 100%;
  width: 100%;
}

.salon-illustration circle,
.salon-illustration path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.salon-illustration-scissors {
  --template-icon-size: 112px;
  height: 112px;
  opacity: 0.18;
  right: 26px;
  top: 20px;
  transform: rotate(-7deg);
  width: 112px;
}

.salon-illustration-comb {
  height: 76px;
  opacity: 0.16;
  right: 14px;
  top: 14px;
  transform: rotate(8deg);
  width: 76px;
}

.metric-grid {
  display: grid;
  align-content: center;
  gap: 12px;
  max-width: 520px;
}

.metric-pill {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.14);
  border-radius: 24px;
  display: grid;
  gap: 7px;
  padding: 18px 20px;
  position: relative;
}

.metric-pill.is-new-booking,
.hero-slide.is-new-booking {
  animation: new-booking-pulse 900ms ease both;
}

.metric-pill.is-new-booking::after,
.hero-slide.is-new-booking::after {
  animation: new-booking-plus 900ms ease both;
  color: var(--gold);
  content: "+1";
  font-size: 0.82rem;
  font-weight: 900;
  position: absolute;
  right: 18px;
  top: 14px;
}

.metric-pill span {
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.metric-pill strong {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  font-weight: 600;
}

.stats-row {
  background:
    radial-gradient(circle at 0% 0%, rgba(212, 175, 55, 0.025), transparent 34%),
    rgba(0, 0, 0, 0.52);
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: 26px;
  box-shadow: none;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
  padding: 8px;
}

.stat-card {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 18px;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  gap: 5px;
  min-height: 58px;
  padding: 11px 13px;
  text-align: left;
  transition:
    background-color 90ms ease,
    border-color 90ms ease,
    color 90ms ease,
    transform 90ms ease;
}

.stat-card span {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.stat-card strong {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.28rem, 2.2vw, 1.78rem);
  font-weight: 600;
  line-height: 1;
}

.stat-card:hover,
.stat-card.is-active {
  background: rgba(212, 175, 55, 0.07);
  border-color: rgba(212, 175, 55, 0.08);
  color: var(--gold);
}

.stat-card:active {
  box-shadow:
    inset 0 2px 7px rgba(0, 0, 0, 0.2),
    0 4px 10px rgba(0, 0, 0, 0.1);
  transform: translateY(1px) scale(0.982);
}

.block-form option {
  background: #0a0a0a;
  color: var(--text);
}

.panel-toggle {
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  min-height: 38px;
  padding: 9px 14px;
  transition:
    background-color 90ms ease,
    border-color 90ms ease,
    color 90ms ease,
    transform 90ms ease;
}

.panel-toggle:hover {
  background: rgba(212, 175, 55, 0.06);
  border-color: rgba(212, 175, 55, 0.22);
  color: var(--gold);
  transform: translateY(-1px);
}

.panel-toggle {
  align-items: center;
  display: inline-flex;
  flex-shrink: 0;
  font-size: 1rem;
  height: 38px;
  justify-content: center;
  padding: 0;
  width: 38px;
}

.form-message {
  color: var(--muted);
  margin: 0 0 12px;
  min-height: 0;
  opacity: 1;
  transform: translate(-50%, 0);
  transition:
    opacity 240ms ease,
    transform 240ms ease;
}

.form-message:empty {
  display: none;
}

.form-message[data-state] {
  align-items: center;
  background: rgba(0, 0, 0, 0.46);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: inline-flex;
  font-size: 0.85rem;
  gap: 8px;
  left: 50%;
  max-width: min(420px, calc(100vw - 32px));
  padding: 10px 12px;
  pointer-events: none;
  position: fixed;
  bottom: 22px;
  z-index: 60;
  animation: notification-enter 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.form-message.is-hiding {
  opacity: 0;
  transform: translate(-50%, 12px);
}

.form-message[data-state]::before {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 900;
  height: 18px;
  justify-content: center;
  width: 18px;
}

.form-message[data-state="success"] {
  background: rgba(212, 175, 55, 0.05);
  border-color: rgba(212, 175, 55, 0.18);
  color: #8f7324;
}

.form-message[data-state="success"]::before {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold);
  content: "✓";
}

.form-message[data-state="error"] {
  background: rgba(213, 139, 112, 0.05);
  border-color: rgba(213, 139, 112, 0.2);
  color: var(--danger);
}

.form-message[data-state="error"]::before {
  background: rgba(213, 139, 112, 0.12);
  color: var(--danger);
  content: "!";
}

@keyframes notification-enter {
  from {
    opacity: 0;
    transform: translate(-50%, 14px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.workspace-grid {
  align-items: start;
  background: transparent;
  border-radius: 38px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  padding: 0;
}

.workspace-column {
  display: grid;
  gap: 12px;
}

.main-column {
  grid-column: span 9;
}

.side-column {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 30px;
  box-shadow: none;
  gap: 0;
  grid-column: span 3;
  overflow: visible;
  padding: 4px;
}

.dashboard-panel {
  background: rgba(0, 0, 0, 0.62);
  border: 1px solid rgba(212, 175, 55, 0.075);
  border-radius: 32px;
  box-shadow: none;
  padding: 28px;
  scroll-margin-top: 20px;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.dashboard-panel.is-highlighted {
  border-color: rgba(212, 175, 55, 0.1);
  box-shadow: none;
}

.dashboard-panel:hover {
  border-color: rgba(212, 175, 55, 0.12);
}

.dashboard-panel-primary {
  height: auto;
  min-height: auto;
  padding: clamp(28px, 3.2vw, 40px);
}

#accepted-section,
#active-section,
#accepted-section .panel-body,
#active-section .panel-body,
#accepted-section .request-list,
#active-section .request-list,
#accepted-section .timeline-overview,
#accepted-section .timeline-group,
#accepted-section .timeline-slots {
  height: auto;
  min-height: auto;
}

.request-overview-stream {
  display: grid;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.overview-list .request-card {
  background: transparent;
  border-color: rgba(212, 175, 55, 0.06);
  border-radius: 18px;
  padding: 14px 0;
}

.dashboard-panel-compact {
  background: rgba(0, 0, 0, 0.7);
  border-color: rgba(212, 175, 55, 0.07);
  box-shadow: none;
  padding: 18px 16px;
}

.side-column .dashboard-panel-compact {
  border-radius: 24px;
  position: relative;
}

.opening-hours-panel {
  background: rgba(0, 0, 0, 0.62);
  display: none;
}

.side-column .dashboard-panel-compact + .dashboard-panel-compact::before {
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.09), transparent);
  content: "";
  height: 1px;
  left: 16px;
  position: absolute;
  right: 16px;
  top: 0;
}

.dashboard-panel-compact h2 {
  font-size: clamp(1.02rem, 1.4vw, 1.22rem);
}

#blocked-section {
  border-color: rgba(212, 175, 55, 0.07);
  box-shadow: none;
  order: 1;
  padding-top: 14px;
}

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

.section-head-compact {
  align-items: center;
  margin-bottom: 12px;
}

.chart-range {
  background: rgba(0, 0, 0, 0.52);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 999px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
}

.chart-range button {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--faint);
  cursor: pointer;
  font-size: 0.66rem;
  font-weight: 900;
  min-height: 28px;
  padding: 6px 8px;
  transition:
    background-color 90ms ease,
    border-color 90ms ease,
    box-shadow 90ms ease,
    color 90ms ease,
    transform 70ms ease;
}

.chart-range button:hover,
.chart-range button.is-active {
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.2);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  color: var(--gold);
}

.chart-range button:active,
.chart-range button.is-active {
  box-shadow:
    inset 0 2px 7px rgba(0, 0, 0, 0.18),
    0 4px 10px rgba(0, 0, 0, 0.08);
  transform: translateY(1px) scale(0.982);
}

.section-head-copy {
  min-width: 0;
}

.section-actions {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}

.panel-body {
  display: grid;
  gap: 16px;
}

.quick-head {
  align-items: center;
  display: grid;
  gap: 9px;
  grid-template-columns: auto 1fr;
}

.quick-head .card-label {
  margin: 0;
}

.quick-grid-icon {
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;
  display: grid;
  gap: 3px;
  grid-template-columns: repeat(2, 5px);
  height: 32px;
  place-content: center;
  width: 32px;
}

.quick-grid-icon i {
  background: var(--gold);
  border-radius: 2px;
  height: 5px;
  opacity: 0.86;
  width: 5px;
}

.quick-actions {
  display: grid;
  gap: 6px;
  position: relative;
}

.quick-actions::before {
  content: none;
}

.quick-actions:has(.quick-link:nth-child(2).is-active)::before {
  transform: translateY(45px);
}

.quick-actions:has(.quick-link:nth-child(3).is-active)::before {
  transform: translateY(90px);
}

.quick-actions:has(.quick-link:nth-child(4).is-active)::before {
  transform: translateY(135px);
}

.quick-actions:has(.quick-link:nth-child(5).is-active)::before {
  transform: translateY(180px);
}

.quick-actions:has(.quick-link:nth-child(6).is-active)::before {
  transform: translateY(225px);
}

.quick-link {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  justify-content: flex-start;
  min-height: 36px;
  padding: 8px 4px;
  position: relative;
  text-align: left;
  text-decoration: none;
  transition:
    background-color 90ms ease,
    border-color 90ms ease,
    box-shadow 90ms ease,
    color 90ms ease,
    transform 70ms ease;
  z-index: 1;
}

.quick-link::after {
  content: none;
}

.quick-link:hover {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: var(--gold);
  transform: none;
}

.quick-link.is-active {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: var(--gold);
  transform: none;
}

.quick-link:active {
  box-shadow: none;
  transform: none;
}

.quick-link:hover::after,
.quick-link.is-active::after {
  color: var(--gold);
  opacity: 1;
}

.analytics-drawer {
  background:
    radial-gradient(circle at 0% 0%, rgba(212, 175, 55, 0.06), transparent 34%),
    rgba(0, 0, 0, 0.7);
  border-left: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 30px 0 0 30px;
  box-shadow: -28px 0 60px rgba(0, 0, 0, 0.22);
  max-width: min(340px, calc(100vw - 34px));
  min-height: 100vh;
  padding: 24px;
  pointer-events: none;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(102%);
  transition:
    opacity 280ms ease,
    transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 0ms linear 320ms;
  opacity: 0;
  visibility: hidden;
  will-change: opacity, transform;
  width: 340px;
  z-index: 4;
}

body.analytics-open .dashboard-shell {
  margin-right: min(360px, calc(100vw - 34px));
  max-width: calc(1280px - 260px);
  padding-right: 18px;
}

body.analytics-open .analytics-drawer {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  transition-delay: 0ms;
  visibility: visible;
}

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

.analytics-drawer-head h2 {
  margin: 4px 0 0;
}

.analytics-close {
  align-items: center;
  background: rgba(0, 0, 0, 0.36);
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  font-size: 1.25rem;
  height: 36px;
  justify-content: center;
  line-height: 1;
  transition:
    background-color 120ms ease,
    transform 90ms ease;
  width: 36px;
}

.analytics-close:hover {
  background: rgba(212, 175, 55, 0.1);
}

.analytics-close:active {
  transform: translateY(1px) scale(0.96);
}

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

.analytics-card {
  background: rgba(0, 0, 0, 0.56);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 16px;
  display: grid;
  gap: 4px;
  padding: 10px;
}

.analytics-card span {
  color: var(--faint);
  font-size: 0.66rem;
  font-weight: 900;
}

.analytics-card strong {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}

.dashboard-sidebar .analytics-drawer {
  background:
    radial-gradient(circle at 0% 0%, rgba(212, 175, 55, 0.08), transparent 42%),
    rgba(0, 0, 0, 0.44);
  border: 1px solid transparent;
  border-radius: 22px;
  box-sizing: border-box;
  box-shadow: none;
  margin: 0;
  max-height: 0;
  max-width: 100%;
  min-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 14px;
  pointer-events: none;
  position: static;
  right: auto;
  top: auto;
  transform: none;
  transition:
    max-height 260ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 180ms ease,
    padding 180ms ease,
    border-color 180ms ease,
    visibility 0ms linear 260ms;
  visibility: hidden;
  width: 100%;
  will-change: max-height, opacity;
  z-index: auto;
}

body.analytics-open .dashboard-sidebar .analytics-drawer {
  border-color: rgba(212, 175, 55, 0.14);
  max-height: 360px;
  opacity: 1;
  padding: 14px;
  pointer-events: auto;
  transition-delay: 0ms;
  visibility: visible;
}

.dashboard-sidebar .analytics-drawer-head {
  gap: 10px;
  margin-bottom: 12px;
}

.dashboard-sidebar .analytics-drawer-head h2 {
  font-size: 1.12rem;
  margin-top: 2px;
}

.dashboard-sidebar .analytics-grid {
  gap: 8px;
  margin-top: 0;
}

.dashboard-sidebar .analytics-card {
  background: rgba(0, 0, 0, 0.34);
  border-color: rgba(212, 175, 55, 0.12);
  padding: 9px;
}

.schedule-calendar {
  margin-bottom: 6px;
  padding-bottom: 2px;
}

.schedule-layout {
  align-items: stretch;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(178px, 0.42fr) minmax(0, 1fr);
}

.schedule-date-panel,
.schedule-time-panel {
  background: rgba(0, 0, 0, 0.48);
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: 22px;
  padding: 12px;
}

.schedule-month {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.schedule-weekdays {
  color: var(--faint);
  display: grid;
  font-size: 0.56rem;
  font-weight: 900;
  gap: 3px;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 5px;
  text-align: center;
}

.schedule-day-buttons {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.schedule-day {
  background: rgba(0, 0, 0, 0.36);
  border: 1px solid rgba(212, 175, 55, 0.07);
  border-radius: 14px;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  gap: 1px;
  min-height: 44px;
  padding: 6px 4px;
  transition:
    background-color 120ms ease,
    border-color 120ms ease,
    color 120ms ease,
    transform 90ms ease;
}

.schedule-day strong {
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 900;
}

.schedule-day span {
  color: var(--faint);
  font-size: 0.52rem;
  font-weight: 900;
  text-transform: uppercase;
}

.schedule-day:hover,
.schedule-day.is-selected {
  background: rgba(212, 175, 55, 0.095);
  border-color: rgba(212, 175, 55, 0.18);
  color: var(--gold);
}

.schedule-day:active,
.schedule-day.is-selected {
  transform: translateY(1px);
}

.schedule-time-head {
  align-items: baseline;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.schedule-time-head span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.schedule-time-head strong {
  color: var(--text);
  font-size: 0.66rem;
  font-weight: 900;
}

.schedule-time-list {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  max-height: 210px;
  overflow: auto;
}

.schedule-slot {
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(212, 175, 55, 0.08);
  border-radius: 16px;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  gap: 2px;
  min-height: 46px;
  padding: 7px 8px;
  text-align: left;
  transition:
    background-color 120ms ease,
    border-color 120ms ease,
    transform 90ms ease;
}

.schedule-slot strong {
  color: var(--text);
  font-size: 0.64rem;
  font-weight: 900;
}

.schedule-slot span {
  font-size: 0.62rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-slot small {
  color: var(--faint);
  font-size: 0.55rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-slot:hover,
.schedule-slot.is-selected {
  border-color: rgba(212, 175, 55, 0.18);
  transform: translateY(-1px);
}

.schedule-slot:active,
.schedule-slot.is-selected {
  transform: translateY(1px);
}

.schedule-slot[data-state="free"] {
  background: rgba(0, 0, 0, 0.34);
  border-color: rgba(212, 175, 55, 0.22);
  color: rgba(244, 230, 186, 0.92);
}

.schedule-slot[data-state="booked"] {
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(212, 175, 55, 0.1);
  color: var(--text);
}

.schedule-slot[data-state="blocked"] {
  background: rgba(255, 136, 88, 0.07);
  border-color: rgba(255, 136, 88, 0.12);
  color: rgba(255, 204, 180, 0.9);
}

.schedule-slot[data-state="closed"] {
  background: transparent;
  border-color: transparent;
  color: rgba(255, 255, 255, 0.18);
}

.schedule-empty {
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 800;
  margin: 0;
}

.panel-body[hidden] {
  display: none;
}

.panel-body-collapsible {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  overflow: hidden;
  transition:
    grid-template-rows 220ms ease,
    opacity 180ms ease,
    margin-top 180ms ease;
}

.panel-body-collapsible > * {
  min-height: 0;
}

.panel-body-collapsible.is-collapsed {
  grid-template-rows: 0fr;
  margin-top: 0;
  opacity: 0;
  pointer-events: none;
}

.request-list,
.blocked-list {
  display: grid;
  gap: 8px;
}

.timeline-overview {
  display: grid;
  gap: 14px;
}

.timeline-group {
  display: grid;
  gap: 8px;
}

.timeline-group > h3 {
  color: rgba(255, 255, 255, 0.58);
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.timeline-group-title {
  align-items: baseline;
  display: inline-flex;
  gap: 10px;
}

.timeline-group-title time {
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
}

.timeline-slots {
  display: grid;
  gap: 4px;
}

.timeline-slots.is-today {
  overflow: visible;
  position: relative;
}

.timeline-now-marker {
  align-items: center;
  color: var(--gold);
  display: flex;
  gap: 8px;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  transform: translateY(var(--now-offset, 0));
  transition: transform 260ms linear;
  z-index: 4;
}

.timeline-now-marker i {
  background: var(--gold);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.34);
  display: block;
  height: 8px;
  width: 8px;
}

.timeline-now-marker strong {
  background: #0a0a0a;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 999px;
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  text-transform: uppercase;
}

.timeline-slot {
  align-items: center;
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(212, 175, 55, 0.035);
  border-radius: 18px;
  display: grid;
  gap: 8px;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  padding: 7px 10px;
  transition: background-color 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.timeline-slot[data-state="free"] {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.032), rgba(0, 0, 0, 0.66));
  border-color: rgba(212, 175, 55, 0.13);
}

.timeline-slot[data-state="booked"] {
  background: rgba(0, 0, 0, 0.74);
  border-color: rgba(212, 175, 55, 0.055);
}

.timeline-slot[data-state="blocked"] {
  background: rgba(36, 14, 6, 0.5);
  border-color: rgba(255, 136, 88, 0.1);
}

.timeline-slot.is-now {
  border-color: rgba(212, 175, 55, 0.58);
  box-shadow: inset 3px 0 0 rgba(212, 175, 55, 0.8);
}

.timeline-slot.is-completing {
  animation: completed-slot-pulse 650ms ease both;
}

.timeline-slot.is-past {
  filter: saturate(0.55);
  opacity: 0.34;
}

.timeline-time {
  display: grid;
  gap: 4px;
}

.timeline-time strong {
  color: var(--gold);
  font-size: 1.22rem;
  font-weight: 950;
  line-height: 1;
}

.timeline-time span {
  background: rgba(212, 175, 55, 0.13);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.55rem;
  font-weight: 900;
  justify-self: start;
  letter-spacing: 0.08em;
  padding: 3px 6px;
  text-transform: uppercase;
}

.timeline-content {
  min-width: 0;
}

.timeline-content span:not(.status-badge) {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-content h3 {
  color: var(--text);
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 800;
  margin-top: 2px;
}

.timeline-content p {
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 600;
  margin: 3px 0 0;
}

.request-card,
.blocked-item {
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(212, 175, 55, 0.035);
  border-radius: 22px;
  box-shadow: none;
  padding: 11px 12px;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.request-card:hover,
.blocked-item:hover {
  border-color: rgba(212, 175, 55, 0.22);
  transform: translateY(-1px);
}

.request-card:hover {
  background: rgba(0, 0, 0, 0.78);
}

.appointment-inline-detail {
  animation: appointment-inline-pop 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  border-top: 1px solid rgba(212, 175, 55, 0.12);
  display: block;
  grid-column: 1 / -1;
  margin-top: 2px;
  padding-top: 10px;
  transform-origin: top center;
}

.appointment-inline-detail dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.appointment-inline-detail div {
  align-items: baseline;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.appointment-inline-detail dt,
.appointment-inline-detail dd {
  margin: 0;
}

.appointment-inline-detail dt {
  color: var(--gold);
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.appointment-inline-detail dd {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 750;
  text-align: right;
}

@media (max-width: 560px) {
  .appointment-inline-detail div {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .appointment-inline-detail dd {
    text-align: left;
  }
}

.request-card.is-moving-out {
  animation: request-move-out 280ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  pointer-events: none;
}

.request-card.is-status-moving {
  border-color: rgba(212, 175, 55, 0.28);
  pointer-events: none;
  will-change: transform, opacity;
}

.request-list.is-flowing .request-card {
  animation: request-flow-in 360ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.request-list.is-flowing .timeline-slot.is-new-appointment,
.timeline-slot.is-new-appointment {
  animation: new-appointment-enter 680ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.request-list.is-new-booking .request-card {
  animation: new-booking-card 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes request-move-out {
  to {
    opacity: 0;
    transform: translateX(86px) scale(0.985);
  }
}

@keyframes appointment-inline-pop {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes new-booking-pulse {
  0% {
    background: rgba(0, 0, 0, 0.58);
  }

  28% {
    background: rgba(212, 175, 55, 0.12);
  }

  100% {
    background: rgba(0, 0, 0, 0.58);
  }
}

@keyframes completed-slot-pulse {
  0% {
    border-color: rgba(212, 175, 55, 0.18);
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
  }

  34% {
    border-color: rgba(212, 175, 55, 0.78);
    box-shadow:
      inset 0 0 0 1px rgba(212, 175, 55, 0.42),
      0 0 0 3px rgba(212, 175, 55, 0.14);
  }

  100% {
    border-color: rgba(212, 175, 55, 0.08);
    box-shadow: 0 0 0 8px rgba(212, 175, 55, 0);
  }
}

@keyframes opening-hours-gold-pulse {
  0% {
    border-radius: 16px;
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
  }

  30% {
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.52);
  }

  100% {
    border-radius: 16px;
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
  }
}

@keyframes new-booking-plus {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }

  25% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@keyframes new-booking-card {
  0% {
    transform: translateY(8px);
  }

  35% {
    transform: translateY(0);
  }
}

@keyframes request-flow-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes new-appointment-enter {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }

  34% {
    border-color: rgba(212, 175, 55, 0.46);
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.12);
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    border-color: rgba(255, 255, 255, 0.028);
    box-shadow: none;
    opacity: 1;
    transform: translateY(0);
  }
}

.request-card {
  align-items: start;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.request-card-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.compact-card,
.side-column .request-card {
  grid-template-columns: 1fr;
  padding: 16px;
}

.request-main {
  display: grid;
  gap: 10px;
}

.request-summary {
  display: grid;
  gap: 7px;
}

.request-summary h3 {
  color: var(--text);
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 800;
  margin: 0;
}

.request-summary p {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 600;
  margin: 0;
}

.request-summary-time {
  font-size: 1.08rem;
  font-weight: 950;
}

.request-summary-service {
  font-size: 0.62rem;
  font-weight: 600;
}

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

.compact-card .request-meta,
.side-column .request-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.request-meta dt {
  color: var(--faint);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.request-meta dd {
  color: #d8d0c2;
  line-height: 1.35;
  margin: 0;
  overflow-wrap: anywhere;
}

.status-badge {
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 999px;
  color: var(--gold);
  display: inline-flex;
  font-size: 0.52rem;
  font-weight: 800;
  margin-bottom: 5px;
  padding: 2px 6px;
}

.status-badge[data-status="accepted"] {
  background: rgba(95, 206, 140, 0.08);
  border-color: rgba(95, 206, 140, 0.28);
  color: #78d69b;
}

.status-badge[data-status="active"] {
  background: rgba(95, 206, 140, 0.1);
  border-color: rgba(95, 206, 140, 0.3);
  color: #78d69b;
}

.status-badge[data-status="counteroffer"] {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.28);
  color: var(--gold);
}

.status-badge[data-status="pending"] {
  background: rgba(0, 0, 0, 0.52);
  border-color: rgba(212, 175, 55, 0.1);
  color: rgba(255, 248, 236, 0.66);
}

.status-badge[data-status="rejected"],
.status-badge[data-status="blocked"],
.status-badge[data-status="cancelled"] {
  border-color: rgba(213, 139, 112, 0.34);
  color: var(--danger);
}

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

.appointment-status-cell {
  align-items: center;
  align-self: center;
  display: inline-flex;
  gap: 6px;
  justify-content: center;
  margin: 0;
  white-space: nowrap;
}

.appointment-actions-bar {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-content: stretch;
  min-width: min(100%, 220px);
}

.appointment-actions-primary,
.appointment-open-action {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.appointment-actions-primary {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.appointment-open-action {
  justify-content: flex-end;
}

.appointment-actions-bar .compact-open-button {
  white-space: nowrap;
}

@media (min-width: 1041px) {
  #accepted-section,
  #active-section,
  #request-overview-section {
    height: auto;
    margin-left: auto;
    margin-right: auto;
    max-width: 540px;
    min-height: 0;
    width: 100%;
  }

  #accepted-section,
  #active-section {
    padding: 20px;
  }

  #accepted-section .panel-body,
  #active-section .panel-body,
  #accepted-section .request-list,
  #active-section .request-list,
  #request-overview-section .request-list,
  #accepted-section .timeline-overview,
  #accepted-section .timeline-group,
  #accepted-section .timeline-slots {
    height: auto;
    min-height: 0;
  }

  #accepted-section .request-list,
  #active-section .request-list,
  #request-overview-section .request-list {
    gap: 5px;
  }

  #accepted-section .timeline-overview {
    gap: 10px;
  }

  #accepted-section .timeline-group {
    gap: 5px;
  }

  #accepted-section .timeline-slots {
    gap: 3px;
  }

  #accepted-section .timeline-slot {
    gap: 6px;
    grid-template-columns: 68px minmax(0, 1fr) auto;
    padding: 5px 8px;
    width: 100%;
  }

  #accepted-section .timeline-time {
    gap: 2px;
  }

  #accepted-section .timeline-time strong {
    font-size: 1.28rem;
  }

  #accepted-section .timeline-time span {
    font-size: 0.5rem;
    padding: 2px 5px;
  }

  #accepted-section .timeline-content h3 {
    font-size: 0.92rem;
    font-weight: 700;
    margin-top: 0;
  }

  #accepted-section .timeline-content p {
    font-size: 0.56rem;
    margin-top: 2px;
  }

  #accepted-section .timeline-content span:not(.status-badge) {
    font-size: 0.62rem;
  }

  #accepted-section .request-card,
  #active-section .request-card,
  #request-overview-section .request-card {
    gap: 8px;
    padding: 8px 10px;
    width: 100%;
  }

  #accepted-section .request-card-head,
  #active-section .request-card-head,
  #request-overview-section .request-card-head {
    gap: 8px;
  }

  #accepted-section .request-summary,
  #active-section .request-summary,
  #request-overview-section .request-summary {
    gap: 4px;
  }

  #accepted-section .request-summary h3,
  #active-section .request-summary h3,
  #request-overview-section .request-summary h3 {
    font-size: 0.92rem;
    font-weight: 700;
  }

  #accepted-section .request-summary p,
  #active-section .request-summary p,
  #request-overview-section .request-summary p {
    font-size: 0.58rem;
  }

  #accepted-section .request-summary-time,
  #active-section .request-summary-time,
  #request-overview-section .request-summary-time {
    font-size: 1.16rem;
  }

  #accepted-section .request-summary-service,
  #active-section .request-summary-service,
  #request-overview-section .request-summary-service {
    font-size: 0.58rem;
  }

  #accepted-section .request-actions,
  #active-section .request-actions,
  #request-overview-section .request-actions {
    gap: 5px;
  }
}

.solo-action {
  justify-content: flex-start;
}

.action-button,
.block-form button {
  align-items: center;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 800;
  justify-content: center;
  min-height: 38px;
  padding: 9px 13px;
  transition:
    background-color 90ms ease,
    border-color 90ms ease,
    box-shadow 90ms ease,
    color 90ms ease,
    transform 70ms ease;
}

.action-button {
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(212, 175, 55, 0.12);
  color: #fff8ec;
}

.action-button.primary,
.block-form button {
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(212, 175, 55, 0.32);
  color: #fff8ec;
}

.action-button.warning {
  border-color: rgba(212, 175, 55, 0.28);
  color: #8f7324;
}

.action-button.danger {
  border-color: rgba(213, 139, 112, 0.34);
  color: var(--danger);
}

.action-button.icon-action {
  font-size: 1rem;
  font-weight: 900;
  height: 38px;
  line-height: 1;
  min-height: 38px;
  overflow: visible;
  padding: 0;
  width: 38px;
}

.action-button.icon-action span {
  align-items: center;
  display: inline-flex;
  height: 1.2em;
  justify-content: center;
  line-height: 1;
  width: 1.2em;
}

.action-button.icon-action.done {
  background: rgba(0, 0, 0, 0.72);
  border-color: rgba(82, 171, 118, 0.28);
  color: #5fce8c;
}

.action-button.icon-action.delay {
  background: rgba(0, 0, 0, 0.72);
  border-color: rgba(212, 175, 55, 0.26);
  color: var(--gold);
}

.action-button.icon-action.move {
  background: rgba(0, 0, 0, 0.72);
  border-color: rgba(212, 175, 55, 0.22);
  color: var(--gold);
}

.action-button.icon-action.delay svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 18px;
}

.delay-menu {
  background: rgba(0, 0, 0, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 16px;
  display: grid;
  gap: 4px;
  min-width: 156px;
  opacity: 0;
  padding: 6px;
  pointer-events: none;
  position: fixed;
  transform: translateY(4px);
  transition:
    opacity 140ms ease,
    transform 140ms ease;
  z-index: 30;
}

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

.delay-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.delay-menu button {
  background: transparent;
  border: 0;
  border-radius: 12px;
  color: rgba(255, 248, 236, 0.84);
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 8px 10px;
  text-align: left;
}

.delay-menu button:hover,
.delay-menu button:focus {
  background: rgba(212, 175, 55, 0.1);
  color: #fff8ec;
  outline: none;
}

.move-panel {
  background: rgba(0, 0, 0, 0.94);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 10px;
  max-height: calc(100dvh - 24px);
  min-width: min(280px, calc(100vw - 24px));
  opacity: 0;
  overflow-y: auto;
  padding: 12px;
  pointer-events: none;
  position: fixed;
  transform: translateY(5px) scale(0.985);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
  z-index: 32;
}

.move-panel[hidden] {
  display: none;
}

.move-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.move-panel-context {
  color: rgba(255, 248, 236, 0.78);
  display: grid;
  gap: 2px;
  font-size: 0.72rem;
}

.move-panel-context strong {
  color: var(--gold);
  font-size: 0.78rem;
}

.move-panel label {
  color: rgba(255, 248, 236, 0.72);
  display: grid;
  font-size: 0.72rem;
  font-weight: 800;
  gap: 5px;
}

.move-panel input,
.move-panel select,
.move-panel textarea {
  background: #000;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 12px;
  color: #fff8ec;
  font: inherit;
  min-height: 40px;
  padding: 8px 10px;
}

.move-panel select[name="time"] {
  display: none;
}

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

.move-time-option {
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 12px;
  color: rgba(255, 248, 236, 0.86);
  cursor: pointer;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 850;
  min-height: 40px;
  padding: 0 8px;
}

.move-time-option.is-selected,
.move-time-option:focus-visible {
  background: rgba(212, 175, 55, 0.14);
  border-color: rgba(212, 175, 55, 0.46);
  color: var(--gold);
  outline: none;
}

.move-time-empty {
  border: 1px dashed rgba(212, 175, 55, 0.18);
  border-radius: 12px;
  color: rgba(255, 248, 236, 0.62);
  font-size: 0.72rem;
  padding: 10px;
}

@media (max-width: 480px) {
  .move-time-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.move-panel textarea {
  min-height: 74px;
  resize: vertical;
}

.move-notify-option {
  align-items: center;
  display: flex !important;
  flex-direction: row;
  gap: 8px !important;
}

.move-notify-option input[type="checkbox"] {
  accent-color: var(--gold);
  min-height: auto;
  width: 16px;
}

.move-panel-actions {
  display: flex;
  gap: 8px;
}

.move-panel-actions button {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 999px;
  color: #fff8ec;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 850;
  min-height: 38px;
  padding: 0 12px;
}

.move-panel-actions button[type="submit"] {
  color: var(--gold);
}

.move-panel small {
  color: rgba(255, 190, 168, 0.86);
  font-size: 0.68rem;
}

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

body[data-role="demo"] .live-demo-events .event-list {
  max-height: 28rem;
  overflow-y: auto;
  overflow-wrap: anywhere;
}

body[data-role="demo"] .demo-activity-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

body[data-role="demo"] .demo-activity-actions button {
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 10px;
  color: #f0cf62;
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  min-height: 44px;
  padding: 8px 12px;
}

body[data-role="demo"] .demo-activity-actions button:focus-visible {
  outline: 2px solid #f0cf62;
  outline-offset: 3px;
}

body[data-role="demo"] .demo-activity-actions button:disabled {
  cursor: default;
  opacity: 0.5;
}

body[data-role="demo"] #demo-activity-status {
  font-size: 0.72rem;
  line-height: 1.5;
  margin: 10px 0 0;
}

@media (max-width: 768px) {
  body[data-role="demo"] .dashboard-shell > .live-demo-events {
    order: 3;
    margin-bottom: 20px;
  }

  body[data-role="demo"] .live-demo-events .event-list {
    max-height: 14rem;
  }
}

.appointment-event-card,
.event-empty {
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-radius: 16px;
  color: rgba(255, 248, 236, 0.78);
  margin: 0;
  padding: 12px;
}

.appointment-event-card {
  display: grid;
  gap: 7px;
}

.appointment-event-card.is-archived {
  opacity: 0.72;
}

.appointment-event-head,
.appointment-event-flow {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.appointment-event-head strong {
  color: #fff8ec;
  font-size: 0.82rem;
}

.appointment-event-head span,
.appointment-event-card small {
  color: rgba(255, 248, 236, 0.56);
  font-size: 0.68rem;
}

.appointment-event-card p {
  color: rgba(255, 248, 236, 0.7);
  font-size: 0.74rem;
  margin: 0;
}

.appointment-event-flow {
  justify-content: flex-start;
}

.appointment-event-flow span {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 800;
}

.event-archive-block {
  border-top: 1px solid rgba(212, 175, 55, 0.12);
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
}

.event-archive-block h3 {
  color: rgba(255, 248, 236, 0.72);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.delay-feedback {
  background: rgba(0, 0, 0, 0.94);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 999px;
  color: #fff8ec;
  font-size: 0.76rem;
  font-weight: 800;
  left: 12px;
  opacity: 0;
  padding: 8px 12px;
  pointer-events: none;
  position: fixed;
  top: 12px;
  transform: translateY(6px);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
  white-space: nowrap;
  z-index: 55;
}

.delay-feedback[hidden] {
  display: none;
}

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

.delay-feedback.is-hiding {
  opacity: 0;
  transform: translateY(6px);
}

.appointment-detail-overlay {
  align-items: stretch;
  background: rgba(0, 0, 0, 0.54);
  backdrop-filter: blur(3px);
  display: flex;
  inset: 0;
  justify-content: flex-end;
  opacity: 0;
  padding: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 300ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 90;
}

.appointment-detail-overlay[hidden] {
  display: none;
}

.appointment-detail-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.appointment-detail-card {
  background: rgba(3, 3, 3, 0.82);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 30px 0 0 30px;
  color: var(--text);
  height: 100%;
  max-width: 460px;
  overflow-y: auto;
  padding: clamp(28px, 4vw, 42px);
  position: relative;
  transform: translateX(34px);
  transition:
    opacity 300ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
  width: min(430px, 100vw);
  opacity: 0;
}

.appointment-detail-overlay.is-open .appointment-detail-card {
  opacity: 1;
  transform: translateX(0);
}

.appointment-detail-close {
  align-items: center;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 999px;
  color: var(--gold);
  cursor: pointer;
  display: inline-flex;
  font-size: 1.25rem;
  height: 38px;
  justify-content: center;
  position: absolute;
  right: 18px;
  top: 18px;
  touch-action: manipulation;
  width: 38px;
}

.appointment-detail-head {
  margin-bottom: 24px;
}

.appointment-detail-card h2 {
  color: var(--text);
  font-family: inherit;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  margin: 12px 46px 8px 0;
}

.appointment-detail-head p,
.appointment-detail-error p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.appointment-detail-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.appointment-detail-list div {
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  display: grid;
  gap: 4px;
  padding-top: 12px;
}

.appointment-detail-list dt {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.appointment-detail-list dd {
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
  margin: 0;
}

.appointment-detail-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 26px;
}

.appointment-detail-secondary {
  align-items: center;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.34);
  border-radius: 999px;
  color: var(--gold);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  touch-action: manipulation;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.appointment-detail-secondary:hover {
  background: rgba(212, 175, 55, 0.17);
  border-color: rgba(212, 175, 55, 0.48);
  transform: translateY(-1px);
}

.appointment-detail-error {
  padding: 34px 0 8px;
}

@media (max-width: 768px) {
  .appointment-detail-overlay {
    align-items: flex-end;
    background: transparent;
    backdrop-filter: none;
    justify-content: center;
    padding:
      0
      max(12px, env(safe-area-inset-right, 0px))
      max(12px, calc(env(safe-area-inset-bottom, 0px) + 12px))
      max(12px, env(safe-area-inset-left, 0px));
    pointer-events: none;
  }

  .appointment-detail-overlay.is-open {
    pointer-events: none;
  }

  .appointment-detail-card {
    -webkit-overflow-scrolling: touch;
    border-radius: 28px;
    height: auto;
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 24px);
    max-width: 430px;
    overscroll-behavior: contain;
    padding: 28px 20px calc(22px + env(safe-area-inset-bottom, 0px));
    pointer-events: auto;
    transform: translateY(calc(100% + 24px));
    width: min(100%, 430px);
  }

  .appointment-detail-overlay.is-open .appointment-detail-card {
    transform: translateY(0);
  }

  .appointment-detail-card h2 {
    font-size: 1.55rem;
    margin-right: 48px;
  }

  .appointment-detail-list {
    gap: 10px;
  }

  .appointment-detail-list div {
    gap: 3px;
    padding-top: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .appointment-detail-overlay,
  .appointment-detail-card {
    transition: none;
  }
}

.action-button:hover,
.block-form button:hover {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.13);
  transform: translateY(-1px);
}

.action-button:hover {
  background: rgba(212, 175, 55, 0.06);
  border-color: rgba(212, 175, 55, 0.2);
}

.action-button.primary:hover,
.block-form button:hover {
  background: rgba(0, 0, 0, 0.84);
  border-color: rgba(212, 175, 55, 0.46);
  color: #ffffff;
}

.action-button:active,
.block-form button:active,
.panel-toggle:active {
  box-shadow:
    inset 0 3px 8px rgba(0, 0, 0, 0.22),
    0 3px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(1px) scale(0.982);
}

.timeline-slot .action-button:active,
.schedule-slot:active {
  transition-duration: 0ms;
  transform: scale(0.97);
}

.timeline-overview:has(.timeline-slot .action-button:active) .timeline-slot:not(:has(.action-button:active)),
.schedule-time-list:has(.schedule-slot:active) .schedule-slot:not(:active) {
  filter: brightness(0.86);
  transition: filter 90ms ease;
}

.timeline-slot:has(.action-button:active),
.schedule-slot:active {
  border-color: rgba(212, 175, 55, 0.34);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.08);
}

#accepted-section .request-card:hover,
#accepted-section .request-card:focus,
#accepted-section .request-card:focus-visible,
#accepted-section .request-card:focus-within,
#accepted-section .request-card:active,
#active-section .request-card:hover,
#active-section .request-card:focus,
#active-section .request-card:focus-visible,
#active-section .request-card:focus-within,
#active-section .request-card:active,
#request-overview-section .request-card:hover,
#request-overview-section .request-card:focus,
#request-overview-section .request-card:focus-visible,
#request-overview-section .request-card:focus-within,
#request-overview-section .request-card:active,
#accepted-section .timeline-slot:hover,
#accepted-section .timeline-slot:focus,
#accepted-section .timeline-slot:focus-visible,
#accepted-section .timeline-slot:focus-within,
#accepted-section .timeline-slot:active,
#accepted-section .timeline-slot.is-selected {
  background: #000;
  color: var(--text);
}

#accepted-section .action-button:hover,
#accepted-section .action-button:focus,
#accepted-section .action-button:focus-visible,
#accepted-section .action-button:active,
#active-section .action-button:hover,
#active-section .action-button:focus,
#active-section .action-button:focus-visible,
#active-section .action-button:active,
#request-overview-section .action-button:hover,
#request-overview-section .action-button:focus,
#request-overview-section .action-button:focus-visible,
#request-overview-section .action-button:active {
  background: #000;
  color: var(--gold);
}

#accepted-section,
#active-section,
#request-overview-section {
  background: #000;
  box-shadow: none;
}

#accepted-section,
#active-section {
  border-color: rgba(212, 175, 55, 0.14);
}

#accepted-section:hover,
#active-section:hover {
  border-color: rgba(212, 175, 55, 0.18);
}

#accepted-section *,
#active-section *,
#request-overview-section * {
  box-shadow: none !important;
}

#accepted-section .timeline-slot,
#accepted-section .timeline-slot[data-state="free"],
#accepted-section .timeline-slot[data-state="booked"],
#accepted-section .timeline-slot[data-state="blocked"],
#accepted-section .request-card,
#active-section .request-card,
#request-overview-section .request-card {
  background: #000 !important;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 24px;
  box-shadow: none !important;
  padding: 6px 9px;
}

#accepted-section .request-list,
#active-section .request-list,
#request-overview-section .request-list,
#accepted-section .timeline-slots {
  gap: 4px;
}

#accepted-section .timeline-slot:hover,
#accepted-section .timeline-slot:focus,
#accepted-section .timeline-slot:focus-visible,
#accepted-section .timeline-slot:focus-within,
#accepted-section .timeline-slot:active,
#accepted-section .timeline-slot.is-selected,
#accepted-section .request-card:hover,
#accepted-section .request-card:focus,
#accepted-section .request-card:focus-visible,
#accepted-section .request-card:focus-within,
#accepted-section .request-card:active,
#active-section .request-card:hover,
#active-section .request-card:focus,
#active-section .request-card:focus-visible,
#active-section .request-card:focus-within,
#active-section .request-card:active,
#request-overview-section .request-card:hover,
#request-overview-section .request-card:focus,
#request-overview-section .request-card:focus-visible,
#request-overview-section .request-card:focus-within,
#request-overview-section .request-card:active {
  background: #050505 !important;
  color: var(--text);
}

#accepted-section .timeline-time strong,
#accepted-section .request-summary-time,
#active-section .request-summary-time,
#request-overview-section .request-summary-time {
  color: var(--gold);
}

#accepted-section .timeline-content h3,
#accepted-section .request-summary h3,
#active-section .request-summary h3,
#request-overview-section .request-summary h3 {
  color: #ffffff;
}

#accepted-section .timeline-content p,
#accepted-section .request-summary p,
#accepted-section .request-summary-service,
#active-section .request-summary p,
#active-section .request-summary-service,
#request-overview-section .request-summary p,
#request-overview-section .request-summary-service {
  color: rgba(255, 255, 255, 0.68);
}

#accepted-section .status-badge,
#request-overview-section .status-badge,
#active-section .status-badge,
#request-overview-section .status-badge {
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.34);
  color: var(--gold);
}

#accepted-section .status-badge[data-status="accepted"],
#active-section .status-badge[data-status="accepted"],
#active-section .status-badge[data-status="active"],
#request-overview-section .status-badge[data-status="accepted"],
#request-overview-section .status-badge[data-status="active"] {
  background: rgba(95, 206, 140, 0.08);
  border-color: rgba(95, 206, 140, 0.28);
  color: #78d69b;
}

button:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.46;
  transform: none;
}

.empty-state {
  background: rgba(0, 0, 0, 0.52);
  border-radius: 22px;
  color: var(--faint);
  margin: 0;
  padding: 22px;
  text-align: center;
}

.calendar-empty-state {
  align-items: center;
  background: #050505;
  border: 1px solid rgba(212, 175, 55, 0.12);
  display: grid;
  gap: 10px;
  justify-items: center;
}

.calendar-empty-state svg {
  flex-shrink: 0;
  height: 56px;
  width: 76px;
}

.calendar-lookout-scan {
  animation: calendar-lookout-scan 5.6s ease-in-out infinite;
  transform-box: view-box;
  transform-origin: 31px 32px;
}

@keyframes calendar-lookout-scan {
  0%, 100% { transform: rotate(-8deg); }
  28%, 42% { transform: rotate(10deg); }
  72%, 86% { transform: rotate(-8deg); }
}

@media (prefers-reduced-motion: reduce) {
  .calendar-lookout-scan {
    animation: none;
  }
}

.calendar-empty-state circle,
.calendar-empty-state path {
  fill: none;
  stroke: rgba(212, 175, 55, 0.84);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.2;
}

.calendar-empty-state span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.block-form {
  display: grid;
  gap: 9px;
  grid-template-columns: 1fr;
  margin: 0;
}

.opening-hours-compact {
  display: grid;
  gap: 7px;
  position: relative;
}

.today-hero.is-gold-pulse,
.dashboard-panel.is-gold-pulse,
.opening-hours-compact.is-gold-pulse,
.analytics-drawer.is-gold-pulse,
.form-message.is-gold-pulse {
  animation: opening-hours-gold-pulse 850ms ease both;
}

.blocked-times-compact {
  display: grid;
  gap: 10px;
}

.opening-hours-compact p,
.blocked-times-compact p {
  color: var(--faint);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  margin: 0;
  text-transform: uppercase;
}

.opening-hours-grid {
  display: grid;
  gap: 4px;
  grid-template-columns: 1fr;
}

.opening-hours-item {
  align-items: center;
  background: rgba(0, 0, 0, 0.52);
  border: 1px solid rgba(212, 175, 55, 0.09);
  border-radius: 12px;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  min-height: 24px;
  padding: 5px 8px;
}

.opening-hours-item span,
.opening-hours-item strong {
  font-size: 0.66rem;
  line-height: 1;
}

.opening-hours-item span {
  color: var(--faint);
  font-weight: 900;
  min-width: 76px;
}

.opening-hours-item strong {
  color: var(--muted);
  font-weight: 800;
}

.block-form label {
  display: grid;
  gap: 7px;
}

.block-form span {
  color: var(--faint);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.block-form input,
.block-form select {
  background: rgba(12, 12, 12, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 16px;
  color: var(--text);
  min-height: 40px;
  outline: none;
  padding: 9px 12px;
}

.block-form input:hover,
.block-form select:hover,
.block-form input:focus,
.block-form select:focus {
  border-color: rgba(212, 175, 55, 0.34);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.06);
}

.blocked-item {
  align-items: start;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
}

.blocked-item strong,
.blocked-item span {
  display: block;
}

.blocked-item strong {
  font-size: 0.94rem;
}

.blocked-item span,
.blocked-item p {
  color: var(--muted);
  font-size: 0.9rem;
}

.blocked-item p {
  margin: 0;
}

@media (max-width: 1120px) {
}

@media (max-width: 1040px) {
  body.analytics-open .dashboard-shell {
    margin-right: min(280px, calc(100vw - 90px));
    max-width: calc(100vw - min(280px, calc(100vw - 90px)));
  }

  .analytics-drawer {
    width: min(280px, calc(100vw - 90px));
  }

  .dashboard-sidebar {
    border-radius: 28px;
    grid-template-columns: 1fr;
    left: auto;
    right: 18px;
    top: 118px;
    width: min(220px, calc(100vw - 52px));
  }

  .dashboard-sidebar .quick-actions {
    display: grid;
    overflow-x: visible;
  }

  .dashboard-sidebar .quick-actions::before {
    display: none;
  }

  .dashboard-sidebar .quick-link {
    flex: initial;
  }

  .dashboard-sidebar .quick-link.is-active {
    background: transparent;
    border-color: transparent;
  }

  .dashboard-shell {
    margin: 0;
    padding-top: 48px;
  }

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

  .workspace-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    width: 100%;
  }

  .main-column,
  .side-column {
    grid-column: auto;
    max-width: 100%;
    width: 100%;
  }

  .side-column {
    gap: 12px;
    overflow: visible;
  }

  .today-hero,
  .dashboard-panel,
  .dashboard-panel-primary,
  .dashboard-panel-compact {
    max-width: 100%;
    width: 100%;
  }

  .side-column .dashboard-panel-compact + .dashboard-panel-compact::before {
    display: none;
  }

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

}

@media (max-width: 767px) {
  html,
  body {
    overflow-x: hidden;
  }

  .dashboard-shell {
    max-width: 100%;
    padding-left: clamp(14px, 4vw, 20px);
    padding-right: clamp(14px, 4vw, 20px);
    width: 100%;
  }

  .dashboard-topbar {
    display: grid;
    gap: 12px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 14px 12px;
  }

  .dashboard-logo img {
    height: 44px;
  }

  .topbar-copy {
    left: auto;
    min-width: 0;
    position: static;
    text-align: left;
    transform: none;
  }

  .dashboard-topbar h1,
  .dashboard-topbar .intro {
    text-align: left;
  }

  .dashboard-clock {
    min-width: max-content;
  }

  .workspace-grid,
  .workspace-column,
  .main-column,
  .side-column {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .today-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    width: 100%;
  }

  .hero-viewport,
  .hero-track,
  .hero-slide {
    box-sizing: border-box;
    width: 100%;
  }

  .hero-viewport {
    grid-column: 1;
    grid-row: 1;
  }

  .hero-mini-calendar {
    grid-column: 1;
    grid-row: 3;
    justify-self: stretch;
    max-width: 100%;
    width: 100%;
  }

  .hero-indicators {
    grid-column: 1;
    grid-row: 2;
  }

  .hero-arrow {
    display: none;
  }

  .dashboard-panel,
  .dashboard-panel-primary,
  .dashboard-panel-compact {
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
  }

  .request-card,
  .blocked-item,
  .timeline-slot {
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
  }

  .request-card,
  .blocked-item {
    grid-template-columns: 1fr;
  }

  .request-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .timeline-slot {
    align-items: start;
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .timeline-slot .request-actions {
    grid-column: auto;
  }

  .request-actions,
  .solo-action {
    justify-content: flex-start;
    width: 100%;
  }

  .action-button,
  .block-form button,
  .panel-toggle {
    min-height: 44px;
  }
}

@media (max-width: 720px) {
  .dashboard-shell {
    padding: 32px 14px 40px;
  }

  .dashboard-sidebar {
    gap: 12px;
    padding: 12px;
  }

  .sidebar-head .card-label {
    display: none;
  }

  .today-hero {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .hero-viewport {
    border-radius: 24px;
    grid-column: 1;
    grid-row: 1;
  }

  .hero-indicators {
    grid-column: 1;
    grid-row: 2;
  }

  .hero-mini-calendar {
    grid-column: 1;
    grid-row: 3;
    justify-self: stretch;
    max-width: 100%;
    width: 100%;
  }

  .hero-arrow {
    display: none;
  }

  .hero-slide {
    min-height: 230px;
    padding: 12px 4px;
  }

  .hero-track {
    min-height: 230px;
  }

  .hero-slide h2 {
    font-size: clamp(1.55rem, 8.5vw, 2.8rem);
  }

  .hero-slide .hero-overview-title {
    font-size: clamp(1.55rem, 8.5vw, 2.8rem);
  }

  .hero-kpi-slide {
    gap: 18px;
    grid-template-columns: 1fr;
  }

  .hero-kpi-slide h2,
  .hero-kpi-value,
  .hero-next-customer {
    text-align: left;
  }

  .hero-kpi-value,
  .hero-next-customer {
    font-size: clamp(2.15rem, 12vw, 4rem);
  }

  .hero-free-value {
    font-size: clamp(1.45rem, 7.5vw, 2.25rem);
    justify-self: start;
    max-width: 100%;
  }

  .hero-completed-value {
    font-size: clamp(1.45rem, 7.5vw, 2.45rem);
  }

  .hero-next-customer {
    justify-items: start;
  }

  .hero-next-customer strong {
    font-size: clamp(1.85rem, 9vw, 3rem);
  }

  .hero-next-customer .hero-next-meta {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hero-slide h2 .hero-number,
  .hero-slide h2 #today-count,
  #accepted-section h2 span,
  #active-section h2 span {
    font-size: 0.5em;
  }

  .schedule-day strong {
    font-size: 0.62rem;
  }

  .schedule-time-head strong,
  .schedule-slot strong {
    font-size: 0.6rem;
  }

  .dashboard-topbar {
    align-items: center;
    display: grid;
    gap: 14px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 14px 12px;
  }

  .topbar-copy {
    left: auto;
    position: static;
    text-align: left;
    transform: none;
  }

  .dashboard-topbar h1,
  .dashboard-topbar .intro {
    text-align: left;
  }

  .topbar-actions,
  .ghost-link {
    width: 100%;
  }

  .ghost-link {
    justify-content: center;
  }

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

  .dashboard-panel,
  .dashboard-panel-primary,
  .dashboard-panel-compact {
    padding: 18px;
  }

  .section-head-compact {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .section-actions {
    width: 100%;
  }

  .request-card,
  .blocked-item {
    grid-template-columns: 1fr;
  }

  .timeline-slot {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .timeline-slot .request-actions {
    grid-column: auto;
    justify-content: flex-start;
  }

  .request-meta,
  .compact-card .request-meta,
  .side-column .request-meta {
    grid-template-columns: 1fr;
  }

  .request-actions,
  .solo-action {
    justify-content: flex-start;
  }

  .action-button,
  .block-form button,
  .panel-toggle {
    width: 100%;
  }

}

.form-message[data-state="success"]::before {
  content: "\2713";
}

.quick-link::after {
  content: "\2192";
}

.calendar-view-toggle,
.mobile-calendar-ui {
  display: none;
}

@media (max-width: 768px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
    width: 100%;
  }

  .ambient-tool {
    left: clamp(18px, var(--x, 50%), calc(100vw - (var(--size, 64px) * var(--ambient-scale, 1)) - 18px));
  }

  .dashboard-shell {
    max-width: 100%;
    padding: 24px clamp(14px, 4vw, 18px) 44px;
    width: 100%;
  }

  body.analytics-open .dashboard-shell {
    margin-right: 0;
    max-width: 100%;
    padding-right: clamp(14px, 4vw, 18px);
  }

  .dashboard-topbar {
    align-items: start;
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
    margin-bottom: 14px;
    padding: 12px 0 4px;
  }

  .dashboard-logo {
    justify-self: start;
    max-width: min(220px, 72vw);
    min-height: 44px;
    overflow: visible;
  }

  .dashboard-logo img {
    height: 38px;
    max-width: 100%;
  }

  .topbar-copy {
    left: auto;
    max-width: 100%;
    position: static;
    text-align: left;
    transform: none;
  }

  .dashboard-topbar h1,
  .dashboard-topbar .intro {
    text-align: left;
  }

  .dashboard-topbar h1 {
    font-size: clamp(1.45rem, 7vw, 2.05rem);
    line-height: 1.05;
  }

  .dashboard-topbar .intro {
    font-size: 0.88rem;
  }

  .dashboard-clock {
    align-items: center;
    border-radius: 18px;
    flex-wrap: wrap;
    justify-self: start;
    max-width: 100%;
    min-width: 0;
    padding: 8px 11px;
  }

  .dashboard-clock::after {
    display: none;
  }

  .dashboard-clock span {
    font-size: 0.9rem;
    min-width: 0;
  }

  .dashboard-clock small {
    font-size: 0.62rem;
  }

  .today-hero {
    gap: 10px;
    margin-bottom: 14px;
  }

  .hero-track,
  .hero-slide {
    min-height: 188px;
  }

  .hero-slide {
    padding: 20px;
  }

  .hero-kpi-slide {
    gap: 14px;
    grid-template-columns: 1fr;
  }

  .hero-kpi-slide h2,
  .hero-kpi-value,
  .hero-next-customer {
    text-align: left;
  }

  .hero-kpi-value,
  .hero-next-customer {
    font-size: clamp(1.8rem, 10vw, 3rem);
  }

  .hero-next-customer {
    justify-items: start;
  }

  .hero-next-customer strong {
    font-size: clamp(1.55rem, 8.5vw, 2.45rem);
  }

  .hero-next-customer .hero-next-meta {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .workspace-grid,
  .workspace-column,
  .main-column,
  .side-column {
    gap: 14px;
    grid-template-columns: 1fr;
    min-width: 0;
    width: 100%;
  }

  .dashboard-panel,
  .dashboard-panel-primary,
  .dashboard-panel-compact,
  #request-overview-section {
    border-radius: 26px;
    box-sizing: border-box;
    max-width: 100%;
    padding: 18px !important;
    width: 100%;
  }

  .section-head,
  .request-card-head,
  .schedule-time-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .request-list,
  .blocked-list,
  .timeline-overview,
  .timeline-group,
  .timeline-slots {
    gap: 10px;
    min-width: 0;
  }

  .request-card,
  .blocked-item,
  .timeline-slot {
    box-sizing: border-box;
    grid-template-columns: 1fr;
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }

  .timeline-slot {
    align-items: start;
    padding: 12px;
  }

  .request-main,
  .request-summary,
  .timeline-slot > * {
    min-width: 0;
  }

  .request-actions,
  .solo-action,
  .timeline-slot .request-actions {
    grid-column: auto;
    justify-content: flex-start;
    width: 100%;
  }

  .action-button.icon-action {
    height: 44px;
    min-height: 44px;
    min-width: 44px;
    width: 44px;
  }

  .action-button:not(.icon-action),
  .block-form button,
  .panel-toggle {
    min-height: 44px;
  }

  .block-form {
    grid-template-columns: 1fr;
  }

  .block-form input,
  .block-form select,
  .block-form button {
    min-height: 44px;
    width: 100%;
  }

  .schedule-layout {
    grid-template-columns: 1fr;
  }

  .schedule-time-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
    overflow: visible;
  }

  .schedule-slot {
    min-height: 48px;
  }

  .quick-link {
    min-height: 44px;
  }

  .analytics-close,
  .appointment-detail-close,
  .hero-indicators button {
    min-height: 44px;
    min-width: 44px;
  }

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

  .hero-mini-date {
    height: 44px;
    min-height: 44px;
    width: 100%;
  }

  .dashboard-sidebar {
    bottom: auto;
    left: auto;
    max-height: calc(100vh - 104px);
    overflow: auto;
    right: calc(env(safe-area-inset-right, 0px) + 14px);
    top: calc(env(safe-area-inset-top, 0px) + 148px);
    width: min(260px, calc(100vw - 24px));
  }

  .analytics-drawer {
    bottom: 12px;
    right: 12px;
    top: 12px;
    width: min(320px, calc(100vw - 24px));
  }

  #accepted-section .section-head {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }

  #accepted-section .panel-body > #accepted-list {
    display: none;
  }

  .calendar-view-toggle {
    align-items: center;
    background: #0b0b0c;
    border: 1px solid rgba(212, 175, 55, 0.16);
    border-radius: 999px;
    display: inline-flex;
    flex-shrink: 0;
    gap: 4px;
    padding: 4px;
  }

  .calendar-view-toggle button {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.62);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 1rem;
    font-weight: 900;
    height: 36px;
    justify-content: center;
    min-height: 36px;
    min-width: 36px;
    padding: 0;
    width: 36px;
  }

  .calendar-view-toggle button.is-active {
    border-color: rgba(212, 175, 55, 0.36);
    color: var(--gold);
  }

  .mobile-calendar-ui {
    background: #0b0b0c;
    border: 1px solid rgba(212, 175, 55, 0.08);
    border-radius: 22px;
    box-sizing: border-box;
    color: var(--text);
    display: grid;
    gap: 8px;
    padding: 10px;
    width: 100%;
  }

  .mobile-calendar-stack {
    display: grid;
    gap: 8px;
  }

  .mobile-calendar-card {
    --mobile-status-color: #d4af37;
    align-items: center;
    background: #0b0b0c;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-left: 6px solid var(--mobile-status-color);
    border-radius: 12px;
    display: grid;
    gap: 10px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 58px;
    padding: 10px;
    touch-action: pan-y;
  }

  .mobile-calendar-card[data-mobile-status="confirmed"] {
    --mobile-status-color: #32d583;
  }

  .mobile-calendar-card[data-mobile-status="pending"] {
    --mobile-status-color: #d4af37;
  }

  .mobile-calendar-card[data-mobile-status="risk"] {
    --mobile-status-color: #ff6b6b;
  }

  .mobile-card-time {
    color: var(--gold);
    font-size: 1rem;
    font-weight: 950;
    line-height: 1;
  }

  .mobile-card-main {
    display: grid;
    gap: 2px;
    min-width: 0;
  }

  .mobile-card-main strong {
    color: #fff;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-card-main span,
  .mobile-card-main small {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.72rem;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-status-label {
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .mobile-swipe-confirm {
    height: 1px;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    width: 1px;
  }

  .mobile-swipe-cancel {
    min-height: 44px;
    min-width: 44px;
  }

  .mobile-calendar-grid-view,
  .mobile-day-focus {
    display: grid;
    gap: 10px;
  }

  .mobile-calendar-sticky-head,
  .mobile-day-focus-head {
    align-items: baseline;
    background: #0b0b0c;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1;
  }

  .mobile-calendar-sticky-head strong,
  .mobile-day-focus-head strong {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 900;
  }

  .mobile-calendar-sticky-head span,
  .mobile-day-focus-head span {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.75rem;
    font-weight: 800;
  }

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

  .mobile-grid-slot {
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.62);
    cursor: pointer;
    display: grid;
    gap: 2px;
    min-height: 44px;
    padding: 8px;
    text-align: left;
  }

  .mobile-grid-slot strong {
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 900;
  }

  .mobile-grid-slot span {
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-grid-slot[data-state="booked"],
  .mobile-grid-slot[data-state="blocked"] {
    background: rgba(255, 255, 255, 0.055);
  }

  .mobile-grid-slot[data-state="closed"] {
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.28);
  }

  .mobile-grid-slot.is-selected {
    border-color: rgba(212, 175, 55, 0.42);
  }

  .mobile-day-focus-scroll {
    display: grid;
    gap: 12px;
    max-height: min(68vh, 620px);
    overflow: auto;
    scroll-snap-type: y proximity;
  }

  .mobile-focus-block {
    --mobile-status-color: #32d583;
    background: #0b0b0c;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-left: 6px solid var(--mobile-status-color);
    border-radius: 18px;
    display: grid;
    gap: 12px;
    min-height: 132px;
    padding: 16px;
    scroll-snap-align: start;
  }

  .mobile-focus-block[data-mobile-status="pending"] {
    --mobile-status-color: #d4af37;
  }

  .mobile-focus-block[data-mobile-status="risk"] {
    --mobile-status-color: #ff6b6b;
  }

  .mobile-focus-block > strong {
    color: var(--gold);
    font-size: 1.45rem;
    font-weight: 950;
    line-height: 1;
  }

  .mobile-focus-block h3 {
    color: #fff;
    font-size: 1.05rem;
    margin: 0;
  }

  .mobile-focus-block p {
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.82rem;
    margin: 4px 0 0;
  }

  .mobile-focus-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mobile-focus-actions a,
  .mobile-focus-actions button,
  .mobile-new-slot {
    align-items: center;
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 900;
    justify-content: center;
    min-height: 44px;
    padding: 0 10px;
    text-decoration: none;
  }

  .mobile-new-slot {
    bottom: 8px;
    color: var(--gold);
    justify-self: end;
    position: sticky;
  }
}

@media (max-width: 480px) {
  .dashboard-shell {
    padding: 18px 12px 38px;
  }

  .dashboard-logo {
    max-width: min(190px, 74vw);
  }

  .dashboard-logo img {
    height: 32px;
  }

  .dashboard-clock {
    gap: 5px;
    padding: 7px 10px;
  }

  .dashboard-clock span {
    font-size: 0.84rem;
  }

  .dashboard-clock small {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }

  .hero-track,
  .hero-slide {
    min-height: 170px;
  }

  .hero-slide {
    padding: 16px;
  }

  .hero-viewport,
  .dashboard-panel,
  .dashboard-panel-primary,
  .dashboard-panel-compact,
  #request-overview-section {
    border-radius: 22px;
  }

  .dashboard-panel,
  .dashboard-panel-primary,
  .dashboard-panel-compact,
  #request-overview-section {
    padding: 14px !important;
  }

  .section-head-copy h2 {
    font-size: clamp(1.05rem, 6vw, 1.35rem);
  }

  .request-card,
  .blocked-item,
  .timeline-slot {
    border-radius: 16px;
    padding: 10px;
  }

  .schedule-day {
    border-radius: 12px;
    min-height: 42px;
    padding: 5px 3px;
  }

  .schedule-time-list {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 360px) and (max-width: 479px) {
  .mobile-calendar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 359px) {
  .mobile-calendar-grid,
  .mobile-focus-actions {
    grid-template-columns: 1fr;
  }
}

/* Compact premium appointment cards */
.main-column {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.main-column > .dashboard-panel,
.main-column > .request-overview-stream {
  background: rgba(0, 0, 0, 0.46);
  border: 1px solid rgba(212, 175, 55, 0.14);
  border-radius: 24px;
  box-shadow: none;
  min-height: 0;
  padding: clamp(16px, 2vw, 20px);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.main-column > .dashboard-panel:hover,
.main-column > .request-overview-stream:hover {
  border-color: rgba(212, 175, 55, 0.24);
  box-shadow: 0 0 22px rgba(212, 175, 55, 0.055);
  transform: translateY(-1px);
}

#next-appointments-section {
  background: rgba(0, 0, 0, 0.5);
  grid-column: 1 / -1;
  order: 1;
}

#active-section {
  order: 2;
}

#accepted-section {
  order: 3;
}

#future-bookings-section {
  order: 4;
}

#request-overview-section {
  grid-column: 1 / -1;
  order: 5;
}

.main-column .section-head {
  align-items: center;
  margin-bottom: 10px;
}

.main-column .section-head-copy h2 {
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  letter-spacing: 0.01em;
}

.main-column .panel-body,
.main-column .request-list,
.main-column .timeline-overview,
.main-column .timeline-slots {
  gap: 8px;
}

.main-column .timeline-group {
  gap: 8px;
}

.main-column .timeline-group-title {
  margin-bottom: 2px;
}

.main-column .request-card {
  align-items: center;
  background: rgba(0, 0, 0, 0.42);
  border-color: rgba(212, 175, 55, 0.105);
  border-radius: 16px;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px 11px;
}

.main-column .request-card:hover {
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(212, 175, 55, 0.24);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.045);
}

.request-summary {
  gap: 5px;
}

.request-summary-row {
  align-items: baseline;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-width: 0;
}

.request-summary-row h3 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.request-summary-time {
  color: var(--gold);
  flex-shrink: 0;
  font-size: 0.95rem;
  font-weight: 900;
}

.request-summary p {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.35;
  margin: 0;
}

.request-summary-service {
  color: var(--text);
}

.main-column .request-actions {
  gap: 5px;
}

.main-column .action-button {
  min-height: 32px;
  min-width: 32px;
}

.main-column .empty-state {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.82rem;
  gap: 8px;
  justify-content: flex-start;
  margin: 0;
  min-height: 0;
  padding: 10px 0 2px;
}

.main-column .calendar-empty-state {
  background: transparent;
  border: 0;
}

.main-column .calendar-empty-state svg {
  height: 26px;
  width: 34px;
}

.main-column .calendar-empty-state span {
  text-transform: none;
}

.main-column .appointment-inline-detail {
  margin-top: 4px;
  padding-top: 9px;
}

@media (max-width: 900px) {
  .main-column {
    grid-template-columns: 1fr;
  }

  #next-appointments-section,
  #request-overview-section {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .main-column > .dashboard-panel,
  .main-column > .request-overview-stream {
    border-radius: 20px;
    padding: 14px;
  }

  .main-column .request-card {
    grid-template-columns: 1fr;
  }

  .request-summary-row {
    align-items: flex-start;
  }
}

/* Premium SaaS dashboard refinement */
.dashboard-shell {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dashboard-topbar {
  order: 1;
}

.dashboard-greeting {
  order: 2;
}

.form-message {
  order: 3;
}

.workspace-grid {
  order: 4;
}

.today-hero {
  order: 5;
}

.dashboard-topbar {
  margin-bottom: 12px;
}

.dashboard-clock {
  align-items: center;
  background: rgba(0, 0, 0, 0.28);
  border-color: rgba(212, 175, 55, 0.13);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 18px 44px rgba(0, 0, 0, 0.18);
  gap: 12px;
  padding: 9px 12px;
}

.dashboard-clock::after {
  content: none;
}

.clock-item {
  display: grid;
  gap: 3px;
}

.clock-item small {
  color: rgba(255, 248, 236, 0.55);
  font-size: 0.52rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
}

.clock-item span {
  color: var(--gold);
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  letter-spacing: 0.025em;
  line-height: 1;
}

.clock-item + .clock-item {
  border-left: 1px solid rgba(212, 175, 55, 0.13);
  padding-left: 12px;
}

.dashboard-greeting {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.18)),
    radial-gradient(circle at 10% 0%, rgba(212, 175, 55, 0.07), transparent 34%);
  border: 1px solid rgba(212, 175, 55, 0.105);
  border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 0 0 24px;
  padding: 16px 18px;
  position: relative;
  z-index: 2;
}

.dashboard-greeting p {
  color: var(--text);
  font-size: clamp(1.02rem, 1.4vw, 1.24rem);
  font-weight: 850;
  letter-spacing: -0.015em;
  margin: 0;
}

.dashboard-summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.dashboard-summary-strip span {
  align-items: center;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 999px;
  color: rgba(255, 248, 236, 0.64);
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 750;
  gap: 7px;
  padding: 7px 10px;
  white-space: nowrap;
}

.dashboard-summary-strip strong {
  color: var(--gold);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.today-hero {
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.16)),
    radial-gradient(circle at 72% 12%, rgba(212, 175, 55, 0.055), transparent 35%);
  border-color: rgba(212, 175, 55, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  margin-bottom: 26px;
}

.workspace-grid {
  gap: 18px;
}

.workspace-column {
  gap: 18px;
}

.main-column {
  gap: 18px;
}

.main-column > .dashboard-panel,
.main-column > .request-overview-stream,
.side-column .dashboard-panel-compact {
  backdrop-filter: blur(10px);
  background:
    linear-gradient(145deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.25)),
    radial-gradient(circle at 0% 0%, rgba(212, 175, 55, 0.052), transparent 36%);
  border: 1px solid rgba(212, 175, 55, 0.145);
  border-radius: 24px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 22px 50px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  padding: clamp(17px, 2vw, 22px);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.main-column > .dashboard-panel:hover,
.main-column > .request-overview-stream:hover,
.side-column .dashboard-panel-compact:hover {
  border-color: rgba(212, 175, 55, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 0 28px rgba(212, 175, 55, 0.085),
    0 24px 56px rgba(0, 0, 0, 0.18);
  transform: translateY(-3px) scale(1.006);
}

#next-appointments-section {
  background:
    linear-gradient(145deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.24)),
    radial-gradient(circle at 84% 8%, rgba(212, 175, 55, 0.105), transparent 34%);
  border-color: rgba(212, 175, 55, 0.22);
  padding: clamp(20px, 2.4vw, 28px);
}

.main-column .section-head {
  margin-bottom: 13px;
}

.main-column .section-head-copy h2,
.side-column .section-head-copy h2 {
  color: var(--text);
  font-size: clamp(1.02rem, 1.25vw, 1.22rem);
  font-weight: 850;
  letter-spacing: -0.012em;
}

#next-appointments-section .section-head-copy h2 {
  font-size: clamp(1.24rem, 1.9vw, 1.7rem);
}

.main-column .panel-body,
.main-column .request-list,
.main-column .timeline-overview,
.main-column .timeline-slots {
  gap: 10px;
}

.main-column .request-card {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.026);
  min-height: 0;
  padding: 11px 12px;
  transition:
    background-color 180ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease,
    transform 200ms ease;
}

.main-column .request-card:hover {
  background: rgba(0, 0, 0, 0.38);
  border-color: rgba(212, 175, 55, 0.28);
  box-shadow:
    0 0 18px rgba(212, 175, 55, 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.038);
  transform: translateY(-2px) scale(1.006);
}

.next-appointment-card {
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.18)) !important;
  border-color: rgba(212, 175, 55, 0.2) !important;
  padding: clamp(16px, 2.2vw, 22px) !important;
}

.next-appointment-content {
  display: grid;
  gap: 16px;
  width: 100%;
}

.next-appointment-kicker {
  color: var(--gold);
  display: inline-flex;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.next-appointment-title-row {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.next-appointment-title-row h3 {
  color: var(--text);
  font-size: clamp(1.34rem, 2.35vw, 2.1rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin: 0;
}

.next-appointment-facts {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.next-appointment-facts div {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(212, 175, 55, 0.08);
  border-radius: 14px;
  padding: 10px;
}

.next-appointment-facts dt,
.next-appointment-facts dd {
  margin: 0;
}

.next-appointment-facts dt {
  color: rgba(255, 248, 236, 0.48);
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.next-appointment-facts dd {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
}

.next-appointment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.next-card-button {
  align-items: center;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 850;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
  touch-action: manipulation;
}

.next-card-button:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.28);
  color: var(--gold);
  transform: translateY(-1px);
}

.next-card-button-primary {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold);
}

.next-card-button:disabled {
  cursor: default;
  opacity: 0.48;
  transform: none;
}

.request-summary-row {
  align-items: center;
}

.request-summary-row h3 {
  font-size: 0.9rem;
  font-weight: 850;
}

.request-summary-time {
  font-size: 0.9rem;
}

.request-summary p {
  color: rgba(255, 248, 236, 0.56);
  font-size: 0.66rem;
}

.status-badge {
  background: rgba(212, 175, 55, 0.07);
  border-color: rgba(212, 175, 55, 0.2);
  color: var(--gold);
}

.main-column .calendar-empty-state {
  align-items: center;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(212, 175, 55, 0.07);
  border-radius: 16px;
  display: flex;
  justify-content: center;
  min-height: 58px;
  padding: 14px;
  text-align: center;
  width: 100%;
}

.main-column .calendar-empty-state svg {
  height: 24px;
  opacity: 0.78;
  width: 31px;
}

.main-column .calendar-empty-state span {
  color: rgba(255, 248, 236, 0.66);
  font-size: 0.78rem;
  font-weight: 760;
}

.appointment-inline-detail {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 14px;
  margin-top: 8px;
  padding: 10px;
}

.side-column {
  gap: 14px;
}

.side-column .dashboard-panel-compact {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(212, 175, 55, 0.09);
  padding: 16px;
}

#blocked-section {
  opacity: 0.94;
}

#blocked-section .block-form {
  gap: 10px;
}

#blocked-section input,
#blocked-section select,
#blocked-section button {
  min-height: 42px;
}

@media (min-width: 1040px) {
  .main-column {
    grid-column: span 9;
  }

  .side-column {
    grid-column: span 3;
  }
}

@media (max-width: 900px) {
  .dashboard-greeting {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-summary-strip {
    justify-content: flex-start;
  }

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

@media (max-width: 560px) {
  .dashboard-topbar {
    gap: 12px;
    padding: 14px 0;
  }

  .dashboard-clock {
    align-items: flex-start;
    border-radius: 16px;
    flex-direction: column;
    gap: 8px;
  }

  .clock-item + .clock-item {
    border-left: 0;
    border-top: 1px solid rgba(212, 175, 55, 0.13);
    padding-left: 0;
    padding-top: 8px;
  }

  .dashboard-greeting {
    border-radius: 20px;
    margin-bottom: 18px;
    padding: 14px;
  }

  .dashboard-summary-strip span {
    white-space: normal;
  }

  .workspace-grid,
  .workspace-column,
  .main-column {
    gap: 14px;
  }

  .main-column > .dashboard-panel,
  .main-column > .request-overview-stream,
  .side-column .dashboard-panel-compact {
    border-radius: 20px;
    padding: 14px;
  }

  .next-appointment-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .next-appointment-facts {
    grid-template-columns: 1fr;
  }

  .next-card-button {
    width: 100%;
  }
}

/* Mobile breathing room refinement */
@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
  }

  .dashboard-shell {
    padding-left: clamp(18px, 5vw, 26px);
    padding-right: clamp(18px, 5vw, 26px);
  }

  .dashboard-topbar {
    align-items: flex-start;
    gap: 18px;
    grid-template-columns: 1fr;
    margin-bottom: 22px;
    padding: 18px 0 6px;
  }

  .dashboard-logo {
    max-width: min(220px, 78vw);
  }

  .dashboard-logo img {
    height: 40px;
  }

  .topbar-copy {
    max-width: 100%;
  }

  .dashboard-topbar h1 {
    font-size: clamp(1.72rem, 8vw, 2.35rem);
    line-height: 1.05;
    overflow-wrap: anywhere;
  }

  .dashboard-topbar .intro {
    font-size: clamp(0.86rem, 3.8vw, 0.98rem);
    line-height: 1.45;
  }

  .dashboard-clock {
    gap: 12px;
    max-width: 100%;
    min-height: 44px;
    padding: 11px 13px;
  }

  .dashboard-greeting {
    gap: 16px;
    margin-bottom: 24px;
    padding: 18px;
  }

  .dashboard-greeting p {
    line-height: 1.3;
  }

  .dashboard-summary-strip {
    gap: 10px;
    width: 100%;
  }

  .dashboard-summary-strip span {
    min-height: 44px;
    padding: 9px 12px;
  }

  .workspace-grid,
  .workspace-column,
  .main-column,
  .side-column {
    gap: 20px;
    grid-template-columns: 1fr;
    min-width: 0;
    width: 100%;
  }

  .main-column > .dashboard-panel,
  .main-column > .request-overview-stream,
  .side-column .dashboard-panel-compact {
    border-radius: 22px;
    padding: 18px !important;
  }

  .main-column .panel-body,
  .main-column .request-list,
  .main-column .timeline-overview,
  .main-column .timeline-slots,
  .main-column .timeline-group {
    gap: 14px;
  }

  .main-column .request-card,
  .blocked-item,
  .timeline-slot {
    border-radius: 18px;
    padding: 16px;
  }

  .request-summary-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .request-summary-row h3,
  .request-summary p,
  .request-summary-service,
  .appointment-inline-detail dd {
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .next-appointment-card {
    padding: 18px !important;
  }

  .next-appointment-content {
    gap: 18px;
  }

  .next-appointment-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .next-appointment-title-row h3 {
    font-size: clamp(1.36rem, 7.2vw, 1.86rem);
    line-height: 1.05;
    overflow-wrap: anywhere;
  }

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

  .next-appointment-facts div {
    padding: 13px;
  }

  .next-appointment-actions {
    gap: 10px;
  }

  .next-card-button,
  .action-button,
  .block-form button {
    min-height: 44px;
  }

  .next-card-button {
    padding-left: 16px;
    padding-right: 16px;
  }

  .block-form {
    gap: 14px;
  }

  .block-form label {
    gap: 8px;
  }

  .block-form input,
  .block-form select {
    min-height: 46px;
    padding-left: 14px;
    padding-right: 14px;
  }

  #blocked-section .block-form button {
    min-height: 46px;
  }

  #blocked-section .block-form input,
  #blocked-section .block-form select {
    height: auto !important;
    min-height: 46px !important;
  }

  .today-hero {
    margin-top: 4px;
    margin-bottom: 24px;
  }
}

@media (max-width: 480px) {
  .dashboard-shell {
    padding-left: 18px;
    padding-right: 18px;
  }

  .dashboard-topbar {
    gap: 20px;
    margin-bottom: 24px;
  }

  .dashboard-logo img {
    height: 36px;
  }

  .dashboard-clock {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    width: min(100%, 210px);
  }

  .clock-item + .clock-item {
    border-left: 0;
    border-top: 1px solid rgba(212, 175, 55, 0.13);
    padding-left: 0;
    padding-top: 10px;
  }

  .dashboard-greeting {
    border-radius: 22px;
    gap: 18px;
    padding: 18px;
  }

  .dashboard-summary-strip {
    display: grid;
    grid-template-columns: 1fr;
  }

  .workspace-grid,
  .workspace-column,
  .main-column,
  .side-column {
    gap: 22px;
  }

  .main-column > .dashboard-panel,
  .main-column > .request-overview-stream,
  .side-column .dashboard-panel-compact {
    padding: 18px !important;
  }

  .main-column .section-head-copy h2,
  .side-column .section-head-copy h2,
  #next-appointments-section .section-head-copy h2 {
    font-size: clamp(1.12rem, 6.2vw, 1.42rem);
    line-height: 1.15;
  }

  .next-appointment-facts {
    grid-template-columns: 1fr;
  }

  .next-card-button {
    width: 100%;
  }

  .appointment-inline-detail {
    padding: 12px;
  }
}

/* Centralized premium dashboard control layout */
.dashboard-shell {
  max-width: 1160px;
}

.form-message {
  order: 3;
}

.today-hero {
  order: 4;
}

.workspace-grid {
  align-items: start;
  display: grid;
  gap: clamp(24px, 3vw, 32px);
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  order: 5;
}

.workspace-column,
.main-column,
.side-column {
  grid-column: auto !important;
  min-width: 0;
}

.main-column {
  display: block;
}

.side-column {
  display: grid;
  gap: 16px;
}

.next-appointment-hero {
  background: transparent;
  border: 0;
  box-shadow: none;
  display: block;
  margin: 0 0 clamp(24px, 3vw, 32px);
  min-height: 0 !important;
  padding: 0;
}

.next-hero-list {
  display: block;
}

.next-appointment-card {
  backdrop-filter: blur(9px);
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.24)),
    radial-gradient(circle at 88% 12%, rgba(212, 175, 55, 0.09), transparent 34%) !important;
  border: 1px solid rgba(212, 175, 55, 0.22) !important;
  border-radius: 26px !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 22px 54px rgba(0, 0, 0, 0.16) !important;
  min-height: 142px;
  padding: clamp(15px, 1.8vw, 20px) !important;
}

.next-appointment-card:hover {
  border-color: rgba(212, 175, 55, 0.32) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 0 24px rgba(212, 175, 55, 0.08),
    0 24px 58px rgba(0, 0, 0, 0.18) !important;
  transform: translateY(-2px) scale(1.004);
}

.next-appointment-content {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
}

.next-appointment-copy {
  min-width: 0;
}

.next-appointment-kicker {
  color: var(--gold);
  display: block;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.next-appointment-copy h3 {
  color: var(--text);
  font-size: clamp(1.32rem, 2.4vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0;
  overflow-wrap: anywhere;
}

.next-appointment-copy p {
  color: rgba(255, 248, 236, 0.68);
  font-size: 0.88rem;
  font-weight: 750;
  margin: 6px 0 0;
}

.next-appointment-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 9px;
}

.next-appointment-meta > span:not(.status-badge) {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 850;
  padding: 7px 10px;
}

.next-appointment-actions {
  justify-content: flex-end;
}

.next-card-button {
  min-height: 44px;
  padding: 0 18px;
  white-space: nowrap;
}

.appointment-overview-panel,
.day-control-panel {
  backdrop-filter: blur(10px);
  background:
    linear-gradient(145deg, rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.2)),
    radial-gradient(circle at 0% 0%, rgba(212, 175, 55, 0.045), transparent 38%) !important;
  border: 1px solid rgba(212, 175, 55, 0.16) !important;
  border-radius: 26px !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.032),
    0 18px 46px rgba(0, 0, 0, 0.14) !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  padding: clamp(18px, 2.2vw, 24px) !important;
  width: 100% !important;
}

.appointment-overview-panel:hover,
.day-control-panel:hover {
  border-color: rgba(212, 175, 55, 0.28) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 24px rgba(212, 175, 55, 0.075),
    0 20px 52px rgba(0, 0, 0, 0.16) !important;
  transform: translateY(-2px) scale(1.003);
}

.appointment-overview-panel .section-head,
.day-control-panel .section-head {
  margin-bottom: 16px;
}

.appointment-tabs {
  align-items: center;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 999px;
  display: inline-flex;
  gap: 5px;
  margin-bottom: 18px;
  max-width: 100%;
  overflow-x: auto;
  padding: 5px;
  scrollbar-width: none;
}

.appointment-tabs::-webkit-scrollbar {
  display: none;
}

.appointment-tabs button {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(255, 248, 236, 0.62);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  min-height: 36px;
  padding: 0 14px;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
  white-space: nowrap;
}

.appointment-tabs button:hover,
.appointment-tabs button.is-active {
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.28);
  color: var(--gold);
}

.appointment-tabs button:active {
  transform: scale(0.97);
}

.appointment-tab-panels {
  display: grid;
  gap: 16px;
}

.appointment-tab-panel {
  animation: appointment-panel-in 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
  display: grid;
  gap: 16px;
}

.appointment-tab-panel[hidden] {
  display: none;
}

.appointment-subsection {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  display: grid;
  gap: 12px;
  min-height: 0;
  padding: 0 !important;
}

.appointment-subsection + .appointment-subsection {
  border-top: 1px solid rgba(212, 175, 55, 0.08) !important;
  padding-top: 16px !important;
}

.appointment-subhead h2,
.appointment-subhead h3,
.appointment-subsection .section-head-copy h2 {
  color: rgba(255, 248, 236, 0.82);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.appointment-overview-panel .request-list,
.appointment-overview-panel .timeline-overview,
.appointment-overview-panel .timeline-slots,
.appointment-overview-panel .timeline-group {
  gap: 12px;
}

.appointment-overview-panel .request-card {
  background: rgba(0, 0, 0, 0.24) !important;
  border: 1px solid rgba(212, 175, 55, 0.12) !important;
  border-radius: 18px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.026);
  padding: 12px 14px !important;
}

.appointment-overview-panel .request-card:hover {
  background: rgba(0, 0, 0, 0.36) !important;
  border-color: rgba(212, 175, 55, 0.27) !important;
  box-shadow:
    0 0 18px rgba(212, 175, 55, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.038);
  transform: translateY(-2px) scale(1.004);
}

.appointment-overview-panel .calendar-empty-state {
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(212, 175, 55, 0.07);
  border-radius: 16px;
  min-height: 58px;
  padding: 14px;
}

.day-control-stack,
.blocked-list-section,
.day-control-panel .blocked-times-compact,
.day-control-panel .block-form {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.day-control-stack {
  gap: 16px;
  max-width: 100%;
  overflow: visible;
}

.day-control-panel {
  background:
    linear-gradient(145deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.42)),
    radial-gradient(circle at 0% 0%, rgba(212, 175, 55, 0.04), transparent 38%) !important;
}

.blocked-list-section,
.day-control-panel .blocked-times-compact {
  gap: 12px;
}

.day-control-stack > p,
.blocked-list-section > p,
.blocked-times-compact > p {
  color: rgba(255, 248, 236, 0.58);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.35;
  margin: 0;
  text-transform: uppercase;
}

.day-control-panel .hero-mini-calendar {
  background: transparent;
  border: 0;
  box-shadow: none;
  display: grid;
  grid-column: auto;
  grid-row: auto;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  max-width: 100%;
  gap: 8px;
  padding: 0;
  width: 100%;
}

.day-control-date-shell,
.day-control-date-step {
  background: rgba(8, 8, 8, 0.72);
  border: 1px solid rgba(212, 175, 55, 0.13);
  border-radius: 14px;
  box-sizing: border-box;
  color: var(--text);
  min-height: 48px;
}

.day-control-date-step {
  align-items: center;
  color: var(--gold);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 1rem;
  font-weight: 900;
  justify-content: center;
  padding: 0;
  touch-action: manipulation;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    transform 90ms ease;
}

.day-control-date-shell {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 2px;
  justify-items: center;
  min-width: 0;
  overflow: hidden;
  padding: 6px 12px;
  position: relative;
  text-align: center;
}

.day-control-date-shell > span {
  color: var(--gold);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.day-control-date-shell > strong {
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.1;
}

.day-control-date-step:hover,
.day-control-date-shell:hover {
  border-color: rgba(212, 175, 55, 0.36);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.065);
}

.day-control-date-step:active {
  transform: translateY(1px) scale(0.98);
}

.day-control-panel .day-control-date-field,
.day-control-panel .block-form input,
.day-control-panel .block-form select {
  appearance: none;
  background: rgba(8, 8, 8, 0.72);
  border: 1px solid rgba(212, 175, 55, 0.13);
  border-radius: 14px;
  box-sizing: border-box;
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  min-height: 46px;
  outline: none;
  padding: 10px 13px;
  width: 100%;
}

.day-control-panel .day-control-date-field {
  cursor: pointer;
  inset: 0;
  opacity: 0;
  pointer-events: auto;
  position: absolute;
  z-index: 2;
}

.day-control-panel .day-control-date-field::-webkit-calendar-picker-indicator {
  cursor: pointer;
  height: 100%;
  inset: 0;
  opacity: 0;
  position: absolute;
  width: 100%;
}

#blocked-section .day-control-date-field,
#blocked-section .block-form input,
#blocked-section .block-form select {
  height: 46px;
  min-height: 46px;
}

.day-control-panel .day-control-date-field:hover,
.day-control-panel .block-form input:hover,
.day-control-panel .block-form select:hover,
.day-control-panel .day-control-date-field:focus,
.day-control-panel .block-form input:focus,
.day-control-panel .block-form select:focus {
  border-color: rgba(212, 175, 55, 0.36);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.065);
}

.block-toggle {
  align-items: center;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.23), rgba(139, 101, 18, 0.18));
  border: 1px solid rgba(212, 175, 55, 0.34);
  border-radius: 14px;
  box-sizing: border-box;
  color: #fff8ec;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  height: 46px;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1;
  padding: 0 16px;
  text-align: center;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
  white-space: nowrap;
  width: 100%;
  writing-mode: horizontal-tb;
}

.block-toggle:hover,
.block-toggle[aria-expanded="true"] {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.31), rgba(139, 101, 18, 0.24));
  border-color: rgba(212, 175, 55, 0.48);
  color: var(--gold);
}

.block-toggle:active {
  transform: scale(0.985);
}

.blocked-form-panel {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  overflow: hidden;
  pointer-events: auto;
  transform: translateY(0);
  transition:
    grid-template-rows 260ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease,
    transform 220ms ease;
  width: 100%;
}

.blocked-form-panel-inner {
  min-height: 0;
  overflow: hidden;
  pointer-events: auto;
}

.blocked-form-panel.is-collapsed {
  grid-template-rows: 0fr;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
}

.day-control-panel .blocked-times-compact {
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(212, 175, 55, 0.09);
  border-radius: 18px;
  box-sizing: border-box;
  padding: 14px;
}

.day-control-panel .block-form {
  gap: 14px;
  margin: 0;
}

.day-control-panel .block-form label {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  width: 100%;
}

.day-control-panel .block-form span {
  line-height: 1.25;
}

.day-control-panel .block-form button {
  align-items: center;
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(212, 175, 55, 0.36);
  border-radius: 14px;
  box-sizing: border-box;
  color: #fff8ec;
  display: inline-flex;
  flex: none;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  height: 46px;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  width: 100%;
}

.blocked-list-section {
  border-top: 1px solid rgba(212, 175, 55, 0.08);
  padding-top: 14px;
}

.day-control-panel .blocked-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  width: 100%;
}

.day-control-panel .blocked-list .empty-state {
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(212, 175, 55, 0.07);
  border-radius: 14px;
  color: rgba(255, 248, 236, 0.58);
  font-size: 0.82rem;
  font-weight: 760;
  min-height: 0;
  padding: 12px;
  text-align: left;
}

.day-control-panel .blocked-item {
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 15px;
  box-sizing: border-box;
  gap: 8px;
  grid-template-columns: 1fr;
  padding: 12px;
  width: 100%;
}

@keyframes appointment-panel-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.992);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 900px) {
  .dashboard-shell {
    max-width: 100%;
  }

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

  .next-appointment-content {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .next-appointment-actions {
    justify-content: flex-start;
  }

  .day-control-panel .hero-mini-calendar {
    grid-template-columns: 46px minmax(0, 1fr) 46px;
  }
}

@media (max-width: 768px) {
  .today-hero {
    gap: 0;
    margin-bottom: 24px;
  }

  .next-appointment-card,
  .appointment-overview-panel,
  .day-control-panel {
    border-radius: 22px !important;
    padding: 18px !important;
  }

  .appointment-tabs {
    display: flex;
    width: 100%;
  }

  .appointment-tabs button {
    min-height: 44px;
  }

  .appointment-overview-panel .request-card,
  .next-appointment-card {
    grid-template-columns: 1fr;
  }

  .next-card-button,
  .block-toggle,
  .day-control-panel .block-form button {
    min-height: 44px;
    width: 100%;
  }

  .day-control-panel .block-form label,
  .day-control-panel .block-form .reason-field,
  .day-control-panel .block-form button {
    flex-basis: 100%;
  }

  .day-control-date-step,
  .day-control-date-shell {
    min-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .appointment-tab-panel {
    animation: none;
  }

  .blocked-form-panel {
    transition: none;
  }
}

/* Sidebar-free dashboard alignment: the existing orb remains the only menu entry point. */
.dashboard-sidebar {
  inset: 118px 24px auto auto;
  margin: 0 !important;
  position: fixed;
}

body:not(.nav-open) .dashboard-sidebar {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateX(calc(100% + 24px)) !important;
  visibility: hidden;
}

.nav-open .dashboard-sidebar {
  visibility: visible;
}

@media (min-width: 769px) {
  .nav-orb {
    left: auto !important;
    right: 24px !important;
  }
}

@media (min-width: 769px) and (max-width: 1040px) {
  .nav-orb {
    left: auto !important;
    right: 18px !important;
  }
}

.dashboard-shell {
  box-sizing: border-box;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 1160px !important;
  padding-left: clamp(22px, 3vw, 30px) !important;
  padding-right: clamp(22px, 3vw, 30px) !important;
  width: min(100%, 1160px);
}

body.analytics-open .dashboard-shell {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 1160px !important;
}

.dashboard-topbar,
.dashboard-greeting,
.today-hero,
.form-message,
.workspace-grid {
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  width: 100%;
}

.workspace-grid {
  justify-content: center;
}

@media (max-width: 1040px) {
  .dashboard-shell,
  body.analytics-open .dashboard-shell {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100% !important;
  }
}

@media (max-width: 768px) {
  .dashboard-sidebar {
    inset: calc(env(safe-area-inset-top, 0px) + 148px) calc(env(safe-area-inset-right, 0px) + 14px) auto auto;
    max-width: calc(100vw - 24px);
  }

  .dashboard-shell {
    padding-left: clamp(16px, 5vw, 20px) !important;
    padding-right: clamp(16px, 5vw, 20px) !important;
  }
}

@media (max-width: 768px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
    width: 100%;
  }

  .dashboard-shell,
  body.analytics-open .dashboard-shell {
    box-sizing: border-box;
    max-width: 100% !important;
    padding: clamp(24px, 6vw, 34px) clamp(18px, 5vw, 24px) calc(env(safe-area-inset-bottom, 0px) + 80px) !important;
    width: 100% !important;
  }

  .dashboard-topbar {
    align-items: flex-start;
    gap: 12px !important;
    margin-bottom: 18px !important;
    padding: 12px 0 6px !important;
  }

  .dashboard-logo {
    min-height: 0;
  }

  .dashboard-logo img {
    height: 40px !important;
  }

  .topbar-copy {
    max-width: 100%;
  }

  .dashboard-topbar h1 {
    font-size: clamp(2.375rem, 10vw, 2.75rem) !important;
    line-height: 0.98;
  }

  .dashboard-topbar .intro {
    font-size: 0.88rem !important;
    line-height: 1.32;
    margin-top: 2px;
  }

  .dashboard-clock {
    align-items: center !important;
    border-radius: 18px !important;
    display: inline-flex;
    flex-direction: row !important;
    gap: 12px !important;
    justify-self: start;
    min-height: 42px !important;
    padding: 9px 12px !important;
    width: auto !important;
  }

  .dashboard-clock::after {
    display: none;
  }

  .clock-item {
    align-items: start;
    display: grid;
    gap: 3px;
  }

  .clock-item small {
    display: block;
    font-size: 0.52rem !important;
  }

  .clock-item span {
    font-size: 0.84rem !important;
    line-height: 1;
    min-width: 0;
  }

  .clock-item + .clock-item {
    border-left: 1px solid rgba(212, 175, 55, 0.13) !important;
    border-top: 0 !important;
    padding-left: 12px !important;
    padding-top: 0 !important;
  }

  .clock-item + .clock-item::before {
    content: none;
  }

  .dashboard-greeting {
    border-radius: 20px !important;
    gap: 12px !important;
    margin-bottom: 20px !important;
    padding: 14px !important;
  }

  .dashboard-greeting p {
    font-size: 1rem !important;
    line-height: 1.22 !important;
    margin: 0;
  }

  .dashboard-summary-strip {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px !important;
    grid-template-columns: none !important;
    justify-content: flex-start;
    width: 100%;
  }

  .dashboard-summary-strip span {
    display: inline-flex !important;
    font-size: 0.68rem !important;
    gap: 7px;
    justify-items: initial;
    line-height: 1.2;
    min-height: 0 !important;
    padding: 7px 10px !important;
    text-align: left;
    white-space: nowrap;
  }

  .dashboard-summary-strip strong {
    display: inline;
    font-size: 0.78rem !important;
    line-height: 1;
  }

  .today-hero {
    margin-bottom: 20px !important;
    min-height: 0 !important;
  }

  .next-appointment-card {
    min-height: 0 !important;
    padding: 14px !important;
  }

  .workspace-grid,
  .workspace-column,
  .main-column,
  .side-column {
    gap: 24px !important;
    min-width: 0;
    width: 100%;
  }

  .main-column > .dashboard-panel,
  .main-column > .request-overview-stream,
  .side-column .dashboard-panel-compact,
  .appointment-overview-panel,
  .day-control-panel {
    border-radius: 24px !important;
    max-width: 100%;
    padding: 18px !important;
    width: 100%;
  }

  .section-head {
    gap: 10px !important;
    margin-bottom: 12px !important;
  }

  .main-column .section-head-copy h2,
  .side-column .section-head-copy h2 {
    font-size: clamp(1rem, 4.6vw, 1.2rem) !important;
    line-height: 1.15;
  }

  .appointment-overview-panel > .section-head .section-head-copy h2,
  .day-control-panel > .section-head .section-head-copy h2 {
    font-size: clamp(1.05rem, 4.8vw, 1.28rem) !important;
    line-height: 1.15;
  }

  #active-section .section-head-copy h2,
  #request-overview-section .section-head-copy h2,
  #future-bookings-section .section-head-copy h2,
  .appointment-subhead h2,
  .appointment-subhead h3,
  .appointment-subsection .section-head-copy h2,
  .day-control-stack > p,
  .blocked-list-section > p,
  .blocked-times-compact > p {
    font-size: clamp(1rem, 4.4vw, 1.18rem) !important;
    letter-spacing: 0.08em;
    line-height: 1.2;
  }

  #accepted-section .section-head {
    align-items: flex-start;
    flex-direction: column !important;
  }

  .calendar-view-toggle {
    align-self: flex-start;
    border-radius: 999px;
    display: inline-flex;
    padding: 4px;
  }

  .calendar-view-toggle button {
    height: 34px;
    min-height: 34px;
    min-width: 34px;
    width: 34px;
  }

  .appointment-tabs {
    display: grid !important;
    gap: 5px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 14px;
    overflow-x: auto;
    width: 100%;
  }

  .appointment-tabs button {
    font-size: 0.78rem;
    min-height: 40px !important;
    padding: 0 8px;
    white-space: nowrap;
  }

  .main-column .panel-body,
  .main-column .request-list,
  .main-column .timeline-overview,
  .main-column .timeline-slots,
  .appointment-tab-panel {
    gap: 12px !important;
  }

  .main-column .request-card,
  .appointment-overview-panel .request-card,
  .blocked-item,
  .timeline-slot {
    border-radius: 18px !important;
    padding: 14px !important;
  }

  .empty-state,
  .calendar-empty-state,
  .main-column .calendar-empty-state,
  .appointment-overview-panel .calendar-empty-state {
    box-sizing: border-box;
    min-height: 58px !important;
    padding: 14px !important;
    width: 100%;
  }

  .calendar-empty-state {
    display: flex;
    gap: 10px;
  }

  .calendar-empty-state svg,
  .main-column .calendar-empty-state svg {
    height: 24px !important;
    width: 32px !important;
  }

  .calendar-empty-state span,
  .main-column .calendar-empty-state span {
    font-size: 0.82rem !important;
    line-height: 1.35;
  }

  #request-overview-section .calendar-empty-state span {
    font-size: 0 !important;
  }

  #request-overview-section .calendar-empty-state span::after {
    content: "Keine neuen Anfragen vorhanden.";
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .day-control-stack {
    gap: 14px !important;
  }

  .day-control-panel .day-control-date-field,
  .day-control-panel .block-form input,
  .day-control-panel .block-form select {
    height: 48px !important;
    min-height: 48px !important;
    width: 100%;
  }

  .block-toggle,
  .day-control-panel .block-form button {
    height: 50px !important;
    min-height: 50px !important;
    width: 100%;
  }

  .day-control-panel .blocked-times-compact {
    padding: 14px !important;
  }

  .blocked-list-section {
    padding-top: 12px !important;
  }

  .day-control-panel .blocked-list .empty-state {
    min-height: 48px !important;
    padding: 12px !important;
  }

  .request-summary-row h3,
  .request-summary p,
  .request-summary-service,
  .appointment-inline-detail dd,
  .mobile-card-main strong,
  .mobile-card-main span,
  .mobile-card-main small {
    overflow-wrap: anywhere;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .dashboard-shell,
  body.analytics-open .dashboard-shell {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .dashboard-logo img {
    height: 36px !important;
  }

  .dashboard-topbar h1 {
    font-size: clamp(2.375rem, 10.6vw, 2.65rem) !important;
  }

  .dashboard-clock {
    max-width: 100%;
  }

  .dashboard-summary-strip {
    gap: 7px !important;
  }

  .dashboard-summary-strip span {
    font-size: 0.64rem !important;
    padding: 7px 9px !important;
  }

  .main-column > .dashboard-panel,
  .main-column > .request-overview-stream,
  .side-column .dashboard-panel-compact,
  .appointment-overview-panel,
  .day-control-panel {
    padding: 16px !important;
  }

  .appointment-overview-panel > .section-head .section-head-copy h2,
  .day-control-panel > .section-head .section-head-copy h2 {
    font-size: clamp(1.04rem, 5vw, 1.22rem) !important;
  }

  .appointment-tabs {
    grid-template-columns: repeat(3, minmax(92px, 1fr));
  }
}

.client-inquiries-panel .panel-body {
  padding-top: 4px;
}

.client-inquiry-list {
  display: grid;
  gap: 12px;
}

.client-inquiry-card {
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 18px;
  cursor: pointer;
  padding: 14px;
  transition:
    border-color 0.22s ease,
    background-color 0.22s ease,
    transform 0.22s ease;
}

.client-inquiry-card:hover,
.client-inquiry-card:focus-visible,
.client-inquiry-card.is-open {
  background: rgba(0, 0, 0, 0.74);
  border-color: rgba(212, 175, 55, 0.34);
  outline: none;
  transform: translateY(-1px);
}

.client-inquiry-summary {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.client-inquiry-summary strong {
  color: #fff8ec;
  display: block;
  font-size: 0.98rem;
  line-height: 1.2;
}

.client-inquiry-summary span {
  color: rgba(255, 248, 236, 0.62);
  display: block;
  font-size: 0.78rem;
  line-height: 1.35;
  margin-top: 4px;
}

.client-inquiry-status {
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 999px;
  color: #d4af37;
  flex: 0 0 auto;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  padding: 5px 8px;
  text-transform: uppercase;
}

.client-inquiry-status[data-status="accepted"] {
  border-color: rgba(120, 199, 154, 0.32);
  color: #78c79a;
}

.client-inquiry-status[data-status="contacted"] {
  border-color: rgba(158, 176, 190, 0.34);
  color: #aab7c1;
}

.client-inquiry-status[data-status="rejected"] {
  border-color: rgba(213, 107, 107, 0.32);
  color: #d56b6b;
}

.client-inquiry-meta {
  color: rgba(255, 248, 236, 0.58);
  display: grid;
  gap: 5px;
  font-size: 0.76rem;
  line-height: 1.35;
  margin-top: 10px;
}

.client-inquiry-details {
  animation: clientInquiryReveal 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  border-top: 1px solid rgba(212, 175, 55, 0.12);
  margin-top: 12px;
  padding-top: 12px;
  transform-origin: top center;
}

.client-inquiry-details dl {
  display: grid;
  gap: 9px;
  margin: 0;
}

.client-inquiry-details dl div {
  display: grid;
  gap: 3px;
}

.client-inquiry-details dt {
  color: rgba(212, 175, 55, 0.72);
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.client-inquiry-details dd {
  color: rgba(255, 248, 236, 0.84);
  font-size: 0.82rem;
  line-height: 1.38;
  margin: 0;
  overflow-wrap: anywhere;
}

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

.client-inquiry-actions .action-button {
  min-height: 38px;
}

@keyframes clientInquiryReveal {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 768px) {
  .client-inquiry-card {
    padding: 16px;
  }

  .client-inquiry-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .client-inquiry-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .client-inquiry-actions .action-button {
    min-height: 44px;
    width: 100%;
  }
}

/* Barber calendar and per-employee accents */
.client-inquiries-panel[hidden] {
  display: none !important;
}

.barber-dashboard .dashboard-topbar,
.barber-dashboard .dashboard-greeting,
.barber-dashboard .today-hero {
  border-color: color-mix(in srgb, var(--current-barber-color, #d4af37) 34%, rgba(212, 175, 55, 0.18));
}

.barber-access-locked {
  overflow: hidden;
}

.barber-access-locked .dashboard-shell,
.barber-access-locked .dashboard-sidebar,
.barber-access-locked .analytics-drawer,
.barber-access-locked .nav-orb {
  pointer-events: none;
  user-select: none;
}

.barber-access-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.76);
}

.barber-access-card {
  width: min(100%, 380px);
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 28px;
  background: rgba(5, 5, 5, 0.92);
  padding: 28px;
  color: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
}

.barber-access-card span,
.barber-access-card small {
  color: rgba(212, 175, 55, 0.86);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.barber-access-card h2 {
  margin: 10px 0 8px;
  color: #fff;
  font-size: clamp(1.45rem, 8vw, 2.1rem);
}

.barber-access-card p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.68);
}

.barber-access-card input,
.barber-access-card button {
  width: 100%;
  min-height: 46px;
  border-radius: 16px;
}

.barber-access-card input {
  margin-bottom: 12px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: #000;
  color: #fff;
  padding: 0 14px;
}

.barber-access-card button {
  border: 0;
  background: #d4af37;
  color: #000;
  font-weight: 700;
  cursor: pointer;
}

.barber-access-card small {
  display: block;
  min-height: 18px;
  margin-top: 10px;
  color: #f0a5a5;
  text-transform: none;
  letter-spacing: 0;
}

.month-overview-panel {
  width: min(100%, 1160px);
  margin: 22px auto;
}

.main-column > .month-overview-panel:first-child {
  margin-top: 0;
}

.month-overview-panel .section-head {
  gap: 16px;
}

.barber-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 520px;
}

.barber-legend-item,
.barber-badge-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  line-height: 1.3;
}

.barber-legend-item i,
.barber-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 999px;
  background: var(--barber-color, #d4af37);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--barber-color, #d4af37) 18%, transparent);
}

.month-calendar {
  display: grid;
  gap: 12px;
}

.month-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}

.month-calendar-head strong {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 650;
}

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

.month-weekdays span {
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.72rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.month-day {
  min-height: 76px;
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
  padding: 10px;
  position: relative;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.month-count-badge {
  align-items: center;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 999px;
  color: var(--gold);
  display: inline-flex;
  font-size: 0.64rem;
  font-weight: 850;
  height: 18px;
  justify-content: center;
  line-height: 1;
  min-width: 18px;
  padding: 0 5px;
  position: absolute;
  right: 7px;
  top: 7px;
}

.month-day:hover,
.month-day.is-selected {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.42);
  background: rgba(0, 0, 0, 0.58);
}

.month-day.is-today {
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.34);
}

.month-day.is-outside-month {
  opacity: 0.42;
}

.month-day > span {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
}

.month-today-label {
  color: rgba(212, 175, 55, 0.82);
  display: block;
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1;
  margin: -4px 0 8px;
  text-transform: uppercase;
}

.month-day-markers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.month-day-markers i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--barber-color, #d4af37);
}

.month-day-marker-count {
  color: var(--barber-color, #d4af37);
  display: inline-block;
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  line-height: 1;
  min-width: 0.7em;
  text-align: center;
}

.month-day-detail {
  margin-top: 18px;
  border: 1px solid rgba(212, 175, 55, 0.14);
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.28);
  padding: 16px;
}

.month-day-detail-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.month-day-detail-head span {
  display: block;
  color: rgba(212, 175, 55, 0.78);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.month-day-detail-head strong {
  display: block;
  margin-top: 3px;
  color: #fff;
  font-size: 1rem;
}

.month-day-detail-head small {
  align-self: center;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.75rem;
  padding: 5px 9px;
}

.month-day-list {
  display: grid;
  gap: 9px;
}

.month-day-appointment {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid color-mix(in srgb, var(--barber-color, #d4af37) 26%, rgba(212, 175, 55, 0.08));
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.34);
  padding: 11px 12px;
}

.month-day-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.month-day-appointment strong,
.month-day-appointment small {
  display: block;
}

.month-day-appointment strong {
  color: #fff;
  font-size: 0.9rem;
}

.month-day-appointment small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
}

.all-appointments-panel {
  order: -1;
}

.all-appointment-card {
  align-items: center;
}

.all-appointment-card .appointment-actions-bar {
  align-items: center;
  gap: 8px;
  justify-content: stretch;
}

.all-appointment-time {
  color: rgba(212, 175, 55, 0.88);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.compact-open-button {
  min-height: 36px;
  padding: 0 13px;
  position: relative;
  z-index: 3;
  touch-action: manipulation;
  white-space: nowrap;
}

/* Native pickers share one quiet affordance; the OS keeps keyboard/touch menus. */
.appointment-filter-fields select,
#blocked-section .block-form select,
.move-panel select {
  appearance: none;
  background-color: #0a0a09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23b99a42' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 13px center;
  background-repeat: no-repeat;
  background-size: 12px 8px;
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 12px;
  color: var(--text);
  color-scheme: dark;
  cursor: pointer;
  font-weight: 500;
  line-height: 1.4;
  min-height: 44px;
  min-width: 0;
  padding: 10px 38px 10px 12px;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.appointment-filter-fields select:focus-visible,
#blocked-section .block-form select:focus-visible,
.move-panel select:focus-visible,
.move-time-option:focus-visible {
  border-color: rgba(212, 175, 55, 0.64);
  outline: 2px solid rgba(212, 175, 55, 0.64);
  outline-offset: 3px;
}

.appointment-filter-fields select:disabled,
#blocked-section .block-form select:disabled,
.move-panel select:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.appointment-filter-fields select option,
#blocked-section .block-form select option,
.move-panel select option {
  background: #0a0a09;
  color: var(--text);
  font-weight: 400;
}

@media (hover: hover) and (pointer: fine) {
  .appointment-filter-fields select:not(:disabled):hover,
  #blocked-section .block-form select:not(:disabled):hover,
  .move-panel select:not(:disabled):hover {
    border-color: rgba(212, 175, 55, 0.5);
  }
}

@media (max-width: 600px) {
  .appointment-filter-choice {
    grid-column: 1 / -1;
  }

  .appointment-filter-fields select,
  #blocked-section .block-form select,
  .move-panel select {
    font-size: 1rem;
    min-height: 48px;
    padding-right: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .appointment-filter-fields select,
  #blocked-section .block-form select,
  .move-panel select,
  .move-time-option {
    transition: none;
  }
}

.appointment-flow-panel {
  min-height: auto;
}

.compact-appointment-list {
  display: grid;
  gap: 10px;
}

.compact-appointment-card {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(78px, 108px) minmax(0, 1fr) auto;
  padding: 14px 16px;
}

.compact-appointment-time {
  color: rgba(212, 175, 55, 0.86);
  display: grid;
  gap: 2px;
  line-height: 1.1;
}

.compact-appointment-time span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  font-weight: 700;
}

.compact-appointment-time strong {
  color: var(--gold);
  font-size: 0.98rem;
  font-weight: 900;
}

.compact-appointment-main {
  min-width: 0;
}

.compact-appointment-main h3,
.compact-appointment-main p,
.compact-appointment-main small {
  overflow-wrap: anywhere;
}

.compact-appointment-main h3 {
  color: #fff;
  font-size: 0.96rem;
  margin: 0;
}

.compact-appointment-main p {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.82rem;
  margin: 4px 0 0;
}

.compact-appointment-main small {
  align-items: center;
  color: rgba(255, 255, 255, 0.58);
  display: inline-flex;
  font-size: 0.76rem;
  gap: 6px;
  margin-top: 6px;
}

.compact-appointment-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.all-appointment-card,
.compact-appointment-card {
  grid-template-columns: auto minmax(0, 1fr) minmax(220px, auto);
}

.all-appointment-card .appointment-status-cell,
.compact-appointment-card .appointment-status-cell {
  min-width: 116px;
}

.action-button.icon-action .button-spinner {
  border-color: rgba(255, 248, 236, 0.22);
  border-top-color: var(--gold);
  margin-right: 0;
}

.next-card-button.is-opening-detail,
.compact-open-button.is-opening-detail {
  cursor: wait;
  opacity: 0.82;
}

.button-spinner {
  animation: buttonSpin 700ms linear infinite;
  border: 2px solid rgba(0, 0, 0, 0.24);
  border-top-color: rgba(0, 0, 0, 0.82);
  border-radius: 999px;
  display: inline-block;
  height: 12px;
  margin-right: 7px;
  vertical-align: -2px;
  width: 12px;
}

@keyframes buttonSpin {
  to {
    transform: rotate(360deg);
  }
}

.customers-panel .panel-body {
  display: grid;
  gap: 12px;
}

.customer-search-label {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.customer-search-field {
  background: rgba(0, 0, 0, 0.62);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 16px;
  color: #fff;
  min-height: 44px;
  padding: 0 14px;
  width: 100%;
}

.customer-search-field::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.customer-list {
  display: grid;
  gap: 10px;
}

.customer-card {
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(212, 175, 55, 0.08);
  border-radius: 20px;
  overflow: hidden;
}

.customer-summary {
  align-items: center;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(150px, 1.4fr) repeat(4, minmax(90px, 1fr));
  min-height: 54px;
  padding: 12px 14px;
  text-align: left;
  width: 100%;
}

.customer-summary strong,
.customer-summary small,
.customer-summary span {
  overflow-wrap: anywhere;
}

.customer-summary strong {
  color: #fff;
  display: block;
  font-size: 0.92rem;
}

.customer-summary small {
  color: rgba(255, 255, 255, 0.48);
  display: block;
  font-size: 0.74rem;
  margin-top: 3px;
}

.customer-detail {
  animation: appointmentDetailPop 180ms ease both;
  border-top: 1px solid rgba(212, 175, 55, 0.08);
  display: grid;
  gap: 14px;
  padding: 14px;
}

.customer-detail dl,
.customer-detail-grid {
  display: grid;
  gap: 12px;
}

.customer-detail dl {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.customer-detail dt {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.customer-detail dd {
  color: rgba(255, 255, 255, 0.8);
  margin: 3px 0 0;
}

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

.customer-detail h3 {
  color: #fff;
  font-size: 0.86rem;
  margin: 0 0 8px;
}

.customer-appointment-list {
  display: grid;
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.customer-appointment-list li {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.06);
  border-radius: 12px;
  display: grid;
  gap: 2px;
  padding: 9px 10px;
}

.customer-appointment-list span,
.customer-appointment-list small,
.customer-empty {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.76rem;
}

.customer-appointment-list strong {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
}

.customer-booking-link {
  justify-self: start;
  min-height: 40px;
  text-decoration: none;
}

@keyframes appointmentDetailPop {
  from {
    opacity: 0;
    transform: scale(0.985) translateY(-4px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.next-appointment-card {
  cursor: default;
}

.next-appointment-card .next-card-button,
.all-appointment-card .action-button,
.month-day-actions .action-button {
  position: relative;
  z-index: 3;
}

.action-button.is-processing,
.move-panel button[aria-busy="true"],
.next-card-button.is-opening-detail {
  cursor: wait;
  opacity: 0.76;
}

#accepted-section[hidden] {
  display: none !important;
}

.request-card.has-barber-accent {
  border-left: 4px solid var(--barber-color, #d4af37);
}

.request-card.has-barber-accent:hover {
  border-left-color: var(--barber-color, #d4af37);
}

.request-summary.has-barber-accent .barber-badge-line {
  margin-top: 6px;
}

.next-appointment-meta .barber-badge-line {
  color: rgba(255, 255, 255, 0.74);
}

.blocked-item {
  border-left: 4px solid var(--barber-color, rgba(212, 175, 55, 0.42));
}

.employee-card {
  border-color: color-mix(in srgb, var(--employee-color, #d4af37) 22%, rgba(212, 175, 55, 0.16));
}

.employee-card .employee-color-dot {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--employee-color, #d4af37);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--employee-color, #d4af37) 18%, transparent);
}

.employee-card.is-selected {
  border-color: var(--employee-color, #d4af37) !important;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--employee-color, #d4af37) 55%, transparent);
}

@media (max-width: 768px) {
  .nav-orb {
    bottom: auto !important;
    height: 52px !important;
    left: auto !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    right: calc(env(safe-area-inset-right, 0px) + 14px) !important;
    top: calc(env(safe-area-inset-top, 0px) + 88px) !important;
    transform: none !important;
    visibility: visible !important;
    width: 52px !important;
    z-index: 58;
  }

  .nav-orb::before {
    content: none !important;
  }

  .nav-orb.is-auto-hidden {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    visibility: visible !important;
  }

  .nav-orb:hover {
    transform: none !important;
  }

  .nav-orb:active,
  .nav-open .nav-orb {
    transform: none !important;
  }

  .dashboard-sidebar {
    bottom: auto !important;
    left: auto !important;
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 96px) !important;
    right: calc(env(safe-area-inset-right, 0px) + 14px) !important;
    top: calc(env(safe-area-inset-top, 0px) + 148px) !important;
    transform: translateX(calc(100% + 24px)) !important;
    width: min(260px, calc(100vw - 32px)) !important;
    z-index: 57;
  }

  .nav-open .dashboard-sidebar {
    transform: translateX(0) !important;
  }

  .compact-appointment-card,
  .customer-summary {
    grid-template-columns: 1fr;
  }

  .compact-appointment-card {
    align-items: stretch;
    gap: 10px;
    padding: 16px;
  }

  .all-appointment-card,
  .compact-appointment-card {
    grid-template-columns: 1fr;
  }

  .all-appointment-card .appointment-status-cell,
  .compact-appointment-card .appointment-status-cell {
    justify-self: flex-start;
    min-width: 0;
  }

  .appointment-actions-bar {
    grid-template-columns: 1fr;
    min-width: 0;
    width: 100%;
  }

  .appointment-actions-primary,
  .appointment-open-action,
  .compact-appointment-actions {
    justify-content: flex-start;
  }

  .appointment-open-action .compact-open-button {
    width: 100%;
  }

  .compact-appointment-actions .action-button,
  .compact-appointment-actions .next-card-button,
  .appointment-actions-primary .action-button,
  .appointment-open-action .next-card-button,
  .month-day-actions .action-button,
  .month-day-actions .next-card-button {
    min-height: 46px;
    min-width: 46px;
  }

  .customer-summary {
    min-height: 64px;
  }

  .customer-detail dl,
  .customer-detail-grid {
    grid-template-columns: 1fr;
  }

  .customer-booking-link {
    justify-self: stretch;
  }

  .month-overview-panel {
    margin: 18px auto;
  }

  .month-overview-panel .month-calendar {
    margin-left: -10px;
    margin-right: -10px;
  }

  .month-overview-panel .section-head {
    align-items: flex-start;
  }

  .barber-legend {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    overflow: visible;
    padding-bottom: 0;
  }

  .barber-legend-item {
    white-space: nowrap;
  }

  .month-weekdays,
  .month-grid {
    gap: 2px;
  }

  .month-day {
    min-height: 52px;
    border-radius: 12px;
    padding: 7px 4px;
  }

  .month-day > span {
    margin-bottom: 6px;
    font-size: 0.78rem;
  }

  .month-count-badge {
    font-size: 0.56rem;
    height: 16px;
    min-width: 16px;
    padding: 0 4px;
    right: 5px;
    top: 5px;
  }

  .month-day-markers {
    gap: 3px;
  }

  .month-day-markers i {
    width: 5px;
    height: 5px;
  }

  .month-day-marker-count {
    font-size: 0.74rem;
  }

  .month-day-detail {
    padding: 14px;
  }

  .month-day-appointment {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .month-day-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .month-day-appointment .compact-open-button {
    justify-self: start;
    margin-top: 4px;
  }

  .month-day-actions .action-button,
  .all-appointment-card .action-button {
    height: 48px;
    min-height: 48px;
    width: 48px;
  }

  .all-appointment-card {
    gap: 12px;
  }

  .all-appointment-card .request-actions {
    width: 100%;
  }

  .all-appointment-card .compact-open-button {
    width: 100%;
    min-height: 44px;
  }

  .barber-access-card {
    padding: 22px;
    border-radius: 22px;
  }
}

.appointment-detail-actions { flex-wrap: wrap; gap: 10px; }
