:root {
  color-scheme: dark;
  --bg: #000;
  --panel: #080808;
  --panel-2: #101010;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.34);
  --ink: #f7f7f7;
  --soft: rgba(247, 247, 247, 0.68);
  --muted: rgba(247, 247, 247, 0.46);
  --good: #9af2b4;
  --bad: #ff8f83;
  --gold: #f6c85f;
  --gold-soft: #ffdf8a;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  --topbar: 70px;
  --beat-mini-clearance: 78px;
  --beat-mini-mobile-clearance: 118px;
  --safe-bottom: 0px;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

html,
body {
  margin: 0;
  min-height: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
}

body[data-page="public"] {
  height: 100dvh;
  overflow: hidden;
}

body[data-page="staff"] {
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
}

body[data-page="success"] {
  min-height: 100dvh;
}

body[data-brand="760media"] {
  --gold: #7b80dc;
  --gold-soft: #aeb2ff;
  --good: #a3a7ff;
  --line-strong: rgba(163, 167, 255, 0.38);
}

body[data-brand="760media"] .brand-logo {
  background: transparent;
}

body[data-brand="760media"] .brand-logo--wide {
  width: clamp(208px, 24vw, 300px);
  height: 58px;
}

body[data-brand="760media"] .brand-logo--stacked {
  width: min(430px, 74vw);
}

body[data-brand="760media"] .hero-panel,
body[data-brand="760media"] .success-card {
  border-color: rgba(163, 167, 255, 0.28);
}

body[data-brand="760media"] .eyebrow,
body[data-brand="760media"] .section-kicker,
body[data-brand="760media"] .status-row .is-good {
  color: #aeb2ff;
}

[data-brand-nav] {
  display: none;
}

body[data-brand="760media"] [data-brand-nav] {
  display: inline-flex;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button[data-busy="1"]::before,
button.is-soft-loading::before,
.primary-button.is-soft-loading::before,
.secondary-button.is-soft-loading::before,
.danger-button.is-soft-loading::before,
.tab-button.is-soft-loading::before,
.nav-button.is-soft-loading::before {
  content: "";
  width: 13px;
  height: 13px;
  margin-right: 8px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.app-loading-panel {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 7000;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(241, 196, 15, 0.38);
  border-radius: 8px;
  background: rgba(8, 8, 8, 0.94);
  color: var(--text);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 900;
}

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

.app-loading-panel__spinner {
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  opacity: 0.8;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

h1 {
  font-size: clamp(32px, 5.4vw, 72px);
  line-height: 0.93;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(20px, 2.4vw, 34px);
  line-height: 1;
  letter-spacing: 0;
}

h3,
h4 {
  letter-spacing: 0;
}

.app-frame,
.staff-frame {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  min-height: 0;
  display: grid;
  grid-template-rows: var(--topbar) minmax(0, 1fr);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.05) 1px, transparent 1px),
    #000;
  background-size: 52px 52px;
}

body[data-page="staff"] .staff-frame {
  --topbar: 48px;
  height: auto;
  min-height: 100dvh;
  grid-template-rows: var(--topbar) auto;
}

body[data-page="staff"] .topbar {
  justify-content: flex-end;
}

.topbar {
  height: var(--topbar);
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.92);
}

.brand-logo {
  display: block;
  object-fit: contain;
  background: #000;
}

.brand-home {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.brand-home:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.brand-logo--wide {
  width: clamp(132px, 17vw, 176px);
  height: 52px;
  object-fit: contain;
  object-position: left center;
}

.brand-logo--stacked {
  width: min(250px, 54vw);
  height: auto;
}

.topnav {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.nav-button,
.primary-button,
.secondary-button,
.danger-button,
.small-link,
.tab-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0 13px;
  background: #0b0b0b;
  color: var(--ink);
  font-weight: 850;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.primary-button {
  border-color: #fff;
  background: #fff;
  color: #000;
}

.secondary-button,
.danger-button,
.small-link {
  background: transparent;
}

.danger-button {
  border-color: rgba(255, 104, 104, 0.45);
  color: #ff9c9c;
}

.gold-button,
.secondary-button.gold-button {
  border-color: rgba(246, 200, 95, 0.88);
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #070707;
  box-shadow: 0 0 0 1px rgba(246, 200, 95, 0.12), 0 8px 24px rgba(246, 200, 95, 0.12);
}

.nav-button.is-active,
.tab-button.is-active,
.primary-button:hover,
.secondary-button:hover,
.danger-button:hover,
.small-link:hover,
.nav-button:hover,
.tab-button:hover {
  border-color: #fff;
  background: #fff;
  color: #000;
}

.nav-dropdown {
  position: relative;
  align-items: center;
}

.nav-dropdown__summary {
  list-style: none;
}

.nav-dropdown__summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown__summary::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}

.nav-dropdown[open] .nav-dropdown__summary::after {
  transform: rotate(180deg);
}

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 120;
  min-width: 190px;
  display: none;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: rgba(5, 5, 5, 0.98);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.nav-dropdown[open] .nav-dropdown__menu {
  display: grid;
}

.nav-dropdown__menu a {
  min-height: 34px;
  display: flex;
  align-items: center;
  border-radius: 3px;
  padding: 0 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.nav-dropdown__menu a:hover,
.nav-dropdown__menu a.is-active {
  background: #fff;
  color: #000;
}

.gold-button:hover,
.secondary-button.gold-button:hover {
  border-color: #fff2bd;
  background: #ffe59b;
  color: #000;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.view-grid {
  width: 100%;
  min-height: 0;
  display: none;
  grid-template-columns: minmax(270px, 0.72fr) minmax(0, 1.28fr);
  gap: 14px;
  padding: 14px;
}

.view-grid.is-active {
  display: grid;
}

.view-grid[data-app-view="booking"] {
  grid-template-columns: minmax(0, 780px);
  grid-template-rows: minmax(0, 1fr);
  justify-content: center;
  align-content: stretch;
}

.view-grid[data-app-view="booking"] .hero-panel {
  display: none;
}

.view-grid[data-app-view="booking"] .wizard-panel {
  width: 100%;
  max-width: 780px;
}

.view-grid--store {
  grid-template-columns: minmax(0, 1fr);
}

.view-grid--seo {
  display: none;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  height: 100%;
  padding: 0;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.view-grid--seo.is-active {
  display: block;
}

.view-grid[data-app-view="portal"].is-dashboard-open {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}

.view-grid[data-app-view="portal"].is-dashboard-open .dashboard-panel {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
}

.hero-panel,
.panel,
.wizard-panel,
.library-panel,
.staff-rail,
.staff-panel {
  min-height: 0;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(5, 5, 5, 0.94);
  box-shadow: var(--shadow);
}

.hero-panel {
  display: grid;
  align-content: space-between;
  gap: 22px;
  padding: clamp(18px, 3vw, 34px);
  overflow: hidden;
}

.seo-page {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(14px, 2.4vw, 30px);
}

.seo-hero {
  position: relative;
  min-height: min(640px, calc(100dvh - var(--topbar) - 28px));
  display: grid;
  align-items: end;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #050505;
}

.seo-hero--image > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seo-hero--image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.42) 48%, rgba(0, 0, 0, 0.12)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent 42%);
  pointer-events: none;
}

.seo-copy {
  position: relative;
  z-index: 1;
  width: min(690px, 100%);
  padding: clamp(22px, 4.4vw, 58px);
}

.seo-copy h1,
.seo-band h2 {
  margin: 0;
  max-width: 840px;
  color: #fff;
  font-size: clamp(40px, 8vw, 82px);
  line-height: 0.92;
  font-weight: 950;
}

.seo-band h2 {
  font-size: clamp(28px, 4.2vw, 52px);
  line-height: 1;
}

.seo-copy p,
.seo-band p,
.seo-media-grid figcaption,
.seo-feature-grid p {
  color: rgba(247, 247, 247, 0.74);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.55;
}

.seo-copy p {
  max-width: 680px;
  margin: 18px 0 0;
}

.seo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.seo-actions .primary-button,
.seo-actions .secondary-button {
  width: auto;
  min-height: 38px;
}

.seo-band {
  display: grid;
  gap: 22px;
  padding: clamp(28px, 5vw, 68px) 0;
}

.seo-band--two {
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.72fr);
  align-items: start;
  gap: clamp(20px, 4vw, 58px);
}

.seo-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.seo-feature-grid article {
  min-width: 0;
  padding: 0 18px 0 0;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.seo-feature-grid article:last-child {
  border-right: 0;
}

.seo-feature-grid h3 {
  margin: 0 0 10px;
  font-size: clamp(18px, 2vw, 24px);
}

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

.seo-detail-list span {
  min-height: 34px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(163, 167, 255, 0.26);
  padding: 8px 10px;
  color: #f5f6ff;
  background: rgba(12, 13, 24, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.seo-image-strip,
.seo-media-grid {
  display: grid;
  gap: 12px;
}

.seo-image-strip {
  grid-template-columns: 1.1fr 0.9fr 1fr;
}

.seo-image-strip img,
.seo-media-grid img {
  display: block;
  width: 100%;
  min-width: 0;
  height: 100%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.seo-image-strip img {
  aspect-ratio: 16 / 10;
}

.seo-media-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-bottom: clamp(30px, 5vw, 70px);
}

.seo-media-grid figure {
  margin: 0;
}

.seo-media-grid img {
  aspect-ratio: 16 / 10;
}

.seo-media-grid figcaption {
  margin-top: 10px;
  font-size: 13px;
}

.hero-panel p,
.staff-rail p,
.subcopy,
.form-message,
.mini-row p,
.beat-card p,
.booking-row p,
.block-row p,
.field span,
.field-label {
  color: var(--soft);
}

.hero-panel p {
  max-width: 420px;
  overflow-wrap: anywhere;
  margin-top: 12px;
  line-height: 1.45;
}

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.status-row span,
.status-pill {
  color: var(--soft);
  font-size: 12px;
  font-weight: 850;
}

.status-row strong,
#setup-total-price,
#total-price {
  color: var(--good);
}

.is-good { color: var(--good) !important; }
.is-bad,
.is-error { color: var(--bad) !important; }

.status-text--ready {
  color: var(--good) !important;
}

.status-text--attention {
  color: var(--gold) !important;
}

.status-text--bad {
  color: var(--bad) !important;
}

.status-text--muted {
  color: var(--muted) !important;
}

.wizard-panel,
.library-panel,
.dashboard-panel,
.auth-panel {
  padding: clamp(14px, 2vw, 22px);
  overflow: hidden;
}

.wizard-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.wizard-form {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
}

.step-track {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 12px;
}

.step-dot {
  min-width: 0;
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--soft);
  text-align: center;
  cursor: default;
}

.step-dot:disabled {
  cursor: default;
  opacity: 1;
}

.step-dot:disabled:hover {
  background: transparent;
  color: var(--soft);
}

.step-dot.is-active:disabled,
.step-dot.is-active:disabled:hover {
  color: #fff;
  background: transparent;
}

.step-dot span {
  width: auto;
  height: auto;
  display: inline;
  border: 0;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
}

.step-dot strong {
  display: none;
}

.step-dot.is-active {
  color: #fff;
  background: transparent;
}

.step-dot.is-active span {
  font-size: 15px;
}

.wizard-step {
  min-height: 0;
  display: none;
  align-content: start;
  gap: 18px;
  animation: slideIn 0.22s ease-out both;
}

.wizard-step.is-active {
  display: grid;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}

.step-head {
  display: grid;
  gap: 7px;
}

.step-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

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

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

.profile-form,
.rail-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  border: 1px solid var(--line);
  background: #050505;
  padding: 10px;
}

.profile-form {
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  margin-bottom: 12px;
}

.profile-form .form-message,
.rail-profile .form-message {
  grid-column: 1 / -1;
  min-height: 16px;
}

.rail-profile {
  grid-template-columns: 1fr;
  gap: 7px;
  background: rgba(255,255,255,0.025);
  padding: 9px;
}

.rail-profile .secondary-button {
  min-height: 30px;
  width: 100%;
}

.rail-profile .field {
  gap: 5px;
}

.rail-profile .field span {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.field,
.auth-form {
  display: grid;
  gap: 7px;
}

.field span,
.field-label {
  font-size: 12px;
  font-weight: 850;
}

.field input,
.field select,
.field textarea,
.assign-controls select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #030303;
  color: var(--ink);
  padding: 9px 10px;
  outline: none;
}

.visually-hidden-select {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.setup-grid {
  display: grid;
  grid-template-columns: minmax(190px, 0.72fr) minmax(0, 1.28fr);
  gap: 10px;
}

.choice-group {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02)),
    #050505;
  padding: 10px;
}

.engineer-select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #030303;
  color: var(--ink);
  padding: 9px 10px;
  outline: none;
}

.engineer-select:focus {
  border-color: #fff;
}

.hours-control {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255,255,255,0.035);
  padding: 8px;
}

