@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font: 15px/1.5 'DM Sans',sans-serif;
}

h1,h2,h3,strong {
  font-family: 'Manrope','DM Sans',sans-serif;
}

h1 {
  font-size: clamp(1.8rem,3vw,2.4rem);
  line-height: 1.15;
  letter-spacing: -.045em;
  margin: .1rem 0 .45rem;
}

h2 {
  font-size: 1.15rem;
  letter-spacing: -.025em;
  margin: .15rem 0;
}

.muted {
  color: var(--color-muted);
  margin: .25rem 0 0;
}

.eyebrow {
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .13em;
  color: var(--color-brand-700);
  margin: 0 0 .45rem;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0,1fr);
}

.sidebar {
  background: var(--color-text);
  color: #f0e9f5;
  padding: 25px 16px 18px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  text-decoration: none;
  padding: 0 12px 35px;
}

.brand strong {
  display: block;
  font-size: 1.06rem;
  letter-spacing: -.04em;
}

.brand small {
  display: block;
  font-size: .57rem;
  letter-spacing: .2em;
  color: var(--color-brand-200);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 13px;
  background: var(--color-brand-100);
  color: var(--color-brand-700);
  font-size: 1.3rem;
}

.nav-list {
  display: grid;
  gap: 5px;
}

.nav-list a,.sidebar-bottom a {
  display: block;
  color: #d9cde2;
  text-decoration: none;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: .9rem;
  transition: background .15s,color .15s;
}

.nav-list a:hover,.nav-list a.active {
  background: rgba(255,255,255,.1);
  color: #fff;
}

.nav-list a.active {
  box-shadow: inset 3px 0 0 var(--color-accent-pink);
}

.sidebar-bottom {
  display: grid;
  gap: 5px;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,.11);
  padding-top: 14px;
}

.sidebar-bottom .public-link {
  color: var(--color-brand-100);
}

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

.topbar {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 clamp(18px,4vw,46px);
  border-bottom: 1px solid var(--color-border);
  background: rgba(255,255,255,.78);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 17px;
  color: var(--color-muted);
  font-size: .87rem;
}

.topbar-right form {
  margin: 0;
}

.link-button {
  border: 0;
  background: none;
  padding: 0;
  color: var(--color-brand-700);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.mobile-brand {
  display: none;
}

.page-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 34px clamp(18px,4vw,46px) 60px;
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 0;
  border-radius: 10px;
  text-decoration: none;
  font: 700 .88rem 'DM Sans',sans-serif;
  cursor: pointer;
  transition: transform .14s,background .14s;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--color-brand-700);
  color: #fff;
}

.button.primary:hover {
  background: var(--color-brand-800);
}

.button.soft {
  background: var(--color-brand-100);
  color: var(--color-brand-800);
}

.button.danger {
  background: var(--color-danger-soft);
  color: var(--color-danger);
}

.button.small {
  min-height: 36px;
  padding: 8px 12px;
  font-size: .8rem;
}

.button.full {
  width: 100%;
  margin-top: 10px;
}

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

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

.stat-card,.panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.stat-card {
  padding: 18px 20px;
  min-height: 127px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stat-card span {
  font-size: .83rem;
  color: var(--color-muted);
}

.stat-card strong {
  font-size: 2rem;
  line-height: 1.2;
  margin: 8px 0 7px;
  letter-spacing: -.05em;
}

.stat-card small,.stat-card a {
  font-size: .78rem;
  color: var(--color-brand-700);
  text-decoration: none;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0,1.6fr) minmax(250px,.85fr);
  align-items: start;
  gap: 18px;
}

.content-grid>.panel:nth-child(n+3) {
  grid-column: auto;
}

.panel {
  padding: 22px;
}

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

.panel-heading>a {
  color: var(--color-brand-700);
  text-decoration: none;
  font-weight: 700;
  font-size: .8rem;
}

.appointment-list {
  display: grid;
}

.appointment-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 2px;
  border-top: 1px solid var(--color-border);
  color: inherit;
  text-decoration: none;
}

.appointment-row:first-child {
  border-top: 0;
}

.time-pill {
  display: grid;
  place-items: center;
  min-width: 54px;
  height: 42px;
  border-radius: 10px;
  background: var(--color-brand-100);
  color: var(--color-brand-700);
  font-weight: 700;
}

.appointment-main {
  display: grid;
  gap: 2px;
  flex: 1;
}

.appointment-main strong {
  font-size: .9rem;
}

.appointment-main small {
  color: var(--color-muted);
}

