:root {
  --background: 32 24% 96.5%;
  --foreground: 25 16% 26%;
  --surface: 32 22% 95%;
  --surface-muted: 30 18% 92%;
  --surface-raised: 34 36% 98.5%;
  --primary: 24 30% 43%;
  --primary-press: 24 32% 36%;
  --primary-foreground: 36 34% 97%;
  --sage: 120 9% 56%;
  --sage-light: 120 14% 90%;
  --sage-dark: 124 10% 42%;
  --sage-tint: 120 14% 90%;
  --cream: 34 34% 93.5%;
  --cream-warm: 33 26% 95%;
  --tan: 26 34% 76%;
  --tan-light: 28 28% 88%;
  --oatmeal: 32 20% 89%;
  --peach: 16 52% 86%;
  --soft-brown: 25 26% 58%;
  --border: 28 18% 86%;
  --border-soft: 28 16% 89%;
  --muted-foreground: 26 10% 39%;
  --danger: 8 52% 51%;
  --radius-sm: 7px;
  --radius-md: 9px;
  --radius-lg: 11px;
  --radius-xl: 16px;
  --shell-max-width: 1180px;
  --desktop-sidebar-width: 248px;
  --shadow-soft: 0 1px 2px rgb(0 0 0 / 0.05);
  --shadow-panel: 0 8px 24px rgb(0 0 0 / 0.06);
  --shadow-inset: inset 0 1px 0 hsl(var(--primary-foreground) / 0.7);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-ui: "Inter", system-ui, sans-serif;
  --font-signature: var(--font-ui);
}

* {
  box-sizing: border-box;
}

::selection {
  background: hsl(var(--tan));
  color: hsl(var(--foreground));
}

@keyframes mp-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

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

@keyframes mp-breathe {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

@keyframes mp-kenburns {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.08);
  }
}

@keyframes mp-word {
  0%,
  24% {
    opacity: 1;
    transform: translateY(0);
  }

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

@keyframes mp-scrollcue {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(5px);
  }
}

html {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100svh;
}

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

button {
  cursor: pointer;
  color: inherit;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-md);
  background: hsl(var(--surface-raised));
  color: hsl(var(--foreground));
  min-height: 44px;
  padding: 0 13px;
}

select {
  appearance: none;
}

button,
input,
select,
textarea {
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease,
    background-color 0.2s ease;
}

button:active {
  transform: scale(0.985) translateY(1px);
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible {
  outline: 2px solid hsl(var(--sage-dark) / 0.45);
  outline-offset: 2px;
}

.app-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  background: hsl(var(--background));
}

.app-shell[data-view="landing"],
.app-shell[data-view="signin"],
.app-shell[data-view="schedule"] {
  display: block;
}

/* Public views render their own header and footer, so the instructor topbar and
   primary nav must stay hidden. Every public view has to be listed here — a
   missing one leaks the app chrome and the sidebar gutter onto a public page. */
.app-shell[data-view="landing"] .topbar,
.app-shell[data-view="landing"] .primary-nav,
.app-shell[data-view="signin"] .topbar,
.app-shell[data-view="signin"] .primary-nav,
.app-shell[data-view="schedule"] .topbar,
.app-shell[data-view="schedule"] .primary-nav {
  display: none;
}

.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: max(20px, env(safe-area-inset-top)) 18px 14px;
  border-bottom: 1px solid hsl(var(--border-soft));
  background: hsl(33 26% 97% / 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-heading {
  min-width: 0;
}

.topbar-kicker {
  margin: 0 0 3px;
  color: hsl(var(--soft-brown));
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: none;
}

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

.topbar-primary {
  min-height: 40px;
  padding: 0 15px;
}

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

h1 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
}

h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.08;
}

h3 {
  font-size: 15px;
  font-weight: 600;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  background: hsl(var(--surface-raised));
  color: hsl(var(--primary));
  box-shadow: var(--shadow-soft);
  font-weight: 600;
}

.content {
  display: grid;
  gap: 18px;
  width: min(100%, var(--shell-max-width));
  margin: 0 auto;
  padding: 18px 16px 100px;
}

.app-shell[data-view="landing"] .content,
.app-shell[data-view="signin"] .content,
.app-shell[data-view="schedule"] .content {
  display: block;
  width: 100%;
  max-width: none;
  padding: 0;
}

.site-shell {
  min-height: 100svh;
  background: hsl(var(--background));
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100%, 1140px);
  margin: 0 auto;
  padding: 18px 24px;
}

.install-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px max(18px, calc((100% - 1092px) / 2));
  border-top: 1px solid hsl(var(--border-soft));
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--sage-light));
}

.install-banner > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.install-banner strong {
  font-size: 13px;
}

.install-banner span {
  color: hsl(var(--muted-foreground));
  font-size: 12px;
}

.install-banner .button {
  flex: 0 0 auto;
}

.install-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: end center;
  padding: 18px;
  background: hsl(24 18% 12% / 0.58);
}

.install-dialog {
  display: grid;
  gap: 16px;
  width: min(100%, 440px);
  padding: 22px;
  border: 1px solid hsl(var(--border));
  border-radius: 8px;
  background: hsl(var(--surface-raised));
  box-shadow: var(--shadow-panel);
}

.install-dialog-kicker {
  color: hsl(var(--soft-brown));
  font-size: 11px;
  font-weight: 600;
  text-transform: none;
}

.install-dialog ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  color: hsl(var(--muted-foreground));
  font-size: 14px;
  line-height: 1.45;
}

.site-brand {
  color: hsl(var(--foreground));
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  text-decoration: none;
}

.site-links,
.site-header-actions,
.site-cta-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-links a {
  padding: 8px 10px;
  color: hsl(var(--muted-foreground));
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
}

.site-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(660px, calc(100svh - 58px));
  overflow: hidden;
  background: hsl(24 22% 30%);
}

.hero-media-placeholder {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, hsl(24 26% 22% / 0.12) 0%, transparent 24%, transparent 50%, hsl(24 26% 18% / 0.72) 100%),
    radial-gradient(80% 70% at 30% 80%, hsl(96 18% 56% / 0.46), transparent 60%),
    url("./media/claude-landing-placeholder.webp") center / cover no-repeat,
    hsl(24 22% 30%);
}

.hero-media-element {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-control {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 3;
  min-width: 96px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid hsl(34 30% 88% / 0.34);
  border-radius: 999px;
  background: hsl(24 24% 18% / 0.62);
  backdrop-filter: blur(8px);
  color: hsl(34 36% 96%);
  font: 600 12px/1 ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}

.hero-video-control:focus-visible {
  outline: 3px solid hsl(34 44% 90%);
  outline-offset: 3px;
}

.hero-media-placeholder::before,
.hero-media-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-media-placeholder::before {
  background:
    radial-gradient(70% 60% at 80% 70%, hsl(16 60% 70% / 0.42), transparent 55%),
    repeating-linear-gradient(115deg, hsl(30 30% 92% / 0.05) 0 2px, transparent 2px 5px);
  mix-blend-mode: soft-light;
}

.hero-media-placeholder::after {
  background: hsl(24 24% 18% / 0.3);
  animation: mp-kenburns 22s ease-in-out infinite alternate;
}

.hero-motion-word {
  position: absolute;
  top: 7%;
  left: 0;
  right: 0;
  height: 60%;
  color: hsl(34 44% 90% / 0.9);
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 52px);
  font-style: italic;
  font-weight: 500;
  pointer-events: none;
  text-align: center;
}

.hero-motion-word span {
  position: absolute;
  left: 0;
  right: 0;
  opacity: 0;
  animation: mp-word 13.5s ease-in-out infinite;
}

.hero-motion-word span:nth-child(2) {
  animation-delay: 4.5s;
}

.hero-motion-word span:nth-child(3) {
  animation-delay: 9s;
}

.media-hook-badge {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border: 1px solid hsl(34 30% 88% / 0.2);
  border-radius: 999px;
  background: hsl(24 24% 18% / 0.4);
  backdrop-filter: blur(6px);
  color: hsl(34 36% 90%);
  font-family: ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
}

.media-hook-badge span,
.live-sync span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: hsl(16 70% 64%);
  animation: mp-breathe 2s ease-in-out infinite;
}

.media-slot[data-media-status="fallback"] {
  isolation: isolate;
}

.media-slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-fallback-label {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 10px;
  border-radius: 999px;
  background: hsl(var(--surface-raised) / 0.82);
  color: hsl(var(--soft-brown));
  font-family: ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 1140px);
  margin: 0 auto;
  padding: 0 24px 88px;
  animation: mp-fade 0.9s ease both;
}

.script-label {
  color: hsl(var(--soft-brown));
  font-family: var(--font-signature);
  font-size: 21px;
  font-weight: 600;
  line-height: 1;
}

.hero-copy .script-label {
  color: hsl(34 46% 86%);
  font-size: clamp(22px, 3vw, 28px);
}

.hero-copy h1 {
  max-width: 10ch;
  margin-top: 14px;
  color: hsl(36 42% 96%);
  font-size: clamp(40px, 6.4vw, 72px);
  line-height: 1;
  text-shadow: 0 2px 30px hsl(24 30% 20% / 0.4);
}

.hero-copy p:not(.script-label) {
  max-width: 44ch;
  margin-top: 18px;
  color: hsl(34 30% 88%);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.6;
}

.site-cta-row {
  flex-wrap: wrap;
  margin-top: 26px;
  gap: 11px;
}

.site-light-button,
.site-ghost-button {
  min-height: 50px;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.site-light-button {
  border: 0;
  background: hsl(34 42% 95%);
  color: hsl(22 32% 32%);
  box-shadow: 0 12px 34px -12px hsl(24 30% 12% / 0.6);
}

.site-ghost-button {
  border: 1px solid hsl(34 36% 88% / 0.45);
  background: hsl(34 30% 90% / 0.12);
  backdrop-filter: blur(4px);
  color: hsl(34 42% 94%);
}

.scroll-cue {
  position: absolute;
  bottom: 16px;
  left: 50%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: hsl(34 36% 90% / 0.85);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-transform: none;
  transform: translateX(-50%);
}

.scroll-cue span:last-child {
  animation: mp-scrollcue 1.8s ease-in-out infinite;
  font-size: 14px;
}

.site-section {
  border-top: 1px solid hsl(var(--border-soft));
  background: hsl(33 26% 95%);
}

.offerings-section {
  border-bottom: 1px solid hsl(var(--border-soft));
}

.site-section-inner {
  width: min(100%, 1140px);
  margin: 0 auto;
  padding: 48px 24px;
}

.site-section h2,
.approach-section blockquote,
.closing-cta h2 {
  font-family: var(--font-display);
  font-weight: 600;
}

.site-section h2 {
  margin-top: 6px;
  font-size: 34px;
}

.offerings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.offering-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 22px;
  border: 1px solid hsl(var(--border-soft));
  border-radius: 15px;
  background: hsl(var(--surface-raised));
}

