:root {
  color-scheme: light;
  --green-900: #1F3D2E;
  --green-700: #3E5A43;
  --gold: #C9A66B;
  --cream: #F3E9D2;
  --paper: #FAF8F3;
  --surface: #FFFFFF;
  --ink: #0F1E17;
  --muted: #69736B;
  --line: #E8E1D4;
  --danger: #A84A42;
  --blue: #365D78;
  --shadow: 0 14px 34px rgba(31, 61, 46, 0.12);
  --soft-shadow: 0 8px 20px rgba(31, 61, 46, 0.08);
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  touch-action: pan-y;
}

body {
  margin: 0;
  min-height: 100%;
  width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  touch-action: pan-y;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.66;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
  color: var(--ink);
  padding: 0.75rem 0.85rem;
  font-size: 16px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 166, 107, 0.22);
}

textarea {
  resize: vertical;
}

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

h1,
h2 {
  font-family: var(--display);
  font-weight: 600;
}

h1 {
  font-size: 2.35rem;
  line-height: 1.05;
}

h2 {
  font-size: 1.22rem;
}

h3 {
  font-size: 1rem;
}

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

svg {
  display: block;
}

.auth-layout {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background:
    linear-gradient(rgba(250, 248, 243, 0.92), rgba(250, 248, 243, 0.92)),
    repeating-linear-gradient(135deg, rgba(201, 166, 107, 0.08) 0 1px, transparent 1px 18px);
}

.auth-panel {
  width: min(100%, 390px);
  min-height: 720px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  overflow: hidden;
  color: var(--paper);
  background:
    linear-gradient(rgba(31, 61, 46, 0.82), rgba(31, 61, 46, 0.96)),
    repeating-linear-gradient(145deg, rgba(250, 248, 243, 0.05) 0 1px, transparent 1px 22px),
    var(--green-900);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 2rem 1.45rem;
}

.auth-brand {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  text-align: center;
  margin-bottom: 0.25rem;
}

.auth-logo-orb {
  width: 138px;
  height: 138px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(243, 233, 210, 0.78));
  border: 3px solid rgba(201, 166, 107, 0.9);
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.1),
    0 16px 32px rgba(0, 0, 0, 0.24);
}

.auth-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-brand h1 {
  color: var(--paper);
  font-size: 2.65rem;
  letter-spacing: 0;
}

.auth-brand p {
  color: rgba(250, 248, 243, 0.82);
  font-size: 0.88rem;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand-row p,
.brand-row span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.brand-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 8px;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  padding: 0.25rem;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.segmented button,
.tabs button {
  border: 0;
  background: transparent;
  color: inherit;
}

.segmented button {
  min-height: 42px;
  border-radius: 7px;
  color: rgba(250, 248, 243, 0.76);
}

.segmented button.active {
  background: var(--paper);
  color: var(--green-900);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}

.stack-form {
  display: grid;
  gap: 0.9rem;
}

.stack-form.compact {
  gap: 0.75rem;
}

.stack-form label,
.form-grid label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-panel .stack-form label {
  color: rgba(250, 248, 243, 0.82);
}

.auth-panel input {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.auth-panel input::placeholder {
  color: rgba(250, 248, 243, 0.58);
}

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

.primary-action,
.ghost-action,
.text-action,
.round-action,
.icon-button,
.inline-form button {
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.68rem 0.95rem;
  white-space: nowrap;
}

.primary-action {
  background: linear-gradient(180deg, #D5B878, var(--gold));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(201, 166, 107, 0.28);
}

.primary-action:hover {
  background: #B88F4C;
}

.auth-panel .primary-action {
  color: #fff;
  text-transform: uppercase;
}

.ghost-action {
  background: #fffdf9;
  color: var(--green-900);
  border-color: var(--line);
}

.auth-panel .ghost-action {
  color: var(--paper);
}

.text-action {
  border: 0;
  background: transparent;
  color: var(--green-900);
  padding-inline: 0.25rem;
}

.round-action,
.icon-button,
.top-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-grid;
  place-items: center;
  padding: 0;
}

.round-action,
.icon-button {
  background: #fffdf9;
  border-color: var(--line);
  color: var(--green-900);
}

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

.auth-switch {
  color: rgba(250, 248, 243, 0.78);
  text-align: center;
  font-size: 0.92rem;
}

.auth-switch button {
  min-height: auto;
  border: 0;
  background: transparent;
  color: var(--gold);
  padding: 0;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.app-shell {
  position: relative;
  width: min(100%, 1180px);
  min-height: 100vh;
  margin: 0 auto;
  overflow-x: clip;
  background: #fffdf9;
  box-shadow: 0 0 0 1px rgba(31, 61, 46, 0.06);
}

.app-shell.is-rider {
  max-width: 430px;
  box-shadow: var(--shadow);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 78px;
  padding: 0.7rem 1rem;
  background: rgba(255, 253, 249, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.top-icon {
  gap: 4px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.82);
  color: var(--green-900);
}

.top-icon span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--green-900);
  border-radius: 99px;
}

.mobile-menu-backdrop,
.mobile-menu {
  position: fixed;
  display: block;
  pointer-events: none;
}

.mobile-menu-backdrop {
  inset: 0;
  z-index: 28;
  background: rgba(10, 18, 14, 0);
  backdrop-filter: none;
  transition: background 180ms ease, backdrop-filter 180ms ease;
}

.mobile-menu {
  top: 0;
  left: 0;
  z-index: 30;
  width: min(84vw, 318px);
  height: 100vh;
  transform: translateX(-102%);
  transition: transform 220ms ease;
  overflow-y: auto;
  border-right: 1px solid rgba(232, 225, 212, 0.86);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 248, 243, 0.98)),
    #fffdf9;
  box-shadow: 22px 0 46px rgba(15, 30, 23, 0.24);
  padding: 1.15rem 1rem 1.35rem;
}

