 :root {
  color-scheme: light;
  --color-brand-primary: #e84b6a;
  --color-brand-coral: #ff7163;
  --color-brand-deep: #c93658;
  --color-brand-soft: #f7dde4;
  --color-brand-mist: #fceff2;
  --color-champagne: #d7b56d;
  --color-pearl: #fffdfc;
  --color-pearl-cool: #fafafc;
  --color-canvas: #f3f4f7;
  --color-surface-secondary: #e9eaf0;
  --color-plum: #291822;
  --color-plum-elevated: #3b2130;
  --color-ink: #121216;
  --color-charcoal: #2a2830;
  --color-slate: #64616d;
  --color-text-muted: #898691;
  --color-border: #e3e1e7;
  --color-border-strong: #cbc8d1;
  --color-success: #167454;
  --color-warning: #95600d;
  --color-error: #b83a4d;
  --color-info: #365fb8;
  --color-focus: #ff806f;
  --font-ui: Manrope, Inter, "SF Pro Display", "Avenir Next", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-sheet: 24px;
  --blur-light: 12px;
  --blur-standard: 18px;
  --blur-strong: 24px;
  --shadow-1: 0 1px 2px rgba(18, 18, 22, 0.05);
  --shadow-2: 0 8px 24px rgba(18, 18, 22, 0.07);
  --shadow-3: 0 18px 48px rgba(18, 18, 22, 0.12);
  --shadow-4: 0 28px 80px rgba(18, 18, 22, 0.20);
  --gradient-brand: linear-gradient(135deg, #e84b6a 0%, #ff7163 100%);
  --gradient-splash: radial-gradient(circle at 72% 18%, rgba(255, 113, 99, 0.42), transparent 34%), radial-gradient(circle at 22% 78%, rgba(201, 54, 88, 0.46), transparent 42%), linear-gradient(145deg, #21131c 0%, #4d2033 48%, #291822 100%);
  --gradient-login: linear-gradient(135deg, rgba(33, 19, 28, 0.98), rgba(82, 34, 54, 0.86));

  /* Frozen compatibility aliases keep the untouched operational UI visually unchanged until its later phase. */
  --page-cream: #faf6f1;
  --surface-cream: #fffdfc;
  --secondary-cream: #f4ece6;
  --rose-gold: #b8756b;
  --deep-rose-gold: #8e514a;
  --dusty-pink: #d7aaa3;
  --soft-dusty-pink: #f0ddda;
  --ink: #1c1919;
  --charcoal: #3a3332;
  --muted: #756a67;
  --warm-border: #e5d8d1;
  --focus-ring: rgba(142, 81, 74, 0.34);
  --shadow-soft: 0 10px 32px rgba(58, 51, 50, 0.055);
  --shadow-raised: 0 20px 54px rgba(58, 51, 50, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page-cream);
}

body {
  margin: 0;
  background: var(--page-cream);
  color: var(--ink);
  font: 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

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

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

button:disabled,
input:disabled,
textarea:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.topbar {
  height: 74px;
  background: rgba(255, 253, 252, 0.96);
  border-bottom: 1px solid var(--warm-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 5;
  box-shadow: 0 4px 18px rgba(58, 51, 50, 0.025);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  font-size: 14px;
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
}

.brand strong {
  flex: 0 0 auto;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.brandmark {
  width: 37px;
  height: 37px;
  border: 1px solid var(--deep-rose-gold);
  border-radius: 10px;
  background: var(--deep-rose-gold);
  color: var(--surface-cream);
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(142, 81, 74, 0.16);
}

.context {
  display: none;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar {
  width: 35px;
  height: 35px;
  border: 1px solid var(--warm-border);
  border-radius: 50%;
  background: var(--secondary-cream);
  color: var(--charcoal);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
}

.desktop-nav {
  display: none;
}

.content {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 30px 18px 104px;
}

.hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.eyebrow,
.offer-kicker {
  color: var(--deep-rose-gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.115em;
  text-transform: uppercase;
}

.hero h1,
.state-card h1 {
  font-family: ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-weight: 600;
}

.hero h1 {
  margin: 5px 0 8px;
  font-size: 33px;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero p,
.offer-card p {
  margin: 0;
  color: var(--muted);
}

h2 {
  margin: 0 0 13px;
  color: var(--charcoal);
  font-size: 18px;
  letter-spacing: -0.015em;
}

h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  letter-spacing: -0.02em;
}

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

.stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 15px;
}

.card {
  background: var(--surface-cream);
  border: 1px solid var(--warm-border);
  border-radius: 17px;
  box-shadow: var(--shadow-soft);
}

.stat {
  min-height: 92px;
  padding: 16px;
  display: grid;
  align-content: center;
  gap: 3px;
  border-top: 3px solid var(--dusty-pink);
}

.stat strong {
  color: var(--ink);
  font-size: 27px;
  line-height: 1;
}

.stat span,
.card small {
  color: var(--muted);
  font-size: 12px;
}

.ai-card {
  padding: 17px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
  background: var(--secondary-cream);
}

.ai-card h3 {
  font-size: 15px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

.badge.ai {
  background: var(--soft-dusty-pink);
  border-color: var(--dusty-pink);
  color: var(--ink);
}

.badge.customer {
  background: var(--secondary-cream);
  border-color: var(--warm-border);
  color: var(--charcoal);
}

.badge.staff {
  background: var(--page-cream);
  border-color: var(--rose-gold);
  color: var(--deep-rose-gold);
}

.badge.human {
  background: var(--soft-dusty-pink);
  border-color: var(--deep-rose-gold);
  color: var(--deep-rose-gold);
}

.status-pill {
  padding: 7px 10px;
  border: 1px solid var(--dusty-pink);
  border-radius: 8px;
  background: var(--soft-dusty-pink);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--deep-rose-gold);
}

.offer-summary {
  width: 100%;
  margin: 0 0 27px;
  padding: 16px 17px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-cream);
  text-align: left;
}

.offer-summary span:nth-child(2) {
  display: grid;
  gap: 2px;
  flex: 1;
}

.offer-summary strong {
  font-size: 14px;
}

.offer-summary > b {
  color: var(--deep-rose-gold);
  font-size: 23px;
}

.icon-box {
  width: 38px;
  height: 38px;
  border: 1px solid var(--dusty-pink);
  border-radius: 10px;
  background: var(--soft-dusty-pink);
  color: var(--deep-rose-gold);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.dashboard-grid {
  gap: 30px;
}

.chips {
  display: flex;
  gap: 7px;
  overflow: auto;
  padding-bottom: 3px;
}

.chip,
.btn,
.text-btn {
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--warm-border);
  border-radius: 9px;
  background: var(--surface-cream);
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.chip.active,
.btn.primary {
  border-color: var(--deep-rose-gold);
  background: var(--deep-rose-gold);
  color: var(--surface-cream);
}

.btn.danger {
  border-color: var(--dusty-pink);
  color: var(--deep-rose-gold);
}

.text-btn {
  min-height: 34px;
  padding: 5px 4px;
  border-color: transparent;
  background: transparent;
  color: var(--deep-rose-gold);
}

.queue {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.queue-item {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 11px;
  align-items: start;
  padding: 13px 0;
  border-bottom: 1px solid var(--warm-border);
}

.queue-item p {
  margin: 2px 0 6px;
  color: var(--muted);
  font-size: 13px;
}

.queue-item time,
.conversation-item time {
  color: var(--muted);
  font-size: 11px;
}

.conversation-item {
  width: 100%;
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border: 0;
  border-bottom: 1px solid var(--warm-border);
  background: var(--surface-cream);
  color: var(--charcoal);
  text-align: left;
}

.conversation-item.selected {
  padding-left: 10px;
  border-left: 4px solid var(--deep-rose-gold);
  background: var(--soft-dusty-pink);
}

.conversation-item:last-child {
  border-bottom: 0;
}

.conversation-item .queue-copy {
  display: grid;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.conversation-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-item em {
  color: var(--deep-rose-gold);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.person {
  flex: 0 0 39px;
  width: 39px;
  height: 39px;
  border: 1px solid var(--warm-border);
  border-radius: 50%;
  background: var(--secondary-cream);
  color: var(--charcoal);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.booking-list,
.offer-grid {
  display: grid;
  gap: 14px;
}

.booking,
.offer-card {
  padding: 18px;
}

.booking {
  border-top: 3px solid var(--dusty-pink);
}

.offer-card {
  border-top: 3px solid var(--rose-gold);
}

.booking-top,
.offer-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.booking-top > div,
.offer-top > div:first-child {
  min-width: 0;
}

.booking-top span {
  color: var(--muted);
  font-size: 13px;
}

.booking dl,
.offer-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin: 17px 0;
}

.booking dt {
  color: var(--muted);
  font-size: 11px;
}

.booking dd {
  margin: 2px 0 0;
  color: var(--charcoal);
  font-weight: 700;
}

.source {
  margin-bottom: 12px;
  padding: 12px;
  border-left: 3px solid var(--dusty-pink);
  background: var(--secondary-cream);
  color: var(--charcoal);
  font-size: 13px;
}

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

.booking-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.booking-actions .btn {
  width: 100%;
  min-height: 44px;
}

.booking-review-area {
  display: grid;
  gap: 9px;
}

.review-hint {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.review-feedback,
.decision-complete,
.booking-notice {
  border: 1px solid var(--warm-border);
  border-radius: 10px;
  background: var(--secondary-cream);
}

.review-feedback,
.decision-complete {
  padding: 12px;
}

.review-feedback {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 9px;
  align-items: start;
}

.review-feedback strong,
.decision-complete strong,
.booking-notice strong {
  color: var(--ink);
  font-size: 13px;
}

.review-feedback p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.review-feedback.pending,
.review-feedback.warning {
  border-color: var(--dusty-pink);
  background: var(--soft-dusty-pink);
}

.review-feedback.error {
  border-color: var(--deep-rose-gold);
  background: var(--surface-cream);
}

.review-feedback.success,
.booking-notice.success {
  border-color: var(--rose-gold);
  background: var(--page-cream);
}

.review-feedback-actions {
  grid-column: 2;
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.review-spinner {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border: 2px solid var(--dusty-pink);
  border-top-color: var(--deep-rose-gold);
  border-radius: 50%;
  animation: review-spin 0.8s linear infinite;
}

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

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

.decision-complete {
  display: grid;
  gap: 2px;
}

.decision-complete span {
  color: var(--muted);
  font-size: 12px;
}

.booking-notice {
  margin-bottom: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.booking-notice span {
  color: var(--muted);
  font-size: 12px;
}

.review-modal {
  padding: 14px;
}

.review-dialog {
  border: 1px solid var(--warm-border);
}

.review-dialog > p {
  margin: -4px 0 16px;
  color: var(--muted);
  font-size: 13px;
}

.review-dialog .form-grid label span {
  color: var(--muted);
  font-weight: 500;
}

.review-dialog footer {
  margin-top: 14px;
}

.btn.danger.confirm-reject {
  border-color: var(--deep-rose-gold);
  background: var(--deep-rose-gold);
  color: var(--surface-cream);
}

.messages-layout {
  display: grid;
  gap: 14px;
}

.conversation-panel {
  min-height: 420px;
  overflow: hidden;
}

.search {
  width: calc(100% - 28px);
  margin: 14px;
  padding: 11px 12px;
  border: 1px solid var(--warm-border);
  border-radius: 9px;
  background: var(--surface-cream);
  color: var(--ink);
}

.conversation-panel .chips {
  padding: 0 14px 10px;
}

.thread-panel {
  display: none;
  min-height: 560px;
}

.thread-open .conversation-panel {
  display: none;
}

.thread-open .thread-panel {
  display: flex;
  flex-direction: column;
}

.thread-head {
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--warm-border);
  background: var(--secondary-cream);
}

.thread-head > div {
  display: grid;
}

.back,
.icon-close {
  min-width: 40px;
  min-height: 40px;
  padding: 3px;
  border: 0;
  background: transparent;
  color: var(--charcoal);
  font-size: 23px;
}

.ownership {
  margin: 13px;
  padding: 12px;
  border: 1px solid var(--dusty-pink);
  border-radius: 10px;
  background: var(--soft-dusty-pink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ownership span {
  display: grid;
  gap: 4px;
}

.thread {
  padding: 17px;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  background: var(--surface-cream);
}

.bubble {
  max-width: 84%;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--charcoal);
  font-size: 14px;
}

.bubble.customer {
  align-self: flex-start;
  border-color: var(--warm-border);
  background: var(--secondary-cream);
}

.bubble.ai {
  align-self: flex-end;
  border-color: var(--dusty-pink);
  background: var(--soft-dusty-pink);
}

.bubble.operator {
  align-self: flex-end;
  background: var(--ink);
  color: var(--surface-cream);
}

.bubble small {
  display: block;
  margin-top: 4px;
  opacity: 0.7;
}

.composer {
  padding: 13px;
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--warm-border);
  background: var(--secondary-cream);
}

.composer input {
  min-width: 0;
  flex: 1;
  padding: 10px;
  border: 1px solid var(--warm-border);
  border-radius: 9px;
}

.offer-top > div:last-child {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.enabled {
  color: var(--charcoal);
  font-weight: 800;
}

.offer-top p {
  margin-top: 4px;
  font-size: 13px;
}

.offer-meta {
  margin: 15px 0 13px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.offer-meta .text-btn {
  justify-self: end;
}

.offer-details {
  margin-bottom: 13px;
  padding-top: 13px;
  border-top: 1px solid var(--warm-border);
  font-size: 13px;
}

.offer-details strong {
  color: var(--charcoal);
  font-size: 12px;
}

.offer-details p {
  margin: 3px 0 11px;
}

.customer-preview {
  padding: 12px;
  border: 1px solid var(--dusty-pink);
  border-left: 3px solid var(--rose-gold);
  border-radius: 8px;
  background: var(--page-cream);
}

.more-list {
  display: grid;
  gap: 11px;
}

.more-row {
  width: 100%;
  min-height: 72px;
  padding: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-cream);
  color: var(--charcoal);
  text-align: left;
}

.more-row span {
  display: grid;
  gap: 3px;
}

.bottom-nav {
  height: 72px;
  padding: 6px 8px 7px;
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 6;
  border-top: 1px solid var(--warm-border);
  background: rgba(255, 253, 252, 0.98);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  box-shadow: 0 -9px 26px rgba(58, 51, 50, 0.055);
}

.nav-btn {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 700;
}

.nav-btn.active {
  background: var(--soft-dusty-pink);
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--deep-rose-gold);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: rgba(28, 25, 25, 0.42);
  display: flex;
  align-items: flex-end;
}

.editor {
  width: 100%;
  max-height: 92vh;
  padding: 21px;
  overflow: auto;
  border-radius: 20px 20px 0 0;
  background: var(--surface-cream);
  box-shadow: 0 -12px 40px rgba(28, 25, 25, 0.16);
}

.editor header {
  margin-bottom: 16px;
  display: flex;
  align-items: start;
  justify-content: space-between;
}

.editor h2 {
  margin: 3px 0 0;
  font-size: 24px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-grid label {
  display: grid;
  gap: 5px;
  color: var(--charcoal);
  font-size: 12px;
  font-weight: 800;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--warm-border);
  border-radius: 9px;
  background: var(--surface-cream);
  color: var(--ink);
}

.form-grid textarea {
  min-height: 74px;
  resize: vertical;
}

.form-grid .toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-grid .toggle input {
  width: auto;
}

.validation {
  min-height: 20px;
  margin: 10px 0;
  color: var(--deep-rose-gold);
  font-size: 13px;
  font-weight: 700;
}

.editor footer {
  padding-top: 5px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.empty {
  padding: 42px 20px;
  color: var(--muted);
  text-align: center;
}

.empty p {
  margin: 5px 0;
}

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

.state-page {
  min-height: calc(100vh - 74px);
  padding: 30px 18px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 22%, rgba(240, 221, 218, 0.62) 0, rgba(240, 221, 218, 0) 38%),
    var(--page-cream);
}

.state-card {
  width: min(480px, 100%);
  padding: 40px;
  border: 1px solid var(--warm-border);
  border-radius: 20px;
  background: var(--surface-cream);
  text-align: center;
  box-shadow: var(--shadow-raised);
}

.state-card h1 {
  margin: 9px 0 12px;
  color: var(--ink);
  font-size: 31px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.state-card p {
  max-width: 395px;
  margin: 0 auto 22px;
  color: var(--muted);
}

.auth-form {
  max-width: 360px;
  margin: 0 auto;
  display: grid;
  gap: 9px;
  text-align: left;
}

.auth-form label {
  margin-top: 4px;
  color: var(--charcoal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.auth-form input {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--warm-border);
  border-radius: 9px;
  background: var(--page-cream);
  color: var(--ink);
  font: inherit;
}

.auth-form input:hover {
  border-color: var(--dusty-pink);
}

.auth-submit {
  width: 100%;
  min-height: 46px;
  margin-top: 9px;
}

.auth-link {
  justify-self: center;
}

.auth-hint {
  margin: 2px 0 4px !important;
  color: var(--muted);
  font-size: 12px;
  text-align: left;
}

.auth-error {
  padding: 10px 12px;
  border: 1px solid var(--dusty-pink);
  border-radius: 9px;
  background: var(--soft-dusty-pink);
  color: var(--deep-rose-gold);
  font-size: 12px;
  font-weight: 700;
}

.state-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 19px;
  border: 1px solid var(--deep-rose-gold);
  border-radius: 12px;
  background: var(--deep-rose-gold);
  color: var(--surface-cream);
  display: grid;
  place-items: center;
  font-size: 21px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(142, 81, 74, 0.15);
}

.branch-picker {
  display: none;
}

.branch-picker select {
  max-width: 180px;
  padding: 8px 30px 8px 10px;
  border: 1px solid var(--warm-border);
  border-radius: 9px;
  background: var(--surface-cream);
  color: var(--charcoal);
  font-size: 12px;
  font-weight: 700;
}

.conversation-search {
  padding: 14px;
  display: flex;
  gap: 7px;
}

.conversation-search .search {
  width: auto;
  min-width: 0;
  margin: 0;
  flex: 1;
}

.conversation-flags {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.conversation-item.static {
  cursor: default;
}

.read-only-note {
  padding: 11px 12px;
  border: 1px solid var(--warm-border);
  border-radius: 9px;
  background: var(--secondary-cream);
  color: var(--muted);
  font-size: 12px;
}

.read-only-note span {
  margin-right: 4px;
  color: var(--ink);
  font-weight: 800;
}

.disabled-composer {
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.disabled-composer .btn:disabled,
.ownership .btn:disabled {
  border-style: dashed;
  border-color: var(--rose-gold);
  color: var(--charcoal);
}

.offer-description {
  margin-top: 12px !important;
}

.sign-out {
  margin-top: 18px;
}

.thread-panel.active {
  display: flex;
  flex-direction: column;
}

.messages-layout:not(.thread-open) .thread-panel {
  display: none;
}

.messages-layout:not(.thread-open) .thread-panel.active {
  display: flex;
}

.empty .empty {
  padding: 10px;
}

.topbar > * {
  min-width: 0;
}

@media (max-width: 420px) {
  .topbar {
    padding: 0 14px;
  }

  .brand strong {
    font-size: 13px;
  }

  .avatar {
    width: 32px;
    height: 32px;
  }

  .state-card {
    padding: 31px 22px;
  }

  .state-card h1 {
    font-size: 28px;
  }

  .stats {
    gap: 8px;
  }

  .stat {
    min-height: 86px;
    padding: 12px 10px;
  }

  .stat span {
    font-size: 11px;
  }

  .queue-item {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .queue-item time {
    grid-column: 2;
  }

  .booking dl {
    grid-template-columns: 1fr;
  }

  .conversation-item time {
    display: none;
  }

  .content {
    overflow-x: clip;
  }

  .offer-top {
    align-items: flex-start;
  }
}

@media (min-width: 850px) {
  .topbar {
    gap: 16px;
    padding: 0 34px;
  }

  .desktop-nav {
    display: flex;
  }

  .desktop-nav {
    gap: 4px;
  }

  .desktop-nav .nav-btn {
    min-height: 42px;
    padding: 9px 13px;
    display: flex;
    align-items: center;
    font-size: 13px;
  }

  .bottom-nav {
    display: none;
  }

  .content {
    padding: 38px 34px 52px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .dashboard-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
    align-items: start;
  }

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

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

  .messages-layout {
    height: calc(100vh - 151px);
    grid-template-columns: 380px minmax(0, 1fr);
  }

  .messages-layout .conversation-panel {
    display: block;
    overflow: auto;
  }

  .messages-layout .thread-panel {
    display: flex;
    flex-direction: column;
  }

  .thread-open .conversation-panel {
    display: block;
  }

  .thread-panel {
    min-height: 0;
  }

  .thread {
    overflow: auto;
  }

  .back {
    display: none;
  }

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

  .modal-backdrop {
    padding: 28px;
    align-items: center;
    justify-content: center;
  }

  .editor {
    width: min(760px, 100%);
    max-height: 88vh;
    border-radius: 20px;
  }

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

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

  .branch-picker {
    flex: 0 0 auto;
    display: block;
  }

  .messages-layout:not(.thread-open) .thread-panel,
  .messages-layout:not(.thread-open) .thread-panel.active {
    display: flex;
  }

  .conversation-search {
    padding-bottom: 10px;
  }

  .state-card {
    padding: 49px;
  }
}

@media (min-width: 1120px) {
  .context {
    display: block;
  }
}

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

@media (max-width: 420px) {
  .booking-notice {
    align-items: flex-start;
    flex-direction: column;
  }

  .review-dialog footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .review-dialog footer .btn {
    width: 100%;
  }
}

@media (min-width: 850px) {
  .booking-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-dialog {
    width: min(560px, 100%);
  }
}


/* Luminous Rose 2.0, Phase B1 authentication and entry experience. */
.luminous-splash,
.auth-experience {
  min-height: 100dvh;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  font-family: var(--font-ui);
}

.luminous-splash {
  display: grid;
  place-items: center;
  isolation: isolate;
  background: var(--gradient-splash);
  color: var(--color-pearl);
}

.luminous-splash::before {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 113, 99, 0.18), transparent 29%),
    radial-gradient(circle at 78% 72%, rgba(215, 181, 109, 0.1), transparent 24%);
  animation: luminous-drift 6s var(--ease-standard, cubic-bezier(0.22, 1, 0.36, 1)) infinite alternate;
}

.luminous-splash::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(18, 8, 15, 0.08), rgba(18, 8, 15, 0.34));
  pointer-events: none;
}

.splash-light {
  width: 340px;
  height: 340px;
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.22;
  pointer-events: none;
}

.splash-light-one {
  top: -120px;
  right: -100px;
  background: var(--color-brand-coral);
}

.splash-light-two {
  bottom: -150px;
  left: -120px;
  background: var(--color-brand-deep);
}

.splash-content {
  width: min(460px, calc(100% - 48px));
  display: grid;
  justify-items: center;
  text-align: center;
}

.splash-mark-wrap {
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  background: rgba(41, 24, 34, 0.42);
  box-shadow: 0 22px 70px rgba(232, 75, 106, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(var(--blur-standard));
  backdrop-filter: blur(var(--blur-standard));
}

.splash-mark-wrap img {
  width: 88px;
  height: 88px;
  filter: drop-shadow(0 10px 24px rgba(255, 113, 99, 0.22));
}

.splash-wordmark {
  margin-top: 24px;
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 520;
  letter-spacing: -0.04em;
}

.splash-wordmark strong {
  color: var(--color-brand-coral);
  font-weight: 650;
}

.splash-progress {
  width: min(320px, 78vw);
  height: 4px;
  margin-top: 62px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.splash-progress-fill {
  width: 44%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--gradient-brand);
  box-shadow: 0 0 18px rgba(255, 113, 99, 0.62);
  animation: luminous-progress 1.55s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}

.splash-content p {
  margin: 22px 0 0;
  color: rgba(255, 253, 252, 0.76);
  font-size: 15px;
  letter-spacing: 0.01em;
}

.auth-experience {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(520px, 0.92fr);
  background: var(--color-plum);
}

.auth-visual {
  min-width: 0;
  position: relative;
  isolation: isolate;
  background-color: var(--color-plum);
  background-image: url("/assets/auth-salon.webp");
  background-position: center center;
  background-size: cover;
}

.auth-visual-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(24, 12, 20, 0.22), rgba(24, 12, 20, 0.08) 52%, rgba(24, 12, 20, 0.76)),
    linear-gradient(180deg, rgba(24, 12, 20, 0.18), rgba(24, 12, 20, 0.46));
}

.auth-visual-brand,
.auth-visual-copy {
  position: absolute;
  left: clamp(34px, 5vw, 76px);
  right: clamp(34px, 5vw, 76px);
}

.auth-visual-brand {
  top: clamp(34px, 6vh, 64px);
}

.auth-visual-copy {
  bottom: clamp(42px, 8vh, 86px);
  max-width: 540px;
  display: grid;
  gap: 12px;
  color: var(--color-pearl);
  text-shadow: 0 2px 20px rgba(18, 8, 15, 0.45);
}

.auth-visual-copy span {
  color: var(--color-brand-coral);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-visual-copy strong {
  font-size: clamp(27px, 3vw, 44px);
  font-weight: 620;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-ink);
  font-size: 20px;
  font-weight: 560;
  letter-spacing: -0.035em;
}

.brand-lockup img {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
}

.brand-lockup b {
  color: var(--color-brand-primary);
  font-weight: 650;
}

.brand-lockup.inverse {
  color: var(--color-pearl);
  font-size: 23px;
}

.brand-lockup.inverse img {
  width: 56px;
  height: 56px;
}

.brand-lockup.inverse b {
  color: var(--color-brand-coral);
}

.auth-panel-zone {
  min-width: 0;
  padding: clamp(28px, 5vw, 80px);
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 88% 16%, rgba(255, 113, 99, 0.24), transparent 28%),
    radial-gradient(circle at 12% 82%, rgba(201, 54, 88, 0.18), transparent 32%),
    var(--gradient-login);
}

.auth-panel-zone::before {
  content: "";
  width: 320px;
  height: 320px;
  position: absolute;
  right: -100px;
  bottom: -120px;
  z-index: -1;
  border-radius: 50%;
  background: rgba(255, 113, 99, 0.15);
  filter: blur(80px);
}

.glass-surface {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(41, 24, 34, 0.7);
  -webkit-backdrop-filter: blur(var(--blur-strong)) saturate(125%);
  backdrop-filter: blur(var(--blur-strong)) saturate(125%);
  box-shadow: var(--shadow-4), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.auth-panel {
  width: min(520px, 100%);
  padding: clamp(32px, 4.2vw, 54px);
  border-radius: var(--radius-sheet);
  color: var(--color-pearl);
}

.auth-mobile-brand {
  display: none;
  margin-bottom: 32px;
}

.auth-panel .state-icon {
  width: 48px;
  height: 48px;
  margin: 0 0 20px;
  border: 1px solid rgba(255, 113, 99, 0.42);
  border-radius: 15px;
  background: rgba(232, 75, 106, 0.13);
  color: var(--color-brand-coral);
  box-shadow: 0 14px 34px rgba(232, 75, 106, 0.12);
  font-size: 22px;
}

.auth-panel[data-passive="true"] .state-icon {
  display: none;
}

.auth-panel .eyebrow {
  color: var(--color-brand-coral);
  font-size: 11px;
  letter-spacing: 0.13em;
}

.auth-panel h1 {
  margin: 9px 0 10px;
  color: var(--color-pearl);
  font-family: var(--font-ui);
  font-size: clamp(30px, 3.1vw, 42px);
  font-weight: 630;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.auth-panel .auth-copy {
  max-width: 430px;
  margin: 0 0 28px;
  color: rgba(255, 253, 252, 0.72);
  font-size: 14px;
}

.auth-form {
  max-width: none;
  margin: 0;
  gap: 16px;
}

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

.auth-form .field > label {
  margin: 0;
  color: rgba(255, 253, 252, 0.88);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.field-control {
  min-height: 50px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  background: rgba(20, 12, 18, 0.32);
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.field-control:hover {
  border-color: rgba(255, 128, 111, 0.52);
}

.field-control:focus-within {
  border-color: var(--color-focus);
  background: rgba(20, 12, 18, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 128, 111, 0.2);
}

.field-control > span {
  width: 18px;
  color: rgba(255, 253, 252, 0.48);
  text-align: center;
  font-weight: 700;
}

.auth-form .field-control input {
  min-width: 0;
  min-height: 48px;
  padding: 0;
  flex: 1;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--color-pearl);
  box-shadow: none;
}

.auth-form .field-control input::placeholder {
  color: rgba(255, 253, 252, 0.34);
}

.password-toggle {
  min-width: 48px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: rgba(255, 253, 252, 0.7);
  font-size: 12px;
  font-weight: 650;
}

.auth-panel .btn,
.auth-panel .text-btn {
  min-height: 48px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 650;
}

.auth-panel .btn.primary {
  border-color: transparent;
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 12px 30px rgba(232, 75, 106, 0.24);
  transition: transform 120ms ease, filter 120ms ease, box-shadow 120ms ease;
}

.auth-panel .btn.primary:hover {
  filter: brightness(1.04) saturate(1.04);
  box-shadow: 0 15px 34px rgba(232, 75, 106, 0.3);
}

.auth-panel .btn.primary:active {
  transform: translateY(1px);
}

.auth-panel .btn.secondary {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-pearl);
}

.auth-panel .text-btn {
  color: var(--color-brand-coral);
}

.auth-panel .text-btn:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-panel button:focus-visible,
.auth-panel input:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

.auth-submit,
.full-width {
  width: 100%;
}

.auth-hint {
  margin: -4px 0 0 !important;
  color: rgba(255, 253, 252, 0.58);
  font-size: 12px;
}

.auth-error {
  padding: 11px 12px;
  border: 1px solid rgba(243, 186, 195, 0.46);
  border-radius: var(--radius-md);
  background: rgba(184, 58, 77, 0.18);
  color: #ffe9ed;
  font-size: 12px;
}

.auth-trust {
  margin-top: 28px;
  padding-top: 22px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 253, 252, 0.72);
}

.auth-trust > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 113, 99, 0.38);
  border-radius: 10px;
  color: var(--color-brand-coral);
}

.auth-trust > div {
  display: grid;
}

.auth-trust strong {
  color: var(--color-pearl);
  font-size: 12px;
}

.auth-trust small {
  color: rgba(255, 253, 252, 0.52);
  font-size: 11px;
}

@keyframes luminous-progress {
  from { transform: translateX(-50%); }
  to { transform: translateX(128%); }
}

@keyframes luminous-drift {
  from { transform: translate3d(-1.5%, -1%, 0) scale(0.98); }
  to { transform: translate3d(1.5%, 1%, 0) scale(1.02); }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass-surface,
  .splash-mark-wrap {
    background: rgba(41, 24, 34, 0.96);
  }
}

.force-no-blur .glass-surface,
.force-no-blur .splash-mark-wrap {
  background: rgba(41, 24, 34, 0.96);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

@media (max-width: 760px) {
  .auth-experience {
    display: block;
    background-color: var(--color-plum);
    background-image:
      linear-gradient(180deg, rgba(24, 12, 20, 0.62), rgba(24, 12, 20, 0.9)),
      url("/assets/auth-salon.webp");
    background-position: 42% center;
    background-size: cover;
  }

  .auth-visual {
    display: none;
  }

  .auth-panel-zone {
    min-height: 100dvh;
    min-height: 100vh;
    padding: max(22px, env(safe-area-inset-top)) 16px max(22px, env(safe-area-inset-bottom));
    background:
      radial-gradient(circle at 84% 10%, rgba(255, 113, 99, 0.25), transparent 27%),
      linear-gradient(180deg, rgba(41, 24, 34, 0.34), rgba(33, 19, 28, 0.72));
  }

  .auth-panel {
    padding: 28px 22px;
    border-radius: 22px;
  }

  .auth-mobile-brand {
    display: block;
  }

  .auth-mobile-brand .brand-lockup {
    color: var(--color-pearl);
    font-size: 19px;
  }

  .auth-panel h1 {
    font-size: 31px;
  }

  .auth-panel .state-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 17px;
  }

  .splash-content {
    transform: translateY(-2vh);
  }
}

@media (max-width: 390px) {
  .auth-panel-zone {
    padding-right: 14px;
    padding-left: 14px;
  }

  .auth-panel {
    padding: 25px 19px;
  }

  .auth-panel .auth-copy {
    margin-bottom: 22px;
  }

  .auth-trust {
    margin-top: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .luminous-splash::before,
  .splash-progress-fill,
  .auth-panel .btn.primary {
    animation: none;
    transition: none;
  }

  .splash-progress-fill {
    width: 58%;
    transform: none;
  }
}

/* Phase B2 authenticated shell. All shell styling is isolated under this root. */
.authenticated-shell {
  --shell-sidebar-width: 232px;
  --shell-header-height: 72px;
  --shell-mobile-header-height: 64px;
  --shell-mobile-nav-height: 74px;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: var(--shell-sidebar-width) minmax(0, 1fr);
  background:
    radial-gradient(circle at 84% 8%, rgba(232, 75, 106, 0.055), transparent 24rem),
    var(--color-canvas);
  color: var(--color-ink);
  font-family: var(--font-ui);
  isolation: isolate;
}

.authenticated-shell[data-shell-layout="mobile"] {
  display: block;
}

.authenticated-shell .shell-skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--color-pearl);
  color: var(--color-ink);
  box-shadow: var(--shadow-3);
  font-weight: 700;
  text-decoration: none;
  transition: transform 140ms ease;
}

.authenticated-shell .shell-skip-link:focus {
  transform: translateY(0);
}

.authenticated-shell .shell-icon {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.authenticated-shell .shell-sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 100dvh;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: visible;
  padding: 24px 16px 18px;
  color: rgba(255, 255, 255, 0.88);
  background:
    radial-gradient(circle at 20% 4%, rgba(255, 113, 99, 0.18), transparent 18rem),
    linear-gradient(170deg, #21131c 0%, #291822 52%, #1d1119 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 14px 0 34px rgba(25, 14, 21, 0.07);
}

.authenticated-shell .shell-sidebar-top,
.authenticated-shell .shell-sidebar-bottom {
  display: grid;
  gap: 24px;
}

.authenticated-shell .shell-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 6px;
  color: var(--color-pearl);
}

.authenticated-shell .shell-brand img {
  display: block;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 18px rgba(255, 113, 99, 0.18));
}

.authenticated-shell .shell-brand span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.authenticated-shell .shell-brand strong {
  color: var(--color-brand-coral);
  font-weight: 700;
}

.authenticated-shell .shell-navigation-desktop.desktop-nav {
  display: grid;
}

.authenticated-shell .shell-navigation-mobile.bottom-nav {
  display: grid;
}

.authenticated-shell .shell-main.content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.authenticated-shell .shell-navigation {
  display: grid;
  gap: 6px;
}

.authenticated-shell .shell-nav-item {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 620;
  text-align: left;
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.authenticated-shell .shell-nav-item:hover {
  color: var(--color-pearl);
  background: rgba(255, 255, 255, 0.055);
}

.authenticated-shell .shell-nav-item:active {
  transform: translateY(1px);
}

.authenticated-shell .shell-nav-item.is-active {
  position: relative;
  color: var(--color-pearl);
  border-color: rgba(255, 128, 111, 0.14);
  background: linear-gradient(90deg, rgba(232, 75, 106, 0.22), rgba(255, 113, 99, 0.08));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}

.authenticated-shell .shell-nav-item.is-active::before {
  content: "";
  position: absolute;
  inset: 8px auto 8px -1px;
  width: 3px;
  border-radius: 999px;
  background: var(--gradient-brand);
  box-shadow: 0 0 16px rgba(255, 113, 99, 0.52);
}

.authenticated-shell .shell-nav-item:focus-visible,
.authenticated-shell .shell-account-trigger:focus-visible,
.authenticated-shell .shell-menu-action:focus-visible,
.authenticated-shell .shell-branch-control:focus-within {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.authenticated-shell .shell-workspace-card {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.82);
}

.authenticated-shell .shell-workspace-card span,
.authenticated-shell .shell-account-copy,
.authenticated-shell .shell-context-chip span,
.authenticated-shell .shell-branch-control span {
  min-width: 0;
  display: grid;
}

.authenticated-shell .shell-workspace-card small,
.authenticated-shell .shell-account-copy small,
.authenticated-shell .shell-context-chip small,
.authenticated-shell .shell-branch-control small,
.authenticated-shell .shell-mobile-context small,
.authenticated-shell .shell-header-copy small {
  color: inherit;
  opacity: 0.62;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.authenticated-shell .shell-workspace-card strong,
.authenticated-shell .shell-workspace-card em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.authenticated-shell .shell-workspace-card strong {
  font-size: 12px;
  font-style: normal;
}

.authenticated-shell .shell-workspace-card em {
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
  font-style: normal;
}

.authenticated-shell .shell-account {
  position: relative;
  min-width: 0;
}

.authenticated-shell .shell-account-trigger {
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  text-align: left;
}

.authenticated-shell .shell-account-trigger:hover,
.authenticated-shell .shell-account.is-open .shell-account-trigger {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
}

.authenticated-shell .shell-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 128, 111, 0.34);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(232, 75, 106, 0.28), rgba(255, 113, 99, 0.1));
  color: var(--color-pearl);
  font-size: 11px;
  font-weight: 800;
}

.authenticated-shell .shell-account-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.authenticated-shell .shell-account-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: none;
  letter-spacing: 0;
}

.authenticated-shell .shell-account-chevron {
  width: 17px;
  height: 17px;
  transition: transform 140ms ease;
}

.authenticated-shell .shell-account.is-open .shell-account-chevron {
  transform: rotate(90deg);
}

.authenticated-shell .shell-account-menu {
  position: absolute;
  z-index: 80;
  left: 0;
  right: 0;
  bottom: calc(100% + 9px);
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(42, 24, 35, 0.94);
  box-shadow: var(--shadow-4);
  backdrop-filter: blur(var(--blur-standard));
  -webkit-backdrop-filter: blur(var(--blur-standard));
}

.authenticated-shell .shell-account-summary {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px 11px;
  color: rgba(255, 255, 255, 0.74);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.authenticated-shell .shell-account-summary span {
  display: grid;
  min-width: 0;
}

.authenticated-shell .shell-account-summary strong {
  font-size: 11px;
}

.authenticated-shell .shell-account-summary small {
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
}

.authenticated-shell .shell-menu-action {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: #ffc6ce;
  text-align: left;
}

.authenticated-shell .shell-menu-action:hover {
  background: rgba(232, 75, 106, 0.13);
}

.authenticated-shell .shell-stage {
  min-width: 0;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: var(--shell-header-height) minmax(0, 1fr);
}

.authenticated-shell .shell-app-header,
.authenticated-shell .shell-mobile-header {
  position: sticky;
  top: 0;
  z-index: 24;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(203, 200, 209, 0.7);
  background: rgba(255, 253, 252, 0.84);
  box-shadow: 0 8px 28px rgba(18, 18, 22, 0.035);
  backdrop-filter: blur(var(--blur-standard));
  -webkit-backdrop-filter: blur(var(--blur-standard));
}

.authenticated-shell .shell-app-header {
  min-height: var(--shell-header-height);
  gap: 18px;
  padding: 0 28px;
}

.authenticated-shell .shell-app-header-context {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.authenticated-shell .shell-context-chip,
.authenticated-shell .shell-branch-control {
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  border: 1px solid rgba(203, 200, 209, 0.74);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.66);
  color: var(--color-charcoal);
  box-shadow: var(--shadow-1);
}

.authenticated-shell .shell-context-chip strong,
.authenticated-shell .shell-branch-control select {
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--color-ink);
  font-size: 12px;
  font-weight: 700;
}

.authenticated-shell .shell-branch-control select {
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 20px 0 0;
  cursor: pointer;
}

.authenticated-shell .shell-status-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 4px rgba(22, 116, 84, 0.08);
}

.authenticated-shell .shell-header-copy {
  min-width: 0;
  display: grid;
  text-align: right;
}

.authenticated-shell .shell-header-copy strong {
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--color-charcoal);
  font-size: 12px;
}

.authenticated-shell .shell-main {
  min-width: 0;
  width: 100%;
  padding: 0;
  overflow-x: clip;
}

.authenticated-shell .shell-content-frame {
  width: min(1240px, 100%);
  min-width: 0;
  margin: 0 auto;
  padding: 30px 28px 56px;
}

.authenticated-shell .shell-state-content {
  display: grid;
  place-items: center;
}

.authenticated-shell .shell-state-card {
  width: min(620px, 100%);
  min-height: 330px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  margin: 8vh auto 0;
  padding: 36px;
  border: 1px solid rgba(203, 200, 209, 0.74);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 92% 4%, rgba(232, 75, 106, 0.09), transparent 14rem),
    rgba(255, 253, 252, 0.92);
  box-shadow: var(--shadow-2);
}

.authenticated-shell .shell-state-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(232, 75, 106, 0.18);
  border-radius: 18px;
  color: var(--color-brand-deep);
  background: var(--color-brand-mist);
}