.offering-media-slot {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  min-height: 118px;
  margin: -8px -8px 4px;
  overflow: hidden;
  padding: 12px;
  border-radius: 12px;
  background:
    radial-gradient(80% 70% at 80% 20%, hsl(var(--peach) / 0.38), transparent 60%),
    linear-gradient(140deg, hsl(var(--cream)), hsl(var(--surface-muted)));
}

.offering-media-slot img {
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  object-position: center 65%;
}

.offering-card.today .offering-media-slot {
  background:
    radial-gradient(80% 70% at 80% 20%, hsl(var(--sage-tint) / 0.9), transparent 60%),
    linear-gradient(140deg, hsl(var(--cream)), hsl(var(--surface-muted)));
}

.offering-card.spark .offering-media-slot {
  background:
    radial-gradient(80% 70% at 80% 20%, hsl(var(--tan-light) / 0.72), transparent 60%),
    linear-gradient(140deg, hsl(var(--cream)), hsl(var(--surface-muted)));
}

.offering-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: hsl(var(--cream));
  color: hsl(var(--soft-brown));
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
}

.offering-card.today .offering-icon {
  background: hsl(var(--sage-tint));
  color: hsl(var(--sage-dark));
}

.offering-card.spark .offering-icon {
  background: hsl(var(--peach));
  color: hsl(16 44% 40%);
}

.offering-card h3 {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
}

.offering-card p,
.about-grid p,
.closing-cta p {
  color: hsl(var(--muted-foreground));
  font-size: 14px;
  line-height: 1.6;
}

.section-split-heading,
.schedule-note {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.live-sync {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: hsl(var(--muted-foreground));
  font-size: 12px;
  font-weight: 600;
}

.live-sync span {
  background: hsl(var(--sage));
}

.schedule-preview {
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid hsl(var(--border-soft));
  border-radius: var(--radius-xl);
  background: hsl(var(--surface-raised));
  box-shadow: 0 1px 2px hsl(25 20% 50% / 0.05);
}

.schedule-preview-head,
.schedule-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid hsl(var(--border-soft));
}

.schedule-preview-head {
  padding: 13px 16px;
  background: hsl(33 28% 97%);
}

.schedule-preview-head span,
.schedule-row p,
.schedule-note {
  color: hsl(var(--muted-foreground));
  font-size: 12.5px;
}

.schedule-row:last-child {
  border-bottom: 0;
}

.schedule-row time {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 54px;
  flex: 0 0 auto;
}

.schedule-row time span {
  color: hsl(var(--soft-brown));
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
}

.schedule-row time strong {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
}

.schedule-row div {
  min-width: 0;
  flex: 1;
}

.schedule-row h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 14.5px;
}

.schedule-row h3 span {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  background: hsl(var(--sage-tint));
  color: hsl(var(--sage-dark));
  font-size: 10px;
  font-weight: 600;
}

.schedule-row p {
  margin-top: 2px;
}

.schedule-pill {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 10px;
  border-radius: 999px;
  background: hsl(var(--cream));
  color: hsl(var(--soft-brown));
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.schedule-pill.warning {
  background: hsl(var(--peach));
  color: hsl(16 44% 38%);
}

.schedule-pill.sage {
  background: hsl(var(--sage-tint));
  color: hsl(var(--sage-dark));
}

.schedule-note {
  align-items: center;
  margin-top: 14px;
  font-size: 11.5px;
}

.approach-section {
  width: min(100%, 820px);
  margin: 0 auto;
  padding: 56px 24px;
  text-align: center;
}

.approach-section blockquote {
  margin: 14px 0 0;
  color: hsl(var(--foreground));
  font-size: 27px;
  line-height: 1.4;
}

.approach-section > p:last-child {
  margin-top: 18px;
  color: hsl(var(--soft-brown));
  font-size: 13px;
  font-weight: 600;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 36px;
  align-items: center;
}

.portrait-placeholder {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid hsl(var(--border-soft));
  border-radius: 18px;
  background:
    linear-gradient(140deg, hsl(28 26% 90%), hsl(32 30% 94%)),
    hsl(var(--cream));
}

.portrait-placeholder .media-fallback-label {
  margin-bottom: 16px;
}

.about-grid h2 {
  margin-top: 6px;
  font-size: 32px;
}

.about-grid p {
  max-width: 60ch;
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.7;
}

.closing-cta {
  width: min(100%, 1140px);
  margin: 0 auto;
  padding: 54px 24px;
}

.closing-cta > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 42px 28px;
  border-radius: 18px;
  background: hsl(22 32% 40%);
  text-align: center;
}

.closing-cta .script-label,
.closing-cta h2,
.closing-cta p {
  color: hsl(34 44% 88%);
}

.closing-cta h2 {
  max-width: 18ch;
  color: hsl(36 42% 95%);
  font-size: 32px;
}

.closing-cta p {
  max-width: 46ch;
  color: hsl(32 28% 82%);
  font-size: 14.5px;
  line-height: 1.6;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  width: min(100%, 1140px);
  margin: 0 auto;
  padding: 30px 24px;
  border-top: 1px solid hsl(var(--border-soft));
  color: hsl(var(--muted-foreground));
  font-size: 12.5px;
}

.site-footer strong {
  display: block;
  color: hsl(var(--foreground));
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
}

.site-footer div {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

.site-footer div:first-child {
  display: block;
}

.site-footer button,
.signin-back {
  border: 0;
  background: transparent;
  color: hsl(var(--soft-brown));
  font-size: 12.5px;
  font-weight: 600;
  padding: 0;
}

.signin-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: 34px 22px;
  background:
    radial-gradient(75% 80% at 50% 0%, hsl(var(--cream)), transparent 62%),
    hsl(var(--background));
}

.signin-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: min(100%, 380px);
  padding: 30px 26px;
  border: 1px solid hsl(var(--border-soft));
  border-radius: 18px;
  background: hsl(var(--surface-raised));
  box-shadow: 0 18px 50px -24px hsl(25 30% 40% / 0.4);
}

.signin-brand {
  text-align: center;
}

.signin-brand h1 {
  font-size: 24px;
}

.signin-brand p {
  margin-top: 2px;
  color: hsl(var(--soft-brown));
  font-family: var(--font-signature);
  font-size: 19px;
  font-weight: 600;
}

.signin-panel .field span {
  color: hsl(var(--muted-foreground));
  font-size: 12px;
  font-weight: 600;
}

.signin-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: hsl(var(--muted-foreground));
}

.signin-divider span {
  height: 1px;
  flex: 1;
  background: hsl(var(--border-soft));
}

.signin-note {
  max-width: 320px;
  margin-top: 16px;
  color: hsl(var(--muted-foreground));
  font-size: 11.5px;
  line-height: 1.5;
  text-align: center;
}

.panel {
  border: 1px solid hsl(var(--border-soft));
  border-radius: var(--radius-xl);
  background: hsl(var(--surface-raised));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  animation: mp-fade 0.22s ease both;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid hsl(var(--border-soft));
}

.panel-header-wrap {
  align-items: flex-start;
  flex-wrap: wrap;
}

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

.grid {
  display: grid;
  gap: 16px;
}

.stack {
  display: grid;
  gap: 16px;
  align-content: start;
}

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

.stat {
  padding: 14px 15px;
  border: 1px solid hsl(var(--border-soft));
  border-radius: var(--radius-lg);
  background: hsl(var(--cream));
  box-shadow: var(--shadow-inset);
}

.stat-value {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.stat-label,
.meta,
.helper {
  color: hsl(var(--muted-foreground));
  font-size: 13px;
  line-height: 1.4;
}

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

.item {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid hsl(var(--border-soft));
  border-radius: var(--radius-lg);
  background: hsl(var(--surface-raised));
  color: inherit;
  text-align: left;
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

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

.item.selectable {
  width: 100%;
}

.item.selectable:hover,
.item.selected {
  border-color: hsl(var(--tan));
  background: hsl(var(--cream));
  box-shadow: var(--shadow-inset);
}

.connection {
  border-style: dashed;
  background: hsl(var(--cream) / 0.72);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid hsl(var(--sage-dark) / 0.25);
  border-radius: 999px;
  background: hsl(var(--sage-tint));
  color: hsl(var(--sage-dark));
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.badge.warning {
  border-color: hsl(16 44% 70%);
  background: hsl(var(--peach));
  color: hsl(16 44% 38%);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 11px;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: hsl(var(--surface-raised));
  color: hsl(var(--muted-foreground));
  font-size: 12px;
  font-weight: 600;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid hsl(var(--primary));
  border-radius: var(--radius-md);
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: var(--shadow-soft);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  background: hsl(var(--primary-press));
  border-color: hsl(var(--primary-press));
}

.button.secondary {
  border-color: hsl(var(--border));
  background: hsl(var(--surface-raised));
  color: hsl(var(--primary));
  box-shadow: none;
}

.button.secondary:hover {
  border-color: hsl(var(--tan));
  background: hsl(var(--cream));
}

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

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  width: min(100%, 520px);
}

.compact-input {
  min-height: 40px;
  font-size: 14px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
}

textarea {
  min-height: 140px;
  resize: vertical;
  padding: 12px;
  line-height: 1.5;
}

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

.form-grid .full,
.field.full {
  grid-column: 1 / -1;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.check-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 8px;
  min-height: 58px;
  padding: 10px;
  border: 1px solid hsl(var(--border-soft));
  border-radius: var(--radius-lg);
  background: hsl(var(--surface-raised));
  cursor: pointer;
}

.check-card input {
  grid-row: span 2;
  align-self: start;
  width: 18px;
  min-height: 18px;
  margin: 1px 0 0;
}

.check-card span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 600;
}

.check-card small {
  color: hsl(var(--muted-foreground));
  font-size: 12px;
  line-height: 1.25;
}

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

.info-band {
  display: grid;
  gap: 6px;
  padding: 12px 13px;
  border: 1px solid hsl(var(--border-soft));
  border-radius: var(--radius-lg);
  background: hsl(var(--cream) / 0.7);
}

.info-band.full {
  grid-column: 1 / -1;
}

.info-band.private {
  background: hsl(var(--peach) / 0.34);
}

.private-note {
  padding: 10px;
  border-left: 3px solid hsl(var(--soft-brown));
  border-radius: var(--radius-sm);
  background: hsl(var(--peach) / 0.32);
  color: hsl(var(--foreground));
}

.feedback-note {
  padding: 10px;
  border-left: 3px solid hsl(var(--sage-dark));
  border-radius: var(--radius-sm);
  background: hsl(var(--sage-light) / 0.2);
  color: hsl(var(--foreground));
}

.compact-list {
  gap: 8px;
}

.empty-state {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px dashed hsl(var(--border));
  border-radius: var(--radius-lg);
  background: hsl(var(--cream) / 0.5);
  text-align: left;
}

.plan-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.client-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.avatar-block {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--avatar-size, 38px);
  height: var(--avatar-size, 38px);
  flex-shrink: 0;
  border: 1px solid hsl(var(--border-soft));
  border-radius: calc(var(--avatar-size, 38px) * 0.3);
  background: hsl(var(--cream));
  color: hsl(var(--primary));
  font-family: var(--font-display);
  font-size: calc(var(--avatar-size, 38px) * 0.42);
  font-weight: 600;
}