.mobile-menu-head {
  display: flex;
  align-items: center;
  min-height: 46px;
}

.mobile-close {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  padding: 0;
  font-size: 1.8rem;
  line-height: 1;
}

.mobile-menu-brand {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0 1.35rem;
  text-align: center;
}

.mobile-menu-brand img {
  width: 118px;
  height: 118px;
  object-fit: contain;
  border-radius: 50%;
}

.mobile-menu-brand strong {
  color: var(--green-900);
  font-family: var(--display);
  font-size: 2.15rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
}

.mobile-menu-brand span {
  color: var(--green-900);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mobile-menu-nav {
  display: grid;
  gap: 0.48rem;
  padding: 0 0 1.05rem;
  border-bottom: 1px solid var(--line);
}

.mobile-menu-nav button {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  padding: 0 0.92rem;
  text-align: left;
  font-weight: 650;
}

.mobile-menu-nav button.active {
  background: #eff4ec;
  color: var(--green-900);
}

.mobile-menu-nav svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mobile-menu-nav .side-pill {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 0.72rem;
  background: var(--gold);
}

.mobile-logout {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  min-height: 52px;
  margin-top: 0.85rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #B64230;
  padding: 0 0.92rem;
  text-align: left;
  font-weight: 700;
}

.mobile-logout svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mobile-install {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  min-height: 52px;
  margin-top: 0.85rem;
  border: 0;
  border-radius: 8px;
  background: #eff4ec;
  color: var(--green-900);
  padding: 0 0.92rem;
  text-align: left;
  font-weight: 700;
}

.mobile-install svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-shell.is-menu-open .mobile-menu-backdrop,
.app-shell.is-menu-open .mobile-menu {
  pointer-events: auto;
}

.app-shell.is-menu-open .mobile-menu-backdrop {
  background: rgba(9, 19, 14, 0.52);
  backdrop-filter: blur(2px);
}

.app-shell.is-menu-open .mobile-menu {
  transform: translateX(0);
}

.screen-title {
  display: grid;
  justify-items: center;
  min-width: 0;
}

.screen-title span {
  color: var(--gold);
  font-family: var(--display);
  font-size: 0.85rem;
}

.screen-title strong {
  max-width: 100%;
  color: var(--ink);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

.topbar-actions .ghost-action {
  min-height: 42px;
  padding-inline: 0.7rem;
}

.tabs {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 25;
  width: min(100%, 1180px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  gap: 0.15rem;
  transform: translateX(-50%);
  padding: 0.55rem 0.7rem calc(0.55rem + env(safe-area-inset-bottom));
  background: rgba(255, 253, 249, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.is-rider .tabs {
  width: min(100%, 430px);
}

.tabs button {
  position: relative;
  display: grid;
  place-items: center;
  gap: 0.2rem;
  min-width: 0;
  min-height: 54px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.76rem;
}

.tabs button.active {
  color: var(--green-900);
}

.tabs button.active svg {
  fill: rgba(31, 61, 46, 0.12);
}

.tabs button span:not(.pill) {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pill {
  position: absolute;
  top: 0.2rem;
  right: 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  padding: 0 0.35rem;
  background: var(--gold);
  color: #fff;
  font-size: 0.72rem;
}

.workspace {
  width: 100%;
  margin: 0 auto;
  padding: 1rem 1rem 6.4rem;
}

.is-admin .workspace {
  padding-inline: clamp(1rem, 3vw, 2rem);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

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

.metric-card,
.panel,
.pass-card,
.day-column,
.appointment-row,
.notification-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.metric-card {
  display: grid;
  gap: 0.45rem;
  min-height: 104px;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(243, 233, 210, 0.22), transparent),
    var(--surface);
}

.metric-card span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.metric-card strong {
  align-self: end;
  color: var(--green-900);
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  gap: 1rem;
  align-items: start;
}

.is-rider .two-column {
  grid-template-columns: 1fr;
}

.single-column {
  display: grid;
  gap: 1rem;
}

.panel {
  padding: 1rem;
}

.panel.full-width {
  margin-bottom: 1rem;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.panel-heading h2 {
  color: var(--green-900);
}

.message {
  margin-bottom: 1rem;
  border-radius: 8px;
  padding: 0.8rem 0.9rem;
  border: 1px solid;
}

.message.error {
  color: #742222;
  background: #fff0ef;
  border-color: #e7bbb6;
}

.message.success {
  color: var(--green-900);
  background: #edf6ef;
  border-color: #bed9c3;
}

.auth-panel .message.success {
  color: var(--paper);
  background: rgba(62, 90, 67, 0.55);
  border-color: rgba(255, 255, 255, 0.14);
}

.auth-panel .message.error {
  color: #fff;
  background: rgba(168, 74, 66, 0.45);
  border-color: rgba(255, 255, 255, 0.14);
}

.loading-bar {
  height: 4px;
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 99px;
  overflow: hidden;
  background: var(--cream);
}

.loading-bar::before {
  content: "";
  display: block;
  width: 38%;
  height: 100%;
  background: var(--gold);
  animation: load-slide 1s infinite ease-in-out;
}

@keyframes load-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(280%); }
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(138px, 1fr));
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.day-column {
  min-height: 184px;
  padding: 0.8rem;
  background: #fffdf9;
}

.day-column header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.day-column header span {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--green-900);
}

.day-items {
  display: grid;
  gap: 0.5rem;
}

.appointment-chip {
  display: grid;
  gap: 0.1rem;
  min-height: 62px;
  border-left: 4px solid var(--green-700);
  border-radius: 7px;
  background: #f2f7f2;
  padding: 0.55rem;
}

.appointment-chip span {
  color: var(--muted);
  font-size: 0.86rem;
}

.appointment-chip strong {
  overflow-wrap: anywhere;
}

.appointment-chip.requested {
  border-left-color: var(--gold);
  background: #fff8ea;
}

.appointment-chip.completed {
  border-left-color: var(--blue);
  background: #edf4f7;
}

.appointment-chip.cancelled,
.appointment-chip.declined {
  border-left-color: var(--danger);
  background: #fff1f0;
}

.appointment-list,
.pass-list,
.notification-list,
.simple-list {
  display: grid;
  gap: 0.7rem;
}

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

.is-rider .appointment-row {
  grid-template-columns: 1fr;
}

.appointment-main {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.appointment-main p,
.appointment-main small {
  display: block;
  overflow-wrap: anywhere;
}

.date-tile {
  width: 58px;
  height: 64px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.date-tile span {
  color: var(--gold);
  font-size: 0.78rem;
  text-transform: lowercase;
}

.date-tile strong {
  color: var(--green-900);
  font-family: var(--display);
  font-size: 1.35rem;
}

.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.is-rider .row-actions {
  justify-content: flex-start;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  background: #eef7f0;
  color: var(--green-900);
  white-space: nowrap;
}

.status.requested {
  background: #fff3db;
  color: #7c581b;
}

.status.completed {
  background: #e6f0f4;
  color: #294e66;
}

.status.cancelled,
.status.declined {
  background: #ffe8e6;
  color: #822d2d;
}

.inline-form {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.inline-form.wide {
  margin-bottom: 0.9rem;
}

.inline-form select {
  min-width: 130px;
}

.inline-form input {
  min-width: 140px;
}

.inline-form button {
  background: var(--green-900);
  color: #fff;
}

.pass-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  padding: 0.95rem;
}

.pass-card::after {
  content: "";
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 34px;
  height: 24px;
  border: 2px solid var(--gold);
  border-radius: 6px;
  transform: rotate(-12deg);
  opacity: 0.35;
}

.pass-card p,
.pass-card h3 {
  overflow-wrap: anywhere;
}

.pass-count {
  display: grid;
  place-items: center;
  min-width: 74px;
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.pass-count strong {
  color: var(--green-900);
  font-family: var(--display);
  font-size: 1.55rem;
}

.pass-count span {
  color: var(--muted);
  font-size: 0.82rem;
}

.progress {
  grid-column: 1 / -1;
  height: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--cream);
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-700), var(--gold));
}

.pass-usage-details {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
  overflow: hidden;
}

.pass-usage-details summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--green-900);
  cursor: pointer;
  list-style: none;
  padding: 0.65rem 0.8rem;
  font-weight: 700;
}

.pass-usage-details summary::-webkit-details-marker {
  display: none;
}

.pass-usage-details summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.pass-usage-details[open] summary::after {
  transform: rotate(225deg);
}

.pass-usage-details div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding: 0.65rem 0.8rem;
}

.pass-usage-details span {
  color: var(--muted);
}

.pass-usage-details strong {
  color: var(--ink);
}

.summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.summary-line:last-child {
  border-bottom: 0;
}

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

.notification-row.unread {
  border-color: rgba(201, 166, 107, 0.68);
  background: #fffaf0;
}

.notification-row h3,
.notification-row p {
  overflow-wrap: anywhere;
}

.permission-panel {
  display: grid;
  gap: 0.9rem;
}

.simple-list {
  margin-top: 1rem;
}

.simple-list div {
  display: grid;
  gap: 0.15rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}

.simple-list span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.settings-list,
.settings-actions {
  display: grid;
  gap: 0.75rem;
}

.settings-list div {
  display: grid;
  gap: 0.2rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}

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

.settings-list span {
  color: var(--muted);
  font-size: 0.86rem;
}

.settings-list strong {
  overflow-wrap: anywhere;
}

.text-danger {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #B64230;
  padding: 0.68rem 0.95rem;
  text-align: left;
  font-weight: 700;
}

.empty-state,
.empty-small {
  color: var(--muted);
}

.empty-state {
  padding: 1rem;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fffdf9;
}

.empty-small {
  font-size: 0.9rem;
}

.small-action {
  min-height: 38px;
  padding: 0.48rem 0.75rem;
  font-size: 0.9rem;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.booking-system {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.booking-system-title h2,
.admin-section-title h2 {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
}

.booking-flow-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.booking-flow-column {
  min-width: 0;
  display: grid;
  gap: 0.65rem;
}

.booking-step-label {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
  min-height: 48px;
}

.booking-step-label > span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-900);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.booking-step-label strong,
.booking-step-label small {
  display: block;
}

.booking-step-label small {
  color: var(--muted);
  font-size: 0.78rem;
}

.booking-step-card {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
  box-shadow: var(--soft-shadow);
  padding: 1rem;
}

.booking-step-card h3 {
  color: var(--ink);
  font-size: 0.98rem;
}

.lesson-type-list {
  display: grid;
  gap: 0.65rem;
}

.lesson-type-option {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 0.7rem;
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0.65rem;
  text-align: left;
}

.lesson-type-option.active {
  background: #f2f5ee;
  border-color: rgba(62, 90, 67, 0.28);
}

.lesson-type-option span {
  min-width: 0;
  display: grid;
  gap: 0.1rem;
}

.lesson-type-option small,
.lesson-type-option em {
  color: var(--muted);
  font-size: 0.74rem;
  font-style: normal;
}

.lesson-type-option i {
  width: 14px;
  height: 14px;
  border: 1px solid #b9c2ba;
  border-radius: 50%;
}

.lesson-type-option.active i {
  border: 4px solid var(--green-900);
}

.lesson-type-icon {
  width: 40px;
  height: 40px;
  color: var(--lesson-color);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.booking-note {
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fffdf9;
  padding: 0.65rem;
  font-size: 0.8rem;
}

.booking-month {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  text-align: center;
}

.booking-month button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--green-900);
  font-size: 1.45rem;
}

.booking-weekdays,
.booking-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.25rem;
  text-align: center;
}