.authenticated-shell .shell-state-icon .shell-icon {
  width: 27px;
  height: 27px;
}

.authenticated-shell .shell-state-kicker {
  margin: 0 0 5px;
  color: var(--color-brand-deep);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.authenticated-shell .shell-state-card h1 {
  margin: 0;
  color: var(--color-ink);
  font: 650 27px/1.22 var(--font-ui);
  letter-spacing: -0.025em;
}

.authenticated-shell .shell-state-card p:not(.shell-state-kicker) {
  max-width: 46ch;
  margin: 10px 0 0;
  color: var(--color-slate);
}

.authenticated-shell .shell-state-card .btn {
  margin-top: 20px;
}

.authenticated-shell .shell-state-access-denied .shell-state-icon,
.authenticated-shell .shell-state-error .shell-state-icon {
  color: var(--color-error);
  border-color: rgba(184, 58, 77, 0.18);
  background: #fdecef;
}

.authenticated-shell .shell-state-icon.is-spinning .shell-icon {
  animation: shell-spin 900ms linear infinite;
}

.authenticated-shell .shell-mobile-header {
  min-height: var(--shell-mobile-header-height);
  gap: 9px;
  padding: 0 14px;
}

.authenticated-shell .shell-mobile-header .shell-brand {
  padding: 0;
}

.authenticated-shell .shell-mobile-header .shell-brand span {
  display: none;
}

.authenticated-shell .shell-mobile-context {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
}

.authenticated-shell .shell-mobile-branch select {
  min-width: 0;
  max-width: 100%;
  border: 0;
  outline: 0;
  padding: 0 18px 0 0;
  background: transparent;
  color: var(--color-ink);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
}

.authenticated-shell .shell-mobile-branch:focus-within {
  border-radius: var(--radius-sm);
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.authenticated-shell .shell-mobile-context strong,
.authenticated-shell .shell-mobile-context small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.authenticated-shell .shell-mobile-context strong {
  color: var(--color-ink);
  font-size: 12px;
}

.authenticated-shell .shell-mobile-header .shell-account {
  flex: 0 0 auto;
}

.authenticated-shell .shell-mobile-header .shell-account-trigger {
  width: 44px;
  min-height: 44px;
  display: grid;
  grid-template-columns: 1fr;
  padding: 3px;
}

.authenticated-shell .shell-mobile-header .shell-account-copy,
.authenticated-shell .shell-mobile-header .shell-account-chevron {
  display: none;
}

.authenticated-shell .shell-mobile-header .shell-account-menu {
  left: auto;
  right: 0;
  bottom: auto;
  top: calc(100% + 9px);
  width: 248px;
  background: rgba(42, 24, 35, 0.96);
}

.authenticated-shell .shell-navigation-mobile {
  position: fixed;
  z-index: 35;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: calc(var(--shell-mobile-nav-height) + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
  padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(203, 200, 209, 0.72);
  background: rgba(255, 253, 252, 0.9);
  box-shadow: 0 -12px 30px rgba(18, 18, 22, 0.07);
  backdrop-filter: blur(var(--blur-standard));
  -webkit-backdrop-filter: blur(var(--blur-standard));
}

.authenticated-shell .shell-navigation-mobile .shell-nav-item {
  min-width: 0;
  min-height: 54px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  padding: 4px 2px;
  border-radius: 12px;
  color: var(--color-text-muted);
  font-size: 10px;
  font-weight: 650;
  text-align: center;
}

.authenticated-shell .shell-navigation-mobile .shell-nav-item:hover {
  color: var(--color-charcoal);
  background: var(--color-brand-mist);
}

.authenticated-shell .shell-navigation-mobile .shell-nav-item.is-active {
  color: var(--color-pearl);
  border-color: transparent;
  background: linear-gradient(145deg, var(--color-plum-elevated), var(--color-plum));
  box-shadow: 0 7px 18px rgba(41, 24, 34, 0.16);
}

.authenticated-shell .shell-navigation-mobile .shell-nav-item.is-active::before {
  display: none;
}

.authenticated-shell[data-shell-layout="mobile"] .shell-stage {
  min-height: 100dvh;
  grid-template-rows: var(--shell-mobile-header-height) minmax(0, 1fr);
}

.authenticated-shell[data-shell-layout="mobile"] .shell-main {
  padding-bottom: calc(var(--shell-mobile-nav-height) + env(safe-area-inset-bottom));
}

.authenticated-shell[data-shell-layout="mobile"] .shell-content-frame {
  padding: 22px 16px 34px;
}

.authenticated-shell[data-shell-layout="mobile"] .shell-state-card {
  min-height: 310px;
  grid-template-columns: 1fr;
  align-content: center;
  gap: 18px;
  margin-top: 28px;
  padding: 28px 22px;
}

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

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .authenticated-shell .shell-app-header,
  .authenticated-shell .shell-mobile-header,
  .authenticated-shell .shell-navigation-mobile {
    background: rgba(255, 253, 252, 0.98);
  }

  .authenticated-shell .shell-account-menu {
    background: #2a1823;
  }
}

@media (max-width: 1080px) and (min-width: 900px) {
  .authenticated-shell {
    --shell-sidebar-width: 208px;
  }

  .authenticated-shell .shell-brand {
    gap: 8px;
    padding-inline: 0;
  }

  .authenticated-shell .shell-brand img {
    width: 36px;
    height: 36px;
  }

  .authenticated-shell .shell-brand span {
    font-size: 12.5px;
    letter-spacing: -0.03em;
  }

  .authenticated-shell .shell-app-header {
    padding-inline: 22px;
  }

  .authenticated-shell .shell-header-copy {
    display: none;
  }
}

@media (max-width: 899px) {
  .authenticated-shell {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 420px) {
  .authenticated-shell[data-shell-layout="mobile"] .shell-content-frame {
    padding-inline: 14px;
  }

  .authenticated-shell .shell-navigation-mobile {
    padding-inline: 5px;
  }

  .authenticated-shell .shell-navigation-mobile .shell-nav-item {
    font-size: 9.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .authenticated-shell *,
  .authenticated-shell *::before,
  .authenticated-shell *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.authenticated-shell.force-no-blur .shell-app-header,
.authenticated-shell.force-no-blur .shell-mobile-header,
.authenticated-shell.force-no-blur .shell-navigation-mobile {
  background: rgba(255, 253, 252, 0.98);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.authenticated-shell.force-no-blur .shell-account-menu {
  background: #2a1823;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Phase B3 Today page. Presentation-only styling, isolated from every other operational page. */
.authenticated-shell .today-page {
  --today-rose-glow: rgba(232, 75, 106, 0.16);
  --today-coral-glow: rgba(255, 113, 99, 0.14);
  --today-plum-shadow: rgba(41, 24, 34, 0.14);
  display: grid;
  gap: 20px;
  color: var(--color-ink);
}

.authenticated-shell .today-page .today-hero {
  min-height: 240px;
  margin: 0;
  padding: 32px 34px;
  position: relative;
  overflow: hidden;
  align-items: stretch;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  background:
    radial-gradient(circle at 78% 14%, rgba(255, 113, 99, 0.34), transparent 31%),
    radial-gradient(circle at 62% 98%, rgba(232, 75, 106, 0.24), transparent 35%),
    linear-gradient(138deg, #21131c 0%, #3b2130 56%, #291822 100%);
  box-shadow: 0 26px 60px rgba(41, 24, 34, 0.2);
  isolation: isolate;
}

.authenticated-shell .today-page .today-hero::before {
  content: "";
  width: 360px;
  height: 360px;
  position: absolute;
  right: -120px;
  bottom: -220px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);
}

.authenticated-shell .today-page .today-hero::after {
  content: "";
  width: 180px;
  height: 1px;
  position: absolute;
  right: 24%;
  bottom: 35px;
  background: linear-gradient(90deg, transparent, rgba(215, 181, 109, 0.72), transparent);
  transform: rotate(-12deg);
}

.authenticated-shell .today-page .today-hero-copy {
  max-width: 640px;
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  justify-items: start;
}

.authenticated-shell .today-page .today-hero .eyebrow {
  color: #ffb0b5;
}

.authenticated-shell .today-page .today-hero h1 {
  max-width: 610px;
  margin: 6px 0 10px;
  color: var(--color-pearl);
  font-family: var(--font-ui);
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 720;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.authenticated-shell .today-page .today-hero p {
  max-width: 560px;
  color: rgba(255, 253, 252, 0.74);
  font-size: 15px;
}

.authenticated-shell .today-page .today-hero-context {
  min-height: 38px;
  margin-top: 24px;
  padding: 7px 11px 7px 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  color: rgba(255, 253, 252, 0.83);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.authenticated-shell .today-page .today-hero-context > span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: var(--color-pearl);
  display: grid;
  place-items: center;
}

.authenticated-shell .today-page .today-hero-context svg {
  width: 14px;
  height: 14px;
}

.authenticated-shell .today-page .today-hero-context strong {
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.01em;
}

.authenticated-shell .today-page .today-hero-context small {
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 253, 252, 0.54);
  font-size: 10px;
}

.authenticated-shell .today-page .today-status {
  position: absolute;
  z-index: 3;
  top: 26px;
  right: 26px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-pearl);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.authenticated-shell .today-page .today-status .dot {
  background: #ff8a83;
  box-shadow: 0 0 0 4px rgba(255, 138, 131, 0.12), 0 0 18px rgba(255, 138, 131, 0.8);
}

.authenticated-shell .today-page .today-status.is-loading .dot {
  animation: today-pulse 1.4s ease-in-out infinite;
}

.authenticated-shell .today-page .today-hero-visual {
  width: 230px;
  position: absolute;
  z-index: 1;
  top: 38px;
  right: 80px;
  bottom: 18px;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.authenticated-shell .today-page .today-hero-mark {
  width: 86px;
  height: 86px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.035));
  color: #ffb8b5;
  display: grid;
  place-items: center;
  box-shadow: 0 24px 50px rgba(18, 18, 22, 0.24), inset 0 1px rgba(255, 255, 255, 0.18);
  transform: rotate(-8deg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.authenticated-shell .today-page .today-hero-mark svg {
  width: 42px;
  height: 42px;
}

.authenticated-shell .today-page .today-orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.authenticated-shell .today-page .today-orbit-one {
  width: 172px;
  height: 172px;
}

.authenticated-shell .today-page .today-orbit-two {
  width: 218px;
  height: 104px;
  transform: rotate(-22deg);
}

.authenticated-shell .today-page .today-stats {
  margin: -48px 24px 0;
  position: relative;
  z-index: 4;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.authenticated-shell .today-page .today-stat {
  min-height: 126px;
  padding: 18px;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  align-content: center;
  gap: 14px;
  border: 1px solid rgba(227, 225, 231, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 19px;
  background: rgba(255, 253, 252, 0.9);
  box-shadow: 0 16px 38px rgba(41, 24, 34, 0.09), inset 0 1px rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.authenticated-shell .today-page .today-stat::after {
  content: "";
  width: 58px;
  height: 58px;
  position: absolute;
  top: -20px;
  right: -18px;
  border-radius: 50%;
  background: var(--today-rose-glow);
  filter: blur(20px);
  pointer-events: none;
}

.authenticated-shell .today-page .today-stat {
  position: relative;
  overflow: hidden;
}

.authenticated-shell .today-page .today-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--color-brand-mist);
  color: var(--color-brand-deep);
}

.authenticated-shell .today-page .today-stat-icon svg {
  width: 23px;
  height: 23px;
}

.authenticated-shell .today-page .today-stat > div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.authenticated-shell .today-page .today-stat strong {
  color: var(--color-plum);
  font-size: 34px;
  font-weight: 750;
  letter-spacing: -0.05em;
}

.authenticated-shell .today-page .today-stat span:last-child {
  color: var(--color-slate);
  font-size: 12px;
  font-weight: 670;
}

.authenticated-shell .today-page .today-stat.bookings .today-stat-icon {
  background: rgba(215, 181, 109, 0.17);
  color: #8a6421;
}

.authenticated-shell .today-page .today-stat.messages .today-stat-icon {
  background: rgba(54, 95, 184, 0.1);
  color: var(--color-info);
}

.authenticated-shell .today-page .today-command-row {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
  gap: 12px;
}

.authenticated-shell .today-page .today-ai-card,
.authenticated-shell .today-page .offer-summary {
  min-height: 108px;
  margin: 0;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: var(--color-pearl);
  box-shadow: var(--shadow-2);
}

.authenticated-shell .today-page .today-ai-card {
  padding: 20px;
  justify-content: flex-start;
  gap: 15px;
}

.authenticated-shell .today-page .today-ai-card > div {
  min-width: 0;
  flex: 1;
}

.authenticated-shell .today-page .today-ai-card h3 {
  margin-top: 3px;
  color: var(--color-plum);
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 720;
}

.authenticated-shell .today-page .today-ai-card p {
  margin-top: 2px;
  color: var(--color-slate);
  font-size: 12px;
}

.authenticated-shell .today-page .today-ai-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 15px;
  background: var(--gradient-brand);
  color: var(--color-pearl);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(232, 75, 106, 0.22);
}

.authenticated-shell .today-page .today-ai-icon svg {
  width: 24px;
  height: 24px;
}

.authenticated-shell .today-page .offer-summary {
  padding: 18px 20px;
  color: var(--color-charcoal);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.authenticated-shell .today-page .offer-summary:hover {
  border-color: rgba(232, 75, 106, 0.34);
  box-shadow: 0 16px 40px rgba(41, 24, 34, 0.1);
  transform: translateY(-2px);
}

.authenticated-shell .today-page .offer-summary:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

.authenticated-shell .today-page .offer-summary .icon-box {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 0;
  border-radius: 15px;
  background: var(--color-brand-mist);
  color: var(--color-brand-deep);
}

.authenticated-shell .today-page .offer-summary .icon-box svg {
  width: 23px;
  height: 23px;
}

.authenticated-shell .today-page .offer-summary strong {
  color: var(--color-plum);
  font-size: 13px;
  line-height: 1.35;
}

.authenticated-shell .today-page .offer-summary small {
  color: var(--color-text-muted);
  font-size: 11px;
}

.authenticated-shell .today-page .offer-summary > b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--color-brand-deep);
}

.authenticated-shell .today-page .offer-summary > b svg {
  width: 20px;
  height: 20px;
}

.authenticated-shell .today-page .today-dashboard-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 16px;
}

.authenticated-shell .today-page .today-panel {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--color-border);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 253, 252, 0.98), rgba(250, 250, 252, 0.94));
  box-shadow: var(--shadow-2);
}

.authenticated-shell .today-page .today-section-heading {
  min-height: 46px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.authenticated-shell .today-page .today-section-heading > span {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 14px;
  background: var(--color-brand-mist);
  color: var(--color-brand-deep);
  display: grid;
  place-items: center;
}

.authenticated-shell .today-page .today-section-heading svg {
  width: 20px;
  height: 20px;
}

.authenticated-shell .today-page .today-section-heading h2 {
  margin: 1px 0 0;
  color: var(--color-plum);
  font-family: var(--font-ui);
  font-size: 19px;
  font-weight: 730;
}

.authenticated-shell .today-page .today-section-heading .eyebrow {
  color: var(--color-brand-deep);
  font-size: 9px;
}

.authenticated-shell .today-page .today-queue-list,
.authenticated-shell .today-page .today-conversation-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.authenticated-shell .today-page .today-queue-list {
  gap: 9px;
}

.authenticated-shell .today-page .today-queue-list > li,
.authenticated-shell .today-page .today-conversation-list > li {
  min-width: 0;
}

.authenticated-shell .today-page .queue-item {
  min-height: 96px;
  padding: 15px;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: var(--color-pearl);
}

.authenticated-shell .today-page .queue-item:last-child {
  border-bottom: 1px solid var(--color-border);
}

.authenticated-shell .today-page .queue-item .icon-box {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(232, 75, 106, 0.1);
  color: var(--color-brand-deep);
}

.authenticated-shell .today-page .queue-item .icon-box svg {
  width: 21px;
  height: 21px;
}

.authenticated-shell .today-page .queue-item strong {
  color: var(--color-plum);
  font-size: 13px;
}

.authenticated-shell .today-page .queue-item p {
  color: var(--color-slate);
  line-height: 1.4;
}

.authenticated-shell .today-page .queue-item time,
.authenticated-shell .today-page .conversation-item time {
  color: var(--color-text-muted);
  font-size: 10px;
  text-align: right;
}

.authenticated-shell .today-page .today-conversation-list {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: var(--color-pearl);
  box-shadow: none;
}

.authenticated-shell .today-page .conversation-item {
  min-height: 76px;
  padding: 13px 14px;
  border-color: var(--color-border);
  background: transparent;
}

.authenticated-shell .today-page .conversation-item .person {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  border: 0;
  background: linear-gradient(145deg, var(--color-brand-soft), var(--color-brand-mist));
  color: var(--color-brand-deep);
}

.authenticated-shell .today-page .conversation-item strong {
  overflow: hidden;
  color: var(--color-plum);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.authenticated-shell .today-page .conversation-item small {
  color: var(--color-text-muted);
  font-size: 11px;
}

.authenticated-shell .today-page .empty {
  min-height: 150px;
  padding: 28px 20px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  color: var(--color-slate);
  text-align: center;
}

.authenticated-shell .today-page .empty strong {
  color: var(--color-plum);
}

.authenticated-shell .today-page .empty p {
  margin: 0;
  font-size: 12px;
}

.authenticated-shell .today-page .today-loading {
  display: grid;
  gap: 16px;
}

.authenticated-shell .today-page .today-loading > p {
  margin: 0;
  color: var(--color-slate);
  font-size: 12px;
  text-align: center;
}

.authenticated-shell .today-page .today-skeleton-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 16px;
}

.authenticated-shell .today-page .today-skeleton-card {
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-rows: auto auto;
}

.authenticated-shell .today-page .today-skeleton-panel {
  min-height: 190px;
  padding: 24px;
  display: grid;
  align-content: start;
  gap: 14px;
  border-color: var(--color-border);
  background: var(--color-pearl);
}

.authenticated-shell .today-page .today-skeleton {
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-surface-secondary), var(--color-brand-mist), var(--color-surface-secondary));
  background-size: 200% 100%;
  animation: today-shimmer 1.45s linear infinite;
}

.authenticated-shell .today-page .today-skeleton.square {
  width: 48px;
  height: 48px;
  grid-row: 1 / span 2;
  border-radius: 15px;
}

.authenticated-shell .today-page .today-skeleton.number {
  width: 64px;
  height: 28px;
}

.authenticated-shell .today-page .today-skeleton.line {
  width: 58%;
  height: 11px;
}

.authenticated-shell .today-page .today-skeleton.line.wide {
  width: 82%;
  height: 16px;
}

.authenticated-shell .today-page .today-skeleton.line.short {
  width: 38%;
}

.authenticated-shell .today-page .today-local-state {
  min-height: 270px;
  padding: 38px;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  border-color: var(--color-border);
  background: linear-gradient(135deg, var(--color-pearl), var(--color-brand-mist));
  box-shadow: var(--shadow-2);
}

.authenticated-shell .today-page .today-local-state-icon {
  width: 66px;
  height: 66px;
  border-radius: 20px;
  background: var(--gradient-brand);
  color: var(--color-pearl);
  display: grid;
  place-items: center;
  box-shadow: 0 16px 36px rgba(232, 75, 106, 0.22);
}

.authenticated-shell .today-page .today-local-state-icon svg {
  width: 30px;
  height: 30px;
}

.authenticated-shell .today-page .today-local-state h2 {
  margin: 4px 0 7px;
  color: var(--color-plum);
  font-family: var(--font-ui);
  font-size: 24px;
}

.authenticated-shell .today-page .today-local-state p {
  margin: 0;
  color: var(--color-slate);
}

.authenticated-shell .today-page .today-local-state .btn {
  min-height: 44px;
  padding-inline: 18px;
  border-color: transparent;
  border-radius: 12px;
  background: var(--gradient-brand);
  color: var(--color-pearl);
}

@keyframes today-shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

@keyframes today-pulse {
  from { opacity: 0.48; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1.08); }
}

@media (max-width: 1080px) {
  .authenticated-shell .today-page .today-command-row,
  .authenticated-shell .today-page .today-dashboard-grid,
  .authenticated-shell .today-page .today-skeleton-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .authenticated-shell .today-page .today-hero-visual {
    right: 20px;
    opacity: 0.7;
  }
}

@media (max-width: 720px) {
  .authenticated-shell .today-page {
    gap: 14px;
  }

  .authenticated-shell .today-page .today-hero {
    min-height: 254px;
    padding: 26px 22px;
    border-radius: 22px;
  }

  .authenticated-shell .today-page .today-hero h1 {
    max-width: 270px;
    margin-top: 7px;
    font-size: 38px;
    line-height: 1.02;
  }

  .authenticated-shell .today-page .today-hero p {
    max-width: 275px;
    padding-right: 10px;
    font-size: 13px;
  }

  .authenticated-shell .today-page .today-hero-context {
    max-width: 270px;
    margin-top: 20px;
  }

  .authenticated-shell .today-page .today-hero-context small {
    display: none;
  }

  .authenticated-shell .today-page .today-hero-visual {
    width: 150px;
    top: 74px;
    right: -28px;
    bottom: 18px;
    opacity: 0.54;
  }

  .authenticated-shell .today-page .today-hero-mark {
    width: 62px;
    height: 62px;
    border-radius: 20px;
  }

  .authenticated-shell .today-page .today-hero-mark svg {
    width: 31px;
    height: 31px;
  }

  .authenticated-shell .today-page .today-orbit-one {
    width: 126px;
    height: 126px;
  }

  .authenticated-shell .today-page .today-orbit-two {
    width: 158px;
    height: 82px;
  }

  .authenticated-shell .today-page .today-status {
    top: 18px;
    right: 18px;
  }

  .authenticated-shell .today-page .today-stats {
    margin: -38px 12px 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .authenticated-shell .today-page .today-stat {
    min-height: 104px;
    padding: 13px 9px;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 7px;
    border-radius: 16px;
    text-align: center;
  }

  .authenticated-shell .today-page .today-stat-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .authenticated-shell .today-page .today-stat-icon svg {
    width: 17px;
    height: 17px;
  }

  .authenticated-shell .today-page .today-stat > div {
    justify-items: center;
    gap: 3px;
  }

  .authenticated-shell .today-page .today-stat strong {
    font-size: 26px;
  }

  .authenticated-shell .today-page .today-stat span:last-child {
    max-width: 86px;
    font-size: 9.5px;
    line-height: 1.2;
  }

  .authenticated-shell .today-page .today-ai-card,
  .authenticated-shell .today-page .offer-summary {
    min-height: 100px;
    border-radius: 18px;
  }

  .authenticated-shell .today-page .today-ai-card {
    padding: 16px;
    gap: 11px;
  }

  .authenticated-shell .today-page .today-ai-card .badge {
    display: none;
  }

  .authenticated-shell .today-page .today-ai-icon,
  .authenticated-shell .today-page .offer-summary .icon-box {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 13px;
  }

  .authenticated-shell .today-page .offer-summary {
    min-height: 92px;
    padding: 15px 16px;
  }

  .authenticated-shell .today-page .today-panel {
    padding: 17px;
    border-radius: 19px;
  }

  .authenticated-shell .today-page .today-section-heading {
    margin-bottom: 11px;
  }

  .authenticated-shell .today-page .queue-item {
    grid-template-columns: 38px minmax(0, 1fr);
    min-height: 104px;
    padding: 13px;
  }

  .authenticated-shell .today-page .queue-item time {
    grid-column: 2;
    text-align: left;
  }

  .authenticated-shell .today-page .conversation-item time {
    display: none;
  }

  .authenticated-shell .today-page .today-local-state {
    min-height: 300px;
    padding: 28px 22px;
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 16px;
  }
}

@media (max-width: 390px) {
  .authenticated-shell .today-page .today-hero {
    padding-inline: 19px;
  }

  .authenticated-shell .today-page .today-hero h1 {
    font-size: 35px;
  }

  .authenticated-shell .today-page .today-stat {
    padding-inline: 6px;
  }

  .authenticated-shell .today-page .today-stat span:last-child {
    font-size: 9px;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .authenticated-shell .today-page .today-hero-context,
  .authenticated-shell .today-page .today-status,
  .authenticated-shell .today-page .today-hero-mark,
  .authenticated-shell .today-page .today-stat {
    background-color: var(--color-pearl);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .authenticated-shell .today-page .today-hero-context,
  .authenticated-shell .today-page .today-status,
  .authenticated-shell .today-page .today-hero-mark {
    background-color: rgba(59, 33, 48, 0.96);
  }
}

@media (prefers-reduced-motion: reduce) {
  .authenticated-shell .today-page .today-skeleton,
  .authenticated-shell .today-page .today-status.is-loading .dot {
    animation: none;
  }

  .authenticated-shell .today-page .offer-summary {
    transition: none;
  }
}

.authenticated-shell.force-no-blur .today-page .today-hero-context,
.authenticated-shell.force-no-blur .today-page .today-status,
.authenticated-shell.force-no-blur .today-page .today-hero-mark,
.authenticated-shell.force-no-blur .today-page .today-stat {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Phase B4, Luminous Rose 2.0 Bookings and secure staff review experience. */
.authenticated-shell .bookings-page {
  --bookings-plum: #3b2130;
  --bookings-plum-deep: #291822;
  --bookings-coral: #e84b6a;
  --bookings-coral-bright: #ff7163;
  --bookings-coral-deep: #c93658;
  --bookings-gold: #d7b56d;
  --bookings-panel: rgba(255, 253, 252, 0.88);
  --bookings-soft: rgba(252, 239, 242, 0.86);
  --bookings-border: rgba(59, 33, 48, 0.10);
  display: grid;
  gap: 18px;
  width: 100%;
  min-width: 0;
  color: var(--color-text, #121216);
}

.authenticated-shell .bookings-page svg {
  width: 1.15em;
  height: 1.15em;
  display: block;
}

.authenticated-shell .bookings-page .bookings-hero {
  min-height: 218px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background:
    radial-gradient(circle at 76% 18%, rgba(255, 113, 99, 0.22), transparent 29%),
    radial-gradient(circle at 92% 83%, rgba(215, 181, 109, 0.12), transparent 25%),
    linear-gradient(118deg, #291822 0%, #3b2130 53%, #5a273b 100%);
  box-shadow: 0 22px 48px rgba(41, 24, 34, 0.17);
  color: #fffdfc;
}

.authenticated-shell .bookings-page .bookings-hero::before {
  content: "";
  width: 240px;
  height: 240px;
  position: absolute;
  top: -120px;
  right: 76px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 50%;
}

.authenticated-shell .bookings-page .bookings-hero-copy {
  max-width: 680px;
  position: relative;
  z-index: 2;
}

.authenticated-shell .bookings-page .bookings-hero .eyebrow {
  color: #ffb0ad;
}

.authenticated-shell .bookings-page .bookings-hero h1 {
  margin: 7px 0 8px;
  color: #fffdfc;
  font-family: var(--font-ui);
  font-size: clamp(2.1rem, 4vw, 3.35rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.authenticated-shell .bookings-page .bookings-hero p {
  max-width: 600px;
  color: rgba(255, 253, 252, 0.72);
  font-size: 0.93rem;
  line-height: 1.55;
}

.authenticated-shell .bookings-page .bookings-hero-context {
  width: fit-content;
  max-width: 100%;
  margin-top: 22px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.authenticated-shell .bookings-page .bookings-hero-context > span {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(255, 113, 99, 0.88), rgba(232, 75, 106, 0.74));
  color: #fffdfc;
}

.authenticated-shell .bookings-page .bookings-hero-context > div {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.authenticated-shell .bookings-page .bookings-hero-context strong {
  overflow: hidden;
  color: #fffdfc;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.authenticated-shell .bookings-page .bookings-hero-context small {
  color: rgba(255, 253, 252, 0.58);
  font-size: 0.68rem;
}

.authenticated-shell .bookings-page .bookings-hero-visual {
  width: 186px;
  height: 186px;
  position: absolute;
  top: 20px;
  right: 28px;
  z-index: 0;
  display: grid;
  place-items: center;
}

.authenticated-shell .bookings-page .bookings-orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.authenticated-shell .bookings-page .bookings-orbit-one {
  width: 152px;
  height: 152px;
}

.authenticated-shell .bookings-page .bookings-orbit-two {
  width: 104px;
  height: 104px;
  border-color: rgba(255, 113, 99, 0.24);
  transform: translate(22px, -11px);
}

.authenticated-shell .bookings-page .bookings-hero-mark {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 113, 99, 0.14));
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 16px 34px rgba(18, 18, 22, 0.22);
  color: #ffb0ad;
  transform: rotate(-7deg);
}

.authenticated-shell .bookings-page .bookings-hero-mark svg {
  width: 32px;
  height: 32px;
}

.authenticated-shell .bookings-page .bookings-status {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.09);
  color: #fffdfc;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.authenticated-shell .bookings-page .bookings-status .dot {
  background: #ff806f;
  box-shadow: 0 0 0 4px rgba(255, 128, 111, 0.12);
}

.authenticated-shell .bookings-page .booking-notice {
  margin: 0;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border: 1px solid rgba(22, 116, 84, 0.18);
  border-radius: 16px;
  background: rgba(237, 249, 244, 0.9);
  box-shadow: 0 12px 28px rgba(41, 24, 34, 0.07);
}

.authenticated-shell .bookings-page .booking-notice-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #167454;
  color: #fffdfc;
}

.authenticated-shell .bookings-page .booking-notice > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.authenticated-shell .bookings-page .booking-notice strong {
  color: #164f3c;
  font-size: 0.84rem;
}

.authenticated-shell .bookings-page .booking-notice span:not(.booking-notice-icon) {
  color: #4f6c61;
  font-size: 0.75rem;
  line-height: 1.45;
}

.authenticated-shell .bookings-page .bookings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
}

.authenticated-shell .bookings-page .booking-card {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--bookings-border);
  border-radius: 22px;
  background: var(--bookings-panel);
  box-shadow: 0 14px 34px rgba(41, 24, 34, 0.08);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.authenticated-shell .bookings-page .booking-card:hover {
  border-color: rgba(232, 75, 106, 0.20);
  box-shadow: 0 20px 42px rgba(41, 24, 34, 0.11);
  transform: translateY(-2px);
}

.authenticated-shell .bookings-page .booking-card-header {
  padding: 19px 20px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(59, 33, 48, 0.07);
}

.authenticated-shell .bookings-page .booking-customer {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.authenticated-shell .bookings-page .booking-customer > div {
  min-width: 0;
}

.authenticated-shell .bookings-page .booking-avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(232, 75, 106, 0.16);
  border-radius: 16px;
  background: linear-gradient(145deg, #fceff2, #f7dde4);
  color: var(--bookings-coral-deep);
  font-size: 1rem;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.authenticated-shell .bookings-page .booking-card-kicker {
  display: block;
  margin-bottom: 3px;
  color: #898691;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.authenticated-shell .bookings-page .booking-card h2 {
  margin: 0;
  overflow: hidden;
  color: #121216;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.authenticated-shell .bookings-page .booking-card-header p {
  margin: 3px 0 0;
  overflow: hidden;
  color: #64616d;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.authenticated-shell .bookings-page .booking-card .badge {
  min-height: 27px;
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
}

.authenticated-shell .bookings-page .booking-card .badge.staff {
  border-color: rgba(232, 75, 106, 0.22);
  background: #fceff2;
  color: #b83a4d;
}

.authenticated-shell .bookings-page .booking-card .badge.customer {
  border-color: rgba(22, 116, 84, 0.18);
  background: rgba(237, 249, 244, 0.9);
  color: #167454;
}

.authenticated-shell .bookings-page .booking-time-focus {
  margin: 16px 20px 0;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(232, 75, 106, 0.11);
  border-radius: 16px;
  background:
    linear-gradient(120deg, rgba(252, 239, 242, 0.92), rgba(255, 253, 252, 0.78));
}

.authenticated-shell .bookings-page .booking-time-icon {
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, #e84b6a, #ff7163);
  color: #fffdfc;
  box-shadow: 0 9px 18px rgba(232, 75, 106, 0.18);
}

.authenticated-shell .bookings-page .booking-time-focus > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.authenticated-shell .bookings-page .booking-time-focus small {
  color: #898691;
  font-size: 0.65rem;
  font-weight: 700;
}

.authenticated-shell .bookings-page .booking-time-focus strong {
  overflow: hidden;
  color: #291822;
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.authenticated-shell .bookings-page .booking-time-focus div > span {
  color: #64616d;
  font-size: 0.66rem;
}

.authenticated-shell .bookings-page .booking-detail-grid {
  margin: 0;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.authenticated-shell .bookings-page .booking-detail-grid > div {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(59, 33, 48, 0.07);
  border-radius: 13px;
  background: rgba(250, 250, 252, 0.68);
}

.authenticated-shell .bookings-page .booking-detail-grid dt {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #898691;
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.authenticated-shell .bookings-page .booking-detail-grid dt span {
  color: #c93658;
}

.authenticated-shell .bookings-page .booking-detail-grid dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  color: #2a2830;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.35;
}

.authenticated-shell .bookings-page .booking-source {
  margin: 0 20px 16px;
  padding: 13px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid rgba(215, 181, 109, 0.20);
  border-left: 1px solid rgba(215, 181, 109, 0.20);
  border-radius: 14px;
  background: rgba(255, 250, 239, 0.72);
  color: #3b2130;
}

.authenticated-shell .bookings-page .booking-source > span {
  flex: 0 0 auto;
  color: #95600d;
}

.authenticated-shell .bookings-page .booking-source p {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.75rem;
  font-style: normal;
  line-height: 1.55;
}

.authenticated-shell .bookings-page .booking-decision-panel {
  padding: 16px 20px 19px;
  border-top: 1px solid rgba(59, 33, 48, 0.07);
  background: rgba(250, 250, 252, 0.58);
}

.authenticated-shell .bookings-page .booking-review-area {
  display: grid;
  gap: 11px;
}

.authenticated-shell .bookings-page .booking-decision-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.authenticated-shell .bookings-page .booking-decision-heading > div {
  display: grid;
  gap: 2px;
}

.authenticated-shell .bookings-page .booking-decision-heading .eyebrow {
  color: #c93658;
  font-size: 0.58rem;
}

.authenticated-shell .bookings-page .booking-decision-heading strong {
  color: #291822;
  font-size: 0.82rem;
}

.authenticated-shell .bookings-page .booking-secure-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #64616d;
  font-size: 0.65rem;
  font-weight: 700;
  white-space: nowrap;
}

.authenticated-shell .bookings-page .booking-secure-note svg {
  color: #167454;
}

.authenticated-shell .bookings-page .booking-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 9px;
}

.authenticated-shell .bookings-page .booking-confirmation-area .booking-actions {
  grid-template-columns: minmax(0, 1fr);
}

.authenticated-shell .bookings-page .booking-actions .btn {
  width: 100%;
  min-height: 45px;
  border-radius: 13px;
  font-size: 0.78rem;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.authenticated-shell .bookings-page .booking-actions .btn:not(:disabled):hover {
  transform: translateY(-1px);
}

.authenticated-shell .bookings-page .booking-actions .btn.primary {
  border-color: #e84b6a;
  background: linear-gradient(135deg, #e84b6a, #ff7163);
  box-shadow: 0 10px 20px rgba(232, 75, 106, 0.20);
  color: #fffdfc;
}

.authenticated-shell .bookings-page .booking-actions .btn.danger {
  border-color: rgba(184, 58, 77, 0.24);
  background: rgba(255, 253, 252, 0.88);
  color: #b83a4d;
}

.authenticated-shell .bookings-page .booking-actions .btn:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.authenticated-shell .bookings-page .review-hint {
  margin: 0;
  color: #898691;
  font-size: 0.65rem;
  line-height: 1.45;
}

.authenticated-shell .bookings-page .review-feedback,
.authenticated-shell .bookings-page .decision-complete {
  padding: 13px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid rgba(59, 33, 48, 0.09);
  border-radius: 14px;
  background: rgba(255, 253, 252, 0.82);
}

.authenticated-shell .bookings-page .review-feedback > div,
.authenticated-shell .bookings-page .decision-complete > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.authenticated-shell .bookings-page .review-feedback-icon,
.authenticated-shell .bookings-page .decision-complete-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #fceff2;
  color: #c93658;
}

.authenticated-shell .bookings-page .review-feedback.pending {
  border-color: rgba(54, 95, 184, 0.16);
  background: rgba(238, 243, 255, 0.84);
}

.authenticated-shell .bookings-page .review-feedback.warning {
  border-color: rgba(149, 96, 13, 0.18);
  background: rgba(255, 249, 235, 0.88);
}

.authenticated-shell .bookings-page .review-feedback.error {
  border-color: rgba(184, 58, 77, 0.20);
  background: rgba(255, 242, 244, 0.9);
}

.authenticated-shell .bookings-page .review-feedback.success,
.authenticated-shell .bookings-page .decision-complete {
  border-color: rgba(22, 116, 84, 0.18);
  background: rgba(237, 249, 244, 0.9);
}

.authenticated-shell .bookings-page .booking-notice.warning {
  border-color: rgba(149, 96, 13, 0.18);
  background: rgba(255, 249, 235, 0.9);
}

.authenticated-shell .bookings-page .decision-complete-icon {
  background: rgba(22, 116, 84, 0.10);
  color: #167454;
}

.authenticated-shell .bookings-page .review-feedback strong,
.authenticated-shell .bookings-page .decision-complete strong {
  color: #291822;
  font-size: 0.78rem;
}

.authenticated-shell .bookings-page .review-feedback p {
  margin: 0;
  color: #64616d;
  font-size: 0.69rem;
  line-height: 1.45;
}

.authenticated-shell .bookings-page .decision-complete span:not(.decision-complete-icon) {
  color: #64616d;
  font-size: 0.69rem;
  line-height: 1.45;
}

.authenticated-shell .bookings-page .review-feedback-actions {
  margin-top: 7px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.authenticated-shell .bookings-page .review-feedback-actions .btn,
.authenticated-shell .bookings-page .review-feedback-actions .text-btn {
  min-height: 36px;
  border-radius: 10px;
  font-size: 0.69rem;
}

.authenticated-shell .bookings-page .review-spinner {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin: 3px 5px 0 3px;
  border: 2px solid rgba(54, 95, 184, 0.18);
  border-top-color: #365fb8;
  border-radius: 50%;
  animation: bookings-review-spin 0.8s linear infinite;
}

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

.authenticated-shell .bookings-page .bookings-empty-state {
  min-height: 320px;
  padding: 34px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 15px;
  border: 1px solid rgba(59, 33, 48, 0.09);
  border-radius: 22px;
  background: rgba(255, 253, 252, 0.82);
  text-align: center;
  box-shadow: 0 14px 34px rgba(41, 24, 34, 0.07);
}

.authenticated-shell .bookings-page .bookings-empty-state > span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(145deg, #fceff2, #f7dde4);
  color: #c93658;
}

.authenticated-shell .bookings-page .bookings-empty-state > span svg {
  width: 27px;
  height: 27px;
}

.authenticated-shell .bookings-page .bookings-empty-state h2 {
  margin: 5px 0 4px;
  color: #291822;
  font-family: var(--font-ui);
  font-size: 1.18rem;
}

.authenticated-shell .bookings-page .bookings-empty-state p {
  margin: 0;
  color: #64616d;
  font-size: 0.78rem;
}

.authenticated-shell .bookings-page .review-modal {
  z-index: 40;
  padding: 18px;
  align-items: center;
  justify-content: center;
  background: rgba(24, 14, 20, 0.64);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.authenticated-shell .bookings-page .review-dialog {
  width: min(560px, 100%);
  max-height: min(760px, 92dvh);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 24px;
  background: rgba(255, 253, 252, 0.94);
  box-shadow: 0 28px 70px rgba(24, 14, 20, 0.28);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

.authenticated-shell .bookings-page .review-dialog header {
  margin-bottom: 13px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.authenticated-shell .bookings-page .review-dialog header > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.authenticated-shell .bookings-page .review-dialog-symbol {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #fceff2, #f7dde4);
  color: #b83a4d;
}

.authenticated-shell .bookings-page .review-dialog h2 {
  margin: 4px 0 0;
  color: #291822;
  font-family: var(--font-ui);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.authenticated-shell .bookings-page .review-dialog > p {
  margin: 0 0 15px;
  color: #64616d;
  font-size: 0.78rem;
  line-height: 1.55;
}

.authenticated-shell .bookings-page .review-dialog-summary {
  margin-bottom: 16px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(59, 33, 48, 0.08);
  border-radius: 15px;
  background: rgba(250, 250, 252, 0.72);
}

.authenticated-shell .bookings-page .review-dialog-summary > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.authenticated-shell .bookings-page .review-dialog-summary strong {
  overflow: hidden;
  color: #291822;
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.authenticated-shell .bookings-page .review-dialog-summary span:not(.booking-avatar) {
  overflow: hidden;
  color: #64616d;
  font-size: 0.69rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.authenticated-shell .bookings-page .confirmation-schedule {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.authenticated-shell .bookings-page .confirmation-schedule > div {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(59, 33, 48, 0.08);
  border-radius: 14px;
  background: rgba(250, 250, 252, 0.72);
}

.authenticated-shell .bookings-page .confirmation-schedule dt {
  margin-bottom: 4px;
  color: #898691;
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.authenticated-shell .bookings-page .confirmation-schedule dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #291822;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.4;
}

.authenticated-shell .bookings-page .confirmation-dialog .review-dialog-symbol {
  background: linear-gradient(145deg, rgba(22, 116, 84, 0.13), rgba(237, 249, 244, 0.92));
  color: #167454;
}

.authenticated-shell .bookings-page .confirmation-dialog .confirm-appointment {
  border-color: #167454;
  background: linear-gradient(135deg, #167454, #2a9c72);
  box-shadow: 0 10px 20px rgba(22, 116, 84, 0.18);
  color: #fffdfc;
}

.authenticated-shell .bookings-page .review-dialog .form-grid {
  grid-template-columns: minmax(0, 1fr);
}

.authenticated-shell .bookings-page .review-dialog .form-grid label {
  color: #3b2130;
  font-size: 0.72rem;
}

.authenticated-shell .bookings-page .review-dialog .form-grid label span {
  color: #898691;
  font-weight: 500;
}

.authenticated-shell .bookings-page .review-dialog textarea {
  min-height: 112px;
  padding: 12px;
  border: 1px solid rgba(59, 33, 48, 0.13);
  border-radius: 14px;
  background: rgba(250, 250, 252, 0.78);
  color: #121216;
  font: inherit;
  line-height: 1.5;
}

.authenticated-shell .bookings-page .review-dialog footer {
  margin-top: 16px;
  padding: 0;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 9px;
}

.authenticated-shell .bookings-page .review-dialog footer .btn {
  width: 100%;
  min-height: 45px;
  border-radius: 13px;
}

.authenticated-shell .bookings-page .review-dialog .confirm-reject {
  border-color: #b83a4d;
  background: linear-gradient(135deg, #b83a4d, #e84b6a);
  box-shadow: 0 10px 20px rgba(184, 58, 77, 0.18);
  color: #fffdfc;
}

.authenticated-shell .bookings-page .btn:focus-visible,
.authenticated-shell .bookings-page .text-btn:focus-visible,
.authenticated-shell .bookings-page .icon-close:focus-visible,
.authenticated-shell .bookings-page textarea:focus-visible {
  outline: 3px solid rgba(54, 95, 184, 0.34);
  outline-offset: 3px;
}

@media (min-width: 980px) {
  .authenticated-shell .bookings-page .bookings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .authenticated-shell .bookings-page .bookings-empty-state {
    grid-column: 1 / -1;
  }
}

@media (max-width: 699px) {
  .authenticated-shell .bookings-page {
    gap: 14px;
  }

  .authenticated-shell .bookings-page .bookings-hero {
    min-height: 232px;
    padding: 22px 18px;
    border-radius: 21px;
  }

  .authenticated-shell .bookings-page .bookings-hero h1 {
    max-width: 235px;
    font-size: 2.35rem;
  }

  .authenticated-shell .bookings-page .bookings-hero p {
    max-width: 255px;
    font-size: 0.78rem;
  }

  .authenticated-shell .bookings-page .bookings-hero-context {
    max-width: calc(100% - 24px);
    margin-top: 17px;
  }

  .authenticated-shell .bookings-page .bookings-hero-context small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .authenticated-shell .bookings-page .bookings-hero-visual {
    width: 120px;
    height: 120px;
    top: 54px;
    right: -12px;
    opacity: 0.72;
  }

  .authenticated-shell .bookings-page .bookings-orbit-one {
    width: 112px;
    height: 112px;
  }

  .authenticated-shell .bookings-page .bookings-orbit-two {
    width: 76px;
    height: 76px;
  }

  .authenticated-shell .bookings-page .bookings-hero-mark {
    width: 56px;
    height: 56px;
    border-radius: 18px;
  }

  .authenticated-shell .bookings-page .bookings-hero-mark svg {
    width: 25px;
    height: 25px;
  }

  .authenticated-shell .bookings-page .bookings-status {
    top: 14px;
    right: 14px;
    font-size: 0.61rem;
  }

  .authenticated-shell .bookings-page .booking-card-header,
  .authenticated-shell .bookings-page .booking-decision-panel {
    padding-left: 15px;
    padding-right: 15px;
  }

  .authenticated-shell .bookings-page .booking-time-focus {
    margin-left: 15px;
    margin-right: 15px;
  }

  .authenticated-shell .bookings-page .booking-detail-grid {
    padding-left: 15px;
    padding-right: 15px;
  }

  .authenticated-shell .bookings-page .booking-source {
    margin-left: 15px;
    margin-right: 15px;
  }

  .authenticated-shell .bookings-page .booking-actions {
    grid-template-columns: 1fr 1fr;
  }

  .authenticated-shell .bookings-page .review-modal {
    padding: 12px;
    align-items: flex-end;
  }

  .authenticated-shell .bookings-page .review-dialog {
    width: 100%;
    max-height: 90dvh;
    padding: 19px;
    border-radius: 22px 22px 16px 16px;
  }
}

@media (max-width: 420px) {
  .authenticated-shell .bookings-page .booking-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .authenticated-shell .bookings-page .booking-actions,
  .authenticated-shell .bookings-page .review-dialog footer {
    grid-template-columns: minmax(0, 1fr);
  }

  .authenticated-shell .bookings-page .confirmation-schedule {
    grid-template-columns: minmax(0, 1fr);
  }

  .authenticated-shell .bookings-page .booking-secure-note {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .authenticated-shell .bookings-page .booking-card,
  .authenticated-shell .bookings-page .booking-actions .btn {
    transition: none;
  }

  .authenticated-shell .bookings-page .booking-card:hover,
  .authenticated-shell .bookings-page .booking-actions .btn:not(:disabled):hover {
    transform: none;
  }

  .authenticated-shell .bookings-page .review-spinner {
    animation: none;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .authenticated-shell .bookings-page .bookings-hero-context,
  .authenticated-shell .bookings-page .bookings-hero-mark,
  .authenticated-shell .bookings-page .bookings-status,
  .authenticated-shell .bookings-page .booking-card,
  .authenticated-shell .bookings-page .review-modal,
  .authenticated-shell .bookings-page .review-dialog {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .authenticated-shell .bookings-page .booking-card,
  .authenticated-shell .bookings-page .review-dialog {
    background: #fffdfc;
  }
}

.authenticated-shell.force-no-blur .bookings-page .bookings-hero-context,
.authenticated-shell.force-no-blur .bookings-page .bookings-hero-mark,
.authenticated-shell.force-no-blur .bookings-page .bookings-status,
.authenticated-shell.force-no-blur .bookings-page .booking-card,
.authenticated-shell.force-no-blur .bookings-page .review-modal,
.authenticated-shell.force-no-blur .bookings-page .review-dialog {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.authenticated-shell.force-no-blur .bookings-page .booking-card,
.authenticated-shell.force-no-blur .bookings-page .review-dialog {
  background: #fffdfc;
}

/* Phase B5, Messages and conversation thread */
.authenticated-shell .messages-page {
  width: min(100%, 1480px);
  margin: 0 auto;
  display: grid;
  gap: 18px;
  color: var(--color-ink, #121216);
  font-family: var(--font-ui);
}

.authenticated-shell .messages-page .messages-hero {
  position: relative;
  min-height: 184px;
  padding: clamp(24px, 4vw, 42px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sheet, 24px);
  background:
    radial-gradient(circle at 88% 24%, rgba(255, 113, 99, 0.24), transparent 28%),
    radial-gradient(circle at 72% 110%, rgba(232, 75, 106, 0.25), transparent 36%),
    linear-gradient(135deg, #291822 0%, #3b2130 52%, #24131d 100%);
  box-shadow: 0 24px 54px rgba(41, 24, 34, 0.18);
  color: #fffdfc;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.authenticated-shell .messages-page .messages-hero::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  right: -70px;
  top: -82px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(255, 255, 255, 0.035), 0 0 0 84px rgba(255, 255, 255, 0.02);
  pointer-events: none;
}

.authenticated-shell .messages-page .messages-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 700px;
  display: grid;
  gap: 8px;
}

.authenticated-shell .messages-page .messages-eyebrow {
  color: #ff9a92;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.authenticated-shell .messages-page .messages-hero h1 {
  margin: 0;
  color: #fffdfc;
  font-family: var(--font-ui);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.authenticated-shell .messages-page .messages-hero p {
  max-width: 660px;
  margin: 4px 0 0;
  color: rgba(255, 253, 252, 0.76);
  font-size: 14px;
  line-height: 1.55;
}

.authenticated-shell .messages-page .messages-hero-context {
  position: relative;
  z-index: 1;
  min-width: 210px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  gap: 12px;
}

.authenticated-shell .messages-page .messages-hero-context > span {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: linear-gradient(135deg, #e84b6a, #ff7163);
  color: #fffdfc;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
}

.authenticated-shell .messages-page .messages-hero-context div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.authenticated-shell .messages-page .messages-hero-context small {
  color: rgba(255, 253, 252, 0.62);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.authenticated-shell .messages-page .messages-hero-context strong {
  overflow: hidden;
  color: #fffdfc;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.authenticated-shell .messages-page .messages-workspace {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.authenticated-shell .messages-page .messages-inbox,
.authenticated-shell .messages-page .messages-thread-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(203, 200, 209, 0.72);
  border-radius: 22px;
  background: rgba(255, 253, 252, 0.82);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 44px rgba(41, 24, 34, 0.09);
}

.authenticated-shell .messages-page .messages-inbox {
  display: flex;
  min-height: 610px;
  flex-direction: column;
}

.authenticated-shell .messages-page .messages-inbox-head {
  padding: 20px 20px 13px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.authenticated-shell .messages-page .messages-inbox-head > div {
  display: grid;
  gap: 2px;
}

.authenticated-shell .messages-page .messages-inbox-head span {
  color: #898691;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.authenticated-shell .messages-page .messages-inbox-head strong {
  color: #291822;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.authenticated-shell .messages-page .messages-inbox-head > small {
  color: #64616d;
  font-size: 11px;
  font-weight: 700;
}

.authenticated-shell .messages-page .messages-search {
  position: relative;
  padding: 0 16px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.authenticated-shell .messages-page .messages-search-icon {
  position: absolute;
  left: 29px;
  top: 12px;
  z-index: 1;
  color: #898691;
  font-size: 17px;
  pointer-events: none;
}

.authenticated-shell .messages-page .messages-search .search {
  width: 100%;
  min-width: 0;
  height: 44px;
  margin: 0;
  padding: 10px 12px 10px 38px;
  border: 1px solid #e3e1e7;
  border-radius: 14px;
  background: rgba(250, 250, 252, 0.9);
  color: #121216;
  font: inherit;
  font-size: 13px;
}

.authenticated-shell .messages-page .messages-search .btn {
  min-height: 44px;
  border-radius: 14px;
}

.authenticated-shell .messages-page .messages-filters {
  padding: 0 16px 14px;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}

.authenticated-shell .messages-page .messages-filters::-webkit-scrollbar {
  display: none;
}

.authenticated-shell .messages-page .messages-filter {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid #e3e1e7;
  border-radius: 999px;
  background: rgba(250, 250, 252, 0.85);
  color: #64616d;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.authenticated-shell .messages-page .messages-filter.active {
  border-color: rgba(232, 75, 106, 0.34);
  background: #fceff2;
  color: #c93658;
  box-shadow: inset 0 0 0 1px rgba(232, 75, 106, 0.06);
}

.authenticated-shell .messages-page .messages-list-shell {
  min-height: 0;
  flex: 1;
  overflow: auto;
  border-top: 1px solid rgba(227, 225, 231, 0.78);
}

.authenticated-shell .messages-page .messages-conversation-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.authenticated-shell .messages-page .messages-conversation-row {
  margin: 0;
  padding: 0;
}

.authenticated-shell .messages-page .messages-conversation {
  position: relative;
  width: 100%;
  min-height: 108px;
  padding: 16px;
  border: 0;
  border-bottom: 1px solid rgba(227, 225, 231, 0.76);
  background: transparent;
  color: #121216;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  transition: background 160ms ease, transform 160ms ease;
}

.authenticated-shell .messages-page .messages-conversation::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(#e84b6a, #ff7163);
  opacity: 0;
}

.authenticated-shell .messages-page .messages-conversation:hover {
  background: rgba(252, 239, 242, 0.56);
}

.authenticated-shell .messages-page .messages-conversation.selected {
  background: linear-gradient(90deg, rgba(252, 239, 242, 0.95), rgba(255, 253, 252, 0.7));
}

.authenticated-shell .messages-page .messages-conversation.selected::before {
  opacity: 1;
}

.authenticated-shell .messages-page .messages-avatar {
  flex: 0 0 43px;
  width: 43px;
  height: 43px;
  border: 1px solid rgba(232, 75, 106, 0.16);
  border-radius: 15px;
  background: linear-gradient(145deg, #fceff2, #fffdfc);
  color: #c93658;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(201, 54, 88, 0.08);
}

.authenticated-shell .messages-page .messages-avatar.large {
  flex-basis: 48px;
  width: 48px;
  height: 48px;
  border-radius: 17px;
  font-size: 16px;
}

.authenticated-shell .messages-page .messages-conversation-copy {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 4px;
}

.authenticated-shell .messages-page .messages-conversation-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.authenticated-shell .messages-page .messages-conversation-line strong {
  min-width: 0;
  overflow: hidden;
  color: #291822;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.authenticated-shell .messages-page .messages-conversation-line time {
  flex: 0 0 auto;
  color: #898691;
  font-size: 9px;
  font-weight: 700;
}

.authenticated-shell .messages-page .messages-conversation-copy > small {
  color: #898691;
  font-size: 10px;
}

.authenticated-shell .messages-page .messages-preview {
  overflow: hidden;
  color: #64616d;
  font-size: 12px;
  line-height: 1.42;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.authenticated-shell .messages-page .messages-flags {
  min-height: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.authenticated-shell .messages-page .messages-flag,
.authenticated-shell .messages-page .messages-unread {
  min-height: 19px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
}

.authenticated-shell .messages-page .messages-flag.needs-staff {
  background: #fff0ed;
  color: #b83a4d;
}

.authenticated-shell .messages-page .messages-flag.booking {
  background: #edf3ff;
  color: #365fb8;
}

.authenticated-shell .messages-page .messages-flag.ownership {
  background: #f3f4f7;
  color: #64616d;
}

.authenticated-shell .messages-page .messages-unread {
  min-width: 19px;
  padding-inline: 6px;
  background: #e84b6a;
  color: #fffdfc;
  display: grid;
  place-items: center;
}

.authenticated-shell .messages-page .messages-list-state {
  min-height: 330px;
  padding: 40px 28px;
  color: #64616d;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.authenticated-shell .messages-page .messages-list-state strong {
  color: #291822;
  font-size: 15px;
}

.authenticated-shell .messages-page .messages-list-state p {
  max-width: 310px;
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.55;
}

.authenticated-shell .messages-page .messages-state-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
  border: 1px solid rgba(232, 75, 106, 0.18);
  border-radius: 16px;
  background: #fceff2;
  color: #c93658;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 900;
}

.authenticated-shell .messages-page .messages-skeleton-list {
  width: min(100%, 300px);
  margin-top: 14px;
  display: grid;
  gap: 9px;
}

.authenticated-shell .messages-page .messages-skeleton-list span {
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(90deg, #f3f4f7, #fceff2 52%, #f3f4f7);
}

.authenticated-shell .messages-page .messages-thread-panel {
  min-height: 610px;
  display: flex;
  flex-direction: column;
}

.authenticated-shell .messages-page .messages-thread-panel.idle {
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 36%, rgba(252, 239, 242, 0.9), transparent 32%),
    rgba(255, 253, 252, 0.82);
}

.authenticated-shell .messages-page .messages-thread-empty,
.authenticated-shell .messages-page .messages-thread-error,
.authenticated-shell .messages-page .messages-thread-loading {
  width: min(100%, 430px);
  margin: auto;
  padding: 42px 28px;
  color: #64616d;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 9px;
  text-align: center;
}

.authenticated-shell .messages-page .messages-thread-empty strong,
.authenticated-shell .messages-page .messages-thread-error strong,
.authenticated-shell .messages-page .messages-thread-loading strong {
  color: #291822;
  font-size: 18px;
}

.authenticated-shell .messages-page .messages-thread-empty p,
.authenticated-shell .messages-page .messages-thread-error p,
.authenticated-shell .messages-page .messages-thread-loading p {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.6;
}

.authenticated-shell .messages-page .messages-thread-empty small {
  color: #898691;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.authenticated-shell .messages-page .messages-thread-orbit {
  position: relative;
  width: 82px;
  height: 82px;
  margin-bottom: 8px;
  border: 1px solid rgba(232, 75, 106, 0.18);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.authenticated-shell .messages-page .messages-thread-orbit::before,
.authenticated-shell .messages-page .messages-thread-orbit::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(232, 75, 106, 0.14);
  border-radius: 50%;
}

.authenticated-shell .messages-page .messages-thread-orbit::after {
  inset: 25px;
  background: linear-gradient(135deg, #e84b6a, #ff7163);
  border: 0;
}

.authenticated-shell .messages-page .messages-thread-orbit b {
  position: relative;
  z-index: 1;
  color: #fffdfc;
  font-size: 14px;
}

.authenticated-shell .messages-page .messages-thread-orbit i {
  position: absolute;
  width: 8px;
  height: 8px;
  right: 8px;
  top: 19px;
  border-radius: 50%;
  background: #d7b56d;
  box-shadow: 0 0 0 5px rgba(215, 181, 109, 0.15);
}

.authenticated-shell .messages-page .messages-thread-header {
  min-height: 78px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(227, 225, 231, 0.78);
  background: rgba(255, 253, 252, 0.86);
  display: flex;
  align-items: center;
  gap: 12px;
}

.authenticated-shell .messages-page .messages-thread-identity {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 11px;
}

.authenticated-shell .messages-page .messages-thread-identity > span:last-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.authenticated-shell .messages-page .messages-thread-identity strong {
  overflow: hidden;
  color: #291822;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.authenticated-shell .messages-page .messages-thread-identity small {
  overflow: hidden;
  color: #898691;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.authenticated-shell .messages-page .messages-back {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 1px solid #e3e1e7;
  border-radius: 13px;
  background: #fafafc;
  color: #291822;
  font-size: 18px;
}

.authenticated-shell .messages-page .messages-live-status {
  flex: 0 0 auto;
  min-height: 25px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eaf7f1;
  color: #167454;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.authenticated-shell .messages-page .messages-live-status.error {
  background: #fff0ed;
  color: #b83a4d;
}

.authenticated-shell .messages-page .messages-thread-context {
  padding: 10px 18px;
  border-bottom: 1px solid rgba(227, 225, 231, 0.78);
  background: #fafafc;
  display: flex;
  gap: 7px;
  overflow-x: auto;
}

.authenticated-shell .messages-page .messages-context-chip {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #e3e1e7;
  border-radius: 12px;
  background: #fffdfc;
  color: #64616d;
  display: grid;
  gap: 1px;
  font-size: 9px;
  white-space: nowrap;
}

.authenticated-shell .messages-page .messages-context-chip b {
  color: #291822;
  font-size: 9px;
  text-transform: uppercase;
}

.authenticated-shell .messages-page .messages-context-chip.staff {
  border-color: rgba(232, 75, 106, 0.22);
  background: #fff4f3;
}

.authenticated-shell .messages-page .messages-context-chip.booking {
  border-color: rgba(54, 95, 184, 0.17);
  background: #f2f6ff;
}

.authenticated-shell .messages-page .messages-stream {
  min-height: 0;
  margin: 0;
  padding: 24px;
  flex: 1;
  overflow: auto;
  background:
    linear-gradient(rgba(255, 253, 252, 0.9), rgba(255, 253, 252, 0.9)),
    radial-gradient(circle at 20% 0%, #fceff2, transparent 34%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
}

.authenticated-shell .messages-page .messages-message {
  width: min(78%, 620px);
  display: grid;
  gap: 5px;
}

.authenticated-shell .messages-page .messages-message.customer {
  align-self: flex-start;
}

.authenticated-shell .messages-page .messages-message.ai,
.authenticated-shell .messages-page .messages-message.operator {
  align-self: flex-end;
}

.authenticated-shell .messages-page .messages-message-meta {
  padding-inline: 5px;
  color: #898691;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 9px;
  font-weight: 700;
}

.authenticated-shell .messages-page .messages-bubble {
  padding: 12px 14px;
  border: 1px solid #e3e1e7;
  border-radius: 17px 17px 17px 5px;
  background: #fffdfc;
  color: #2a2830;
  font-size: 13px;
  line-height: 1.55;
  box-shadow: 0 8px 22px rgba(41, 24, 34, 0.055);
}

.authenticated-shell .messages-page .messages-message.ai .messages-bubble {
  border-color: rgba(232, 75, 106, 0.18);
  border-radius: 17px 17px 5px 17px;
  background: linear-gradient(145deg, #fceff2, #fff8fa);
  color: #3b2130;
}

.authenticated-shell .messages-page .messages-message.operator .messages-bubble {
  border-color: #291822;
  border-radius: 17px 17px 5px 17px;
  background: #291822;
  color: #fffdfc;
}

.authenticated-shell .messages-page .messages-thread-no-messages {
  margin: auto;
  color: #64616d;
  text-align: center;
}

.authenticated-shell .messages-page .messages-thread-no-messages strong {
  color: #291822;
}

.authenticated-shell .messages-page .messages-composer {
  padding: 14px 16px;
  border-top: 1px solid rgba(227, 225, 231, 0.78);
  background: rgba(250, 250, 252, 0.94);
  display: grid;
  grid-template-columns: minmax(170px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.authenticated-shell .messages-page .messages-composer > div {
  display: grid;
  gap: 2px;
}

.authenticated-shell .messages-page .messages-composer strong {
  color: #291822;
  font-size: 10px;
}

.authenticated-shell .messages-page .messages-composer span {
  color: #898691;
  font-size: 9px;
}

.authenticated-shell .messages-page .messages-composer textarea {
  width: 100%;
  min-height: 42px;
  padding: 11px 12px;
  resize: none;
  border: 1px dashed #cbc8d1;
  border-radius: 13px;
  background: #f3f4f7;
  color: #898691;
  font: inherit;
  font-size: 11px;
}

.authenticated-shell .messages-page .messages-composer .btn:disabled {
  min-height: 42px;
  border-radius: 13px;
  opacity: 0.48;
}

.authenticated-shell .messages-page .messages-thread-loading > span {
  width: min(100%, 330px);
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(90deg, #f3f4f7, #fceff2, #f3f4f7);
}

.authenticated-shell .messages-page .messages-thread-loading > span:nth-child(2) {
  width: min(82%, 270px);
  margin-left: auto;
}

.authenticated-shell .messages-page .messages-thread-loading > span:nth-child(3) {
  width: min(70%, 230px);
  margin-right: auto;
}

.authenticated-shell .messages-page button:focus-visible,
.authenticated-shell .messages-page input:focus-visible,
.authenticated-shell .messages-page textarea:focus-visible {
  outline: 3px solid var(--color-focus, #ff806f);
  outline-offset: 3px;
}

.authenticated-shell .messages-page .messages-filter:active,
.authenticated-shell .messages-page .messages-conversation:active,
.authenticated-shell .messages-page .messages-back:active {
  transform: scale(0.985);
}

@media (min-width: 900px) {
  .authenticated-shell .messages-page .messages-workspace {
    height: min(720px, calc(100vh - 255px));
    min-height: 610px;
    grid-template-columns: minmax(320px, 395px) minmax(0, 1fr);
  }

  .authenticated-shell .messages-page .messages-back {
    display: none;
  }

  .authenticated-shell .messages-page .messages-thread-panel {
    min-height: 0;
  }
}

@media (max-width: 899px) {
  .authenticated-shell .messages-page {
    gap: 12px;
  }

  .authenticated-shell .messages-page .messages-hero {
    min-height: 148px;
    padding: 22px 18px;
    border-radius: 20px;
    align-items: flex-start;
    flex-direction: column;
  }

  .authenticated-shell .messages-page .messages-hero h1 {
    font-size: 39px;
  }

  .authenticated-shell .messages-page .messages-hero p {
    font-size: 12px;
  }

  .authenticated-shell .messages-page .messages-hero-context {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
  }

  .authenticated-shell .messages-page .messages-hero-context > span {
    width: 34px;
    height: 34px;
  }

  .authenticated-shell .messages-page .messages-inbox,
  .authenticated-shell .messages-page .messages-thread-panel {
    min-height: calc(100dvh - 310px);
    border-radius: 20px;
  }

  .authenticated-shell .messages-page[data-thread-open="true"] .messages-inbox {
    display: none;
  }

  .authenticated-shell .messages-page[data-thread-open="false"] .messages-thread-panel {
    display: none;
  }

  .authenticated-shell .messages-page .messages-thread-header {
    padding: 11px 12px;
  }

  .authenticated-shell .messages-page .messages-thread-context {
    padding-inline: 12px;
  }

  .authenticated-shell .messages-page .messages-stream {
    padding: 18px 13px;
  }

  .authenticated-shell .messages-page .messages-message {
    width: min(88%, 520px);
  }

  .authenticated-shell .messages-page .messages-composer {
    padding: 11px 12px calc(11px + env(safe-area-inset-bottom));
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .authenticated-shell .messages-page .messages-composer > div {
    grid-column: 1 / -1;
  }

  .authenticated-shell .messages-page .messages-composer textarea {
    min-width: 0;
  }
}

@media (max-width: 420px) {
  .authenticated-shell .messages-page .messages-hero {
    padding: 20px 16px;
  }

  .authenticated-shell .messages-page .messages-inbox-head {
    padding-inline: 16px;
  }

  .authenticated-shell .messages-page .messages-search {
    grid-template-columns: minmax(0, 1fr);
  }

  .authenticated-shell .messages-page .messages-search .btn {
    display: none;
  }

  .authenticated-shell .messages-page .messages-conversation {
    min-height: 102px;
    padding: 14px;
  }

  .authenticated-shell .messages-page .messages-live-status {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .authenticated-shell .messages-page .messages-hero-context,
  .authenticated-shell .messages-page .messages-inbox,
  .authenticated-shell .messages-page .messages-thread-panel {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: #fffdfc;
  }
}

.authenticated-shell.force-no-blur .messages-page .messages-hero-context,
.authenticated-shell.force-no-blur .messages-page .messages-inbox,
.authenticated-shell.force-no-blur .messages-page .messages-thread-panel {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

@media (prefers-reduced-motion: reduce) {
  .authenticated-shell .messages-page *,
  .authenticated-shell .messages-page *::before,
  .authenticated-shell .messages-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}

/* M054 operator conversation control */
.authenticated-shell .messages-page .messages-control-copy {
  min-width: 180px;
  display: grid;
  gap: 4px;
}

.authenticated-shell .messages-page .messages-control-btn {
  width: fit-content;
  min-height: 44px;
  margin-top: 5px;
  padding: 7px 11px;
  border-radius: 11px;
  font-size: 10px;
}

.authenticated-shell .messages-page .messages-composer.active textarea {
  border-style: solid;
  border-color: rgba(232, 75, 106, 0.28);
  background: #fffdfc;
  color: #2a2830;
}

.authenticated-shell .messages-page .messages-composer.active textarea:focus {
  outline: 2px solid rgba(232, 75, 106, 0.16);
  outline-offset: 1px;
  border-color: rgba(232, 75, 106, 0.52);
}

.authenticated-shell .messages-page .messages-composer-feedback {
  grid-column: 1 / -1;
  min-height: 30px;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
}

.authenticated-shell .messages-page .messages-composer-feedback.success {
  background: #eaf7f1;
  color: #167454;
}

.authenticated-shell .messages-page .messages-composer-feedback.error {
  background: #fff0ed;
  color: #b83a4d;
}

.authenticated-shell .messages-page .messages-context-chip.channel {
  border-color: rgba(54, 95, 184, 0.14);
  background: #f6f8ff;
}

@media (max-width: 760px) {
  .authenticated-shell .messages-page .messages-control-copy {
    min-width: 0;
  }
}

/* Phase B6, Offers and More */
.authenticated-shell .offers-page,
.authenticated-shell .more-page {
  display: grid;
  gap: 22px;
  min-width: 0;
  color: var(--color-charcoal);
}

.authenticated-shell .offers-page *,
.authenticated-shell .more-page * {
  min-width: 0;
}

.authenticated-shell .offers-page .glass-surface,
.authenticated-shell .more-page .glass-surface {
  border: 1px solid rgba(227, 225, 231, 0.92);
  background: rgba(255, 253, 252, 0.78);
  box-shadow: var(--shadow-2);
  backdrop-filter: blur(var(--blur-standard));
  -webkit-backdrop-filter: blur(var(--blur-standard));
}

.authenticated-shell .offers-hero,
.authenticated-shell .more-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 20px;
  padding: 26px;
  border-radius: 28px;
  isolation: isolate;
}

.authenticated-shell .offers-hero::before,
.authenticated-shell .more-hero::before {
  content: "";
  position: absolute;
  inset: -90px -60px auto auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 75, 106, 0.2), rgba(255, 113, 99, 0.04) 58%, transparent 72%);
  z-index: -1;
}

.authenticated-shell .offers-hero-copy,
.authenticated-shell .more-hero-copy {
  max-width: 670px;
}

.authenticated-shell .offers-eyebrow,
.authenticated-shell .more-eyebrow,
.authenticated-shell .offers-card-kicker {
  display: block;
  color: var(--color-brand-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.authenticated-shell .offers-hero h1,
.authenticated-shell .more-hero h1 {
  margin: 4px 0 8px;
  color: var(--color-ink);
  font: 800 clamp(34px, 4vw, 52px)/1 var(--font-ui);
  letter-spacing: -0.045em;
}

.authenticated-shell .offers-hero p,
.authenticated-shell .more-hero p {
  max-width: 650px;
  margin: 0;
  color: var(--color-slate);
  font-size: 15px;
}

.authenticated-shell .offers-hero-trust {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 1px 12px;
  margin-top: 18px;
  align-items: center;
}

.authenticated-shell .offers-hero-trust > span {
  grid-row: 1 / 3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(232, 75, 106, 0.22);
  border-radius: 13px;
  background: var(--color-brand-mist);
  color: var(--color-brand-deep);
}

.authenticated-shell .offers-hero-trust svg,
.authenticated-shell .offers-hero-icon svg,
.authenticated-shell .more-hero-identity > span svg,
.authenticated-shell .more-command-icon svg,
.authenticated-shell .more-detail-icon svg,
.authenticated-shell .more-panel > header > span svg,
.authenticated-shell .more-signout-icon svg {
  width: 20px;
  height: 20px;
}

.authenticated-shell .offers-hero-trust strong {
  color: var(--color-plum);
  font-size: 13px;
}

.authenticated-shell .offers-hero-trust small {
  color: var(--color-text-muted);
  font-size: 12px;
}

.authenticated-shell .offers-hero-summary,
.authenticated-shell .more-hero-identity {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(232, 75, 106, 0.18);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(252, 239, 242, 0.9), rgba(255, 253, 252, 0.74));
}

.authenticated-shell .offers-hero-icon,
.authenticated-shell .more-hero-identity > span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 14px 30px rgba(201, 54, 88, 0.2);
}

.authenticated-shell .offers-hero-summary div,
.authenticated-shell .more-hero-identity div {
  display: grid;
  gap: 2px;
}

.authenticated-shell .offers-hero-summary small,
.authenticated-shell .more-hero-identity small {
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.authenticated-shell .offers-hero-summary strong,
.authenticated-shell .more-hero-identity strong {
  color: var(--color-plum);
  font-size: 15px;
}

.authenticated-shell .offers-hero-summary em,
.authenticated-shell .more-hero-identity em {
  color: var(--color-brand-deep);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.authenticated-shell .offers-summary-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.authenticated-shell .offers-summary-row article {
  display: grid;
  gap: 1px;
  padding: 18px 20px;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: rgba(255, 253, 252, 0.84);
  box-shadow: var(--shadow-1);
}

.authenticated-shell .offers-summary-row strong {
  color: var(--color-ink);
  font: 800 27px/1 var(--font-ui);
}

.authenticated-shell .offers-summary-row span {
  color: var(--color-text-muted);
  font-size: 12px;
}

.authenticated-shell .offers-grid {
  display: grid;
  gap: 16px;
}

.authenticated-shell .offers-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 22px;
}

.authenticated-shell .offers-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--gradient-brand);
}

.authenticated-shell .offers-card.scheduled::before {
  background: linear-gradient(180deg, var(--color-champagne), #f0cd83);
}

.authenticated-shell .offers-card.inactive::before {
  background: var(--color-border-strong);
}

.authenticated-shell .offers-card-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.authenticated-shell .offers-card-header h2 {
  margin: 4px 0 5px;
  color: var(--color-ink);
  font: 800 22px/1.15 var(--font-ui);
  letter-spacing: -0.025em;
}

.authenticated-shell .offers-card-header p {
  margin: 0;
  color: var(--color-slate);
  font-size: 13px;
}

.authenticated-shell .offers-status {
  flex: 0 0 auto;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(22, 116, 84, 0.09);
  color: var(--color-success);
  font-size: 11px;
  font-weight: 800;
}

.authenticated-shell .offers-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.authenticated-shell .offers-status.scheduled {
  background: rgba(149, 96, 13, 0.1);
  color: var(--color-warning);
}

.authenticated-shell .offers-status.inactive {
  background: var(--color-surface-secondary);
  color: var(--color-slate);
}

.authenticated-shell .offers-value-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.authenticated-shell .offers-value-row > span {
  display: grid;
  gap: 2px;
  padding: 13px 15px;
  border: 1px solid rgba(227, 225, 231, 0.85);
  border-radius: 15px;
  background: rgba(250, 250, 252, 0.86);
}

.authenticated-shell .offers-value-row small,
.authenticated-shell .offers-meta dt,
.authenticated-shell .offers-response small,
.authenticated-shell .offers-triggers small {
  color: var(--color-text-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.authenticated-shell .offers-value-row strong {
  color: var(--color-plum);
  font-size: 14px;
}

.authenticated-shell .offers-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.authenticated-shell .offers-meta > div {
  display: grid;
  gap: 4px;
}

.authenticated-shell .offers-meta dt {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.authenticated-shell .offers-meta dt svg {
  width: 15px;
  height: 15px;
  color: var(--color-brand-deep);
}

.authenticated-shell .offers-meta dd {
  margin: 0;
  color: var(--color-charcoal);
  font-size: 13px;
  font-weight: 700;
}

.authenticated-shell .offers-response,
.authenticated-shell .offers-triggers {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
}

.authenticated-shell .offers-response {
  border: 1px solid rgba(232, 75, 106, 0.2);
  background: linear-gradient(135deg, rgba(252, 239, 242, 0.9), rgba(255, 253, 252, 0.75));
}

.authenticated-shell .offers-triggers {
  border: 1px solid var(--color-border);
  background: rgba(250, 250, 252, 0.82);
}

.authenticated-shell .offers-response > span,
.authenticated-shell .offers-triggers > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #fff;
  color: var(--color-brand-deep);
  box-shadow: var(--shadow-1);
}

.authenticated-shell .offers-response svg,
.authenticated-shell .offers-triggers svg {
  width: 18px;
  height: 18px;
}

.authenticated-shell .offers-response div,
.authenticated-shell .offers-triggers div {
  display: grid;
  gap: 4px;
}

.authenticated-shell .offers-response blockquote,
.authenticated-shell .offers-triggers p {
  margin: 0;
  color: var(--color-charcoal);
  font-size: 13px;
  font-style: normal;
}

.authenticated-shell .offers-card footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 13px;
  border-top: 1px solid var(--color-border);
}

.authenticated-shell .offers-card footer span {
  color: var(--color-brand-deep);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.authenticated-shell .offers-card footer small {
  color: var(--color-text-muted);
  font-size: 11px;
  text-align: right;
}

.authenticated-shell .offers-local-state {
  min-height: 260px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 28px;
  border-radius: 24px;
}

.authenticated-shell .offers-local-state-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 19px;
  background: var(--color-brand-mist);
  color: var(--color-brand-deep);
}

.authenticated-shell .offers-local-state-icon svg {
  width: 26px;
  height: 26px;
}

.authenticated-shell .offers-local-state h2 {
  margin: 4px 0;
  color: var(--color-ink);
  font: 800 24px/1.15 var(--font-ui);
}

.authenticated-shell .offers-local-state p {
  margin: 0;
  color: var(--color-slate);
}

.authenticated-shell .offers-loading .offers-card {
  min-height: 300px;
}

.authenticated-shell .offers-card.skeleton span {
  display: block;
  height: 15px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f0eef2 18%, #faf9fb 42%, #f0eef2 68%);
  background-size: 220% 100%;
  animation: offers-shimmer 1.35s linear infinite;
}

.authenticated-shell .offers-card.skeleton span:nth-child(1) {
  width: 28%;
}

.authenticated-shell .offers-card.skeleton span:nth-child(2) {
  width: 68%;
  height: 26px;
}

.authenticated-shell .offers-card.skeleton span:nth-child(3) {
  width: 94%;
}

.authenticated-shell .offers-card.skeleton span:nth-child(4) {
  width: 78%;
  height: 76px;
  border-radius: 16px;
}

.authenticated-shell .offers-card.skeleton span:nth-child(5) {
  width: 54%;
}

.authenticated-shell .more-command-grid {
  display: grid;
  gap: 14px;
}

.authenticated-shell .more-command-card {
  width: 100%;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: 20px;
  color: var(--color-charcoal);
  text-align: left;
}

.authenticated-shell button.more-command-card {
  cursor: pointer;
}

.authenticated-shell .more-command-card.security {
  grid-template-columns: 48px minmax(0, 1fr);
}

.authenticated-shell .more-command-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--color-brand-mist);
  color: var(--color-brand-deep);
}

.authenticated-shell .more-command-card span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.authenticated-shell .more-command-card small {
  color: var(--color-text-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.authenticated-shell .more-command-card strong {
  color: var(--color-plum);
  font-size: 14px;
}

.authenticated-shell .more-command-card em {
  color: var(--color-brand-deep);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.authenticated-shell .more-command-card > b {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--color-brand-deep);
}

.authenticated-shell .more-command-card > b svg {
  width: 20px;
  height: 20px;
}

.authenticated-shell .more-layout {
  display: grid;
  gap: 16px;
}

.authenticated-shell .more-panel {
  padding: 22px;
  border-radius: 22px;
}

.authenticated-shell .more-panel > header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.authenticated-shell .more-panel > header > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--color-brand-mist);
  color: var(--color-brand-deep);
}

.authenticated-shell .more-panel > header small {
  color: var(--color-text-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.authenticated-shell .more-panel > header h2 {
  margin: 1px 0 0;
  color: var(--color-ink);
  font: 800 20px/1.2 var(--font-ui);
}

.authenticated-shell .more-detail-list {
  display: grid;
  margin-top: 5px;
}

.authenticated-shell .more-detail-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid rgba(227, 225, 231, 0.75);
}

.authenticated-shell .more-detail-row:last-child {
  border-bottom: 0;
}

.authenticated-shell .more-detail-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--color-pearl-cool);
  color: var(--color-brand-deep);
}

.authenticated-shell .more-detail-row div {
  display: grid;
  gap: 1px;
}

.authenticated-shell .more-detail-row small {
  color: var(--color-text-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.authenticated-shell .more-detail-row strong {
  color: var(--color-charcoal);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.authenticated-shell .more-read-only-note {
  display: grid;
  gap: 3px;
  margin-top: 13px;
  padding: 14px;
  border-radius: 15px;
  background: var(--color-pearl-cool);
}

.authenticated-shell .more-read-only-note strong {
  color: var(--color-brand-deep);
  font-size: 11px;
  text-transform: uppercase;
}

.authenticated-shell .more-read-only-note span {
  color: var(--color-slate);
  font-size: 12px;
}

.authenticated-shell .more-signout {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
  border-radius: 21px;
}

.authenticated-shell .more-signout > div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.authenticated-shell .more-signout-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(184, 58, 77, 0.08);
  color: var(--color-error);
}

.authenticated-shell .more-signout > div > span:last-child {
  display: grid;
  gap: 2px;
}

.authenticated-shell .more-signout strong {
  color: var(--color-ink);
  font-size: 14px;
}

.authenticated-shell .more-signout small {
  color: var(--color-text-muted);
  font-size: 12px;
}

.authenticated-shell .offers-page button:focus-visible,
.authenticated-shell .more-page button:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

.authenticated-shell .more-command-card:hover {
  border-color: rgba(232, 75, 106, 0.36);
  transform: translateY(-1px);
  box-shadow: var(--shadow-3);
}

.authenticated-shell .more-command-card {
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.authenticated-shell.force-no-blur .offers-page .glass-surface,
.authenticated-shell.force-no-blur .more-page .glass-surface {
  background: #fffdfc;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

@keyframes offers-shimmer {
  from { background-position: 180% 0; }
  to { background-position: -40% 0; }
}

@media (min-width: 760px) {
  .authenticated-shell .offers-hero,
  .authenticated-shell .more-hero {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.38fr);
    align-items: center;
  }

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

  .authenticated-shell .more-command-grid,
  .authenticated-shell .more-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 759px) {
  .authenticated-shell .offers-page,
  .authenticated-shell .more-page {
    gap: 16px;
  }

  .authenticated-shell .offers-hero,
  .authenticated-shell .more-hero {
    padding: 20px;
    border-radius: 22px;
  }

  .authenticated-shell .offers-hero h1,
  .authenticated-shell .more-hero h1 {
    font-size: 36px;
  }

  .authenticated-shell .offers-summary-row {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .authenticated-shell .offers-summary-row article {
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
  }

  .authenticated-shell .offers-card {
    padding: 19px;
  }

  .authenticated-shell .offers-card-header {
    display: grid;
  }

  .authenticated-shell .offers-status {
    justify-self: start;
  }

  .authenticated-shell .offers-value-row,
  .authenticated-shell .offers-meta {
    grid-template-columns: 1fr;
  }

  .authenticated-shell .offers-card footer,
  .authenticated-shell .more-signout {
    align-items: flex-start;
    flex-direction: column;
  }

  .authenticated-shell .offers-card footer small {
    text-align: left;
  }

  .authenticated-shell .offers-local-state {
    min-height: 320px;
    grid-template-columns: 1fr;
    align-content: center;
  }

  .authenticated-shell .offers-local-state .btn {
    justify-self: start;
  }

  .authenticated-shell .more-command-card {
    grid-template-columns: 44px minmax(0, 1fr) 30px;
    padding: 16px;
  }

  .authenticated-shell .more-command-card.security {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .authenticated-shell .more-command-icon {
    width: 44px;
    height: 44px;
  }

  .authenticated-shell .more-panel {
    padding: 18px;
  }

  .authenticated-shell .more-signout .btn {
    width: 100%;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .authenticated-shell .offers-page .glass-surface,
  .authenticated-shell .more-page .glass-surface {
    background: #fffdfc;
  }
}

@media (prefers-reduced-motion: reduce) {
  .authenticated-shell .offers-page *,
  .authenticated-shell .more-page * {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Phase C2.4 internal calendar */
.authenticated-shell .booking-workspace {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.authenticated-shell .booking-workspace-tabs {
  display: inline-flex;
  justify-self: start;
  gap: 4px;
  padding: 5px;
  border: 1px solid color-mix(in srgb, var(--color-border) 86%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--color-surface) 82%, transparent);
  box-shadow: 0 12px 32px rgba(41, 24, 34, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.authenticated-shell .booking-workspace-tab {
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--color-text-muted);
  font: 700 0.86rem/1.2 var(--font-ui);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.authenticated-shell .booking-workspace-tab:hover {
  color: var(--color-text-strong);
  background: color-mix(in srgb, var(--color-raw-pink) 7%, transparent);
}

.authenticated-shell .booking-workspace-tab.is-active {
  color: var(--color-text-strong);
  background: var(--color-surface);
  box-shadow: 0 8px 20px rgba(41, 24, 34, 0.1);
}

.authenticated-shell .booking-workspace-tab:focus-visible,
.authenticated-shell .calendar-page button:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

.authenticated-shell .booking-workspace-panel,
.authenticated-shell .calendar-page {
  min-width: 0;
}

.authenticated-shell .calendar-page {
  display: grid;
  gap: 18px;
}

.authenticated-shell .calendar-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  align-items: center;
  min-height: 238px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--color-raw-pink) 15%, var(--color-border));
  background:
    radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--color-coral) 18%, transparent), transparent 34%),
    linear-gradient(135deg, color-mix(in srgb, var(--color-surface) 94%, transparent), color-mix(in srgb, var(--color-soft-pink) 48%, var(--color-surface)));
}

.authenticated-shell .calendar-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.authenticated-shell .calendar-hero-copy h1 {
  margin: 7px 0 10px;
  color: var(--color-text-strong);
  font: 750 clamp(2rem, 4vw, 3.25rem)/0.98 var(--font-ui);
  letter-spacing: -0.045em;
}

.authenticated-shell .calendar-hero-copy > p {
  max-width: 580px;
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.authenticated-shell .calendar-hero-context {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 22px;
  padding: 10px 13px;
  border: 1px solid color-mix(in srgb, var(--color-border) 78%, transparent);
  border-radius: 15px;
  background: color-mix(in srgb, var(--color-surface) 74%, transparent);
}

.authenticated-shell .calendar-hero-context > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  color: var(--color-brand-deep);
  background: color-mix(in srgb, var(--color-raw-pink) 12%, var(--color-surface));
}

.authenticated-shell .calendar-hero-context svg,
.authenticated-shell .calendar-hero-mark svg,
.authenticated-shell .calendar-toolbar-actions svg,
.authenticated-shell .calendar-state-icon svg {
  width: 20px;
  height: 20px;
}

.authenticated-shell .calendar-hero-context div {
  display: grid;
  gap: 2px;
}

.authenticated-shell .calendar-hero-context strong {
  color: var(--color-text-strong);
  font-size: 0.86rem;
}

.authenticated-shell .calendar-hero-context small {
  color: var(--color-text-muted);
  font-size: 0.72rem;
}

.authenticated-shell .calendar-hero-visual {
  position: relative;
  display: grid;
  width: 190px;
  height: 190px;
  place-items: center;
  justify-self: end;
}

.authenticated-shell .calendar-hero-ring {
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--color-raw-pink) 25%, transparent);
  border-radius: 50%;
}

.authenticated-shell .calendar-hero-ring-one {
  width: 160px;
  height: 160px;
}

.authenticated-shell .calendar-hero-ring-two {
  width: 112px;
  height: 112px;
  border-style: dashed;
  animation: calendar-orbit 18s linear infinite;
}

.authenticated-shell .calendar-hero-mark {
  position: relative;
  z-index: 2;
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 27px;
  color: var(--color-surface);
  background: linear-gradient(145deg, var(--color-brand), var(--color-brand-deep));
  box-shadow: 0 22px 50px color-mix(in srgb, var(--color-brand) 30%, transparent);
  transform: rotate(-4deg);
}

.authenticated-shell .calendar-hero-mark svg {
  width: 36px;
  height: 36px;
}

.authenticated-shell .calendar-status-pill {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 3;
}

.authenticated-shell .calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: var(--color-surface);
  box-shadow: 0 12px 30px rgba(41, 24, 34, 0.06);
}

.authenticated-shell .calendar-toolbar h2 {
  margin: 4px 0 2px;
  color: var(--color-text-strong);
  font: 750 clamp(1.25rem, 2vw, 1.65rem)/1.1 var(--font-ui);
  letter-spacing: -0.025em;
}

.authenticated-shell .calendar-toolbar p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.authenticated-shell .calendar-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.authenticated-shell .calendar-toolbar-actions .btn {
  min-height: 44px;
}

.authenticated-shell .calendar-toolbar-actions .icon-button {
  display: grid;
  width: 44px;
  padding: 0;
  place-items: center;
}

.authenticated-shell .calendar-limit-note {
  padding: 11px 14px;
  border: 1px solid color-mix(in srgb, var(--color-warning) 28%, var(--color-border));
  border-radius: 14px;
  color: var(--color-warning);
  background: color-mix(in srgb, var(--color-warning) 8%, var(--color-surface));
  font-size: 0.8rem;
  font-weight: 650;
}

.authenticated-shell .calendar-day-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.authenticated-shell .calendar-day {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: color-mix(in srgb, var(--color-surface) 96%, var(--color-soft-pink));
  box-shadow: 0 10px 28px rgba(41, 24, 34, 0.055);
}

.authenticated-shell .calendar-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 82%, transparent);
  background: color-mix(in srgb, var(--color-soft-pink) 34%, var(--color-surface));
}

.authenticated-shell .calendar-day-header > div {
  display: grid;
  gap: 2px;
}

.authenticated-shell .calendar-day-header span {
  color: var(--color-text-muted);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.authenticated-shell .calendar-day-header strong {
  color: var(--color-text-strong);
  font-size: 0.95rem;
}

.authenticated-shell .calendar-day-count {
  display: grid;
  min-width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  color: var(--color-brand-deep) !important;
  background: color-mix(in srgb, var(--color-raw-pink) 12%, var(--color-surface));
  font-size: 0.78rem !important;
}

.authenticated-shell .calendar-day-events {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.authenticated-shell .calendar-day-open {
  margin: 0;
  padding: 20px 12px;
  color: var(--color-text-subtle);
  font-size: 0.82rem;
  text-align: center;
}

.authenticated-shell .calendar-event {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--color-border) 88%, transparent);
  border-left: 4px solid var(--color-brand);
  border-radius: 16px;
  background: var(--color-surface);
}

.authenticated-shell .calendar-event-cancelled {
  border-left-color: var(--color-danger);
  opacity: 0.82;
}

.authenticated-shell .calendar-event-history {
  border-left-color: var(--color-text-subtle);
}

.authenticated-shell .calendar-event-time {
  display: grid;
  align-content: start;
  gap: 3px;
  padding: 14px 10px;
  border-right: 1px solid color-mix(in srgb, var(--color-border) 78%, transparent);
  background: color-mix(in srgb, var(--color-soft-pink) 24%, var(--color-surface));
  text-align: center;
}

.authenticated-shell .calendar-event-time strong {
  color: var(--color-text-strong);
  font-size: 0.8rem;
}

.authenticated-shell .calendar-event-time span {
  color: var(--color-text-muted);
  font-size: 0.7rem;
}

.authenticated-shell .calendar-event-main {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 13px 14px;
}

.authenticated-shell .calendar-event-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.authenticated-shell .calendar-event-title > div {
  min-width: 0;
}

.authenticated-shell .calendar-event-customer {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  color: var(--color-text-muted);
  font-size: 0.72rem;
  font-weight: 650;
}

.authenticated-shell .calendar-event-customer svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.authenticated-shell .calendar-event-title h3 {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  color: var(--color-text-strong);
  font: 750 0.95rem/1.3 var(--font-ui);
}

.authenticated-shell .calendar-status {
  flex-shrink: 0;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--color-success);
  background: color-mix(in srgb, var(--color-success) 10%, var(--color-surface));
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.authenticated-shell .calendar-status-cancelled {
  color: var(--color-danger);
  background: color-mix(in srgb, var(--color-danger) 10%, var(--color-surface));
}

.authenticated-shell .calendar-status-history {
  color: var(--color-text-muted);
  background: var(--color-surface-muted);
}

.authenticated-shell .calendar-event-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 0;
}

.authenticated-shell .calendar-event-details div {
  min-width: 0;
}

.authenticated-shell .calendar-event-details dt {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--color-text-subtle);
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
}

.authenticated-shell .calendar-event-details dt svg {
  width: 12px;
  height: 12px;
}

.authenticated-shell .calendar-event-details dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  color: var(--color-text-muted);
  font-size: 0.73rem;
  font-weight: 650;
}

.authenticated-shell .calendar-local-state {
  min-height: 280px;
  border: 1px solid var(--color-border);
  border-radius: 22px;
  background: var(--color-surface);
}

.authenticated-shell .calendar-error,
.authenticated-shell .calendar-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 38px;
  text-align: left;
}

.authenticated-shell .calendar-state-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  flex-shrink: 0;
  border-radius: 18px;
  color: var(--color-brand-deep);
  background: color-mix(in srgb, var(--color-raw-pink) 11%, var(--color-surface));
}

.authenticated-shell .calendar-error h2,
.authenticated-shell .calendar-empty h2 {
  margin: 5px 0 7px;
  color: var(--color-text-strong);
  font: 750 1.35rem/1.15 var(--font-ui);
}

.authenticated-shell .calendar-error p,
.authenticated-shell .calendar-empty p {
  max-width: 520px;
  margin: 0 0 16px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.authenticated-shell .calendar-loading {
  border: 0;
  background: transparent;
}

.authenticated-shell .calendar-day-loading {
  padding: 16px;
}

.authenticated-shell .calendar-loading-line,
.authenticated-shell .calendar-loading-event span {
  display: block;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-surface-muted), color-mix(in srgb, var(--color-soft-pink) 70%, var(--color-surface)), var(--color-surface-muted));
  background-size: 200% 100%;
  animation: calendar-shimmer 1.6s ease-in-out infinite;
}

.authenticated-shell .calendar-loading-title {
  width: 42%;
  height: 18px;
  margin-bottom: 18px;
}

.authenticated-shell .calendar-loading-event {
  display: grid;
  gap: 9px;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: 15px;
}

.authenticated-shell .calendar-loading-event span:nth-child(1) {
  width: 34%;
  height: 10px;
}

.authenticated-shell .calendar-loading-event span:nth-child(2) {
  width: 70%;
  height: 16px;
}

.authenticated-shell .calendar-loading-event span:nth-child(3) {
  width: 52%;
  height: 10px;
}

@keyframes calendar-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@keyframes calendar-orbit {
  to { transform: rotate(360deg); }
}

@media (max-width: 760px) {
  .authenticated-shell .booking-workspace-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .authenticated-shell .booking-workspace-tab {
    padding-inline: 10px;
  }

  .authenticated-shell .calendar-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 260px;
    padding-bottom: 116px;
  }

  .authenticated-shell .calendar-hero-copy h1 {
    font-size: 2.15rem;
  }

  .authenticated-shell .calendar-hero-visual {
    position: absolute;
    right: 14px;
    bottom: -35px;
    width: 150px;
    height: 150px;
    opacity: 0.78;
  }

  .authenticated-shell .calendar-status-pill {
    top: auto;
    right: auto;
    bottom: 20px;
    left: 20px;
  }

  .authenticated-shell .calendar-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .authenticated-shell .calendar-toolbar-actions {
    width: 100%;
  }

  .authenticated-shell .calendar-toolbar-actions .secondary {
    flex: 1;
  }

  .authenticated-shell .calendar-day-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .authenticated-shell .calendar-event {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .authenticated-shell .calendar-event-details {
    grid-template-columns: minmax(0, 1fr);
  }

  .authenticated-shell .calendar-error,
  .authenticated-shell .calendar-empty {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px 22px;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .authenticated-shell .booking-workspace-tabs {
    background: var(--color-surface);
  }
}

.authenticated-shell.force-no-blur .booking-workspace-tabs {
  background: var(--color-surface);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

@media (prefers-reduced-motion: reduce) {
  .authenticated-shell .booking-workspace-tab,
  .authenticated-shell .calendar-hero-ring-two,
  .authenticated-shell .calendar-loading-line,
  .authenticated-shell .calendar-loading-event span {
    animation: none;
    transition: none;
  }
}


/* Phase C2.6 operator appointment change integration */
.authenticated-shell .calendar-event-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}

.authenticated-shell .calendar-event-actions .btn {
  min-height: 44px;
  flex-shrink: 0;
}

.authenticated-shell .calendar-event-actions .btn svg {
  width: 16px;
  height: 16px;
  margin-right: 6px;
}

.authenticated-shell .calendar-event-actions p {
  margin: 0;
  color: var(--color-text-subtle);
  font-size: 0.72rem;
  line-height: 1.45;
  text-align: right;
}

.authenticated-shell .calendar-pending-change {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--color-warning) 26%, var(--color-border));
  border-radius: 16px;
  background: color-mix(in srgb, var(--color-warning) 7%, var(--color-surface));
}

.authenticated-shell .calendar-pending-change header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.authenticated-shell .calendar-change-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  flex-shrink: 0;
  border-radius: 12px;
  color: var(--color-brand-deep);
  background: color-mix(in srgb, var(--color-warning) 14%, var(--color-surface));
}

.authenticated-shell .calendar-change-icon svg {
  width: 18px;
  height: 18px;
}

.authenticated-shell .calendar-pending-change header strong {
  display: block;
  color: var(--color-text-strong);
  font-size: 0.86rem;
}

.authenticated-shell .calendar-change-time {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--color-text-strong);
}

.authenticated-shell .calendar-change-time strong {
  font-size: 1rem;
}

.authenticated-shell .calendar-change-time span {
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

.authenticated-shell .calendar-pending-change p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.authenticated-shell .calendar-change-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.authenticated-shell .calendar-change-flags span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--color-text-muted);
  background: var(--color-surface);
  font-size: 0.66rem;
  font-weight: 700;
}

.authenticated-shell .calendar-change-flags svg {
  width: 12px;
  height: 12px;
}

.authenticated-shell .calendar-notification-state {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-surface);
}

.authenticated-shell .calendar-notification-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  flex-shrink: 0;
  border-radius: 10px;
  color: var(--color-text-muted);
  background: var(--color-surface-muted);
}

.authenticated-shell .calendar-notification-icon svg {
  width: 15px;
  height: 15px;
}

.authenticated-shell .calendar-notification-state strong,
.authenticated-shell .calendar-notification-state small {
  display: block;
}

.authenticated-shell .calendar-notification-state strong {
  color: var(--color-text-strong);
  font-size: 0.76rem;
}

.authenticated-shell .calendar-notification-state small {
  margin-top: 2px;
  color: var(--color-text-muted);
  font-size: 0.68rem;
  line-height: 1.45;
}

.authenticated-shell .calendar-notification-sent {
  border-color: color-mix(in srgb, var(--color-success) 28%, var(--color-border));
  background: color-mix(in srgb, var(--color-success) 6%, var(--color-surface));
}

.authenticated-shell .calendar-notification-sent .calendar-notification-icon {
  color: var(--color-success);
  background: color-mix(in srgb, var(--color-success) 12%, var(--color-surface));
}

.authenticated-shell .calendar-notification-queued {
  border-color: color-mix(in srgb, var(--color-brand-deep) 22%, var(--color-border));
  background: color-mix(in srgb, var(--color-brand-deep) 4%, var(--color-surface));
}

.authenticated-shell .calendar-notification-queued .calendar-notification-icon {
  color: var(--color-brand-deep);
  background: color-mix(in srgb, var(--color-brand-deep) 10%, var(--color-surface));
}

.authenticated-shell .calendar-notification-blocked,
.authenticated-shell .calendar-notification-failed {
  border-color: color-mix(in srgb, var(--color-danger) 24%, var(--color-border));
  background: color-mix(in srgb, var(--color-danger) 5%, var(--color-surface));
}

.authenticated-shell .calendar-notification-blocked .calendar-notification-icon,
.authenticated-shell .calendar-notification-failed .calendar-notification-icon {
  color: var(--color-danger);
  background: color-mix(in srgb, var(--color-danger) 10%, var(--color-surface));
}

.authenticated-shell .appointment-change-feedback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-surface-muted);
}

.authenticated-shell .appointment-change-feedback.pending {
  justify-content: flex-start;
  color: var(--color-text-muted);
  font-size: 0.76rem;
}

.authenticated-shell .appointment-change-feedback.success {
  border-color: color-mix(in srgb, var(--color-success) 25%, var(--color-border));
  background: color-mix(in srgb, var(--color-success) 6%, var(--color-surface));
}

.authenticated-shell .appointment-change-feedback.error,
.authenticated-shell .appointment-change-feedback.ambiguous,
.authenticated-shell .appointment-change-feedback.refresh-failed {
  border-color: color-mix(in srgb, var(--color-warning) 28%, var(--color-border));
  background: color-mix(in srgb, var(--color-warning) 6%, var(--color-surface));
}

.authenticated-shell .appointment-change-feedback strong,
.authenticated-shell .appointment-change-feedback span {
  display: block;
}

.authenticated-shell .appointment-change-feedback strong {
  color: var(--color-text-strong);
  font-size: 0.78rem;
}

.authenticated-shell .appointment-change-feedback span {
  margin-top: 2px;
  color: var(--color-text-muted);
  font-size: 0.7rem;
  line-height: 1.4;
}

.authenticated-shell .appointment-change-feedback-actions {
  display: flex;
  flex-shrink: 0;
  gap: 7px;
}

.authenticated-shell .appointment-change-feedback-actions .btn {
  min-height: 38px;
  padding: 7px 10px;
  font-size: 0.7rem;
}

.authenticated-shell .calendar-change-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: 17px;
  background: var(--color-surface);
}

.authenticated-shell .calendar-change-notice > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex-shrink: 0;
  border-radius: 11px;
  color: var(--color-success);
  background: color-mix(in srgb, var(--color-success) 10%, var(--color-surface));
}

.authenticated-shell .calendar-change-notice.warning > span {
  color: var(--color-warning);
  background: color-mix(in srgb, var(--color-warning) 10%, var(--color-surface));
}

.authenticated-shell .calendar-change-notice svg {
  width: 18px;
  height: 18px;
}

.authenticated-shell .calendar-change-notice strong {
  color: var(--color-text-strong);
}

.authenticated-shell .calendar-change-notice p {
  margin: 3px 0 0;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.authenticated-shell .appointment-change-dialog {
  width: min(680px, calc(100vw - 28px));
  max-height: min(880px, calc(100vh - 28px));
  overflow-y: auto;
}

.authenticated-shell .appointment-change-dialog > p {
  margin: 0 0 18px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.authenticated-shell .appointment-change-current {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: var(--color-surface-muted);
}

.authenticated-shell .appointment-change-current span,
.authenticated-shell .appointment-change-current small {
  color: var(--color-text-subtle);
  font-size: 0.72rem;
}

.authenticated-shell .appointment-change-current strong {
  color: var(--color-text-strong);
  font-size: 1rem;
}

.authenticated-shell .appointment-change-dialog form {
  display: grid;
  gap: 14px;
}

.authenticated-shell .appointment-change-dialog label {
  display: grid;
  gap: 7px;
  color: var(--color-text-strong);
  font-size: 0.78rem;
  font-weight: 750;
}

.authenticated-shell .appointment-change-dialog label > span {
  color: var(--color-text-subtle);
  font-weight: 600;
}

.authenticated-shell .appointment-change-dialog input,
.authenticated-shell .appointment-change-dialog textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--color-border-strong);
  border-radius: 13px;
  background: var(--color-surface);
  color: var(--color-text-strong);
  font: inherit;
}

.authenticated-shell .appointment-change-dialog input {
  min-height: 46px;
  padding: 10px 12px;
}

.authenticated-shell .appointment-change-dialog textarea {
  min-height: 92px;
  padding: 11px 12px;
  resize: vertical;
}

.authenticated-shell .appointment-change-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.authenticated-shell .appointment-change-boundary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 13px;
  color: var(--color-text-muted);
  background: color-mix(in srgb, var(--color-warning) 7%, var(--color-surface));
  font-size: 0.74rem;
}

.authenticated-shell .appointment-change-boundary svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.authenticated-shell .appointment-change-dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 5px;
}

@media (max-width: 760px) {
  .authenticated-shell .calendar-event-actions,
  .authenticated-shell .appointment-change-feedback {
    align-items: stretch;
    flex-direction: column;
  }

  .authenticated-shell .calendar-event-actions p {
    text-align: left;
  }

  .authenticated-shell .calendar-event-actions .btn,
  .authenticated-shell .appointment-change-feedback-actions,
  .authenticated-shell .appointment-change-feedback-actions .btn {
    width: 100%;
  }

  .authenticated-shell .appointment-change-feedback-actions {
    flex-direction: column;
  }

  .authenticated-shell .appointment-change-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .authenticated-shell .appointment-change-dialog {
    width: calc(100vw - 18px);
    max-height: calc(100vh - 18px);
  }

  .authenticated-shell .appointment-change-dialog footer {
    flex-direction: column-reverse;
  }

  .authenticated-shell .appointment-change-dialog footer .btn {
    width: 100%;
    min-height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .authenticated-shell .appointment-change-feedback .spinner {
    animation: none;
  }
}


/* Phase C3.1 Specialists management */
.authenticated-shell .specialists-page {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.authenticated-shell .specialists-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 2px 0;
}

.authenticated-shell .specialists-hero > div {
  max-width: 760px;
}

.authenticated-shell .specialists-back {
  display: inline-flex;
  margin: 0 0 18px;
  min-height: 44px;
  align-items: center;
  color: var(--color-brand-deep);
  font-weight: 800;
}

.authenticated-shell .specialists-hero h1,
.authenticated-shell .specialists-list-heading h2,
.authenticated-shell .specialist-settings h2,
.authenticated-shell .specialist-editor-header h2 {
  font-family: ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  color: var(--color-plum);
  letter-spacing: -0.03em;
}

.authenticated-shell .specialists-hero h1 {
  margin: 5px 0 10px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1;
}

.authenticated-shell .specialists-hero p,
.authenticated-shell .specialist-settings p,
.authenticated-shell .specialist-editor-header p,
.authenticated-shell .specialists-empty p {
  color: var(--color-slate);
}

.authenticated-shell .specialist-kicker {
  margin: 0;
  color: var(--color-brand-deep);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.authenticated-shell .specialists-add {
  flex: 0 0 auto;
  min-height: 48px;
  margin-top: 38px;
}

.authenticated-shell .specialist-settings {
  padding: 22px;
  border: 1px solid rgba(203, 200, 209, .72);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 94% 0%, rgba(232, 75, 106, .10), transparent 26%),
    rgba(255, 253, 252, .93);
  box-shadow: var(--shadow-2);
}

.authenticated-shell .specialist-settings-heading,
.authenticated-shell .specialists-list-heading,
.authenticated-shell .specialist-section-heading,
.authenticated-shell .specialist-settings-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.authenticated-shell .specialist-settings-heading h2,
.authenticated-shell .specialists-list-heading h2 {
  margin: 3px 0 0;
  font-size: 27px;
}

.authenticated-shell .specialist-feature-state,
.authenticated-shell .specialist-plan-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--color-surface-secondary);
  color: var(--color-slate);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .04em;
  white-space: nowrap;
}

.authenticated-shell .specialist-feature-state.is-live {
  background: rgba(22, 116, 84, .10);
  color: var(--color-success);
}

.authenticated-shell .specialist-feature-state.is-ready {
  background: rgba(149, 96, 13, .10);
  color: var(--color-warning);
}

.authenticated-shell .specialist-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  padding: 17px 18px;
  border: 1px solid var(--color-border);
  border-radius: 15px;
  background: rgba(255, 255, 255, .72);
}

.authenticated-shell .specialist-toggle-row > span {
  display: grid;
  gap: 3px;
}

.authenticated-shell .specialist-toggle-row small,
.authenticated-shell .specialist-settings-footer p,
.authenticated-shell .specialist-section-heading small,
.authenticated-shell .specialist-choice small,
.authenticated-shell .specialist-day-choice small {
  color: var(--color-text-muted);
  font-size: 12px;
}

.authenticated-shell .specialist-toggle-row input {
  appearance: none;
  width: 48px;
  height: 28px;
  flex: 0 0 auto;
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  background: var(--color-surface-secondary);
  position: relative;
  transition: .2s ease;
}

.authenticated-shell .specialist-toggle-row input::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 3px;
  left: 4px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 6px rgba(18,18,22,.18);
  transition: .2s ease;
}

.authenticated-shell .specialist-toggle-row input:checked {
  border-color: var(--color-brand-primary);
  background: var(--gradient-brand);
}

.authenticated-shell .specialist-toggle-row input:checked::after {
  transform: translateX(19px);
}

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

.authenticated-shell .specialist-label-grid {
  margin-top: 16px;
}

.authenticated-shell .specialist-label-grid label,
.authenticated-shell .specialist-form-grid label,
.authenticated-shell .specialist-field-full {
  display: grid;
  gap: 7px;
  color: var(--color-charcoal);
  font-size: 12px;
  font-weight: 800;
}

.authenticated-shell .specialist-label-grid input,
.authenticated-shell .specialist-form-grid input,
.authenticated-shell .specialist-form-grid select,
.authenticated-shell .specialist-field-full textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: rgba(255,255,255,.92);
  color: var(--color-ink);
  padding: 10px 12px;
  font-weight: 550;
}

.authenticated-shell .specialist-field-full textarea {
  min-height: 96px;
  resize: vertical;
}

.authenticated-shell .specialist-settings-footer {
  align-items: center;
  margin-top: 16px;
}

.authenticated-shell .specialist-settings-footer p {
  margin: 0;
}

.authenticated-shell .specialist-settings-locked > p {
  margin: 16px 0 0;
}

.authenticated-shell .specialist-settings-note {
  font-size: 12px;
}

.authenticated-shell .specialist-notice {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(22, 116, 84, .08);
  color: var(--color-success);
  border: 1px solid rgba(22, 116, 84, .18);
}

.authenticated-shell .specialist-notice.error {
  background: rgba(184, 58, 77, .08);
  color: var(--color-error);
  border-color: rgba(184, 58, 77, .18);
}

.authenticated-shell .specialist-notice span {
  color: var(--color-charcoal);
  font-size: 13px;
}

.authenticated-shell .specialists-list-section {
  display: grid;
  gap: 16px;
}

.authenticated-shell .specialists-list-heading {
  align-items: end;
}

.authenticated-shell .specialists-list-heading > span {
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 800;
}

.authenticated-shell .specialists-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.authenticated-shell .specialist-card {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: var(--color-pearl);
  box-shadow: var(--shadow-2);
}

.authenticated-shell .specialist-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, var(--color-brand-mist), #efe8df);
}

.authenticated-shell .specialist-card-media img,
.authenticated-shell .specialist-editor-image img,
.authenticated-shell .specialist-local-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.authenticated-shell .specialist-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 150px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  background:
    radial-gradient(circle at 50% 30%, rgba(255,255,255,.9), transparent 25%),
    linear-gradient(145deg, #f6e7eb, #efe1d3);
  color: var(--color-plum);
}

.authenticated-shell .specialist-image-placeholder span {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.82);
  font-family: ui-serif, Georgia, serif;
  font-size: 30px;
}

.authenticated-shell .specialist-image-placeholder small {
  color: var(--color-text-muted);
  font-weight: 800;
}

.authenticated-shell .specialist-status {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.90);
  color: var(--color-slate);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .05em;
  box-shadow: 0 5px 15px rgba(18,18,22,.12);
}

.authenticated-shell .specialist-status-active {
  color: var(--color-success);
}

.authenticated-shell .specialist-status-inactive {
  color: var(--color-error);
}

.authenticated-shell .specialist-card-body {
  display: grid;
  gap: 15px;
  padding: 18px;
}

.authenticated-shell .specialist-card-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.authenticated-shell .specialist-card-title h2 {
  margin: 3px 0 2px;
  color: var(--color-plum);
  font-size: 22px;
  line-height: 1.1;
}

.authenticated-shell .specialist-card-title p:not(.specialist-kicker),
.authenticated-shell .specialist-card-bio {
  margin: 0;
  color: var(--color-slate);
  font-size: 13px;
}

.authenticated-shell .specialist-icon-button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 11px;
  background: white;
  color: var(--color-brand-deep);
  font-size: 12px;
  font-weight: 850;
}

.authenticated-shell .specialist-meta-group {
  display: grid;
  gap: 7px;
}

.authenticated-shell .specialist-meta-label,
.authenticated-shell .specialist-days-line span {
  color: var(--color-text-muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

.authenticated-shell .specialist-chip {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--color-brand-mist);
  color: var(--color-plum-elevated);
  font-size: 11px;
  font-weight: 750;
}

.authenticated-shell .specialist-chip.is-muted {
  background: var(--color-pearl-cool);
  color: var(--color-text-muted);
}

.authenticated-shell .specialist-days-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

.authenticated-shell .specialist-days-line strong {
  color: var(--color-charcoal);
  font-size: 12px;
}

.authenticated-shell .specialist-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.authenticated-shell .specialist-card-actions .btn {
  min-height: 44px;
}

.authenticated-shell .specialists-empty,
.authenticated-shell .specialists-error {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 150px;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
}

.authenticated-shell .specialists-empty > div:nth-child(2),
.authenticated-shell .specialists-error {
  flex: 1;
}

.authenticated-shell .specialists-empty p,
.authenticated-shell .specialists-error p {
  margin: 4px 0 0;
}

.authenticated-shell .specialist-empty-avatar {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: white;
  font-family: ui-serif, Georgia, serif;
  font-size: 30px;
}

.authenticated-shell .specialists-loading-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.authenticated-shell .specialists-loading-grid span {
  display: block;
  height: 360px;
  border-radius: 20px;
  background: linear-gradient(100deg, #eee9e7 20%, #faf7f5 40%, #eee9e7 60%);
  background-size: 200% 100%;
  animation: specialist-shimmer 1.2s infinite linear;
}

@keyframes specialist-shimmer {
  to { background-position-x: -200%; }
}

.authenticated-shell .specialist-editor-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  justify-content: flex-end;
  background: rgba(24, 14, 20, .38);
  backdrop-filter: blur(6px);
}

.authenticated-shell .specialist-editor-sheet {
  width: min(760px, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--color-pearl);
  box-shadow: -20px 0 60px rgba(18,18,22,.20);
}

.authenticated-shell .specialist-editor-header {
  position: relative;
  padding: 28px 72px 20px 28px;
  border-bottom: 1px solid var(--color-border);
}

.authenticated-shell .specialist-editor-header h2 {
  margin: 4px 0 7px;
  font-size: 32px;
}

.authenticated-shell .specialist-editor-header p {
  max-width: 610px;
  margin: 0;
  font-size: 13px;
}

.authenticated-shell .specialist-editor-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: white;
  color: var(--color-plum);
  font-size: 24px;
}

.authenticated-shell .specialist-editor-sheet form {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.authenticated-shell .specialist-editor-scroll {
  min-height: 0;
  flex: 1;
  overflow: auto;
  display: grid;
  gap: 18px;
  padding: 22px 28px 36px;
}

.authenticated-shell .specialist-editor-section,
.authenticated-shell .specialist-language-block {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: 17px;
  background: var(--color-pearl-cool);
}

.authenticated-shell .specialist-language-block {
  margin: 0;
}

.authenticated-shell .specialist-language-block legend {
  padding: 0 7px;
  color: var(--color-brand-deep);
  font-size: 12px;
  font-weight: 900;
}

.authenticated-shell .specialist-section-heading {
  align-items: end;
}

.authenticated-shell .specialist-section-heading span {
  color: var(--color-brand-deep);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.authenticated-shell .specialist-section-heading h3 {
  margin: 2px 0 0;
  color: var(--color-plum);
  font-size: 18px;
}

.authenticated-shell .specialist-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.authenticated-shell .specialist-choice {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: white;
}

.authenticated-shell .specialist-choice input {
  width: 20px;
  height: 20px;
  accent-color: var(--color-brand-primary);
}

.authenticated-shell .specialist-choice span {
  display: grid;
}

.authenticated-shell .specialist-day-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}

.authenticated-shell .specialist-day-choice {
  min-height: 66px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1px;
  border: 1px solid var(--color-border);
  border-radius: 11px;
  background: white;
  cursor: pointer;
}

.authenticated-shell .specialist-day-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.authenticated-shell .specialist-day-choice:has(input:checked) {
  border-color: var(--color-brand-primary);
  background: var(--color-brand-mist);
  color: var(--color-brand-deep);
}

.authenticated-shell .specialist-day-choice span {
  font-size: 12px;
  font-weight: 900;
}

.authenticated-shell .specialist-day-choice small {
  font-size: 9px;
}

.authenticated-shell .specialist-editor-gallery {
  display: grid;
  gap: 9px;
}

.authenticated-shell .specialist-editor-image {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 7px;
  border: 1px solid var(--color-border);
  border-radius: 13px;
  background: white;
}

.authenticated-shell .specialist-editor-image.is-primary {
  border-color: rgba(232,75,106,.42);
  box-shadow: inset 3px 0 0 var(--color-brand-primary);
}

.authenticated-shell .specialist-editor-image img,
.authenticated-shell .specialist-editor-image .specialist-image-placeholder {
  width: 64px;
  height: 64px;
  min-height: 64px;
  border-radius: 10px;
}

.authenticated-shell .specialist-editor-image > div:nth-child(2) {
  min-width: 0;
  display: grid;
}

.authenticated-shell .specialist-editor-image small {
  overflow: hidden;
  color: var(--color-text-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.authenticated-shell .specialist-editor-image-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.authenticated-shell .text-btn.danger {
  color: var(--color-error);
}

.authenticated-shell .specialist-editor-media-empty {
  padding: 18px;
  border: 1px dashed var(--color-border-strong);
  border-radius: 13px;
  text-align: center;
}

.authenticated-shell .specialist-editor-media-empty p {
  margin: 5px 0 0;
  color: var(--color-text-muted);
  font-size: 12px;
}

.authenticated-shell .specialist-upload-drop {
  position: relative;
  min-height: 86px;
  display: grid;
  place-items: center;
  padding: 16px;
  border: 1px dashed var(--color-brand-primary);
  border-radius: 14px;
  background: var(--color-brand-mist);
  text-align: center;
}

.authenticated-shell .specialist-upload-drop input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.authenticated-shell .specialist-upload-drop span {
  display: grid;
  gap: 3px;
  pointer-events: none;
}

.authenticated-shell .specialist-upload-drop small {
  color: var(--color-slate);
}

.authenticated-shell .specialist-local-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.authenticated-shell .specialist-local-preview-item {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 11px;
  background: white;
}

.authenticated-shell .specialist-local-preview-item img {
  aspect-ratio: 1;
}

.authenticated-shell .specialist-local-preview-item small {
  display: block;
  overflow: hidden;
  padding: 6px;
  color: var(--color-text-muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.authenticated-shell .specialist-inline-error {
  margin: 14px 28px 0;
  padding: 11px 13px;
  border: 1px solid rgba(184,58,77,.18);
  border-radius: 11px;
  background: rgba(184,58,77,.07);
  color: var(--color-error);
  font-size: 13px;
  font-weight: 750;
}

.authenticated-shell .specialist-editor-footer {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 28px;
  border-top: 1px solid var(--color-border);
  background: rgba(255,253,252,.97);
}

.authenticated-shell .specialist-editor-footer > div {
  display: flex;
  gap: 9px;
}

@media (max-width: 1100px) {
  .authenticated-shell .specialists-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 899px) {
  .authenticated-shell .specialists-page {
    gap: 18px;
  }

  .authenticated-shell .specialists-hero {
    display: grid;
    gap: 12px;
  }

  .authenticated-shell .specialists-add {
    width: 100%;
    margin-top: 0;
  }

  .authenticated-shell .specialist-label-grid,
  .authenticated-shell .specialist-form-grid,
  .authenticated-shell .specialist-choice-grid {
    grid-template-columns: 1fr;
  }

  .authenticated-shell .specialists-card-grid,
  .authenticated-shell .specialists-loading-grid {
    grid-template-columns: 1fr;
  }

  .authenticated-shell .specialist-settings {
    padding: 17px;
  }

  .authenticated-shell .specialist-settings-heading,
  .authenticated-shell .specialist-settings-footer {
    display: grid;
  }

  .authenticated-shell .specialist-settings-footer .btn {
    width: 100%;
  }

  .authenticated-shell .specialist-notice {
    grid-template-columns: 1fr auto;
  }

  .authenticated-shell .specialist-notice span {
    grid-column: 1 / -1;
  }

  .authenticated-shell .specialist-card-media {
    aspect-ratio: 16 / 10;
  }

  .authenticated-shell .specialist-editor-sheet {
    width: 100%;
  }

  .authenticated-shell .specialist-editor-header {
    padding: 22px 62px 17px 18px;
  }

  .authenticated-shell .specialist-editor-scroll {
    padding: 16px 14px 28px;
  }

  .authenticated-shell .specialist-editor-section,
  .authenticated-shell .specialist-language-block {
    padding: 14px;
  }

  .authenticated-shell .specialist-day-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .authenticated-shell .specialist-editor-image {
    grid-template-columns: 56px 1fr;
  }

  .authenticated-shell .specialist-editor-image img,
  .authenticated-shell .specialist-editor-image .specialist-image-placeholder {
    width: 56px;
    height: 56px;
    min-height: 56px;
  }

  .authenticated-shell .specialist-editor-image-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding: 0 6px 5px;
  }

  .authenticated-shell .specialist-local-preview {
    grid-template-columns: repeat(3, 1fr);
  }

  .authenticated-shell .specialist-editor-footer {
    padding: 12px 14px;
  }

  .authenticated-shell .specialist-editor-footer > div {
    flex: 1;
  }

  .authenticated-shell .specialist-editor-footer .btn {
    min-height: 48px;
  }
}

@media (max-width: 520px) {
  .authenticated-shell .specialist-day-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .authenticated-shell .specialist-card-actions {
    grid-template-columns: 1fr;
  }

  .authenticated-shell .specialist-editor-footer {
    display: grid;
  }

  .authenticated-shell .specialist-editor-footer > div {
    display: grid;
    grid-template-columns: 1fr;
  }

  .authenticated-shell .specialist-editor-footer > .btn,
  .authenticated-shell .specialist-editor-footer > div .btn {
    width: 100%;
  }

  .authenticated-shell .specialist-local-preview {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* Offer image manager, M038 UI */
.authenticated-shell .offer-media-footer {
  align-items: center;
  gap: 12px;
}
.authenticated-shell .offer-media-footer .btn {
  min-height: 44px;
}
.authenticated-shell .offer-media-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 76px;
  padding: 10px 12px;
  border: 1px solid rgba(184,117,107,.18);
  border-radius: 14px;
  background: rgba(255,255,255,.46);
  overflow: hidden;
}
.authenticated-shell .offer-media-strip.empty {
  color: var(--muted);
}
.authenticated-shell .offer-media-strip > img,
.authenticated-shell .offer-media-thumb-placeholder {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 11px;
  object-fit: cover;
  background: var(--secondary-cream);
  display: grid;
  place-items: center;
}
.authenticated-shell .offer-media-thumb-placeholder svg,
.authenticated-shell .offer-media-strip.empty svg {
  width: 22px;
  height: 22px;
}
.authenticated-shell .offer-media-strip > small {
  margin-left: auto;
  color: var(--muted);
}
.authenticated-shell .offer-media-notice {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: 14px;
  border: 1px solid rgba(22,116,84,.22);
  background: rgba(22,116,84,.08);
}
.authenticated-shell .offer-media-notice.error {
  border-color: rgba(184,58,77,.22);
  background: rgba(184,58,77,.08);
}
.authenticated-shell .offer-media-notice div {
  display: grid;
  gap: 2px;
}
.authenticated-shell .offer-media-notice span {
  color: var(--muted);
  font-size: 13px;
}
.authenticated-shell .offer-media-notice button {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 24px;
}
.authenticated-shell .offer-media-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(24,16,21,.42);
  backdrop-filter: blur(10px);
}
.authenticated-shell .offer-media-sheet {
  width: min(760px, 100%);
  max-height: min(820px, calc(100vh - 48px));
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto;
  border-radius: 24px;
  background: rgba(255,253,252,.98);
  box-shadow: var(--shadow-4);
}
.authenticated-shell .offer-media-sheet > header,
.authenticated-shell .offer-media-sheet > footer {
  padding: 20px 22px;
  border-bottom: 1px solid var(--warm-border);
}
.authenticated-shell .offer-media-sheet > footer {
  border-bottom: 0;
  border-top: 1px solid var(--warm-border);
  color: var(--muted);
}
.authenticated-shell .offer-media-sheet > header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}
.authenticated-shell .offer-media-sheet h2 {
  margin: 3px 0 4px;
  font-family: ui-serif, "Iowan Old Style", Georgia, serif;
  font-size: 27px;
}
.authenticated-shell .offer-media-sheet header p {
  margin: 0;
  color: var(--muted);
}
.authenticated-shell .offer-media-close {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid var(--warm-border);
  border-radius: 12px;
  background: var(--surface-cream);
  font-size: 24px;
}
.authenticated-shell .offer-media-scroll {
  overflow: auto;
  padding: 18px 22px 24px;
}
.authenticated-shell .offer-media-gallery {
  display: grid;
  gap: 12px;
}
.authenticated-shell .offer-media-item {
  display: grid;
  grid-template-columns: 86px minmax(0,1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--warm-border);
  border-radius: 16px;
  background: var(--surface-cream);
}
.authenticated-shell .offer-media-item img,
.authenticated-shell .offer-media-item-placeholder {
  width: 86px;
  height: 86px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--secondary-cream);
  display: grid;
  place-items: center;
}
.authenticated-shell .offer-media-item-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.authenticated-shell .offer-media-item-actions .btn {
  min-height: 44px;
}
.authenticated-shell .btn.danger {
  color: var(--color-error);
  border-color: rgba(184,58,77,.25);
  background: rgba(184,58,77,.06);
}
.authenticated-shell .offer-media-empty,
.authenticated-shell .offer-media-loading {
  min-height: 120px;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.authenticated-shell .offer-media-error {
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(184,58,77,.08);
  color: var(--color-error);
}
.authenticated-shell .offer-media-upload {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--warm-border);
}
.authenticated-shell .offer-media-upload label {
  display: grid;
  gap: 4px;
}
.authenticated-shell .offer-media-upload label small {
  color: var(--muted);
}
.authenticated-shell .offer-media-upload input[type=file] {
  margin-top: 8px;
  width: 100%;
  min-height: 46px;
  padding: 10px;
  border: 1px dashed var(--warm-border);
  border-radius: 12px;
  background: var(--surface-cream);
}
.authenticated-shell .offer-media-local-preview {
  display: flex;
  gap: 9px;
  overflow-x: auto;
}
.authenticated-shell .offer-media-local-preview-item {
  width: 92px;
  flex: 0 0 92px;
  display: grid;
  gap: 4px;
}
.authenticated-shell .offer-media-local-preview-item img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 11px;
}
.authenticated-shell .offer-media-local-preview-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 620px) {
  .authenticated-shell .offer-media-backdrop {
    align-items: end;
    padding: 0;
  }
  .authenticated-shell .offer-media-sheet {
    width: 100%;
    max-height: 92vh;
    border-radius: 24px 24px 0 0;
  }
  .authenticated-shell .offer-media-sheet > header,
  .authenticated-shell .offer-media-sheet > footer,
  .authenticated-shell .offer-media-scroll {
    padding-left: 16px;
    padding-right: 16px;
  }
  .authenticated-shell .offer-media-item {
    grid-template-columns: 72px minmax(0,1fr);
  }
  .authenticated-shell .offer-media-item img,
  .authenticated-shell .offer-media-item-placeholder {
    width: 72px;
    height: 72px;
  }
  .authenticated-shell .offer-media-item-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }
  .authenticated-shell .offer-media-item-actions .btn {
    flex: 1 1 30%;
  }
  .authenticated-shell .offer-media-footer {
    flex-direction: column;
    align-items: stretch;
  }
}
@media (prefers-reduced-motion: reduce) {
  .authenticated-shell .offer-media-backdrop,
  .authenticated-shell .offer-media-sheet {
    scroll-behavior: auto;
  }
}


/* Protected Offer editor, M039 */
.authenticated-shell .offers-hero-actions {
  display: grid;
  gap: 12px;
  align-content: start;
}
.authenticated-shell .offers-hero-actions > .btn {
  justify-self: end;
  min-height: 46px;
}
.authenticated-shell .offer-card-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.authenticated-shell .offer-card-actions > span {
  color: var(--color-brand-deep);
  font-size: 11px;
  font-weight: 700;
}
.authenticated-shell .offer-card-actions > div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.authenticated-shell .offer-card-actions .btn {
  min-height: 44px;
}
.authenticated-shell .offer-editor-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(38, 24, 31, .32);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.authenticated-shell .offer-editor-sheet {
  width: min(920px, 100%);
  max-height: min(92vh, 980px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-radius: 28px;
  box-shadow: 0 28px 90px rgba(73, 39, 51, .24);
  background: rgba(255, 253, 252, .98);
}
.authenticated-shell .offer-editor-sheet > form {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}
.authenticated-shell .offer-editor-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px 18px;
  border-bottom: 1px solid var(--warm-border);
}
.authenticated-shell .offer-editor-header h2 {
  margin: 4px 0 5px;
  font-family: ui-serif, "Iowan Old Style", Georgia, serif;
  font-size: clamp(28px, 4vw, 38px);
  color: var(--color-ink);
}
.authenticated-shell .offer-editor-header p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}
.authenticated-shell .offer-editor-close {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--warm-border);
  border-radius: 50%;
  background: var(--surface-cream);
  color: var(--color-ink);
  font-size: 24px;
  cursor: pointer;
}
.authenticated-shell .offer-editor-scroll {
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 18px;
  padding: 22px 26px 26px;
}
.authenticated-shell .offer-editor-loading {
  min-height: 240px;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.authenticated-shell .offer-editor-error {
  margin: 16px 26px 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(184,58,77,.22);
  background: rgba(184,58,77,.06);
  color: var(--color-error);
}
.authenticated-shell .offer-editor-section {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--warm-border);
  border-radius: 20px;
  background: rgba(255,255,255,.72);
}
.authenticated-shell .offer-editor-section-heading {
  display: grid;
  gap: 2px;
}
.authenticated-shell .offer-editor-section-heading > span {
  color: var(--color-brand-deep);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 10px;
  font-weight: 800;
}
.authenticated-shell .offer-editor-section-heading h3 {
  margin: 0;
  color: var(--color-ink);
  font-size: 18px;
}
.authenticated-shell .offer-editor-section-heading small {
  color: var(--muted);
}
.authenticated-shell .offer-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.authenticated-shell .offer-editor-wide {
  grid-column: 1 / -1;
}
.authenticated-shell .offer-editor-section label {
  display: grid;
  gap: 6px;
  color: var(--color-charcoal);
  font-size: 12px;
  font-weight: 700;
}
.authenticated-shell .offer-editor-section input[type="text"],
.authenticated-shell .offer-editor-section input:not([type]),
.authenticated-shell .offer-editor-section input[type="datetime-local"],
.authenticated-shell .offer-editor-section select,
.authenticated-shell .offer-editor-section textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
  color: var(--color-ink);
  padding: 10px 12px;
  font: inherit;
  font-weight: 500;
}
.authenticated-shell .offer-editor-section textarea {
  resize: vertical;
  min-height: 92px;
}
.authenticated-shell .offer-editor-toggle {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px !important;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--surface-cream);
}
.authenticated-shell .offer-editor-toggle input,
.authenticated-shell .offer-editor-choice input,
.authenticated-shell .offer-editor-scope-mode input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-brand-deep);
}
.authenticated-shell .offer-editor-toggle span,
.authenticated-shell .offer-editor-choice span,
.authenticated-shell .offer-editor-scope-mode span {
  display: grid;
  gap: 2px;
}
.authenticated-shell .offer-editor-toggle small,
.authenticated-shell .offer-editor-choice small,
.authenticated-shell .offer-editor-scope-mode small,
.authenticated-shell .offer-editor-section label > small,
.authenticated-shell .offer-editor-empty-note {
  color: var(--muted);
  font-weight: 500;
}
.authenticated-shell .offer-editor-scope-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.authenticated-shell .offer-editor-scope-mode label,
.authenticated-shell .offer-editor-choice {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px !important;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--surface-cream);
}
.authenticated-shell .offer-editor-scope-mode label.is-disabled {
  opacity: .56;
}
.authenticated-shell .offer-editor-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.authenticated-shell .offer-editor-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 26px 20px;
  border-top: 1px solid var(--warm-border);
  background: rgba(255,253,252,.96);
}
.authenticated-shell .offer-editor-footer > div {
  display: flex;
  gap: 8px;
  align-items: center;
}
.authenticated-shell .offer-editor-footer small {
  color: var(--muted);
}
.authenticated-shell .offer-editor-close:focus-visible,
.authenticated-shell .offer-editor-sheet button:focus-visible,
.authenticated-shell .offer-editor-sheet input:focus-visible,
.authenticated-shell .offer-editor-sheet select:focus-visible,
.authenticated-shell .offer-editor-sheet textarea:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}
@media (max-width: 759px) {
  .authenticated-shell .offers-hero-actions > .btn {
    justify-self: stretch;
  }
  .authenticated-shell .offer-card-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .authenticated-shell .offer-card-actions > div {
    width: 100%;
  }
  .authenticated-shell .offer-card-actions .btn {
    flex: 1 1 140px;
  }
  .authenticated-shell .offer-editor-backdrop {
    align-items: end;
    padding: 0;
  }
  .authenticated-shell .offer-editor-sheet {
    width: 100%;
    max-height: 94vh;
    border-radius: 24px 24px 0 0;
  }
  .authenticated-shell .offer-editor-header,
  .authenticated-shell .offer-editor-scroll,
  .authenticated-shell .offer-editor-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
  .authenticated-shell .offer-editor-grid,
  .authenticated-shell .offer-editor-scope-mode,
  .authenticated-shell .offer-editor-choice-grid {
    grid-template-columns: 1fr;
  }
  .authenticated-shell .offer-editor-wide {
    grid-column: auto;
  }
  .authenticated-shell .offer-editor-footer {
    align-items: stretch;
    flex-direction: column;
  }
  .authenticated-shell .offer-editor-footer > div {
    width: 100%;
  }
  .authenticated-shell .offer-editor-footer .btn {
    flex: 1 1 0;
  }
}