.list-row {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 12px;
  border: 1px solid hsl(var(--border-soft));
  border-radius: var(--radius-lg);
  background: hsl(var(--surface-raised));
  color: inherit;
  text-align: left;
}

.quick-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid hsl(var(--border-soft));
  border-radius: var(--radius-lg);
  background: hsl(var(--surface-raised));
  color: hsl(var(--foreground));
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}

.today-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.today-hero {
  padding: 20px;
  border: 1px solid hsl(22 30% 34%);
  border-radius: var(--radius-xl);
  background: hsl(22 32% 40%);
}

.today-hero-greeting {
  color: hsl(34 44% 88%);
  font-family: var(--font-signature);
  font-size: 24px;
  line-height: 1;
}

.today-hero-date {
  margin-top: 9px;
  color: hsl(36 42% 95%);
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.1;
}

.today-hero-summary {
  max-width: 46ch;
  margin-top: 7px;
  color: hsl(32 28% 82%);
  font-size: 13.5px;
  line-height: 1.5;
}

.today-stat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.today-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: hsl(var(--surface-raised));
  box-shadow: none;
}

.today-stat-warning .stat-value {
  color: hsl(18 42% 44%);
}

.today-grid {
  display: grid;
  gap: 18px;
  align-items: start;
}

.today-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.today-list {
  gap: 7px;
  padding: 8px;
}

.today-empty-note {
  padding: 14px;
  color: hsl(var(--muted-foreground));
  font-size: 13px;
  text-align: center;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 12px;
}

.quick-actions-grid .quick-action {
  width: 100%;
}

.quick-action-icon {
  display: inline-flex;
  color: hsl(var(--primary));
}

.today-session-row,
.follow-up-row,
.reconnect-row,
.recent-client-row {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 12px;
  border: 1px solid hsl(var(--border-soft));
  border-radius: 11px;
  background: hsl(var(--surface-raised));
  color: inherit;
  text-align: left;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease;
}

.today-session-row:hover,
.follow-up-row:hover,
.reconnect-row:hover,
.recent-client-row:hover {
  border-color: hsl(var(--tan));
  background: hsl(var(--cream));
}

.recent-client-row {
  gap: 11px;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
}

.recent-client-row:hover {
  background: hsl(var(--surface));
}

.session-time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 58px;
  flex-shrink: 0;
  padding-right: 13px;
  border-right: 1px solid hsl(var(--border-soft));
}

.session-time {
  font-size: 15px;
  font-weight: 600;
}

.session-ampm {
  color: hsl(var(--muted-foreground));
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
}

.session-copy,
.list-row-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

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

.session-title,
.list-row-title {
  font-size: 14.5px;
  font-weight: 600;
}

.session-subtitle,
.list-row-meta {
  overflow: hidden;
  color: hsl(var(--muted-foreground));
  font-size: 12.5px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-status-label,
.reconnect-action {
  flex-shrink: 0;
  color: hsl(var(--soft-brown));
  font-size: 11px;
  font-weight: 600;
}

.reconnect-action {
  font-size: 11.5px;
}

.badge.online {
  min-height: 19px;
  padding: 0 7px;
  font-size: 10.5px;
}

.waiver-review-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid hsl(var(--border-soft));
  border-radius: 11px;
  background: hsl(16 52% 96%);
}

.avatar-tint-0 {
  border-color: hsl(26 40% 78%);
  background: hsl(26 40% 84%);
  color: hsl(22 38% 34%);
}

.avatar-tint-1 {
  border-color: hsl(120 16% 72%);
  background: hsl(120 16% 82%);
  color: hsl(124 22% 30%);
}

.avatar-tint-2 {
  border-color: hsl(16 44% 78%);
  background: hsl(16 54% 85%);
  color: hsl(14 44% 38%);
}

.avatar-waiver {
  border-color: hsl(16 40% 78%);
}

.follow-up-row {
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
}

.follow-up-dot {
  width: 7px;
  height: 7px;
  margin-top: 4px;
  border-radius: 50%;
  background: hsl(var(--sage));
  flex-shrink: 0;
}

.follow-up-row .list-row-title {
  font-size: 13.5px;
}

.reconnect-row {
  gap: 11px;
  padding: 10px 11px;
}

.reconnect-row .list-row-title {
  font-size: 13.5px;
}

.reconnect-row .list-row-meta {
  font-size: 12px;
}

.recent-client-row .list-row-title {
  font-size: 13.5px;
}

.recent-client-row .list-row-meta {
  font-size: 12px;
}

.waiver-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.waiver-dot.pending {
  background: hsl(var(--soft-brown));
}

.waiver-dot.complete {
  background: hsl(var(--sage));
}

.compact-button {
  min-height: 34px;
  padding: 0 13px;
  flex-shrink: 0;
  font-size: 12.5px;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-md);
  background: hsl(var(--surface-raised));
  color: hsl(var(--muted-foreground));
  font-size: 13px;
  font-weight: 600;
}

.ghost-button:hover {
  border-color: hsl(var(--tan));
  background: hsl(var(--cream));
  color: hsl(var(--foreground));
}

.clients-layout {
  display: grid;
  gap: 18px;
  align-items: start;
}

.clients-list-panel {
  display: flex;
  flex-direction: column;
  align-self: start;
  border: 1px solid hsl(var(--border-soft));
  border-radius: 14px;
  background: hsl(var(--surface-raised));
}

.clients-list-toolbar {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 13px;
  border-bottom: 1px solid hsl(var(--border-soft));
}

.client-search-field {
  position: relative;
  display: flex;
  align-items: center;
}

.client-search-icon {
  position: absolute;
  left: 11px;
  display: inline-flex;
  color: hsl(var(--muted-foreground));
}

.client-search-field input {
  width: 100%;
  min-height: 40px;
  padding: 0 12px 0 34px;
  border: 1px solid hsl(var(--border));
  border-radius: 9px;
  background: hsl(var(--surface-raised));
  font-size: 13.5px;
}

.client-filter-bar {
  display: flex;
  gap: 5px;
}

.client-filter-button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid hsl(var(--border));
  border-radius: 8px;
  background: hsl(var(--surface-raised));
  color: hsl(var(--muted-foreground));
  font-size: 12.5px;
  font-weight: 600;
}

.client-filter-button.active {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.client-new-button {
  width: 100%;
}

.clients-list-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 7px;
}

.client-list-row {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: inherit;
  text-align: left;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.client-list-row:hover,
.client-list-row.selected {
  border-color: hsl(var(--tan));
  background: hsl(var(--cream));
}

.client-list-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.client-list-name {
  color: hsl(var(--foreground));
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.client-list-meta {
  color: hsl(var(--muted-foreground));
  font-size: 12px;
  line-height: 1.25;
}

.library-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.library-tabs {
  max-width: 320px;
}

.library-layout {
  min-height: 0;
}

.library-filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.library-new-button {
  min-width: 72px;
}

.exercise-list-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: hsl(var(--oatmeal));
  color: hsl(var(--soft-brown));
  flex-shrink: 0;
}

.exercise-list-row .badge {
  flex-shrink: 0;
}

.exercise-detail-card,
.exercise-editor-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.exercise-detail-card {
  gap: 18px;
}

.exercise-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.exercise-detail-title-group {
  min-width: 0;
}

.exercise-detail-title-group h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.1;
}

.exercise-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.exercise-pill {
  display: inline-flex;
  align-items: center;
  height: 25px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.exercise-pill.apparatus {
  background: hsl(var(--oatmeal));
  color: hsl(var(--foreground));
}

.exercise-pill.level {
  background: hsl(var(--cream));
  color: hsl(var(--soft-brown));
}

.exercise-pill.tag {
  border: 1px solid hsl(var(--border));
  color: hsl(var(--muted-foreground));
}

.exercise-detail-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.exercise-info-band p,
.exercise-warning-band p{
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.exercise-warning-band {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px solid hsl(16 45% 80%);
  border-radius: 12px;
  background: hsl(16 52% 96%);
}

.exercise-warning-band .client-info-label,
.exercise-warning-band .client-info-label > span {
  color: hsl(18 42% 46%);
}

.field-label {
  font-size: 13px;
  font-weight: 600;
}

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

.plan-builder-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.plan-panel-head {
  padding: 15px 18px 12px;
  border-bottom: 1px solid hsl(var(--border-soft));
}

.plan-panel-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
}

.plan-panel-head p {
  margin: 3px 0 0;
  color: hsl(var(--muted-foreground));
  font-size: 12.5px;
}

.plan-preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  padding: 14px;
}

.plan-preset-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
  padding: 15px;
  border: 1px solid hsl(var(--border-soft));
  border-radius: 13px;
  background: hsl(var(--surface-raised));
  color: inherit;
  text-align: left;
}

.plan-preset-card.selected {
  border-color: hsl(var(--primary));
  background: hsl(var(--cream));
}

.plan-preset-count {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: hsl(var(--oatmeal));
  color: hsl(var(--soft-brown));
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.plan-preset-card.selected .plan-preset-count {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.plan-preset-title {
  color: hsl(var(--foreground));
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.15;
}

.plan-preset-focus {
  color: hsl(var(--muted-foreground));
  font-size: 12px;
  line-height: 1.45;
}

.plan-preset-meta {
  margin-top: 2px;
  color: hsl(var(--soft-brown));
  font-size: 11.5px;
  font-weight: 600;
}

.active-plan-panel {
  overflow: hidden;
}

.active-plan-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid hsl(var(--border-soft));
}

.active-plan-heading {
  min-width: 0;
}

.active-plan-heading h2 {
  margin: 5px 0 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.15;
}

.active-plan-heading p {
  margin: 6px 0 0;
  color: hsl(var(--muted-foreground));
  font-size: 13px;
  line-height: 1.45;
}

.active-plan-actions {
  flex-shrink: 0;
}

.active-plan-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 18px 18px;
  border-bottom: 1px solid hsl(var(--border-soft));
}

.exercise-pill.duration {
  background: hsl(var(--sage-tint));
  color: hsl(var(--sage-dark));
}

.plan-phases {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px;
}

.plan-phase {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-phase-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.plan-phase-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
}

.plan-phase-head span {
  height: 1px;
  flex: 1;
  background: hsl(var(--border-soft));
}

.plan-phase-head strong {
  color: hsl(var(--muted-foreground));
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.plan-phase-items {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.plan-phase-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  border: 1px solid hsl(var(--border-soft));
  border-radius: 12px;
  background: hsl(var(--surface-raised));
}

.plan-phase-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: hsl(var(--cream));
  color: hsl(var(--soft-brown));
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  flex-shrink: 0;
}

.plan-phase-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.plan-phase-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.plan-phase-title-row strong {
  font-size: 14px;
}

.plan-phase-title-row em {
  color: hsl(var(--muted-foreground));
  font-size: 11px;
  font-style: normal;
}