.hours-value {
  min-width: 0;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.hours-control input {
  width: 3.2ch;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 950;
  line-height: 1;
  outline: none;
  text-align: center;
  -moz-appearance: textfield;
}

.hours-control input::-webkit-outer-spin-button,
.hours-control input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.hours-value span {
  align-self: center;
  color: var(--soft);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hours-steppers {
  display: grid;
  gap: 4px;
}

.hour-stepper {
  min-height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 2px;
  background: rgba(255,255,255,0.075);
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
}

.hour-stepper:hover:not(:disabled),
.hour-stepper:focus-visible {
  border-color: #fff;
  background: #fff;
  color: #000;
}

.field textarea {
  resize: none;
}

.upload-progress {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: center;
  gap: 10px;
  margin: 7px 0 12px;
}

.upload-progress[hidden] {
  display: none;
}

.upload-progress__track {
  height: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255,255,255,0.045);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.32);
}

.upload-progress__bar {
  display: block;
  width: 0%;
  height: 100%;
  background:
    linear-gradient(90deg, #ffffff, #b8ffe0 48%, #46e494);
  transition: width 160ms ease;
}

.upload-progress__label {
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  text-align: right;
}

.upload-progress.is-indeterminate .upload-progress__bar {
  width: 42% !important;
  animation: upload-scan 1s ease-in-out infinite;
}

@keyframes upload-scan {
  0% { transform: translateX(-115%); }
  100% { transform: translateX(245%); }
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.assign-controls select:focus {
  border-color: #fff;
}

.wizard-step.has-form-error {
  border-color: rgba(255, 143, 131, 0.48);
}

.field.is-form-invalid span,
.choice-group.is-form-invalid .field-label {
  color: var(--bad);
}

.field.is-form-invalid input,
.field.is-form-invalid select,
.field.is-form-invalid textarea,
.choice-group.is-form-invalid,
.date-picker.is-form-invalid .calendar-shell,
.service-grid.is-form-invalid,
.slot-grid.is-form-invalid,
.booking-picker.is-form-invalid {
  border-color: rgba(255, 143, 131, 0.92);
  background:
    linear-gradient(180deg, rgba(255, 143, 131, 0.11), rgba(255,255,255,0.025)),
    #060202;
  box-shadow:
    inset 0 0 0 1px rgba(255, 143, 131, 0.26),
    0 0 0 3px rgba(255, 143, 131, 0.1);
}

.field-error-note {
  min-height: 0;
  margin: 0;
  color: var(--bad);
  font-weight: 850;
}

.date-picker {
  display: grid;
  gap: 10px;
}

.calendar-shell {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255,255,255,0.035);
  padding: 12px;
}

.calendar-selected {
  color: var(--soft);
  font-size: 13px;
  font-weight: 850;
}

.calendar-head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 8px;
}

.calendar-head strong {
  text-align: center;
  font-size: 16px;
}

.calendar-nav,
.calendar-day {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #030303;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.calendar-nav {
  min-height: 34px;
}

.calendar-nav:hover,
.calendar-day:hover {
  border-color: #fff;
  background: #fff;
  color: #000;
}

.calendar-nav:disabled,
.calendar-day:disabled {
  opacity: 0.32;
  cursor: not-allowed;
  background: transparent;
  color: var(--muted);
  pointer-events: none;
  touch-action: none;
}

.calendar-day.is-unavailable {
  border-color: rgba(255,255,255,0.08);
  background:
    linear-gradient(135deg, transparent 46%, rgba(255,255,255,0.2) 47%, rgba(255,255,255,0.2) 53%, transparent 54%),
    rgba(255,255,255,0.015);
  color: rgba(255,255,255,0.32);
}

.calendar-day.is-unavailable::before {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  top: 50%;
  border-top: 2px solid rgba(255,255,255,0.24);
  transform: rotate(-34deg);
}

.calendar-day.is-pending {
  opacity: 0.44;
  cursor: not-allowed;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.calendar-weekdays span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.calendar-day,
.calendar-empty {
  min-height: 44px;
}

.calendar-empty {
  display: block;
}

.calendar-day.is-today {
  border-color: var(--line-strong);
}

.calendar-day.is-selected {
  border-color: #fff;
  background: #fff;
  color: #000;
}

.calendar-day.is-unavailable.is-selected {
  border-color: rgba(255,255,255,0.08);
  background:
    linear-gradient(135deg, transparent 46%, rgba(255,255,255,0.2) 47%, rgba(255,255,255,0.2) 53%, transparent 54%),
    rgba(255,255,255,0.015);
  color: rgba(255,255,255,0.32);
}

.booking-picker {
  display: grid;
  gap: 12px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(var(--service-count, 5), minmax(0, 1fr));
  gap: 6px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018)),
    #050505;
  padding: 8px;
}

.addon-item,
.slot-button,
.price-card,
.client-lock,
.connection-grid article,
.mini-row,
.beat-card,
.booking-row,
.block-row {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255,255,255,0.035);
}

.service-card {
  min-width: 0;
  min-height: 44px;
  display: grid;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.028);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}

.service-card:first-child {
  border-left: 1px solid var(--line);
}

.service-card__media {
  min-width: 0;
  height: 74px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 5px;
  background: rgba(255,255,255,0.035);
  overflow: hidden;
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card__initials {
  color: var(--soft);
  font-size: 16px;
  font-weight: 900;
}

.service-card__copy {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  gap: 3px;
  text-align: center;
}

.service-card__name,
.service-card__price {
  font-weight: 900;
}

.service-card__name {
  min-width: 0;
  font-size: 12px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.service-card__price {
  color: var(--soft);
  font-size: 10px;
  white-space: nowrap;
}

.room-preview {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(190px, 0.75fr);
  gap: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012)),
    #050505;
  overflow: hidden;
}

.room-preview[hidden] {
  display: none !important;
}

.room-preview-media {
  position: relative;
  min-width: 0;
  min-height: 0;
}

.room-preview img {
  width: 100%;
  height: clamp(170px, 26vh, 265px);
  display: block;
  object-fit: cover;
  object-position: center;
  background: #080808;
}

.room-preview-slider {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 7px;
  pointer-events: none;
}

.room-preview-slider[hidden] {
  display: none !important;
}

.room-preview-slider button {
  min-height: 30px;
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 999px;
  background: rgba(0,0,0,0.56);
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 950;
  pointer-events: auto;
}

.room-preview-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  pointer-events: auto;
}

.room-preview-dots .room-preview-dot {
  min-height: 10px;
  width: 10px;
  height: 10px;
  border-color: rgba(255,255,255,0.78);
  background: rgba(255,255,255,0.28);
  padding: 0;
}

.room-preview-dots .room-preview-dot.is-active {
  background: #fff;
}

.room-preview figcaption {
  min-width: 0;
  display: grid;
  align-content: end;
  gap: 9px;
  padding: 16px;
  border-left: 1px solid var(--line);
  background: rgba(255,255,255,0.018);
}

.room-preview span,
.room-preview strong {
  font-weight: 900;
  line-height: 1;
}

.room-preview span {
  font-size: 18px;
}

.room-preview strong {
  color: var(--soft);
  font-size: 13px;
}

.service-card.is-selected,
.slot-button.is-selected,
.addon-item:has(input:checked) {
  border-color: #fff;
  background: #fff;
  color: #000;
}

.service-card:hover,
.slot-button:hover,
.addon-item:hover {
  border-color: var(--line-strong);
  background: rgba(255,255,255,0.08);
}

.service-card.is-selected:hover,
.slot-button.is-selected:hover,
.addon-item:has(input:checked):hover {
  border-color: #fff;
  background: #fff;
  color: #000;
}

.service-card.is-selected .service-card__price,
.service-card.is-selected .service-card__initials {
  color: #000;
}

.service-card.is-selected .service-card__media {
  border-color: rgba(0,0,0,0.24);
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(46px, 1fr));
  justify-content: center;
  gap: 5px;
  margin-top: 8px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018)),
    #050505;
  padding: 6px;
}

.slot-button {
  min-height: 42px;
  width: 100%;
  border-radius: 0;
  background: rgba(255,255,255,0.03);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.slot-button[disabled] {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.28;
  text-decoration: none;
}

.slot-grid .form-message {
  grid-column: 1 / -1;
  justify-self: stretch;
  margin: 0;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
}

.addon-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.addon-item {
  min-height: 72px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 10px;
  cursor: pointer;
  min-width: 0;
  text-align: center;
}

.addon-item input {
  appearance: none;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: #020202;
  margin: 0;
}

.addon-item input:checked {
  border-color: #000;
  background: #000;
}

.addon-item input:checked::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #fff;
}

.addon-item > span {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 7px;
  overflow-wrap: anywhere;
}

.addon-item strong {
  white-space: nowrap;
}

.price-card {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.session-total-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.025)),
    #050505;
  padding: 10px;
}

.session-total-card > div {
  min-width: 0;
  display: grid;
  gap: 4px;
  border-right: 1px solid var(--line);
  padding-right: 8px;
}

.session-total-card > div:last-child {
  border-right: 0;
  padding-right: 0;
}

.session-total-card span {
  color: var(--soft);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.session-total-card strong {
  overflow: hidden;
  color: #fff;
  font-size: clamp(15px, 1.8vw, 21px);
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-total-card__total strong {
  font-size: clamp(20px, 2.5vw, 32px);
  color: var(--good);
}

.price-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.price-card span {
  color: var(--soft);
  font-size: 13px;
}

.price-card__total {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.price-card__total strong {
  font-size: 25px;
  color: var(--good);
}

.client-lock {
  display: grid;
  gap: 5px;
  padding: 12px;
}

.client-lock strong {
  color: #fff;
}

.booking-auth-card {
  gap: 10px;
}

.booking-auth-card__copy {
  display: grid;
  gap: 5px;
}

.booking-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.booking-auth-actions .secondary-button,
.booking-auth-inline .primary-button {
  min-height: 32px;
}

.booking-auth-inline {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.booking-auth-tabs {
  justify-content: flex-start;
}

.booking-auth-fields {
  display: grid;
  gap: 9px;
}

.booking-audio-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.9fr) auto;
  align-items: end;
  gap: 10px;
  border: 1px solid rgba(184, 255, 224, 0.22);
  border-radius: 2px;
  background:
    linear-gradient(135deg, rgba(184, 255, 224, 0.1), rgba(255,255,255,0.025) 52%),
    #050505;
  padding: 10px;
}

.booking-audio-card__copy {
  display: grid;
  align-content: center;
  gap: 4px;
}

.booking-audio-card__copy p {
  color: var(--soft);
  font-size: 12px;
  line-height: 1.35;
}

.booking-audio-card .form-message,
.booking-audio-card .upload-progress {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.client-account-card {
  gap: 12px;
  border-color: rgba(104, 211, 145, 0.75);
  background:
    linear-gradient(135deg, rgba(104, 211, 145, 0.18), rgba(255,255,255,0.035) 48%),
    rgba(255,255,255,0.04);
  box-shadow: inset 4px 0 0 rgba(104, 211, 145, 0.95);
}

.client-account-card > div:first-child strong {
  color: #8ff0b1;
}

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

.account-summary > div {
  min-width: 0;
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  padding: 9px;
  background: rgba(0,0,0,0.22);
}

.account-summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.account-summary strong {
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.wizard-actions.is-first-step {
  justify-content: flex-end;
}

.wizard-actions .primary-button {
  min-width: 160px;
}

.form-message {
  min-height: 18px;
  font-size: 13px;
  line-height: 1.35;
}

.auth-tabs,
.portal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

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

.portal-pane {
  display: none;
}

.portal-pane.is-active {
  display: block;
}

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

.portal-summary-grid article {
  min-width: 0;
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018)),
    rgba(255,255,255,0.025);
  padding: 10px;
}

.portal-summary-grid article.needs-attention {
  border-color: rgba(255, 179, 71, 0.5);
  box-shadow: inset 3px 0 0 rgba(255, 179, 71, 0.85);
}

.portal-summary-grid span,
.client-booking-details span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.portal-summary-grid strong {
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-summary-grid small {
  overflow: hidden;
  color: var(--soft);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.dash-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.compact-list,
.booking-list {
  display: grid;
  align-content: start;
  gap: 8px;
}

.song-library-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

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

.song-folder {
  min-width: 0;
  min-height: 132px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255,255,255,0.03);
  padding: 10px;
}

.song-folder.is-drag-over {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
}

.song-folder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.song-folder-head strong,
.song-folder-name {
  min-width: 0;
  font-size: 13px;
  font-weight: 900;
}

.song-folder-name {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #030303;
  color: var(--ink);
  padding: 7px 9px;
  outline: none;
}

.song-folder-name:focus {
  border-color: #fff;
}

.song-drop-zone {
  min-height: 74px;
  display: grid;
  align-content: start;
  gap: 7px;
}

.song-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(0,0,0,0.22);
  padding: 8px;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.song-row:hover {
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.045);
}

.song-row.is-playing {
  border-color: rgba(184,255,224,0.52);
  background:
    linear-gradient(135deg, rgba(184,255,224,0.1), transparent 56%),
    rgba(0,0,0,0.28);
  box-shadow: inset 0 0 0 1px rgba(184,255,224,0.08);
}

.song-row.is-dragging {
  opacity: 0.45;
}

.song-main {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.song-title-line {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.song-row h4 {
  min-width: 0;
  margin: 0;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song-click-hint {
  flex: none;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  padding: 3px 5px;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.song-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 5px;
  align-self: start;
}

.song-row p {
  margin: 0;
  overflow: hidden;
  color: var(--soft);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.song-meta-line strong {
  color: #ffd681;
  font-size: 10px;
}

.song-video-shell {
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.1);
  background: #050505;
}

.song-video {
  width: 100%;
  max-height: 360px;
  display: block;
  background: #050505;
}

.song-icon-button {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 2px;
  background: rgba(255,255,255,0.045);
  color: #fff;
  text-decoration: none;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.song-icon-button:hover,
.song-icon-button:focus-visible {
  border-color: #fff;
  background: #fff;
  color: #050505;
  outline: none;
}

.song-action-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.song-player {
  min-width: 0;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(90deg, rgba(184,255,224,0.06), transparent 48%),
    rgba(0,0,0,0.32);
  padding: 5px;
}

.song-play,
.song-progress {
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255,255,255,0.045);
  color: #fff;
  cursor: pointer;
}

.song-play {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 8px;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.song-progress {
  position: relative;
  height: 32px;
  overflow: hidden;
  padding: 0;
  touch-action: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.022));
}

.song-progress::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  z-index: 2;
  height: 1px;
  background: rgba(255,255,255,0.14);
  pointer-events: none;
}

.song-progress::after {
  content: "";
  position: absolute;
  left: var(--seek-progress, 0%);
  top: 5px;
  bottom: 5px;
  z-index: 4;
  width: 2px;
  background: rgba(184,255,224,0.9);
  box-shadow: 0 0 12px rgba(184,255,224,0.32);
  transform: translateX(-50%);
  pointer-events: none;
}

.song-progress.is-previewing::after {
  left: var(--seek-preview, var(--seek-progress, 0%));
  background: #fff;
}

.song-progress .beat-waveform {
  grid-template-columns: repeat(56, minmax(1px, 1fr));
  gap: 1px;
  padding: 0 8px;
}

.song-progress .beat-waveform i {
  min-height: 3px;
}

.song-progress:hover,
.song-progress.is-scrubbing,
.song-play:hover {
  border-color: #fff;
}

.song-progress.is-previewing .beat-progress-cue {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.song-row.is-playing .beat-play-icon {
  width: 9px;
  height: 11px;
  border: 0;
  background: linear-gradient(90deg, currentColor 0 33%, transparent 33% 66%, currentColor 66%);
}

.song-row.is-playing .song-play {
  border-color: rgba(184,255,224,0.54);
  background: rgba(184,255,224,0.1);
  color: #b8ffe0;
}

.song-row.is-loading .song-play {
  border-color: rgba(255,214,129,0.5);
  color: #ffd681;
}

.song-row.is-playing .beat-waveform i {
  animation: beatMeter 1.18s ease-in-out infinite;
  animation-delay: var(--delay);
}

.song-time {
  min-width: 68px;
  display: inline-flex;
  align-items: center;
  justify-content: end;
  gap: 3px;
  color: #fff;
  font-size: 10px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.song-time time:first-child {
  color: #b8ffe0;
}

.song-time time:last-child {
  color: var(--muted);
}

.song-player audio {
  display: none;
}

.drag-handle {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--soft);
  cursor: grab;
  font-weight: 900;
  touch-action: none;
}

.drag-handle:active {
  cursor: grabbing;
}

.mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
}

.mini-row h4 {
  margin: 0 0 4px;
  font-size: 15px;
}

.client-booking-card {
  align-items: stretch;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012)),
    rgba(0,0,0,0.18);
}

.client-booking-card__main {
  min-width: 0;
  display: grid;
  gap: 10px;
  flex: 1 1 auto;
}

.client-booking-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.client-booking-card__head p {
  margin: 0;
}

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

.client-booking-details > div {
  min-width: 0;
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.22);
  padding: 7px;
}