/* M040 Protected Welcome Content Operator Console UI */
.authenticated-shell .welcome-manager-backdrop {
  position: fixed;
  inset: 0;
  z-index: 86;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(34, 20, 28, 0.32);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.authenticated-shell .welcome-manager-sheet {
  width: min(1120px, 100%);
  max-height: min(880px, calc(100vh - 48px));
  overflow: auto;
  border-radius: 28px;
  background: rgba(255, 253, 252, 0.96);
  box-shadow: 0 32px 90px rgba(54, 28, 42, 0.22);
}

.authenticated-shell .welcome-manager-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 24px 26px 20px;
  border-bottom: 1px solid var(--warm-border);
  background: rgba(255, 253, 252, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.authenticated-shell .welcome-manager-header h2 {
  margin: 4px 0 6px;
  color: var(--color-ink);
  font: 800 clamp(28px, 4vw, 40px)/1 var(--font-ui);
  letter-spacing: -0.04em;
}

.authenticated-shell .welcome-manager-header p {
  max-width: 700px;
  margin: 0;
  color: var(--color-slate);
  font-size: 14px;
}

.authenticated-shell .welcome-icon-button {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
  color: var(--color-plum);
  font: 500 27px/1 var(--font-ui);
  cursor: pointer;
}

.authenticated-shell .welcome-manager-body {
  display: grid;
  gap: 16px;
  padding: 22px 26px 28px;
}

.authenticated-shell .welcome-manager-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: var(--surface-cream);
}

.authenticated-shell .welcome-manager-toolbar > div {
  display: grid;
  gap: 2px;
}

.authenticated-shell .welcome-manager-toolbar small,
.authenticated-shell .welcome-card header small,
.authenticated-shell .welcome-editor-header small,
.authenticated-shell .welcome-empty small,
.authenticated-shell .welcome-error small {
  color: var(--color-brand-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.authenticated-shell .welcome-manager-toolbar strong {
  color: var(--color-ink);
  font-size: 14px;
}

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

.authenticated-shell .welcome-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
}

.authenticated-shell .welcome-card > header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
}

.authenticated-shell .welcome-card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--color-brand-mist);
  color: var(--color-brand-deep);
}