.booking-weekdays span {
  color: var(--muted);
  font-size: 0.74rem;
}

.booking-calendar-days span,
.booking-calendar-days button {
  min-width: 0;
  min-height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  padding: 0;
  font-size: 0.86rem;
}

.booking-calendar-days button.available {
  background: rgba(62, 90, 67, 0.1);
  color: var(--green-900);
}

.booking-calendar-days button.active {
  background: var(--green-900);
  color: #fff;
}

.booking-calendar-days button:disabled {
  color: #b7b3aa;
}

.booking-legend {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: auto;
  color: var(--muted);
  font-size: 0.75rem;
}

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

.booking-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d8d2c7;
}

.booking-legend i.available {
  background: #8fcaad;
}

.booking-legend i.limited {
  background: #e4bf82;
}

.booking-time-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.booking-time-grid button {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.booking-time-grid button.active {
  border-color: var(--green-900);
  background: var(--green-900);
  color: #fff;
}

.booking-time-grid button.limited:not(.active) {
  background: #fff2dd;
  border-color: #e8c790;
}

.booking-time-grid button:disabled {
  background: #f2f0eb;
  color: #a9a39a;
}

.booking-summary-form,
.booking-confirmation,
.confirmation-empty {
  display: grid;
  gap: 0.7rem;
}

.booking-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
  min-height: 38px;
  border-bottom: 1px solid var(--line);
}