.client-booking-details strong {
  overflow: hidden;
  color: #fff;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-booking-notice,
.client-booking-policy {
  margin: 0;
  border-left: 3px solid rgba(255, 179, 71, 0.75);
  background: rgba(255, 179, 71, 0.08);
  padding: 8px 9px;
}

.client-booking-policy {
  border-left-color: rgba(83, 227, 154, 0.75);
  background: rgba(83, 227, 154, 0.07);
}

.client-booking-notice span {
  color: var(--soft);
}

.booking-client-actions {
  min-width: 132px;
  display: grid;
  align-content: center;
  gap: 6px;
}

.beat-scroll {
  height: 100%;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  overflow-y: auto;
  padding-right: 5px;
}

.booking-reference-audio {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--soft);
}

.booking-reference-audio a {
  color: #b8ffe0;
  font-weight: 900;
  text-decoration: none;
}

.booking-reference-audio a:hover {
  color: #fff;
}

.booking-reference-audio small {
  color: var(--muted);
}

body[data-page="public"].beat-mini-open .beat-scroll {
  padding-bottom: 92px;
}

body[data-page="public"].beat-mini-open .app-frame {
  padding-bottom: var(--beat-mini-clearance);
}

body[data-page="public"].beat-mini-open .wizard-step.is-active {
  overflow-y: auto;
  scrollbar-width: thin;
}

.beat-store-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
}

.beat-count,
.beat-filter-chip {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.035);
  color: var(--soft);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.beat-count {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
}

.beat-store-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.2fr);
  gap: 8px;
  align-items: end;
}

.beat-search-field {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.beat-search-field span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.beat-search-field input {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255,255,255,0.045);
  color: #fff;
  padding: 0 10px;
  outline: none;
}

.beat-search-field input:focus {
  border-color: #fff;
}

.beat-filter-chips {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.beat-filter-chip {
  min-height: 36px;
  border-radius: 0;
  padding: 0 10px;
  cursor: pointer;
}

.beat-filter-chip:hover,
.beat-filter-chip.is-active {
  border-color: #fff;
  background: #fff;
  color: #000;
}

.beat-shop-grid {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.portal-beat-scroll {
  max-height: calc(100dvh - 220px);
}

.beat-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto auto;
  grid-template-areas: "art body price actions";
  align-items: center;
  gap: 12px;
  padding: 10px;
}

.beat-art {
  grid-area: art;
  position: relative;
  width: 84px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
  text-align: inherit;
}

.beat-art:focus-visible {
  outline: 2px solid #b8ffe0;
  outline-offset: 3px;
}

.beat-cover {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #111;
}

.beat-cover--empty {
  display: grid;
  place-items: center;
  color: var(--soft);
  font-weight: 900;
}

.beat-eq {
  display: inline-grid;
  grid-template-columns: repeat(3, 3px);
  align-items: end;
  gap: 2px;
  height: 14px;
  opacity: 0.45;
}

.beat-eq i {
  display: block;
  width: 3px;
  height: 35%;
  background: currentColor;
  transform-origin: bottom center;
}

.beat-eq i:nth-child(2) {
  height: 70%;
}

.beat-eq i:nth-child(3) {
  height: 48%;
}

.beat-eq--cover {
  position: absolute;
  right: 6px;
  bottom: 6px;
  border: 1px solid rgba(255,255,255,0.24);
  background: rgba(0,0,0,0.68);
  color: #b8ffe0;
  padding: 4px;
  opacity: 0;
}

.beat-card.is-playing .beat-eq,
.beat-mini-player.is-playing .beat-eq {
  opacity: 1;
}

.beat-card.is-playing .beat-eq i,
.beat-mini-player.is-playing .beat-eq i {
  animation: beatEq 0.72s ease-in-out infinite alternate;
}

.beat-card.is-playing .beat-eq i:nth-child(2),
.beat-mini-player.is-playing .beat-eq i:nth-child(2) {
  animation-delay: 0.12s;
}

.beat-card.is-playing .beat-eq i:nth-child(3),
.beat-mini-player.is-playing .beat-eq i:nth-child(3) {
  animation-delay: 0.24s;
}

@keyframes beatEq {
  from { transform: scaleY(0.38); }
  to { transform: scaleY(1); }
}

.beat-body {
  grid-area: body;
  min-width: 0;
  display: grid;
  gap: 8px;
}

.beat-body h4 {
  font-size: 17px;
  line-height: 1.05;
}

.beat-producer {
  margin: -4px 0 0;
  color: var(--soft);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.beat-producer strong {
  color: #fff;
  font-weight: 950;
}

.beat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.beat-tags span {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.035);
  color: var(--soft);
  padding: 4px 6px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.beat-player {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.28);
  padding: 5px;
}

.beat-play,
.beat-progress {
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255,255,255,0.045);
  color: #fff;
  cursor: pointer;
}

.beat-play {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.beat-play:hover,
.beat-progress:hover {
  border-color: #fff;
}

.beat-play-icon {
  width: 0;
  height: 0;
  display: inline-block;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
}

.beat-card.is-playing .beat-play-icon {
  width: 9px;
  height: 11px;
  border: 0;
  background: linear-gradient(90deg, currentColor 0 33%, transparent 33% 66%, currentColor 66%);
}

.beat-card.is-playing .beat-play {
  border-color: rgba(184,255,224,0.54);
  background: rgba(184,255,224,0.1);
  color: #b8ffe0;
}

.beat-card.is-loading .beat-play {
  border-color: rgba(255,214,129,0.5);
  color: #ffd681;
}

.beat-progress {
  position: relative;
  height: 46px;
  padding: 0;
  overflow: hidden;
  touch-action: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(0,0,0,0.55);
}

.beat-progress.is-scrubbing {
  border-color: rgba(184,255,224,0.68);
}

.beat-progress::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 50%;
  z-index: 2;
  height: 1px;
  background: rgba(255,255,255,0.16);
  pointer-events: none;
}

.beat-progress::after {
  content: "";
  position: absolute;
  left: var(--seek-progress, 0%);
  top: 6px;
  bottom: 6px;
  z-index: 4;
  width: 2px;
  background: rgba(184,255,224,0.9);
  box-shadow: 0 0 16px rgba(184,255,224,0.4);
  transform: translateX(-50%);
  pointer-events: none;
}

.beat-progress.is-previewing::after {
  left: var(--seek-preview, var(--seek-progress, 0%));
  background: #fff;
  box-shadow: 0 0 16px rgba(255,255,255,0.38);
}

.beat-progress-fill {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background:
    linear-gradient(90deg, rgba(184,255,224,0.24), rgba(184,255,224,0.06));
  box-shadow:
    10px 0 22px rgba(184,255,224,0.12),
    inset -1px 0 0 rgba(184,255,224,0.82);
}

.beat-waveform {
  position: relative;
  z-index: 3;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(56, minmax(2px, 1fr));
  align-items: center;
  gap: 2px;
  padding: 0 12px;
}

.beat-waveform i {
  display: block;
  width: 100%;
  min-height: 4px;
  height: var(--h, 46%);
  border-radius: 999px;
  background: rgba(255,255,255,0.36);
  box-shadow: 0 0 10px rgba(255,255,255,0.025);
  opacity: 0.7;
  transform-origin: center;
  transform: scaleY(0.9);
  transition: background 160ms ease, opacity 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.beat-waveform i.is-played {
  background: rgba(184,255,224,0.92);
  box-shadow: 0 0 12px rgba(184,255,224,0.18);
  opacity: 1;
}

.beat-progress:hover .beat-waveform i,
.beat-progress.is-scrubbing .beat-waveform i,
.beat-card.is-playing .beat-waveform i {
  background: #f7fff9;
  box-shadow: 0 0 12px rgba(184,255,224,0.18);
  opacity: 1;
}

.beat-progress:hover .beat-waveform i.is-played,
.beat-progress.is-scrubbing .beat-waveform i.is-played,
.beat-card.is-playing .beat-waveform i.is-played {
  background: rgba(184,255,224,0.96);
}

.beat-progress-cue {
  position: absolute;
  left: var(--seek-preview, 0%);
  top: 50%;
  z-index: 5;
  min-width: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0,0,0,0.25);
  background: #fff;
  color: #050505;
  padding: 3px 5px;
  font-size: 10px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 120ms ease, transform 120ms ease;
  pointer-events: none;
}

.beat-progress.is-previewing .beat-progress-cue {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.beat-card.is-playing .beat-waveform i {
  animation: beatMeter 1.18s ease-in-out infinite;
  animation-delay: var(--delay);
}

@keyframes beatMeter {
  0%,
  100% {
    transform: scaleY(0.76);
    opacity: 0.5;
  }

  46% {
    transform: scaleY(1);
    opacity: 1;
  }
}

.beat-time {
  min-width: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: end;
  gap: 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.beat-time time:first-child {
  color: #b8ffe0;
}

.beat-time time:last-child,
.beat-time-sep {
  color: var(--muted);
}

.beat-player audio {
  display: none;
}

.beat-mini-player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  width: 100vw;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(220px, 1.05fr) minmax(180px, 1fr) minmax(116px, 0.34fr) auto auto;
  grid-template-areas: "body progress volume time bar";
  align-items: center;
  gap: 14px;
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.24);
  background:
    linear-gradient(90deg, rgba(184,255,224,0.1), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.025)),
    #060606;
  box-shadow: 0 -18px 48px rgba(0,0,0,0.58);
  color: #fff;
  padding: 9px 14px;
}