.authenticated-shell .welcome-card-icon svg,
.authenticated-shell .welcome-card-meta svg,
.authenticated-shell .welcome-editor-identity > span svg,
.authenticated-shell .welcome-empty > span svg,
.authenticated-shell .welcome-error > span svg {
  width: 19px;
  height: 19px;
}

.authenticated-shell .welcome-card h3,
.authenticated-shell .welcome-empty h3,
.authenticated-shell .welcome-error h3,
.authenticated-shell .welcome-editor-header h3 {
  margin: 2px 0 0;
  color: var(--color-ink);
  font: 800 18px/1.15 var(--font-ui);
  letter-spacing: -0.02em;
}

.authenticated-shell .welcome-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  background: var(--color-surface-secondary);
  color: var(--color-slate);
}

.authenticated-shell .welcome-status.active {
  background: rgba(22, 116, 84, 0.09);
  color: var(--color-success);
}

.authenticated-shell .welcome-status.paused {
  background: rgba(149, 96, 13, 0.1);
  color: var(--color-warning);
}

.authenticated-shell .welcome-status.archived {
  background: rgba(90, 84, 96, 0.1);
  color: var(--muted);
}

.authenticated-shell .welcome-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.authenticated-shell .welcome-card-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid var(--color-border);
  border-radius: 11px;
  background: #fff;
  color: var(--color-slate);
}