.plan-phase-copy > span:last-child {
  color: hsl(var(--primary));
  font-size: 12.5px;
  font-weight: 600;
}

.plan-remove-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid hsl(var(--border-soft));
  border-radius: 8px;
  background: transparent;
  color: hsl(var(--muted-foreground));
  flex-shrink: 0;
}

.plan-phase-empty {
  padding: 11px 13px;
  border: 1px dashed hsl(var(--border));
  border-radius: 11px;
  color: hsl(var(--muted-foreground));
  font-size: 12.5px;
}

.plan-add-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 40px;
  border: 1px dashed hsl(var(--border));
  border-radius: 11px;
  background: transparent;
  color: hsl(var(--muted-foreground));
  font-size: 13px;
  font-weight: 600;
}

.plan-add-button.active {
  border-color: hsl(var(--primary));
  background: hsl(var(--cream));
  color: hsl(var(--primary-press));
}

.plan-exercise-picker {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border: 1px solid hsl(var(--border-soft));
  border-radius: 12px;
  background: hsl(var(--surface));
}

.plan-picker-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: inherit;
  text-align: left;
}

.plan-picker-row:hover {
  background: hsl(var(--surface-raised));
}

.plan-picker-row > span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: hsl(var(--oatmeal));
  color: hsl(var(--soft-brown));
  flex-shrink: 0;
}

.plan-picker-row > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}

.plan-picker-row strong {
  font-size: 13.5px;
}

.plan-picker-row small {
  color: hsl(var(--muted-foreground));
  font-size: 11.5px;
}

.plan-builder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 16px 18px 18px;
  border-top: 1px solid hsl(var(--border-soft));
}

.plan-builder-actions .button,
.plan-builder-actions .ghost-button,
.active-plan-actions .ghost-button {
  align-items: center;
}

.clients-detail-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.clients-back-button {
  display: none;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  min-height: 34px;
  margin-bottom: 14px;
  padding: 0 12px 0 8px;
  border: 1px solid hsl(var(--border));
  border-radius: 8px;
  background: hsl(var(--surface-raised));
  color: hsl(var(--muted-foreground));
  font-size: 13px;
  font-weight: 600;
}

.client-detail,
.client-editor {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

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

.client-editor-header h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
}

.client-profile-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.client-profile-heading {
  min-width: 0;
  flex: 1;
}

.client-profile-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
}

.client-profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.client-waiver-badge,
.client-count-badge,
.client-followup-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.client-waiver-badge.complete {
  border: 1px solid hsl(var(--sage-dark) / 0.25);
  background: hsl(var(--sage-tint));
  color: hsl(var(--sage-dark));
}

.client-waiver-badge.needed {
  border: 1px solid hsl(16 44% 70%);
  background: hsl(var(--peach));
  color: hsl(16 44% 38%);
}

.client-count-badge {
  border: 1px solid hsl(var(--border-soft));
  background: hsl(var(--surface));
  color: hsl(var(--muted-foreground));
}

.client-followup-badge {
  border: 1px solid hsl(var(--sage-dark) / 0.25);
  background: hsl(var(--sage-tint));
  color: hsl(var(--sage-dark));
}

.client-profile-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.client-profile-divider {
  height: 1px;
  margin: 18px 0;
  background: hsl(var(--border-soft));
}

.client-profile-grid {
  display: grid;
  gap: 14px;
}

.client-profile-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.client-info-band,
.client-contact-band,
.client-package-card{
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px solid hsl(var(--border-soft));
  border-radius: 12px;
  background: hsl(var(--surface-raised));
}

.client-info-band p,
.client-contact-band p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.client-info-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: hsl(var(--muted-foreground));
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
}

.client-limitations-band {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px solid hsl(16 45% 80%);
  border-radius: 12px;
  background: hsl(16 52% 96%);
}

.client-limitations-band p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.client-contact-band p {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
}

.client-package-head,
.client-package-meta,
.client-package-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.client-package-meta strong {
  font-size: 14.5px;
}

.client-package-source {
  font-size: 10.5px;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
}

.client-package-bar {
  height: 7px;
  border-radius: 999px;
  background: hsl(var(--oatmeal, var(--cream)));
  overflow: hidden;
}

.client-package-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.client-package-low {
  font-size: 11.5px;
  font-weight: 600;
  color: hsl(16 50% 46%);
}

.client-private-band {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-left: 3px solid hsl(var(--soft-brown));
  border-radius: 0 12px 12px 0;
  background: hsl(28 30% 95%);
}

.client-private-band p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.client-home-practice-band {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 14px;
  border: 1px solid hsl(var(--border-soft));
  border-radius: 12px;
  background: hsl(var(--surface-raised));
}

.client-home-practice-head,
.client-home-practice-row > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.client-home-practice-head > span {
  color: hsl(var(--muted-foreground));
  font-size: 11.5px;
  font-weight: 600;
}

.client-home-practice-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.client-home-practice-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid hsl(var(--border-soft));
  border-radius: 10px;
  background: hsl(var(--surface));
}

.client-home-practice-row strong {
  font-size: 13.5px;
}

.client-home-practice-row span,
.client-home-practice-row p {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: 12.5px;
  line-height: 1.45;
}

.client-home-practice-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.client-home-practice-chips span {
  padding: 5px 8px;
  border-radius: 999px;
  background: hsl(var(--cream));
  color: hsl(var(--soft-brown));
  font-weight: 600;
}

.client-followup-band {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 13px;
  border: 1px solid hsl(var(--sage-dark) / 0.2);
  border-radius: 12px;
  background: hsl(var(--sage-tint));
}

.client-followup-band p {
  margin: 0;
  flex: 1;
  font-size: 13.5px;
  line-height: 1.45;
}

.client-history-section {
  margin-top: 20px;
}

.client-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.client-history-header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}

.client-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.client-history-row {
  display: flex;
  gap: 13px;
  padding: 13px;
  border: 1px solid hsl(var(--border-soft));
  border-radius: 11px;
  background: hsl(var(--surface-raised));
}

.client-history-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 46px;
  flex-shrink: 0;
}

.client-history-month {
  font-size: 11px;
  font-weight: 600;
  color: hsl(var(--soft-brown));
  text-transform: none;
}

.client-history-day {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}

.client-history-copy {
  min-width: 0;
  flex: 1;
  padding-left: 13px;
  border-left: 1px solid hsl(var(--border-soft));
}

.client-history-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.client-history-title-row strong {
  font-size: 13.5px;
}

.client-history-copy .badge {
  min-height: 22px;
  padding: 1px 7px;
  font-size: 11px;
}

.client-journey-section {
  margin-top: 22px;
}

.client-journey-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.client-journey-header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}

.client-journey-grid {
  display: grid;
  gap: 14px;
}

.client-journey-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid hsl(var(--border-soft));
  border-radius: 13px;
  background: hsl(var(--surface-raised));
}

.client-journey-trend-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.client-journey-trend {
  width: 100%;
  height: auto;
  overflow: visible;
}

.client-journey-trend-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 12.5px;
  color: hsl(var(--muted-foreground));
}

.client-journey-trend-note strong {
  color: hsl(var(--sage-dark));
  font-weight: 600;
}

.client-journey-spark {
  display: inline-flex;
  color: hsl(var(--sage-dark));
}

.journey-goal-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.journey-goal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.journey-goal-text {
  font-size: 13.5px;
  font-weight: 600;
}

.journey-goal-stage {
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.journey-goal-stage.stage-0 {
  color: hsl(var(--soft-brown));
}

.journey-goal-stage.stage-1 {
  color: hsl(var(--primary));
}

.journey-goal-stage.stage-2 {
  color: hsl(var(--sage-dark));
}

.journey-goal-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.journey-stage-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: hsl(var(--cream));
}

.journey-stage-dot.stage-0 {
  background: hsl(var(--soft-brown));
}

.journey-stage-dot.stage-1 {
  background: hsl(var(--primary));
}

.journey-stage-dot.stage-2 {
  background: hsl(var(--sage-dark));
}

.client-journey-milestones {
  margin-top: 12px;
  padding: 4px 0;
}

.journey-milestone-row {
  display: flex;
  gap: 13px;
  padding-bottom: 14px;
}

.journey-milestone-marker {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.journey-milestone-marker::before {
  content: "";
  width: 11px;
  height: 11px;
  border: 2px solid hsl(var(--sage-tint));
  border-radius: 50%;
  background: hsl(var(--sage));
}

.journey-milestone-marker::after {
  content: "";
  flex: 1;
  width: 2px;
  margin-top: 2px;
  background: hsl(var(--border-soft));
}

.journey-milestone-row:last-child .journey-milestone-marker::after {
  display: none;
}

.journey-milestone-copy {
  min-width: 0;
  flex: 1;
  margin-top: -3px;
}

.journey-milestone-date {
  font-size: 11px;
  font-weight: 600;
  color: hsl(var(--soft-brown));
}

.journey-milestone-copy p {
  margin: 2px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
}@media (max-width: 759px) {
  .app-shell[data-route="clients"][data-client-detail-open="false"] .clients-detail-panel {
    display: none;
  }

  .app-shell[data-route="clients"][data-client-detail-open="true"] .clients-list-panel {
    display: none;
  }

  .app-shell[data-exercise-detail-open="false"] .library-detail-panel {
    display: none;
  }

  .app-shell[data-exercise-detail-open="true"] .library-list-panel {
    display: none;
  }

  .clients-back-button.phone-only {
    display: inline-flex;
  }
}

.sessions-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sessions-panel {
  border: 1px solid hsl(var(--border-soft));
  border-radius: 14px;
  background: hsl(var(--surface-raised));
}

.sessions-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-bottom: 1px solid hsl(var(--border-soft));
}

.sessions-panel-head h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}

.sessions-panel-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 9px;
}

.session-list-row {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 13px;
  border: 1px solid hsl(var(--border-soft));
  border-radius: 12px;
  background: hsl(var(--surface-raised));
  color: inherit;
  text-align: left;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease;
}

.session-list-row:hover,
.session-list-row.selected {
  border-color: hsl(var(--tan));
  background: hsl(var(--cream));
}

.session-time-block-earlier {
  width: 60px;
}

.session-date-label {
  color: hsl(var(--soft-brown));
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
}

.session-status-pill {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  height: 23px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.session-status-pill.scheduled {
  background: hsl(var(--cream));
  color: hsl(var(--soft-brown));
}

.session-status-pill.online {
  background: hsl(var(--sage-tint));
  color: hsl(var(--sage-dark));
}

.session-status-pill.muted {
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
}

.sessions-back-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid hsl(var(--border));
  border-radius: 9px;
  background: hsl(var(--surface-raised));
  color: hsl(var(--foreground));
  font-size: 13px;
  font-weight: 600;
}

.sessions-back-button:hover {
  border-color: hsl(var(--tan));
  background: hsl(var(--cream));
}

.session-detail-header {
  padding: 18px;
  border-bottom: 1px solid hsl(var(--border-soft));
}