.beat-mini-player[hidden] {
  display: none;
}

.beat-mini-player.is-moving {
  user-select: none;
}

.beat-mini-player.is-loading .beat-mini-player__play {
  border-color: rgba(255,214,129,0.56);
  color: #ffd681;
}

.beat-mini-player__bar {
  grid-area: bar;
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 12px;
  border-bottom: 0;
  background: transparent;
  color: var(--muted);
  cursor: default;
  padding: 0;
  touch-action: auto;
}

.beat-mini-player__bar span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.beat-mini-player__close {
  min-height: 30px;
  border: 1px solid rgba(255,255,255,0.16);
  background: #0d0d0d;
  color: var(--soft);
  cursor: pointer;
  padding: 0 8px;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.beat-mini-player__close:hover {
  border-color: #fff;
  color: #fff;
}

.beat-mini-player__body {
  grid-area: body;
  min-width: 0;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0;
}

.beat-mini-player__cover {
  width: 50px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, #171717, #080808);
  background-position: center;
  background-size: cover;
  color: var(--soft);
  font-weight: 950;
  overflow: hidden;
}

.beat-mini-player__cover.has-image {
  border-color: rgba(255,255,255,0.24);
  color: transparent;
}

.beat-mini-player__cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.beat-mini-player__info {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.beat-mini-player__info strong,
.beat-mini-player__info span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.beat-mini-player__info strong {
  font-size: 15px;
  line-height: 1.05;
}

.beat-mini-player__info span {
  color: var(--soft);
  font-size: 11px;
  font-weight: 850;
}

.beat-mini-player__controls {
  display: inline-grid;
  grid-template-columns: 30px 42px 30px;
  align-items: center;
  gap: 5px;
}

.beat-mini-player__play,
.beat-mini-player__skip {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(184,255,224,0.48);
  background: rgba(184,255,224,0.09);
  color: #b8ffe0;
  cursor: pointer;
}

.beat-mini-player__skip {
  width: 30px;
  height: 30px;
  border-color: rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.04);
  color: var(--soft);
  font-size: 10px;
  font-weight: 950;
}

.beat-mini-player__play:hover,
.beat-mini-player__skip:hover {
  background: #b8ffe0;
  color: #050505;
}

.beat-mini-player.is-playing .beat-mini-player__play .beat-play-icon {
  width: 10px;
  height: 13px;
  border: 0;
  background: linear-gradient(90deg, currentColor 0 34%, transparent 34% 66%, currentColor 66%);
}

.beat-mini-player__progress {
  grid-area: progress;
  position: relative;
  width: 100%;
  height: 18px;
  display: block;
  border: 1px solid rgba(255,255,255,0.14);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.085), rgba(255,255,255,0.028));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(0,0,0,0.58);
  cursor: pointer;
  margin: 0;
  overflow: hidden;
  padding: 0;
  touch-action: none;
}

.beat-mini-player__progress:hover,
.beat-mini-player__progress.is-scrubbing {
  border-color: rgba(184,255,224,0.66);
}

.beat-mini-player__progress::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  z-index: 2;
  height: 1px;
  background: rgba(255,255,255,0.16);
  transform: translateY(-50%);
  pointer-events: none;
}

.beat-mini-player__progress::after {
  content: "";
  position: absolute;
  left: var(--seek-progress, 0%);
  top: 3px;
  bottom: 3px;
  z-index: 3;
  width: 2px;
  background: rgba(184,255,224,0.92);
  box-shadow: 0 0 14px rgba(184,255,224,0.32);
  transform: translateX(-50%);
  pointer-events: none;
}

.beat-mini-player__progress span {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, #b8ffe0, rgba(184,255,224,0.16));
  box-shadow: 8px 0 18px rgba(184,255,224,0.16);
}

.beat-mini-player__volume {
  grid-area: volume;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0;
}

.beat-mini-player__volume button {
  min-height: 26px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.04);
  color: var(--soft);
  cursor: pointer;
  padding: 0 8px;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.beat-mini-player__volume input {
  width: 100%;
  accent-color: #b8ffe0;
}

.beat-mini-player__time {
  grid-area: time;
  min-width: 76px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  padding: 0;
  font-size: 10px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.beat-player-empty {
  color: var(--muted);
  font-size: 12px;
}

.beat-price {
  grid-area: price;
  color: var(--good);
  font-size: 22px;
  line-height: 1;
  white-space: nowrap;
}

.beat-actions,
.assign-controls,
.row-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.beat-actions--status {
  align-items: center;
}

.beat-status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.045);
  color: var(--soft);
  padding: 0 10px;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.beat-status--live {
  border-color: rgba(62, 216, 132, 0.42);
  color: #6ff0a7;
}

.beat-status--sold {
  border-color: rgba(255, 207, 112, 0.46);
  color: #ffd681;
}

.beat-status--hidden {
  border-color: rgba(255,255,255,0.18);
}

body[data-page="public"] .beat-shop-grid .beat-actions {
  justify-content: stretch;
}

body[data-page="public"] .beat-shop-grid .beat-actions > * {
  flex: 1 1 auto;
}

.beat-empty,
.beat-card--skeleton {
  min-height: 160px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.035);
  padding: 14px;
}

.beat-empty {
  display: grid;
  place-items: center;
  gap: 9px;
  text-align: center;
}

.beat-empty strong {
  font-size: 18px;
}

.beat-empty p,
.beat-grid-note {
  color: var(--soft);
}

.beat-card--skeleton {
  display: grid;
  gap: 10px;
}

.beat-card--skeleton span {
  display: block;
  min-height: 24px;
  background: linear-gradient(90deg, rgba(255,255,255,0.055), rgba(255,255,255,0.12), rgba(255,255,255,0.055));
  background-size: 220% 100%;
  animation: shimmer 1.1s linear infinite;
}

@keyframes shimmer {
  to { background-position: -220% 0; }
}

.assign-sale-field {
  min-width: 132px;
  display: grid;
  gap: 3px;
}

.assign-sale-field span {
  color: var(--soft);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.assign-sale-field input {
  height: 31px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255,255,255,0.04);
  color: var(--ink);
  padding: 0 8px;
  font-weight: 850;
}

.page {
  width: min(760px, calc(100% - 28px));
  min-height: 100dvh;
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 22px 0;
}

.success-card {
  width: 100%;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.staff-layout {
  min-height: calc(100dvh - var(--topbar));
  display: grid;
  grid-template-columns: 254px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  align-items: start;
}

.staff-login-gate {
  width: min(560px, calc(100% - 28px));
  margin: clamp(28px, 8vh, 82px) auto;
  padding: clamp(16px, 3vw, 26px);
}

.staff-login-card {
  display: grid;
  gap: 14px;
}

.staff-login-card h1 {
  max-width: 440px;
  font-size: clamp(28px, 5vw, 52px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.staff-login-card p {
  max-width: 460px;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.45;
}

.staff-login-form {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.staff-login-form .primary-button {
  width: 100%;
}

.staff-rail {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
  overflow: visible;
}

.rail-brand {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.01)),
    #050505;
  padding: 10px;
}

.rail-brand .eyebrow {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.rail-brand h1 {
  max-width: 180px;
  font-size: 22px;
  line-height: 1.02;
  font-weight: 950;
}

.rail-menu {
  display: grid;
  gap: 5px;
}

.rail-menu a {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  padding: 0 10px;
  color: var(--ink);
  background: rgba(255,255,255,0.025);
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.rail-menu a::after {
  content: ">";
  color: var(--muted);
  font-weight: 900;
}

.rail-menu a:hover {
  border-color: var(--line-strong);
  background: rgba(255,255,255,0.08);
}

.rail-menu a.is-active,
.rail-menu a.is-active:hover {
  border-color: #fff;
  background: #fff;
  color: #000;
}

.rail-menu a.is-active::after {
  color: #000;
}

.rail-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.connection-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
}

.connection-grid article {
  min-height: 31px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.025);
  padding: 7px 9px;
}

.connection-grid span,
.booking-row span,
.block-row span {
  color: var(--soft);
  font-size: 11px;
  font-weight: 850;
}

.connection-grid strong {
  display: block;
  min-width: 0;
  margin-top: 0;
  font-size: 12px;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-align: right;
}

.staff-calendar-join {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
}

.staff-main {
  min-height: calc(100dvh - var(--topbar) - 20px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto;
  gap: 0;
}

.staff-panel {
  min-height: 0;
  padding: 12px;
  overflow: visible;
}

.staff-panel--active {
  height: auto;
  min-height: calc(100dvh - var(--topbar) - 20px);
  display: grid;
  align-content: start;
  gap: 0;
}

#staff-dashboard-panel.staff-panel--active {
  grid-template-rows: auto auto auto auto;
}

#staff-manual-booking-panel.staff-panel--active {
  grid-template-rows: auto auto;
}

#staff-songs-panel.staff-panel--active {
  grid-template-rows: auto auto auto;
}

#staff-files-panel.staff-panel--active {
  grid-template-rows: auto auto;
}

#staff-beats-panel.staff-panel--active {
  grid-template-rows: auto auto auto;
}

#staff-permissions-panel.staff-panel--active {
  grid-template-rows: auto auto auto;
}

#staff-services-panel.staff-panel--active {
  grid-template-rows: auto auto auto;
}

.staff-panel .panel-head {
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.staff-panel .section-kicker {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
}

.staff-panel .panel-head h2 {
  font-size: clamp(19px, 1.6vw, 25px);
}

.staff-panel--wide {
  grid-row: span 1;
}

.dashboard-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.dashboard-strip article {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.065), rgba(255,255,255,0.018)),
    #050505;
  padding: 12px;
}

.dashboard-strip span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.18;
  text-transform: uppercase;
}

.dashboard-strip strong {
  min-width: 0;
  overflow: visible;
  color: #fff;
  font-size: clamp(17px, 1.7vw, 28px);
  line-height: 1.08;
  overflow-wrap: anywhere;
  white-space: normal;
}

.staff-health-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 6px;
  margin: -4px 0 12px;
}

.staff-health-strip article {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.026);
  padding: 8px;
}

.staff-health-strip span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.staff-health-strip strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.staff-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.staff-mini-panel,
.staff-system-tests,
.availability-debugger {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.026);
  padding: 10px;
}

.calendar-access-panel {
  display: grid;
  gap: 8px;
}

.calendar-access-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.025);
  padding: 8px;
}

.calendar-access-status span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calendar-access-status strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.calendar-access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.calendar-access-actions button,
.calendar-access-actions a {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 10px;
  font-size: 11px;
}

.panel-subhead--tight {
  margin: 0 0 8px;
  padding: 0 0 8px;
}

.setup-checklist,
.staff-today-list {
  display: grid;
  gap: 6px;
}

.setup-item,
.today-row {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.26);
  padding: 8px;
}

.setup-item span,
.today-row span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.setup-item strong {
  color: var(--ink);
  font-size: 12px;
  text-transform: capitalize;
}

.setup-item p,
.today-row p {
  margin: 0;
  color: var(--soft);
  font-size: 12px;
}

.setup-item--ready {
  border-color: rgba(83, 227, 154, 0.42);
  background: rgba(83, 227, 154, 0.075);
}

.setup-item--ready strong {
  color: var(--good);
}

.setup-item--blocked,
.setup-item--needs-setup {
  border-color: rgba(255, 117, 117, 0.45);
  background: rgba(255, 117, 117, 0.07);
}

.setup-item--blocked strong,
.setup-item--needs-setup strong {
  color: var(--bad);
}

.setup-item--check {
  border-color: rgba(255, 179, 71, 0.48);
  background: rgba(246, 200, 95, 0.07);
}

.setup-item--check strong {
  color: var(--gold);
}

.system-test-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.system-test-grid button {
  min-height: 34px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.045);
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.staff-manual-booking {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.026);
  padding: 9px;
}

body[data-page="staff"] .staff-manual-booking,
body[data-page="staff"] .availability-debugger,
body[data-page="staff"] .staff-account-create,
body[data-page="staff"] .staff-timeoff,
body[data-page="staff"] #song-upload-form,
body[data-page="staff"] .upload-screen {
  width: min(100%, 1120px);
  max-width: 1120px;
}

.booking-edit-form--manual {
  border-top: 1px solid var(--line);
  margin-top: 9px;
  align-content: start;
}

.staff-manual-booking .booking-edit-form--manual {
  border-top: 0;
  margin-top: 0;
}

.manual-booking-finance {
  display: grid;
  grid-template-columns: minmax(250px, 360px);
  gap: 10px;
  align-items: start;
}

.manual-booking-addons {
  min-width: 0;
}

.manual-booking-addons--inline {
  grid-column: span 3;
  align-self: stretch;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.025);
  padding: 8px;
}

.manual-booking-addons--inline .field-label {
  display: block;
  margin-bottom: 6px;
}

.manual-booking-addons--inline .addon-list--compact {
  grid-template-columns: repeat(3, minmax(130px, 1fr));
}

.manual-booking-addons--inline .addon-item--compact {
  min-height: 42px;
  padding: 7px;
}

.manual-booking-addons .addon-list {
  margin-top: 0;
}

.manual-billing-card {
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0;
  align-self: stretch;
}

