 :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;
}