.session-type-label {
  color: hsl(var(--soft-brown));
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
}

.session-detail-title {
  margin: 5px 0 0;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.15;
}

.session-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 11px;
  color: hsl(var(--muted-foreground));
  font-size: 13px;
}

.session-detail-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
}

.session-brief-card {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 15px;
  border: 1px solid hsl(124 14% 78%);
  border-radius: 13px;
  background: hsl(124 22% 93%);
}

.session-brief-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.session-brief-head > span:first-child {
  display: inline-flex;
  color: hsl(var(--sage-dark));
}

.session-brief-label {
  color: hsl(var(--sage-dark));
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
}

.session-brief-hint {
  margin-left: auto;
  color: hsl(var(--sage-dark));
  font-size: 10.5px;
  font-weight: 600;
  opacity: 0.75;
}

.session-brief-summary {
  margin: 0;
  color: hsl(124 22% 24%);
  font-size: 13.5px;
  line-height: 1.55;
}

.session-brief-points {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.session-brief-point {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 9px 11px;
  border-radius: 9px;
  background: hsl(34 38% 99% / 0.75);
}

.session-brief-pill {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  height: 20px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}

.session-brief-pill.warn {
  background: hsl(var(--peach));
  color: hsl(16 44% 38%);
}

.session-brief-pill.sage {
  background: hsl(124 18% 84%);
  color: hsl(var(--sage-dark));
}

.session-brief-pill.brown {
  background: hsl(var(--cream));
  color: hsl(var(--soft-brown));
}

.session-brief-text {
  flex: 1;
  color: hsl(var(--foreground));
  font-size: 13px;
  line-height: 1.45;
}

.session-info-label {
  margin-bottom: 8px;
  color: hsl(var(--soft-brown));
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
}

.session-attendance-list,
.session-exercise-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.session-attendance-row {
  display: flex;
  align-items: center;
  gap: 11px;
}

.session-attendance-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
}

.session-attendance-status {
  color: hsl(var(--sage-dark));
  font-size: 12px;
  font-weight: 600;
}

.session-focus-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.session-focus-tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  background: hsl(var(--sage-tint));
  color: hsl(var(--sage-dark));
  font-size: 12px;
  font-weight: 600;
}

.session-exercise-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid hsl(var(--border-soft));
  border-radius: 10px;
  background: hsl(var(--surface-raised));
}

.session-exercise-name {
  font-size: 13.5px;
  font-weight: 600;
}

.session-exercise-meta {
  color: hsl(var(--muted-foreground));
  font-size: 12px;
}

.session-modifications-band {
  padding: 14px 15px;
  border: 1px solid hsl(var(--border-soft));
  border-radius: 12px;
  background: hsl(var(--surface));
}

.session-modifications-band p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
}

.session-detail-notes {
  margin-top: 10px !important;
  color: hsl(var(--muted-foreground));
}

.session-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.session-log-button{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
}

.online-class-panel {
  overflow: hidden;
}

.online-class-header {
  padding: 18px;
  border-bottom: 1px solid hsl(var(--border-soft));
  background: hsl(var(--sage-tint));
}

.online-class-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: hsl(var(--sage-dark));
  font-size: 12px;
  font-weight: 600;
}

.online-class-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: hsl(var(--sage-dark));
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
}

.online-class-body {
  gap: 16px;
}

.online-meeting-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid hsl(var(--border-soft));
  border-radius: 12px;
  background: hsl(var(--surface-raised));
}

.online-meeting-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: hsl(var(--sage-tint));
  color: hsl(var(--sage-dark));
  flex-shrink: 0;
}

.online-meeting-copy {
  min-width: 0;
  flex: 1;
}

.online-meeting-title {
  font-size: 13.5px;
  font-weight: 600;
}

.online-meeting-link {
  margin-top: 2px;
  color: hsl(var(--muted-foreground));
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online-join-button {
  flex-shrink: 0;
  min-height: 38px;
  padding: 0 15px;
  border: 0;
  background: hsl(var(--sage-dark));
  color: #fff;
}

.online-attendance-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.online-attendance-row {
  display: flex;
  align-items: center;
  gap: 11px;
}

.online-attendance-status {
  color: hsl(var(--muted-foreground));
  font-size: 12px;
  font-weight: 600;
}

.online-teaching-note {
  background: hsl(var(--surface));
}

.online-recording-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 13px;
  border: 1px dashed hsl(var(--border));
  border-radius: 11px;
  background: hsl(var(--cream));
}

.online-recording-note > span {
  display: inline-flex;
  margin-top: 2px;
  color: hsl(var(--soft-brown));
  flex-shrink: 0;
}

.online-recording-note p {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: 12.5px;
  line-height: 1.5;
}

.online-class-actions,
.online-follow-up-button {
  align-items: center;
}

.sessions-log-head {
  align-items: flex-start;
}

.sessions-log-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

@keyframes mp-pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scaleY(0.85);
  }

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

.session-assist-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 15px;
  border: 1px solid hsl(124 14% 78%);
  border-radius: 13px;
  background: hsl(124 22% 93%);
}

.session-assist-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.session-assist-head > span:first-child {
  display: inline-flex;
  color: hsl(var(--sage-dark));
}

.session-assist-label {
  color: hsl(var(--sage-dark));
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
}

.session-assist-hint {
  margin-left: auto;
  color: hsl(var(--sage-dark));
  font-size: 10.5px;
  font-weight: 600;
  opacity: 0.75;
}

.session-assist-copy {
  margin: 0;
  color: hsl(124 20% 30%);
  font-size: 12.5px;
  line-height: 1.5;
}

.session-assist-input {
  width: 100%;
  min-height: 56px;
  padding: 10px 12px;
  border: 1px solid hsl(124 14% 80%);
  border-radius: 10px;
  background: hsl(34 38% 99%);
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
}

.session-assist-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.session-assist-record,
.session-assist-stop,
.session-assist-apply {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 0;
  background: hsl(var(--sage-dark));
  color: #fff;
}

.session-assist-draft,
.session-assist-reset {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  border-color: hsl(124 16% 72%);
  color: hsl(var(--sage-dark));
  background: transparent;
}

.session-assist-recording {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid hsl(124 14% 80%);
  border-radius: 11px;
  background: hsl(34 38% 99%);
}

.session-assist-recording-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: hsl(8 60% 55%);
  animation: mp-pulse 1.2s infinite;
  flex-shrink: 0;
}

.session-assist-waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 22px;
}

.session-assist-waveform span {
  width: 3px;
  border-radius: 2px;
  background: hsl(var(--sage-dark));
  animation: mp-pulse 0.9s ease-in-out infinite;
}

.session-assist-waveform span:nth-child(1) {
  height: 8px;
}

.session-assist-waveform span:nth-child(2) {
  height: 16px;
  animation-delay: 0.12s;
}

.session-assist-waveform span:nth-child(3) {
  height: 22px;
  animation-delay: 0.24s;
}

.session-assist-waveform span:nth-child(4) {
  height: 13px;
  animation-delay: 0.36s;
}

.session-assist-waveform span:nth-child(5) {
  height: 19px;
  animation-delay: 0.48s;
}

.session-assist-waveform span:nth-child(6) {
  height: 9px;
  animation-delay: 0.6s;
}

.session-assist-recording-label {
  margin-left: auto;
  color: hsl(var(--sage-dark));
  font-size: 12px;
  font-weight: 600;
}

.session-assist-drafting {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 15px;
  color: hsl(var(--sage-dark));
  font-size: 13px;
  font-weight: 600;
}

.session-assist-drafting-dots {
  display: inline-flex;
  gap: 4px;
}

.session-assist-drafting-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: hsl(var(--sage-dark));
  animation: mp-pulse 1s infinite;
}

.session-assist-drafting-dots span:nth-child(2) {
  animation-delay: 0.18s;
}

.session-assist-drafting-dots span:nth-child(3) {
  animation-delay: 0.36s;
}

.session-assist-ready {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.session-assist-ready-label {
  margin-bottom: 0;
  color: hsl(var(--sage-dark));
}

.session-assist-draft-note {
  min-height: 104px;
  font-size: 13.5px;
  line-height: 1.55;
}

.session-assist-suggested-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.session-assist-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: hsl(124 18% 86%);
  color: hsl(var(--sage-dark));
  font-size: 12px;
  font-weight: 600;
}

.session-assist-followup {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 11px 13px;
  border: 1px solid hsl(124 14% 80%);
  border-radius: 11px;
  background: hsl(34 38% 99%);
}

.session-assist-followup > span:first-child {
  display: inline-flex;
  margin-top: 1px;
  color: hsl(var(--sage-dark));
}

.session-assist-followup-label {
  margin-bottom: 2px;
  color: hsl(var(--sage-dark));
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
}

.session-assist-followup p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.session-log-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.session-log-section {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.session-log-clients {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.session-log-client-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px 0 7px;
  border: 1px solid hsl(var(--sage-dark));
  border-radius: 999px;
  background: hsl(var(--sage-tint));
  color: hsl(var(--sage-dark));
  font-size: 13px;
  font-weight: 600;
}

.session-log-client-check {
  display: inline-flex;
}

.session-log-focus-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.session-log-focus-chip {
  min-height: 33px;
  padding: 0 13px;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: hsl(var(--surface-raised));
  color: hsl(var(--muted-foreground));
  font-size: 12.5px;
  font-weight: 600;
}

.session-log-focus-chip.active {
  border-color: hsl(var(--sage-dark));
  background: hsl(var(--sage-tint));
  color: hsl(var(--sage-dark));
}

.session-log-exercise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.session-log-exercise-card {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 12px;
  border: 1px solid hsl(var(--border-soft));
  border-radius: 11px;
  background: hsl(var(--surface-raised));
  color: inherit;
  text-align: left;
}

.session-log-exercise-card.active {
  border-color: hsl(var(--tan));
  background: hsl(var(--cream));
}

.session-log-exercise-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid hsl(var(--border));
  border-radius: 7px;
  flex-shrink: 0;
  color: hsl(var(--primary-foreground));
}

.session-log-exercise-card.active .session-log-exercise-check {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary));
}

.session-log-exercise-copy {
  min-width: 0;
}

.session-log-exercise-name {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
}

.session-log-exercise-meta {
  display: block;
  color: hsl(var(--muted-foreground));
  font-size: 12px;
}

.session-log-textarea,
.session-log-followup-input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid hsl(var(--border));
  border-radius: 11px;
  background: hsl(var(--surface-raised));
  font-size: 13.5px;
  line-height: 1.5;
}

.session-log-textarea {
  min-height: 74px;
  resize: vertical;
}

.session-log-followup-input {
  min-height: 44px;
}

.session-log-private-band {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 13px;
  border-left: 3px solid hsl(var(--soft-brown));
  border-radius: 0 11px 11px 0;
  background: hsl(28 30% 95%);
}

.session-log-private-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: hsl(var(--soft-brown));
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
}

.session-log-save {
  min-height: 46px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
}