.manual-billing-card > div {
  border-right: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 0 8px;
}

.manual-billing-card > div:not(:first-child) {
  padding-top: 8px;
}

.manual-billing-card > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.manual-payment-toggle {
  background:
    linear-gradient(135deg, rgba(246, 200, 95, 0.14), rgba(255,255,255,0.035) 52%),
    #050505;
}

.manual-payment-toggle > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.manual-payment-toggle strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.15;
}

.manual-payment-toggle small {
  color: var(--soft);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.manual-payment-toggle input:checked {
  border-color: rgba(246, 200, 95, 0.82);
  background: rgba(246, 200, 95, 0.24);
}

.manual-payment-toggle input:checked::before {
  background: var(--gold);
}

.panel-subhead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  margin-bottom: 10px;
}

.panel-subhead h3 {
  font-size: 18px;
}

#staff-availability-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

#staff-availability-panel .panel-head {
  margin-bottom: 7px;
  padding-bottom: 8px;
}

.booking-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  align-self: start;
  padding: 11px;
}

.booking-row.is-editing {
  background:
    linear-gradient(135deg, rgba(154, 242, 180, 0.08), rgba(255,255,255,0.025)),
    rgba(255,255,255,0.04);
  border-color: rgba(154, 242, 180, 0.42);
}

.booking-row--manual {
  border-left: 3px solid rgba(255, 179, 71, 0.75);
}

.booking-row--square {
  border-left: 3px solid rgba(83, 227, 154, 0.75);
}

.booking-status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--soft);
  padding: 3px 7px;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pill--confirmed,
.status-pill--synced,
.status-pill--square,
.status-pill--ready {
  border-color: rgba(83, 227, 154, 0.42);
  background: rgba(83, 227, 154, 0.08);
  color: var(--good);
}

.status-pill--manual,
.status-pill--pending-payment,
.status-pill--needs-retry,
.status-pill--needs-review,
.status-pill--check {
  border-color: rgba(255, 179, 71, 0.48);
  background: rgba(246, 200, 95, 0.08);
  color: var(--gold);
}

.status-pill--blocked,
.status-pill--cancelled {
  border-color: rgba(255, 117, 117, 0.48);
  background: rgba(255, 117, 117, 0.08);
  color: #ff8d8d;
}

.status-pill--completed {
  border-color: rgba(255,255,255,0.22);
  color: var(--muted);
}

.booking-email-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 6px;
  align-items: center;
  margin-top: 8px;
}

.booking-email-panel > div {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.026);
  padding: 6px;
}

.booking-email-panel span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.booking-email-panel strong {
  color: var(--ink);
  font-size: 11px;
}

.booking-warning {
  border-left: 3px solid rgba(255, 179, 71, 0.75);
  background: rgba(255, 179, 71, 0.08);
  padding: 6px 8px;
  color: #ffcf80 !important;
}

.booking-email-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.booking-email-actions button {
  min-height: 30px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--ink);
  font-size: 10px;
  font-weight: 900;
}

.booking-edit-form {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

body[data-page="staff"] .staff-panel form > .primary-button,
body[data-page="staff"] .staff-panel form > .secondary-button,
body[data-page="staff"] .staff-panel form > .danger-button {
  width: auto;
  min-width: 148px;
  max-width: min(100%, 280px);
  justify-self: start;
}

.booking-edit-form[hidden] {
  display: none;
}

.booking-edit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 8px;
}

.booking-edit-grid .field:first-child {
  grid-column: span 2;
}

.booking-edit-total {
  min-height: 42px;
  display: grid;
  align-content: center;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.025);
  padding: 8px;
}

.booking-edit-total span {
  color: var(--soft);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.booking-edit-total strong {
  color: var(--good);
  font-size: 18px;
  letter-spacing: -0.04em;
}

.booking-edit-addons {
  display: grid;
  gap: 7px;
}

.addon-list--compact {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 6px;
}

.addon-item--compact {
  min-height: 52px;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: center;
  justify-items: stretch;
  text-align: left;
}

.addon-item--compact > span {
  justify-items: start;
  gap: 2px;
}

.addon-item--compact b {
  color: var(--ink);
  font-size: 12px;
}

.booking-edit-actions {
  justify-content: flex-start;
}

.booking-history {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.booking-activity {
  margin-top: 8px;
}

.booking-activity summary {
  cursor: pointer;
  color: var(--soft);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.booking-history span {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.035);
  color: var(--soft);
  padding: 4px 6px;
  font-size: 10px;
  font-weight: 800;
}

.permission-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 190px) auto;
  align-items: end;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.07), rgba(255,255,255,0.018)),
    #050505;
  margin-bottom: 8px;
  padding: 10px;
}

.permission-search-field {
  margin: 0;
}

.permission-sort-field {
  margin: 0;
}

.permission-count {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.035);
  color: var(--muted);
  padding: 0 9px;
  font-size: 11px;
  font-weight: 850;
  text-align: right;
  white-space: nowrap;
}

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

.permission-summary-grid article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.055), rgba(255,255,255,0.014)),
    #050505;
  padding: 10px;
}

.permission-summary-grid span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.permission-summary-grid strong {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-size: clamp(18px, 1.7vw, 28px);
  line-height: 1;
}

.permission-summary-grid article:nth-child(2) strong {
  color: #b8dcff;
}

.permission-summary-grid article:nth-child(3) strong,
.permission-summary-grid article:nth-child(4) strong {
  color: var(--gold);
}

.permission-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(132px, 160px) minmax(168px, 210px);
  align-items: center;
  gap: 10px;
  border-left: 3px solid rgba(255,255,255,0.18);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012)),
    rgba(0,0,0,0.18);
  padding: 9px 10px;
}

.permission-row--admin {
  border-left-color: rgba(246, 200, 95, 0.82);
}

.permission-row--staff {
  border-left-color: rgba(166, 215, 255, 0.72);
}

.permission-row--client {
  border-left-color: rgba(154,242,180,0.42);
}

.permission-account {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.permission-account-head {
  min-width: 0;
  display: block;
}

.permission-row h4 {
  margin-bottom: 2px;
  font-size: 14px;
  line-height: 1.15;
}

.permission-row p {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

.permission-role-field {
  margin: 0;
}

.staff-account-create {
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.022)),
    #050505;
  margin: 0 0 10px;
  padding: 10px;
}

.staff-account-create-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
  padding-bottom: 8px;
}

.staff-account-create-head h3 {
  font-size: 17px;
  line-height: 1;
}

.staff-account-create-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 10px;
  align-items: end;
}

.staff-account-create-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.permission-toggle {
  justify-self: end;
  min-width: 0;
  width: 100%;
  background:
    linear-gradient(135deg, rgba(246,200,95,0.11), rgba(255,255,255,0.03)),
    #050505;
}

.service-assignment-row {
  align-items: flex-start;
}

.service-assignment-checks {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.service-assignment-checks .permission-toggle {
  min-width: 150px;
}

.service-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}

.service-editor-list {
  gap: 8px;
}

.service-editor-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-radius: 6px;
  padding: 10px;
}

.service-editor-row.is-editing {
  border-color: var(--line-strong);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025)),
    #050505;
}

.service-list-main {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.service-list-thumb {
  width: 62px;
  height: 62px;
  border-radius: 6px;
  border: 1px solid var(--line);
  object-fit: cover;
  background: rgba(255,255,255,0.045);
}

.service-list-thumb--empty {
  display: grid;
  place-items: center;
  color: var(--soft);
  font-size: 12px;
  font-weight: 900;
}

.service-list-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.service-list-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.service-list-title h4 {
  min-width: 0;
  overflow-wrap: anywhere;
}

.service-status-chip,
.service-list-meta span {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--soft);
  padding: 4px 6px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.service-status-chip--staff {
  border-color: rgba(166, 215, 255, 0.34);
  background: rgba(166, 215, 255, 0.07);
  color: #b8dcff;
}

.service-status-chip--open {
  border-color: rgba(83, 227, 154, 0.42);
  background: rgba(83, 227, 154, 0.08);
  color: var(--good);
}

.service-status-chip--auto {
  border-color: rgba(83, 227, 154, 0.34);
  background: rgba(83, 227, 154, 0.07);
  color: var(--good);
}

.service-status-chip--confirm {
  border-color: rgba(246, 200, 95, 0.54);
  background: rgba(246, 200, 95, 0.1);
  color: var(--gold);
}

.service-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

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

.service-editor-details {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.service-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 10px;
}

.service-editor-grid .field--wide {
  grid-column: 1 / -1;
}

.service-image-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.service-image-preview,
.service-image-placeholder {
  width: 116px;
  height: 78px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.045);
}

.service-image-preview {
  object-fit: cover;
}

.service-image-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.service-image-placeholder--wide {
  width: 100%;
  height: 92px;
}

.service-image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
  gap: 8px;
}

.service-image-tile {
  min-width: 0;
  display: grid;
  gap: 6px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,0.035);
  padding: 6px;
}

.service-image-tile.is-primary {
  border-color: rgba(246, 200, 95, 0.72);
  box-shadow: inset 0 0 0 1px rgba(246, 200, 95, 0.18);
}

.service-image-tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  object-fit: cover;
  background: #080808;
}

.service-image-tile figcaption {
  display: grid;
  gap: 5px;
}

.service-image-tile figcaption span {
  color: var(--soft);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.service-image-tile figcaption div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.service-image-tile button {
  min-height: 26px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255,255,255,0.045);
  color: var(--ink);
  cursor: pointer;
  font-size: 10px;
  font-weight: 850;
  padding: 0 7px;
}

.service-image-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.service-image-controls input {
  min-width: 180px;
  flex: 1 1 220px;
}

.service-staff-picker[hidden] {
  display: none;
}

.service-staff-dropdown {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,0.035);
  padding: 8px;
}

.service-staff-dropdown summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 800;
}

.service-staff-menu {
  display: grid;
  gap: 7px;
  max-height: 210px;
  overflow: auto;
  padding-top: 8px;
}

.service-staff-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255,255,255,0.025);
  padding: 5px;
  cursor: grab;
}

.service-staff-option.is-assigned {
  border-color: rgba(166, 215, 255, 0.34);
  background: rgba(166, 215, 255, 0.06);
}

.service-staff-option.is-dragging {
  opacity: 0.55;
}

.service-staff-option .permission-toggle {
  justify-self: stretch;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
}

.service-staff-order-controls {
  display: inline-flex;
  gap: 4px;
}

.service-staff-order-controls button {
  min-height: 26px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  color: var(--soft);
  padding: 0 7px;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.service-remove-button {
  flex: 0 0 auto;
}

.booking-row h3,
.block-row h3 {
  margin: 3px 0 5px;
  font-size: 16px;
}

.block-row {
  display: grid;
  gap: 6px;
  padding: 10px;
}

.availability-form {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto auto auto;
  align-content: start;
  gap: 5px;
}

.staff-timeoff {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.025);
  padding: 10px;
  margin-top: 12px;
}

.staff-block-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.95fr) minmax(280px, 1.05fr);
  gap: 10px;
  align-items: start;
}

.staff-calendar-card,
.staff-block-form {
  border: 1px solid var(--line);
  background: #050505;
  padding: 10px;
}

.staff-block-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.staff-block-form .field--wide,
.staff-block-form .form-message,
.staff-block-form .primary-button {
  grid-column: 1 / -1;
}

.staff-block-form .primary-button {
  width: auto;
  min-width: 172px;
  max-width: min(100%, 280px);
  justify-self: start;
}

.staff-block-hours {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.staff-block-presets {
  display: grid;
  grid-template-columns: auto repeat(3, minmax(0, 1fr));
  gap: 6px;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
  padding: 6px;
}

.staff-block-presets span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.staff-block-preset {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255,255,255,0.04);
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.staff-block-preset:hover {
  border-color: #fff;
  background: #fff;
  color: #000;
}

.staff-block-calendar {
  touch-action: none;
  user-select: none;
}

.staff-block-calendar.is-dragging .staff-block-day {
  cursor: crosshair;
}

.staff-block-day {
  cursor: pointer;
}

.staff-block-day.has-block {
  border-color: rgba(255, 214, 129, 0.82);
  color: #ffd681;
  box-shadow: inset 0 -3px 0 rgba(255, 214, 129, 0.78);
}

.staff-block-day.is-selected {
  border-color: #fff;
  background: #fff;
  color: #000;
  box-shadow: none;
}

.staff-block-day.is-in-range {
  border-color: rgba(184, 255, 224, 0.28);
  background: rgba(184, 255, 224, 0.08);
}

.staff-block-day.is-range-end {
  border-color: #b8ffe0;
  background: rgba(184, 255, 224, 0.16);
  color: #fff;
}

.staff-block-list {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.availability-toggle {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 5px 8px 5px 10px;
  background:
    linear-gradient(135deg, rgba(154,242,180,0.12), rgba(255,255,255,0.035) 52%),
    #050505;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.availability-toggle input {
  appearance: none;
  width: 42px;
  height: 22px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #121212;
  padding: 2px;
}

.availability-toggle input::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 0.16s ease, background 0.16s ease;
}

.availability-toggle input:checked {
  border-color: rgba(154,242,180,0.75);
  background: rgba(154,242,180,0.2);
}

.availability-toggle input:checked::before {
  transform: translateX(18px);
  background: var(--good);
}

.weekly-hours {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 3px;
  overflow: visible;
}

.weekly-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) minmax(0, 1fr);
  gap: 4px;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.025);
  padding: 2px;
}