.status {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 99px;
  padding: 5px 9px;
  font-size: .7rem;
  font-weight: 700;
  background: var(--color-surface-subtle);
  color: var(--color-muted);
}

.status-requested {
  background: var(--color-warning-soft);
  color: var(--color-warning);
}

.status-accepted,.status-completed {
  background: var(--color-success-soft);
  color: var(--color-success);
}

.status-rejected,.status-canceled,.status-no_show {
  background: var(--color-danger-soft);
  color: var(--color-danger);
}

.side-panel {
  background: var(--color-surface-subtle);
}

.quick-links {
  display: grid;
  gap: 3px;
  margin: 18px 0;
}

.quick-links a {
  color: var(--color-brand-700);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: .88rem;
  font-weight: 600;
}

.stock-note {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
  color: var(--color-muted);
  font-size: .8rem;
}

.stock-note strong {
  font-size: 1.4rem;
  color: var(--color-text);
}

.empty-state {
  text-align: center;
  padding: 40px 18px;
  color: var(--color-muted);
}

.empty-state h3 {
  margin: 8px 0 5px;
  color: var(--color-text);
  font-size: 1rem;
}

.empty-state p {
  margin: 0 0 15px;
  font-size: .87rem;
}

.empty-icon {
  display: inline-grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 14px;
  background: var(--color-brand-100);
  color: var(--color-brand-700);
  font-size: 1.35rem;
}

.filter-pills {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: -4px 0 17px;
}

.filter-pills a {
  padding: 8px 13px;
  border-radius: 99px;
  background: var(--color-brand-100);
  color: var(--color-muted);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 700;
}

.filter-pills a.selected {
  background: var(--color-text);
  color: white;
}

.table-panel {
  padding: 0;
  overflow: hidden;
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 670px;
}

th,td {
  text-align: left;
  padding: 14px 17px;
  border-bottom: 1px solid var(--color-border);
  font-size: .84rem;
}

th {
  background: var(--color-surface-subtle);
  color: var(--color-muted);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

td small {
  display: block;
  color: var(--color-muted);
  margin-top: 2px;
}

tr: last-child td {
  border-bottom: 0;
}

.table-action {
  color: var(--color-brand-700);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.search-form {
  display: flex;
  gap: 8px;
  margin: -5px 0 16px;
  max-width: 520px;
}

.search-form input {
  flex: 1;
}

.form-stack {
  display: grid;
  gap: 9px;
}

.form-stack label,.reject-form label {
  font-size: .81rem;
  font-weight: 700;
  color: var(--color-brand-800);
}

.form-stack input,.form-stack select,.form-stack textarea,.search-form input,.search-form select,.reject-form textarea,.booking-card select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--color-border-strong);
  border-radius: 9px;
  background: #fff;
  color: var(--color-text);
  font: inherit;
  outline: none;
}

.form-stack input:focus,.form-stack select:focus,.form-stack textarea:focus,.search-form input:focus,.search-form select:focus,.reject-form textarea:focus {
  border-color: var(--color-brand-500);
  box-shadow: 0 0 0 3px var(--color-brand-100);
}

.form-stack ul.errorlist {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--color-danger);
  font-size: .77rem;
}

.form-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.detail-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}

.detail-list>div {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 12px;
}

.detail-list span,.booking-summary span {
  font-size: .74rem;
  color: var(--color-muted);
}

.detail-list strong {
  font-size: .92rem;
}

.action-box {
  border-top: 1px solid var(--color-border);
  margin-top: 20px;
  padding-top: 18px;
}

.action-buttons {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
}

.reject-form {
  display: grid;
  gap: 9px;
}

.reject-form textarea {
  min-height: 80px;
  resize: vertical;
}

.copy-link {
  display: block;
  word-break: break-all;
  padding: 11px;
  background: var(--color-brand-050);
  border-radius: 9px;
  color: var(--color-brand-800);
  font-size: .78rem;
}

.messages {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.message {
  padding: 11px 13px;
  border-radius: 9px;
  background: var(--color-success-soft);
  color: var(--color-success);
  font-size: .86rem;
}

.message.error {
  background: var(--color-danger-soft);
  color: var(--color-danger);
}

.message.warning {
  background: var(--color-warning-soft);
  color: var(--color-warning);
}

.note-panel {
  margin-top: 17px;
  background: var(--color-surface-subtle);
}

.note-panel p {
  color: var(--color-muted);
  font-size: .88rem;
  margin-bottom: 0;
}

.hours-list {
  display: grid;
}

.hours-list>div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: .86rem;
}