.access-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid hsl(var(--sage-dark) / 0.22);
  border-radius: var(--radius-lg);
  background: hsl(var(--sage-tint));
}

.access-banner p {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 600;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 3px;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-md);
  background: hsl(var(--surface-raised));
}

.segment {
  min-height: 34px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: hsl(var(--muted-foreground));
  font-size: 12.5px;
  font-weight: 600;
}

.segment.active {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: none;
}

.compact-field {
  max-width: 420px;
}

.compact-field span {
  font-size: 13px;
  font-weight: 600;
}

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

.plan-pill {
  display: grid;
  gap: 2px;
  max-width: 240px;
  padding: 10px 12px;
  border: 1px solid hsl(var(--border-soft));
  border-radius: var(--radius-lg);
  background: hsl(var(--surface-raised));
  color: hsl(var(--foreground));
  text-align: left;
}

.plan-pill.active {
  border-color: hsl(var(--sage-dark) / 0.45);
  background: hsl(var(--sage-tint));
}

.plan-pill span,
.plan-pill small {
  overflow-wrap: anywhere;
}

.plan-pill span {
  font-weight: 600;
}

.plan-pill small {
  color: hsl(var(--muted-foreground));
}

.portal-practice-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: min(100%, 680px);
  margin: 0 auto;
}

.portal-practice-shell .client-switcher {
  margin-bottom: 0;
}

.portal-practice-hero {
  padding: 22px 24px;
  border-radius: 16px;
  background: hsl(22 32% 40%);
  color: hsl(36 42% 95%);
}

.portal-practice-hero p {
  margin: 0;
  color: hsl(34 44% 88%);
  font-family: var(--font-script);
  font-size: 25px;
  line-height: 1;
}

.portal-practice-hero h2 {
  margin: 9px 0 0;
  color: hsl(36 42% 95%);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.15;
}

.portal-practice-hero span {
  display: block;
  margin-top: 6px;
  color: hsl(32 28% 82%);
  font-size: 13.5px;
  line-height: 1.5;
}

.portal-practice-panel {
  overflow: hidden;
  border: 1px solid hsl(var(--border-soft));
  border-radius: var(--radius-lg);
  background: hsl(var(--surface));
}

.portal-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid hsl(var(--border-soft));
}

.portal-panel-header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
}

.portal-panel-header p {
  margin: 3px 0 0;
  color: hsl(var(--muted-foreground));
  font-size: 12.5px;
  line-height: 1.4;
}

.portal-status-pill,
.portal-done-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.portal-status-pill {
  background: hsl(var(--oatmeal));
  color: hsl(var(--soft-brown));
}

.portal-done-pill {
  background: hsl(var(--sage-tint));
  color: hsl(var(--sage-dark));
}

.portal-practice-body,
.portal-feedback-body,
.portal-journey-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}

.practice-instruction-card {
  padding: 13px;
  border: 1px solid hsl(var(--border-soft));
  border-radius: 11px;
  background: hsl(var(--cream));
  font-size: 13px;
  line-height: 1.5;
}

.portal-assignment-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}

.portal-assignment-row {
  display: flex;
  width: 100%;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid hsl(var(--border-soft));
  border-radius: 12px;
  background: hsl(var(--surface-raised));
  color: inherit;
  text-align: left;
}

.portal-assignment-row.active {
  border-color: hsl(var(--sage-dark) / 0.35);
  background: hsl(var(--sage-tint));
}

.portal-assignment-row-copy,
.portal-assignment-row-meta {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.portal-assignment-row-copy {
  flex: 1;
}

.portal-assignment-row-copy strong {
  font-size: 14px;
  line-height: 1.2;
}

.portal-assignment-row-copy small,
.portal-assignment-row-meta small {
  color: hsl(var(--muted-foreground));
  font-size: 12px;
  line-height: 1.3;
}

.portal-assignment-row-meta {
  align-items: flex-end;
  flex-shrink: 0;
}

.portal-assignment-row-meta span {
  color: hsl(var(--sage-dark));
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.portal-practice-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portal-practice-step {
  display: flex;
  gap: 13px;
  padding: 14px;
  border: 1px solid hsl(var(--border-soft));
  border-radius: 12px;
  background: hsl(var(--surface-raised));
}

.portal-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: hsl(var(--sage-tint));
  color: hsl(var(--sage-dark));
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  flex-shrink: 0;
}

.portal-step-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}

.portal-step-copy strong {
  font-size: 15px;
}

.portal-step-copy em {
  color: hsl(var(--primary));
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
}

.portal-step-copy span {
  color: hsl(var(--muted-foreground));
  font-size: 13px;
  line-height: 1.5;
}

.portal-demo-link {
  width: max-content;
  color: hsl(var(--sage-dark));
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none;
}

.portal-complete-button {
  width: 100%;
  min-height: 46px;
  border-radius: 11px;
  font-size: 14px;
}

.portal-complete-button:disabled {
  cursor: default;
  opacity: 0.75;
}

.portal-feedback-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.portal-feedback-group legend,
.portal-notes-field span {
  margin-bottom: 0;
  color: hsl(var(--soft-brown));
  font-size: 11.5px;
  font-weight: 600;
  text-transform: none;
}

.portal-feedback-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.portal-feedback-option {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: hsl(var(--surface-raised));
  color: hsl(var(--muted-foreground));
  font-size: 12.5px;
  font-weight: 600;
}

.portal-feedback-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.portal-feedback-option:has(input:checked),
.portal-feedback-option.selected {
  border-color: hsl(var(--sage-dark) / 0.35);
  background: hsl(var(--sage-tint));
  color: hsl(var(--sage-dark));
}

.portal-notes-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.portal-notes-field textarea {
  width: 100%;
  min-height: 70px;
  padding: 11px 13px;
  border: 1px solid hsl(var(--border));
  border-radius: 11px;
  background: hsl(var(--surface-raised));
  font-size: 13.5px;
  line-height: 1.5;
  resize: vertical;
}

.portal-feedback-submit {
  justify-content: center;
  min-height: 44px;
  border-color: hsl(var(--sage-dark) / 0.35);
  background: hsl(var(--sage-tint));
  color: hsl(var(--sage-dark));
}

.portal-journey-body {
  gap: 18px;
}

.portal-journey-block {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.portal-journey-block + .portal-journey-block {
  padding-top: 4px;
  border-top: 1px solid hsl(var(--border-soft));
}

.portal-goal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.portal-goal-row div:first-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.portal-goal-row strong {
  font-size: 14px;
}

.portal-goal-row span {
  color: hsl(var(--sage-dark));
  font-size: 11.5px;
  font-weight: 600;
}

.portal-goal-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.portal-goal-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: hsl(var(--border));
}

.portal-goal-dots span.active {
  background: hsl(var(--sage));
}

.portal-journey-panel .client-journey-trend {
  min-height: 94px;
  padding: 0;
  background: transparent;
}

.portal-journey-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: 13px;
  line-height: 1.45;
}

.portal-journey-note span {
  display: inline-flex;
  color: hsl(var(--sage-dark));
}

.portal-journey-note strong {
  color: hsl(var(--sage-dark));
}

.portal-milestone-row {
  display: flex;
  gap: 13px;
}

.portal-milestone-row > span {
  width: 11px;
  height: 11px;
  margin-top: 2px;
  border: 2px solid hsl(var(--sage-tint));
  border-radius: 50%;
  background: hsl(var(--sage));
  flex-shrink: 0;
}

.portal-milestone-row p {
  margin: -3px 0 0;
  color: hsl(var(--foreground));
  font-size: 13.5px;
  line-height: 1.5;
}

.portal-milestone-row strong {
  display: block;
  color: hsl(var(--soft-brown));
  font-size: 11px;
  font-weight: 600;
}

.portal-waiver-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid hsl(var(--border-soft));
  border-radius: var(--radius-lg);
  background: hsl(var(--surface));
}

.portal-waiver-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: hsl(var(--sage-tint));
  color: hsl(var(--sage-dark));
  flex-shrink: 0;
}

.portal-waiver-card > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.portal-waiver-card strong {
  font-size: 14px;
}

.portal-waiver-card em {
  color: hsl(var(--muted-foreground));
  font-size: 12.5px;
  font-style: normal;
  line-height: 1.4;
}

.instructor-account-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: min(100%, 680px);
  margin: 0 auto;
}

.connected-studios-panel {
  overflow: hidden;
}

.connected-studios-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid hsl(var(--border-soft));
}

.connected-studios-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.15;
}

.connected-studios-head p {
  max-width: 62ch;
  margin: 4px 0 0;
  color: hsl(var(--muted-foreground));
  font-size: 12.5px;
  line-height: 1.55;
}

.connected-studios-list {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.connected-studio-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid hsl(var(--border-soft));
  border-radius: 12px;
  background: hsl(var(--surface-raised));
}

.connected-studio-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  font-size: 17px;
  font-weight: 800;
}

.connected-studio-mark.violet {
  background: hsl(265 36% 92%);
  color: hsl(265 38% 46%);
}

.connected-studio-mark.blue {
  background: hsl(196 44% 90%);
  color: hsl(199 56% 38%);
}

.connected-studio-mark.neutral {
  background: hsl(var(--oatmeal));
  color: hsl(var(--muted-foreground));
}

.connected-studio-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.connected-studio-copy strong {
  font-size: 14px;
  font-weight: 600;
}

.connected-studio-copy span,
.connected-studio-copy small {
  color: hsl(var(--muted-foreground));
  font-size: 12.5px;
  line-height: 1.45;
}

.connected-studio-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: hsl(var(--sage-tint));
  color: hsl(var(--sage-dark));
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.connected-studio-status span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: hsl(var(--sage-dark));
}

.connect-studio-placeholder {
  border-style: dashed;
  background: transparent;
}

.connected-studios-note {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 11px 13px;
  border-radius: 11px;
  background: hsl(var(--cream));
}

.connected-studios-note span {
  display: inline-flex;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: hsl(var(--soft-brown));
}

.connected-studios-note p {
  margin: 0;
  color: hsl(var(--foreground));
  font-size: 12.5px;
  line-height: 1.5;
}

.online-settings-panel {
  overflow: hidden;
}

.online-settings-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid hsl(var(--border-soft));
}

.online-settings-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.15;
}

.online-settings-head p {
  max-width: 58ch;
  margin: 4px 0 0;
  color: hsl(var(--muted-foreground));
  font-size: 12.5px;
  line-height: 1.55;
}

.online-settings-status {
  flex-shrink: 0;
}

.online-settings-body {
  display: grid;
  gap: 12px;
  padding: 10px;
}

.online-settings-summary {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid hsl(var(--border-soft));
  border-radius: 12px;
  background: hsl(var(--surface-raised));
}

.online-settings-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: hsl(var(--sage-tint));
  color: hsl(var(--sage-dark));
}

.online-settings-summary div:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.online-settings-summary strong,
.online-setting-item strong {
  font-size: 14px;
  font-weight: 600;
}