.weekly-day {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0 6px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 900;
  background: rgba(0,0,0,0.24);
}

.weekly-day input {
  appearance: none;
  width: 12px;
  height: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: #020202;
  margin: 0;
}

.weekly-day input:checked {
  border-color: #fff;
  background: #fff;
  box-shadow: inset 0 0 0 3px #000;
}

.weekly-time {
  min-width: 0;
  min-height: 24px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.2);
  padding: 0 5px;
}

.weekly-time small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.weekly-row input[type="time"] {
  min-width: 0;
  width: 100%;
  height: 22px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  font-weight: 850;
  outline: none;
}

.scroll-list {
  max-height: none;
  overflow-y: auto;
  padding-right: 4px;
}

.scroll-list--small {
  max-height: none;
  margin-top: 10px;
}

.staff-panel--active .scroll-list--small {
  max-height: none;
  height: auto;
  min-height: 0;
}

.staff-client-files {
  min-width: 0;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.045), rgba(255,255,255,0.014)),
    #050505;
}

.staff-client-files__summary {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 10px;
  text-align: left;
}

.staff-client-files__summary:hover,
.staff-client-files__summary:focus-visible {
  background: rgba(255,255,255,0.045);
  outline: none;
}

.staff-client-files__identity {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.staff-client-files__identity strong,
.staff-client-files__identity small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-client-files__identity strong {
  font-size: 14px;
}

.staff-client-files__identity small {
  color: var(--soft);
  font-size: 11px;
  font-weight: 800;
}

.staff-client-files__chevron {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.7;
  transform: rotate(45deg);
  transition: transform 150ms ease;
}

.staff-client-files__summary[aria-expanded="true"] .staff-client-files__chevron {
  transform: rotate(-135deg);
}

.staff-client-files__body {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 8px;
}

.staff-folder-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
  padding: 7px;
}

.staff-folder-toolbar input {
  min-width: 0;
  flex: 1 1 180px;
  min-height: 30px;
  border: 1px solid rgba(255,255,255,0.16);
  background: #050505;
  color: var(--ink);
  padding: 0 8px;
  font-size: 12px;
  font-weight: 850;
}

.staff-song-folder-list {
  display: grid;
  gap: 8px;
}

.staff-song-folder {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  padding: 7px;
}

.staff-song-folder__head {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.staff-song-folder__head strong,
.staff-song-folder__head input {
  min-width: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
}

.staff-song-folder__head input {
  flex: 1 1 auto;
  min-height: 30px;
  border: 1px solid rgba(255,255,255,0.14);
  background: #050505;
  padding: 0 8px;
}

.staff-song-folder__rows {
  display: grid;
  gap: 6px;
}

.staff-file-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(170px, 230px) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.28);
  padding: 8px;
}

.staff-file-row__main {
  min-width: 0;
}

.staff-file-row p {
  margin: 0;
  overflow: hidden;
  color: var(--soft);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-file-row__name {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.staff-file-row__name span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
}

.staff-file-row__name input {
  min-width: 0;
  width: 100%;
  min-height: 30px;
  border: 1px solid rgba(255,255,255,0.16);
  background: #050505;
  color: var(--ink);
  padding: 0 8px;
  font-size: 12px;
  font-weight: 850;
}

.staff-file-row__date {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.staff-file-row__folder {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.staff-file-row__folder span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
}

.staff-file-row__folder select {
  min-width: 0;
  width: 100%;
  min-height: 30px;
  border: 1px solid rgba(255,255,255,0.16);
  background: #050505;
  color: var(--ink);
  padding: 0 8px;
  font-size: 11px;
  font-weight: 850;
}

.staff-file-row__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.staff-file-row__button {
  min-height: 30px;
  padding-inline: 10px;
  font-size: 11px;
  white-space: nowrap;
}

body[data-page="staff"] .beat-scroll {
  height: auto;
  overflow-y: visible;
}

.upload-screen {
  border: 1px solid var(--line);
  padding: 12px;
  margin-bottom: 12px;
  background: rgba(255,255,255,0.03);
}

.beat-card--staff {
  grid-template-columns: 70px minmax(0, 1fr) auto;
  grid-template-areas: "art body price";
}

.beat-card--staff .beat-art,
.beat-card--staff .beat-cover {
  width: 70px;
}

.beat-card--staff .beat-actions {
  display: none;
}

.beat-note {
  grid-column: 1 / -1;
  font-size: 12px;
}

.beat-note--history {
  color: var(--soft);
}

.beat-manage-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  padding-top: 2px;
}

.beat-edit-panel {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  background: #050505;
  padding: 10px;
}

.beat-edit-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  align-items: end;
}

.beat-edit-form .field--wide,
.beat-edit-form .form-message,
.beat-edit-actions {
  grid-column: 1 / -1;
}

.beat-visible-toggle,
.beat-clear-stems {
  gap: 6px;
}

.beat-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.beat-history {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.beat-history-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 7px 8px;
}

.beat-history-row strong {
  color: var(--ink);
  font-size: 11px;
  text-transform: uppercase;
}

.beat-history-row span {
  min-width: 0;
  color: var(--soft);
  font-size: 12px;
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  body[data-page="public"],
  body[data-page="staff"] {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .app-frame,
  .staff-frame {
    width: 100vw;
    max-width: 100vw;
    min-height: 100dvh;
    height: auto;
  }

  .staff-layout,
  .staff-main {
    display: grid;
    grid-template-columns: 1fr;
  }

  .staff-main {
    grid-template-rows: auto;
  }

  .dashboard-strip {
    grid-template-columns: 1fr;
  }

  .staff-dashboard-grid,
  .booking-email-panel {
    grid-template-columns: 1fr;
  }

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

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

  .view-grid.is-active {
    display: grid;
  }

  .view-grid--seo.is-active {
    display: block;
  }

  .view-grid {
    max-width: 100vw;
    min-height: calc(100dvh - var(--topbar));
  }

  .seo-page {
    padding: 10px;
  }

  .seo-hero {
    min-height: 560px;
  }

  .seo-hero--image::after {
    background:
      linear-gradient(0deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.28) 72%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.72), transparent);
  }

  .seo-copy {
    padding: 22px;
  }

  .seo-band--two,
  .seo-feature-grid,
  .seo-image-strip,
  .seo-media-grid {
    grid-template-columns: 1fr;
  }

  .seo-feature-grid article {
    padding: 0 0 16px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .seo-feature-grid article:last-child {
    border-bottom: 0;
  }

  .hero-panel {
    min-height: 240px;
  }

  .service-grid,
  .field-grid,
  .library-grid,
  .profile-form {
    grid-template-columns: 1fr;
  }

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

  .addon-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .weekly-row {
    grid-template-columns: 74px 1fr 1fr;
  }

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

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

  #staff-availability-panel {
    grid-row: auto;
  }

  .beat-card {
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-areas:
      "art body"
      "price actions";
  }

  .beat-art {
    width: 72px;
  }

  .beat-actions,
  .assign-controls {
    justify-content: stretch;
  }

  .beat-actions > *,
  .assign-controls > * {
    flex: 1 1 140px;
  }

  body[data-page="public"] .beat-store-toolbar {
    grid-template-columns: 1fr;
  }

  body[data-page="public"] .beat-shop-grid {
    grid-template-columns: 1fr;
  }

  .beat-history-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }

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

  .assign-sale-field {
    flex-basis: 120px;
  }

  .staff-client-files__summary {
    grid-template-columns: minmax(0, 1fr) 24px;
    align-items: start;
  }

  .staff-file-row {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 6px;
  }

  .staff-file-row__date {
    justify-self: start;
  }

  .staff-folder-toolbar,
  .staff-song-folder__head,
  .staff-file-row__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .staff-file-row__actions {
    justify-content: flex-start;
  }

  .staff-file-row__button {
    justify-self: start;
  }

  body[data-page="staff"] .staff-layout {
    padding: 6px;
    gap: 6px;
  }

  body[data-page="staff"] .staff-rail,
  body[data-page="staff"] .staff-panel {
    padding: 9px;
  }

  body[data-page="staff"] .rail-menu {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }

  body[data-page="staff"] .rail-menu a {
    min-height: 28px;
    justify-content: center;
    padding: 0 6px;
    font-size: 9px;
    letter-spacing: 0.035em;
    text-align: center;
  }

  body[data-page="staff"] .rail-menu a::after {
    display: none;
  }
}