.booking-summary-row span {
  color: var(--muted);
  font-size: 0.82rem;
}

.booking-summary-row strong {
  text-align: right;
  font-size: 0.86rem;
}

.booking-summary-note {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.confirmation-empty {
  place-items: center;
  margin: auto 0;
  text-align: center;
}

.confirmation-empty span,
.confirmation-check {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e7f1e8;
  color: var(--green-900);
  font-size: 2.8rem;
}

.booking-confirmation {
  text-align: center;
}

.booking-confirmation .confirmation-check {
  margin: 0 auto;
}

.confirmation-card {
  display: grid;
  gap: 0.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0.75rem;
  text-align: left;
}

.admin-booking-area,
.admin-feature-block {
  display: grid;
  gap: 1rem;
}

.admin-feature-block {
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--line);
}

.admin-section-title {
  display: grid;
  gap: 0.25rem;
}

.admin-section-title p {
  color: var(--muted);
}

.admin-management-grid,
.availability-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 1rem;
  align-items: start;
}

.admin-table {
  display: grid;
  gap: 0.35rem;
}

.admin-table-head,
.admin-table-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.3fr) 100px 100px 92px 100px;
  gap: 0.75rem;
  align-items: center;
}

.admin-table-head {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-table-row {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
  padding: 0.55rem 0.7rem;
  font-size: 0.88rem;
}

.admin-table-row > span:first-child {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.color-dot {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 4px;
  border: 1px solid rgba(15, 30, 23, 0.12);
}

.admin-table mark {
  border-radius: 999px;
  background: #f1e9dd;
  color: #7a5d28;
  padding: 0.25rem 0.5rem;
  font-size: 0.76rem;
}

.admin-table mark.active {
  background: #e8f3e7;
  color: var(--green-900);
}

.icon-text-action {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--green-900);
  font-weight: 700;
}

.availability-board {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.55rem;
}

.availability-day {
  min-width: 0;
  display: grid;
  gap: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
  padding: 0.65rem;
}

.availability-day header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
}