.authenticated-shell .welcome-card-meta strong {
  color: var(--color-plum);
  font-size: 11px;
}

.authenticated-shell .welcome-card blockquote,
.authenticated-shell .welcome-archived-readonly blockquote {
  margin: 0;
  padding: 14px 15px;
  border-left: 3px solid var(--color-brand);
  border-radius: 0 13px 13px 0;
  background: var(--surface-cream);
  color: var(--color-charcoal);
  font-size: 13px;
  line-height: 1.55;
}

.authenticated-shell .welcome-card > footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.authenticated-shell .welcome-card > footer small {
  color: var(--muted);
  font-size: 11px;
}

.authenticated-shell .welcome-card > footer .btn,
.authenticated-shell .welcome-manager-toolbar .btn {
  min-height: 44px;
}

.authenticated-shell .welcome-empty,
.authenticated-shell .welcome-error {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 22px;
  border-radius: 20px;
}

.authenticated-shell .welcome-empty > span,
.authenticated-shell .welcome-error > span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--color-brand-mist);
  color: var(--color-brand-deep);
}

.authenticated-shell .welcome-empty p,
.authenticated-shell .welcome-error p,
.authenticated-shell .welcome-editor-header p {
  margin: 4px 0 0;
  color: var(--color-slate);
  font-size: 13px;
}