@media (max-width: 620px) {
  :root { --topbar: 58px; }

  *,
  *::before,
  *::after {
    min-width: 0 !important;
  }

  .topbar {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    padding: 7px 10px;
    gap: 8px;
    overflow: hidden;
  }

  .brand-home {
    flex: 0 0 auto;
  }

  .brand-logo--wide {
    width: 132px;
    height: 40px;
    flex: none;
    object-fit: contain;
    object-position: left center;
  }

  .topnav {
    position: absolute;
    top: 50%;
    right: 8px;
    width: calc(100vw - 180px);
    transform: translateY(-50%);
    justify-content: end;
    gap: 3px;
    overflow: hidden;
    scrollbar-width: none;
  }

  .topnav::-webkit-scrollbar {
    display: none;
  }

  .nav-button,
  .primary-button,
  .secondary-button,
  .small-link,
  .tab-button {
    min-height: 30px;
    padding: 0 6px;
    font-size: 11px;
    white-space: nowrap;
  }

  .nav-dropdown__menu {
    right: 0;
  }

  .view-grid,
  .staff-layout {
    width: 100vw;
    max-width: 100vw;
    padding: 8px;
    gap: 8px;
  }

  .wizard-panel,
  .library-panel,
  .dashboard-panel,
  .auth-panel,
  .hero-panel,
  .staff-rail,
  .staff-panel {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    padding: 12px;
  }

  .wizard-panel,
  .library-panel,
  .dashboard-panel,
  .auth-panel {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
  }

  .hero-panel p,
  .staff-rail p {
    max-width: calc(100vw - 42px);
  }

  .step-track {
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
  }

  .step-dot {
    justify-content: center;
    padding: 0;
  }

  .step-dot strong {
    display: none;
  }

  .mini-row,
  .booking-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .service-assignment-checks {
    justify-content: stretch;
  }

  .service-assignment-checks .permission-toggle {
    width: 100%;
    min-width: 0;
  }

  .service-editor-row,
  .service-editor-grid,
  .service-image-row {
    grid-template-columns: 1fr;
  }

  .service-list-actions {
    justify-content: stretch;
  }

  .service-list-actions button {
    flex: 1 1 120px;
  }

  .permission-toolbar,
  .permission-row {
    grid-template-columns: 1fr;
  }

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

  .permission-toolbar {
    display: grid;
    align-items: stretch;
  }

  .permission-count {
    justify-content: flex-start;
    text-align: left;
    white-space: normal;
  }

  .permission-role-field,
  .permission-sort-field,
  .permission-row .permission-toggle {
    width: 100%;
    min-width: 0;
  }

  .staff-account-create-form {
    grid-template-columns: 1fr;
  }

  .staff-account-create-actions button {
    flex: 1 1 150px;
  }

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

  .client-booking-card__head,
  .booking-client-actions {
    grid-template-columns: 1fr;
  }

  .client-booking-card__head {
    display: grid;
  }

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

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

  .manual-booking-finance {
    grid-template-columns: 1fr;
  }

  .manual-booking-addons--inline {
    grid-column: 1 / -1;
  }

  .manual-billing-card {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .manual-billing-card > div {
    border-right: 1px solid var(--line);
    border-bottom: 0;
    padding: 0 8px 0 0;
  }

  .manual-billing-card > div:not(:first-child) {
    padding-top: 0;
  }

  .manual-billing-card > div:last-child {
    border-right: 0;
    padding-right: 0;
  }

  .booking-edit-grid .field:first-child,
  .booking-edit-grid [data-staff-engineer-field],
  .booking-edit-total {
    grid-column: 1 / -1;
  }

  .addon-list--compact {
    grid-template-columns: 1fr;
  }

  .staff-timeoff {
    gap: 8px;
    padding: 8px;
  }

  .staff-calendar-card,
  .staff-block-form {
    padding: 8px;
  }

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

  .staff-block-presets {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .staff-block-presets span {
    grid-column: 1 / -1;
  }

  .staff-calendar-card .calendar-day,
  .staff-calendar-card .calendar-empty {
    min-height: 32px;
  }

  body[data-page="staff"] {
    font-size: 12px;
  }

  body[data-page="staff"] .topbar {
    padding: 5px 7px;
    gap: 5px;
  }

  body[data-page="staff"] .topnav {
    right: 6px;
    width: auto;
    gap: 2px;
  }

  body[data-page="staff"] .nav-button {
    min-height: 26px;
    padding: 0 5px;
    font-size: 10px;
  }

  body[data-page="staff"] .staff-layout {
    padding: 5px;
    gap: 5px;
  }

  body[data-page="staff"] .staff-rail,
  body[data-page="staff"] .staff-panel {
    width: calc(100vw - 10px);
    max-width: calc(100vw - 10px);
    padding: 7px;
    border-radius: 0;
  }

  body[data-page="staff"] .staff-rail {
    gap: 5px;
  }

  body[data-page="staff"] .rail-brand {
    gap: 5px;
    padding: 6px;
  }

  body[data-page="staff"] .rail-brand .eyebrow {
    margin-bottom: 1px;
    font-size: 7px;
    letter-spacing: 0.07em;
  }

  body[data-page="staff"] .rail-brand h1 {
    max-width: none;
    font-size: 14px;
    line-height: 1;
  }

  body[data-page="staff"] .rail-menu {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
  }

  body[data-page="staff"] .rail-menu a {
    min-height: 24px;
    padding: 0 3px;
    font-size: 8px;
    letter-spacing: 0.02em;
  }

  body[data-page="staff"] .rail-profile {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 6px;
  }

  body[data-page="staff"] .rail-profile .field {
    gap: 2px;
  }

  body[data-page="staff"] .rail-profile .field span,
  body[data-page="staff"] .field span,
  body[data-page="staff"] .field-label {
    font-size: 9px;
  }

  body[data-page="staff"] .rail-profile .secondary-button,
  body[data-page="staff"] .primary-button,
  body[data-page="staff"] .secondary-button,
  body[data-page="staff"] .small-link,
  body[data-page="staff"] .tab-button {
    min-height: 26px;
    padding: 0 6px;
    font-size: 10px;
  }

  body[data-page="staff"] .rail-profile .form-message {
    grid-column: 1 / -1;
    min-height: 12px;
    font-size: 10px;
  }

  body[data-page="staff"] .field,
  body[data-page="staff"] .auth-form {
    gap: 4px;
  }

  body[data-page="staff"] .field input,
  body[data-page="staff"] .field select,
  body[data-page="staff"] .field textarea,
  body[data-page="staff"] .assign-controls select {
    min-height: 30px;
    padding: 6px 7px;
    font-size: 12px;
  }

  body[data-page="staff"] .staff-panel .panel-head {
    margin-bottom: 6px;
    padding-bottom: 6px;
  }

  body[data-page="staff"] .staff-panel .section-kicker {
    margin-bottom: 2px;
    font-size: 8px;
  }

  body[data-page="staff"] .staff-panel .panel-head h2 {
    font-size: 17px;
  }

  body[data-page="staff"] .dashboard-strip,
  body[data-page="staff"] .staff-dashboard-grid,
  body[data-page="staff"] .compact-list,
  body[data-page="staff"] .booking-list {
    gap: 5px;
  }

  body[data-page="staff"] .dashboard-strip {
    margin-bottom: 7px;
  }

  body[data-page="staff"] .dashboard-strip article,
  body[data-page="staff"] .staff-mini-panel,
  body[data-page="staff"] .calendar-access-panel,
  body[data-page="staff"] .staff-account-create,
  body[data-page="staff"] .permission-toolbar,
  body[data-page="staff"] .staff-timeoff,
  body[data-page="staff"] .staff-calendar-card,
  body[data-page="staff"] .staff-block-form {
    padding: 6px;
  }

  body[data-page="staff"] .panel-subhead {
    gap: 5px;
    margin-bottom: 6px;
    padding: 6px 0;
  }

  body[data-page="staff"] .panel-subhead h3 {
    font-size: 14px;
  }

  body[data-page="staff"] .mini-row,
  body[data-page="staff"] .booking-row,
  body[data-page="staff"] .block-row,
  body[data-page="staff"] .setup-item,
  body[data-page="staff"] .today-row {
    gap: 5px;
    padding: 6px;
  }

  body[data-page="staff"] .mini-row h4,
  body[data-page="staff"] .booking-row h3,
  body[data-page="staff"] .service-list-title h4 {
    font-size: 12px;
  }

  body[data-page="staff"] .mini-row p,
  body[data-page="staff"] .booking-row p,
  body[data-page="staff"] .block-row p,
  body[data-page="staff"] .setup-item p,
  body[data-page="staff"] .today-row p {
    font-size: 11px;
  }

  body[data-page="staff"] .booking-edit-form,
  body[data-page="staff"] .booking-edit-form--manual {
    margin-top: 6px;
  }

  body[data-page="staff"] .booking-edit-grid,
  body[data-page="staff"] .field-grid,
  body[data-page="staff"] .staff-account-create-form,
  body[data-page="staff"] .service-editor-grid {
    gap: 6px;
  }

  body[data-page="staff"] .permission-toolbar,
  body[data-page="staff"] .permission-row {
    grid-template-columns: minmax(0, 1fr) minmax(86px, 108px);
    align-items: center;
  }

  body[data-page="staff"] .permission-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }

  body[data-page="staff"] .permission-summary-grid article {
    padding: 6px;
  }

  body[data-page="staff"] .permission-summary-grid span {
    font-size: 7px;
    letter-spacing: 0.04em;
  }

  body[data-page="staff"] .permission-summary-grid strong {
    margin-top: 3px;
    font-size: 15px;
  }

  body[data-page="staff"] .permission-account,
  body[data-page="staff"] .permission-search-field {
    grid-column: 1 / -1;
  }

  body[data-page="staff"] .permission-sort-field {
    grid-column: 1;
  }

  body[data-page="staff"] .permission-count {
    font-size: 10px;
  }

  body[data-page="staff"] .permission-row .permission-toggle {
    justify-self: stretch;
  }

  body[data-page="staff"] .permission-row .permission-toggle span {
    font-size: 9px;
  }

  body[data-page="staff"] .service-editor-row {
    gap: 6px;
    padding: 7px;
  }

  body[data-page="staff"] .service-list-main {
    gap: 7px;
  }

  body[data-page="staff"] .service-list-thumb {
    width: 38px;
    height: 38px;
  }

  body[data-page="staff"] .service-status-chip,
  body[data-page="staff"] .service-list-meta span,
  body[data-page="staff"] .status-pill {
    padding: 3px 5px;
    font-size: 8px;
  }

  body[data-page="staff"] .service-list-actions {
    gap: 5px;
  }

  body[data-page="staff"] .service-list-actions button {
    flex-basis: 78px;
  }

  body[data-page="staff"] .calendar-head {
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    gap: 4px;
  }

  body[data-page="staff"] .calendar-head strong {
    font-size: 12px;
  }

  body[data-page="staff"] .calendar-nav,
  body[data-page="staff"] .staff-calendar-card .calendar-day,
  body[data-page="staff"] .staff-calendar-card .calendar-empty {
    min-height: 28px;
  }

  body[data-page="staff"] .weekly-row {
    grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr);
    gap: 5px;
    padding: 6px;
  }

  body[data-page="staff"] .staff-block-presets {
    gap: 4px;
  }

  body[data-page="staff"] .staff-block-preset {
    min-height: 26px;
    font-size: 9px;
  }
}