.availability-day header span {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cream);
  color: var(--green-900);
}

.availability-slot-list {
  display: grid;
  gap: 0.45rem;
}

.availability-slot-card {
  width: 100%;
  display: grid;
  gap: 0.18rem;
  border: 0;
  border-left: 5px solid var(--slot-color);
  border-radius: 8px;
  background: #f4f8f2;
  background: color-mix(in srgb, var(--slot-color) 14%, white);
  color: var(--ink);
  padding: 0.6rem;
  text-align: left;
}

.availability-slot-card.inactive {
  opacity: 0.55;
}

.availability-slot-card span,
.availability-slot-card small {
  color: var(--muted);
  font-size: 0.78rem;
}

.admin-basics {
  padding-top: 0.35rem;
}

/* Desktop dashboard */
.desktop-sidebar,
.desktop-welcome,
.desktop-top-brand,
.desktop-top-nav,
.dashboard-welcome,
.user-chip {
  display: none;
}

.desktop-card svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 1024px) {
  body {
    background: #faf9f5;
  }

  .app-shell,
  .app-shell.is-rider,
  .app-shell.is-admin {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    display: block;
    margin: 0;
    background: #faf9f5;
    box-shadow: none;
  }

  .app-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
  }

  .desktop-sidebar {
    display: none;
  }

  .sidebar-brand {
    display: grid;
    justify-items: center;
    padding: 0 0.75rem 1.25rem;
  }

  .sidebar-brand img {
    width: 178px;
    height: 178px;
    object-fit: contain;
    border-radius: 8px;
  }

  .desktop-nav {
    display: grid;
    gap: 0.6rem;
  }

  .desktop-nav button {
    position: relative;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.8rem;
    min-height: 46px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ink);
    padding: 0 1rem;
    text-align: left;
  }

  .desktop-nav button.active {
    background: linear-gradient(135deg, var(--green-900), #123621);
    color: #fff;
    box-shadow: 0 12px 22px rgba(31, 61, 46, 0.18);
  }

  .desktop-nav svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .side-pill {
    min-width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--gold);
    color: #fff;
    font-size: 0.75rem;
  }

  .sidebar-help {
    margin-top: auto;
    display: grid;
    gap: 0.75rem;
    padding: 1.15rem;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(243, 233, 210, 0.7), rgba(255, 255, 255, 0.9));
    border: 1px solid var(--line);
  }

  .sidebar-help p {
    color: var(--muted);
    font-size: 0.9rem;
  }

  .sidebar-help .ghost-action {
    width: 100%;
    background: transparent;
  }

  .topbar {
    position: sticky;
    top: 0;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    min-height: 86px;
    padding: 0 2rem;
    background: rgba(255, 253, 249, 0.96);
  }

  .top-icon {
    display: none;
  }

  .screen-title {
    display: none;
  }

  .desktop-top-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
  }

  .desktop-top-brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 50%;
  }

  .desktop-top-brand strong {
    color: var(--green-900);
    font-family: var(--display);
    font-size: 1.42rem;
    font-weight: 600;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .desktop-top-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    min-width: 0;
    overflow-x: auto;
    padding: 0 0.5rem;
  }

  .desktop-top-nav button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ink);
    padding: 0 0.75rem;
    white-space: nowrap;
    font-weight: 650;
  }

  .desktop-top-nav button.active {
    background: linear-gradient(135deg, var(--green-900), #123621);
    color: #fff;
    box-shadow: 0 10px 20px rgba(31, 61, 46, 0.14);
  }

  .desktop-top-nav button.icon-only {
    width: 42px;
    justify-content: center;
    padding: 0;
  }

  .desktop-top-nav svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .desktop-welcome {
    display: none;
    color: var(--ink);
    font-size: 1.22rem;
    line-height: 1.1;
    white-space: nowrap;
  }

  .dashboard-welcome {
    display: block;
    margin-bottom: 1.35rem;
  }

  .dashboard-welcome h1 {
    color: var(--ink);
    font-size: clamp(1.75rem, 2.2vw, 2.35rem);
  }

  .topbar-actions {
    gap: 0.75rem;
  }

  .round-action {
    position: relative;
    border-radius: 999px;
  }

  .user-chip {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.35rem 0.75rem 0.35rem 0.35rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink);
  }

  .user-chip span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--green-900);
    color: #fff;
    font-weight: 700;
  }

  .user-chip strong {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.92rem;
  }

  .user-chip small {
    color: var(--muted);
    font-size: 1rem;
  }

  .profile-menu {
    position: relative;
  }

  .profile-dropdown {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    z-index: 35;
    min-width: 190px;
    display: none;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffdf9;
    box-shadow: var(--shadow);
    padding: 0.35rem;
  }

  .profile-menu.open .profile-dropdown {
    display: grid;
  }

  .profile-dropdown button {
    min-height: 42px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--ink);
    padding: 0 0.75rem;
    text-align: left;
  }

  .profile-dropdown button:hover {
    background: #eff4ec;
  }

  .profile-dropdown button[data-action="logout"] {
    color: #B64230;
  }

  .tabs {
    display: none;
  }

  .mobile-menu-backdrop,
  .mobile-menu,
  .app-shell.is-menu-open .mobile-menu-backdrop,
  .app-shell.is-menu-open .mobile-menu {
    display: none;
  }

  .workspace,
  .is-admin .workspace {
    padding: 1.75rem 2rem 2rem;
  }

  .rider-dashboard {
    display: grid;
    gap: 1.5rem;
  }

  .home-appointment-grid {
    display: grid;
    grid-template-columns: minmax(320px, 620px);
    gap: 1.5rem;
    align-items: start;
  }

  .desktop-summary-row {
    display: grid;
    grid-template-columns: minmax(300px, 1.08fr) minmax(300px, 1.08fr) minmax(260px, 0.95fr);
    gap: 1.5rem;
  }

  .desktop-card {
    min-height: 190px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 1.2rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--soft-shadow);
    padding: 1.65rem;
  }

  .desktop-card span {
    display: block;
    color: var(--muted);
    margin-bottom: 0.4rem;
  }

  .desktop-card p {
    color: var(--muted);
  }

  .desktop-card strong {
    display: block;
    color: var(--ink);
    font-size: 1.05rem;
  }

  .card-icon {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--green-900);
    background: var(--cream);
  }

  .next-card {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    background:
      linear-gradient(135deg, rgba(31, 61, 46, 0.95), rgba(18, 54, 33, 0.92)),
      var(--green-900);
    color: #fff;
  }

  .next-card span,
  .next-card p {
    color: rgba(255, 255, 255, 0.82);
  }

  .next-card strong {
    color: #fff;
    font-size: 2rem;
  }

  .next-card .card-icon {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
  }

  .outline-light,
  .outline-dark,
  .wide-soft-action,
  .calendar-open-action {
    min-height: 44px;
    border-radius: 8px;
    padding: 0.65rem 1rem;
  }

  .outline-light {
    grid-column: 2;
    width: 150px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: transparent;
  }

  .outline-dark {
    align-self: end;
    border: 1px solid var(--green-900);
    color: var(--green-900);
    background: transparent;
  }

  .ticket-icon {
    color: #fff;
    background: var(--gold);
  }

  .pass-overview-body {
    min-width: 0;
  }

  .pass-overview-body .progress {
    margin: 1rem 0 0.6rem;
  }

  .logo-icon {
    overflow: hidden;
    background: var(--green-900);
  }

  .logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .count-card {
    background: linear-gradient(135deg, rgba(232, 241, 232, 0.78), #fff);
  }

  .count-card strong {
    color: var(--green-900);
    font-size: 2rem;
  }

  .desktop-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(360px, 1.25fr) minmax(360px, 1.1fr) minmax(300px, 0.95fr);
    gap: 1.5rem;
    align-items: start;
  }

  .desktop-side-stack {
    display: grid;
    gap: 1.5rem;
  }

  .appointments-panel,
  .booking-panel,
  .mini-calendar-panel,
  .compact-next-panel {
    padding: 1.35rem;
  }

  .desktop-appointment-list,
  .compact-appointment-list {
    display: grid;
    gap: 0.85rem;
  }

  .desktop-appointment-row,
  .compact-appointment-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    min-height: 92px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffdf9;
    padding: 0.7rem;
  }

  .desktop-date-block {
    width: 64px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #eef4ed;
    color: var(--green-900);
  }

  .desktop-date-block span,
  .desktop-date-block small {
    color: var(--green-900);
    font-size: 0.72rem;
    text-transform: uppercase;
  }

  .desktop-date-block strong {
    font-size: 1.55rem;
    line-height: 1;
  }

  .desktop-appointment-info strong,
  .compact-appointment-row strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.35rem;
  }

  .desktop-appointment-info p,
  .compact-appointment-row p {
    color: var(--muted);
    font-size: 0.9rem;
  }

  .wide-soft-action,
  .calendar-open-action {
    border: 0;
    background: #eef4ed;
    color: var(--green-900);
  }

  .booking-panel .stack-form {
    gap: 1rem;
  }

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

  .mini-calendar {
    display: grid;
    gap: 1rem;
  }

  .mini-calendar-head {
    display: grid;
    grid-template-columns: 34px 1fr 34px;
    align-items: center;
    text-align: center;
  }

  .mini-calendar-head button {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--green-900);
    font-size: 1.5rem;
  }

  .mini-calendar-weekdays,
  .mini-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.35rem;
    text-align: center;
  }

  .mini-calendar-weekdays span {
    color: var(--muted);
    font-size: 0.78rem;
  }

  .mini-calendar-days span {
    min-height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--ink);
  }

  .mini-calendar-days span.active {
    background: var(--green-900);
    color: #fff;
  }

  .compact-next-panel .text-action {
    font-size: 0.85rem;
  }

  .compact-appointment-row {
    grid-template-columns: 58px minmax(0, 1fr) auto;
    min-height: 78px;
    padding: 0.55rem;
  }

  .compact-appointment-row .desktop-date-block {
    width: 58px;
    height: 64px;
  }

  .compact-appointment-row .status {
    font-size: 0.78rem;
  }

  .desktop-promo {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) minmax(300px, 0.8fr);
    align-items: center;
    gap: 1.5rem;
    min-height: 150px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(135deg, #fff, #eef4ed);
    box-shadow: var(--soft-shadow);
    padding: 1rem 1.5rem 1rem 1rem;
  }

  .promo-logo {
    height: 126px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--green-900);
  }

  .promo-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .desktop-promo h2 {
    color: var(--green-900);
    margin-bottom: 0.35rem;
  }

  .desktop-promo p {
    color: var(--muted);
  }

  .promo-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    text-align: center;
  }

  .promo-features span {
    min-height: 64px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--green-900);
    font-weight: 700;
    padding: 0.5rem;
  }
}