.authenticated-shell .welcome-loading {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  min-height: 180px;
  align-content: center;
}

.authenticated-shell .welcome-loading span {
  height: 72px;
  border-radius: 16px;
  background: linear-gradient(110deg, rgba(245, 239, 241, .72), rgba(255,255,255,.96), rgba(245,239,241,.72));
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.35s linear infinite;
}

.authenticated-shell .welcome-loading strong {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.authenticated-shell .welcome-notice,
.authenticated-shell .welcome-editor-error {
  margin: 18px 26px 0;
  padding: 11px 13px;
  border: 1px solid rgba(180, 56, 75, 0.2);
  border-radius: 13px;
  background: rgba(254, 239, 242, 0.9);
  color: var(--color-danger);
}

.authenticated-shell .welcome-notice.success {
  border-color: rgba(22, 116, 84, 0.2);
  background: rgba(235, 248, 242, 0.94);
  color: var(--color-success);
}

.authenticated-shell .welcome-notice {
  display: grid;
  gap: 2px;
}

.authenticated-shell .welcome-notice span {
  font-size: 12px;
}

.authenticated-shell .welcome-editor-panel {
  margin: 0 26px 26px;
  border: 1px solid rgba(232, 75, 106, 0.19);
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(150deg, rgba(252,239,242,.65), rgba(255,253,252,.98) 35%);
  box-shadow: var(--shadow-1);
}

.authenticated-shell .welcome-editor-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 20px 16px;
  border-bottom: 1px solid var(--warm-border);
}