@media (max-width: 760px) {
  :root {
    --topbar: 52px;
    --mobile-nav: 58px;
    --safe-bottom: max(env(safe-area-inset-bottom, 0px), 10px);
  }

  body[data-page="public"] {
    height: 100dvh;
    overflow: hidden;
    background: #000;
  }

  body[data-page="staff"] .staff-frame {
    padding-bottom: calc(12px + var(--safe-bottom));
  }

  body[data-page="public"] .app-frame {
    height: 100dvh;
    min-height: 0;
    grid-template-rows: var(--topbar) minmax(0, 1fr);
    padding-bottom: calc(var(--mobile-nav) + var(--safe-bottom));
    background-size: 44px 44px;
  }

  body[data-page="public"].beat-mini-open .app-frame {
    padding-bottom: calc(var(--mobile-nav) + var(--beat-mini-mobile-clearance) + var(--safe-bottom));
  }

  body[data-page="public"] .topbar {
    position: relative;
    z-index: 30;
    height: var(--topbar);
    display: grid;
    place-items: center;
    padding: 5px 10px;
    border-bottom: 1px solid var(--line);
    background: #000;
  }

  body[data-page="public"] .brand-home {
    width: 132px;
    height: 40px;
  }

  body[data-page="public"] .brand-logo--wide {
    width: 132px;
    height: 40px;
    flex: none;
    object-fit: contain;
    object-position: center;
  }

  body[data-page="public"][data-brand="760media"] .brand-home {
    width: 186px;
  }

  body[data-page="public"][data-brand="760media"] .brand-logo--wide {
    width: 186px;
    height: 42px;
  }

  body[data-page="public"] .topnav {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 60;
    width: 100vw;
    height: calc(var(--mobile-nav) + var(--safe-bottom));
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    grid-template-columns: none;
    grid-template-rows: var(--mobile-nav);
    align-content: start;
    gap: 0;
    padding: 0 0 var(--safe-bottom);
    border-top: 1px solid var(--line-strong);
    background: #000;
    transform: none;
  }

  body[data-page="public"] .nav-button {
    width: 100%;
    height: var(--mobile-nav);
    min-height: var(--mobile-nav);
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    background: #050505;
    font-size: 12px;
    font-weight: 900;
    overflow: hidden;
    padding: 0 4px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body[data-page="public"] .nav-button:first-child {
    border-left: 0;
  }

  body[data-page="public"] .nav-button.is-active {
    background: #fff;
    color: #000;
  }

  body[data-page="public"] .nav-dropdown {
    width: 100%;
    height: var(--mobile-nav);
  }

  body[data-page="public"] .nav-dropdown__summary {
    width: 100%;
    height: var(--mobile-nav);
    min-height: var(--mobile-nav);
  }

  body[data-page="public"] .nav-dropdown__menu {
    top: auto;
    right: 4px;
    bottom: calc(100% + 8px);
    left: 4px;
    min-width: 0;
    padding: 5px;
  }

  body[data-page="public"] .nav-dropdown__menu a {
    min-height: 36px;
    justify-content: center;
    font-size: 12px;
  }

  body[data-page="public"] .view-grid {
    width: 100vw;
    max-width: 100vw;
    height: calc(100dvh - var(--topbar) - var(--mobile-nav) - var(--safe-bottom));
    min-height: 0;
    display: none;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
    overflow: hidden;
  }

  body[data-page="public"].beat-mini-open .view-grid {
    height: calc(100dvh - var(--topbar) - var(--mobile-nav) - var(--beat-mini-mobile-clearance) - var(--safe-bottom));
  }

  body[data-page="public"] .view-grid[data-app-view="booking"] {
    grid-template-rows: minmax(0, 1fr);
  }

  body[data-page="public"] .view-grid[data-app-view="portal"].is-dashboard-open {
    grid-template-rows: minmax(0, 1fr);
  }

  body[data-page="public"] .view-grid.is-active {
    display: grid;
  }

  body[data-page="public"] .view-grid[data-app-view="booking"] .hero-panel {
    display: none;
  }

  body[data-page="public"] .hero-panel,
  body[data-page="public"] .wizard-panel,
  body[data-page="public"] .library-panel,
  body[data-page="public"] .auth-panel,
  body[data-page="public"] .dashboard-panel {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    border-radius: 0;
    box-shadow: none;
  }

  body[data-page="public"] .view-grid[data-app-view="portal"].is-dashboard-open .dashboard-panel {
    width: 100%;
    max-width: 100%;
    height: 100%;
  }

  body[data-page="public"] .hero-panel {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 8px;
    padding: 10px 12px;
  }

  body[data-page="public"] .hero-panel .brand-logo--stacked {
    display: none;
  }

  body[data-page="public"] .hero-panel .eyebrow {
    margin-bottom: 4px;
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  body[data-page="public"] .hero-panel h1 {
    font-size: 22px;
    line-height: 1.02;
  }

  body[data-page="public"] .hero-panel p:not(.eyebrow) {
    display: none;
  }

  body[data-page="public"] .status-row {
    display: grid;
    justify-items: end;
    gap: 2px;
    border-top: 0;
    padding-top: 0;
  }

  body[data-page="public"] .status-row span {
    font-size: 10px;
  }

  body[data-page="public"] .status-row strong {
    font-size: 16px;
  }

  body[data-page="public"] .wizard-panel,
  body[data-page="public"] .library-panel,
  body[data-page="public"] .auth-panel,
  body[data-page="public"] .dashboard-panel {
    height: 100%;
    min-height: 0;
    padding: 9px;
    overflow: hidden;
  }

  body[data-page="public"] .wizard-form {
    min-height: 0;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 8px;
    overflow: hidden;
  }

  body[data-page="public"] .step-track {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 8px;
  }

  body[data-page="public"] .step-dot {
    min-height: 22px;
    justify-content: center;
    padding: 0;
    border-radius: 0;
  }

  body[data-page="public"] .step-dot span {
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    font-size: 13px;
  }

  body[data-page="public"] .step-dot strong {
    display: none;
  }

  body[data-page="public"] .wizard-step {
    gap: 10px;
    overflow-y: auto;
    padding: 0 1px max(8px, var(--safe-bottom));
    scrollbar-width: thin;
  }

  body[data-page="public"] .step-head {
    gap: 4px;
  }

  body[data-page="public"] .step-head span {
    font-size: 10px;
  }

  body[data-page="public"] .step-head h2 {
    font-size: 22px;
  }

  body[data-page="public"] .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body[data-page="public"] .booking-audio-card {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 8px;
  }

  body[data-page="public"] .booking-audio-card .secondary-button {
    width: 100%;
  }

  body[data-page="public"] .setup-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body[data-page="public"] .choice-group {
    gap: 6px;
    padding: 8px;
  }

  body[data-page="public"] .hours-control {
    min-height: 46px;
    grid-template-columns: minmax(0, 1fr) 42px;
    padding: 6px 8px;
  }

  body[data-page="public"] .hours-control input {
    font-size: 25px;
  }

  body[data-page="public"] .hour-stepper {
    min-height: 24px;
    border-radius: 0;
    font-size: 11px;
  }

  body[data-page="public"] .engineer-select {
    min-height: 42px;
    border-radius: 0;
    padding: 9px;
    font-size: 15px;
  }

  body[data-page="public"] .field {
    gap: 5px;
  }

  body[data-page="public"] .field span,
  body[data-page="public"] .field-label {
    font-size: 11px;
  }

  body[data-page="public"] .field input,
  body[data-page="public"] .field select,
  body[data-page="public"] .field textarea {
    min-height: 42px;
    border-radius: 0;
    padding: 9px;
    font-size: 15px;
  }

  body[data-page="public"] .field textarea {
    min-height: 74px;
  }

  body[data-page="public"] .calendar-shell {
    gap: 7px;
    border-radius: 0;
    padding: 8px;
  }

  body[data-page="public"] .calendar-selected {
    font-size: 11px;
  }

  body[data-page="public"] .calendar-head {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 6px;
  }

  body[data-page="public"] .calendar-head strong {
    font-size: 14px;
  }

  body[data-page="public"] .calendar-nav {
    min-height: 32px;
    border-radius: 0;
  }

  body[data-page="public"] .calendar-weekdays,
  body[data-page="public"] .calendar-grid {
    gap: 4px;
  }

  body[data-page="public"] .calendar-weekdays span {
    font-size: 9px;
  }

  body[data-page="public"] .calendar-day,
  body[data-page="public"] .calendar-empty {
    min-height: 34px;
  }

  body[data-page="public"] .calendar-day {
    border-radius: 0;
    font-size: 12px;
  }

  body[data-page="public"] .calendar-day.is-unavailable {
    opacity: 0.42;
  }

  body[data-page="public"] .calendar-day.is-unavailable::before {
    left: 5px;
    right: 5px;
    border-top-color: rgba(255,255,255,0.34);
  }

  body[data-page="public"] .service-grid {
    grid-template-columns: repeat(var(--service-count, 5), minmax(0, 1fr));
    gap: 6px;
    margin-top: 6px;
    padding: 5px;
  }

  body[data-page="public"] .service-card {
    aspect-ratio: auto;
    min-width: 0;
    min-height: 40px;
    padding: 6px 4px;
    border-radius: 6px;
    text-align: center;
  }

  body[data-page="public"] .service-card__copy {
    gap: 2px;
  }

  body[data-page="public"] .service-card__name {
    font-size: 9px;
    line-height: 1.05;
  }

  body[data-page="public"] .service-card__price {
    font-size: 9px;
  }

  body[data-page="public"] .room-preview {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
    border-radius: 6px;
  }

  body[data-page="public"] .room-preview img {
    height: clamp(118px, 20vh, 165px);
  }

  body[data-page="public"] .room-preview-slider {
    top: 8px;
    bottom: auto;
  }

  body[data-page="public"] .room-preview figcaption {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 10px;
    border-left: 0;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.84));
  }

  body[data-page="public"] .room-preview span {
    font-size: 14px;
  }

  body[data-page="public"] .room-preview strong {
    font-size: 12px;
  }

  body[data-page="public"] .slot-grid {
    grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
    justify-content: center;
    gap: 4px;
    margin-top: 6px;
    padding: 5px;
  }

  body[data-page="public"] .slot-button {
    width: 100%;
    min-height: 34px;
    border-radius: 0;
    font-size: 11px;
  }

  body[data-page="public"] .addon-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  body[data-page="public"] .addon-item {
    min-height: 74px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 5px;
    border-radius: 0;
    padding: 7px 4px;
    text-align: center;
    font-size: 11px;
    line-height: 1.12;
  }

  body[data-page="public"] .addon-item > span {
    display: grid;
    justify-items: center;
    gap: 4px;
  }

  body[data-page="public"] .addon-item input {
    width: 14px;
    height: 14px;
    margin: 0;
  }

  body[data-page="public"] .addon-item strong {
    font-size: 11px;
  }

  body[data-page="public"] .client-lock,
  body[data-page="public"] .price-card,
  body[data-page="public"] .session-total-card,
  body[data-page="public"] .song-folder,
  body[data-page="public"] .song-row,
  body[data-page="public"] .song-folder-name,
  body[data-page="public"] .mini-row,
  body[data-page="public"] .beat-card {
    border-radius: 0;
  }

  body[data-page="public"] .song-library-toolbar {
    align-items: stretch;
    gap: 6px;
    margin-bottom: 8px;
  }

  body[data-page="public"] .song-folder-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body[data-page="public"] .song-folder {
    min-height: 116px;
    padding: 8px;
  }

  body[data-page="public"] .song-row {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 6px;
    padding: 7px;
  }

  body[data-page="public"] .song-title-line {
    align-items: start;
  }

  body[data-page="public"] .song-click-hint {
    display: none;
  }

  body[data-page="public"] .song-actions {
    gap: 4px;
  }

  body[data-page="public"] .song-icon-button {
    width: 31px;
    height: 31px;
  }

  body[data-page="public"] .song-action-icon {
    width: 16px;
    height: 16px;
  }

  body[data-page="public"] .song-player {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 5px;
    padding: 4px;
  }

  body[data-page="public"] .song-play {
    min-height: 28px;
    padding: 0 6px;
    font-size: 0;
  }

  body[data-page="public"] .song-play .beat-play-icon {
    margin: 0;
  }

  body[data-page="public"] .song-progress {
    height: 28px;
  }

  body[data-page="public"] .song-time {
    grid-column: 2 / -1;
    justify-content: start;
    min-width: 0;
    font-size: 10px;
  }

  body[data-page="public"] .client-account-card {
    gap: 8px;
    padding: 9px;
  }

  body[data-page="public"] .booking-auth-card {
    gap: 8px;
    padding: 9px;
  }

  body[data-page="public"] .booking-auth-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  body[data-page="public"] .booking-auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  body[data-page="public"] .booking-auth-inline {
    gap: 8px;
    padding-top: 8px;
  }

  body[data-page="public"] .account-summary {
    gap: 6px;
  }

  body[data-page="public"] .account-summary > div {
    padding: 7px;
  }

  body[data-page="public"] .account-summary strong {
    overflow-wrap: anywhere;
    white-space: normal;
  }

  body[data-page="public"] .price-card {
    gap: 7px;
    padding: 10px;
  }

  body[data-page="public"] .session-total-card {
    gap: 6px;
    padding: 8px;
  }

  body[data-page="public"] .session-total-card span {
    font-size: 9px;
  }

  body[data-page="public"] .session-total-card strong {
    font-size: 13px;
  }

  body[data-page="public"] .session-total-card__total strong {
    font-size: 20px;
  }

  body[data-page="public"] .price-card span {
    font-size: 12px;
  }

  body[data-page="public"] .price-card strong {
    font-size: 13px;
    text-align: right;
  }

  body[data-page="public"] .price-card__total strong {
    font-size: 20px;
  }

  body[data-page="public"] .wizard-actions {
    gap: 7px;
    padding: 8px 0 2px;
  }

  body[data-page="public"] .primary-button,
  body[data-page="public"] .secondary-button,
  body[data-page="public"] .tab-button,
  body[data-page="public"] .small-link {
    min-height: 42px;
    border-radius: 0;
    font-size: 13px;
  }

  body[data-page="public"] .wizard-actions > button,
  body[data-page="public"] #checkout-button {
    flex: 1 1 0;
    width: 100%;
  }

  body[data-page="public"] .form-message {
    min-height: 16px;
    font-size: 12px;
  }

  body[data-page="public"] .library-panel {
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr);
  }

  body[data-page="public"] .panel-head {
    margin-bottom: 8px;
  }

  body[data-page="public"] .panel-head h2 {
    font-size: 22px;
  }

  body[data-page="public"] .beat-scroll {
    height: 100%;
    overflow-y: auto;
    padding-right: 0;
  }

  body[data-page="public"] .beat-store-toolbar {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  body[data-page="public"] .beat-search-field input {
    min-height: 34px;
  }

  body[data-page="public"] .beat-filter-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  body[data-page="public"] .beat-filter-chips::-webkit-scrollbar {
    display: none;
  }

  body[data-page="public"] .beat-filter-chip {
    min-height: 32px;
    flex: 0 0 auto;
  }

  body[data-page="public"] .beat-shop-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body[data-page="public"] .beat-card,
  body[data-page="public"] .beat-shop-grid .beat-card {
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-areas:
      "art body"
      "price actions";
    gap: 8px;
    padding: 8px;
  }

  body[data-page="public"] .beat-art,
  body[data-page="public"] .beat-shop-grid .beat-art,
  body[data-page="public"] .beat-cover,
  body[data-page="public"] .beat-shop-grid .beat-cover {
    width: 64px;
    min-height: 0;
    height: auto;
  }

  body[data-page="public"] .beat-body {
    gap: 6px;
  }

  body[data-page="public"] .beat-body h4 {
    font-size: 15px;
  }

  body[data-page="public"] .beat-producer {
    font-size: 9px;
  }

  body[data-page="public"] .beat-tags {
    gap: 4px;
  }

  body[data-page="public"] .beat-tags span {
    padding: 3px 5px;
    font-size: 9px;
  }

  body[data-page="public"] .beat-player {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 6px;
  }

  body[data-page="public"] .beat-play {
    min-height: 32px;
    padding: 0 8px;
  }

  body[data-page="public"] .beat-progress {
    height: 42px;
  }

  body[data-page="public"] .beat-waveform {
    gap: 1px;
    padding: 0 9px;
  }

  body[data-page="public"] .beat-time {
    min-width: 66px;
    font-size: 10px;
  }

  body[data-page="public"] .beat-mini-player {
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    bottom: calc(var(--mobile-nav) + var(--safe-bottom)) !important;
    width: 100vw !important;
    max-width: none;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    grid-template-areas:
      "body body body"
      "progress progress progress"
      "time time bar";
    gap: 7px 8px;
    padding: 8px;
    border-right: 0;
    border-left: 0;
  }

  body[data-page="public"] .beat-mini-player.is-dragged {
    width: 100vw !important;
  }

  body[data-page="public"] .beat-mini-player__bar {
    justify-content: end;
    cursor: default;
  }

  body[data-page="public"] .beat-mini-player__bar span {
    display: none;
  }

  body[data-page="public"] .beat-mini-player__body {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 0;
  }

  body[data-page="public"] .beat-mini-player__cover {
    width: 42px;
  }

  body[data-page="public"] .beat-mini-player__controls {
    grid-template-columns: 26px 38px 26px;
  }

  body[data-page="public"] .beat-mini-player__play {
    width: 38px;
    height: 38px;
  }

  body[data-page="public"] .beat-mini-player__skip {
    width: 26px;
    height: 28px;
    font-size: 9px;
  }

  body[data-page="public"] .beat-mini-player__volume {
    display: none;
  }

  body[data-page="public"] .beat-mini-player__progress {
    height: 24px;
  }

  body[data-page="public"] .beat-mini-player__time {
    min-width: 0;
    justify-content: start;
  }

  body[data-page="public"].beat-mini-open .beat-scroll {
    padding-bottom: calc(128px + var(--safe-bottom));
  }

  body[data-page="public"] .beat-price {
    align-self: center;
    font-size: 18px;
  }

  body[data-page="public"] .beat-actions {
    align-self: center;
    justify-content: stretch;
  }

  body[data-page="public"] .beat-actions > * {
    flex: 1 1 auto;
  }

  body[data-page="public"] .auth-panel,
  body[data-page="public"] .dashboard-panel {
    overflow-y: auto;
  }

  body[data-page="public"] .auth-tabs,
  body[data-page="public"] .portal-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: 10px 0;
  }

  body[data-page="public"] .portal-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body[data-page="public"] .portal-tabs .tab-button {
    padding: 0 4px;
    font-size: 11px;
  }

  body[data-page="public"] .portal-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: 8px 0;
  }

  body[data-page="public"] .portal-summary-grid article {
    padding: 8px;
  }

  body[data-page="public"] .portal-summary-grid strong {
    overflow-wrap: anywhere;
    white-space: normal;
  }

  body[data-page="public"] .client-booking-card {
    gap: 8px;
    padding: 8px;
  }

  body[data-page="public"] .client-booking-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  body[data-page="public"] .client-booking-details > div {
    padding: 6px;
  }

  body[data-page="public"] .booking-client-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }

  body[data-page="public"] .library-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body[data-page="public"] .dash-actions {
    margin-bottom: 8px;
  }
}