@media (min-width: 1024px) and (max-width: 1320px) {
  .app-shell,
  .app-shell.is-rider,
  .app-shell.is-admin {
    display: block;
  }

  .sidebar-brand img {
    width: 150px;
    height: 150px;
  }

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

  .desktop-side-stack,
  .desktop-promo {
    grid-column: 1 / -1;
  }

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

@media (max-width: 920px) {
  .app-shell.is-admin {
    width: min(100%, 520px);
  }

  .is-admin .tabs {
    width: min(100%, 520px);
  }

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

  .two-column {
    grid-template-columns: 1fr;
  }

  .booking-flow-grid,
  .admin-management-grid,
  .availability-admin-grid {
    grid-template-columns: 1fr;
  }

  .booking-step-card {
    min-height: auto;
  }

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

  .admin-table-head {
    display: none;
  }

  .admin-table-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

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

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

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .auth-layout {
    padding: 0;
    place-items: stretch;
  }

  .auth-panel {
    width: 100%;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .app-shell,
  .app-shell.is-rider,
  .app-shell.is-admin {
    width: 100%;
    max-width: none;
    box-shadow: none;
  }

  .tabs,
  .is-rider .tabs,
  .is-admin .tabs {
    width: 100%;
  }

  .topbar {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    padding-inline: 0.85rem;
  }

  .topbar-actions .ghost-action {
    display: none;
  }

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

  .booking-system-title h2,
  .admin-section-title h2 {
    font-size: 1rem;
  }

  .booking-flow-grid,
  .availability-board {
    grid-template-columns: 1fr;
  }

  .booking-step-label {
    min-height: auto;
  }

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

  .booking-summary-row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .booking-summary-row strong {
    text-align: left;
  }

  .form-actions {
    justify-content: stretch;
  }

  .form-actions button {
    width: 100%;
  }

  .inline-form {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .appointment-main {
    align-items: flex-start;
  }

  .pass-card {
    grid-template-columns: 1fr;
  }

  .pass-count {
    width: 100%;
  }
}