.authenticated-shell .welcome-editor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  padding: 18px 20px;
}

.authenticated-shell .welcome-editor-grid label {
  display: grid;
  gap: 6px;
  color: var(--color-charcoal);
  font-size: 12px;
  font-weight: 700;
}

.authenticated-shell .welcome-editor-grid select,
.authenticated-shell .welcome-editor-grid textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
  color: var(--color-ink);
  padding: 10px 12px;
  font: inherit;
  font-weight: 500;
}

.authenticated-shell .welcome-editor-grid textarea {
  resize: vertical;
  min-height: 132px;
}

.authenticated-shell .welcome-editor-message {
  grid-column: 1 / -1;
}

.authenticated-shell .welcome-editor-message > small {
  color: var(--muted);
  font-weight: 500;
}

.authenticated-shell .welcome-editor-identity {
  min-height: 64px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 13px;
  background: #fff;
}

.authenticated-shell .welcome-editor-identity > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-cream);
  color: var(--color-brand-deep);
}

.authenticated-shell .welcome-editor-identity > div {
  display: grid;
  gap: 2px;
}

.authenticated-shell .welcome-editor-identity small {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.authenticated-shell .welcome-editor-identity strong {
  color: var(--color-plum);
  font-size: 12px;
}

.authenticated-shell .welcome-editor-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--warm-border);
  background: rgba(255,253,252,.86);
}

.authenticated-shell .welcome-editor-footer > span {
  max-width: 540px;
  color: var(--muted);
  font-size: 11px;
}

.authenticated-shell .welcome-editor-footer > div {
  display: flex;
  gap: 8px;
}

.authenticated-shell .welcome-archived-readonly,
.authenticated-shell .welcome-editor-no-pairs {
  display: grid;
  gap: 13px;
  padding: 18px 20px 20px;
}

.authenticated-shell .welcome-archived-readonly > div,
.authenticated-shell .welcome-editor-no-pairs {
  color: var(--color-charcoal);
}

.authenticated-shell .welcome-manager-sheet button:focus-visible,
.authenticated-shell .welcome-manager-sheet select:focus-visible,
.authenticated-shell .welcome-manager-sheet textarea:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

@media (max-width: 759px) {
  .authenticated-shell .welcome-manager-backdrop {
    place-items: end center;
    padding: 0;
  }

  .authenticated-shell .welcome-manager-sheet {
    width: 100%;
    max-height: 95vh;
    border-radius: 24px 24px 0 0;
  }

  .authenticated-shell .welcome-manager-header,
  .authenticated-shell .welcome-manager-body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .authenticated-shell .welcome-card-grid,
  .authenticated-shell .welcome-editor-grid {
    grid-template-columns: 1fr;
  }

  .authenticated-shell .welcome-editor-message {
    grid-column: auto;
  }

  .authenticated-shell .welcome-manager-toolbar,
  .authenticated-shell .welcome-card > footer,
  .authenticated-shell .welcome-editor-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .authenticated-shell .welcome-manager-toolbar .btn,
  .authenticated-shell .welcome-card > footer .btn,
  .authenticated-shell .welcome-editor-footer .btn {
    width: 100%;
  }

  .authenticated-shell .welcome-empty,
  .authenticated-shell .welcome-error {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .authenticated-shell .welcome-error .btn {
    grid-column: 1 / -1;
  }

  .authenticated-shell .welcome-editor-panel,
  .authenticated-shell .welcome-notice {
    margin-left: 16px;
    margin-right: 16px;
  }

  .authenticated-shell .welcome-editor-footer > div {
    width: 100%;
  }

  .authenticated-shell .welcome-editor-footer .btn {
    flex: 1 1 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .authenticated-shell .welcome-loading span {
    animation: none;
  }
}

@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .authenticated-shell .welcome-manager-backdrop,
  .authenticated-shell .welcome-manager-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.authenticated-shell.force-no-blur .welcome-manager-backdrop,
.authenticated-shell.force-no-blur .welcome-manager-header {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}


/* M041 Protected Welcome Image Manager */
.authenticated-shell .welcome-card-media {
  min-height: 96px;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: 15px;
  background: #fff;
  overflow: hidden;
}

.authenticated-shell .welcome-card-media img {
  width: 86px;
  height: 74px;
  object-fit: cover;
  border-radius: 11px;
  background: var(--color-surface-secondary);
}

.authenticated-shell .welcome-card-media > span {
  width: 86px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--color-brand-mist);
  color: var(--color-brand-deep);
}

.authenticated-shell .welcome-card-media > span svg {
  width: 24px;
  height: 24px;
}

.authenticated-shell .welcome-card-media small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.authenticated-shell .welcome-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.authenticated-shell .welcome-card-actions .btn {
  min-height: 44px;
}

.authenticated-shell .welcome-media-backdrop {
  position: fixed;
  inset: 0;
  z-index: 92;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(31, 18, 26, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.authenticated-shell .welcome-media-sheet {
  width: min(980px, 100%);
  max-height: min(860px, calc(100vh - 48px));
  overflow: auto;
  border-radius: 26px;
  background: rgba(255, 253, 252, 0.985);
  box-shadow: 0 34px 96px rgba(54, 28, 42, 0.28);
}

.authenticated-shell .welcome-media-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--warm-border);
  background: rgba(255, 253, 252, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.authenticated-shell .welcome-media-header small,
.authenticated-shell .welcome-media-section-title small {
  color: var(--color-brand-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.authenticated-shell .welcome-media-header h3 {
  margin: 3px 0 4px;
  color: var(--color-ink);
  font: 800 26px/1.05 var(--font-ui);
  letter-spacing: -.035em;
}

.authenticated-shell .welcome-media-header p {
  margin: 0;
  color: var(--color-slate);
  font-size: 12px;
}

.authenticated-shell .welcome-media-body {
  display: grid;
  gap: 16px;
  padding: 20px 24px 24px;
}

.authenticated-shell .welcome-media-current,
.authenticated-shell .welcome-media-upload-section,
.authenticated-shell .welcome-media-library {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: var(--surface-cream);
}

.authenticated-shell .welcome-media-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.authenticated-shell .welcome-media-section-title > div {
  display: grid;
  gap: 2px;
}

.authenticated-shell .welcome-media-section-title strong {
  color: var(--color-ink);
  font-size: 14px;
}

.authenticated-shell .welcome-media-section-title span {
  color: var(--muted);
  font-size: 11px;
}

.authenticated-shell .welcome-media-current-card {
  display: grid;
  grid-template-columns: minmax(160px, 230px) minmax(0, 1fr);
  gap: 15px;
  align-items: center;
}

.authenticated-shell .welcome-media-current-card img,
.authenticated-shell .welcome-media-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 240px;
  object-fit: cover;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--color-brand-mist);
  color: var(--color-brand-deep);
}

.authenticated-shell .welcome-media-placeholder svg {
  width: 28px;
  height: 28px;
}

.authenticated-shell .welcome-media-current-card > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.authenticated-shell .welcome-media-current-card small,
.authenticated-shell .welcome-media-current-card span {
  color: var(--muted);
  font-size: 11px;
}

.authenticated-shell .welcome-media-current-card strong {
  color: var(--color-plum);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.authenticated-shell .welcome-media-empty-current,
.authenticated-shell .welcome-media-library-empty {
  min-height: 112px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 16px;
  border: 1px dashed var(--color-border-strong);
  border-radius: 15px;
  background: #fff;
  text-align: center;
  color: var(--muted);
}

.authenticated-shell .welcome-media-empty-current > span,
.authenticated-shell .welcome-media-library-empty > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--color-brand-mist);
  color: var(--color-brand-deep);
}

.authenticated-shell .welcome-media-empty-current svg,
.authenticated-shell .welcome-media-library-empty svg {
  width: 20px;
  height: 20px;
}

.authenticated-shell .welcome-media-empty-current p,
.authenticated-shell .welcome-media-library-empty p {
  margin: 0;
  max-width: 520px;
  font-size: 12px;
}

.authenticated-shell .welcome-media-upload-section form {
  display: grid;
  gap: 12px;
}

.authenticated-shell .welcome-media-file {
  min-height: 76px;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px dashed var(--color-border-strong);
  border-radius: 15px;
  background: #fff;
}

.authenticated-shell .welcome-media-file > span {
  display: grid;
  gap: 3px;
}

.authenticated-shell .welcome-media-file strong {
  color: var(--color-ink);
  font-size: 13px;
}

.authenticated-shell .welcome-media-file small {
  color: var(--muted);
  font-size: 11px;
}

.authenticated-shell .welcome-media-file input {
  max-width: min(320px, 100%);
}

.authenticated-shell .welcome-media-local-preview {
  display: grid;
  gap: 8px;
}

.authenticated-shell .welcome-media-local-preview[hidden] {
  display: none;
}

.authenticated-shell .welcome-media-local-preview-item {
  min-height: 72px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--color-border);
  border-radius: 13px;
  background: #fff;
}

.authenticated-shell .welcome-media-local-preview-item img {
  width: 64px;
  height: 56px;
  object-fit: cover;
  border-radius: 9px;
}

.authenticated-shell .welcome-media-local-preview-item small {
  overflow-wrap: anywhere;
  color: var(--color-slate);
}

.authenticated-shell .welcome-media-library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.authenticated-shell .welcome-media-library-item {
  min-width: 0;
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: 15px;
  background: #fff;
}

.authenticated-shell .welcome-media-library-item.selected {
  border-color: rgba(232, 75, 106, .42);
  box-shadow: 0 0 0 2px rgba(232, 75, 106, .08);
}

.authenticated-shell .welcome-media-library-item img,
.authenticated-shell .welcome-media-library-item > .welcome-media-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 180px;
  object-fit: cover;
  border-radius: 12px;
}

.authenticated-shell .welcome-media-library-item > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.authenticated-shell .welcome-media-library-item small {
  color: var(--muted);
  font-size: 10px;
}

.authenticated-shell .welcome-media-library-item strong {
  color: var(--color-plum);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.authenticated-shell .welcome-media-library-item .btn,
.authenticated-shell .welcome-media-current .btn,
.authenticated-shell .welcome-media-upload-section .btn {
  min-height: 44px;
}

.authenticated-shell .welcome-media-error,
.authenticated-shell .welcome-media-archived-note {
  margin: 18px 24px 0;
  padding: 12px 14px;
  border-radius: 14px;
}

.authenticated-shell .welcome-media-error {
  border: 1px solid rgba(184, 58, 77, .22);
  background: rgba(254, 239, 242, .92);
  color: var(--color-error);
}

.authenticated-shell .welcome-media-archived-note {
  display: grid;
  gap: 3px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-secondary);
  color: var(--color-slate);
}

.authenticated-shell .welcome-media-archived-note strong {
  color: var(--color-charcoal);
}

.authenticated-shell .welcome-media-loading {
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  font-weight: 700;
}

.authenticated-shell .welcome-media-footer {
  padding: 14px 24px 18px;
  border-top: 1px solid var(--warm-border);
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 759px) {
  .authenticated-shell .welcome-card-actions {
    width: 100%;
    justify-content: stretch;
  }

  .authenticated-shell .welcome-card-actions .btn {
    flex: 1 1 0;
  }

  .authenticated-shell .welcome-media-backdrop {
    place-items: end center;
    padding: 0;
  }

  .authenticated-shell .welcome-media-sheet {
    width: 100%;
    max-height: 94vh;
    border-radius: 24px 24px 0 0;
  }

  .authenticated-shell .welcome-media-header,
  .authenticated-shell .welcome-media-body,
  .authenticated-shell .welcome-media-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .authenticated-shell .welcome-media-error,
  .authenticated-shell .welcome-media-archived-note {
    margin-left: 16px;
    margin-right: 16px;
  }

  .authenticated-shell .welcome-media-current-card {
    grid-template-columns: 1fr;
  }

  .authenticated-shell .welcome-media-current-card img,
  .authenticated-shell .welcome-media-current-card .welcome-media-placeholder {
    max-height: 260px;
  }

  .authenticated-shell .welcome-media-library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .authenticated-shell .welcome-media-file {
    align-items: stretch;
    flex-direction: column;
  }

  .authenticated-shell .welcome-media-file input,
  .authenticated-shell .welcome-media-upload-section .btn {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 420px) {
  .authenticated-shell .welcome-media-library-grid {
    grid-template-columns: 1fr;
  }
}

@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .authenticated-shell .welcome-media-backdrop,
  .authenticated-shell .welcome-media-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.authenticated-shell.force-no-blur .welcome-media-backdrop,
.authenticated-shell.force-no-blur .welcome-media-header {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* M056 protected service, pricing, and business settings management */
.authenticated-shell .business-management-page {
  display: grid;
  gap: 18px;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 4px 0 32px;
}

.authenticated-shell .business-management-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  min-height: 178px;
  padding: 28px 30px;
  border: 1px solid rgba(232, 75, 106, .16);
  border-radius: 26px;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 113, 99, .15), transparent 34%),
    linear-gradient(145deg, rgba(255, 253, 252, .96), rgba(252, 239, 242, .84));
  box-shadow: var(--shadow-2);
}

.authenticated-shell .business-management-hero::after {
  position: absolute;
  right: -62px;
  bottom: -90px;
  width: 230px;
  height: 230px;
  border-radius: 999px;
  background: rgba(232, 75, 106, .07);
  content: "";
  pointer-events: none;
}

.authenticated-shell .business-management-hero > div {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
  max-width: 720px;
}

.authenticated-shell .business-management-hero h1,
.authenticated-shell .business-section-head h2,
.authenticated-shell .business-profile-card h2,
.authenticated-shell .business-service-heading h2,
.authenticated-shell .business-editor-header h2,
.authenticated-shell .business-editor-section h3 {
  margin: 0;
  color: var(--color-plum);
  letter-spacing: -.025em;
}

.authenticated-shell .business-management-hero h1 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
}

.authenticated-shell .business-management-hero p,
.authenticated-shell .business-section-head p,
.authenticated-shell .business-profile-card header p,
.authenticated-shell .business-service-heading p,
.authenticated-shell .business-editor-header p,
.authenticated-shell .business-editor-section-heading p {
  margin: 0;
  color: var(--color-slate);
}

.authenticated-shell .business-back {
  justify-self: start;
  min-height: 44px;
  margin: -6px 0 3px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-brand-deep);
  font-weight: 800;
}

.authenticated-shell .business-back::before {
  content: "← ";
}

.authenticated-shell .business-kicker {
  color: var(--color-brand-deep);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.authenticated-shell .business-management-shield,
.authenticated-shell .business-scope-pill,
.authenticated-shell .business-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .02em;
}

.authenticated-shell .business-management-shield {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  border: 1px solid rgba(232, 75, 106, .22);
  background: rgba(255, 255, 255, .76);
  color: var(--color-brand-deep);
  box-shadow: var(--shadow-1);
}

.authenticated-shell .business-notice {
  display: grid;
  gap: 3px;
  padding: 13px 16px;
  border: 1px solid rgba(22, 116, 84, .18);
  border-radius: 16px;
  background: rgba(236, 249, 244, .9);
  color: var(--color-success);
}

.authenticated-shell .business-notice.error {
  border-color: rgba(184, 58, 77, .18);
  background: rgba(254, 239, 242, .92);
  color: var(--color-error);
}

.authenticated-shell .business-notice strong {
  font-size: 13px;
}

.authenticated-shell .business-notice span {
  font-size: 12px;
}

.authenticated-shell .business-management-tabs {
  display: inline-flex;
  justify-self: start;
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--color-border);
  border-radius: 15px;
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--shadow-1);
}

.authenticated-shell .business-management-tab {
  min-height: 44px;
  padding: 0 17px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--color-slate);
  font-size: 12px;
  font-weight: 850;
}

.authenticated-shell .business-management-tab.is-active {
  background: var(--color-plum);
  color: #fff;
  box-shadow: 0 8px 18px rgba(41, 24, 34, .14);
}

.authenticated-shell .business-services-section,
.authenticated-shell .business-profile-section {
  display: grid;
  gap: 14px;
}

.authenticated-shell .business-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 3px 2px;
}

.authenticated-shell .business-section-head > div {
  display: grid;
  gap: 4px;
}

.authenticated-shell .business-section-head h2 {
  font-size: 22px;
}

.authenticated-shell .business-section-head p {
  font-size: 12px;
}

.authenticated-shell .business-section-head .btn {
  min-height: 44px;
  white-space: nowrap;
}

.authenticated-shell .business-scope-pill {
  border: 1px solid var(--color-border);
  background: var(--color-surface-secondary);
  color: var(--color-slate);
}

.authenticated-shell .business-service-list {
  display: grid;
  gap: 12px;
}

.authenticated-shell .business-service-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: rgba(255, 253, 252, .92);
  box-shadow: var(--shadow-1);
}

.authenticated-shell .business-service-card:hover {
  border-color: rgba(232, 75, 106, .23);
  box-shadow: var(--shadow-2);
}

.authenticated-shell .business-service-main {
  min-width: 0;
  display: grid;
  gap: 15px;
}

.authenticated-shell .business-service-heading {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.authenticated-shell .business-service-heading h2 {
  font-size: 18px;
}

.authenticated-shell .business-service-heading p {
  max-width: 690px;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.authenticated-shell .business-status {
  justify-self: start;
  min-height: 27px;
  padding: 3px 9px;
}

.authenticated-shell .business-status.is-live {
  background: rgba(22, 116, 84, .1);
  color: var(--color-success);
}

.authenticated-shell .business-status.is-off {
  background: var(--color-surface-secondary);
  color: var(--color-text-muted);
}

.authenticated-shell .business-service-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(112px, 1fr));
  gap: 9px;
}

.authenticated-shell .business-service-meta > span {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 9px 11px;
  border-radius: 12px;
  background: var(--color-pearl-cool);
}