.online-settings-summary span,
.online-setting-item p {
  color: hsl(var(--muted-foreground));
  font-size: 12.5px;
  line-height: 1.45;
}

.online-settings-grid {
  display: grid;
  gap: 8px;
}

.online-setting-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border-radius: 11px;
  background: hsl(var(--cream));
}

.online-setting-item > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: hsl(var(--surface-raised));
  color: hsl(var(--soft-brown));
}

.online-setting-item p {
  margin: 3px 0 0;
}

.booking-settings-panel {
  overflow: hidden;
}

.booking-settings-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid hsl(var(--border-soft));
}

.booking-settings-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.15;
}

.booking-settings-head p {
  max-width: 58ch;
  margin: 4px 0 0;
  color: hsl(var(--muted-foreground));
  font-size: 12.5px;
  line-height: 1.55;
}

.booking-settings-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 10px 0;
}

.booking-setting-item {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 13px;
  border-radius: 12px;
  background: hsl(var(--cream));
}

.booking-setting-item span {
  color: hsl(var(--muted-foreground));
  font-size: 11.5px;
  font-weight: 600;
  text-transform: none;
}

.booking-setting-item strong {
  font-size: 14px;
  font-weight: 800;
}

.booking-setting-item p {
  margin: 0;
  color: hsl(var(--foreground));
  font-size: 12.5px;
  line-height: 1.45;
}

.booking-provider-list {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.booking-provider-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.75fr) minmax(0, 1.7fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px;
  border: 1px solid hsl(var(--border-soft));
  border-radius: 12px;
  background: hsl(var(--surface-raised));
}

.booking-provider-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.booking-provider-copy strong {
  font-size: 14px;
  font-weight: 800;
}

.booking-provider-copy span {
  color: hsl(var(--sage-dark));
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
}

.booking-provider-details {
  display: grid;
  gap: 8px;
  margin: 0;
}

.booking-provider-details div {
  display: grid;
  gap: 2px;
}

.booking-provider-details dt {
  color: hsl(var(--muted-foreground));
  font-size: 11.5px;
  font-weight: 600;
}

.booking-provider-details dd {
  margin: 0;
  color: hsl(var(--foreground));
  font-size: 12.5px;
  line-height: 1.45;
}

.client-account-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: min(100%, 680px);
  margin: 0 auto;
}

.client-account-profile-card,
.client-account-panel {
  border: 1px solid hsl(var(--border-soft));
  border-radius: var(--radius-lg);
  background: hsl(var(--surface));
}

.client-account-profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
}

.client-account-profile-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.15;
}

.client-account-profile-card p {
  margin: 4px 0 0;
  color: hsl(var(--muted-foreground));
  font-size: 12.5px;
}

.client-account-panel {
  overflow: hidden;
}

.client-account-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid hsl(var(--border-soft));
}

.client-account-panel-head h2,
.client-account-waiver-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.15;
}

.client-account-panel-body {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 16px 18px;
}

.client-privacy-panel .client-account-panel-body {
  padding: 8px;
  gap: 6px;
}

.client-privacy-card {
  display: flex;
  gap: 12px;
  padding: 13px;
  border-radius: 11px;
}

.client-privacy-card > span {
  display: inline-flex;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex-shrink: 0;
}

.client-privacy-card h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.client-privacy-card p {
  margin: 3px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
}

.client-privacy-card.visible {
  background: hsl(var(--sage-tint));
  color: hsl(var(--sage-dark));
}

.client-privacy-card.private {
  background: hsl(28 30% 95%);
}

.client-privacy-card.private > span {
  color: hsl(var(--soft-brown));
}

.client-privacy-card.private p {
  color: hsl(var(--muted-foreground));
}

.client-account-row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.client-account-row p {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: 13.5px;
  line-height: 1.6;
}

.client-account-package-card {
  background: hsl(var(--surface));
}

.client-account-package-head span {
  color: hsl(var(--muted-foreground));
  font-size: 11.5px;
}

.client-account-package-meta,
.client-account-package-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.client-account-package-meta strong {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
}

.client-account-package-meta span {
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.client-account-package-foot span {
  color: hsl(var(--muted-foreground));
  font-size: 12.5px;
}

.client-account-waiver-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
}

.client-account-waiver-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: hsl(var(--sage-tint));
  color: hsl(var(--sage-dark));
  flex-shrink: 0;
}

.client-account-waiver-card p {
  margin: 4px 0 0;
  color: hsl(var(--muted-foreground));
  font-size: 12.5px;
}