.hours-list>div:last-child {
  border-bottom: 0;
}

.hours-list span {
  color: var(--color-muted);
}

.empty-inline {
  padding: 15px;
  border-radius: 10px;
  background: var(--color-surface-subtle);
  color: var(--color-muted);
  font-size: .85rem;
}

.small {
  font-size: .8rem;
}

.login-page,.booking-page {
  min-height: 100vh;
  padding: 34px 18px;
  background: radial-gradient(circle at 15% 12%,var(--color-accent-pink-soft) 0,transparent 27%),var(--color-background);
  display: grid;
  place-items: center;
}

.login-card,.booking-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 22px;
  box-shadow: 0 25px 70px rgba(53,37,70,.1);
  padding: 34px;
  width: min(100%,440px);
}

.login-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  background: var(--color-brand-100);
  border-radius: 15px;
  font-size: 1.55rem;
  margin-bottom: 22px;
}

.login-card h1,.booking-card h1 {
  font-size: 1.8rem;
}

.login-card .form-stack {
  margin-top: 22px;
}

.login-card .form-stack label:not(:first-child) {
  margin-top: 6px;
}

.booking-page {
  align-content: start;
  gap: 18px;
}

.booking-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  font: 700 1rem 'Manrope',sans-serif;
}

.booking-card {
  width: min(100%,560px);
}

.booking-card>.eyebrow {
  margin-top: 0;
}

.booking-card .form-stack {
  margin-top: 22px;
}

.booking-card select {
  appearance: auto;
}

.help-text,.privacy-note {
  font-size: .76rem;
  color: var(--color-muted);
}

.privacy-note {
  border-top: 1px solid var(--color-border);
  padding-top: 13px;
  margin: 18px 0 0;
}

.status-card {
  max-width: 520px;
}

.status-banner {
  display: flex;
  gap: 13px;
  padding: 15px;
  border-radius: 12px;
  margin: 21px 0;
  background: var(--color-warning-soft);
  color: var(--color-warning);
}

.status-banner p {
  margin: 4px 0 0;
  font-size: .84rem;
}

.status-banner.confirmed {
  background: var(--color-success-soft);
  color: var(--color-success);
}

.status-banner.rejected {
  background: var(--color-danger-soft);
  color: var(--color-danger);
}

.status-dot {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
  margin-top: 5px;
}

.booking-summary {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--color-border);
  padding-top: 17px;
}

.booking-summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.booking-summary strong {
  font-size: .84rem;
}

.action-box h2 {
  margin-bottom: 14px;
}

@media(max-width:1050px) {
  .app-shell {
    grid-template-columns: 215px minmax(0,1fr);
  }
  .stat-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
  .side-panel {
    grid-column: auto!important;
  }
}

@media(max-width:700px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    min-height: unset;
    padding: 13px 14px 9px;
  }
  .brand {
    padding: 0 4px 12px;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
  }
  .nav-list {
    display: flex;
    overflow-x: auto;
    gap: 3px;
    padding-bottom: 3px;
  }
  .nav-list a {
    white-space: nowrap;
    padding: 8px 11px;
    font-size: .79rem;
  }
  .sidebar-bottom {
    display: none;
  }
  .topbar {
    height: 50px;
    justify-content: space-between;
    padding: 0 17px;
  }
  .mobile-brand {
    display: block;
    font: 700 .87rem 'Manrope',sans-serif;
  }
  .topbar-right {
    gap: 10px;
    font-size: .78rem;
  }
  .page-wrap {
    padding: 24px 15px 40px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 19px;
  }
  .page-heading .button {
    width: 100%;
  }
  .stat-grid {
    gap: 10px;
  }
  .stat-card {
    padding: 14px;
    min-height: 112px;
  }
  .stat-card strong {
    font-size: 1.65rem;
  }
  .panel {
    padding: 17px;
  }
  .table-panel {
    padding: 0;
  }
  .action-buttons {
    grid-template-columns: 1fr;
  }
  .detail-list {
    grid-template-columns: 1fr;
  }
  .form-two {
    grid-template-columns: 1fr;
  }
  .login-card,.booking-card {
    padding: 26px 21px;
  }
  .booking-page {
    padding-top: 22px;
  }
  .search-form {
    width: 100%;
  }
  .search-form .button {
    flex: none;
  }
  .appointment-row {
    flex-wrap: wrap;
  }
  .appointment-row .status {
    margin-left: 68px;
  }
}