.authenticated-shell .business-service-meta small {
  color: var(--color-text-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.authenticated-shell .business-service-meta strong {
  min-width: 0;
  color: var(--color-charcoal);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.authenticated-shell .business-price strong {
  color: var(--color-brand-deep);
}

.authenticated-shell .business-price small + strong {
  margin-top: 1px;
}

.authenticated-shell .business-price strong + small {
  color: var(--color-text-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.authenticated-shell .business-price-missing {
  color: var(--color-warning);
  font-size: 12px;
  font-weight: 800;
}

.authenticated-shell .business-service-actions {
  align-self: stretch;
  display: flex;
  align-items: center;
}

.authenticated-shell .business-service-actions .btn {
  min-height: 44px;
}

.authenticated-shell .business-empty,
.authenticated-shell .business-loading {
  display: grid;
  gap: 5px;
  min-height: 180px;
  place-content: center;
  padding: 26px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: rgba(255, 253, 252, .9);
  text-align: center;
}

.authenticated-shell .business-empty strong,
.authenticated-shell .business-loading strong {
  color: var(--color-plum);
  font-size: 16px;
}

.authenticated-shell .business-empty p,
.authenticated-shell .business-loading p {
  max-width: 540px;
  margin: 0;
  color: var(--color-slate);
  font-size: 12px;
}

.authenticated-shell .business-loading .btn {
  justify-self: center;
  min-height: 44px;
  margin-top: 7px;
}

.authenticated-shell .business-profile-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: rgba(255, 253, 252, .92);
  box-shadow: var(--shadow-1);
}

.authenticated-shell .business-profile-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.authenticated-shell .business-profile-card > header > div {
  display: grid;
  gap: 3px;
}

.authenticated-shell .business-profile-card h2 {
  font-size: 18px;
}

.authenticated-shell .business-profile-card header p {
  font-size: 12px;
}

.authenticated-shell .business-profile-card form {
  display: grid;
  gap: 12px;
}

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

.authenticated-shell .business-form-grid label,
.authenticated-shell .business-wide-field {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: var(--color-slate);
  font-size: 11px;
  font-weight: 800;
}

.authenticated-shell .business-form-grid input,
.authenticated-shell .business-form-grid select,
.authenticated-shell .business-wide-field input,
.authenticated-shell .business-wide-field textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--color-border-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--color-ink);
  padding: 9px 11px;
}

.authenticated-shell .business-wide-field textarea {
  min-height: 108px;
  resize: vertical;
}

.authenticated-shell .business-form-grid input:disabled,
.authenticated-shell .business-form-grid select:disabled,
.authenticated-shell .business-wide-field input:disabled,
.authenticated-shell .business-wide-field textarea:disabled {
  background: var(--color-surface-secondary);
  color: var(--color-slate);
}

.authenticated-shell .business-form-note {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 10px;
}

.authenticated-shell .business-form-actions {
  display: flex;
  justify-content: flex-end;
}

.authenticated-shell .business-form-actions .btn {
  min-height: 44px;
}

.authenticated-shell .business-editor-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(29, 20, 27, .44);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.authenticated-shell .business-editor-sheet {
  width: min(820px, 100%);
  max-height: min(88vh, 840px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid rgba(255, 255, 255, .56);
  border-radius: 24px;
  background: rgba(255, 253, 252, .98);
  box-shadow: var(--shadow-4);
}

.authenticated-shell .business-editor-sheet form {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.authenticated-shell .business-editor-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 17px;
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(145deg, rgba(255, 253, 252, .98), rgba(252, 239, 242, .9));
}

.authenticated-shell .business-editor-header > div {
  display: grid;
  gap: 4px;
}

.authenticated-shell .business-editor-header h2 {
  font-size: 21px;
}

.authenticated-shell .business-editor-header p {
  max-width: 630px;
  font-size: 11px;
}

.authenticated-shell .business-editor-close {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid var(--color-border);
  border-radius: 13px;
  background: rgba(255, 255, 255, .86);
  color: var(--color-plum);
  font-weight: 900;
}

.authenticated-shell .business-inline-error {
  margin: 14px 24px 0;
  padding: 11px 13px;
  border: 1px solid rgba(184, 58, 77, .2);
  border-radius: 13px;
  background: rgba(254, 239, 242, .94);
  color: var(--color-error);
  font-size: 12px;
  font-weight: 700;
}

.authenticated-shell .business-editor-scroll {
  min-height: 0;
  overflow-y: auto;
  display: grid;
  gap: 14px;
  padding: 18px 24px 24px;
}

.authenticated-shell .business-editor-section {
  display: grid;
  gap: 12px;
  padding: 17px;
  border: 1px solid var(--color-border);
  border-radius: 17px;
  background: var(--color-pearl-cool);
}

.authenticated-shell .business-editor-section h3 {
  font-size: 15px;
}

.authenticated-shell .business-editor-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.authenticated-shell .business-editor-section-heading > div {
  display: grid;
  gap: 2px;
}

.authenticated-shell .business-editor-section-heading p {
  font-size: 11px;
}

.authenticated-shell .business-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--color-charcoal);
  font-size: 11px;
  font-weight: 850;
}

.authenticated-shell .business-switch input {
  width: 19px;
  height: 19px;
  accent-color: var(--color-brand-primary);
}

.authenticated-shell .business-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 15px 24px calc(15px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--color-border);
  background: rgba(255, 253, 252, .96);
}

.authenticated-shell .business-editor-actions .btn {
  min-height: 44px;
}

.authenticated-shell .business-management-page button:focus-visible,
.authenticated-shell .business-management-page input:focus-visible,
.authenticated-shell .business-management-page select:focus-visible,
.authenticated-shell .business-management-page textarea:focus-visible {
  outline-color: rgba(232, 75, 106, .42);
}

@media (max-width: 980px) {
  .authenticated-shell .business-service-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 759px) {
  .authenticated-shell .business-management-page {
    gap: 14px;
    padding: 0 0 calc(90px + env(safe-area-inset-bottom));
  }

  .authenticated-shell .business-management-hero {
    min-height: 0;
    display: grid;
    gap: 15px;
    padding: 20px 18px;
    border-radius: 21px;
  }

  .authenticated-shell .business-management-hero h1 {
    font-size: 30px;
  }

  .authenticated-shell .business-management-shield {
    justify-self: start;
  }

  .authenticated-shell .business-management-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .authenticated-shell .business-management-tab {
    width: 100%;
    padding: 0 8px;
  }

  .authenticated-shell .business-section-head,
  .authenticated-shell .business-profile-card > header {
    align-items: stretch;
    flex-direction: column;
  }

  .authenticated-shell .business-section-head .btn,
  .authenticated-shell .business-section-head .business-scope-pill {
    width: 100%;
  }

  .authenticated-shell .business-service-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 17px;
  }

  .authenticated-shell .business-service-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .authenticated-shell .business-service-actions .btn {
    width: 100%;
  }

  .authenticated-shell .business-form-grid {
    grid-template-columns: 1fr;
  }

  .authenticated-shell .business-profile-card {
    padding: 17px;
  }

  .authenticated-shell .business-form-actions .btn {
    width: 100%;
  }

  .authenticated-shell .business-editor-backdrop {
    place-items: end center;
    padding: 0;
  }

  .authenticated-shell .business-editor-sheet {
    width: 100%;
    max-height: 94vh;
    border-radius: 24px 24px 0 0;
  }

  .authenticated-shell .business-editor-header,
  .authenticated-shell .business-editor-scroll,
  .authenticated-shell .business-editor-actions {
    padding-left: 16px;
    padding-right: 16px;
  }

  .authenticated-shell .business-inline-error {
    margin-left: 16px;
    margin-right: 16px;
  }

  .authenticated-shell .business-editor-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .authenticated-shell .business-editor-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .authenticated-shell .business-service-meta {
    grid-template-columns: 1fr;
  }

  .authenticated-shell .business-management-tab {
    font-size: 11px;
  }
}

@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .authenticated-shell .business-editor-backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.authenticated-shell.force-no-blur .business-editor-backdrop {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

@media (prefers-reduced-motion: reduce) {
  .authenticated-shell .business-service-card,
  .authenticated-shell .business-management-tab,
  .authenticated-shell .business-management-page button {
    transition: none !important;
  }
}


/* M057 Knowledge Base management */
.authenticated-shell .knowledge-page {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.authenticated-shell .knowledge-hero,
.authenticated-shell .knowledge-toolbar,
.authenticated-shell .knowledge-next-boundary,
.authenticated-shell .knowledge-loading {
  border: 1px solid rgba(97, 58, 76, .12);
  border-radius: 24px;
}
.authenticated-shell .knowledge-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 28px;
}
.authenticated-shell .knowledge-hero h1,
.authenticated-shell .knowledge-toolbar h2,
.authenticated-shell .knowledge-card h2,
.authenticated-shell .knowledge-editor-sheet h2 {
  margin: 6px 0 8px;
}
.authenticated-shell .knowledge-hero p,
.authenticated-shell .knowledge-toolbar p,
.authenticated-shell .knowledge-card p,
.authenticated-shell .knowledge-editor-sheet p,
.authenticated-shell .knowledge-loading p {
  margin: 0;
}
.authenticated-shell .knowledge-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  margin: -8px 0 6px -12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.authenticated-shell .knowledge-back::before {
  content: "‹";
  margin-right: 7px;
  font-size: 22px;
}
.authenticated-shell .knowledge-kicker {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .64;
}
.authenticated-shell .knowledge-shield {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(168, 92, 122, .16);
  border-radius: 999px;
  background: rgba(255, 250, 249, .72);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.authenticated-shell .knowledge-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.authenticated-shell .knowledge-summary-card {
  display: grid;
  gap: 5px;
  padding: 18px 20px;
  border-radius: 20px;
  min-width: 0;
}
.authenticated-shell .knowledge-summary-card small {
  font-weight: 800;
  opacity: .64;
}
.authenticated-shell .knowledge-summary-card strong {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1;
}
.authenticated-shell .knowledge-summary-card span {
  font-size: 13px;
  opacity: .72;
}
.authenticated-shell .knowledge-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 20px 22px;
}
.authenticated-shell .knowledge-toolbar > div:last-child {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.authenticated-shell .knowledge-list {
  display: grid;
  gap: 12px;
}
.authenticated-shell .knowledge-card {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 22px;
  padding: 20px 22px;
  border-radius: 22px;
  min-width: 0;
}
.authenticated-shell .knowledge-card-main {
  flex: 1 1 auto;
  min-width: 0;
}
.authenticated-shell .knowledge-card-heading > div {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.authenticated-shell .knowledge-card-heading h2 {
  font-size: 19px;
}
.authenticated-shell .knowledge-source,
.authenticated-shell .knowledge-status,
.authenticated-shell .knowledge-read-only {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.authenticated-shell .knowledge-source {
  background: rgba(167, 75, 114, .09);
}
.authenticated-shell .knowledge-source.website {
  background: rgba(112, 89, 165, .10);
}
.authenticated-shell .knowledge-status {
  border: 1px solid rgba(97, 58, 76, .10);
  background: rgba(255, 255, 255, .64);
}
.authenticated-shell .knowledge-status.published {
  background: rgba(102, 151, 116, .12);
}
.authenticated-shell .knowledge-status.in_review,
.authenticated-shell .knowledge-status.approved {
  background: rgba(192, 146, 74, .12);
}
.authenticated-shell .knowledge-meta {
  display: grid;
  grid-template-columns: 90px 70px minmax(120px, .9fr) minmax(180px, 1.5fr);
  gap: 12px;
  margin-top: 16px;
}
.authenticated-shell .knowledge-meta > span,
.authenticated-shell .knowledge-ingestion {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.authenticated-shell .knowledge-meta small,
.authenticated-shell .knowledge-ingestion small {
  font-size: 11px;
  font-weight: 800;
  opacity: .58;
}
.authenticated-shell .knowledge-meta strong,
.authenticated-shell .knowledge-ingestion strong {
  min-width: 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.authenticated-shell .knowledge-reference a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.authenticated-shell .knowledge-ingestion {
  width: fit-content;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(112, 89, 165, .08);
}
.authenticated-shell .knowledge-ingestion em {
  font-size: 12px;
}
.authenticated-shell .knowledge-card-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 290px;
}
.authenticated-shell .knowledge-card-actions .btn,
.authenticated-shell .knowledge-toolbar .btn {
  min-height: 44px;
}
.authenticated-shell .knowledge-read-only {
  min-height: 34px;
  background: rgba(80, 70, 76, .07);
  opacity: .72;
}
.authenticated-shell .knowledge-notice {
  display: flex;
  gap: 8px 14px;
  align-items: baseline;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(102, 151, 116, .11);
}
.authenticated-shell .knowledge-notice.error {
  background: rgba(181, 73, 81, .10);
}
.authenticated-shell .knowledge-empty,
.authenticated-shell .knowledge-loading {
  padding: 28px;
}
.authenticated-shell .knowledge-next-boundary {
  display: flex;
  gap: 12px 22px;
  align-items: baseline;
  padding: 16px 20px;
  font-size: 13px;
}
.authenticated-shell .knowledge-next-boundary span {
  opacity: .72;
}
.authenticated-shell .knowledge-editor-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 24px;
  background: rgba(29, 20, 25, .32);
  backdrop-filter: blur(8px);
}
.authenticated-shell .knowledge-editor-sheet {
  width: min(820px, 100%);
  max-height: min(86vh, 900px);
  overflow: auto;
  border-radius: 28px 28px 20px 20px;
  padding: 24px;
}
.authenticated-shell .knowledge-editor-sheet > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.authenticated-shell .knowledge-editor-close {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(97, 58, 76, .12);
  border-radius: 50%;
  background: rgba(255, 255, 255, .7);
  color: inherit;
  font-size: 24px;
  cursor: pointer;
}
.authenticated-shell .knowledge-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.authenticated-shell .knowledge-form-grid label {
  display: grid;
  gap: 7px;
  min-width: 0;
  font-size: 12px;
  font-weight: 800;
}
.authenticated-shell .knowledge-form-grid .wide {
  grid-column: 1 / -1;
}
.authenticated-shell .knowledge-form-grid input,
.authenticated-shell .knowledge-form-grid textarea {
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  border: 1px solid rgba(97, 58, 76, .14);
  border-radius: 14px;
  background: rgba(255, 255, 255, .8);
  color: inherit;
  font: inherit;
  padding: 11px 13px;
}
.authenticated-shell .knowledge-form-grid textarea {
  min-height: 180px;
  resize: vertical;
}
.authenticated-shell .knowledge-editor-boundary,
.authenticated-shell .knowledge-editor-error {
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: 14px;
}
.authenticated-shell .knowledge-editor-boundary {
  display: grid;
  gap: 4px;
  background: rgba(167, 75, 114, .07);
  font-size: 12px;
}
.authenticated-shell .knowledge-editor-error {
  background: rgba(181, 73, 81, .10);
  font-size: 13px;
  font-weight: 700;
}
.authenticated-shell .knowledge-editor-sheet footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}
.authenticated-shell .knowledge-editor-sheet footer .btn {
  min-height: 44px;
}
.authenticated-shell .more-command-card.knowledge .more-command-icon {
  background: rgba(112, 89, 165, .10);
}
@media (max-width: 820px) {
  .authenticated-shell .knowledge-hero,
  .authenticated-shell .knowledge-toolbar,
  .authenticated-shell .knowledge-card,
  .authenticated-shell .knowledge-next-boundary {
    align-items: stretch;
    flex-direction: column;
  }
  .authenticated-shell .knowledge-shield {
    width: fit-content;
  }
  .authenticated-shell .knowledge-summary-grid {
    grid-template-columns: 1fr;
  }
  .authenticated-shell .knowledge-toolbar > div:last-child {
    justify-content: stretch;
  }
  .authenticated-shell .knowledge-toolbar .btn {
    flex: 1 1 180px;
  }
  .authenticated-shell .knowledge-card-actions {
    max-width: none;
    justify-content: flex-start;
  }
  .authenticated-shell .knowledge-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .authenticated-shell .knowledge-reference {
    grid-column: 1 / -1;
  }
}
@media (max-width: 520px) {
  .authenticated-shell .knowledge-page {
    gap: 14px;
  }
  .authenticated-shell .knowledge-hero,
  .authenticated-shell .knowledge-toolbar,
  .authenticated-shell .knowledge-card,
  .authenticated-shell .knowledge-editor-sheet {
    padding: 18px;
    border-radius: 20px;
  }
  .authenticated-shell .knowledge-summary-grid {
    gap: 10px;
  }
  .authenticated-shell .knowledge-summary-card {
    padding: 15px 16px;
  }
  .authenticated-shell .knowledge-meta {
    grid-template-columns: 1fr 1fr;
  }
  .authenticated-shell .knowledge-card-actions .btn,
  .authenticated-shell .knowledge-toolbar .btn {
    width: 100%;
  }
  .authenticated-shell .knowledge-editor-backdrop {
    padding: 0;
  }
  .authenticated-shell .knowledge-editor-sheet {
    width: 100%;
    max-height: 92vh;
    border-radius: 24px 24px 0 0;
  }
  .authenticated-shell .knowledge-form-grid {
    grid-template-columns: 1fr;
  }
  .authenticated-shell .knowledge-form-grid .wide {
    grid-column: auto;
  }
  .authenticated-shell .knowledge-editor-sheet footer {
    flex-direction: column-reverse;
  }
  .authenticated-shell .knowledge-editor-sheet footer .btn {
    width: 100%;
  }
}

/* M065 management-page readability correction.
   Auth/login glass remains dark. Operational management surfaces are explicitly light. */
.authenticated-shell .knowledge-page {
  color: #17151a;
}

.authenticated-shell .knowledge-page .glass-surface,
.authenticated-shell .offers-page .glass-surface,
.authenticated-shell .more-page .glass-surface {
  border-color: rgba(203, 200, 209, 0.82);
  background: rgba(255, 253, 252, 0.94);
  color: #17151a;
  box-shadow: 0 14px 38px rgba(42, 40, 48, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(18px) saturate(118%);
  backdrop-filter: blur(18px) saturate(118%);
}

.authenticated-shell .knowledge-page h1,
.authenticated-shell .knowledge-page h2,
.authenticated-shell .knowledge-page h3,
.authenticated-shell .knowledge-page strong { color: #17151a; }

.authenticated-shell .knowledge-page p,
.authenticated-shell .knowledge-page span,
.authenticated-shell .knowledge-page small,
.authenticated-shell .knowledge-page em,
.authenticated-shell .knowledge-page label { color: #57535e; }

.authenticated-shell .knowledge-page .knowledge-kicker,
.authenticated-shell .knowledge-page .knowledge-back,
.authenticated-shell .knowledge-page .knowledge-reference a { color: #a23f5b; }

.authenticated-shell .knowledge-page .knowledge-summary-card,
.authenticated-shell .knowledge-page .knowledge-card,
.authenticated-shell .knowledge-page .knowledge-toolbar,
.authenticated-shell .knowledge-page .knowledge-hero,
.authenticated-shell .knowledge-page .knowledge-editor-sheet {
  background-image: linear-gradient(145deg, rgba(255,255,255,.88), rgba(252,239,242,.46));
}

.authenticated-shell .knowledge-page input,
.authenticated-shell .knowledge-page textarea,
.authenticated-shell .knowledge-page select {
  background: rgba(255,255,255,.96);
  color: #17151a;
  border-color: rgba(167, 75, 114, .22);
}

.authenticated-shell .knowledge-page .knowledge-ingestion {
  background: rgba(112,89,165,.08);
  color: #37303e;
}

.authenticated-shell .knowledge-page .knowledge-editor-boundary {
  background: rgba(232,75,106,.07);
  color: #3c3036;
}

.authenticated-shell.force-no-blur .knowledge-page .glass-surface {
  background: #fffdfc;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .authenticated-shell .knowledge-page .glass-surface,
  .authenticated-shell .offers-page .glass-surface,
  .authenticated-shell .more-page .glass-surface {
    background: #fffdfc;
  }
}

/* M071 tenant self-service onboarding */
.authenticated-shell .more-command-card.onboarding { grid-column: span 2; }
.authenticated-shell .more-command-card.onboarding .more-command-icon { background: rgba(155, 98, 104, .12); color: #7f4f55; }
.authenticated-shell .onboarding-page { display: grid; gap: 18px; }
.authenticated-shell .onboarding-hero { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 28px; overflow: hidden; position: relative; }
.authenticated-shell .onboarding-hero::after { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; right: -70px; top: -110px; background: radial-gradient(circle, rgba(191,140,146,.22), rgba(191,140,146,0)); pointer-events: none; }
.authenticated-shell .onboarding-hero-copy { max-width: 690px; position: relative; z-index: 1; }
.authenticated-shell .onboarding-eyebrow { display: block; margin-bottom: 7px; text-transform: uppercase; letter-spacing: .13em; font-size: 11px; font-weight: 800; color: #885a60; }
.authenticated-shell .onboarding-hero h1 { margin: 0 0 9px; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.035em; }
.authenticated-shell .onboarding-hero p { margin: 0; max-width: 650px; color: var(--muted); line-height: 1.6; }
.authenticated-shell .onboarding-progress-card { min-width: 235px; display: flex; align-items: center; gap: 15px; padding: 16px; border-radius: 20px; background: rgba(255,255,255,.62); border: 1px solid rgba(110,79,74,.12); position: relative; z-index: 1; }
.authenticated-shell .onboarding-progress-card > div:last-child { display: grid; gap: 2px; }
.authenticated-shell .onboarding-progress-card small { color: var(--muted); }
.authenticated-shell .onboarding-progress-card strong { font-size: 18px; }
.authenticated-shell .onboarding-progress-card span { color: #78585b; font-size: 13px; }
.authenticated-shell .onboarding-progress-ring { --progress: 0%; width: 78px; height: 78px; border-radius: 50%; display: grid; place-content: center; text-align: center; flex: 0 0 auto; background: radial-gradient(circle at center, #fff 57%, transparent 59%), conic-gradient(#9c646b var(--progress), rgba(156,100,107,.14) 0); }
.authenticated-shell .onboarding-progress-ring strong { font-size: 17px; line-height: 1; }
.authenticated-shell .onboarding-progress-ring span { font-size: 10px; margin-top: 3px; }
.authenticated-shell .onboarding-state { padding: 24px; display: grid; gap: 8px; }
.authenticated-shell .onboarding-state.is-error { border-color: rgba(154,62,62,.28); }
.authenticated-shell .onboarding-notice { display: grid; gap: 4px; padding: 14px 17px; border-radius: 15px; background: rgba(67,119,84,.09); border: 1px solid rgba(67,119,84,.16); }
.authenticated-shell .onboarding-notice.is-error { background: rgba(154,62,62,.08); border-color: rgba(154,62,62,.16); }
.authenticated-shell .onboarding-gate { padding: 20px 22px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 16px; }
.authenticated-shell .onboarding-gate.is-ready { border-color: rgba(79,131,93,.24); }
.authenticated-shell .onboarding-gate.is-blocked { border-color: rgba(160,108,70,.18); }
.authenticated-shell .onboarding-gate-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(151,96,102,.1); color: #80545a; }
.authenticated-shell .onboarding-gate-icon svg { width: 24px; height: 24px; }
.authenticated-shell .onboarding-gate small { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: 10px; font-weight: 800; }
.authenticated-shell .onboarding-gate h2 { margin: 3px 0 4px; font-size: 21px; }
.authenticated-shell .onboarding-gate p { margin: 0; color: var(--muted); line-height: 1.5; }
.authenticated-shell .onboarding-gate-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex-wrap: wrap; }
.authenticated-shell .onboarding-requested { padding: 9px 12px; border-radius: 12px; background: rgba(69,117,83,.08); color: #466f51; font-size: 12px; font-weight: 700; }
.authenticated-shell .onboarding-section-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.authenticated-shell .onboarding-section-card { min-height: 178px; display: grid; grid-template-columns: auto minmax(0,1fr); align-content: start; gap: 13px; padding: 19px; border-radius: 20px; background: rgba(255,255,255,.69); border: 1px solid rgba(99,75,71,.12); box-shadow: 0 12px 30px rgba(63,47,44,.055); }
.authenticated-shell .onboarding-section-card.is-incomplete { border-color: rgba(167,108,70,.24); }
.authenticated-shell .onboarding-section-card.is-complete { border-color: rgba(79,131,93,.18); }
.authenticated-shell .onboarding-section-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(151,96,102,.1); color: #83575c; }
.authenticated-shell .onboarding-section-card.is-complete .onboarding-section-icon { background: rgba(76,130,91,.1); color: #4f785a; }
.authenticated-shell .onboarding-section-icon svg { width: 20px; height: 20px; }
.authenticated-shell .onboarding-section-copy { min-width: 0; display: grid; gap: 9px; }
.authenticated-shell .onboarding-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; }
.authenticated-shell .onboarding-section-heading h3 { margin: 0; font-size: 16px; }
.authenticated-shell .onboarding-section-heading span { white-space: nowrap; padding: 4px 7px; border-radius: 999px; background: rgba(137,91,97,.08); color: #7c565a; font-size: 10px; font-weight: 800; }
.authenticated-shell .onboarding-section-card.is-complete .onboarding-section-heading span { background: rgba(79,131,93,.08); color: #4c7456; }
.authenticated-shell .onboarding-section-copy p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.authenticated-shell .onboarding-section-action { justify-self: start; border: 0; padding: 0; background: transparent; color: #7f5459; font: inherit; font-weight: 800; font-size: 12px; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.authenticated-shell .onboarding-section-action svg { width: 15px; height: 15px; }
.authenticated-shell .onboarding-section-managed { color: var(--muted); font-size: 11px; font-weight: 700; }
.authenticated-shell .onboarding-boundary { padding: 17px 19px; display: flex; gap: 13px; align-items: flex-start; }
.authenticated-shell .onboarding-boundary > span { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(67,63,70,.07); flex: 0 0 auto; }
.authenticated-shell .onboarding-boundary svg { width: 19px; height: 19px; }
.authenticated-shell .onboarding-boundary strong { display: block; margin-bottom: 4px; }
.authenticated-shell .onboarding-boundary p { margin: 0; color: var(--muted); line-height: 1.5; }
@media (max-width: 1100px) { .onboarding-section-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .more-command-card.onboarding { grid-column: span 1; } }
@media (max-width: 720px) { .onboarding-hero { align-items: stretch; flex-direction: column; padding: 21px; } .onboarding-progress-card { min-width: 0; } .onboarding-gate { grid-template-columns: auto minmax(0,1fr); } .onboarding-gate-actions { grid-column: 1 / -1; justify-content: stretch; } .onboarding-gate-actions .btn { flex: 1 1 auto; } .onboarding-section-grid { grid-template-columns: 1fr; } }

/* M072 client onboarding simplification + readability */
.authenticated-shell .onboarding-page {
  color: #241f1e;
}

.authenticated-shell .onboarding-page .onboarding-light-surface {
  background: rgba(255, 253, 252, .94);
  color: #241f1e;
  border: 1px solid rgba(91, 69, 64, .13);
  box-shadow: 0 18px 44px rgba(57, 43, 39, .08);
  -webkit-backdrop-filter: blur(18px) saturate(118%);
  backdrop-filter: blur(18px) saturate(118%);
}

.authenticated-shell .onboarding-page .onboarding-hero {
  background:
    linear-gradient(135deg, rgba(255,253,252,.98), rgba(249,243,241,.94)),
    rgba(255,253,252,.96);
}

.authenticated-shell .onboarding-page .onboarding-gate.is-blocked {
  background: rgba(255, 249, 246, .96);
  border-color: rgba(177, 119, 76, .20);
}

.authenticated-shell .onboarding-page .onboarding-gate.is-ready {
  background: rgba(247, 252, 248, .96);
  border-color: rgba(75, 130, 91, .22);
}

.authenticated-shell .onboarding-page .onboarding-boundary {
  background: rgba(247, 244, 242, .96);
}

.authenticated-shell .onboarding-page .onboarding-hero h1,
.authenticated-shell .onboarding-page .onboarding-gate h2,
.authenticated-shell .onboarding-page .onboarding-section-heading h3,
.authenticated-shell .onboarding-page .onboarding-boundary strong,
.authenticated-shell .onboarding-page .onboarding-next-action strong {
  color: #241f1e;
}

.authenticated-shell .onboarding-page .onboarding-hero p,
.authenticated-shell .onboarding-page .onboarding-gate p,
.authenticated-shell .onboarding-page .onboarding-section-copy p,
.authenticated-shell .onboarding-page .onboarding-boundary p,
.authenticated-shell .onboarding-page .onboarding-next-action p {
  color: #6d625f;
}

.authenticated-shell .onboarding-page .onboarding-section-card {
  background: rgba(255, 255, 255, .94);
  border-color: rgba(91, 69, 64, .13);
  box-shadow: 0 12px 28px rgba(57, 43, 39, .055);
}

.authenticated-shell .onboarding-page .onboarding-section-card.is-incomplete {
  background: rgba(255, 251, 248, .98);
  border-color: rgba(181, 119, 77, .26);
}

.authenticated-shell .onboarding-page .onboarding-section-card.is-complete {
  background: rgba(250, 253, 250, .96);
  border-color: rgba(79, 131, 93, .18);
}

.authenticated-shell .onboarding-next-action {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 20px;
}

.authenticated-shell .onboarding-next-label {
  align-self: start;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(145, 88, 95, .10);
  color: #7d4e55;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.authenticated-shell .onboarding-next-action p { margin: 4px 0 0; line-height: 1.5; }

.authenticated-shell .knowledge-status.client-processing {
  background: rgba(100, 111, 128, .10);
  color: #596371;
}
.authenticated-shell .knowledge-status.client-ready {
  background: rgba(164, 105, 67, .11);
  color: #875a3e;
}
.authenticated-shell .knowledge-status.client-live {
  background: rgba(66, 126, 84, .10);
  color: #456f51;
}
.authenticated-shell .knowledge-status.client-needs_attention {
  background: rgba(154, 62, 62, .09);
  color: #8b4747;
}
.authenticated-shell .knowledge-status.client-archived {
  background: rgba(92, 86, 84, .08);
  color: #67605e;
}

.authenticated-shell .knowledge-simple-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.authenticated-shell .knowledge-processing-note {
  color: #6f6663;
  font-size: 12px;
  font-weight: 800;
}
.authenticated-shell .knowledge-processing-note.is-error { color: #8b4747; }
.authenticated-shell .knowledge-use-button { min-width: 142px; }

.authenticated-shell .knowledge-editor-boundary.client-simple,
.authenticated-shell .knowledge-next-boundary.client-simple {
  background: rgba(249, 246, 244, .96);
  border-color: rgba(91, 69, 64, .11);
}

.authenticated-shell .knowledge-ingestion.client-simple {
  background: rgba(249, 247, 245, .92);
}

@media (max-width: 720px) {
  .authenticated-shell .onboarding-next-action { grid-template-columns: 1fr; }
  .authenticated-shell .onboarding-next-action .btn { width: 100%; }
  .authenticated-shell .knowledge-simple-actions { justify-content: stretch; }
  .authenticated-shell .knowledge-simple-actions .btn { flex: 1 1 45%; }
}