.client-signout-button {
  align-self: flex-start;
  min-height: 46px;
  border-radius: 12px;
}@media (max-width: 400px) {
  .portal-assignment-row,
  .client-home-practice-row > div:first-child {
    align-items: flex-start;
    flex-direction: column;
  }

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

.toast {
  position: fixed;
  right: 16px;
  bottom: 86px;
  z-index: 30;
  max-width: calc(100vw - 32px);
  padding: 12px 14px;
  border: 1px solid hsl(var(--sage-dark) / 0.35);
  border-radius: var(--radius-lg);
  background: hsl(var(--surface-raised));
  color: hsl(var(--foreground));
  box-shadow: var(--shadow-panel);
  font-size: 14px;
  font-weight: 600;
}

.primary-nav {
  position: fixed;
  inset: auto 0 0;
  display: flex;
  padding: 6px 6px max(6px, env(safe-area-inset-bottom));
  border-top: 1px solid hsl(var(--border));
  background: hsl(34 30% 98% / 0.96);
  backdrop-filter: blur(10px);
  z-index: 20;
}

.side-brand,
.nav-account-chip {
  display: none;
}

.nav-list {
  display: grid;
  grid-template-columns: repeat(var(--nav-count, 5), minmax(0, 1fr));
  gap: 2px;
  width: 100%;
}

.nav-item {
  display: grid;
  position: relative;
  justify-items: center;
  gap: 3px;
  min-height: 56px;
  padding: 7px 2px;
  border: 0;
  border-radius: var(--radius-lg);
  background: transparent;
  color: hsl(var(--muted-foreground));
  font-size: 10.5px;
  font-weight: 600;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 21px;
  height: 21px;
  border-radius: 7px;
  background: transparent;
  color: currentcolor;
  font-size: 11px;
  font-weight: 600;
}

.nav-label {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-count {
  position: absolute;
  top: 4px;
  right: max(12px, 18%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 999px;
  background: hsl(var(--soft-brown));
  color: hsl(var(--primary-foreground));
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1;
}

.nav-item.active {
  color: hsl(var(--primary));
}

.nav-item.active .nav-icon {
  background: hsl(var(--sage-tint));
}@media (min-width: 760px) {
  .topbar {
    padding-right: 28px;
    padding-left: 28px;
  }

  .content {
    padding: 28px 28px 112px;
  }

  .today-hero {
    padding: 26px 28px;
  }

  .today-stat-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .today-grid {
    grid-template-columns: 1.35fr 1fr;
  }

  .clients-layout {
    grid-template-columns: 330px minmax(0, 1fr);
  }

  .library-layout {
    grid-template-columns: 330px minmax(0, 1fr);
  }

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

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

  .grid.two,
  .dashboard-grid,
  .workspace-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .library-grid {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .library-grid .wide,
  .portal-grid .wide {
    grid-column: 1 / -1;
  }

  .portal-grid {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}@media (min-width: 1024px) {
  .app-shell {
    grid-template-columns: var(--desktop-sidebar-width) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
  }

  .topbar,
  .content {
    grid-column: 2;
  }

  .topbar {
    padding-right: 36px;
    padding-left: 36px;
  }

  .content {
    padding-right: 36px;
    padding-bottom: 48px;
    padding-left: 36px;
  }

  .primary-nav {
    position: sticky;
    inset: 0 auto auto 0;
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: var(--desktop-sidebar-width);
    height: 100svh;
    padding: 22px 16px;
    border-top: 0;
    border-right: 1px solid hsl(var(--border));
    background: hsl(33 28% 97%);
    backdrop-filter: none;
  }

  .side-brand {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 4px 8px 22px;
  }

  .side-brand span:first-child {
    color: hsl(var(--foreground));
    font-family: var(--font-display);
    font-size: 25px;
    font-weight: 600;
    letter-spacing: 0.01em;
  }

  .side-brand span:last-child {
    color: hsl(var(--soft-brown));
    font-family: var(--font-signature);
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
  }

  .nav-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .nav-account-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: auto;
    padding: 10px;
    border: 1px solid hsl(var(--border-soft));
    border-radius: var(--radius-lg);
    background: hsl(var(--surface));
    color: hsl(var(--foreground));
    text-align: left;
  }

  .nav-account-chip span:last-child {
    display: grid;
    min-width: 0;
    gap: 2px;
  }

  .nav-account-chip strong,
  .nav-account-chip small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-account-chip strong {
    font-size: 13px;
    font-weight: 600;
  }

  .nav-account-chip small {
    color: hsl(var(--muted-foreground));
    font-size: 11.5px;
    font-weight: 500;
  }

  .topbar-account {
    display: none;
  }

  .nav-item {
    grid-template-columns: 24px 1fr;
    align-items: center;
    justify-items: start;
    min-height: 44px;
    gap: 12px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
  }

  .nav-icon {
    width: 20px;
    height: 20px;
  }

  .nav-item.active {
    background: hsl(26 40% 90%);
    color: hsl(var(--primary-press));
  }

  .nav-item.active .nav-icon {
    background: transparent;
  }

  .nav-count {
    position: static;
    min-width: 20px;
    height: 20px;
    margin-left: auto;
    padding: 0 6px;
    background: hsl(var(--peach));
    color: hsl(18 40% 38%);
    font-size: 11px;
  }
}@media (max-width: 759px) {
  .site-header {
    align-items: flex-start;
    padding: 16px 16px;
  }

  .site-links {
    display: none;
  }

  .site-header-actions {
    justify-content: flex-end;
    gap: 6px;
  }

  .site-header-actions .button {
    min-height: 38px;
    padding: 0 11px;
    font-size: 12.5px;
  }

  .install-banner {
    padding: 10px 16px;
  }

  .install-banner span {
    max-width: 26ch;
  }

  .install-dialog-backdrop {
    padding: 10px;
  }

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

  .hero-copy {
    padding: 0 18px 70px;
  }

  .hero-copy h1 {
    max-width: 9.5ch;
  }

  .media-hook-badge {
    right: 14px;
    max-width: calc(100% - 28px);
  }

  .hero-video-control {
    right: 14px;
  }

  .site-section-inner,
  .approach-section,
  .closing-cta {
    padding-right: 18px;
    padding-left: 18px;
  }

  .offerings-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .schedule-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: start;
  }

  .schedule-row time {
    width: 48px;
  }

  .schedule-row .schedule-pill,
  .schedule-row .button {
    grid-column: 2;
    justify-self: start;
  }

  .schedule-row .button {
    min-height: 36px;
    padding: 0 14px;
  }

  .closing-cta > div {
    padding: 34px 20px;
  }

  .site-footer,
  .site-footer div {
    align-items: flex-start;
    flex-direction: column;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }

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

  .form-grid,
  .profile-sections,
  .access-rules {
    grid-template-columns: 1fr;
  }

  .panel-header {
    align-items: flex-start;
  }

  .primary-nav {
    gap: 0;
    padding-right: 4px;
    padding-left: 4px;
  }

  .nav-item {
    padding: 4px 2px;
    font-size: 10px;
  }

  .item-row {
    align-items: flex-start;
  }

  .online-meeting-card {
    align-items: stretch;
    flex-direction: column;
  }

  .online-join-button,
  .online-follow-up-button {
    width: 100%;
    justify-content: center;
  }

  .connected-studios-head,
  .connected-studio-row,
  .online-settings-head,
  .booking-settings-head,
  .online-settings-summary {
    align-items: stretch;
  }

  .connected-studios-head,
  .online-settings-head,
  .booking-settings-head {
    flex-direction: column;
  }

  .connected-studio-row,
  .online-settings-summary {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .booking-settings-summary,
  .booking-provider-row {
    grid-template-columns: 1fr;
  }

  .connected-studio-status,
  .connected-studio-row .compact-button,
  .online-settings-summary .compact-button {
    grid-column: 2;
    justify-self: start;
  }

  .booking-provider-row .compact-button {
    justify-self: start;
  }

  .client-account-row,
  .client-account-package-foot {
    align-items: stretch;
    flex-direction: column;
  }

  .client-account-row .ghost-button,
  .client-account-package-foot .button,
  .client-signout-button {
    width: 100%;
    justify-content: center;
  }

  .active-plan-header,
  .plan-builder-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .active-plan-actions,
  .active-plan-actions .ghost-button,
  .plan-builder-actions .button,
  .plan-builder-actions .ghost-button {
    width: 100%;
    justify-content: center;
  }

  .plan-phase-item {
    align-items: flex-start;
  }
}

.nav-account-chip .nav-account-name {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.nav-sign-out {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
}

.nav-sign-out:hover {
  background: hsl(var(--oatmeal));
  color: hsl(var(--foreground));
}@media (max-width: 1023px) {
  .nav-item-desktop {
    display: none;
  }
}

/* ---------- Landing: certification badge ---------- */

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  padding: 9px 14px;
  border: 1px solid hsl(var(--border));
  border-radius: 11px;
  background: hsl(var(--surface-raised));
  font-size: 12.5px;
  font-weight: 600;
  color: hsl(var(--foreground));
  letter-spacing: 0.01em;
}

.cert-badge span {
  display: flex;
  color: hsl(var(--sage-dark));
}

/* ---------- Account: roles, privacy boundary, camera consent ---------- */

.roles-access-head h2{
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
}

.roles-access-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.roles-access-row {
  display: flex;
  gap: 12px;
  padding: 13px;
  border-radius: 11px;
  background: hsl(var(--surface-raised));
}

.roles-access-row.is-current {
  background: hsl(var(--cream));
}

.roles-access-row > span {
  display: flex;
  flex-shrink: 0;
  margin-top: 1px;
  color: hsl(var(--muted-foreground));
}

.roles-access-row.is-current > span {
  color: hsl(var(--primary));
}

.roles-access-row strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.roles-access-row small {
  color: hsl(var(--soft-brown));
  font-size: 11px;
}

.roles-access-row p {
  margin: 2px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: hsl(var(--muted-foreground));
}

.privacy-boundary-band {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  border-left: 3px solid hsl(var(--soft-brown));
  border-radius: 0 14px 14px 0;
  background: hsl(28 30% 95%);
}

.privacy-boundary-band > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.privacy-boundary-band > div > span {
  display: flex;
  color: hsl(var(--soft-brown));
}

.privacy-boundary-band strong {
  font-size: 11px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.01em;
  color: hsl(var(--soft-brown));
}

.privacy-boundary-band p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
}

.account-sign-out {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}


/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Live Momence classes + promo drafts */

.momence-class-row {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  text-align: left;
  padding: 13px;
  border: 1px solid hsl(var(--border-soft));
  border-radius: 12px;
  background: hsl(var(--surface-raised));
  cursor: pointer;
  transition: background 0.15s ease;
}

.momence-class-row:hover {
  background: hsl(var(--cream));
}

.momence-class-row time {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 68px;
  flex-shrink: 0;
  padding-right: 13px;
  border-right: 1px solid hsl(var(--border-soft));
}

.momence-class-row time span {
  font-size: 11px;
  font-weight: 600;
  color: hsl(var(--soft-brown));
  text-transform: none;
  white-space: nowrap;
}

.momence-class-row time strong {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.momence-class-row div {
  min-width: 0;
  flex: 1;
}

.momence-class-row h3 {
  font-size: 14.5px;
  font-weight: 600;
}

.momence-class-row p {
  font-size: 12.5px;
  color: hsl(var(--muted-foreground));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.momence-pill {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  background: hsl(var(--sage-tint));
  color: hsl(var(--sage-dark));
}

.promo-panel-head {
  flex-wrap: wrap;
}

.promo-panel-head p {
  margin-top: 3px;
  font-size: 12.5px;
  color: hsl(var(--muted-foreground));
}

.promo-head-controls {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.promo-format-toggle {
  display: flex;
  border: 1px solid hsl(var(--border));
  border-radius: 8px;
  overflow: hidden;
}

.promo-format-toggle button {
  height: 26px;
  padding: 0 11px;
  border: 0;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  background: hsl(var(--surface-raised));
  color: hsl(var(--muted-foreground));
  cursor: pointer;
}

.promo-format-toggle button.active {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.promo-panel-body {
  gap: 13px;
  padding: 14px 18px;
}

.promo-pool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.promo-pool-slot {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px;
  border: 1.5px dashed hsl(var(--border));
  border-radius: 10px;
  background: hsl(var(--cream-warm));
  font-size: 11px;
  color: hsl(var(--muted-foreground));
}

.promo-hint {
  margin-top: 8px;
  font-size: 11.5px;
  color: hsl(var(--muted-foreground));
}

.promo-drafts {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.promo-drafts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.promo-drafts-head button {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  color: hsl(var(--soft-brown));
  cursor: pointer;
}

.promo-card-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.promo-draft {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.promo-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: hsl(25 14% 20%);
}

.promo-card.story {
  aspect-ratio: 9 / 16;
  width: 190px;
}

.promo-card.feed {
  aspect-ratio: 4 / 5;
  width: 230px;
}

.promo-card-media {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  color: hsl(34 20% 72%);
}

.promo-card-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 46px 14px 14px;
  background: linear-gradient(transparent, hsl(25 20% 10% / 0.84));
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
}

.promo-card-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: #fff;
}

.promo-card-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
}

.promo-card-when {
  font-size: 11.5px;
  font-weight: 600;
  color: hsl(34 40% 88%);
}

.promo-copy-button {
  height: 30px;
  border: 1px solid hsl(var(--border));
  border-radius: 8px;
  background: hsl(var(--surface-raised));
  font-size: 11.5px;
  font-weight: 600;
  color: hsl(var(--foreground));
  cursor: pointer;
}

.promo-auto-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border-radius: 11px;
  background: hsl(var(--cream));
  font-size: 12.5px;
  line-height: 1.5;
}

.promo-auto-toggle {
  position: relative;
  width: 40px;
  height: 24px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.18s ease;
  background: hsl(var(--border));
}

.promo-auto-toggle.on {
  background: hsl(var(--sage-dark));
}

.promo-auto-toggle span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.18s ease;
}

.promo-auto-toggle.on span {
  left: 19px;
}

.taught-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid hsl(var(--border-soft));
  border-radius: 11px;
  background: hsl(var(--surface-raised));
}

.taught-row div {
  min-width: 0;
  flex: 1;
}

.taught-row h3 {
  font-size: 13.5px;
  font-weight: 600;
}

.taught-row p {
  font-size: 12px;
  color: hsl(var(--muted-foreground));
  margin-top: 1px;
}

.taught-fill {
  font-size: 12px;
  font-weight: 600;
  color: hsl(var(--sage-dark));
  white-space: nowrap;
}

/* --- Public Schedule page (design option 1b) --- */

/* The nav mixes anchors (in-page on the landing view) and buttons (cross-view on
   the Schedule view); both must read identically. */
.site-links button {
  padding: 8px 10px;
  border: 0;
  background: none;
  color: hsl(var(--muted-foreground));
  font-size: 13.5px;
  font-weight: 600;
}

.site-links button[aria-current="page"] {
  color: hsl(var(--foreground));
  font-weight: 600;
  border-bottom: 2px solid hsl(var(--primary));
}

.schedule-page-grid {
  display: grid;
  gap: 20px;
  align-items: start;
  margin-top: 20px;
}

.schedule-page-list {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-xl);
  background: hsl(var(--surface-raised));
  overflow: hidden;
}

.schedule-page-list-head {
  padding: 12px 16px;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--surface-muted));
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: hsl(var(--tan));
}

.schedule-page-footnote,
.schedule-page-empty {
  margin: 0;
  padding: 14px 16px;
  font-size: 12px;
  color: hsl(var(--muted-foreground));
}

.schedule-page-empty {
  font-size: 13px;
  line-height: 1.55;
}

.studio-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
  background: hsl(var(--sage-tint));
  color: hsl(var(--sage-dark));
}

.studio-badge[data-studio="st-grnd"] {
  background: hsl(var(--peach));
  color: hsl(18 42% 34%);
}

.privates-rail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 1px solid hsl(var(--sage-light));
  border-radius: var(--radius-xl);
  background: hsl(var(--sage-tint));
}

.privates-rail-intro h3 {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
}

.privates-rail-intro p {
  margin: 7px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: hsl(var(--muted-foreground));
}

.privates-rail form {
  display: grid;
  gap: 10px;
}

.privates-rail input,
.privates-rail textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid hsl(var(--sage-light));
  border-radius: var(--radius-md);
  background: hsl(var(--surface-raised));
  font-size: 13px;
}

.privates-rail textarea {
  resize: vertical;
  line-height: 1.5;
}

.privates-rail .field > span {
  font-size: 12px;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
}



.chip.selected {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.field-error,
.privates-error {
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
  color: hsl(var(--danger));
}

.privates-sent {
  display: grid;
  gap: 7px;
  padding: 15px 14px;
  border-radius: var(--radius-lg);
  background: hsl(var(--surface-raised));
}

.privates-sent strong {
  font-size: 13.5px;
  color: hsl(var(--sage-dark));
}

.privates-sent span {
  font-size: 12.5px;
  line-height: 1.5;
  color: hsl(var(--muted-foreground));
}

.privates-footnote {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: hsl(var(--muted-foreground));
}

/* The rail sits beside the list only when there is room for both; below this it
   stacks under the classes so neither column is squeezed. */
@media (min-width: 900px) {
  .schedule-page-grid {
    grid-template-columns: minmax(0, 1fr) 316px;
  }

  .privates-rail {
    position: sticky;
    top: 20px;
  }
}
