:root {
  --bg: #f6f8fb;
  --bg-deep: #eaf1f7;
  --staff-site-background-illustration-image: none;
  --panel: #ffffff;
  --text: #102033;
  --muted: #5d6f82;
  --line: #d8e1ea;
  --staff-panel-surface: #ffffff;
  --staff-card-header-surface: #f1f5f9;
  --staff-logo-blue: #0060f8;
  --primary: #08afa3;
  --staff-button-primary-start: #08bdb1;
  --staff-button-primary-end: var(--staff-logo-blue);
  --primary-soft: #e4f8f5;
  --staff-info-blue-surface: #eaf4ff;
  --staff-info-blue-text: var(--staff-logo-blue);
  --staff-focus-ring: #5ccfc7;
  --accent: #f6b21a;
  --urgent: #d96e76;
  --high: #c98205;
  --normal: #08afa3;
  --low: #0d9f82;
  --staff-line-subtle: #d8e1ea;
  --staff-header-surface: #ffffff;
  --staff-header-subbar-surface: #f0f6fb;
  --staff-brand-gradient-start: #08bdb1;
  --staff-brand-gradient-end: var(--staff-logo-blue);
  --staff-nav-active-surface: #e7f4ff;
  --staff-toolbar-inner-start: #f8fafc;
  --staff-toolbar-inner-end: #eef4f9;
  --staff-toolbar-tool-surface: #f3f6fa;
  --staff-toolbar-tool-icon: #556a7e;
  --staff-call-console-surface: #f7fafc;
  --staff-call-console-card-surface: #ffffff;
  --staff-call-console-soft-surface: #eef5fa;
  --staff-call-console-border: #d6e1ea;
  --staff-call-console-text: #102033;
  --staff-call-console-muted: #607286;
  --staff-communication-idle-surface: #f8fafc;
  --staff-communication-incoming-surface: #eaf4ff;
  --staff-communication-active-start: #11bdaf;
  --staff-communication-active-mid: #089e93;
  --staff-communication-active-end: var(--staff-logo-blue);
  --staff-communication-end-start: #e78a8f;
  --staff-communication-end-end: #d56b72;
  --shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  --radius: 26px;
  --staff-font-body: "Avenir Next", "Segoe UI", Arial, sans-serif;
  --staff-font-heading: "Avenir Next", "Segoe UI", Arial, sans-serif;
  --staff-font-title: "Avenir Next", "Segoe UI", Arial, sans-serif;
  --staff-font-h1: "Avenir Next", "Segoe UI", Arial, sans-serif;
  --staff-font-h2: "Avenir Next", "Segoe UI", Arial, sans-serif;
  --staff-font-h3: "Avenir Next", "Segoe UI", Arial, sans-serif;
  --staff-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --staff-font-size-body: 0.9rem;
  --staff-font-size-title: 0.98rem;
  --staff-font-size-h1: 1.42rem;
  --staff-font-size-h2: 1.04rem;
  --staff-font-size-h3: 0.94rem;
  --staff-font-size-small: 0.76rem;
  --staff-font-size-button: 0.81rem;
  font-family: var(--staff-font-body, "Avenir Next", "Segoe UI", Arial, sans-serif);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  background: #ffffff;
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: none;
  opacity: 0;
}

body.staff-webphone-root::before {
  display: none;
}

#app,
.shell {
  position: relative;
  z-index: 1;
}

body.is-route-transitioning {
  cursor: progress;
}

.route-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(238, 244, 251, 0.12);
  backdrop-filter: blur(1px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, backdrop-filter 180ms ease;
}

.route-transition-overlay.is-visible {
  opacity: 1;
  backdrop-filter: blur(6px);
}

.route-transition-card {
  min-width: min(360px, calc(100vw - 48px));
  max-width: 420px;
  padding: 18px 22px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 82%, white 18%);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(36, 54, 73, 0.12);
  transform: translateY(10px) scale(0.985);
  transition: transform 180ms ease;
}

.route-transition-overlay.is-visible .route-transition-card {
  transform: translateY(0) scale(1);
}

.route-transition-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
}

.route-transition-copy {
  margin-top: 6px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

.viewport-support-overlay {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #ffffff;
  backdrop-filter: none;
}

.viewport-support-card {
  width: min(520px, calc(100vw - 48px));
  padding: 24px 26px;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 82%, white 18%);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 56px rgba(36, 54, 73, 0.16);
}

.viewport-support-title {
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--text);
}

.viewport-support-copy {
  margin-top: 10px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text);
}

.viewport-support-meta {
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.ambient {
  position: fixed;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  pointer-events: none;
}

.ambient-left {
  left: -6rem;
  top: -8rem;
  background: rgba(93, 184, 93, 0.22);
}

.ambient-right {
  right: -8rem;
  bottom: -6rem;
  background: rgba(122, 215, 234, 0.18);
}

.shell {
  position: relative;
  width: min(1440px, calc(100% - 32px));
  margin: 24px auto 40px;
}

.auth-shell {
  max-width: 960px;
}

.app-header {
  padding: 18px 24px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.app-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--staff-brand-gradient-start), var(--staff-brand-gradient-end));
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-title,
.brand-subtitle,
.header-account-name,
.header-account-role {
  margin: 0;
}

.brand-title,
.header-account-name {
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 600;
}

.brand-subtitle,
.header-account-role {
  color: var(--muted);
  font-size: 0.78rem;
}

.header-account {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.account-status.online {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.account-status.busy {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}

.account-status.offline,
.account-status.connecting {
  background: rgba(148, 163, 184, 0.16);
  color: #475569;
}

.hero {
  display: flex;
  gap: 24px;
  align-items: end;
  justify-content: space-between;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.hero-copy-block {
  max-width: 44rem;
}

.hero h1,
.panel h2 {
  margin: 0;
  font-family: "Iowan Old Style", Georgia, serif;
  line-height: 1.04;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  max-width: 10ch;
}

.hero-copy {
  margin: 12px 0 0;
  max-width: 42rem;
  color: var(--muted);
}

.hero-panel {
  min-width: 220px;
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--staff-button-primary-start, #5db85d) 82%, white 18%),
    color-mix(in srgb, var(--staff-info-blue-text, #5a7692) 78%, var(--staff-button-primary-end, #5db85d) 22%)
  );
  color: #ffffff;
  display: grid;
  gap: 6px;
}

.hero-link-button {
  width: fit-content;
  margin-top: 8px;
  padding: 0;
  background: transparent;
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  box-shadow: none !important;
}

.hero-stack {
  display: grid;
  gap: 14px;
}

.sync-panel {
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--staff-call-console-text, #243649) 94%, white 6%),
    color-mix(in srgb, var(--staff-call-console-muted, #738392) 58%, var(--staff-call-console-text, #243649) 42%)
  );
}

.sync-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.sync-pill.live {
  background: rgba(255, 255, 255, 0.16);
  color: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 74%, white 26%);
}

.sync-pill.connecting {
  background: rgba(255, 255, 255, 0.16);
  color: color-mix(in srgb, var(--staff-accent-warm, #edb36f) 76%, white 24%);
}

.sync-pill.offline {
  background: rgba(255, 255, 255, 0.16);
  color: color-mix(in srgb, var(--staff-danger-tone, #d96e76) 72%, white 28%);
}

.banner {
  margin-top: 18px;
  padding: 16px 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.banner-content {
  flex: 1 1 auto;
}

.banner-close {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: currentColor;
  font-size: 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.banner.info {
  background: rgba(219, 234, 254, 0.82);
  color: var(--primary);
}

.banner.error {
  background: rgba(255, 235, 229, 0.84);
  color: var(--accent);
}

.banner.warning {
  background: rgba(255, 244, 214, 0.9);
  color: color-mix(in srgb, var(--staff-warning-tone, #d79b56) 90%, var(--staff-text, #243649) 10%);
}

.staff-guardrail-banner {
  border-color: rgba(217, 119, 6, 0.22);
  box-shadow: 0 10px 28px rgba(120, 53, 15, 0.08);
}

.staff-guardrail-banner.info {
  border-color: color-mix(in srgb, var(--staff-info-blue-surface, #edf5fb) 44%, var(--staff-line-subtle, #d9e6e8) 56%);
  background: color-mix(in srgb, var(--staff-info-blue-surface, #edf5fb) 84%, white 16%);
  color: var(--staff-info-blue-text, #5a7692);
}

.staff-guardrail-banner .banner-content {
  display: grid;
  gap: 4px;
  line-height: 1.5;
}

.staff-guardrail-banner .banner-content strong {
  font-size: 0.88rem;
  font-weight: 800;
}

.staff-guardrail-banner .banner-content span {
  color: currentColor;
  font-size: 0.84rem;
}

.current-call {
  min-width: 220px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  background: rgba(255, 255, 255, 0.88);
  display: grid;
  gap: 6px;
}

.current-call strong {
  font-size: 1.05rem;
}

.empty-current-call {
  color: var(--muted);
}

.layout {
  display: grid;
  grid-template-columns: 1.15fr 0.9fr;
  gap: 24px;
  margin-top: 24px;
}

.staff-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.staff-nav-item {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 400;
}

.staff-nav-item.is-active {
  background: rgba(219, 234, 254, 0.88);
  color: var(--primary);
}

.page-shell {
  margin-top: 24px;
}

.dashboard-board {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.72fr);
  gap: 24px;
  margin-top: 18px;
  margin-bottom: 24px;
  align-items: start;
}

.dashboard-board-main,
.dashboard-board-side {
  display: grid;
  gap: 18px;
}

.dashboard-focus-panel {
  background: linear-gradient(180deg, rgba(254, 243, 199, 0.92), rgba(255, 255, 255, 0.9));
}

.dashboard-focus-list,
.dashboard-list,
.dashboard-news-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.dashboard-focus-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(217, 119, 6, 0.12);
}

.dashboard-focus-item p,
.dashboard-news-item p {
  margin: 0;
}

.dashboard-focus-dot {
  width: 11px;
  height: 11px;
  margin-top: 5px;
  border-radius: 999px;
  background: #d97706;
  flex: 0 0 auto;
}

.dashboard-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-mini-card {
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
}

.dashboard-mini-card.tone-blue {
  background: linear-gradient(180deg, rgba(219, 234, 254, 0.74), rgba(255, 255, 255, 0.92));
}

.dashboard-mini-card.tone-emerald {
  background: linear-gradient(180deg, rgba(209, 250, 229, 0.7), rgba(255, 255, 255, 0.92));
}

.dashboard-mini-card.tone-amber {
  background: linear-gradient(180deg, rgba(254, 243, 199, 0.78), rgba(255, 255, 255, 0.92));
}

.dashboard-mini-card.tone-slate {
  background: linear-gradient(180deg, rgba(226, 232, 240, 0.78), rgba(255, 255, 255, 0.92));
}

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

.dashboard-list-panel {
  min-height: 100%;
}

.dashboard-list-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.dashboard-list-item strong,
.dashboard-news-item strong {
  display: block;
  margin: 0 0 4px;
  color: var(--text);
}

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

.handover-list-item-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.handover-list-item-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
  flex: 0 0 auto;
  text-align: right;
}

.handover-delete-button,
.webphone-handover-item__delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(248, 113, 113, 0.28);
  border-radius: 999px;
  background: rgba(254, 242, 242, 0.92);
  color: #b91c1c;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.handover-delete-button:hover:not(:disabled),
.webphone-handover-item__delete:hover:not(:disabled) {
  border-color: rgba(239, 68, 68, 0.42);
  background: #fee2e2;
}

.handover-delete-button:disabled,
.webphone-handover-item__delete:disabled {
  opacity: 0.62;
  cursor: default;
}

.handover-delete-hint {
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 650;
  white-space: nowrap;
}

.dashboard-item-meta {
  display: grid;
  justify-items: end;
  gap: 8px;
  text-align: right;
  flex: 0 0 auto;
}

.dashboard-button-item {
  width: 100%;
  text-align: left;
  color: inherit;
  text-decoration: none;
}

.dashboard-button-item:hover {
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.dashboard-news-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(219, 234, 254, 0.28);
  border: 1px solid rgba(37, 99, 235, 0.14);
  display: grid;
  gap: 8px;
}

.dashboard-intro {
  margin-bottom: 8px;
}

.dashboard-header-grid {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.dashboard-header-grid .dashboard-intro {
  margin-bottom: 0;
  width: max-content;
}

.dashboard-duty-card {
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  min-height: 164px;
  border-radius: 20px;
  background: #fffbeb;
  border: 2px solid #fde68a;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.08);
}

.dashboard-duty-card--compact {
  min-height: 108px;
  padding: 14px 16px;
}

.dashboard-duty-card--compact .dashboard-duty-copy {
  margin-top: 10px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.dashboard-duty-card--compact .dashboard-duty-textarea {
  margin-top: 10px;
  min-height: 58px;
  padding: 10px 12px;
}

.dashboard-notice-card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: #ffffff;
  min-height: 82px;
  height: 82px;
  padding: 8px 10px;
  border: 1px solid rgba(249, 115, 22, 0.38);
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.04);
  overflow: hidden;
}

.dashboard-notice-card .dashboard-duty-header {
  justify-content: flex-end;
}

.dashboard-notice-card .dashboard-duty-title-row {
  gap: 0;
  width: 100%;
  justify-content: flex-end;
  text-align: right;
}

.dashboard-notice-card .dashboard-section-title {
  font-size: 0.78rem;
  line-height: 1;
  text-align: right;
}

.dashboard-notice-card .dashboard-duty-title {
  font-size: 0.78rem;
  line-height: 1;
}

.dashboard-duty-header,
.dashboard-section-head,
.dashboard-news-topline,
.dashboard-stat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-duty-title-row,
.dashboard-title-with-icon {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-section-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.dashboard-section-icon.amber {
  background: #fef3c7;
  color: #b45309;
}

.dashboard-section-icon.blue {
  background: #dbeafe;
  color: #2563eb;
}

.dashboard-section-icon.green {
  background: #dcfce7;
  color: #15803d;
}

.dashboard-section-icon.rose {
  background: #ffe4e6;
  color: #e11d48;
}

.dashboard-section-title {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 600;
}

.dashboard-duty-title {
  font-size: 1.08rem;
  color: #78350f;
}

.dashboard-section-subtitle {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 0.78rem;
}

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

.dashboard-inline-icon-button {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #dbe4ef;
  background: #ffffff;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dashboard-inline-icon-button.success {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
}

.dashboard-inline-icon-button:disabled {
  opacity: 0.6;
}

.dashboard-duty-copy {
  margin: 12px 0 0;
  color: #78350f;
  font-size: 0.88rem;
  line-height: 1.55;
  flex: 1 1 auto;
}

.dashboard-duty-textarea {
  width: 100%;
  margin-top: 12px;
  min-height: 72px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 2px solid #fcd34d;
  background: #ffffff;
  color: #0f172a;
  resize: vertical;
}

.dashboard-notice-list {
  margin-top: 6px;
  display: grid;
  gap: 2px;
  min-height: 0;
  align-content: start;
  justify-items: stretch;
  overflow: hidden;
}

.dashboard-notice-item {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
}

.dashboard-notice-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
  text-align: right;
  overflow: hidden;
}

.dashboard-notice-message {
  margin: 0;
  color: #c2410c;
  font-size: 0.68rem;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dashboard-notice-meta {
  margin: 0;
  color: #9a3412;
  font-size: 0.58rem;
  line-height: 1;
  font-weight: 600;
}

.dashboard-notice-empty {
  margin: 0;
  color: #b45309;
  font-size: 0.68rem;
  line-height: 1.2;
  text-align: right;
}

.dashboard-notice-overflow {
  margin: 0;
  color: #c2410c;
  font-size: 0.74rem;
  font-weight: 700;
}

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

.dashboard-stat-card {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 84%, white 16%);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 12%, white 88%) 100%
  );
  box-shadow: 0 16px 34px rgba(36, 54, 73, 0.06);
}

.dashboard-stat-card--link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: box-shadow 160ms ease, border-color 160ms ease;
}

.dashboard-stat-card--link:hover {
  border-color: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 40%, var(--staff-line-subtle, #d9e6e8) 60%);
  box-shadow: 0 18px 36px rgba(36, 54, 73, 0.08);
}

.dashboard-stat-head h3 {
  margin: 0;
  color: var(--staff-text, #243649);
  font-size: 1rem;
  font-weight: 600;
}

.dashboard-stat-value {
  margin-top: 18px;
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
}

.dashboard-stat-value.blue {
  color: var(--staff-info-blue-text, #5a7692);
}

.dashboard-stat-value.green {
  color: var(--staff-success-tone, #4fb89d);
}

.dashboard-stat-value.rose {
  color: var(--staff-danger-tone, #d96e76);
}

.dashboard-stat-copy {
  margin: 8px 0 0;
  color: var(--staff-text-muted, #728191);
  font-size: 0.78rem;
}

.dashboard-status-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dashboard-summary-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--staff-text-muted, #728191);
}

.dashboard-summary-dot,
.dashboard-presence-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
  flex: 0 0 auto;
}

.dashboard-summary-pill.online .dashboard-summary-dot,
.dashboard-presence-dot.online {
  background: var(--staff-success-tone, #4fb89d);
}

.dashboard-summary-pill.busy .dashboard-summary-dot,
.dashboard-presence-dot.busy {
  background: var(--staff-warning-tone, #d79b56);
}

.dashboard-presence-dot.offline {
  background: color-mix(in srgb, var(--staff-text-muted, #728191) 60%, white 40%);
}

.dashboard-team-grid,
.dashboard-client-list,
.dashboard-missed-list,
.dashboard-news-list,
.dashboard-new-client-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

@media (min-width: 900px) {
  .dashboard-staff-card .dashboard-team-grid--two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
}

.dashboard-team-item,
.dashboard-client-row,
.dashboard-missed-row,
.dashboard-news-row,
.dashboard-new-client-row {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 76%, white 24%);
  background: color-mix(in srgb, var(--staff-panel-surface, #ffffff) 88%, var(--staff-primary-soft, #eef8ee) 12%);
  text-align: left;
}

.dashboard-team-item,
.dashboard-client-row,
.dashboard-missed-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.dashboard-client-row,
.dashboard-new-client-row,
.dashboard-missed-row {
  color: inherit;
}

.dashboard-team-name,
.dashboard-client-row-main,
.dashboard-missed-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-team-state,
.dashboard-client-state {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
}

.dashboard-team-state.online,
.dashboard-client-state.online {
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 84%, white 16%);
  color: color-mix(in srgb, var(--staff-success-tone, #4fb89d) 76%, var(--staff-text, #243649) 24%);
}

.dashboard-team-state.busy,
.dashboard-client-state.busy {
  background: color-mix(in srgb, var(--staff-accent-warm, #edb36f) 16%, white 84%);
  color: color-mix(in srgb, var(--staff-warning-tone, #d79b56) 84%, var(--staff-text, #243649) 16%);
}

.dashboard-team-state.offline {
  background: color-mix(in srgb, var(--staff-tool-surface, #f3f8f9) 84%, white 16%);
  color: var(--staff-text-muted, #728191);
}

.dashboard-client-name {
  color: var(--staff-text, #243649);
  font-size: 0.92rem;
  font-weight: 600;
}

.dashboard-client-row-meta,
.dashboard-missed-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  color: var(--staff-text-muted, #728191);
  font-size: 0.78rem;
}

.dashboard-client-type {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dashboard-client-type.video {
  background: color-mix(in srgb, var(--staff-info-blue-surface, #edf5fb) 84%, white 16%);
  color: var(--staff-info-blue-text, #5a7692);
}

.dashboard-client-type.audio {
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 84%, white 16%);
  color: color-mix(in srgb, var(--staff-success-tone, #4fb89d) 78%, var(--staff-text, #243649) 22%);
}

.dashboard-missed-row {
  background: color-mix(in srgb, var(--staff-danger-tone, #d96e76) 8%, white 92%);
  border-color: color-mix(in srgb, var(--staff-danger-tone, #d96e76) 18%, var(--staff-line-subtle, #d9e6e8) 82%);
}

.dashboard-missed-icon {
  color: var(--staff-danger-tone, #d96e76);
}

.dashboard-news-row {
  display: grid;
  gap: 8px;
}

.dashboard-news-row strong,
.dashboard-new-client-row strong {
  color: var(--staff-text, #243649);
}

.dashboard-news-row p,
.dashboard-new-client-row p,
.dashboard-card-footer p {
  margin: 0;
  color: var(--staff-text-muted, #728191);
  font-size: 0.78rem;
  line-height: 1.6;
}

.dashboard-news-topline span {
  color: color-mix(in srgb, var(--staff-text-muted, #728191) 72%, white 28%);
  font-size: 0.74rem;
  white-space: nowrap;
}

.dashboard-card-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 76%, white 24%);
}

.dashboard-card-footer.subtle {
  border-top-color: color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 86%, white 14%);
}

.dashboard-card-link {
  color: var(--staff-info-blue-text, #5a7692);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}

.dashboard-card-link.muted {
  color: var(--staff-text-muted, #728191);
}

.dashboard-waitroom-card {
  border-color: #e8edf4;
}

.dashboard-waitroom-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.dashboard-waitroom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 0.9rem;
  color: #0f172a;
}

.dashboard-waitroom-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dashboard-waitroom-row.neutral {
  background: color-mix(in srgb, var(--staff-tool-surface, #f3f8f9) 78%, white 22%);
}

.dashboard-waitroom-row.blue {
  background: color-mix(in srgb, var(--staff-info-blue-surface, #edf5fb) 82%, white 18%);
  color: var(--staff-info-blue-text, #5a7692);
}

.dashboard-waitroom-row.green {
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 84%, white 16%);
  color: color-mix(in srgb, var(--staff-success-tone, #4fb89d) 78%, var(--staff-text, #243649) 22%);
}

.dashboard-waitroom-row.amber {
  background: color-mix(in srgb, var(--staff-accent-warm, #edb36f) 18%, white 82%);
  color: color-mix(in srgb, var(--staff-warning-tone, #d79b56) 84%, var(--staff-text, #243649) 16%);
}

.dashboard-waitroom-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: inherit;
}

.dashboard-waitroom-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.dashboard-handover-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.dashboard-handover-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--staff-panel-surface, #ffffff) 84%, var(--staff-primary-soft, #eef8ee) 16%);
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 78%, white 22%);
}

.dashboard-handover-copy {
  display: grid;
  gap: 4px;
}

.dashboard-handover-copy strong {
  color: var(--staff-text, #243649);
  font-size: 0.92rem;
}

.dashboard-handover-copy p {
  margin: 0;
  color: var(--staff-text-muted, #728191);
  font-size: 0.82rem;
  line-height: 1.55;
}

.dashboard-card-head {
  align-items: flex-start;
}

.dashboard-handover-side {
  display: grid;
  justify-items: end;
  gap: 8px;
  flex-shrink: 0;
}

.dashboard-handover-meta {
  color: #94a3b8;
  font-size: 0.74rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.dashboard-inline-editor {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.dashboard-inline-editor-actions {
  justify-content: flex-end;
}

.dashboard-textarea {
  width: 100%;
  min-height: 108px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #dbe4ef;
  background: #ffffff;
  color: #0f172a;
  resize: vertical;
  font: inherit;
}

.dashboard-feedback {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  color: #475569;
  font-size: 0.84rem;
  line-height: 1.5;
}

.dashboard-footer-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.dashboard-inline-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #2563eb;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.dashboard-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.36);
  backdrop-filter: blur(6px);
}

.dashboard-modal-card {
  width: min(860px, 100%);
  max-height: min(78vh, 820px);
  overflow: auto;
  padding: 24px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.2);
  display: grid;
  gap: 18px;
}

.dashboard-modal-head,
.dashboard-modal-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-modal-list {
  display: grid;
  gap: 12px;
}

.workspace-context-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(8px);
}

.workspace-context-modal .modal-card {
  width: min(480px, 100%);
  padding: 24px;
  border: 1px solid #e8edf5;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}

.workspace-context-modal .modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.workspace-context-modal .modal-header h2 {
  margin: 0;
  color: #21345a;
  font-size: 22px;
}

.workspace-context-modal .modal-close {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--staff-line-subtle);
  border-radius: 12px;
  background: #ffffff;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
}

.workspace-context-modal .modal-close-mark {
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 400;
}

.workspace-context-modal .modal-body {
  display: grid;
  gap: 10px;
  margin: 16px 0 20px;
  color: #5f6c86;
  line-height: 1.5;
}

.workspace-context-compare {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.workspace-context-compare__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.workspace-context-compare__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #94a3b8;
}

.workspace-context-compare__value {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2a44;
}

.workspace-context-compare__item.is-next .workspace-context-compare__value {
  color: #1f5f8b;
}

.workspace-context-modal .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.dashboard-modal-item {
  padding: 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.dashboard-modal-item p {
  margin: 10px 0 0;
  color: #475569;
  font-size: 0.86rem;
  line-height: 1.6;
}

.dashboard-modal-item-side {
  display: grid;
  justify-items: end;
  gap: 8px;
  color: #94a3b8;
  font-size: 0.74rem;
}

.dashboard-modal-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-modal-pagination button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: inset 0 0 0 1px #dbe4ef;
}

.dashboard-hourly-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.dashboard-hourly-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
}

.dashboard-hourly-copy {
  display: grid;
  gap: 4px;
}

.dashboard-hourly-copy strong {
  color: #0f172a;
  font-size: 0.88rem;
}

.dashboard-hourly-copy span {
  color: #64748b;
  font-size: 0.76rem;
  line-height: 1.5;
}

.dashboard-hourly-value {
  color: #2563eb;
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 800;
}

.dashboard-forecast-chart {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  min-height: 220px;
  margin-top: 18px;
}

.dashboard-forecast-column {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.dashboard-forecast-value {
  font-size: 0.8rem;
  color: #475569;
  font-weight: 600;
}

.dashboard-forecast-bar-shell {
  width: 100%;
  max-width: 42px;
  min-height: 140px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 8px 0;
  border-radius: 16px;
  background: #f8fafc;
}

.dashboard-forecast-bar {
  width: 100%;
  border-radius: 12px;
  background: linear-gradient(180deg, #93c5fd 0%, #3b82f6 100%);
}

.dashboard-forecast-bar.tone-warning {
  background: linear-gradient(180deg, #fdba74 0%, #f97316 100%);
}

.dashboard-forecast-bar.tone-calm {
  background: linear-gradient(180deg, #86efac 0%, #22c55e 100%);
}

.dashboard-forecast-label {
  font-size: 0.76rem;
  color: #64748b;
}

.dashboard-forecast-empty {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  border: 1px dashed #f2c36b;
  border-radius: 16px;
  background: #fffaf0;
  padding: 18px;
  color: #875404;
}

.dashboard-forecast-empty .dashboard-empty-icon {
  margin: 0;
  flex: 0 0 auto;
}

.dashboard-forecast-empty strong,
.dashboard-forecast-empty p {
  display: block;
}

.dashboard-forecast-empty strong {
  color: #633b03;
  font-size: 0.92rem;
}

.dashboard-forecast-empty p {
  margin: 4px 0 0;
  color: #875404;
  font-size: 0.8rem;
  line-height: 1.45;
}

.dashboard-empty-inline {
  padding: 28px 0 10px;
  text-align: center;
  color: #94a3b8;
}

.dashboard-empty-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dashboard-empty-icon.rose {
  background: #ffe4e6;
  color: #e11d48;
}

.dashboard-empty-icon.amber {
  background: #fef3c7;
  color: #b45309;
}

.dashboard-empty-icon.blue {
  background: #dbeafe;
  color: #2563eb;
}

.page-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.page-title {
  margin: 0;
  font-family: "Ubuntu", "Avenir Next", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.1;
}

.page-copy {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 44rem;
}

.topbar-actions {
  display: flex;
  align-items: flex-end;
  gap: 14px;
}

.topbar-sync {
  min-width: 240px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.84rem;
}

.page-logout {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
  gap: 24px;
  align-items: start;
}

.dashboard-main,
.dashboard-side {
  display: grid;
  gap: 18px;
}

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

.dashboard-main--full,
.dashboard-primary-stack,
.dashboard-priority-side,
.dashboard-insight-side {
  display: grid;
  gap: 18px;
}

.dashboard-priority-grid,
.dashboard-insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(320px, 0.82fr);
  gap: 18px;
  align-items: start;
}

.dashboard-priority-grid--after-forecast {
  margin-top: 18px;
}

.dashboard-priority-side--lowered {
  padding-top: 0;
}

.dashboard-workstream-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  align-items: start;
}

.dashboard-handover-card--wide {
  width: 100%;
}

.compact-panel {
  padding: 20px 22px;
}

.sidebar-call-card .current-call {
  min-width: 0;
}

.sidebar-stats {
  display: grid;
  gap: 12px;
}

.sidebar-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

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

.sidebar-stat-row span {
  color: var(--muted);
  font-size: 0.88rem;
}

.staff-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.overview-card {
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
}

.overview-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 400;
}

.overview-value {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1;
}

.overview-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.overview-card.tone-blue {
  background: linear-gradient(180deg, rgba(219, 234, 254, 0.74), rgba(255, 255, 255, 0.92));
}

.overview-card.tone-emerald {
  background: linear-gradient(180deg, rgba(209, 250, 229, 0.7), rgba(255, 255, 255, 0.92));
}

.overview-card.tone-amber {
  background: linear-gradient(180deg, rgba(254, 243, 199, 0.78), rgba(255, 255, 255, 0.92));
}

.overview-card.tone-rose {
  background: linear-gradient(180deg, rgba(255, 228, 230, 0.78), rgba(255, 255, 255, 0.92));
}

.column {
  display: grid;
  gap: 24px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.auth-panel {
  margin-top: 24px;
}

.panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--muted);
}

.muted {
  margin: 8px 0 0;
  color: var(--muted);
}

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

.metric-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.metric-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
}

.waitroom-card,
.search-result,
.queue-actions button,
.action-row button,
.action-row a {
  transition: box-shadow 140ms ease, background 140ms ease, border-color 140ms ease;
}

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

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

.auth-form-grid label {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

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

.auth-setup-qr-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 18px;
  margin-bottom: 18px;
}

.auth-setup-qr-copy h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
}

.auth-setup-qr-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
}

.auth-setup-qr-svg {
  display: block;
  max-width: 100%;
  height: auto;
  shape-rendering: crispEdges;
}

.auth-setup-qr-fallback {
  max-width: 220px;
  text-align: center;
}

.auth-setup-textarea {
  min-height: 104px;
  resize: vertical;
}

.auth-recovery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.auth-recovery-code,
.auth-recovery-empty {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
}

.auth-recovery-code {
  font-family: var(--staff-font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 0.86rem;
  color: var(--text);
}

.auth-recovery-empty {
  grid-column: 1 / -1;
  color: var(--muted);
}

.waitroom-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
  padding: 18px;
  text-align: left;
  display: grid;
  gap: 8px;
  color: var(--text);
}

.waitroom-card.is-active {
  background: linear-gradient(180deg, var(--primary-soft), rgba(255, 255, 255, 0.9));
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.queue-list,
.search-results,
.audit-list {
  display: grid;
  gap: 14px;
}

.signal-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.signal-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  padding: 14px 16px;
  display: grid;
  gap: 6px;
}

.signal-item p {
  margin: 0;
}

.signal-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.queue-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  padding: 18px;
}

.queue-card.active {
  background: rgba(37, 99, 235, 0.08);
}

.queue-main {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.queue-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
}

.queue-name {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.queue-meta,
.queue-note,
.ghost-text {
  margin: 6px 0 0;
  color: var(--muted);
}

.queue-stats,
.action-row,
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.auth-actions {
  margin-top: 18px;
}

.queue-stats span,
.facts div {
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(37, 99, 235, 0.06);
}

.facts div {
  min-width: 180px;
  display: grid;
  gap: 6px;
}

.facts span {
  color: var(--muted);
  font-size: 0.84rem;
}

.priority,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: capitalize;
}

.priority.urgent {
  background: rgba(166, 42, 29, 0.14);
  color: var(--urgent);
}

.priority.high {
  background: rgba(204, 106, 26, 0.16);
  color: var(--high);
}

.priority.normal {
  background: rgba(51, 101, 138, 0.12);
  color: var(--normal);
}

.priority.low {
  background: rgba(75, 106, 77, 0.14);
  color: var(--low);
}

.status-pill.open {
  background: rgba(37, 99, 235, 0.14);
  color: var(--primary);
}

.status-pill.closed {
  background: rgba(167, 70, 50, 0.12);
  color: var(--accent);
}

.status-pill.warning {
  background: rgba(204, 106, 26, 0.14);
  color: var(--high);
}

.status-pill.pending {
  background: rgba(255, 227, 177, 0.2);
  color: #8b5a13;
}

.search-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font: inherit;
}

.search-result {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  padding: 14px 16px;
  text-align: left;
  display: grid;
  gap: 5px;
}

.search-result.is-active {
  background: rgba(37, 99, 235, 0.1);
}

.call-state-block {
  display: grid;
  gap: 5px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(37, 99, 235, 0.08);
}

.detail-grid,
.profile-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.profile-subline {
  margin: 10px 0 0;
  color: var(--muted);
}

.profile-facts {
  margin-top: 18px;
}

.profile-section {
  display: grid;
  gap: 10px;
}

.profile-section p {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}

.profile-actions {
  margin-top: 18px;
}

.detail-block {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.queue-warning {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(204, 106, 26, 0.22);
  background: rgba(255, 247, 214, 0.94);
  color: #8d4f00;
  line-height: 1.45;
}

.detail-block.detail-warning {
  border: 1px solid rgba(204, 106, 26, 0.22);
  background: rgba(255, 244, 214, 0.92);
  color: #8d4f00;
}

.queue-warning strong,
.detail-block.detail-warning strong {
  color: #6d3d00;
}

.peer-facts {
  margin-top: 18px;
}

.peer-stage {
  margin-top: 18px;
}

.peer-video-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 14px;
}

.peer-media-card {
  padding: 16px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(20, 28, 24, 0.92);
  color: #f7f1e8;
  display: grid;
  gap: 12px;
}

.peer-media-card .eyebrow,
.peer-media-card .muted {
  color: rgba(247, 241, 232, 0.78);
}

.peer-media-card.audio strong {
  font-size: 1.05rem;
}

.peer-video {
  width: 100%;
  min-height: 220px;
  border-radius: 18px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.peer-audio {
  width: 100%;
}

button,
a {
  border: 0;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}

.queue-actions button,
.action-row button,
.action-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}

.primary {
  background: linear-gradient(180deg, #2563eb, #1d4ed8) !important;
  color: #eff6ff !important;
}

.queue-card.is-pending {
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.2);
}

button[disabled],
a[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}

button:hover,
a:hover {
  transform: none;
}

.audit-list p,
.empty-state {
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
}

.session-stack {
  display: grid;
  gap: 12px;
}

.panel-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.own-session-row {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.own-session-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}

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

.session-row-head strong {
  display: block;
}

.session-subline {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

.staff-webphone-root {
  position: relative;
}

.webphone-shell {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 70;
}

.webphone-panel {
  pointer-events: none;
  position: fixed;
  top: 50%;
  right: 104px;
  bottom: auto;
  width: min(284px, calc(100vw - 56px));
  padding: 16px;
  transform: translate(18px, -50%);
  border: 4px solid #7dd3fc;
  border-radius: 2.4rem;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.22);
  opacity: 0;
  overflow: hidden;
  transition: transform 220ms ease, opacity 220ms ease;
}

.webphone-shell.is-open .webphone-panel {
  pointer-events: auto;
  transform: translate(0, -50%);
  opacity: 1;
}

.webphone-panel.is-notes {
  width: min(540px, calc(100vw - 56px));
  border-color: #fdba74;
}

.webphone-panel.is-incoming {
  width: min(344px, calc(100vw - 56px));
  border-color: #93c5fd;
  background: linear-gradient(180deg, #f8fcff 0%, #ffffff 100%);
}

.webphone-panel.is-search,
.webphone-panel.is-handover {
  display: flex;
  flex-direction: column;
}

.webphone-panel.is-search {
  width: min(978px, calc(100vw - 56px));
  height: min(44rem, calc(100vh - 40px));
  min-height: min(44rem, calc(100vh - 40px));
  max-height: min(44rem, calc(100vh - 40px));
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.webphone-panel.is-handover {
  width: min(558px, calc(100vw - 56px));
  max-height: min(42rem, calc(100vh - 48px));
  border-color: #475569;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.webphone-panel.is-incoming .webphone-title {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.webphone-panel.is-incoming .webphone-copy {
  font-size: 0.72rem;
  color: #6b7280;
}

.webphone-panel.is-incoming .webphone-panel-head {
  align-items: center;
  padding-bottom: 10px;
}

.webphone-panel.is-incoming .webphone-panel-head > div {
  display: flex;
  align-items: center;
  min-height: 34px;
}

.webphone-panel.is-notes {
  width: min(360px, calc(100vw - 56px));
  border-color: #fdba74;
}

.webphone-panel.is-incoming {
  width: min(344px, calc(100vw - 56px));
  border-color: #93c5fd;
  background: linear-gradient(180deg, #f8fcff 0%, #ffffff 100%);
}

.webphone-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 0 0 18px;
}

.webphone-panel-head > div:not(.webphone-panel-head-actions) {
  min-width: 0;
  flex: 1;
}

.webphone-panel-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
  flex: 0 0 auto;
  flex-shrink: 0;
  align-self: flex-start;
}

.webphone-title {
  margin: 0;
  font-size: 1.22rem;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.webphone-title--with-icon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.webphone-title__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  color: #4c93e6;
}

.webphone-title__icon .figma-icon {
  width: 1.05rem;
  height: 1.05rem;
}

.webphone-copy {
  min-height: 1rem;
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.webphone-demo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.webphone-demo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.webphone-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  flex-shrink: 0;
  font-size: 1.2rem;
  line-height: 1;
}

.webphone-tabs {
  display: flex;
  justify-content: center;
  width: max-content;
  margin: 0 auto 12px;
  padding: 3px;
  gap: 0;
  border-radius: 999px;
  background: #f1f5f9;
}

.webphone-tab {
  min-width: 78px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 8px 13px;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
}

.webphone-tab.is-active {
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

.webphone-body {
  min-width: 0;
  padding: 0;
  border-top: 0;
  min-height: 27rem;
  display: flex;
  flex-direction: column;
}

.webphone-body.is-notes,
.webphone-body.is-incoming {
  min-height: 26rem;
}

.webphone-body.is-search,
.webphone-body.is-handover {
  min-height: 0;
  gap: 12px;
  overflow: auto;
}

.webphone-body.is-handover {
  height: 100%;
  overflow: hidden;
}

.webphone-body.is-incoming {
  min-height: 0;
}

.webphone-body.is-incoming {
  min-height: 13.4rem;
}

.webphone-note-meta {
  margin-bottom: 10px;
  font-size: 0.72rem;
  color: #9a3412;
}

.webphone-note-textarea {
  width: 100%;
  min-height: 21.5rem;
  resize: vertical;
  border: 2px solid #fdba74;
  border-radius: 1.4rem;
  background: #fffaf5;
  padding: 14px 16px;
  color: #7c2d12;
  font: inherit;
  line-height: 1.55;
  box-shadow: inset 0 2px 8px rgba(249, 115, 22, 0.08);
}

.webphone-note-textarea:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.incoming-demo-card {
  border: 1px solid #dbeafe;
  border-radius: 1.3rem;
  background: #ffffff;
  padding: 10px;
  box-shadow: 0 12px 26px rgba(59, 130, 246, 0.06);
}

.incoming-demo-topline,
.incoming-demo-meta,
.incoming-demo-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.incoming-demo-topline-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.incoming-demo-badge,
.incoming-demo-countdown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.7rem;
  font-weight: 800;
}

.incoming-demo-badge {
  background: #dbeafe;
  color: #1d4ed8;
}

.incoming-demo-countdown {
  background: #eff6ff;
  color: #1e40af;
}

.incoming-demo-countdown.is-urgent {
  background: #fee2e2;
  color: #b91c1c;
}

.incoming-demo-title {
  margin: 10px 0 6px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
}

.incoming-demo-copy {
  margin: 0;
  color: #64748b;
  font-size: 0.74rem;
  line-height: 1.45;
}

.incoming-demo-meta {
  margin-top: 10px;
  color: #64748b;
  font-size: 0.66rem;
}

.incoming-demo-actions {
  margin-top: 12px;
  justify-content: center;
}

.incoming-demo-button {
  min-width: 92px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
}

.incoming-demo-button.is-accept {
  background: #22c55e;
}

.incoming-demo-button.is-decline {
  background: #ef4444;
}

.incoming-demo-menu-trigger,
.incoming-demo-back,
.incoming-demo-option {
  border: 1px solid #dbeafe;
  background: #ffffff;
  color: #2563eb;
  border-radius: 999px;
  font: inherit;
}

.incoming-demo-menu-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 34px;
  height: 34px;
}

.incoming-demo-menu-trigger span {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
}

.incoming-demo-subview-head {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 4px;
}

.incoming-demo-back {
  padding: 7px 12px;
  font-size: 0.72rem;
  font-weight: 600;
}

.incoming-demo-option-list,
.incoming-demo-field-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.incoming-demo-option {
  padding: 10px 14px;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
}

.incoming-demo-field {
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: 0.72rem;
}

.incoming-demo-field select,
.incoming-demo-field input {
  width: 100%;
  border: 1px solid #dbeafe;
  border-radius: 0.9rem;
  background: #f8fbff;
  padding: 10px 12px;
  color: #334155;
  font: inherit;
}

.incoming-demo-audio-track {
  margin-top: 12px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 34px;
}

.incoming-demo-audio-track span {
  width: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #38bdf8 0%, #2563eb 100%);
  animation: incoming-audio-wave 1.2s ease-in-out infinite;
}

.incoming-demo-audio-track span:nth-child(1) { height: 18px; }
.incoming-demo-audio-track span:nth-child(2) { height: 38px; animation-delay: 0.1s; }
.incoming-demo-audio-track span:nth-child(3) { height: 24px; animation-delay: 0.2s; }
.incoming-demo-audio-track span:nth-child(4) { height: 42px; animation-delay: 0.3s; }
.incoming-demo-audio-track span:nth-child(5) { height: 22px; animation-delay: 0.4s; }

@keyframes incoming-audio-wave {
  0%, 100% { transform: scaleY(0.72); opacity: 0.7; }
  50% { transform: scaleY(1); opacity: 1; }
}

.webphone-body.is-notes,
.webphone-body.is-incoming {
  min-height: 26rem;
}

.webphone-note-meta {
  margin-bottom: 10px;
  font-size: 0.72rem;
  color: #9a3412;
}

.webphone-note-textarea {
  width: 100%;
  min-height: 21.5rem;
  resize: vertical;
  border: 2px solid #fdba74;
  border-radius: 1.4rem;
  background: #fffaf5;
  padding: 14px 16px;
  color: #7c2d12;
  font: inherit;
  line-height: 1.55;
  box-shadow: inset 0 2px 8px rgba(249, 115, 22, 0.08);
}

.webphone-note-textarea:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.incoming-demo-card {
  border: 1px solid #dbeafe;
  border-radius: 1.3rem;
  background: #ffffff;
  padding: 12px;
  box-shadow: 0 12px 26px rgba(59, 130, 246, 0.06);
}

.incoming-demo-topline,
.incoming-demo-meta,
.incoming-demo-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.incoming-demo-badge,
.incoming-demo-countdown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.7rem;
  font-weight: 800;
}

.incoming-demo-badge {
  background: #dbeafe;
  color: #1d4ed8;
}

.incoming-demo-countdown {
  background: #eff6ff;
  color: #1e40af;
}

.incoming-demo-countdown.is-urgent {
  background: #fee2e2;
  color: #b91c1c;
}

.incoming-demo-title {
  margin: 10px 0 6px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
}

.incoming-demo-copy {
  margin: 0;
  color: #64748b;
  font-size: 0.74rem;
  line-height: 1.45;
}

.incoming-demo-meta {
  margin-top: 10px;
  color: #64748b;
  font-size: 0.66rem;
}

.incoming-demo-actions {
  margin-top: 12px;
  justify-content: flex-start;
}

.incoming-demo-button {
  min-width: 92px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
}

.incoming-demo-button.is-accept {
  background: #22c55e;
}

.incoming-demo-button.is-decline {
  background: #ef4444;
}

.incoming-demo-audio-track {
  margin-top: 12px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 34px;
}

.incoming-demo-audio-track span {
  width: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #38bdf8 0%, #2563eb 100%);
  animation: incoming-audio-wave 1.2s ease-in-out infinite;
}

.incoming-demo-audio-track span:nth-child(1) { height: 18px; }
.incoming-demo-audio-track span:nth-child(2) { height: 38px; animation-delay: 0.1s; }
.incoming-demo-audio-track span:nth-child(3) { height: 24px; animation-delay: 0.2s; }
.incoming-demo-audio-track span:nth-child(4) { height: 42px; animation-delay: 0.3s; }
.incoming-demo-audio-track span:nth-child(5) { height: 22px; animation-delay: 0.4s; }

@keyframes incoming-audio-wave {
  0%, 100% { transform: scaleY(0.72); opacity: 0.7; }
  50% { transform: scaleY(1); opacity: 1; }
}

.webphone-display {
  border: 1px solid #e8edf3;
  border-radius: 1.6rem;
  background: #ffffff;
  padding: 10px;
  box-shadow: inset 0 2px 8px rgba(15, 23, 42, 0.025);
}

.webphone-display-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: center;
}

.webphone-display-input-shell {
  min-width: 0;
  overflow: hidden;
  width: 100%;
}

.webphone-number-input {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  color: #475569;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.webphone-number-input::placeholder {
  color: #c0cad6;
}

.webphone-display-actions {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.webphone-inline-clear {
  border: 1px solid #e8edf3;
  border-radius: 999px;
  background: #f8fafc;
  color: #94a3b8;
  padding: 5px 10px;
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1;
}

.webphone-keypad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
  gap: 10px;
  justify-items: center;
}

.webphone-key {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid #edf1f5;
  background: #fbfcfd;
  padding: 0;
  box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.95), 0 4px 12px rgba(15, 23, 42, 0.05);
}

.webphone-key-value {
  font-size: 1.28rem;
  font-weight: 500;
  line-height: 1;
  color: #475569;
}

.webphone-key-copy {
  margin-top: 2px;
  font-size: 0.58rem;
  font-weight: 500;
  color: #a3afbf;
}

.webphone-console-actions {
  display: grid;
  margin-top: 14px;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.webphone-test-row {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.webphone-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: white;
  font-size: 0.86rem;
  font-weight: 700;
}

.webphone-action-button.is-call {
  background: #10b981;
  box-shadow: 0 16px 35px rgba(16, 185, 129, 0.3);
}

.webphone-action-button.is-end {
  background: #f43f5e;
  box-shadow: 0 16px 35px rgba(244, 63, 94, 0.26);
}

.webphone-console-help {
  margin-top: 10px;
  font-size: 0.7rem;
  color: #64748b;
  text-align: center;
}

.webphone-history-tools {
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
}

.webphone-history-tools .search-input {
  display: block;
  width: 100%;
  border-radius: 1.2rem;
  border: 1px solid #edf1f5;
  background: #fbfcfd;
  box-shadow: inset 0 2px 6px rgba(15, 23, 42, 0.025);
  padding: 10px 12px;
  font-size: 0.72rem;
}

.webphone-history-list {
  flex: 1;
  min-height: 0;
  border: 1px solid #edf1f5;
  border-radius: 1.8rem;
  background: #fbfcfd;
  padding: 8px;
  box-shadow: inset 0 2px 6px rgba(15, 23, 42, 0.025);
  overflow-y: auto;
}

.webphone-history-row {
  display: grid;
  align-items: center;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 6px;
  border-radius: 1.35rem;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  padding: 8px 9px;
  min-width: 0;
  width: 100%;
}

.webphone-history-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #ecfeff;
  color: #0284c7;
  font-size: 0.7rem;
  font-weight: 700;
}

.webphone-history-row.is-outgoing .webphone-history-icon {
  background: #ecfdf5;
  color: #047857;
}

.webphone-history-row.is-missed .webphone-history-icon {
  background: #fff1f2;
  color: #be123c;
}

.webphone-history-main {
  min-width: 0;
}

.webphone-history-title {
  font-size: 0.72rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.webphone-history-subtitle {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  margin-top: 2px;
  font-size: 0.56rem;
  overflow-wrap: anywhere;
}

.webphone-history-direction,
.webphone-history-result {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 5px;
  font-weight: 600;
}

.webphone-history-direction {
  background: #eff6ff;
  color: #0369a1;
}

.webphone-history-result.is-connected {
  background: #ecfdf5;
  color: #047857;
}

.webphone-history-result.is-ended {
  background: #fef3c7;
  color: #b45309;
}

.webphone-history-result.is-missed {
  background: #fff1f2;
  color: #be123c;
}

.webphone-history-meta {
  display: grid;
  justify-items: end;
  align-self: center;
  gap: 2px;
  font-size: 0.56rem;
  min-width: 50px;
}

.webphone-history-redial {
  color: #0284c7;
  font-size: 0.52rem;
}

.webphone-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 13rem;
  padding: 18px 14px;
  text-align: center;
  color: #64748b;
  line-height: 1.55;
}

.webphone-footer-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.webphone-secondary-button {
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  padding: 7px 11px;
  color: #334155;
  font-weight: 600;
  white-space: nowrap;
}

.webphone-secondary-button--compact {
  padding: 5px 9px;
  font-size: 0.65rem;
}

.webphone-secondary-button:disabled {
  opacity: 0.52;
  cursor: default;
}

.webphone-live-shell {
  display: grid;
  gap: 14px;
  min-height: 0;
}

.webphone-live-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.webphone-live-status,
.webphone-live-duration {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
}

.webphone-live-status.status-connecting {
  background: #eff6ff;
  color: #1d4ed8;
}

.webphone-live-status.status-active {
  background: #ecfdf5;
  color: #047857;
}

.webphone-live-duration {
  background: #f8fafc;
  color: #475569;
}

.webphone-live-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
}

.webphone-live-copy,
.webphone-live-hint {
  margin: 0;
  color: #64748b;
  font-size: 0.76rem;
  line-height: 1.5;
}

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

.webphone-live-facts div {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.webphone-live-facts span {
  color: #64748b;
  font-size: 0.68rem;
}

.webphone-live-facts strong {
  color: #0f172a;
  font-size: 0.8rem;
}

.webphone-live-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.webphone-rail {
  pointer-events: auto;
  position: fixed;
  left: var(--staff-webphone-rail-left-offset);
  right: auto;
  top: 16px;
  bottom: 16px;
  transform: none;
  z-index: 71;
  width: var(--staff-webphone-rail-width);
  padding: 18px 8px 20px;
  border-radius: 1.75rem;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle) 82%, white 18%);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95) 0%,
    color-mix(in srgb, var(--staff-primary-soft) 10%, white 90%) 100%
  );
  box-shadow:
    0 14px 28px rgba(36, 54, 73, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.webphone-rail-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--muted) 75%, white 25%);
  margin-bottom: 2px;
}

.webphone-live-pill {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--low) 22%, white 78%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--low) 12%, white 88%);
  color: color-mix(in srgb, var(--low) 82%, var(--text) 18%);
  padding: 7px 9px;
  font-size: 0.6rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
}

.webphone-rail-button,
.webphone-rail-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 50px;
  min-height: 50px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle) 84%, white 16%);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 5px 12px rgba(36, 54, 73, 0.03);
  color: var(--staff-toolbar-tool-icon);
  text-decoration: none;
  line-height: 1;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease;
}

.webphone-rail-button span,
.webphone-rail-link span {
  font-size: 0.94rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--muted) 78%, white 22%);
}

.webphone-rail-tooltip {
  position: absolute;
  top: 50%;
  left: calc(100% + 12px);
  right: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--staff-call-console-border) 82%, white 18%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(-8px, -50%, 0);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    visibility 0.16s ease;
  z-index: 4;
}

.webphone-rail-button:hover .webphone-rail-tooltip,
.webphone-rail-button:focus-visible .webphone-rail-tooltip,
.webphone-rail-link:hover .webphone-rail-tooltip,
.webphone-rail-link:focus-visible .webphone-rail-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, -50%, 0);
}

.webphone-rail-svg {
  display: block;
  width: 36px;
  height: 36px;
  color: currentColor;
}

.webphone-rail-svg--phone {
  width: 26px;
  height: 26px;
  color: color-mix(in srgb, var(--low) 80%, var(--text) 20%);
}

.webphone-rail-button.is-active,
.webphone-rail-button--phone.is-active,
.webphone-rail-button--phone.is-connected {
  border-color: color-mix(in srgb, var(--primary) 22%, white 78%);
  background: linear-gradient(180deg, rgba(238, 248, 238, 0.8) 0%, rgba(255, 255, 255, 0.98) 100%);
  color: color-mix(in srgb, var(--primary) 58%, var(--text) 42%);
  box-shadow: 0 8px 18px rgba(93, 184, 93, 0.08);
}

.webphone-shell.is-open .webphone-rail-button--notes.is-active::before,
.webphone-shell.is-open .webphone-rail-button--search.is-active::before,
.webphone-shell.is-open .webphone-rail-button--handover.is-active::before,
.webphone-shell.is-open .webphone-rail-button--incoming.is-active::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% + 2px);
  right: auto;
  width: 38px;
  height: 2px;
  border-radius: 999px;
  background: var(--webphone-connector-color, #cbd5e1);
  transform: translateY(-50%);
}

.webphone-rail-link.is-active,
.webphone-rail-button--search.is-active,
.webphone-rail-button--handover.is-active,
.webphone-rail-link--statistics.is-active,
.webphone-rail-link--missed.is-active,
.webphone-rail-link--logbook.is-active {
  border-color: color-mix(in srgb, var(--primary) 22%, white 78%);
  background: linear-gradient(180deg, rgba(238, 248, 238, 0.8) 0%, rgba(255, 255, 255, 0.98) 100%);
  color: color-mix(in srgb, var(--primary) 58%, var(--text) 42%);
  box-shadow: 0 8px 18px rgba(93, 184, 93, 0.08);
}

.webphone-rail-svg--notes {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.webphone-rail-svg--dashboard {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.webphone-rail-svg--planner {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.webphone-rail-svg--planner-workspace {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.webphone-rail-svg--search {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.webphone-rail-svg--incoming {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.webphone-rail-link--waitrooms {
  position: relative;
}

.webphone-rail-svg--waitrooms {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.webphone-rail-svg--handover {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.webphone-rail-svg--logbook {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.webphone-rail-svg--statistics {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.webphone-rail-svg--missed {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.webphone-rail-svg--callback {
  width: 22px;
  height: 22px;
}

.webphone-rail-button:hover,
.webphone-rail-link:hover {
  border-color: color-mix(in srgb, var(--primary) 18%, white 82%);
  background: linear-gradient(180deg, rgba(238, 248, 238, 0.56) 0%, rgba(255, 255, 255, 0.98) 100%);
  color: color-mix(in srgb, var(--primary) 52%, var(--text) 48%);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
}

.webphone-rail-button--phone {
  --webphone-connector-color: color-mix(in srgb, var(--low) 72%, white 28%);
}

.webphone-rail-button--notes {
  --webphone-connector-color: color-mix(in srgb, var(--accent) 84%, white 16%);
}

.webphone-rail-button--search {
  --webphone-connector-color: color-mix(in srgb, var(--accent) 70%, var(--primary) 30%);
}

.webphone-rail-button--handover {
  --webphone-connector-color: color-mix(in srgb, var(--staff-info-blue-text) 50%, var(--primary) 50%);
}

.webphone-rail-button--incoming {
  --webphone-connector-color: color-mix(in srgb, var(--staff-info-blue-text) 72%, white 28%);
  position: relative;
}

.webphone-rail-link--dashboard,
.webphone-rail-link--planner,
.webphone-rail-link--statistics,
.webphone-rail-link--missed,
.webphone-rail-link--logbook,
.webphone-rail-link--waitrooms {
  position: relative;
}

.webphone-rail-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  background: var(--text);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

.webphone-rail-badge.is-hidden {
  display: none;
}

.webphone-rail-badge--incoming {
  background: var(--staff-info-blue-text);
  box-shadow: 0 8px 18px rgba(90, 118, 146, 0.22);
}

.webphone-rail-badge--missed {
  background: #f59e0b;
  box-shadow: 0 8px 18px rgba(245, 158, 11, 0.28);
}

.webphone-rail-badge--waitroom-offer {
  min-width: 14px;
  width: 14px;
  height: 14px;
  padding: 0;
  background: var(--accent);
  box-shadow: 0 8px 18px rgba(237, 179, 111, 0.22);
}

.webphone-rail-separator {
  width: 46px;
  height: 1px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--staff-line-subtle) 85%, white 15%);
}

.webphone-panel-empty {
  padding: 16px;
  border: 1px dashed color-mix(in srgb, var(--staff-call-console-border) 82%, white 18%);
  border-radius: 18px;
  background: color-mix(in srgb, var(--staff-call-console-soft-surface) 62%, white 38%);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.webphone-panel-inline-meta,
.webphone-panel-inline-feedback {
  padding: 0 2px;
  font-size: 0.76rem;
  line-height: 1.45;
}

.webphone-panel-inline-meta {
  color: var(--muted);
}

.webphone-panel-inline-feedback {
  color: color-mix(in srgb, var(--low) 76%, var(--text) 24%);
  font-weight: 600;
}

.webphone-panel-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 4px;
}

.webphone-panel-pagination span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.webphone-panel-pagination button {
  min-width: 88px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--staff-call-console-border);
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.webphone-panel-pagination button:disabled {
  opacity: 0.55;
  cursor: default;
}

.webphone-search-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
}

.webphone-search-panel__bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 6px 0 12px;
  border: 1px solid #dbe4f0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.webphone-search-panel__input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: #334463;
  font-size: 0.9rem;
  font-weight: 500;
}

.webphone-search-panel__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  background: #ffffff;
  color: #4c93e6;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(76, 147, 230, 0.08);
  font-size: 0.78rem;
  font-weight: 700;
}

.webphone-search-panel__summary {
  display: flex;
  align-items: center;
}

.webphone-search-panel__count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 12px;
  background: #eef4ff;
  color: #41557a;
  font-size: 0.8rem;
  font-weight: 600;
}

.webphone-search-results {
  display: grid;
  flex: 1 1 auto;
  gap: 6px;
  min-height: 0;
  max-height: none;
  overflow: auto;
}

.webphone-search-panel__footer {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

.webphone-search-panel__more-link {
  color: #2563eb;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
}

.webphone-search-result,
.webphone-search-result--button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #e5edf7;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  text-align: left;
}

.webphone-search-result--button {
  cursor: pointer;
}

.webphone-search-result.is-active,
.webphone-search-result:hover,
.webphone-search-result--button:hover {
  background: #f8fbff;
}

.webphone-search-result__main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.webphone-search-result__status {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.webphone-search-result__status--green {
  background: linear-gradient(180deg, #3fd086 0%, #28b56f 100%);
}

.webphone-search-result__status--blue {
  background: linear-gradient(180deg, #a9c4ea 0%, #88aedf 100%);
}

.webphone-search-result__status--orange {
  background: linear-gradient(180deg, #f2b26f 0%, #e59a4e 100%);
}

.webphone-search-result__copy {
  min-width: 0;
}

.webphone-search-result__name {
  color: #213456;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.15;
}

.webphone-search-result__meta {
  margin-top: 1px;
  color: #647596;
  font-size: 0.72rem;
  line-height: 1.2;
  word-break: break-word;
}

.webphone-search-result__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: auto;
  padding: 4px 8px;
  border-radius: 9px;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.webphone-search-result__badge--green {
  background: linear-gradient(180deg, #d8efd8 0%, #b9dfb9 100%);
  color: #ffffff;
}

.webphone-search-result__badge--orange {
  background: linear-gradient(180deg, #efbb88 0%, #e7a264 100%);
  color: #ffffff;
}

.webphone-search-result__badge--blue {
  background: #e8eefc;
  color: #41557a;
}

.webphone-handover-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
}

.webphone-handover-compose {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.webphone-handover-compose__input {
  width: 100%;
  min-height: 108px;
  resize: none;
  border: 1px solid #dbe4f0;
  border-radius: 16px;
  background: #ffffff;
  padding: 14px 16px;
  color: #334155;
  font: inherit;
  font-size: 0.88rem;
  line-height: 1.55;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.webphone-handover-compose__input:focus {
  outline: none;
  border-color: #86efac;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14);
}

.webphone-handover-compose__save {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #34c38a 0%, #1f9d62 100%);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(31, 157, 98, 0.15);
}

.webphone-handover-compose__save:disabled {
  opacity: 0.6;
  cursor: default;
  box-shadow: none;
}

.webphone-handover-panel__footer {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

.webphone-handover-panel__link {
  color: #2563eb;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
}

.webphone-handover-list {
  display: grid;
  flex: 1 1 auto;
  gap: 10px;
  min-height: 0;
  max-height: none;
  padding: 14px;
  border: 1px solid #dbe4f0;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.72);
  overflow: auto;
  align-content: start;
}

.webphone-handover-list--empty {
  overflow: auto;
}

.webphone-handover-list--preview {
  overflow: hidden;
}

.webphone-handover-item {
  padding: 12px 14px;
  border: 1px solid #e5edf7;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
}

.webphone-handover-item__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.webphone-handover-item__head strong {
  color: #1e293b;
  font-size: 0.84rem;
}

.webphone-handover-item__head span {
  color: #94a3b8;
  font-size: 0.72rem;
  white-space: nowrap;
}

.webphone-handover-item p {
  margin: 0;
  color: #475569;
  font-size: 0.78rem;
  line-height: 1.5;
}

.webphone-handover-item__delete {
  margin-top: 10px;
}

.staff-webphone-root {
  --staff-webphone-rail-width: 68px;
  --staff-webphone-rail-left-offset: 6px;
  --staff-webphone-rail-reserve: calc(var(--staff-webphone-rail-width) + var(--staff-webphone-rail-left-offset) + 14px);
  --staff-webphone-shell-gutter: 24px;
  --staff-webphone-header-left-padding: calc(var(--staff-webphone-rail-reserve) + var(--staff-webphone-shell-gutter));
  --staff-webphone-subbar-left-padding: calc(var(--staff-webphone-rail-reserve) + var(--staff-webphone-shell-gutter));
  --staff-webphone-page-left-padding: calc(var(--staff-webphone-rail-reserve) + 18px);
  --webphone-sidebar-panel-width: min(48.375rem, calc(100vw - var(--staff-webphone-rail-reserve) - 4rem));
  --webphone-sidebar-panel-height: min(40rem, calc(100vh - 3rem));
}

.staff-webphone-root--with-call-column {
  --staff-webphone-rail-width: 64px;
  --staff-webphone-rail-left-offset: 0px;
  --staff-webphone-rail-reserve: calc(var(--staff-webphone-rail-width) + 18px);
  --staff-webphone-shell-gutter: 20px;
  --staff-webphone-header-left-padding: calc(var(--staff-webphone-rail-reserve) + var(--staff-webphone-shell-gutter));
  --staff-webphone-subbar-left-padding: calc(var(--staff-webphone-rail-reserve) + var(--staff-webphone-shell-gutter));
  --staff-webphone-page-left-padding: calc(var(--staff-webphone-rail-reserve) + 20px);
  --webphone-sidebar-panel-width: min(
    48.375rem,
    calc(100vw - var(--staff-call-column-width) - var(--staff-webphone-rail-reserve) - 3.5rem)
  );
}

.staff-webphone-root--planner-single-screen:not(.is-planner-sidebar-visible) {
  --webphone-sidebar-panel-width: min(48.375rem, calc(100vw - var(--staff-webphone-rail-reserve) - 4rem));
}

.webphone-rail {
  border: 1px solid color-mix(in srgb, var(--staff-call-console-border) 88%, white 12%);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.webphone-rail-button,
.webphone-rail-link {
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
}

.webphone-panel {
  --webphone-panel-accent: color-mix(in srgb, var(--primary) 30%, white 70%);
  left: calc(var(--staff-webphone-rail-reserve) + 16px);
  right: auto;
  width: var(--webphone-sidebar-panel-width);
  height: var(--webphone-sidebar-panel-height);
  min-height: var(--webphone-sidebar-panel-height);
  max-height: var(--webphone-sidebar-panel-height);
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  transform: translate(-14px, -50%);
  border: 1px solid color-mix(in srgb, var(--staff-call-console-border) 82%, white 18%);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(18px);
}

.webphone-panel::before {
  display: none;
}

.webphone-panel.is-notes {
  --webphone-panel-accent: color-mix(in srgb, var(--accent) 84%, white 16%);
}

.webphone-panel.is-incoming {
  --webphone-panel-accent: color-mix(in srgb, var(--staff-info-blue-text) 42%, white 58%);
}

.webphone-panel.is-search {
  --webphone-panel-accent: color-mix(in srgb, var(--accent) 65%, var(--primary) 35%);
}

.webphone-panel.is-handover {
  --webphone-panel-accent: color-mix(in srgb, var(--staff-info-blue-text) 45%, var(--primary) 55%);
}

.webphone-panel.is-notes,
.webphone-panel.is-incoming,
.webphone-panel.is-search,
.webphone-panel.is-handover {
  width: var(--webphone-sidebar-panel-width);
  height: var(--webphone-sidebar-panel-height);
  min-height: var(--webphone-sidebar-panel-height);
  max-height: var(--webphone-sidebar-panel-height);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.webphone-panel-head {
  align-items: center;
  gap: 16px;
  padding: 0 0 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--staff-call-console-border) 78%, white 22%);
}

.webphone-panel-head-actions {
  min-height: 38px;
}

.webphone-title {
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--text);
}

.webphone-title__icon {
  color: color-mix(in srgb, var(--webphone-panel-accent) 58%, var(--text) 42%);
}

.webphone-copy {
  min-height: 1.1rem;
  margin-top: 6px;
  font-size: 0.79rem;
  color: var(--muted);
  line-height: 1.5;
}

.webphone-demo-chip {
  padding: 6px 10px;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
}

.webphone-close {
  width: 38px;
  height: 38px;
  border: 1px solid color-mix(in srgb, var(--staff-call-console-border) 82%, white 18%);
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--staff-call-console-soft-surface) 70%, white 30%) 0%,
    #ffffff 100%
  );
  color: var(--muted);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
  font-size: 1.1rem;
}

.webphone-tabs {
  margin: 0 0 14px;
}

.webphone-body {
  flex: 1 1 auto;
  min-height: 0;
  gap: 14px;
  overflow: auto;
}

.webphone-body.is-notes,
.webphone-body.is-incoming,
.webphone-body.is-search,
.webphone-body.is-handover {
  min-height: 0;
}

.webphone-note-textarea {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  resize: none;
  border-width: 1px;
  border-color: #fed7aa;
  border-radius: 18px;
  background: #fffaf6;
  padding: 16px 18px;
  box-shadow: inset 0 1px 2px rgba(249, 115, 22, 0.08);
}

.webphone-note-textarea:focus {
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.incoming-demo-card {
  border-color: #dbe4f0;
  border-radius: 18px;
  background: #ffffff;
  padding: 16px;
  box-shadow: none;
}

.incoming-demo-badge,
.incoming-demo-countdown {
  padding: 6px 11px;
  font-size: 0.68rem;
}

.incoming-demo-title {
  margin: 12px 0 8px;
  font-size: 1rem;
}

.incoming-demo-copy {
  font-size: 0.78rem;
  line-height: 1.5;
}

.incoming-demo-meta {
  font-size: 0.7rem;
}

.incoming-demo-actions {
  margin-top: 14px;
}

.incoming-demo-button {
  min-width: 104px;
  height: 38px;
  border-radius: 14px;
  font-size: 0.76rem;
}

.incoming-demo-menu-trigger,
.incoming-demo-back,
.incoming-demo-option {
  border-radius: 14px;
}

.incoming-demo-field select,
.incoming-demo-field input {
  border-color: #dbe4f0;
  border-radius: 14px;
  background: #f8fafc;
}

.webphone-panel-empty {
  padding: 18px;
  border: 1px dashed #dbe4f0;
  border-radius: 18px;
  background: #f8fafc;
}

.webphone-panel-inline-meta,
.webphone-panel-inline-feedback {
  padding: 0 2px;
  font-size: 0.78rem;
}

.webphone-shell.is-modal::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(17, 24, 39, 0.48);
  backdrop-filter: blur(1px);
  pointer-events: none;
}

.webphone-shell.is-modal .webphone-rail {
  z-index: 1;
}

.webphone-shell.is-modal .webphone-modal-panel {
  z-index: 2;
}

.webphone-modal-panel.webphone-panel::before {
  display: none;
}

.webphone-modal-title-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.webphone-modal-actions {
  align-items: center;
}

.webphone-modal-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.webphone-modal-close {
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}

.webphone-modal-panel .webphone-body.is-notes {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.webphone-modal-panel.is-handover .webphone-body {
  overflow: auto;
}

.webphone-modal-panel .webphone-handover-panel {
  min-height: 100%;
  display: grid;
  grid-template-rows: minmax(18rem, 1fr) auto auto;
  gap: 1.35rem;
}

.webphone-modal-panel .webphone-handover-compose {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 1.35rem;
}

.webphone-modal-panel .webphone-handover-list {
  max-height: 14rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  overflow: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.webphone-modal-panel .webphone-handover-list--empty {
  max-height: none;
}

.webphone-modal-panel .webphone-handover-item {
  padding: 0.95rem 1.1rem;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
  box-shadow: none;
}

.webphone-modal-panel .webphone-handover-panel__footer {
  justify-content: flex-end;
}

.webphone-modal-panel .webphone-handover-panel__link {
  color: #667085;
  font-size: 0.9rem;
  font-weight: 650;
}

.webphone-shell.is-modal .webphone-modal-panel.is-search {
  z-index: 2;
}

.webphone-modal-panel.is-search .webphone-search-panel__icon {
  display: inline-flex;
  color: #9aa3b2;
}

.webphone-modal-panel.is-search .webphone-search-panel__input::placeholder {
  color: #9ca3af;
}

.webphone-modal-panel.is-search .webphone-search-result:hover,
.webphone-modal-panel.is-search .webphone-search-result--button:hover {
  border-color: #b9c7da;
  background: #f8fbff;
}

.webphone-modal-panel.is-search .webphone-search-result.is-active:hover {
  border-color: #2d73ff;
  background: #eaf3ff;
}

.webphone-modal-panel.is-search .webphone-search-result__main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 1.55rem;
}

.webphone-modal-panel.is-search .webphone-search-result__avatar {
  width: 5rem;
  height: 5rem;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e5e7eb;
  color: #536071;
}

.webphone-modal-panel.is-search .webphone-search-result__avatar--blue {
  background: #bfdbfe;
  color: #2563eb;
}

.webphone-modal-panel.is-search .webphone-search-result__avatar .svg-icon {
  width: 2rem;
  height: 2rem;
  stroke-width: 1.9;
}

.webphone-modal-panel.is-search .webphone-search-result__copy {
  min-width: 0;
  display: grid;
  gap: 0.65rem;
}

.webphone-modal-panel.is-search .webphone-search-result__title-row {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.webphone-modal-panel.is-search .webphone-search-result__name {
  color: #111827;
  font-size: 1.72rem;
  font-weight: 760;
  line-height: 1.1;
}

.webphone-modal-panel.is-search .webphone-search-result__code {
  color: #697386;
  font-size: 1.36rem;
  font-weight: 680;
  white-space: nowrap;
}

.webphone-modal-panel.is-search .webphone-search-result__meta {
  color: #4b5563;
  font-size: 1.28rem;
  font-weight: 560;
  line-height: 1.25;
}

.webphone-modal-panel.is-search .webphone-search-result__chevron {
  flex: 0 0 auto;
  color: #9aa3b2;
  font-size: 3rem;
  font-weight: 300;
  line-height: 1;
}

.webphone-modal-panel.is-search .webphone-search-panel__footer {
  margin: 0 -2.75rem;
  padding: 2rem 2.75rem;
  border-top: 1px solid #d8dee8;
  justify-content: flex-start;
}

.webphone-modal-panel.is-search .webphone-search-panel__more-link {
  color: #2563eb;
  font-size: 1.35rem;
  font-weight: 720;
}

.webphone-search-panel {
  min-height: 0;
  height: 100%;
  gap: 14px;
}

.webphone-search-panel__bar {
  min-height: 54px;
  padding: 0 6px 0 12px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.webphone-search-panel__count {
  border-radius: 14px;
}

.webphone-search-results {
  gap: 6px;
}

.webphone-search-result,
.webphone-search-result--button {
  padding: 6px 10px;
  border-color: #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: none;
}

.webphone-handover-panel {
  min-height: 0;
  height: 100%;
  gap: 14px;
}

.webphone-handover-compose__input {
  border-radius: 16px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.webphone-handover-list {
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  background: #f8fafc;
}

.webphone-handover-list--preview {
  overflow: auto;
}

.webphone-handover-item {
  padding: 12px 14px;
  border-color: #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
}

.webphone-shell.is-open .webphone-rail-button--notes.is-active::before,
.webphone-shell.is-open .webphone-rail-button--search.is-active::before,
.webphone-shell.is-open .webphone-rail-button--handover.is-active::before,
.webphone-shell.is-open .webphone-rail-button--incoming.is-active::before {
  left: calc(100% + 4px);
  right: auto;
  width: 18px;
  height: 1px;
  background: #111827;
  opacity: 0.55;
  box-shadow: none;
}

.webphone-shell.is-open .webphone-rail-button--notes.is-active::after,
.webphone-shell.is-open .webphone-rail-button--search.is-active::after,
.webphone-shell.is-open .webphone-rail-button--handover.is-active::after,
.webphone-shell.is-open .webphone-rail-button--incoming.is-active::after {
  display: none;
}

@media (max-width: 1080px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .app-header-row,
  .page-topbar,
  .topbar-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-board,
  .dashboard-header-grid,
  .dashboard-section-grid,
  .dashboard-stats-grid,
  .dashboard-mini-grid,
  .dashboard-grid,
  .dashboard-hero-grid,
  .dashboard-priority-grid,
  .dashboard-insight-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-priority-side--lowered {
    padding-top: 0;
  }

  .dashboard-forecast-chart {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-stack {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

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

  .detail-grid,
  .profile-section-grid {
    grid-template-columns: 1fr;
  }

  .staff-webphone-root {
    --staff-webphone-shell-gutter: 18px;
    --staff-webphone-header-left-padding: calc(var(--staff-webphone-rail-reserve) + var(--staff-webphone-shell-gutter));
    --staff-webphone-subbar-left-padding: calc(var(--staff-webphone-rail-reserve) + var(--staff-webphone-shell-gutter));
    --staff-webphone-page-left-padding: calc(var(--staff-webphone-rail-reserve) + 22px);
    --staff-webphone-rail-width: 72px;
    --staff-webphone-rail-left-offset: 8px;
    --staff-webphone-rail-reserve: calc(var(--staff-webphone-rail-width) + var(--staff-webphone-rail-left-offset) + 12px);
    --webphone-sidebar-panel-width: min(40.5rem, calc(100vw - var(--staff-webphone-rail-reserve) - 3rem));
    --webphone-sidebar-panel-height: min(37rem, calc(100vh - 2.5rem));
  }

  .webphone-panel {
    left: calc(var(--staff-webphone-rail-reserve) + 12px);
    right: auto;
  }

  .webphone-rail {
    left: var(--staff-webphone-rail-left-offset);
    right: auto;
    top: 16px;
    bottom: 16px;
    width: var(--staff-webphone-rail-width);
    padding: 14px 8px;
    transform: none;
  }

  .webphone-rail-button,
  .webphone-rail-link {
    width: 46px;
    min-height: 46px;
  }
}

@media (max-width: 1365px), (max-height: 767px) {
  body {
    overflow: hidden;
  }

  .viewport-support-overlay {
    display: flex;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 20px, 1440px);
    margin-top: 12px;
  }

  .app-header,
  .hero,
  .panel {
    padding: 20px;
  }

  .queue-main,
  .panel-head {
    flex-direction: column;
  }

  .peer-video-grid {
    grid-template-columns: 1fr;
  }

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

  .staff-webphone-root {
    --staff-webphone-rail-reserve: 0px;
    --webphone-sidebar-panel-width: min(40.5rem, calc(100vw - 24px));
    --webphone-sidebar-panel-height: min(34rem, calc(100vh - 112px));
  }

  .webphone-panel {
    top: auto;
    bottom: 84px;
    left: auto;
    right: 12px;
    padding: 18px 18px 16px;
    transform: translateY(12px);
  }

  .webphone-shell.is-open .webphone-panel {
    transform: translateY(0);
  }

  .webphone-rail {
    left: auto;
    right: 12px;
    top: auto;
    bottom: 16px;
    transform: none;
    width: 68px;
    padding: 12px 8px;
    border-radius: 1.6rem;
    gap: 10px;
  }

  .webphone-rail-label {
    display: none;
  }

  .webphone-live-pill {
    font-size: 0.54rem;
    padding: 5px 6px;
  }

  .webphone-rail-button,
  .webphone-rail-link {
    width: 48px;
    min-height: 48px;
  }

  .webphone-rail-separator {
    width: 40px;
  }
}

body {
  background: #ffffff;
}

.ambient {
  display: none;
}

.staff-portal-shell {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  background: #ffffff;
  color: var(--text);
}

.staff-portal-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: none;
  opacity: 0;
}

.staff-portal-shell > * {
  position: relative;
  z-index: 1;
}

.staff-portal-header {
  position: sticky;
  top: 0;
  z-index: 32;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e2e8f0;
  backdrop-filter: blur(18px);
}

.staff-portal-header--auth {
  position: relative;
}

.staff-portal-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.staff-portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.staff-portal-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #10b981, #2563eb);
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.staff-portal-brand-mark--image {
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
}

.staff-portal-brand-fallback {
  display: none;
}

.staff-portal-brand-mark--fallback {
  background: linear-gradient(135deg, #10b981, #2563eb);
  box-shadow: none;
  color: #ffffff;
}

.staff-portal-brand-mark--fallback .staff-portal-brand-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.staff-portal-brand-logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.staff-portal-brand-copy {
  display: grid;
  gap: 4px;
}

.staff-portal-brand-copy strong {
  font-family: var(--staff-font-title, "Ubuntu", "Avenir Next", "Trebuchet MS", sans-serif);
  font-size: var(--staff-font-size-button, 0.82rem);
  font-weight: 600;
  color: #0f172a;
}

.staff-portal-brand-copy span {
  font-size: var(--staff-font-size-small, 0.74rem);
  color: #64748b;
}

.staff-portal-header-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.staff-portal-header-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.staff-portal-header-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--staff-info-blue-surface);
  color: var(--staff-info-blue-text);
  font-size: var(--staff-font-size-small, 0.74rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.staff-portal-inline-link,
.staff-portal-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid #dbe4ef;
  background: #ffffff;
  color: var(--staff-info-blue-text);
  text-decoration: none;
  font-size: var(--staff-font-size-button, 0.82rem);
  font-weight: 700;
}

.staff-portal-secondary-button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid #dbe4ef;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.85rem;
  font-weight: 700;
}

.staff-portal-account {
  display: flex;
  align-items: center;
  gap: 12px;
}

.staff-portal-account-copy {
  display: grid;
  gap: 4px;
  text-align: right;
}

.staff-portal-account-copy strong {
  font-size: 0.92rem;
  color: #0f172a;
}

.staff-portal-account-copy span {
  font-size: 0.76rem;
  color: #64748b;
}

.staff-portal-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.staff-portal-status.online {
  background: #ecfdf5;
  color: #047857;
}

.staff-portal-status.busy {
  background: #fffbeb;
  color: #b45309;
}

.staff-portal-status.offline,
.staff-portal-status.connecting {
  background: #f1f5f9;
  color: #475569;
}

.staff-portal-page-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 56px;
}

.staff-portal-page-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.staff-portal-kicker {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: #64748b;
}

.staff-portal-title {
  margin: 0;
  font-size: clamp(var(--staff-font-size-h1, 1.55rem), 5vw, 3.2rem);
  line-height: 1.04;
  font-family: var(--staff-font-h1, "Ubuntu", "Avenir Next", "Trebuchet MS", sans-serif);
  font-weight: 700;
  color: #0f172a;
}

.staff-portal-copy {
  margin: 12px 0 0;
  max-width: 44rem;
  color: #64748b;
  line-height: 1.6;
}

.staff-portal-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.staff-portal-sync-card {
  min-width: 240px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  display: grid;
  gap: 6px;
  color: #64748b;
  font-size: 0.84rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.staff-portal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) 320px;
  gap: 24px;
  align-items: start;
}

.staff-portal-main-column,
.staff-portal-side-column {
  display: grid;
  gap: 20px;
}

.staff-portal-shell .staff-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.staff-portal-shell .staff-nav-item {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  background: transparent;
  color: #475569;
  font-size: 0.84rem;
  font-weight: 700;
}

.staff-portal-shell .staff-nav-item.is-active {
  background: #eff6ff;
  color: #2563eb;
}

.staff-portal-shell .banner {
  margin-top: 0;
  margin-bottom: 18px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.staff-portal-shell .panel,
.staff-portal-panel {
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #ffffff;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  backdrop-filter: none;
}

.staff-portal-shell .panel h2,
.staff-portal-shell .current-call strong,
.staff-portal-shell .queue-name,
.staff-portal-shell .overview-value {
  font-family: Ubuntu, "Segoe UI", Arial, sans-serif;
}

.staff-portal-shell .panel-head {
  align-items: flex-start;
}

.staff-portal-shell .eyebrow {
  margin-bottom: 8px;
  color: #64748b;
}

.staff-portal-shell .muted,
.staff-portal-shell .queue-meta,
.staff-portal-shell .queue-note,
.staff-portal-shell .ghost-text,
.staff-portal-shell .overview-meta {
  color: #64748b;
}

.staff-portal-shell .status-pill::before {
  display: none;
}

.staff-portal-shell .status-pill,
.staff-portal-shell .priority {
  min-width: 0;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  text-transform: none;
}

.staff-portal-state-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.staff-portal-state-chip.is-open {
  background: #eff6ff;
  color: #2563eb;
}

.staff-portal-state-chip.is-closed {
  background: #fff1f2;
  color: #be123c;
}

.staff-portal-state-chip.is-warning {
  background: #fffbeb;
  color: #b45309;
}

.staff-portal-shell .dashboard-focus-panel {
  background: linear-gradient(180deg, #fff8eb, #ffffff);
}

.staff-portal-shell .dashboard-focus-panel--figma {
  padding: 20px;
  border-radius: 18px;
}

.staff-portal-shell .dashboard-focus-item,
.staff-portal-shell .dashboard-list-item,
.staff-portal-shell .dashboard-news-item,
.staff-portal-shell .dashboard-mini-card,
.staff-portal-shell .waitroom-card,
.staff-portal-shell .search-result,
.staff-portal-shell .queue-card,
.staff-portal-shell .signal-item,
.staff-portal-shell .detail-block,
.staff-portal-shell .call-state-block {
  border-color: #e2e8f0;
  background: #ffffff;
  box-shadow: none;
}

.staff-portal-shell .dashboard-news-item {
  background: #f8fbff;
}

.staff-portal-shell .dashboard-mini-card.tone-blue {
  background: #f8fbff;
}

.staff-portal-shell .dashboard-mini-card.tone-emerald {
  background: #f3fdf7;
}

.staff-portal-shell .dashboard-mini-card.tone-amber {
  background: #fff9ec;
}

.staff-portal-shell .dashboard-mini-card.tone-slate {
  background: #f8fafc;
}

.staff-portal-shell .dashboard-mini-card--figma {
  position: relative;
  padding: 16px 18px;
  min-height: 112px;
  border-radius: 18px;
  gap: 8px;
  overflow: hidden;
}

.staff-portal-shell .dashboard-mini-card--figma::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 76%, white 24%);
}

.staff-portal-shell .dashboard-mini-card--figma.tone-blue::before {
  background: color-mix(in srgb, var(--staff-info-blue-text, #5a7692) 54%, white 46%);
}

.staff-portal-shell .dashboard-mini-card--figma.tone-emerald::before {
  background: color-mix(in srgb, var(--low, #4fb89d) 56%, white 44%);
}

.staff-portal-shell .dashboard-mini-card--figma.tone-amber::before {
  background: color-mix(in srgb, var(--high, #d79b56) 58%, white 42%);
}

.staff-portal-shell .dashboard-mini-card--figma.tone-slate::before {
  background: color-mix(in srgb, var(--staff-call-console-muted, #738392) 42%, white 58%);
}

.staff-portal-shell .dashboard-mini-card--figma .overview-label {
  margin: 0;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
}

.staff-portal-shell .dashboard-mini-card--figma .overview-value {
  display: block;
  font-size: 1.55rem;
  line-height: 1.1;
  color: #0f172a;
}

.staff-portal-shell .dashboard-mini-card--figma .overview-meta {
  margin: 0;
  color: #64748b;
  line-height: 1.5;
}

.staff-portal-shell .dashboard-list-panel--figma {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
  backdrop-filter: none;
}

.staff-portal-shell .dashboard-duty-card {
  padding: 16px 18px;
  min-height: 0;
  border-width: 1px;
  border-color: color-mix(in srgb, var(--high, #d79b56) 22%, #e2e8f0 78%);
  border-radius: 20px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, #fff9ec 68%, white 32%) 0%,
    rgba(255, 255, 255, 0.94) 100%
  );
  box-shadow: none;
}

.staff-portal-shell .dashboard-duty-card .dashboard-duty-title {
  color: #6f4d17;
}

.staff-portal-shell .dashboard-duty-card .dashboard-duty-copy {
  color: #5e6d7c;
}

.staff-portal-shell .dashboard-stat-card,
.staff-portal-shell .dashboard-list-panel--figma,
.staff-portal-shell .dashboard-duty-card {
  position: relative;
  overflow: hidden;
}

.staff-portal-shell .dashboard-list-panel--figma::before,
.staff-portal-shell .dashboard-duty-card::before,
.staff-portal-shell .dashboard-stat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.85);
}

.staff-portal-shell .dashboard-waitroom-card {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--staff-info-blue-surface, #edf5fb) 30%, white 70%) 0%,
    rgba(255, 255, 255, 0.96) 100%
  );
}

.staff-portal-shell .dashboard-list {
  margin-top: 18px;
}

.staff-portal-shell .dashboard-list-item {
  padding: 14px 16px;
  border-radius: 16px;
}

.staff-portal-shell .dashboard-list-item strong {
  font-size: 0.98rem;
  line-height: 1.35;
}

.staff-portal-shell .dashboard-list-item span {
  line-height: 1.5;
}

.staff-portal-shell .dashboard-list .waitroom-card.dashboard-list-item {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.staff-portal-shell .dashboard-item-meta span:last-child {
  font-size: 0.8rem;
}

.staff-portal-shell .dashboard-news-item {
  padding: 18px;
  border-radius: 20px;
}

.staff-portal-shell .dashboard-news-item p {
  color: #475569;
  line-height: 1.55;
}

.staff-portal-shell .search-input {
  border-radius: 14px;
  border-color: #dbe4ef;
  background: #ffffff;
}

.staff-portal-shell .search-input:focus {
  outline: 2px solid rgba(37, 99, 235, 0.14);
  outline-offset: 1px;
}

.staff-portal-shell .queue-stats span,
.staff-portal-shell .facts div {
  background: #ffffff;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 78%, white 22%);
}

.staff-portal-shell .facts div strong {
  color: var(--staff-text, #243649);
  font-size: 1rem;
  line-height: 1.35;
}

.staff-portal-shell .current-call--figma {
  display: grid;
  gap: 16px;
  padding: 0;
  min-width: 0;
  border: 0;
  background: transparent;
}

.staff-portal-shell .current-call-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.staff-portal-shell .current-call-head strong {
  display: block;
  margin-top: 4px;
  font-size: 1.12rem;
  line-height: 1.2;
  color: #0f172a;
}

.staff-portal-shell .current-call-subline {
  margin: -6px 0 0;
  color: #64748b;
  line-height: 1.55;
}

.staff-portal-shell .current-call-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.staff-portal-shell .current-call-facts div {
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid #e6edf2;
  background: #fbfdfe;
  display: grid;
  gap: 5px;
}

.staff-portal-shell .current-call-facts span {
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.staff-portal-shell .current-call-facts strong {
  font-size: 0.96rem;
  color: #0f172a;
  line-height: 1.35;
}

.staff-portal-shell .dashboard-board {
  gap: 20px;
  margin-top: 16px;
}

.staff-portal-shell .dashboard-board-main,
.staff-portal-shell .dashboard-board-side,
.staff-portal-shell .dashboard-mini-grid {
  gap: 14px;
}

.staff-portal-shell .dashboard-grid {
  gap: 20px;
  margin-top: 16px;
}

.staff-portal-shell .dashboard-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.82fr);
  gap: 14px;
  align-items: start;
}

.staff-portal-shell .dashboard-hero-side {
  display: grid;
  gap: 14px;
}

.staff-portal-shell .dashboard-main,
.staff-portal-shell .dashboard-side,
.staff-portal-shell .dashboard-section-grid,
.staff-portal-shell .dashboard-main--full,
.staff-portal-shell .dashboard-primary-stack,
.staff-portal-shell .dashboard-priority-side,
.staff-portal-shell .dashboard-insight-side,
.staff-portal-shell .dashboard-priority-grid,
.staff-portal-shell .dashboard-insight-grid,
.staff-portal-shell .dashboard-workstream-grid {
  gap: 14px;
}

.staff-portal-shell .dashboard-mini-grid {
  margin-top: 14px;
}

.staff-portal-shell .dashboard-section-head {
  gap: 14px;
}

.staff-portal-shell .dashboard-section-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
}

.staff-portal-shell .dashboard-section-title {
  font-size: 0.98rem;
}

.staff-portal-shell .dashboard-section-subtitle {
  margin-top: 3px;
  font-size: 0.77rem;
  line-height: 1.45;
}

.staff-portal-shell .dashboard-team-item,
.staff-portal-shell .dashboard-client-row,
.staff-portal-shell .dashboard-news-row,
.staff-portal-shell .dashboard-new-client-row,
.staff-portal-shell .dashboard-handover-row {
  border-color: #e6edf2;
  background: #fbfdfe;
}

.staff-portal-shell .dashboard-team-item,
.staff-portal-shell .dashboard-client-row,
.staff-portal-shell .dashboard-missed-row,
.staff-portal-shell .dashboard-news-row,
.staff-portal-shell .dashboard-new-client-row,
.staff-portal-shell .dashboard-handover-row {
  padding: 13px 14px;
  border-radius: 15px;
}

.staff-portal-shell .dashboard-news-row,
.staff-portal-shell .dashboard-new-client-row {
  gap: 6px;
}

.staff-portal-shell .dashboard-handover-row {
  align-items: flex-start;
}

.staff-portal-shell .dashboard-forecast-card {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--staff-info-blue-surface, #edf5fb) 34%, white 66%) 0%,
    rgba(255, 255, 255, 0.97) 100%
  );
}

.staff-portal-shell .dashboard-compact-card {
  min-height: 0;
}

.staff-portal-shell .dashboard-forecast-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--high, #d79b56) 18%, #e6edf2 82%);
  background: color-mix(in srgb, var(--staff-accent-warm, #edb36f) 14%, white 86%);
  color: #6f4d17;
  font-size: 0.82rem;
  line-height: 1.55;
}

.staff-portal-shell .dashboard-forecast-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.staff-portal-shell .dashboard-forecast-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #728191;
  font-size: 0.76rem;
  font-weight: 600;
}

.staff-portal-shell .dashboard-forecast-swatch {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
  background: #cbd5e1;
}

.staff-portal-shell .dashboard-forecast-swatch.is-past {
  background: #94a3b8;
}

.staff-portal-shell .dashboard-forecast-swatch.is-future {
  background: var(--staff-info-blue-text, #5a7692);
}

.staff-portal-shell .dashboard-forecast-swatch.is-warning {
  background: var(--high, #d79b56);
}

.staff-portal-shell .dashboard-forecast-swatch.is-calm {
  background: var(--low, #4fb89d);
}

.staff-portal-shell .dashboard-forecast-chart {
  margin-top: 16px;
  min-height: 208px;
  gap: 10px;
}

.staff-portal-shell .dashboard-forecast-column.is-past .dashboard-forecast-value,
.staff-portal-shell .dashboard-forecast-column.is-past .dashboard-forecast-label {
  color: #7a8a9a;
}

.staff-portal-shell .dashboard-forecast-column.is-past .dashboard-forecast-bar-shell {
  background: #f6f8fb;
}

.staff-portal-shell .dashboard-forecast-bar-shell {
  max-width: 40px;
  min-height: 132px;
  padding: 6px 0;
  border-radius: 14px;
  border: 1px solid #e6edf2;
  background: #fbfdfe;
}

.staff-portal-shell .dashboard-forecast-bar {
  border-radius: 10px 10px 12px 12px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--staff-info-blue-text, #5a7692) 30%, white 70%) 0%,
    var(--staff-info-blue-text, #5a7692) 100%
  );
}

.staff-portal-shell .dashboard-forecast-column.is-past .dashboard-forecast-bar {
  background: linear-gradient(180deg, #cbd5e1 0%, #94a3b8 100%);
}

.staff-portal-shell .dashboard-forecast-column.tone-warning .dashboard-forecast-bar {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--high, #d79b56) 52%, white 48%) 0%,
    var(--high, #d79b56) 100%
  );
}

.staff-portal-shell .dashboard-forecast-column.tone-calm .dashboard-forecast-bar {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--low, #4fb89d) 48%, white 52%) 0%,
    var(--low, #4fb89d) 100%
  );
}

.staff-portal-shell .dashboard-forecast-column.tone-warning .dashboard-forecast-value {
  color: color-mix(in srgb, var(--high, #d79b56) 88%, #243649 12%);
}

.staff-portal-shell .dashboard-forecast-column.tone-calm .dashboard-forecast-value {
  color: color-mix(in srgb, var(--low, #4fb89d) 88%, #243649 12%);
}

.staff-portal-shell .dashboard-forecast-value {
  color: #4c647e;
  font-weight: 700;
}

.staff-portal-shell .dashboard-forecast-label {
  color: #728191;
  font-size: 0.74rem;
}

.staff-portal-shell .dashboard-hourly-list {
  gap: 10px;
  margin-top: 16px;
}

.staff-portal-shell .dashboard-hourly-row {
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid #e6edf2;
  background: #fbfdfe;
}

.staff-portal-shell .dashboard-hourly-copy strong {
  font-size: 0.9rem;
  color: var(--staff-text, #243649);
}

.staff-portal-shell .dashboard-hourly-copy span {
  color: var(--staff-text-muted, #728191);
  font-size: 0.78rem;
  line-height: 1.5;
}

.staff-portal-shell .dashboard-hourly-value {
  color: var(--staff-text, #243649);
  font-size: 1.08rem;
  font-weight: 700;
}

.staff-portal-shell .dashboard-empty-inline {
  padding: 22px 0 4px;
  color: #94a3b8;
}

.staff-portal-shell .dashboard-compact-card .dashboard-team-grid,
.staff-portal-shell .dashboard-compact-card .wait-card-rows {
  margin-top: 14px;
}

.staff-portal-shell .dashboard-compact-card .dashboard-team-grid {
  gap: 10px;
}

.staff-portal-shell .dashboard-compact-card .dashboard-team-item {
  padding: 12px 13px;
}

.staff-portal-shell .live-badge .dashboard-summary-dot,
.staff-portal-shell .live-badge .dashboard-presence-dot {
  background: var(--staff-success-tone, #4fb89d);
}

.staff-portal-shell .dashboard-waitroom-row {
  padding: 13px 14px;
  border-radius: 15px;
}

.staff-portal-shell .dashboard-card-footer {
  margin-top: 14px;
  padding-top: 14px;
}

.staff-portal-shell .waitroom-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.staff-portal-shell .waitroom-panel-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.staff-portal-shell .waitroom-switcher {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.staff-portal-shell .waitroom-switcher-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.staff-portal-shell .waitroom-switcher-button {
  padding: 14px 16px;
  gap: 6px;
  background: color-mix(in srgb, var(--staff-app-background, #eef9fa) 38%, white 62%);
}

.staff-portal-shell .waitroom-switcher-button strong {
  display: block;
}

.staff-portal-shell .waitroom-switcher-button span {
  display: block;
  color: var(--staff-text-muted, #728191);
}

.staff-portal-shell .waitroom-inline-empty {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px dashed color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 82%, white 18%);
  background: color-mix(in srgb, var(--staff-app-background, #eef9fa) 24%, white 76%);
}

.staff-portal-shell .waitroom-inline-empty .ghost-text {
  margin: 0;
}

.staff-portal-shell .queue-table-wrapper.waitroom-queue-table-wrapper {
  margin-top: 0;
}

.staff-portal-shell .waitroom-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 80%, white 20%);
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 76%, white 24%);
  color: color-mix(in srgb, var(--staff-primary-action, #5db85d) 66%, var(--staff-text, #243649) 34%);
  font-size: 0.82rem;
  font-weight: 700;
}

.staff-portal-shell .queue-table-wrapper {
  margin-top: 18px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 82%, white 18%);
  background: var(--staff-panel-surface, #ffffff);
}

.staff-portal-shell .queue-table {
  width: 100%;
  border-collapse: collapse;
}

.staff-portal-shell .queue-table th,
.staff-portal-shell .queue-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 76%, white 24%);
  vertical-align: top;
}

.staff-portal-shell .queue-table th {
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 24%, white 76%);
  color: var(--staff-text-muted, #728191);
  font-size: 0.83rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.01em;
}

.staff-portal-shell .queue-table tbody tr:hover {
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 34%, white 66%);
}

.staff-portal-shell .queue-table .claimed-row {
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 46%, white 54%);
}

.staff-portal-shell .table-center {
  text-align: center;
}

.staff-portal-shell .table-type-col {
  width: 80px;
  text-align: center;
}

.staff-portal-shell .table-wait-col {
  width: 132px;
}

.staff-portal-shell .table-action-col {
  width: 320px;
  text-align: right;
}

.staff-portal-shell .waitroom-summary-card {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 80%, white 20%);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 12%, white 88%) 100%
  );
  display: grid;
  gap: 6px;
}

.staff-portal-shell .waitroom-summary-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--staff-text-muted, #728191);
}

.staff-portal-shell .waitroom-summary-card strong {
  font-size: 1.4rem;
  color: var(--staff-text, #243649);
}

.staff-portal-shell .waitroom-summary-meta {
  font-size: 0.82rem;
  color: var(--staff-text-muted, #728191);
  line-height: 1.45;
}

.staff-portal-shell .queue-main--figma {
  align-items: flex-start;
}

.staff-portal-shell .waitroom-row-identity {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.staff-portal-shell .waitroom-type-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.staff-portal-shell .waitroom-type-icon.video {
  background: color-mix(in srgb, var(--staff-info-blue-surface, #edf5fb) 84%, white 16%);
  color: var(--staff-info-blue-text, #5a7692);
}

.staff-portal-shell .waitroom-type-icon.audio {
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 84%, white 16%);
  color: color-mix(in srgb, var(--staff-success-tone, #4fb89d) 78%, var(--staff-text, #243649) 22%);
}

.staff-portal-shell .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.staff-portal-shell .waitroom-name {
  display: grid;
  gap: 4px;
}

.staff-portal-shell .waitroom-name-primary {
  margin: 0;
  color: var(--staff-text, #243649);
  font-size: 0.98rem;
  font-weight: 600;
}

.staff-portal-shell .waitroom-name-secondary {
  margin: 0;
  color: color-mix(in srgb, var(--staff-text-muted, #728191) 72%, white 28%);
  font-size: 0.78rem;
  line-height: 1.45;
}

.staff-portal-shell .waitroom-time-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84rem;
  font-weight: 700;
}

.staff-portal-shell .waitroom-time-pill.safe {
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 84%, white 16%);
  color: color-mix(in srgb, var(--staff-success-tone, #4fb89d) 78%, var(--staff-text, #243649) 22%);
}

.staff-portal-shell .waitroom-time-pill.warning {
  background: color-mix(in srgb, var(--staff-accent-warm, #edb36f) 18%, white 82%);
  color: color-mix(in srgb, var(--staff-warning-tone, #d79b56) 84%, var(--staff-text, #243649) 16%);
}

.staff-portal-shell .waitroom-time-pill.danger {
  background: color-mix(in srgb, var(--staff-danger-tone, #d96e76) 12%, white 88%);
  color: color-mix(in srgb, var(--staff-danger-tone, #d96e76) 86%, var(--staff-text, #243649) 14%);
}

.staff-portal-shell .waitroom-action-cell {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.staff-portal-shell .queue-entry-identity {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.staff-portal-shell .queue-entry-mode {
  min-width: 72px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 700;
}

.staff-portal-shell .queue-entry-mode.is-video {
  background: color-mix(in srgb, var(--staff-info-blue-surface, #edf5fb) 84%, white 16%);
  color: var(--staff-info-blue-text, #5a7692);
}

.staff-portal-shell .queue-entry-mode.is-audio {
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 84%, white 16%);
  color: color-mix(in srgb, var(--staff-success-tone, #4fb89d) 78%, var(--staff-text, #243649) 22%);
}

.staff-portal-shell .queue-entry-copy {
  display: grid;
  gap: 2px;
}

.staff-portal-shell .queue-card {
  padding: 20px;
  border-radius: 24px;
}

.staff-portal-shell .queue-name {
  font-size: 1.06rem;
  line-height: 1.2;
}

.staff-portal-shell .queue-meta {
  font-size: 0.86rem;
  line-height: 1.45;
}

.staff-portal-shell .queue-note {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--staff-tool-surface, #f3f8f9) 78%, white 22%);
  line-height: 1.55;
}

.staff-portal-shell .queue-stats--figma {
  margin-top: 14px;
}

.staff-portal-shell .queue-actions--figma {
  margin-top: 16px;
  align-items: center;
}

.staff-portal-shell .claim-progress-button,
.staff-portal-shell .claim-owner-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
}

.staff-portal-shell .claim-progress-button {
  border: 0;
  cursor: default;
}

.staff-portal-shell .claim-progress-button.checking {
  background: color-mix(in srgb, var(--staff-info-blue-surface, #edf5fb) 84%, white 16%);
  color: var(--staff-info-blue-text, #5a7692);
}

.staff-portal-shell .claim-owner {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  margin-top: 14px;
}

.staff-portal-shell .claim-owner.answered {
  align-items: flex-start;
}

.staff-portal-shell .claim-owner-chip {
  background: color-mix(in srgb, var(--staff-tool-surface, #f3f8f9) 84%, white 16%);
  color: var(--staff-text-muted, #728191);
}

.staff-portal-shell .claim-owner-chip.self {
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 84%, white 16%);
  color: color-mix(in srgb, var(--staff-success-tone, #4fb89d) 78%, var(--staff-text, #243649) 22%);
}

.staff-portal-shell .claim-owner-chip.answered {
  background: color-mix(in srgb, var(--staff-info-blue-surface, #edf5fb) 84%, white 16%);
  color: var(--staff-info-blue-text, #5a7692);
}

.staff-portal-shell .claim-owner-name {
  color: var(--staff-text-muted, #728191);
  font-size: 0.82rem;
  line-height: 1.45;
}

.staff-portal-shell .claim-owner-name.self {
  color: color-mix(in srgb, var(--staff-success-tone, #4fb89d) 78%, var(--staff-text, #243649) 22%);
}

.staff-portal-shell .claim-owner-name.answered {
  color: var(--staff-info-blue-text, #5a7692);
}

.staff-portal-shell .table-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 80%, white 20%);
  background: color-mix(in srgb, var(--staff-panel-surface, #ffffff) 84%, var(--staff-tool-surface, #f3f8f9) 16%);
  color: var(--staff-text, #243649);
  font-size: 0.875rem;
  font-weight: 600;
}

.staff-portal-shell .table-link-button:hover {
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 36%, white 64%);
}

.staff-portal-shell .waitroom-empty {
  min-height: 320px;
}

.staff-portal-shell .empty-state-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 48%, white 52%);
  color: color-mix(in srgb, var(--staff-text-muted, #728191) 76%, white 24%);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.staff-portal-shell .empty-state strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.staff-portal-shell .waitroom-footer {
  margin-top: 16px;
  padding: 14px 18px;
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 20%, white 80%);
  border-top: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 76%, white 24%);
  border-radius: 18px;
}

.staff-portal-shell .waitroom-footer-copy,
.staff-portal-shell .waitroom-footer-note {
  margin: 0;
}

.staff-portal-shell .waitroom-footer-copy {
  color: var(--staff-text-muted, #728191);
  font-size: 0.875rem;
  line-height: 1.5;
}

.staff-portal-shell .waitroom-footer-count {
  color: var(--staff-text, #243649);
  font-weight: 600;
}

.staff-portal-shell .waitroom-footer-note {
  margin-top: 4px;
  color: color-mix(in srgb, var(--staff-text-muted, #728191) 72%, white 28%);
  font-size: 0.76rem;
  line-height: 1.45;
}

.staff-portal-shell .signaling-panel .panel-head {
  align-items: flex-start;
}

.staff-portal-shell .signaling-copy {
  margin-top: 8px;
}

.staff-portal-shell .peer-facts--figma {
  margin-top: 18px;
}

.staff-portal-shell .signal-stage-shell {
  margin-top: 18px;
}

.staff-portal-shell .peer-stage {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 82%, white 18%);
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 18%, white 82%);
}

.staff-portal-shell .peer-media-card {
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 82%, white 18%);
  background: var(--staff-panel-surface, #ffffff);
}

.staff-portal-shell .signal-list--figma {
  margin-top: 18px;
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}

.staff-portal-shell .signal-item {
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--staff-panel-surface, #ffffff);
}

.staff-portal-shell .signal-head {
  align-items: flex-start;
}

.staff-portal-shell .signal-head strong {
  color: var(--staff-text, #243649);
}

.staff-portal-shell .signal-head span {
  color: var(--staff-text-muted, #728191);
  font-size: 0.82rem;
  line-height: 1.45;
}

.staff-portal-shell .signal-item p {
  color: var(--staff-text, #243649);
  line-height: 1.55;
}

.staff-portal-shell .action-row button,
.staff-portal-shell .action-row a,
.staff-portal-shell .queue-actions button {
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 80%, white 20%);
  background: var(--staff-panel-surface, #ffffff);
}

.staff-portal-shell .primary {
  background: linear-gradient(
    180deg,
    var(--staff-button-primary-start, #5db85d),
    var(--staff-button-primary-end, #5db85d)
  ) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.staff-portal-shell .audit-list p {
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 82%, white 18%);
  background: var(--staff-panel-surface, #ffffff);
  line-height: 1.55;
}

.staff-portal-side-panel .current-call {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.staff-portal-shell .staff-portal-side-card {
  padding: 22px;
  border-radius: 24px;
}

.staff-portal-shell .sidebar-stats--figma {
  margin-top: 18px;
  gap: 10px;
}

.staff-portal-shell .sidebar-stat-row {
  padding: 14px 0;
  border-bottom-color: color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 78%, white 22%);
}

.staff-portal-shell .sidebar-stat-row span {
  color: var(--staff-text-muted, #728191);
}

.staff-portal-shell .sidebar-stat-row strong {
  color: var(--staff-text, #243649);
}

.staff-portal-shell .session-stack {
  margin-top: 18px;
  gap: 14px;
}

.staff-portal-shell .own-session-row {
  padding: 18px;
  border-radius: 20px;
  border-color: color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 78%, white 22%);
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 18%, white 82%);
  box-shadow: none;
  display: grid;
  gap: 10px;
}

.staff-portal-shell .session-row-head {
  align-items: flex-start;
}

.staff-portal-shell .session-row-head strong {
  color: var(--staff-text, #243649);
}

.staff-portal-shell .session-subline {
  margin-top: 0;
  line-height: 1.55;
  color: var(--staff-text-muted, #728191);
}

.staff-portal-shell .panel-actions {
  align-items: center;
}

.staff-portal-shell .panel-actions button,
.staff-portal-shell .own-session-row button {
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 80%, white 20%);
  background: var(--staff-panel-surface, #ffffff);
}

.staff-portal-shell .staff-portal-side-card .facts {
  margin-top: 18px;
}

.staff-portal-shell .staff-portal-side-card .facts div {
  min-width: 180px;
  border-radius: 16px;
}

.staff-portal-auth-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 32px;
  align-items: start;
}

.staff-portal-auth-intro,
.staff-portal-auth-card {
  display: grid;
  gap: 18px;
}

.staff-portal-auth-status {
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 82%, white 18%);
  background: var(--staff-panel-surface, #ffffff);
  display: grid;
  gap: 8px;
  color: var(--staff-text-muted, #728191);
  box-shadow: 0 1px 2px rgba(36, 54, 73, 0.04);
}

.staff-portal-auth-status-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: color-mix(in srgb, var(--staff-text-muted, #728191) 60%, white 40%);
}

.staff-portal-shell .auth-panel {
  margin-top: 0;
}

@media (max-width: 1120px) {
  .staff-portal-header-inner,
  .staff-portal-page-shell,
  .staff-portal-auth-layout {
    padding-left: 18px;
    padding-right: 18px;
  }

  .staff-portal-layout,
  .staff-portal-auth-layout,
  .staff-portal-header-inner,
  .staff-portal-header-main,
  .staff-portal-page-topbar,
  .staff-portal-toolbar,
  .dashboard-board,
  .dashboard-section-grid,
  .dashboard-mini-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .staff-portal-header-main,
  .staff-portal-toolbar {
    display: flex;
  }

  .staff-portal-account-copy {
    text-align: left;
  }

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

  .staff-portal-shell .current-call-facts {
    grid-template-columns: 1fr;
  }

  .staff-portal-shell .queue-table-wrapper {
    overflow-x: auto;
  }
}

@media (max-width: 720px) {
  .staff-portal-header-inner,
  .staff-portal-page-shell,
  .staff-portal-auth-layout {
    padding-left: 16px;
    padding-right: 16px;
  }

  .staff-portal-shell .panel,
  .staff-portal-panel {
    padding: 18px;
    border-radius: 20px;
  }

  .staff-portal-title {
    font-size: 2rem;
  }

  .staff-portal-shell .waitroom-summary-grid,
  .staff-portal-shell .profile-section-grid--figma {
    grid-template-columns: 1fr;
  }

  .staff-portal-shell .queue-entry-identity {
    flex-direction: column;
    gap: 10px;
  }

  .staff-portal-shell .search-result-head,
  .staff-portal-shell .current-call-head,
  .staff-portal-shell .waitroom-panel-badges {
    flex-direction: column;
    align-items: flex-start;
  }

  .staff-portal-shell .queue-table {
    min-width: 720px;
  }
}

.staff-figma-shell {
  min-height: 100vh;
  background: #ffffff;
  font-family: var(--staff-font-body);
  font-size: var(--staff-font-size-body);
  color: var(--text);
}

.staff-figma-shell .app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.staff-figma-shell .app-header-subbar {
  width: 100%;
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid color-mix(in srgb, var(--staff-line-subtle) 88%, #ffffff 12%);
  backdrop-filter: blur(8px);
}

.staff-figma-shell .app-header-subbar-inner {
  width: 100%;
  margin: 0;
  padding: 8px 24px;
  display: flex;
  justify-content: center;
}

.staff-figma-shell .app-header-subbar-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  flex-wrap: wrap;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 7px 16px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle) 90%, white 10%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 18px rgba(36, 54, 73, 0.04);
}

.staff-figma-shell .app-header-subbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: 600;
  white-space: nowrap;
}

.staff-figma-shell .app-header-subbar-item.is-summary {
  gap: 8px;
  margin-right: 2px;
  padding-right: 10px;
  border-right: 1px solid color-mix(in srgb, var(--staff-line-subtle) 80%, white 20%);
}

.staff-figma-shell .app-header-subbar-icon {
  width: 0.9rem;
  height: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.staff-figma-shell .app-header-subbar-icon .svg-icon {
  width: 0.9rem;
  height: 0.9rem;
}

.staff-figma-shell .app-header-subbar-icon.is-video {
  color: var(--staff-info-blue-text);
}

.staff-figma-shell .app-header-subbar-icon.is-audio {
  color: #0f766e;
}

.staff-figma-shell .app-header-subbar-icon.is-time {
  color: #7c3aed;
}

.staff-figma-shell .app-header-subbar-value {
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}

.staff-figma-shell .app-header-subbar-label {
  color: var(--muted);
  font-size: var(--staff-font-size-small);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.staff-figma-shell .app-header-subbar-meta {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 500;
}

.staff-webphone-root--with-call-column {
  --staff-call-column-width: 376px;
  --staff-call-column-reserve: 412px;
}

.staff-webphone-root--planner-single-screen {
  --staff-call-column-width: 0px;
  --staff-call-column-reserve: 0px;
}

.staff-webphone-root--planner-single-screen.is-planner-sidebar-visible {
  --staff-call-column-width: 376px;
  --staff-call-column-reserve: 412px;
}

.staff-webphone-root--with-call-column .staff-figma-shell .app-header-subbar-inner {
  padding-left: var(--staff-webphone-subbar-left-padding);
  padding-right: var(--staff-call-column-reserve);
}

.staff-figma-shell .presence-menu-panel,
.staff-global-call-column .presence-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 190px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle) 84%, #ffffff 16%);
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.1);
  display: grid;
  gap: 4px;
  z-index: 30;
}

.staff-figma-shell .presence-menu-option,
.staff-global-call-column .presence-menu-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 550;
  cursor: pointer;
}

.staff-figma-shell .presence-menu-option-dot,
.staff-global-call-column .presence-menu-option-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.staff-figma-shell .presence-menu-option:hover,
.staff-figma-shell .presence-menu-option.is-active,
.staff-global-call-column .presence-menu-option:hover,
.staff-global-call-column .presence-menu-option.is-active {
  background: var(--staff-nav-active-surface);
  color: color-mix(in srgb, var(--text) 82%, var(--primary) 18%);
}
.staff-figma-shell .presence-menu.is-disabled .presence-menu-option,
.staff-global-call-column .presence-menu.is-disabled .presence-menu-option {
  cursor: not-allowed;
  opacity: 0.7;
}

.staff-figma-shell .status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.8rem;
  font-weight: 700;
}

.staff-figma-shell .status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.staff-figma-shell .page-shell {
  max-width: none;
  margin: 0;
  padding: 20px 24px 32px;
}

.staff-webphone-root .staff-figma-shell .app-header-inner {
  padding-left: var(--staff-webphone-header-left-padding);
}

.staff-webphone-root .staff-figma-shell .app-header-subbar-inner {
  padding-left: var(--staff-webphone-subbar-left-padding);
}

.staff-webphone-root .staff-figma-shell .page-shell {
  padding-left: var(--staff-webphone-page-left-padding);
}

.staff-webphone-root--with-call-column .staff-figma-shell .page-shell {
  max-width: none;
  padding-right: calc(var(--staff-call-column-reserve) + 18px);
}

.staff-webphone-root--planner-single-screen .staff-figma-shell .page-shell {
  max-width: none;
  margin: 0;
}

.staff-global-call-column {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--staff-call-column-width);
  display: flex;
  align-items: stretch;
  z-index: 980;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--staff-header-subbar-surface) 62%, white 38%) 0%,
      color-mix(in srgb, var(--bg) 84%, white 16%) 100%
    );
  border-left: 1px solid color-mix(in srgb, var(--staff-line-subtle) 88%, white 12%);
  box-shadow:
    -16px 0 34px rgba(36, 54, 73, 0.08),
    inset 1px 0 0 rgba(255, 255, 255, 0.55);
  --staff-global-dialer-card-min-height: 642px;
  --staff-global-communication-shell-min-height: 246px;
  --staff-global-communication-shell-body-min-height: 136px;
  --staff-global-communication-shell-footer-min-height: 72px;
}

.staff-global-call-column.is-overlay-expanded {
  z-index: 990;
  overflow: visible;
}

.staff-global-call-column.is-overlay-expanded .staff-global-call-rail {
  overflow: visible;
  max-height: none;
}

.staff-webphone-root--with-call-column .webphone-shell {
  z-index: 140;
}

.staff-webphone-root--with-call-column .webphone-rail {
  width: var(--staff-webphone-rail-width);
  left: var(--staff-webphone-rail-left-offset);
  right: auto;
  top: 0;
  bottom: 0;
  padding: 20px 9px 22px;
  border-radius: 0 28px 28px 0;
  border-left: 0;
  gap: 10px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    color-mix(in srgb, var(--staff-primary-soft) 14%, white 86%) 100%
  );
  box-shadow:
    0 18px 34px rgba(36, 54, 73, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
  transform: none;
}

.staff-webphone-root--with-call-column .webphone-rail-label {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}

.staff-webphone-root--with-call-column .webphone-rail-button,
.staff-webphone-root--with-call-column .webphone-rail-link {
  width: 42px;
  min-height: 42px;
  border-radius: 0.95rem;
  border-width: 1px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
}

.staff-webphone-root--with-call-column .webphone-rail-svg {
  width: 21px;
  height: 21px;
}

.staff-webphone-root--with-call-column .webphone-rail-svg--phone,
.staff-webphone-root--with-call-column .webphone-rail-svg--waitrooms {
  width: 19px;
  height: 19px;
}

.staff-webphone-root--with-call-column .webphone-rail-svg--notes,
.staff-webphone-root--with-call-column .webphone-rail-svg--dashboard,
.staff-webphone-root--with-call-column .webphone-rail-svg--planner,
.staff-webphone-root--with-call-column .webphone-rail-svg--planner-workspace,
.staff-webphone-root--with-call-column .webphone-rail-svg--search,
.staff-webphone-root--with-call-column .webphone-rail-svg--incoming,
.staff-webphone-root--with-call-column .webphone-rail-svg--handover,
.staff-webphone-root--with-call-column .webphone-rail-svg--logbook,
.staff-webphone-root--with-call-column .webphone-rail-svg--missed,
.staff-webphone-root--with-call-column .webphone-rail-svg--callback {
  width: 18px;
  height: 18px;
}

.staff-webphone-root--with-call-column .webphone-rail-svg--handover {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.staff-webphone-root--with-call-column .webphone-rail-tooltip {
  left: calc(100% + 10px);
  right: auto;
  min-height: 26px;
  padding: 0 9px;
  font-size: 0.64rem;
}

.staff-webphone-root--with-call-column .webphone-rail-badge {
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-width: 1px;
  font-size: 0.52rem;
}

.staff-webphone-root--with-call-column .webphone-rail-link--missed .webphone-rail-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  font-size: 0.55rem;
  background: #0f172a;
  color: #ffffff;
}

.staff-webphone-root--with-call-column .webphone-rail-separator {
  width: 28px;
}

@media (min-width: 1121px) {
  .staff-webphone-root--with-call-column .webphone-rail {
    left: var(--staff-webphone-rail-left-offset);
    right: auto;
    top: 0;
    bottom: 0;
    transform: none;
  }

  .staff-webphone-root--planner-single-screen:not(.is-planner-sidebar-visible) .webphone-rail {
    left: 0;
    right: auto;
    top: 0;
    bottom: 0;
    transform: none;
  }

  .staff-webphone-root--with-call-column .webphone-panel {
    left: calc(var(--staff-webphone-rail-reserve) + 20px);
    right: auto;
  }

  .staff-webphone-root--with-call-column .webphone-panel.is-handover {
    top: 50%;
    right: auto;
    bottom: auto;
    left: calc(var(--staff-webphone-rail-reserve) + 20px);
    width: var(--webphone-sidebar-panel-width);
    height: var(--webphone-sidebar-panel-height);
    min-height: var(--webphone-sidebar-panel-height);
    max-height: var(--webphone-sidebar-panel-height);
    padding: 22px 22px 18px;
    transform: translate(-14px, -50%);
  }

  .staff-webphone-root--with-call-column .webphone-shell.is-open .webphone-panel.is-handover {
    transform: translate(0, -50%);
  }

  .staff-webphone-root--with-call-column .webphone-panel.is-handover .webphone-body {
    flex: 1 1 auto;
  }
}

/* Staff dashboard quieter cards and forecast lines.
   Reversible: remove this block plus renderDashboardForecastLineChart usage in main.js. */
.staff-portal-shell .dashboard-section-head > .dashboard-status-summary,
.staff-portal-shell .wait-card-header > .live-badge {
  display: none;
}

.staff-portal-shell .dashboard-section-head {
  align-items: flex-start;
}

.staff-portal-shell .dashboard-forecast-line-card {
  margin-top: 16px;
  padding: 16px 16px 12px;
  border: 1px solid #dbe7ee;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.96) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.staff-portal-shell .dashboard-forecast-line-card .dashboard-forecast-legend {
  margin-top: 0;
  margin-bottom: 10px;
  gap: 16px;
}

.staff-portal-shell .dashboard-forecast-swatch.is-actual,
.staff-portal-shell .dashboard-forecast-swatch.is-baseline {
  background: var(--staff-logo-blue);
}

.staff-portal-shell .dashboard-forecast-swatch.is-forecast {
  background: #08afa3;
}

.staff-portal-shell .dashboard-forecast-line-chart {
  display: block;
  width: 100%;
  min-height: 190px;
  overflow: visible;
}

.staff-portal-shell .dashboard-forecast-grid-line {
  stroke: #e4edf4;
  stroke-width: 1;
}

.staff-portal-shell .dashboard-forecast-axis {
  stroke: #cfdbe6;
  stroke-width: 1;
}

.staff-portal-shell .dashboard-forecast-line {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.staff-portal-shell .dashboard-forecast-line.is-actual,
.staff-portal-shell .dashboard-forecast-line.is-baseline {
  stroke: var(--staff-logo-blue);
}

.staff-portal-shell .dashboard-forecast-line.is-forecast {
  stroke: #08afa3;
}

.staff-portal-shell .dashboard-forecast-point circle {
  fill: #ffffff;
  stroke-width: 3;
}

.staff-portal-shell .dashboard-forecast-point.is-actual circle,
.staff-portal-shell .dashboard-forecast-point.is-baseline circle {
  stroke: var(--staff-logo-blue);
}

.staff-portal-shell .dashboard-forecast-point.is-forecast circle {
  stroke: #08afa3;
}

.staff-portal-shell .dashboard-forecast-point text {
  fill: #40566b;
  font-size: 12px;
  font-weight: 800;
  text-anchor: middle;
}

.staff-portal-shell .dashboard-forecast-axis-label {
  fill: #728191;
  font-size: 11px;
  font-weight: 700;
  text-anchor: middle;
}

.staff-portal-shell .dashboard-forecast-card {
  background:
    linear-gradient(180deg, rgba(231, 244, 255, 0.64) 0%, #ffffff 28%);
}

.staff-global-call-rail {
  width: 100%;
  min-height: 0;
  max-height: 100%;
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  border: 0;
  border-right: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow-x: visible;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.staff-global-call-rail > * {
  min-width: 0;
}

.staff-global-call-rail > * + * {
  border-top: 1px solid var(--staff-line-subtle);
}

.staff-global-call-column .staff-global-call-rail {
  padding: 14px 14px 16px;
  gap: 14px;
  background:
    radial-gradient(circle at 18% 0%, rgba(123, 212, 206, 0.1) 0%, transparent 28%),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--staff-call-console-surface) 94%, white 6%) 0%,
      color-mix(in srgb, var(--bg) 92%, white 8%) 100%
    );
  box-shadow: none;
}

.staff-global-call-column .staff-global-call-rail > * + * {
  border-top: 0;
}

.staff-global-call-column .global-call-card--dialer {
  padding: 0;
  background: transparent;
}

.staff-global-call-column .global-call-card--dialer {
  min-height: var(--staff-global-dialer-card-min-height);
  align-self: start;
}

.staff-global-call-column .staff-toolbar,
.staff-global-call-column .global-dialer-card {
  border-color: color-mix(in srgb, var(--staff-call-console-border) 86%, white 14%);
  background: color-mix(in srgb, var(--staff-call-console-card-surface) 92%, white 8%);
  box-shadow:
    0 14px 30px rgba(47, 63, 96, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.staff-global-call-column .staff-toolbar {
  border-radius: 26px;
}

.staff-global-call-column .staff-toolbar__inner {
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--staff-call-console-soft-surface) 72%, white 28%) 0%,
      color-mix(in srgb, #ffffff 94%, var(--staff-primary-soft) 6%) 100%
    );
  min-height: 68px;
  padding: 14px 16px;
  align-items: center;
}

.staff-global-call-column .staff-toolbar__name {
  margin-bottom: 4px;
  font-size: 0.98rem;
}

.staff-global-call-column .staff-toolbar__status-text {
  font-size: 0.82rem;
}

.staff-global-call-column .staff-toolbar__settings-menu {
  flex: 0 0 auto;
}

.staff-global-call-column .staff-toolbar__tool {
  width: 38px;
  height: 38px;
  border-radius: 14px;
}

.staff-global-call-column .global-dialer-card {
  overflow: visible;
  border-radius: 26px;
}

.staff-global-call-column .global-dialer-card__body {
  background: var(--staff-call-console-card-surface);
  border-radius: 0 0 24px 24px;
}

.staff-toolbar {
  width: 100%;
  max-width: 100%;
  padding: 6px;
  border-radius: 22px;
  background: var(--staff-call-console-card-surface);
  border: 1px solid var(--staff-call-console-border);
  box-sizing: border-box;
  box-shadow: 0 8px 20px rgba(47, 63, 96, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  overflow: visible;
}

.staff-toolbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 18px;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--staff-call-console-soft-surface) 80%, white 20%) 0%,
      #ffffff 100%
    );
  overflow: visible;
}

.staff-toolbar__profile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.staff-toolbar__avatar-wrap {
  display: none;
  width: 0;
  height: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(231, 204, 204, 0.55);
  flex: 0 0 auto;
}

.staff-toolbar__avatar {
  width: 0;
  height: 0;
  border-radius: 999px;
  object-fit: cover;
  display: none;
}

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

.staff-toolbar__status-menu,
.staff-toolbar__settings-menu {
  position: relative;
}

.staff-toolbar__status-menu[open],
.staff-toolbar__settings-menu[open] {
  z-index: 80;
}

.staff-toolbar__status-menu > summary,
.staff-toolbar__settings-menu > summary {
  list-style: none;
}

.staff-toolbar__status-menu > summary::-webkit-details-marker,
.staff-toolbar__settings-menu > summary::-webkit-details-marker {
  display: none;
}

.staff-toolbar__name {
  margin: 0 0 2px 0;
  font-family: var(--staff-font-title);
  font-size: var(--staff-font-size-title);
  line-height: 1.05;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.staff-toolbar__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--staff-call-console-border) 82%, white 18%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition: color 0.16s ease, opacity 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.staff-toolbar__status--online .staff-toolbar__status-dot {
  background: var(--low);
}

.staff-toolbar__status--online .staff-toolbar__status-text {
  color: var(--low);
}

.staff-toolbar__status--online {
  border-color: color-mix(in srgb, var(--low) 26%, white 74%);
  background: color-mix(in srgb, var(--low) 10%, white 90%);
}

.staff-toolbar__status--busy .staff-toolbar__status-dot {
  background: var(--urgent);
}

.staff-toolbar__status--busy .staff-toolbar__status-text {
  color: var(--urgent);
}

.staff-toolbar__status--busy {
  border-color: color-mix(in srgb, var(--urgent) 24%, white 76%);
  background: color-mix(in srgb, var(--urgent) 9%, white 91%);
}

.staff-toolbar__status--timeout .staff-toolbar__status-dot {
  background: var(--high);
}

.staff-toolbar__status--timeout .staff-toolbar__status-text {
  color: var(--high);
}

.staff-toolbar__status--timeout {
  border-color: color-mix(in srgb, var(--high) 24%, white 76%);
  background: color-mix(in srgb, var(--high) 10%, white 90%);
}

.staff-toolbar__status--offline .staff-toolbar__status-dot {
  background: var(--muted);
}

.staff-toolbar__status--offline .staff-toolbar__status-text {
  color: var(--muted);
}

.staff-toolbar__status--offline {
  border-color: color-mix(in srgb, var(--muted) 22%, white 78%);
  background: color-mix(in srgb, var(--muted) 9%, white 91%);
}

.staff-toolbar__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--low);
  flex: 0 0 auto;
}

.staff-toolbar__status-text {
  font-size: var(--staff-font-size-small);
  line-height: 1;
  font-weight: 600;
  color: var(--low);
}

.staff-toolbar__status-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--staff-toolbar-tool-icon);
  transform: translateY(-1px);
  transition: transform 0.16s ease;
}

.staff-toolbar__status-menu[open] .staff-toolbar__status-chevron {
  transform: translateY(-1px) rotate(180deg);
}

.staff-toolbar__status-chevron .svg-icon {
  width: 0.8rem;
  height: 0.8rem;
}

.staff-toolbar__status-panel {
  top: calc(100% + 8px);
  left: 0;
  right: auto;
  min-width: 176px;
  z-index: 60;
}

.staff-toolbar__presence-option.is-online {
  color: var(--low);
}

.staff-toolbar__presence-option.is-busy {
  color: var(--urgent);
}

.staff-toolbar__presence-option.is-timeout {
  color: var(--high);
}

.staff-toolbar__presence-option.is-offline {
  color: var(--muted);
}

.staff-toolbar__tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.staff-toolbar__tool {
  width: 36px;
  height: 36px;
  border: 1px solid color-mix(in srgb, var(--staff-call-console-border) 78%, white 22%);
  border-radius: 12px;
  background: var(--staff-toolbar-tool-surface);
  color: var(--staff-toolbar-tool-icon);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 4px 10px rgba(15, 23, 42, 0.05);
  transition: background-color 0.16s ease, color 0.16s ease, opacity 0.16s ease;
}

.staff-toolbar__tool.is-off {
  border-color: color-mix(in srgb, var(--urgent) 22%, white 78%);
  background: color-mix(in srgb, var(--urgent) 10%, white 90%);
  color: color-mix(in srgb, var(--urgent) 76%, var(--text) 24%);
}

.staff-toolbar__tool.is-unavailable {
  opacity: 0.72;
}

.staff-toolbar__tool .svg-icon {
  width: 1.15rem;
  height: 1.15rem;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.staff-toolbar__tool--settings {
  color: var(--staff-toolbar-tool-icon);
}

.staff-toolbar__settings-panel {
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  z-index: 60;
}

.staff-toolbar__settings-menu[open] .staff-toolbar__tool {
  border-color: color-mix(in srgb, var(--primary) 22%, white 78%);
  background: color-mix(in srgb, var(--staff-nav-active-surface) 78%, white 22%);
  color: color-mix(in srgb, var(--text) 82%, var(--primary) 18%);
}

.staff-toolbar__settings-link {
  text-decoration: none;
  font: inherit;
}

.staff-toolbar__status-menu[data-menu-positioned="true"] .staff-toolbar__status-panel,
.staff-toolbar__settings-menu[data-menu-positioned="true"] .staff-toolbar__settings-panel {
  position: fixed;
  top: var(--staff-toolbar-menu-top);
  left: var(--staff-toolbar-menu-left);
  right: auto;
  width: var(--staff-toolbar-menu-width);
  max-width: calc(100vw - 16px);
  max-height: var(--staff-toolbar-menu-max-height);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.staff-global-call-column .waitroom-widget-shell,
.staff-global-call-column .global-call-card {
  display: grid;
  align-content: start;
  gap: 12px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.staff-global-call-column .waitroom-widget-shell,
.staff-global-call-column .global-call-card--live {
  grid-template-rows: auto minmax(0, 1fr);
}

.staff-global-call-column .panel,
.staff-global-call-column .table-card {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.staff-global-call-column .panel {
  padding: 20px;
}

.staff-global-call-column .global-call-card--queue {
  padding: 12px 14px;
}

.staff-global-call-column .global-call-card--dialer {
  padding: 12px 14px 14px;
}

.staff-global-call-column .global-call-card--dialer.is-expanded {
  z-index: 264;
  min-height: var(--staff-global-dialer-card-min-height);
}

.staff-global-call-column .global-dialer-card {
  overflow: visible;
  border: 1px solid var(--staff-call-console-border);
  border-radius: 22px;
  background: var(--staff-call-console-card-surface);
  box-shadow: 0 10px 24px rgba(47, 63, 96, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  min-height: var(--staff-global-dialer-card-min-height);
  align-content: start;
}

.staff-global-call-column .global-dialer-card.is-expanded {
  position: fixed;
  top: var(--incoming-widget-overlay-top, 0);
  right: var(--incoming-widget-overlay-right, 0);
  width: var(--incoming-widget-expanded-width, 100%);
  max-width: calc(100vw - 48px);
  z-index: 265;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
}

.staff-global-call-column.is-workspace-minimized {
  z-index: 990;
}

.staff-global-call-column.is-workspace-minimized .staff-global-call-rail {
  overflow: visible;
}

.staff-global-call-column .global-call-card--workspace-dock {
  padding: 18px;
}


.staff-global-call-column .global-dialer-card__transfer-panel {
  z-index: 9;
  width: min(320px, calc(100vw - 32px));
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--staff-call-console-border) 82%, white 18%);
  border-radius: 18px;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--staff-call-console-card-surface) 74%, white 26%) 0%,
      color-mix(in srgb, var(--staff-call-console-soft-surface) 76%, white 24%) 100%
    );
  box-shadow: 0 24px 46px rgba(53, 72, 111, 0.14);
}

.staff-global-call-column .global-dialer-card__transfer-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
}

.staff-global-call-column .global-dialer-card__transfer-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.staff-global-call-column .global-dialer-card__transfer-icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--staff-button-primary-start) 18%, white 82%) 0%,
    color-mix(in srgb, var(--primary-soft) 72%, white 28%) 100%
  );
  color: color-mix(in srgb, var(--low) 76%, var(--text) 24%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.staff-global-call-column .global-dialer-card__transfer-icon .svg-icon {
  width: 0.82rem;
  height: 0.82rem;
}

.staff-global-call-column .global-dialer-card__transfer-head h3 {
  margin: 0;
  color: var(--staff-call-console-text);
  font-size: 0.82rem;
  line-height: 1.1;
}

.staff-global-call-column .global-dialer-card__transfer-head p {
  margin: 3px 0 0;
  color: var(--staff-call-console-muted);
  font-size: 0.62rem;
  line-height: 1.35;
}

.staff-global-call-column .global-dialer-card__transfer-list {
  display: grid;
  gap: 6px;
  max-height: 220px;
  overflow: auto;
}

.staff-global-call-column .global-dialer-card__transfer-option {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 10px;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 7px 9px;
  border: 1px solid color-mix(in srgb, var(--staff-call-console-border) 82%, white 18%);
  border-radius: 14px;
  background: color-mix(in srgb, var(--staff-call-console-soft-surface) 40%, white 60%);
  color: var(--staff-call-console-text);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.staff-global-call-column .global-dialer-card__transfer-option:hover {
  border-color: color-mix(in srgb, var(--staff-button-primary-start) 24%, white 76%);
  background: color-mix(in srgb, var(--primary-soft) 58%, white 42%);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.staff-global-call-column .global-dialer-card__transfer-option.is-selected {
  border-color: color-mix(in srgb, var(--primary) 30%, white 70%);
  background: color-mix(in srgb, var(--primary-soft) 65%, white 35%);
}

.staff-global-call-column .global-dialer-card__transfer-option.is-disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.staff-global-call-column .global-dialer-card__transfer-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--staff-call-console-soft-surface) 76%, white 24%);
  color: var(--staff-call-console-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.66rem;
  font-weight: 800;
}

.staff-global-call-column .global-dialer-card__transfer-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.staff-global-call-column .global-dialer-card__transfer-copy strong,
.staff-global-call-column .global-dialer-card__transfer-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-global-call-column .global-dialer-card__transfer-copy strong {
  font-size: 0.7rem;
  line-height: 1.1;
}

.staff-global-call-column .global-dialer-card__transfer-copy small {
  color: var(--staff-call-console-muted);
  font-size: 0.58rem;
}

.staff-global-call-column .global-dialer-card__transfer-status {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--staff-call-console-border) 86%, white 14%);
}

.staff-global-call-column .global-dialer-card__transfer-status.is-online {
  background: var(--low);
}

.staff-global-call-column .global-dialer-card__transfer-status.is-timeout {
  background: var(--high);
}

.staff-global-call-column .global-dialer-card__transfer-status.is-busy {
  background: var(--urgent);
}

.staff-global-call-column .global-dialer-card__transfer-warning,
.staff-global-call-column .global-dialer-card__transfer-note,
.staff-global-call-column .global-dialer-card__transfer-feedback {
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 0.62rem;
  line-height: 1.35;
}

.staff-global-call-column .global-dialer-card__transfer-warning {
  background: color-mix(in srgb, var(--accent) 12%, white 88%);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, white 82%);
  color: color-mix(in srgb, var(--accent) 82%, var(--text) 18%);
}

.staff-global-call-column .global-dialer-card__transfer-note {
  background: color-mix(in srgb, var(--high) 11%, white 89%);
  border: 1px solid color-mix(in srgb, var(--high) 16%, white 84%);
  color: color-mix(in srgb, var(--high) 76%, var(--text) 24%);
}

.staff-global-call-column .global-dialer-card__transfer-feedback {
  background: color-mix(in srgb, var(--urgent) 10%, white 90%);
  border: 1px solid color-mix(in srgb, var(--urgent) 16%, white 84%);
  color: color-mix(in srgb, var(--urgent) 82%, var(--text) 18%);
}

.staff-global-call-column .global-dialer-card__transfer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.staff-global-call-column .global-dialer-card__transfer-secondary,
.staff-global-call-column .global-dialer-card__transfer-primary {
  min-height: 34px;
  border-radius: 999px;
  padding: 0 13px;
  font-size: 0.66rem;
  font-weight: 750;
  cursor: pointer;
}

.staff-global-call-column .global-dialer-card__transfer-secondary {
  border: 1px solid var(--staff-call-console-border);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--staff-call-console-card-surface) 78%, white 22%) 0%,
    color-mix(in srgb, var(--staff-call-console-soft-surface) 76%, white 24%) 100%
  );
  color: var(--staff-call-console-muted);
}

.staff-global-call-column .global-dialer-card__transfer-primary {
  border: 0;
  background: linear-gradient(
    180deg,
    var(--staff-button-primary-start) 0%,
    var(--staff-button-primary-end) 100%
  );
  color: #ffffff;
}

.staff-global-call-column .global-dialer-card__transfer-primary:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.staff-global-call-column .global-dialer-card__body {
  display: grid;
  gap: 8px;
  padding: 8px 12px 10px;
}

.staff-global-call-column .global-dialer-card__input-shell {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid var(--staff-call-console-border);
  border-radius: 12px;
  background: var(--staff-call-console-card-surface);
}

.staff-global-call-column .global-dialer-card__input-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--staff-call-console-muted);
}

.staff-global-call-column .global-dialer-card__input-icon .svg-icon {
  width: 0.68rem;
  height: 0.68rem;
}

.staff-global-call-column .global-dialer-card__input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--staff-call-console-text);
  font-size: 0.68rem;
  outline: none;
}

.staff-global-call-column .global-dialer-card__input::placeholder {
  color: color-mix(in srgb, var(--staff-call-console-muted) 72%, white 28%);
}

.staff-global-call-column .global-dialer-card__search-button,
.staff-global-call-column .global-dialer-card__subtle-button {
  border: 0;
  border-radius: 10px;
  background: color-mix(in srgb, var(--staff-call-console-soft-surface) 82%, white 18%);
  color: var(--staff-call-console-muted);
  font-size: 0.6rem;
  font-weight: 600;
  cursor: pointer;
}

.staff-global-call-column .global-dialer-card__search-button {
  height: 24px;
  padding: 0 8px;
}

.staff-global-call-column .global-dialer-card__subtle-button {
  height: 24px;
  padding: 0 8px;
}

.staff-global-call-column .global-dialer-card__keypad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.staff-global-call-column .global-dialer-card__key {
  height: 32px;
  border: 1px solid var(--staff-call-console-border);
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    color-mix(in srgb, var(--staff-call-console-soft-surface) 72%, white 28%) 100%
  );
  color: var(--staff-call-console-text);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

.staff-global-call-column .global-dialer-card__dialer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.staff-global-call-column .global-dialer-card__dialer-hint {
  color: var(--staff-call-console-muted);
  font-size: 0.56rem;
}

.staff-global-call-column .global-dialer-card__primary-button {
  width: 100%;
  min-height: 32px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    var(--staff-button-primary-start) 0%,
    var(--staff-button-primary-end) 100%
  );
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(93, 184, 93, 0.18);
}

.staff-global-call-column .global-dialer-card__primary-button.is-end {
  background: linear-gradient(
    180deg,
    var(--staff-communication-end-start) 0%,
    var(--staff-communication-end-end) 100%
  );
  box-shadow: 0 10px 22px rgba(196, 81, 100, 0.16);
}

.staff-global-call-column .global-dialer-card__primary-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.staff-global-call-column .global-dialer-card__results {
  display: grid;
  gap: 6px;
}

.staff-global-call-column .global-dialer-card__result-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--staff-call-console-border);
  border-radius: 12px;
  background: var(--staff-call-console-card-surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.staff-global-call-column .global-dialer-card__result-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-decoration: none;
}

.staff-global-call-column .global-dialer-card__avatar {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--staff-call-console-soft-surface) 72%, white 28%);
  color: var(--staff-call-console-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.56rem;
  font-weight: 700;
  flex: 0 0 auto;
}

.staff-global-call-column .global-dialer-card__avatar-tone.is-client {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--staff-info-blue-surface) 76%, white 24%) 0%,
    color-mix(in srgb, var(--staff-info-blue-surface) 48%, var(--panel) 52%) 100%
  );
  color: var(--staff-info-blue-text);
}

.staff-global-call-column .global-dialer-card__avatar-tone.is-online {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--primary-soft) 74%, white 26%) 0%,
    color-mix(in srgb, var(--primary-soft) 42%, var(--panel) 58%) 100%
  );
  color: color-mix(in srgb, var(--low) 76%, var(--text) 24%);
}

.staff-global-call-column .global-dialer-card__avatar-tone.is-busy {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent) 18%, white 82%) 0%,
    color-mix(in srgb, var(--accent) 10%, var(--panel) 90%) 100%
  );
  color: color-mix(in srgb, var(--high) 80%, var(--text) 20%);
}

.staff-global-call-column .global-dialer-card__avatar-tone.is-offline,
.staff-global-call-column .global-dialer-card__avatar.is-missed {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--staff-call-console-soft-surface) 76%, white 24%) 0%,
    color-mix(in srgb, var(--staff-call-console-soft-surface) 52%, var(--panel) 48%) 100%
  );
  color: var(--staff-call-console-muted);
}

.staff-global-call-column .global-dialer-card__avatar-icon .svg-icon {
  width: 0.66rem;
  height: 0.66rem;
}

.staff-global-call-column .global-dialer-card__result-copy {
  min-width: 0;
}

.staff-global-call-column .global-dialer-card__result-name {
  color: #1b2340;
  font-size: 0.66rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.staff-global-call-column .global-dialer-card__result-meta {
  color: #7a839d;
  font-size: 0.56rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.staff-global-call-column .global-dialer-card__result-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 0 6px;
  height: 18px;
  border-radius: 999px;
  font-size: 0.5rem;
  font-weight: 700;
  white-space: nowrap;
}

.staff-global-call-column .global-dialer-card__result-type.is-client,
.staff-global-call-column .global-dialer-card__result-type.is-audio {
  background: #eef1ff;
  color: #3f64d5;
}

.staff-global-call-column .global-dialer-card__result-type.is-colleague {
  background: #eef7f1;
  color: #3f8a62;
}

.staff-global-call-column .global-dialer-card__result-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 24px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: #eef7f1;
  color: #2f7c5d;
  font-size: 0.58rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.staff-global-call-column .global-dialer-card__result-actions,
.staff-global-call-column .global-dialer-card__quick-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.staff-global-call-column .global-dialer-card__quick-action {
  width: 26px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dbe4ef;
  border-radius: 9px;
  background: #fff;
  color: #243047;
  cursor: pointer;
}

.staff-global-call-column .global-dialer-card__quick-action.is-audio {
  color: #138861;
  background: #eefbf5;
  border-color: #cfeddf;
}

.staff-global-call-column .global-dialer-card__quick-action.is-video {
  color: #2f64d8;
  background: #eef4ff;
  border-color: #d7e3ff;
}

.staff-global-call-column .global-dialer-card__quick-action .svg-icon {
  width: 0.68rem;
  height: 0.68rem;
}

.staff-global-call-column .global-dialer-card__quick-action:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.staff-global-call-column .global-dialer-card__result-action.is-secondary {
  background: #edf1f7;
  color: #495a7c;
}

.staff-global-call-column .global-dialer-card__result-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.staff-global-call-column .global-dialer-card__empty-state {
  padding: 12px 10px;
  border: 1px dashed #dbe4f0;
  border-radius: 12px;
  color: #7a839d;
  font-size: 0.6rem;
  text-align: center;
}

.staff-global-call-column .global-dialer-card {
  display: grid;
  gap: 10px;
  padding: 10px;
  box-sizing: border-box;
  overflow: visible;
  border-color: var(--staff-line-subtle);
  border-radius: 30px;
  background: var(--staff-header-surface);
  box-shadow:
    0 16px 30px rgba(47, 63, 96, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.staff-global-call-column .global-dialer-card__body {
  gap: 6px;
  height: 286px;
  min-height: 286px;
  padding: 9px;
  box-sizing: border-box;
  align-content: start;
  overflow: hidden;
  border: 1px solid var(--staff-line-subtle);
  border-radius: 20px;
  background: var(--staff-header-surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.staff-global-call-column .global-dialer-card__body.is-zoeken {
  grid-template-rows: auto minmax(0, 1fr);
}

.staff-global-call-column .global-dialer-card__body.is-gemist {
  grid-template-rows: minmax(0, 1fr);
}

.staff-global-call-column .global-dialer-card__input-shell {
  min-height: 34px;
  padding: 0 11px;
  border-color: var(--staff-line-subtle);
  border-radius: 16px;
  background: var(--staff-header-surface);
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.03);
}

.staff-global-call-column .global-dialer-card__input {
  font-size: 0.72rem;
  font-weight: 600;
}

.staff-global-call-column .global-dialer-card__keypad {
  gap: 5px;
  width: min(88%, 360px);
  justify-self: center;
}

.staff-global-call-column .global-dialer-card__key {
  height: 28px;
  border-color: var(--staff-line-subtle);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--staff-header-surface) 0%, var(--staff-toolbar-inner-start) 100%);
  color: var(--text);
  font-size: 0.78rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.staff-global-call-column .global-dialer-card__key:hover {
  border-color: var(--staff-toolbar-tool-icon);
  background: linear-gradient(180deg, var(--staff-header-surface) 0%, var(--staff-toolbar-inner-end) 100%);
}

.staff-global-call-column .global-dialer-card__dialer-footer {
  width: min(88%, 360px);
  min-height: 27px;
  justify-self: center;
  flex-wrap: nowrap;
  padding: 0 2px;
}

.staff-global-call-column .global-dialer-card__dialer-hint {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.staff-global-call-column .global-dialer-card__subtle-button,
.staff-global-call-column .global-dialer-card__search-button {
  min-height: 27px;
  border: 1px solid var(--staff-line-subtle);
  background: var(--staff-communication-idle-surface);
}

.staff-global-call-column .global-dialer-card__primary-button {
  width: min(88%, 360px);
  justify-self: center;
  min-height: 30px;
  border-radius: 12px;
  font-size: 0.62rem;
  box-shadow: 0 7px 14px rgba(53, 129, 96, 0.12);
}

.staff-global-call-column .global-dialer-card__result-row {
  border-color: var(--staff-line-subtle);
  border-radius: 16px;
  background: var(--staff-header-surface);
  box-shadow: 0 5px 14px rgba(47, 63, 96, 0.04);
}

.staff-global-call-column .global-dialer-card__results {
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-gutter: stable;
}

.staff-global-call-column .global-dialer-card__empty-state {
  border-color: var(--staff-line-subtle);
  border-radius: 16px;
  background: var(--staff-communication-idle-surface);
}

.staff-global-call-column .global-call-queue-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle) 80%, white 20%);
  border-radius: 20px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.97) 0%,
    color-mix(in srgb, var(--staff-primary-soft) 9%, white 91%) 100%
  );
  box-shadow: 0 12px 24px rgba(36, 54, 73, 0.05);
}

.staff-global-call-column .table-card {
  overflow: hidden;
}

.staff-global-call-column .card-header,
.staff-global-call-column .table-header-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.staff-global-call-column .table-header-bar {
  padding: 18px 18px 0;
}

.staff-global-call-column .table-header-copy {
  display: grid;
  gap: 4px;
}

.staff-global-call-column .table-subtitle {
  margin: 0;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.45;
}

.staff-global-call-column .card-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  color: #0f172a;
}

.staff-global-call-column .incoming-call-widget-shell {
  position: relative;
  margin: 0;
  padding: 12px 14px 14px;
  overflow: visible;
}

.staff-global-call-column .incoming-call-widget-shell.is-expanded {
  z-index: 254;
  min-height: var(--incoming-widget-shell-height, auto);
}

.staff-global-call-column .incoming-call-widget {
  position: relative;
  display: grid;
  gap: 0;
  width: 100%;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle) 80%, white 20%);
  border-radius: 22px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.97) 0%,
    color-mix(in srgb, var(--staff-primary-soft) 8%, white 92%) 100%
  );
  box-shadow: 0 12px 26px rgba(36, 54, 73, 0.06);
  transition: box-shadow 0.18s ease;
}

.staff-global-call-column .incoming-call-widget.is-expanded {
  position: fixed;
  top: var(--incoming-widget-overlay-top, 0);
  right: var(--incoming-widget-overlay-right, 0);
  width: var(--incoming-widget-expanded-width, 100%);
  max-width: calc(100vw - 48px);
  margin-left: 0;
  z-index: 255;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
}

.staff-global-call-column .incoming-call-widget__header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 32px;
}

.staff-global-call-column .incoming-call-widget__header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.staff-global-call-column .incoming-call-widget__menu-shell {
  position: relative;
}

.staff-global-call-column .incoming-call-widget__size-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle) 84%, white 16%);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
}

.staff-global-call-column .incoming-call-widget__size-button {
  min-width: 58px;
  height: 28px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.staff-global-call-column .incoming-call-widget__size-button:hover,
.staff-global-call-column .incoming-call-widget__size-button.is-active {
  background: color-mix(in srgb, var(--staff-primary-soft) 30%, white 70%);
  color: color-mix(in srgb, var(--staff-primary-action) 68%, var(--text) 32%);
}

.staff-global-call-column .incoming-call-widget__icon-button,
.staff-global-call-column .incoming-call-widget__utility-close {
  width: 36px;
  height: 36px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle) 84%, white 16%);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.staff-global-call-column .incoming-call-widget__icon-button:hover,
.staff-global-call-column .incoming-call-widget__utility-close:hover {
  background: color-mix(in srgb, var(--staff-primary-soft) 16%, white 84%);
  border-color: color-mix(in srgb, var(--staff-primary-action) 24%, white 76%);
}

.staff-global-call-column .incoming-call-widget__icon-button.is-active {
  background: color-mix(in srgb, var(--staff-primary-soft) 28%, white 72%);
  border-color: color-mix(in srgb, var(--staff-primary-action) 28%, white 72%);
  color: color-mix(in srgb, var(--staff-primary-action) 66%, var(--text) 34%);
}

.staff-global-call-column .incoming-call-widget__icon-button .svg-icon,
.staff-global-call-column .incoming-call-widget__utility-close .svg-icon {
  width: 1rem;
  height: 1rem;
}

.staff-global-call-column .incoming-call-widget__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 12;
  min-width: 180px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle) 82%, white 18%);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.staff-global-call-column .incoming-call-widget__menu-option {
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.staff-global-call-column .incoming-call-widget__menu-option:hover:not(:disabled) {
  background: color-mix(in srgb, var(--staff-primary-soft) 26%, white 74%);
}

.staff-global-call-column .incoming-call-widget__menu-option:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.staff-global-call-column .incoming-call-widget__title {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 600;
}

.staff-global-call-column .incoming-call-widget__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 12px;
}

.staff-global-call-column .incoming-call-widget__badge,
.staff-global-call-column .incoming-call-widget__timer,
.staff-global-call-column .incoming-call-widget__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--staff-communication-idle-surface);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 700;
}

.staff-global-call-column .incoming-call-widget__badge.video {
  background: var(--staff-communication-incoming-surface);
  color: var(--primary);
}

.staff-global-call-column .incoming-call-widget__badge.phone,
.staff-global-call-column .incoming-call-widget__badge.audio {
  background: var(--staff-communication-incoming-surface);
  color: var(--low);
}

.staff-global-call-column .incoming-call-widget__status {
  background: color-mix(in srgb, var(--staff-header-subbar-surface) 86%, white 14%);
  color: var(--text);
}

.staff-global-call-column .incoming-call-widget__timer {
  background: var(--text);
  color: #ffffff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.staff-global-call-column .incoming-call-widget__preview {
  position: relative;
  height: 144px;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--staff-communication-incoming-surface) 0%, #ffffff 100%);
  transition: height 0.22s ease;
}

.staff-global-call-column .incoming-call-widget.is-video-medium .incoming-call-widget__preview,
.staff-global-call-column .incoming-call-widget.is-expanded .incoming-call-widget__preview {
  height: 216px;
}

.staff-global-call-column .incoming-call-widget.is-video-large .incoming-call-widget__preview {
  height: 324px;
}

.staff-global-call-column .incoming-call-widget__preview.tone-video {
  background:
    radial-gradient(circle at 22% 20%, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(
      180deg,
      var(--staff-communication-active-mid) 0%,
      var(--staff-communication-active-end) 100%
    );
}

.staff-global-call-column .incoming-call-widget__preview.tone-phone,
.staff-global-call-column .incoming-call-widget__preview.tone-audio {
  background:
    radial-gradient(circle at 22% 20%, rgba(255, 255, 255, 0.16), transparent 30%),
    linear-gradient(
      180deg,
      var(--staff-communication-active-start) 0%,
      var(--staff-communication-active-end) 100%
    );
}

.staff-global-call-column .incoming-call-widget__preview-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.78);
}

.staff-global-call-column .incoming-call-widget__preview-media.has-remote {
  position: absolute;
  inset: 0;
  display: block;
}

.staff-global-call-column .incoming-call-widget__remote-video,
.staff-global-call-column .incoming-call-widget__local-video {
  position: absolute;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.36);
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.staff-global-call-column .incoming-call-widget__remote-video {
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.staff-global-call-column .incoming-call-widget__local-video {
  right: 12px;
  bottom: 12px;
  width: 92px;
  height: 68px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.24);
}

.staff-global-call-column .incoming-call-widget.is-video-medium .incoming-call-widget__local-video,
.staff-global-call-column .incoming-call-widget.is-expanded .incoming-call-widget__local-video {
  width: 118px;
  height: 86px;
}

.staff-global-call-column .incoming-call-widget.is-video-large .incoming-call-widget__local-video {
  width: 148px;
  height: 108px;
}

.staff-global-call-column .incoming-call-widget__remote-video.is-visible,
.staff-global-call-column .incoming-call-widget__local-video.is-visible {
  opacity: 1;
}

.staff-global-call-column .incoming-call-widget__preview-content,
.staff-global-call-column .incoming-call-widget__preview-empty {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
}

.staff-global-call-column .incoming-call-widget__preview-content.is-overlay {
  inset: auto 0 0 0;
  justify-items: start;
  align-content: end;
  padding: 18px 18px 20px;
  text-align: left;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.52) 100%);
}

.staff-global-call-column .incoming-call-widget__preview-title-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  color: #ffffff;
}

.staff-global-call-column .incoming-call-widget__preview-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.9);
}

.staff-global-call-column .incoming-call-widget__preview-name {
  max-width: 100%;
  color: #ffffff;
  font-size: 1.18rem;
  line-height: 1.2;
  font-weight: 600;
  text-decoration: none;
  word-break: break-word;
}

.staff-global-call-column .incoming-call-widget__preview-name:hover {
  color: #e0ecff;
}

.staff-global-call-column .incoming-call-widget__preview-name.is-static {
  color: #ffffff;
}

.staff-global-call-column .incoming-call-widget__preview-code,
.staff-global-call-column .incoming-call-widget__preview-empty span,
.staff-global-call-column .incoming-call-widget__preview-empty strong {
  color: rgba(255, 255, 255, 0.82);
}

.staff-global-call-column .incoming-call-widget__preview-code {
  font-size: 0.82rem;
  line-height: 1.4;
}

.staff-global-call-column .incoming-call-widget__preview-empty strong {
  font-size: 0.96rem;
}

.staff-global-call-column .incoming-call-widget__preview-empty span {
  font-size: 0.8rem;
  line-height: 1.45;
}

.staff-global-call-column .incoming-call-widget__live-pill,
.staff-global-call-column .incoming-call-widget__claim-timer,
.staff-global-call-column .incoming-call-widget__active-timer {
  position: absolute;
  top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.staff-global-call-column .incoming-call-widget__live-pill {
  left: 12px;
  background: rgba(15, 23, 42, 0.74);
  color: #ffffff;
}

.staff-global-call-column .incoming-call-widget__claim-timer,
.staff-global-call-column .incoming-call-widget__active-timer {
  right: 12px;
  min-width: 44px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.staff-global-call-column .incoming-call-widget__active-timer {
  gap: 6px;
  min-width: 70px;
  background: rgba(15, 23, 42, 0.78);
}

.staff-global-call-column .incoming-call-widget__claim-timer.is-hidden,
.staff-global-call-column .incoming-call-widget__active-timer.is-hidden {
  display: none;
}

.staff-global-call-column .incoming-call-widget__active-timer-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.staff-global-call-column .incoming-call-widget__body {
  display: grid;
  gap: 12px;
  padding-top: 14px;
}

.staff-global-call-column .incoming-call-widget__utility-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle) 82%, white 18%);
  border-radius: 18px;
  background: color-mix(in srgb, var(--staff-primary-soft) 10%, white 90%);
}

.staff-global-call-column .incoming-call-widget__utility-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.staff-global-call-column .incoming-call-widget__utility-head h3 {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.2;
  color: var(--text);
}

.staff-global-call-column .incoming-call-widget__utility-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.staff-global-call-column .incoming-call-widget__device-grid {
  display: grid;
  gap: 10px;
}

.staff-global-call-column .incoming-call-widget__device-field {
  display: grid;
  gap: 6px;
}

.staff-global-call-column .incoming-call-widget__device-field span {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
}

.staff-global-call-column .incoming-call-widget__device-field select {
  min-height: 40px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle) 82%, white 18%);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  font-size: 0.78rem;
}

.staff-global-call-column .incoming-call-widget__device-note {
  border-radius: 12px;
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.staff-global-call-column .incoming-call-widget__device-note.is-warning {
  background: color-mix(in srgb, var(--accent) 12%, white 88%);
  color: color-mix(in srgb, var(--accent) 78%, var(--text) 22%);
}

.staff-global-call-column .incoming-call-widget__utility-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.staff-global-call-column .incoming-call-widget__utility-primary,
.staff-global-call-column .incoming-call-widget__utility-secondary {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.staff-global-call-column .incoming-call-widget__utility-primary {
  border: 0;
  background: linear-gradient(
    180deg,
    var(--staff-button-primary-start) 0%,
    var(--staff-button-primary-end) 100%
  );
  color: #ffffff;
}

.staff-global-call-column .incoming-call-widget__utility-secondary {
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle) 82%, white 18%);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
}

.staff-global-call-column .incoming-call-widget__test-list {
  display: grid;
  gap: 8px;
}

.staff-global-call-column .incoming-call-widget__test-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
}

.staff-global-call-column .incoming-call-widget__test-copy {
  display: grid;
  gap: 4px;
}

.staff-global-call-column .incoming-call-widget__test-copy strong {
  font-size: 0.76rem;
  color: var(--text);
}

.staff-global-call-column .incoming-call-widget__test-copy span {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.staff-global-call-column .incoming-call-widget__test-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.staff-global-call-column .incoming-call-widget__test-status.is-ok {
  background: color-mix(in srgb, var(--low) 14%, white 86%);
  color: var(--low);
}

.staff-global-call-column .incoming-call-widget__test-status.is-warning {
  background: color-mix(in srgb, var(--high) 14%, white 86%);
  color: color-mix(in srgb, var(--high) 80%, var(--text) 20%);
}

.staff-global-call-column .incoming-call-widget__test-status.is-danger {
  background: color-mix(in srgb, var(--urgent) 14%, white 86%);
  color: var(--urgent);
}

.staff-global-call-column .incoming-call-widget__test-status.is-neutral {
  background: color-mix(in srgb, var(--staff-line-subtle) 40%, white 60%);
  color: var(--text);
}

.staff-global-call-column .incoming-call-widget__footer {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin-top: 12px;
  width: 100%;
}

.staff-global-call-column .incoming-call-widget__empty-copy {
  display: grid;
  gap: 4px;
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.5;
}

.staff-global-call-column .incoming-call-widget__empty-copy p {
  margin: 0;
}

.staff-portal-shell .preferences-media-panel {
  display: grid;
  gap: 14px;
}

.staff-portal-shell .preferences-access-panel {
  display: grid;
  gap: 14px;
}

.staff-portal-shell .preferences-access-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.staff-portal-shell .preferences-access-summary > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 82%, white 18%);
  border-radius: 14px;
  background: color-mix(in srgb, var(--staff-app-background, #eef9fa) 20%, white 80%);
}

.staff-portal-shell .preferences-access-summary strong {
  color: var(--staff-text, #243649);
  font-size: 1.15rem;
  line-height: 1.1;
}

.staff-portal-shell .preferences-access-summary span {
  color: var(--staff-text-muted, #728191);
  font-size: 0.82rem;
  line-height: 1.35;
}

.staff-portal-shell .preferences-access-details {
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 82%, white 18%);
  border-radius: 14px;
  background: color-mix(in srgb, var(--staff-tool-surface, #f3f8f9) 58%, white 42%);
  overflow: hidden;
}

.staff-portal-shell .preferences-access-details-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  color: var(--staff-text, #243649);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-align: left;
}

.staff-portal-shell .preferences-access-details-summary::after {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--staff-text-muted, #728191);
  border-bottom: 2px solid var(--staff-text-muted, #728191);
  transform: rotate(45deg);
  transition: transform 120ms ease;
}

.staff-portal-shell .preferences-access-details.is-open .preferences-access-details-summary::after {
  transform: rotate(225deg);
}

.staff-portal-shell .preferences-access-details-summary small {
  margin-left: auto;
  color: var(--staff-text-muted, #728191);
  font-size: 0.78rem;
  font-weight: 650;
}

.staff-portal-shell .preferences-access-details-summary:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--staff-focus-ring, #8edfd8) 28%, white 72%);
}

.staff-portal-shell .preferences-access-details .session-stack {
  padding: 0 14px 14px;
}

.staff-portal-shell .preferences-ringtone-panel {
  display: grid;
  gap: 14px;
}

.staff-portal-shell .preferences-ringtone-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 82%, white 18%);
  border-radius: 16px;
  background: color-mix(in srgb, var(--staff-app-background, #eef9fa) 20%, white 80%);
}

.staff-portal-shell .preferences-ringtone-select {
  min-width: 0;
}

.staff-portal-shell .preferences-ringtone-picker {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.staff-portal-shell .preferences-ringtone-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  height: 38px;
  width: 100%;
  padding: 7px 9px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 84%, white 16%);
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 10%, white 90%) 100%
  );
  color: var(--staff-text, #243649);
  cursor: pointer;
  font: inherit;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
  transition:
    border-color 120ms ease,
    box-shadow 120ms ease,
    background 120ms ease;
}

.staff-portal-shell .preferences-ringtone-option:hover {
  border-color: color-mix(in srgb, var(--staff-primary-action, #5db85d) 28%, var(--staff-line-subtle, #d9e6e8) 72%);
}

.staff-portal-shell .preferences-ringtone-option:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--staff-primary-action, #5db85d) 42%, white 58%);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--staff-focus-ring, #8edfd8) 26%, white 74%),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.staff-portal-shell .preferences-ringtone-option.is-selected {
  border-color: color-mix(in srgb, var(--staff-primary-action, #5db85d) 78%, var(--staff-line-subtle, #d9e6e8) 22%);
  border-width: 2px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 34%, white 66%) 0%,
    rgba(255, 255, 255, 0.98) 100%
  );
}

.staff-portal-shell .preferences-ringtone-option span {
  overflow: hidden;
  color: var(--staff-text, #243649);
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-portal-shell .preferences-ringtone-row .preferences-preview-button {
  align-self: end;
  justify-self: end;
  white-space: nowrap;
}

.staff-portal-shell .preferences-ringtone-actions {
  align-self: end;
  display: grid;
  gap: 10px;
  justify-items: stretch;
  min-width: 150px;
}

.staff-portal-shell .preferences-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.staff-portal-shell .preferences-media-field {
  display: grid;
  gap: 8px;
}

.staff-portal-shell .preferences-media-field span {
  font-size: 0.84rem;
  color: var(--staff-text-muted, #728191);
}

.staff-portal-shell .preferences-media-field select {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 82%, white 18%);
  background: color-mix(in srgb, var(--staff-app-background, #eef9fa) 24%, white 76%);
  color: var(--staff-text, #243649);
}

.staff-portal-shell .preferences-media-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.staff-portal-shell .preferences-media-note {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 82%, white 18%);
  background: color-mix(in srgb, var(--staff-app-background, #eef9fa) 22%, white 78%);
  color: var(--staff-text-muted, #728191);
  font-size: 0.9rem;
  line-height: 1.5;
}

.staff-portal-shell .preferences-media-note.is-warning {
  border-color: color-mix(in srgb, var(--staff-warning-tone, #d79b56) 52%, white 48%);
  background: color-mix(in srgb, var(--staff-warning-tone, #d79b56) 12%, white 88%);
  color: color-mix(in srgb, var(--staff-warning-tone, #d79b56) 76%, var(--staff-text, #243649) 24%);
}

.staff-global-call-column .incoming-call-widget__warning {
  margin: 0;
}

.staff-global-call-column .incoming-call-widget__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 0;
  width: 100%;
}

.staff-global-call-column .incoming-call-widget__actions--single {
  display: grid;
}

.staff-global-call-column .incoming-call-widget-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1 1 0;
  min-height: 46px;
  width: auto;
  min-width: 0;
  padding: 0 14px;
  border: 0;
  border-radius: 16px;
  font-size: 0.84rem;
  font-weight: 600;
  transition: background-color 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
}

.staff-global-call-column .incoming-call-widget-button:hover:not(:disabled) {
  transform: none;
}

.staff-global-call-column .incoming-call-widget-button:disabled {
  opacity: 0.6;
  cursor: default;
}

.staff-global-call-column .incoming-call-widget-button--accept {
  background: #059669;
  color: #ffffff;
}

.staff-global-call-column .incoming-call-widget-button--accept:hover:not(:disabled) {
  background: #10b981;
}

.staff-global-call-column .incoming-call-widget-button--reject {
  background: #e11d48;
  color: #ffffff;
}

.staff-global-call-column .incoming-call-widget-button--reject:hover:not(:disabled) {
  background: #f43f5e;
}

.staff-global-call-column .incoming-call-widget-button--neutral {
  background: #e2e8f0;
  color: #0f172a;
}

.staff-global-call-column .incoming-call-widget-button--neutral:hover:not(:disabled) {
  background: #cbd5e1;
}

.staff-global-call-column .incoming-call-widget-button--single {
  width: 100%;
}

.staff-global-call-column .table-header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.staff-global-call-column .waitroom-summary-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  min-width: 32px;
  padding: 0 11px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.74rem;
  font-weight: 700;
}

.staff-global-call-column .live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  background: #ecfdf5;
  color: #047857;
}

.staff-global-call-column .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
  flex-shrink: 0;
}

.staff-global-call-column .status-dot.online {
  background: #10b981;
}

.staff-global-call-column .waitroom-widget-channel,
.staff-global-call-column .waitroom-widget-countdown {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.staff-global-call-column .waitroom-widget-channel {
  background: #f8fafc;
  color: #334155;
}

.staff-global-call-column .waitroom-widget-channel.video {
  background: #eff6ff;
  color: #1d4ed8;
}

.staff-global-call-column .waitroom-widget-channel.phone,
.staff-global-call-column .waitroom-widget-channel.audio {
  background: #ecfdf5;
  color: #047857;
}

.staff-global-call-column .waitroom-widget-countdown {
  background: #0f172a;
  color: #ffffff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.staff-global-call-column .waitroom-widget-body {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 0;
  padding: 18px 20px 20px;
}

.staff-global-call-column .waitroom-widget-copy {
  display: grid;
  gap: 4px;
}

.staff-global-call-column .waitroom-widget-title {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 700;
}

.staff-global-call-column .waitroom-widget-subline,
.staff-global-call-column .waitroom-widget-message,
.staff-global-call-column .waitroom-widget-warning {
  margin: 0;
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.5;
}

.staff-global-call-column .waitroom-widget-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.staff-global-call-column .waitroom-widget-facts div {
  display: grid;
  gap: 4px;
  padding: 9px 11px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.staff-global-call-column .waitroom-widget-facts span {
  color: #64748b;
  font-size: 0.72rem;
}

.staff-global-call-column .waitroom-widget-facts strong {
  color: #0f172a;
  font-size: 0.82rem;
}

.staff-global-call-column .global-call-stat-list,
.staff-global-call-column .global-call-staff-meta {
  display: grid;
  gap: 0;
}

.staff-global-call-column .global-call-stat-row,
.staff-global-call-column .global-call-staff-meta div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

.staff-global-call-column .global-call-stat-row:last-child,
.staff-global-call-column .global-call-staff-meta div:last-child {
  border-bottom: 0;
}

.staff-global-call-column .global-call-stat-row span,
.staff-global-call-column .global-call-staff-meta span {
  color: #64748b;
  font-size: 0.84rem;
}

.staff-global-call-column .global-call-stat-row strong,
.staff-global-call-column .global-call-staff-meta strong {
  color: #0f172a;
  font-size: 0.88rem;
}

.staff-global-call-column .global-call-staff-role {
  margin: 2px 0 0;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
}

.staff-figma-shell .page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.staff-figma-shell .page-main {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.staff-figma-shell .page-layout--logbook {
  align-items: start;
}

.staff-figma-shell .page-main--logbook {
  min-width: 0;
  overflow: hidden;
}

.staff-figma-shell .preferences-page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
  gap: 24px;
  align-items: start;
}

.staff-figma-shell .preferences-main-card,
.staff-figma-shell .preferences-side-card {
  display: grid;
  gap: 18px;
}

.staff-figma-shell .preferences-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

.staff-figma-shell .preferences-field {
  display: grid;
  gap: 8px;
}

.staff-figma-shell .preferences-toggle-field {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 80%, white 20%);
  border-radius: 18px;
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 20%, white 80%);
}

.staff-figma-shell .preferences-field--full {
  grid-column: 1 / -1;
}

.staff-figma-shell .preferences-toggle-checkbox {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--staff-primary-action, #5db85d);
}

.staff-figma-shell .preferences-toggle-copy {
  display: grid;
  gap: 4px;
}

.staff-figma-shell .preferences-inline-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.staff-figma-shell .preferences-preview-button {
  min-height: 46px;
  padding-inline: 16px;
  border-radius: 14px;
}

.staff-figma-shell .preferences-label {
  color: var(--staff-text-muted, #728191);
  font-size: 0.78rem;
  font-weight: 600;
}

.staff-figma-shell .preferences-select,
.staff-figma-shell .preferences-input {
  min-height: 46px;
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 80%, white 20%);
  border-radius: 16px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 16%, white 84%) 100%
  );
  color: var(--staff-text, #243649);
  font-size: 0.95rem;
  padding: 0 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 18px rgba(36, 54, 73, 0.04);
  transition:
    border-color 120ms ease,
    box-shadow 120ms ease,
    background 120ms ease,
    transform 120ms ease;
}

.staff-figma-shell .preferences-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  cursor: pointer;
  background-image:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.98) 0%,
      color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 16%, white 84%) 100%
    ),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5l5 5 5-5' stroke='%2362758f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, right 14px center;
  background-size: 100% 100%, 14px 14px;
}

.staff-figma-shell .preferences-select:hover,
.staff-figma-shell .preferences-input:hover {
  border-color: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 40%, var(--staff-line-subtle, #d9e6e8) 60%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 10px 22px rgba(36, 54, 73, 0.07);
}

.staff-figma-shell .preferences-select:focus,
.staff-figma-shell .preferences-input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--staff-primary-action, #5db85d) 38%, white 62%);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 1) 0%,
    color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 12%, white 88%) 100%
  );
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--staff-focus-ring, #8edfd8) 26%, white 74%),
    0 12px 28px rgba(36, 54, 73, 0.08);
}

.staff-figma-shell .preferences-select:disabled,
.staff-figma-shell .preferences-input:disabled {
  cursor: not-allowed;
  color: color-mix(in srgb, var(--staff-text-muted, #728191) 72%, white 28%);
  border-color: color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 86%, white 14%);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--staff-tool-surface, #f3f8f9) 82%, white 18%) 0%,
    color-mix(in srgb, var(--staff-tool-surface, #f3f8f9) 92%, white 8%) 100%
  );
  box-shadow: none;
}

.staff-figma-shell .preferences-help {
  color: var(--staff-text-muted, #728191);
  font-size: 0.78rem;
  line-height: 1.5;
}

.staff-figma-shell .preferences-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.staff-figma-shell .preferences-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.staff-figma-shell .preferences-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 80%, white 20%);
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 76%, white 24%);
  color: color-mix(in srgb, var(--staff-primary-action, #5db85d) 64%, var(--staff-text, #243649) 36%);
  font-size: 0.82rem;
  font-weight: 600;
}

.staff-figma-shell .preferences-status-copy,
.staff-figma-shell .preferences-side-note {
  color: var(--staff-text-muted, #728191);
  font-size: 0.86rem;
  line-height: 1.55;
}

.staff-figma-shell .preferences-feedback {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.staff-figma-shell .preferences-feedback--success {
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 84%, white 16%);
  color: color-mix(in srgb, var(--staff-success-tone, #4fb89d) 78%, var(--staff-text, #243649) 22%);
}

.staff-figma-shell .preferences-feedback--error {
  background: color-mix(in srgb, var(--staff-danger-tone, #d96e76) 12%, white 88%);
  color: color-mix(in srgb, var(--staff-danger-tone, #d96e76) 86%, var(--staff-text, #243649) 14%);
}

.staff-figma-shell .staff-shell-field {
  display: grid;
  gap: 8px;
}

.staff-figma-shell .staff-shell-field span {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
}

.staff-figma-shell .client-directory-search-bar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.staff-figma-shell .client-directory-search-field {
  flex: 1 1 320px;
}

.staff-figma-shell .client-directory-search-button {
  min-width: 132px;
  min-height: 46px;
}

.staff-figma-shell.route-clients .detail-grid {
  grid-template-columns: minmax(300px, 0.82fr) minmax(420px, 1.18fr);
  align-items: start;
}

.staff-figma-shell .client-directory-panel,
.staff-figma-shell .client-directory-profile-stack {
  min-width: 0;
}

.staff-figma-shell .client-directory-search-form {
  margin: 0;
}

.staff-figma-shell .client-directory-search-status {
  display: flex;
  justify-content: flex-end;
  min-height: 20px;
  margin-bottom: 8px;
}

.staff-figma-shell .client-directory-search-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 6px 0 14px;
  border: 2px solid color-mix(in srgb, var(--primary) 30%, #dbe4ef 70%);
  border-radius: 16px;
  background: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.9),
    0 8px 18px rgba(36, 54, 73, 0.06);
}

.staff-figma-shell .client-directory-search-control:focus-within {
  border-color: color-mix(in srgb, var(--primary) 58%, #dbe4ef 42%);
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent),
    0 10px 24px rgba(36, 54, 73, 0.08);
}

.staff-figma-shell .client-directory-search-control .search-input {
  min-height: 48px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.staff-figma-shell .client-directory-search-control .search-input:focus {
  outline: none;
}

.staff-figma-shell .client-directory-search-submit {
  min-width: 66px;
  min-height: 38px;
  border: 1px solid var(--staff-line-subtle);
  border-radius: 12px;
  background: #ffffff;
  color: color-mix(in srgb, var(--primary) 62%, var(--text) 38%);
  font-weight: 700;
  cursor: pointer;
}

.staff-figma-shell .client-directory-search-submit:hover:not(:disabled) {
  background: color-mix(in srgb, var(--primary-soft) 44%, white 56%);
}

.staff-figma-shell .client-directory-search-submit:disabled {
  opacity: 0.65;
  cursor: default;
}

.staff-figma-shell .client-directory-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 12px;
}

.staff-figma-shell .client-directory-result-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.staff-figma-shell .client-directory-result-copy strong {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.25;
}

.staff-figma-shell .client-directory-result-copy span {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.25;
}

.staff-figma-shell .client-directory-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.staff-figma-shell .client-directory-pagination button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--staff-line-subtle);
  border-radius: 10px;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
}

.staff-figma-shell .client-directory-pagination button:disabled {
  opacity: 0.55;
  cursor: default;
}

.staff-figma-shell .client-directory-profile-stack {
  display: grid;
  gap: 14px;
}

.staff-figma-shell .client-directory-profile .card-header {
  align-items: flex-start;
}

.staff-figma-shell .client-directory-profile-hero {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--staff-info-blue-surface, #edf5fb) 18%, white 82%) 0%,
    #ffffff 100%
  );
}

.staff-figma-shell .client-directory-contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--staff-line-subtle);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 88%, var(--staff-line-subtle) 12%);
}

.staff-figma-shell .client-directory-contact-card > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.staff-figma-shell .client-directory-contact-value {
  color: var(--text);
  font-weight: 700;
  text-align: right;
}

.staff-figma-shell .client-directory-profile-actions .link-button:disabled,
.staff-figma-shell .link-button:disabled {
  opacity: 0.62;
  cursor: default;
}

.staff-figma-shell .client-directory-profile-stack .profile-chip-list,
.staff-figma-shell .client-directory-label-list {
  justify-content: flex-start;
  max-width: none;
}

.staff-figma-shell .client-directory-appointment-list {
  display: grid;
  gap: 8px;
}

.staff-figma-shell .client-directory-appointment-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--staff-line-subtle);
  border-radius: 12px;
  background: #ffffff;
}

.staff-figma-shell .client-directory-appointment-row div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.staff-figma-shell .client-directory-appointment-row strong {
  color: var(--text);
  font-size: 0.86rem;
}

.staff-figma-shell .client-directory-appointment-row span {
  color: var(--muted);
  font-size: 0.74rem;
}

.staff-figma-shell .client-directory-appointment-status {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary-soft) 60%, white 40%);
  color: color-mix(in srgb, var(--primary) 62%, var(--text) 38%);
  font-weight: 700;
}

@media (max-width: 1180px) {
  .staff-figma-shell.route-clients .detail-grid {
    grid-template-columns: 1fr;
  }
}

.staff-figma-shell .client-profile-shell {
  display: grid;
  gap: 20px;
}

.staff-figma-shell .client-profile-stage-card {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--staff-line-subtle);
  background: var(--panel);
}

.staff-figma-shell .client-profile-status-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: linear-gradient(
    180deg,
    var(--staff-toolbar-inner-start) 0%,
    var(--staff-toolbar-inner-end) 100%
  );
  border-bottom: 1px solid var(--staff-line-subtle);
  flex-wrap: wrap;
}

.staff-figma-shell .client-profile-status-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.staff-figma-shell .client-profile-status-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.staff-figma-shell .client-profile-timer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--staff-line-subtle);
}

.staff-figma-shell .client-profile-hero {
  display: grid;
  gap: 18px;
  padding: 24px 22px 22px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--primary) 24%, #0f172a 76%) 0%,
    color-mix(in srgb, var(--primary) 16%, #1e293b 84%) 55%,
    color-mix(in srgb, var(--primary) 12%, #334155 88%) 100%
  );
}

.staff-figma-shell .client-profile-hero-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: start;
}

.staff-figma-shell .client-profile-avatar {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.staff-figma-shell .client-profile-hero-copy h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 1.45rem;
  line-height: 1.15;
}

.staff-figma-shell .client-profile-hero-copy p {
  margin: 0;
  color: rgba(226, 232, 240, 0.92);
  line-height: 1.6;
  max-width: 68ch;
}

.staff-figma-shell .client-profile-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.staff-figma-shell .client-profile-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 0.8rem;
  font-weight: 700;
}

.staff-figma-shell .client-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.staff-figma-shell .client-profile-actions .ghost-text {
  color: rgba(226, 232, 240, 0.88);
}

.staff-figma-shell .client-profile-detail-card {
  display: grid;
  gap: 20px;
}

.staff-figma-shell .client-profile-detail-title {
  text-align: center;
}

.staff-figma-shell .client-profile-detail-title h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.5rem;
}

.staff-figma-shell .client-profile-detail-title p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.staff-figma-shell .client-profile-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
}

.staff-figma-shell .client-profile-detail-section {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.staff-figma-shell .client-profile-detail-section h3 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
}

.staff-figma-shell .client-profile-field-list {
  display: grid;
  gap: 10px;
}

.staff-figma-shell .client-profile-field {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 88%, var(--staff-line-subtle) 12%);
  border: 1px solid var(--staff-line-subtle);
}

.staff-figma-shell .client-profile-field--stack {
  display: grid;
  gap: 6px;
}

.staff-figma-shell .client-profile-field span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.staff-figma-shell .client-profile-field strong {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: right;
}

.staff-figma-shell .client-profile-field--stack strong {
  text-align: left;
  font-weight: 600;
}

.staff-figma-shell .client-profile-inline-block {
  display: grid;
  gap: 10px;
}

.staff-figma-shell .client-profile-block-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.staff-figma-shell .client-profile-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  display: grid;
  gap: 6px;
}

.staff-figma-shell .client-profile-empty,
.staff-figma-shell .client-profile-section-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.staff-figma-shell .client-profile-contact-list,
.staff-figma-shell .client-profile-history-list {
  display: grid;
  gap: 12px;
}

.staff-figma-shell .client-profile-contact-card,
.staff-figma-shell .client-profile-history-item {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel) 88%, var(--staff-line-subtle) 12%);
  border: 1px solid var(--staff-line-subtle);
}

.staff-figma-shell .client-profile-contact-card strong,
.staff-figma-shell .client-profile-history-item strong {
  color: var(--text);
  font-weight: 500;
}

.staff-figma-shell .client-profile-contact-card span,
.staff-figma-shell .client-profile-history-item span,
.staff-figma-shell .client-profile-history-item small {
  color: var(--muted);
}

.staff-figma-shell .client-profile-history-item p {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}

.staff-figma-shell .client-profile-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.staff-figma-shell .client-profile-link-row a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--primary) 12%, var(--panel) 88%);
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.staff-figma-shell .client-profile-sidebar {
  display: grid;
  gap: 16px;
  min-height: 0;
}

.staff-figma-shell .client-profile-side-stack {
  display: grid;
  gap: 16px;
}

.staff-figma-shell .client-profile-side-card {
  display: grid;
  gap: 14px;
}

.staff-figma-shell .client-profile-side-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.staff-figma-shell .client-profile-side-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.staff-figma-shell .client-profile-side-links a,
.staff-figma-shell .client-profile-inline-link,
.staff-figma-shell .client-profile-tech-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.staff-figma-shell .client-profile-side-links a:hover,
.staff-figma-shell .client-profile-inline-link:hover,
.staff-figma-shell .client-profile-tech-link:hover {
  color: color-mix(in srgb, var(--primary) 82%, #000 18%);
}

.staff-figma-shell .client-profile-accordion,
.staff-figma-shell .client-profile-tech-card {
  padding: 0;
  overflow: hidden;
}

.staff-figma-shell .client-profile-accordion-toggle,
.staff-figma-shell .client-profile-tech-toggle {
  width: 100%;
  border: 0;
  background: var(--panel);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
}

.staff-figma-shell .client-profile-accordion-toggle:hover,
.staff-figma-shell .client-profile-tech-toggle:hover {
  background: color-mix(in srgb, var(--panel) 84%, var(--staff-line-subtle) 16%);
}

.staff-figma-shell .client-profile-accordion-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.staff-figma-shell .client-profile-accordion-title strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
}

.staff-figma-shell .client-profile-accordion-title small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.staff-figma-shell .client-profile-accordion-chevron,
.staff-figma-shell .client-profile-tech-chevron {
  color: var(--muted);
  transition: transform 160ms ease;
}

.staff-figma-shell .client-profile-accordion-chevron.is-open,
.staff-figma-shell .client-profile-tech-chevron.is-open {
  transform: rotate(180deg);
}

.staff-figma-shell .client-profile-accordion-body {
  padding: 16px 18px 18px;
  border-top: 1px solid var(--staff-line-subtle);
}

.staff-figma-shell .client-profile-label-value {
  display: grid;
  gap: 10px;
}

.staff-figma-shell .client-profile-label-value--spaced {
  gap: 0;
}

.staff-figma-shell .client-profile-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--staff-line-subtle);
}

.staff-figma-shell .client-profile-label-row:last-child {
  border-bottom: 0;
}

.staff-figma-shell .client-profile-label-row label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.staff-figma-shell .client-profile-label-row span:not(.status-pill),
.staff-figma-shell .client-profile-label-row a {
  color: var(--text);
  font-size: 0.875rem;
  text-align: right;
}

.staff-figma-shell .client-profile-tech-body {
  padding: 0 18px 18px;
  display: grid;
  gap: 16px;
}

.staff-figma-shell .client-profile-tech-group {
  display: grid;
  gap: 4px;
}

.staff-figma-shell .client-profile-tech-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.staff-figma-shell .client-profile-tech-value {
  margin: 0;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.5;
}

.staff-figma-shell .client-profile-tech-subtle {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.55;
}

.staff-figma-shell .client-profile-tech-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
}

.staff-figma-shell .client-profile-tech-check .svg-icon {
  color: #059669;
}

.staff-figma-shell .client-profile-tech-check.failed {
  color: #b91c1c;
}

.staff-figma-shell .client-profile-tech-check.failed .svg-icon {
  color: #dc2626;
}

.staff-figma-shell .client-profile-tech-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--staff-line-subtle);
}

.staff-figma-shell .client-profile-report-button {
  width: 100%;
  justify-content: center;
}

.staff-figma-shell .push-widget {
  position: relative;
  display: grid;
  gap: 14px;
}

.staff-figma-shell .push-picker {
  position: relative;
  z-index: 2;
}

.staff-figma-shell .push-label {
  display: block;
  margin-bottom: 8px;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 600;
}

.staff-figma-shell .push-trigger {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

.staff-figma-shell .push-trigger:hover {
  background: #f8fafc;
}

.staff-figma-shell .push-trigger-placeholder {
  color: #94a3b8;
}

.staff-figma-shell .push-trigger-value {
  color: #0f172a;
}

.staff-figma-shell .push-chevron {
  color: #94a3b8;
  transition: transform 160ms ease;
}

.staff-figma-shell .push-chevron.is-open {
  transform: rotate(180deg);
}

.staff-figma-shell .push-menu {
  position: static;
  margin-top: 8px;
  z-index: 30;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  overflow: auto;
  max-height: 260px;
}

.staff-figma-shell .push-menu-header,
.staff-figma-shell .push-menu-empty {
  padding: 12px 14px;
  color: #334155;
  font-size: 0.82rem;
}

.staff-figma-shell .push-menu-header {
  border-bottom: 1px solid #f1f5f9;
  font-weight: 600;
}

.staff-figma-shell .push-option {
  width: 100%;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  cursor: pointer;
}

.staff-figma-shell .push-option:hover {
  background: #f8fafc;
}

.staff-figma-shell .push-option.selected.tone-blue {
  background: #eff6ff;
  color: #1d4ed8;
}

.staff-figma-shell .push-option.selected.tone-emerald,
.staff-figma-shell .push-option.selected.tone-success {
  background: #ecfdf5;
  color: #047857;
}

.staff-figma-shell .push-option.selected.tone-orange,
.staff-figma-shell .push-option.selected.tone-yellow {
  background: #fff7ed;
  color: #c2410c;
}

.staff-figma-shell .push-option.selected.tone-rose {
  background: #fff1f2;
  color: #be123c;
}

.staff-figma-shell .push-option.selected.tone-violet,
.staff-figma-shell .push-option.selected.tone-purple {
  background: #f5f3ff;
  color: #6d28d9;
}

.staff-figma-shell .push-option.selected.tone-neutral {
  background: #f8fafc;
  color: #475569;
}

.staff-figma-shell .push-option-dot,
.staff-figma-shell .push-trigger-dot,
.staff-figma-shell .push-history-dot {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}

.staff-figma-shell .push-option-dot {
  border-radius: 3px;
}

.staff-figma-shell .push-trigger-dot,
.staff-figma-shell .push-history-dot {
  border-radius: 999px;
}

.staff-figma-shell .push-option-dot.tone-blue,
.staff-figma-shell .push-trigger-dot.tone-blue,
.staff-figma-shell .push-history-dot.tone-blue {
  background: #3b82f6;
}

.staff-figma-shell .push-option-dot.tone-emerald,
.staff-figma-shell .push-trigger-dot.tone-emerald,
.staff-figma-shell .push-history-dot.tone-emerald,
.staff-figma-shell .push-option-dot.tone-success,
.staff-figma-shell .push-trigger-dot.tone-success,
.staff-figma-shell .push-history-dot.tone-success {
  background: #10b981;
}

.staff-figma-shell .push-option-dot.tone-orange,
.staff-figma-shell .push-trigger-dot.tone-orange,
.staff-figma-shell .push-history-dot.tone-orange {
  background: #f97316;
}

.staff-figma-shell .push-option-dot.tone-rose,
.staff-figma-shell .push-trigger-dot.tone-rose,
.staff-figma-shell .push-history-dot.tone-rose {
  background: #f43f5e;
}

.staff-figma-shell .push-option-dot.tone-violet,
.staff-figma-shell .push-trigger-dot.tone-violet,
.staff-figma-shell .push-history-dot.tone-violet {
  background: #8b5cf6;
}

.staff-figma-shell .push-option-dot.tone-purple,
.staff-figma-shell .push-trigger-dot.tone-purple,
.staff-figma-shell .push-history-dot.tone-purple {
  background: #a855f7;
}

.staff-figma-shell .push-option-dot.tone-yellow,
.staff-figma-shell .push-trigger-dot.tone-yellow,
.staff-figma-shell .push-history-dot.tone-yellow {
  background: #eab308;
}

.staff-figma-shell .push-option-dot.tone-neutral,
.staff-figma-shell .push-trigger-dot.tone-neutral,
.staff-figma-shell .push-history-dot.tone-neutral {
  background: #94a3b8;
}

.staff-figma-shell .push-option-text {
  color: #334155;
  font-size: 0.85rem;
}

.staff-figma-shell .push-option-text.selected {
  font-weight: 600;
}

.staff-figma-shell .push-send-button {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.staff-figma-shell .push-send-button.ready {
  background: #2563eb;
  color: #ffffff;
}

.staff-figma-shell .push-send-button.ready:hover {
  background: #1d4ed8;
}

.staff-figma-shell .push-send-button.sent {
  background: #10b981;
  color: #ffffff;
}

.staff-figma-shell .push-send-button.idle {
  background: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
}

.staff-figma-shell .push-history {
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.staff-figma-shell .push-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.staff-figma-shell .push-history-header p {
  margin: 0;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.staff-figma-shell .push-history-clear {
  border: 0;
  background: transparent;
  color: #f43f5e;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  cursor: pointer;
}

.staff-figma-shell .push-history-clear:disabled {
  cursor: progress;
  opacity: 0.72;
}

.staff-figma-shell .push-history-list {
  display: grid;
  gap: 8px;
}

.staff-figma-shell .subscription-card-stack {
  gap: 12px;
}

.staff-figma-shell .subscription-package-label {
  margin: 0;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.5;
}

.staff-figma-shell .subscription-overview .client-profile-label-row {
  padding: 8px 0;
}

.staff-figma-shell .subscription-link {
  color: #2563eb;
  font-weight: 500;
  text-decoration: none;
}

.staff-figma-shell .subscription-link:hover {
  color: #1d4ed8;
}

.staff-figma-shell .subscription-button {
  margin-top: 8px;
}

.staff-figma-shell .push-history-item {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
}

.staff-figma-shell .push-history-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.staff-figma-shell .push-history-main {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.staff-figma-shell .push-history-main p {
  margin: 0;
  min-width: 0;
  color: #334155;
  font-size: 0.76rem;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-figma-shell .push-history-status {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}

.staff-figma-shell .push-history-status.ok {
  background: #ecfdf5;
  color: #047857;
}

.staff-figma-shell .push-history-status.none {
  background: #fff1f2;
  color: #e11d48;
}

.staff-figma-shell .push-history-status.wait {
  background: #fffbeb;
  color: #d97706;
}

.staff-figma-shell .push-history-time {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  margin-left: 18px;
  color: #94a3b8;
  font-size: 0.72rem;
}

.staff-figma-shell .profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}

.staff-figma-shell .client-profile-workbench {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  min-height: calc(100vh - 166px);
}

.staff-figma-shell .client-profile-workbench--profile {
  grid-template-rows: minmax(0, 1fr);
}

.staff-figma-shell .client-profile-workbench--profile.client-profile-workbench--has-preview {
  grid-template-rows: auto minmax(0, 1fr);
}

.staff-figma-shell .client-profile-profile-layout {
  display: grid;
  grid-template-columns: minmax(160px, 188px) minmax(0, 1fr);
  gap: 24px;
  height: 100%;
  min-height: 0;
  align-items: start;
}

.staff-figma-shell .client-profile-sidebar--summary {
  display: grid;
  gap: 14px;
  margin-top: 68px;
  align-content: start;
}

.staff-figma-shell .client-profile-person-card,
.staff-figma-shell .client-profile-action-card {
  overflow: hidden;
  border: 1px solid #d8e1ea;
  border-radius: 24px;
  background: #ffffff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 14px 30px rgba(15, 23, 42, 0.07);
}

.staff-figma-shell .client-profile-person-card {
  display: grid;
  align-items: center;
  justify-items: center;
  gap: 0;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  padding: 0 18px;
  text-align: center;
}

.staff-figma-shell .client-profile-person-card h2 {
  margin: 0;
  color: #102033;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.15;
}

.staff-figma-shell .client-profile-action-card {
  position: relative;
  display: grid;
}

.staff-figma-shell .client-profile-action-card h3 {
  margin: 0;
  padding: 9px 16px 8px;
  border-bottom: 1px solid #e3e9ef;
  color: #9aa8b7;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.staff-figma-shell .client-profile-action-card .client-profile-quick-links-list {
  gap: 0;
}

.staff-figma-shell .client-profile-action-card .client-profile-quick-link {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  padding: 0 28px 0 14px;
  border: 0;
  border-bottom: 1px solid #d8e1ea;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  text-align: left;
}

.staff-figma-shell .client-profile-action-card .client-profile-quick-link:last-child {
  border-bottom: 0;
}

.staff-figma-shell .client-profile-action-card .client-profile-quick-link::after {
  content: "\203A";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #475569;
  font-size: 1rem;
  line-height: 1;
}

.staff-figma-shell .client-profile-action-card .client-profile-quick-link:hover {
  border-bottom-color: #d8e1ea;
  background: #f8fbff;
  box-shadow: none;
}

.staff-figma-shell .client-profile-action-card .client-profile-quick-link.is-disabled,
.staff-figma-shell .client-profile-action-card .client-profile-quick-link:disabled {
  background: #ffffff;
  opacity: 0.58;
}

.staff-figma-shell .client-profile-action-card .client-profile-quick-link__icon {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  flex: 0 0 32px;
}

.staff-figma-shell .client-profile-action-card .client-profile-quick-link__copy strong {
  display: block;
  color: #102033;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1;
}

.staff-figma-shell .client-profile-action-card .client-profile-quick-link__copy span {
  display: none;
}

.staff-figma-shell .client-profile-action-card .client-profile-quick-link__copy {
  display: flex;
  min-width: 0;
  align-items: center;
  align-self: center;
}

.staff-figma-shell .client-profile-action-card .client-profile-quick-link__icon--video {
  background: #efe8ff;
  color: #7c3aed;
}

.staff-figma-shell .client-profile-action-card .client-profile-quick-link__icon--audio {
  background: #d8fae8;
  color: #10b981;
}

.staff-figma-shell .client-profile-action-card .client-profile-quick-link__icon--message {
  background: #fff3c4;
  color: #ff8a00;
}

.staff-figma-shell .client-profile-action-card .client-profile-quick-link__icon--ecd {
  background: #dcecff;
  color: #1473ff;
}

.staff-figma-shell .client-profile-action-card .client-profile-quick-link__icon--salesforce {
  background: #d6f9ff;
  color: #06b6d4;
}

.staff-figma-shell .client-profile-action-card .client-profile-quick-link__icon--registration {
  background: #ffe2ec;
  color: #f43f5e;
}

.staff-figma-shell .unknown-caller-person-card h2,
.staff-figma-shell .known-caller-person-card h2 {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-figma-shell .unknown-caller-person-card .clickable-phone-button {
  min-width: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.staff-figma-shell .unknown-caller-person-card .clickable-phone-button__icon {
  display: none;
}

.staff-figma-shell .client-profile-preview-notice {
  display: grid;
  gap: 4px;
  padding: 14px 18px;
  border: 1px solid var(--staff-line-subtle);
  border-radius: 20px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--staff-info-blue-surface) 40%, white 60%) 0%,
    color-mix(in srgb, var(--primary-soft) 28%, white 72%) 100%
  );
  color: var(--muted);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

.staff-figma-shell .client-profile-preview-notice strong {
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 600;
}

.staff-figma-shell .client-profile-preview-notice span:last-child {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.staff-figma-shell .client-profile-preview-notice__eyebrow {
  color: color-mix(in srgb, var(--primary) 64%, var(--text) 36%);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
}

.staff-figma-shell .profile-main,
.staff-figma-shell .profile-side {
  display: grid;
  gap: 18px;
}

.staff-figma-shell .profile-layout .card-title,
.staff-figma-shell .client-profile-workbench .card-title {
  font-weight: 500;
}

.staff-figma-shell .back-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  text-decoration: none;
  font-weight: 700;
  color: color-mix(in srgb, var(--primary) 62%, var(--text) 38%);
}

.staff-figma-shell .client-profile-tab-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 24px;
  height: 100%;
  min-height: 0;
  align-content: stretch;
}

.staff-figma-shell .client-profile-tab-nav {
  display: flex;
  flex-wrap: nowrap;
  align-self: start;
  align-items: stretch;
  gap: 4px;
  overflow: hidden;
  padding: 4px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 88%, white 12%);
  border-radius: 18px;
  background: #ffffff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 10px 26px rgba(15, 23, 42, 0.11);
}

.staff-figma-shell .client-profile-tab-button {
  position: relative;
  display: inline-flex;
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 14px;
  appearance: none;
  background: transparent;
  color: color-mix(in srgb, var(--staff-text, #243649) 70%, var(--staff-text-muted, #728191) 30%);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.08;
  white-space: normal;
  text-align: center;
  cursor: pointer;
  box-shadow: inset 0 -1px 0 #d8e6f5;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.staff-figma-shell .client-profile-tab-button:hover {
  background: color-mix(in srgb, var(--staff-info-blue-surface, #edf5fb) 42%, white 58%);
  border-color: color-mix(in srgb, var(--staff-info-blue-text, #5a7692) 12%, var(--staff-line-subtle, #d9e6e8) 88%);
  color: var(--text);
}

.staff-figma-shell .client-profile-tab-button.is-active {
  background: var(--staff-logo-blue);
  border-color: var(--staff-logo-blue);
  color: #ffffff;
  box-shadow: 0 6px 12px color-mix(in srgb, var(--staff-logo-blue) 14%, transparent);
  font-weight: 600;
}

.staff-figma-shell .client-profile-tab-button:active {
  transform: none;
}

.staff-figma-shell .client-profile-tab-button__label {
  position: relative;
  top: 0.5px;
}

.staff-figma-shell .client-profile-tab-content {
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding: 0 2px 6px;
  overscroll-behavior: contain;
}

.staff-figma-shell .client-profile-tab-panel {
  display: grid;
  gap: 24px;
  align-content: start;
}

.staff-figma-shell .client-profile-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.staff-figma-shell .client-profile-overview-grid--hero {
  grid-template-columns: minmax(240px, 1fr) minmax(0, 3fr);
}

.staff-figma-shell .client-profile-overview-grid--secondary,
.staff-figma-shell .client-profile-system-grid {
  grid-template-columns: minmax(0, 1fr);
}

.staff-figma-shell .client-profile-quick-links-card {
  display: grid;
  align-content: start;
}

.staff-figma-shell .client-profile-quick-links-list {
  display: grid;
  gap: 8px;
}

.staff-figma-shell .client-profile-quick-link {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(217, 226, 235, 0.72);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(31, 47, 70, 0.06);
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.staff-figma-shell button.client-profile-quick-link {
  appearance: none;
}

.staff-figma-shell .client-profile-quick-link:hover {
  border-color: color-mix(in srgb, var(--staff-info-blue-text, #5a7692) 18%, var(--staff-line-subtle, #d9e6e8) 82%);
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(31, 47, 70, 0.1);
}

.staff-figma-shell .client-profile-quick-link:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--primary) 40%, white 60%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, white 84%);
}

.staff-figma-shell .client-profile-quick-link.is-disabled,
.staff-figma-shell .client-profile-quick-link:disabled {
  cursor: not-allowed;
  color: color-mix(in srgb, var(--muted) 60%, white 40%);
  background: rgba(255, 255, 255, 0.62);
  border-color: var(--staff-line-subtle);
  box-shadow: 0 4px 12px rgba(31, 47, 70, 0.04);
}

.staff-figma-shell .client-profile-quick-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: #eef6ff;
  color: #1785e8;
}

.staff-figma-shell .client-profile-quick-link__icon--video {
  background: #eef6ff;
  color: #1785e8;
}

.staff-figma-shell .client-profile-quick-link__icon--audio {
  background: #eef6ff;
  color: #1785e8;
}

.staff-figma-shell .client-profile-quick-link__icon--voip {
  background: #eef6ff;
  color: #1785e8;
}

.staff-figma-shell .client-profile-quick-link__icon--ecd {
  background: #eef6ff;
  color: #1785e8;
}

.staff-figma-shell .client-profile-quick-link__icon--salesforce {
  background: #eef6ff;
  color: #1785e8;
}

.staff-figma-shell .client-profile-quick-link__icon--registration {
  background: #eef6ff;
  color: #1785e8;
}

.staff-figma-shell .client-profile-quick-link__icon--message {
  background: #eef6ff;
  color: #1785e8;
}

.staff-figma-shell .client-profile-quick-link.is-disabled .client-profile-quick-link__icon,
.staff-figma-shell .client-profile-quick-link:disabled .client-profile-quick-link__icon {
  background: color-mix(in srgb, var(--staff-line-subtle) 72%, white 28%);
  color: var(--muted);
}

.staff-figma-shell .client-profile-quick-link__copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.staff-figma-shell .client-profile-quick-link__copy strong {
  color: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.22;
}

.staff-figma-shell .client-profile-quick-link__copy span {
  color: color-mix(in srgb, var(--muted) 82%, var(--text) 18%);
  font-size: 0.72rem;
  line-height: 1.25;
}

.staff-figma-shell .client-profile-system-grid {
  display: grid;
  gap: 14px;
  align-items: start;
}

.staff-figma-shell .client-profile-compact-grid,
.staff-figma-shell .client-profile-summary-list {
  display: grid;
  gap: 8px;
}

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

.staff-figma-shell .client-profile-compact-row,
.staff-figma-shell .client-profile-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--staff-line-subtle) 82%, white 18%);
}

.staff-figma-shell .client-profile-compact-row:last-child,
.staff-figma-shell .client-profile-summary-row:last-child {
  border-bottom: 0;
}

.staff-figma-shell .client-profile-compact-row span,
.staff-figma-shell .client-profile-summary-row span {
  color: var(--muted);
  font-size: 0.8rem;
}

.staff-figma-shell .client-profile-compact-row strong,
.staff-figma-shell .client-profile-summary-row strong {
  color: var(--text);
  font-size: 0.84rem;
  text-align: right;
  font-weight: 500;
}

.clickable-phone-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  max-width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 3px 8px;
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 72%, white 28%);
  color: color-mix(in srgb, var(--staff-primary-strong, #168b84) 76%, var(--staff-text, #243649) 24%);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.25;
  text-align: right;
  vertical-align: middle;
}

.clickable-phone-button:hover,
.clickable-phone-button:focus-visible {
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 46%, var(--staff-primary, #5db85d) 54%);
  color: var(--staff-text, #243649);
  outline: none;
}

.clickable-phone-button__icon {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.clickable-phone-button span {
  color: inherit !important;
  font: inherit;
}

.staff-figma-shell .client-profile-sensitive-value {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.staff-figma-shell .client-profile-sensitive-value--pin {
  flex-wrap: wrap;
}

.staff-figma-shell .client-profile-sensitive-text {
  letter-spacing: 0.08em;
}

.staff-figma-shell .client-profile-pin-regenerate-button {
  min-height: 24px;
  padding: 0 8px;
  border-radius: 9px;
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
}

.staff-figma-shell .client-profile-one-time-pin {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--staff-primary, #5db85d) 58%, var(--staff-line-subtle, #d9e6e8) 42%);
  border-radius: 12px;
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 82%, white 18%);
}

.staff-figma-shell .client-profile-one-time-pin span,
.staff-figma-shell .client-profile-one-time-pin small {
  color: var(--staff-text-muted, #728191);
  font-size: 0.78rem;
}

.staff-figma-shell .client-profile-one-time-pin strong {
  color: var(--staff-text, #243649);
  font-size: 1.32rem;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.staff-figma-shell .client-profile-pin-note {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--staff-line-subtle, #d9e6e8);
  border-radius: 12px;
  background: color-mix(in srgb, var(--staff-info-blue-surface, #edf5fb) 58%, white 42%);
}

.staff-figma-shell .client-profile-pin-note.is-visible {
  border-color: color-mix(in srgb, var(--staff-primary, #5db85d) 48%, var(--staff-line-subtle, #d9e6e8) 52%);
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 72%, white 28%);
}

.staff-figma-shell .client-profile-pin-note strong {
  color: var(--staff-text, #243649);
  font-size: 0.84rem;
}

.staff-figma-shell .client-profile-pin-note span {
  color: var(--staff-text-muted, #728191);
  font-size: 0.78rem;
  line-height: 1.45;
}

.staff-figma-shell .client-profile-compact-row--editable {
  align-items: flex-start;
}

.staff-figma-shell .client-profile-compact-row--full {
  grid-column: 1 / -1;
}

.staff-figma-shell .client-profile-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.staff-figma-shell .client-profile-header-status {
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1;
}

.staff-figma-shell .client-profile-device-section {
  display: grid;
  gap: 8px;
}

.staff-figma-shell .client-profile-device-list {
  display: grid;
  gap: 8px;
}

.staff-figma-shell .client-profile-device-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #e3e9ef;
  border-radius: 10px;
  background: #fbfdff;
}

.staff-figma-shell .client-profile-device-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.staff-figma-shell .client-profile-device-copy strong {
  color: var(--staff-text, #243649);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.25;
}

.staff-figma-shell .client-profile-device-copy span {
  color: var(--staff-text-muted, #728191);
  font-size: 0.74rem;
  line-height: 1.35;
}

.staff-figma-shell .client-profile-device-unlink-button {
  min-height: 24px;
  padding: 0 9px;
  border-radius: 9px;
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
}

.staff-figma-shell .link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--staff-line-subtle);
  border-radius: 12px;
  background: #ffffff;
  color: color-mix(in srgb, var(--primary) 60%, var(--text) 40%);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.staff-figma-shell .link-button:hover {
  background: color-mix(in srgb, var(--primary-soft) 44%, white 56%);
  border-color: color-mix(in srgb, var(--primary) 24%, white 76%);
  color: color-mix(in srgb, var(--primary) 68%, var(--text) 32%);
}

.staff-figma-shell .link-button:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--primary) 40%, white 60%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, white 84%);
}

.staff-figma-shell .link-button:active {
  transform: none;
}

.staff-figma-shell .status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.staff-figma-shell .client-profile-status-strip {
  padding-top: 14px;
  padding-bottom: 14px;
}

.staff-figma-shell .status-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.staff-figma-shell .status-chip,
.staff-figma-shell .type-chip,
.staff-figma-shell .timer-pill,
.staff-figma-shell .tiny-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.staff-figma-shell .status-chip.online {
  background: color-mix(in srgb, var(--low) 12%, white 88%);
  color: color-mix(in srgb, var(--low) 82%, var(--text) 18%);
}

.staff-figma-shell .status-chip.offline {
  background: color-mix(in srgb, var(--staff-call-console-soft-surface) 58%, white 42%);
  color: var(--muted);
}

.staff-figma-shell .client-profile-status-name {
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.staff-figma-shell .type-chip {
  background: color-mix(in srgb, var(--staff-info-blue-surface) 84%, white 16%);
  color: var(--staff-info-blue-text);
}

.staff-figma-shell .type-chip.audio {
  background: color-mix(in srgb, var(--accent) 18%, white 82%);
  color: color-mix(in srgb, var(--high) 82%, var(--text) 18%);
}

.staff-figma-shell .status-meta-line {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.92rem;
}

.staff-figma-shell .timer-pill,
.staff-figma-shell .tiny-pill {
  background: var(--text);
  color: #fff;
  border: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
}

.staff-figma-shell .call-stage {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(191, 219, 254, 0.9);
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.28), transparent 22%),
    linear-gradient(145deg, #0f172a, #1e293b 60%, #111827);
  padding: 24px;
  color: #fff;
  display: grid;
  gap: 18px;
}

.staff-figma-shell .video-actions {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.staff-figma-shell .control-chip {
  min-height: 58px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.45);
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8px;
  font-weight: 700;
  cursor: pointer;
}

.staff-figma-shell .control-chip.icon-only {
  width: 48px;
  min-height: 48px;
  padding: 0;
  border-radius: 999px;
}

.staff-figma-shell .control-chip.is-off {
  background: rgba(71, 85, 105, 0.3);
  color: rgba(255, 255, 255, 0.72);
}

.staff-figma-shell .control-chip.is-active {
  background: rgba(37, 99, 235, 0.5);
  border-color: rgba(147, 197, 253, 0.5);
}

.staff-figma-shell .call-feed {
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background:
    radial-gradient(circle at center, rgba(56, 189, 248, 0.18), transparent 34%),
    rgba(15, 23, 42, 0.7);
  padding: 26px;
  display: grid;
  min-height: 420px;
  align-content: space-between;
}

.staff-figma-shell .mini-preview {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 112px;
  height: 82px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.86);
  border: 2px solid rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.24);
  display: grid;
  place-items: center;
  color: #cbd5e1;
}

.staff-figma-shell .detail-copy {
  display: grid;
  gap: 10px;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  align-content: center;
}

.staff-figma-shell .detail-copy strong {
  color: #0f172a;
}

.staff-figma-shell .detail-copy .item-subtitle {
  color: #64748b;
  font-size: 0.8rem;
}

.staff-figma-shell .preview-copy {
  display: grid;
  gap: 6px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  justify-items: center;
  text-align: center;
  color: #cbd5e1;
}

.staff-figma-shell .preview-copy .item-subtitle,
.staff-figma-shell .preview-copy .svg-icon {
  color: #cbd5e1;
}

.staff-figma-shell .profile-hero {
  display: grid;
  gap: 18px;
}

.staff-figma-shell .profile-summary {
  text-align: center;
  margin-bottom: 10px;
  color: #fff;
}

.staff-figma-shell .avatar-circle {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  background: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  color: #94a3b8;
}

.staff-figma-shell .profile-summary h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 500;
}

.staff-figma-shell .profile-summary p {
  max-width: 560px;
  margin: 0 auto;
  color: rgba(226, 232, 240, 0.92);
  line-height: 1.65;
}

.staff-figma-shell .chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.staff-figma-shell .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid rgba(226, 232, 240, 0.22);
  background: rgba(255, 255, 255, 0.96);
  color: #334155;
  font-size: 0.84rem;
  font-weight: 700;
}

.staff-figma-shell .chip.active {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.22);
}

.staff-figma-shell .video-footer {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.staff-figma-shell .profile-layout .button,
.staff-figma-shell .profile-layout .button-secondary,
.staff-figma-shell .profile-layout .button-ghost,
.staff-figma-shell .profile-layout .button-danger,
.staff-figma-shell .preferences-page-shell .button,
.staff-figma-shell .preferences-page-shell .button-secondary,
.staff-figma-shell .preferences-page-shell .button-ghost,
.staff-figma-shell .preferences-page-shell .button-danger,
.staff-figma-shell .client-profile-workbench .button,
.staff-figma-shell .client-profile-workbench .button-secondary,
.staff-figma-shell .client-profile-workbench .button-ghost,
.staff-figma-shell .client-profile-workbench .button-danger {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  font-size: 0.875rem;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: 160ms ease;
}

.staff-figma-shell .profile-layout .button,
.staff-figma-shell .preferences-page-shell .button,
.staff-figma-shell .client-profile-workbench .button {
  background: linear-gradient(
    180deg,
    var(--staff-button-primary-start) 0%,
    var(--staff-button-primary-end) 100%
  );
  color: #fff;
  box-shadow: 0 10px 22px rgba(93, 184, 93, 0.16);
}

.staff-figma-shell .profile-layout .button:hover,
.staff-figma-shell .preferences-page-shell .button:hover,
.staff-figma-shell .client-profile-workbench .button:hover {
  transform: none;
}

.staff-figma-shell .profile-layout .button-secondary,
.staff-figma-shell .preferences-page-shell .button-secondary,
.staff-figma-shell .client-profile-workbench .button-secondary {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--low) 86%, white 14%) 0%,
    color-mix(in srgb, var(--low) 72%, var(--text) 28%) 100%
  );
  color: #fff;
  box-shadow: 0 10px 22px rgba(79, 184, 157, 0.14);
}

.staff-figma-shell .profile-layout .button-ghost,
.staff-figma-shell .preferences-page-shell .button-ghost,
.staff-figma-shell .client-profile-workbench .button-ghost {
  background: color-mix(in srgb, var(--staff-call-console-soft-surface) 56%, white 44%);
  color: var(--text);
  border: 1px solid var(--staff-line-subtle);
}

.staff-figma-shell .profile-layout .button-danger,
.staff-figma-shell .preferences-page-shell .button-danger,
.staff-figma-shell .client-profile-workbench .button-danger {
  background: linear-gradient(
    180deg,
    var(--staff-communication-end-start) 0%,
    var(--staff-communication-end-end) 100%
  );
  color: #fff;
}

.staff-figma-shell .profile-layout .button:disabled,
.staff-figma-shell .profile-layout .button-secondary:disabled,
.staff-figma-shell .profile-layout .button-ghost:disabled,
.staff-figma-shell .profile-layout .button-danger:disabled,
.staff-figma-shell .preferences-page-shell .button:disabled,
.staff-figma-shell .preferences-page-shell .button-secondary:disabled,
.staff-figma-shell .preferences-page-shell .button-ghost:disabled,
.staff-figma-shell .preferences-page-shell .button-danger:disabled,
.staff-figma-shell .client-profile-workbench .button:disabled,
.staff-figma-shell .client-profile-workbench .button-secondary:disabled,
.staff-figma-shell .client-profile-workbench .button-ghost:disabled,
.staff-figma-shell .client-profile-workbench .button-danger:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}

.staff-figma-shell .client-profile-workbench .client-profile-pin-regenerate-button {
  min-height: 24px;
  padding: 0 8px;
  border-radius: 8px;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 560;
  line-height: 1;
  box-shadow: none;
  white-space: nowrap;
}

.staff-figma-shell .profile-detail-shell {
  display: grid;
  gap: 24px;
}

.staff-figma-shell .profile-detail-title {
  text-align: center;
}

.staff-figma-shell .profile-detail-title h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 1.6rem;
  font-weight: 500;
}

.staff-figma-shell .profile-detail-title p {
  margin: 0;
  color: #64748b;
  font-size: 0.875rem;
}

.staff-figma-shell .profile-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.staff-figma-shell .profile-detail-column,
.staff-figma-shell .profile-detail-section {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.staff-figma-shell .profile-detail-head,
.staff-figma-shell .profile-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.staff-figma-shell .profile-detail-head h3,
.staff-figma-shell .profile-card-head h3,
.staff-figma-shell .contact-card-group h3,
.staff-figma-shell .emergency-header h3 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
}

.staff-figma-shell .profile-field-list {
  display: grid;
}

.staff-figma-shell .profile-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

.staff-figma-shell .profile-field-row:last-child {
  border-bottom: 0;
}

.staff-figma-shell .profile-field-row-top {
  align-items: flex-start;
}

.staff-figma-shell .profile-field-label {
  color: #64748b;
  font-size: 0.875rem;
}

.staff-figma-shell .profile-field-value {
  color: #0f172a;
  font-size: 0.875rem;
  text-align: right;
  line-height: 1.45;
}

.staff-figma-shell .profile-field-value.lockable {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.staff-figma-shell .profile-lock-inline {
  color: #cbd5e1;
  display: inline-flex;
}

.staff-figma-shell .profile-inline-input,
.staff-figma-shell .profile-inline-select,
.staff-figma-shell .attention-field-input,
.staff-figma-shell .contact-card-input,
.staff-figma-shell .profile-list-title-input,
.staff-figma-shell .profile-editable-input {
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 86%, white 14%);
  border-radius: 10px;
  padding: 6px 10px;
  color: var(--staff-text, #243649);
  background: var(--staff-panel-surface, #ffffff);
  font: inherit;
  font-size: 0.84rem;
  text-align: right;
  outline: none;
}

.staff-figma-shell .profile-inline-input:focus,
.staff-figma-shell .profile-inline-select:focus,
.staff-figma-shell .attention-field-input:focus,
.staff-figma-shell .contact-card-input:focus,
.staff-figma-shell .profile-list-title-input:focus,
.staff-figma-shell .profile-editable-input:focus,
.staff-figma-shell .profile-rich-textarea:focus,
.staff-figma-shell .emergency-textarea:focus,
.staff-figma-shell .attention-popup-message textarea:focus,
.staff-figma-shell .subscription-popup-message textarea:focus {
  border-color: color-mix(in srgb, var(--staff-primary-action, #5db85d) 44%, white 56%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--staff-focus-ring, #8edfd8) 28%, white 72%);
}

.staff-figma-shell .profile-inline-input-sm {
  width: 148px;
}

.staff-figma-shell .profile-inline-input-wide {
  width: 220px;
}

.staff-figma-shell .profile-field-input-group {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.staff-figma-shell .profile-inline-input.is-invalid {
  border-color: color-mix(in srgb, var(--staff-danger-tone, #d96e76) 72%, white 28%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--staff-danger-tone, #d96e76) 18%, white 82%);
}

.staff-figma-shell .profile-input-error {
  margin: 0;
  color: color-mix(in srgb, var(--staff-danger-tone, #d96e76) 86%, var(--staff-text, #243649) 14%);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: right;
}

.staff-figma-shell .profile-input-error.is-hidden {
  display: none;
}

.staff-figma-shell .profile-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  max-width: 320px;
}

.staff-figma-shell .profile-chip-button,
.staff-figma-shell .profile-chip-static {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
}

.staff-figma-shell .profile-chip-button {
  border: 0;
  background: color-mix(in srgb, var(--staff-header-surface) 72%, var(--staff-line-subtle) 28%);
  color: var(--muted);
  cursor: pointer;
}

.staff-figma-shell .profile-chip-button.active,
.staff-figma-shell .profile-chip-static {
  background: var(--primary);
  color: #ffffff;
}

.staff-figma-shell .profile-type-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.staff-figma-shell .profile-type-pill.incoming {
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 82%, white 18%);
  color: color-mix(in srgb, var(--staff-success-tone, #4fb89d) 80%, var(--staff-text, #243649) 20%);
}

.staff-figma-shell .profile-type-pill.outgoing {
  background: color-mix(in srgb, var(--staff-info-blue-surface, #edf5fb) 82%, white 18%);
  color: var(--staff-info-blue-text, #5a7692);
}

.staff-figma-shell .profile-attention-row {
  padding-top: 10px;
  display: flex;
  justify-content: center;
}

.staff-figma-shell .profile-attention-button,
.staff-figma-shell .profile-edit-icon {
  border: 0;
  background: transparent;
  color: var(--staff-text-muted, #728191);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.74rem;
  cursor: pointer;
}

.staff-figma-shell .profile-attention-button:hover,
.staff-figma-shell .profile-edit-icon:hover {
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 28%, white 72%);
  color: var(--staff-text, #243649);
}

.staff-figma-shell .profile-save-button {
  border: 0;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  background: linear-gradient(
    180deg,
    var(--staff-button-primary-start, #5db85d) 0%,
    var(--staff-button-primary-end, #5db85d) 100%
  );
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.staff-figma-shell .client-profile-card-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.staff-figma-shell .client-profile-workbench .client-profile-card-actions .button-ghost,
.staff-figma-shell .client-profile-workbench .client-profile-card-actions .profile-save-button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.78rem;
}

.staff-figma-shell .client-profile-edit-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.staff-figma-shell .client-profile-edit-field {
  display: grid;
  gap: 7px;
  color: var(--staff-text-muted, #728191);
  font-size: 0.78rem;
  font-weight: 700;
}

.staff-figma-shell .client-profile-edit-field--full {
  grid-column: 1 / -1;
}

.staff-figma-shell .client-profile-edit-control {
  width: 100%;
  text-align: left;
}

.staff-figma-shell .client-profile-edit-hint {
  color: var(--staff-text-muted, #728191);
  font-size: 0.72rem;
  font-weight: 600;
}

.staff-figma-shell .client-profile-goals-editor,
.staff-figma-shell .client-profile-goals-editor__rows {
  display: grid;
  gap: 12px;
}

.staff-figma-shell .client-profile-goal-editor-row {
  border: 1px solid var(--staff-line-subtle, #e3edf2);
  border-radius: 16px;
  background: color-mix(in srgb, var(--staff-card-header-surface, #f3f4f6) 72%, white 28%);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.staff-figma-shell .client-profile-goal-editor-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.staff-figma-shell .profile-soft-card,
.staff-figma-shell .profile-split-card {
  border-radius: 12px;
  padding: 20px;
  display: grid;
  gap: 14px;
}

.staff-figma-shell .client-info-card {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--staff-primary-action, #5db85d) 14%, var(--staff-line-subtle, #d9e6e8) 86%);
  border-radius: 24px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.99) 0%,
    color-mix(in srgb, var(--staff-info-blue-surface, #edf5fb) 16%, white 84%) 100%
  );
  box-shadow:
    0 14px 30px rgba(86, 125, 151, 0.08),
    0 2px 6px rgba(15, 23, 42, 0.03);
}

.staff-figma-shell .client-info-card__hero {
  padding: 18px 20px;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #f7fbff 100%
  );
  display: grid;
  gap: 8px;
  border-bottom: 1px solid #d8e6f5;
}

.staff-figma-shell .client-info-card__eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.staff-figma-shell .client-info-card__eyebrow {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
}

.staff-figma-shell .client-info-card__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.staff-figma-shell .client-info-card__title {
  margin: 0;
  color: var(--text);
  font-size: 1.7rem;
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.staff-figma-shell .client-info-card__status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
}

.staff-figma-shell .client-info-card__status--active {
  background: #d1fae5;
  color: #065f46;
}

.staff-figma-shell .client-info-card__status--warning {
  background: #fef3c7;
  color: #b45309;
}

.staff-figma-shell .client-info-card__status--muted {
  background: #e2e8f0;
  color: #475569;
}

.staff-figma-shell .client-info-card__intro {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.staff-figma-shell .client-info-card__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  padding: 18px 20px;
}

.staff-figma-shell .client-info-card__item {
  min-width: 0;
}

.staff-figma-shell .client-info-card__item--full {
  grid-column: 1 / -1;
}

.staff-figma-shell .client-info-card__label {
  color: var(--muted);
  font-size: 0.8rem;
}

.staff-figma-shell .client-info-card__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.staff-figma-shell .client-info-card__inline-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.staff-figma-shell .client-info-card__label-stack {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.staff-figma-shell .client-info-card__chip-list {
  justify-content: flex-start;
  max-width: none;
}

.staff-figma-shell .client-info-card__help {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

.staff-figma-shell .client-info-card__value {
  margin-top: 6px;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.4;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.staff-figma-shell .client-info-card__actions {
  display: flex;
  justify-content: flex-start;
  padding: 0 20px 20px;
}

.staff-figma-shell .client-info-card__actions--stack {
  display: grid;
  align-content: start;
  gap: 10px;
  margin: 20px;
  padding: 16px;
  position: relative;
  min-height: 0;
  border: 1px solid #d8e6f5;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(16, 67, 114, 0.06);
}

.staff-figma-shell .client-info-card__action-stack {
  width: 100%;
}

.staff-figma-shell .client-info-card__action-stack .client-profile-quick-link {
  min-height: 58px;
}

.staff-figma-shell .client-info-card__grid--embedded {
  padding: 0;
}

.staff-figma-shell .client-info-card__match-overlay {
  position: absolute;
  inset: 10px 20px 20px;
  z-index: 2;
  display: grid;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: rgba(248, 250, 252, 0.82);
  backdrop-filter: blur(4px);
}

.staff-figma-shell .client-info-card__match-panel {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.staff-figma-shell .client-info-card__match-eyebrow {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(14, 165, 233, 0.12);
  color: #0369a1;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.staff-figma-shell .client-info-card__match-panel h3 {
  margin: 0;
  color: #0f172a;
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.35;
}

.staff-figma-shell .client-info-card__match-panel p {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.45;
}

.staff-figma-shell .client-info-card__match-summary,
.staff-figma-shell .client-info-card__match-choices {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.staff-figma-shell .client-info-card__match-summary article {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  padding: 12px;
  background: #f8fafc;
}

.staff-figma-shell .client-info-card__match-summary span {
  display: block;
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 400;
}

.staff-figma-shell .client-info-card__match-summary strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 400;
}

.staff-figma-shell .client-info-card__match-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.staff-figma-shell .client-info-card__match-actions .call-match-modal__primary,
.staff-figma-shell .client-info-card__match-actions .call-match-modal__secondary {
  padding: 0.68rem 0.92rem;
  font-weight: 500;
}

.staff-figma-shell .client-info-card__match-actions .call-match-modal__primary {
  background: #334155;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
}

.staff-figma-shell .client-info-card__match-actions .call-match-modal__secondary {
  background: rgba(248, 250, 252, 0.9);
  color: #475569;
}

.staff-figma-shell .client-info-card__match-choices .call-match-choice {
  border-radius: 16px;
  padding: 12px;
  background: #f8fafc;
}

.staff-figma-shell .client-info-card__match-choices .call-match-choice strong {
  display: block;
  margin-top: 0;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 400;
}

.staff-figma-shell .client-info-card__match-choices .call-match-choice span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.4;
}

.staff-figma-shell .client-profile-workbench .profile-soft-card,
.staff-figma-shell .client-profile-workbench .profile-split-card,
.staff-figma-shell .client-profile-workbench .client-profile-side-card,
.staff-figma-shell .client-profile-workbench .accordion,
.staff-figma-shell .client-profile-workbench .tech-widget {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 88%, white 12%);
  border-radius: 24px;
  background: #ffffff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 14px 30px rgba(15, 23, 42, 0.075);
}

.staff-figma-shell .client-profile-workbench .profile-soft-card,
.staff-figma-shell .client-profile-workbench .profile-split-card,
.staff-figma-shell .client-profile-workbench .client-profile-side-card {
  padding: 28px 30px;
  display: grid;
  gap: 24px;
}

.staff-figma-shell .client-profile-workbench .client-profile-side-card--push {
  overflow: visible;
  position: relative;
  z-index: 3;
}

.staff-figma-shell .client-profile-workbench .profile-soft-card > .profile-card-head,
.staff-figma-shell .client-profile-workbench .profile-soft-card > .card-header,
.staff-figma-shell .client-profile-workbench .profile-split-card > .profile-card-head,
.staff-figma-shell .client-profile-workbench .client-profile-side-card > .card-header,
.staff-figma-shell .client-profile-workbench .tech-widget > .card-header {
  margin: 0;
  padding: 0 0 12px;
  background: transparent;
  border-bottom: 1px solid #e3e9ef;
}

.staff-figma-shell .client-profile-workbench .accordion-toggle,
.staff-figma-shell .client-profile-workbench .tech-widget-toggle {
  padding: 16px 18px 14px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--staff-info-blue-surface, #edf5fb) 64%, white 36%) 0%,
    color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 50%, white 50%) 56%,
    color-mix(in srgb, var(--staff-info-blue-surface, #edf5fb) 40%, white 60%) 100%
  );
  border-bottom: 1px solid color-mix(in srgb, var(--staff-primary-action, #5db85d) 10%, var(--staff-line-subtle, #d9e6e8) 90%);
}

.staff-figma-shell .client-profile-workbench .profile-card-head,
.staff-figma-shell .client-profile-workbench .card-header,
.staff-figma-shell .client-profile-workbench .accordion-title {
  align-items: flex-start;
}

.staff-figma-shell .client-profile-workbench .profile-card-head .table-subtitle,
.staff-figma-shell .client-profile-workbench .card-header .table-subtitle {
  display: none;
}

.staff-figma-shell .client-profile-workbench .profile-soft-card .card-title,
.staff-figma-shell .client-profile-workbench .profile-split-card .card-title,
.staff-figma-shell .client-profile-workbench .client-profile-side-card .card-title,
.staff-figma-shell .client-profile-workbench .tech-widget .card-title,
.staff-figma-shell .client-profile-workbench .accordion-title strong {
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.18;
}

.staff-figma-shell .client-profile-workbench .accordion-title small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.staff-figma-shell .profile-soft-card {
  border: 1px solid var(--staff-line-subtle);
  background: var(--panel);
}

.staff-figma-shell .profile-split-card {
  border: 1px solid var(--staff-line-subtle);
  background: var(--panel);
  padding-top: 24px;
  gap: 16px;
}

.staff-figma-shell .profile-rich-copy,
.staff-figma-shell .emergency-copy {
  margin: 0;
  color: var(--text);
  font-size: 0.83rem;
  line-height: 1.6;
}

.staff-figma-shell .profile-rich-textarea,
.staff-figma-shell .emergency-textarea,
.staff-figma-shell .subscription-popup-message textarea,
.staff-figma-shell .attention-popup-message textarea {
  width: 100%;
  min-height: 110px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 86%, white 14%);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--staff-text, #243649);
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  background: var(--staff-panel-surface, #ffffff);
}

.staff-figma-shell .profile-two-column-content,
.staff-figma-shell .contact-emergency-grid,
.staff-figma-shell .attention-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.staff-figma-shell .client-profile-appointments-card {
  min-height: 100%;
}

.staff-figma-shell .client-profile-appointment-goals-card {
  gap: 12px;
}

.staff-figma-shell .client-profile-appointment-goals-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.staff-figma-shell .client-profile-appointment-goals-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--staff-text, #243649);
  font-size: 1rem;
}

.staff-figma-shell .client-profile-appointment-goals-table th {
  padding: 0 0 18px;
  color: var(--staff-text-muted, #728191);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
}

.staff-figma-shell .client-profile-appointment-goals-table td {
  padding: 22px 0;
  border-top: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 78%, white 22%);
  background: transparent;
  line-height: 1.5;
  vertical-align: top;
}

.staff-figma-shell .client-profile-appointment-goals-table tr.is-unlinked td {
  color: var(--staff-text-muted, #728191);
}

.staff-figma-shell .client-profile-appointment-goals-table td:first-child {
  width: 28%;
}

.staff-figma-shell .client-profile-appointment-goals-table td:nth-child(2) {
  width: 18%;
  white-space: nowrap;
}

.staff-figma-shell .client-profile-appointment-goals-table td:last-child {
  width: 32%;
}

.staff-figma-shell .client-profile-series-list {
  display: grid;
  gap: 12px;
}

.staff-figma-shell .client-profile-series-row {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--staff-line-subtle);
  border-radius: 16px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--staff-call-console-soft-surface) 46%, white 54%) 0%,
    #ffffff 100%
  );
}

.staff-figma-shell .client-profile-series-row--button {
  width: 100%;
  border: 1px solid var(--staff-line-subtle);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.staff-figma-shell .client-profile-series-row--button:hover,
.staff-figma-shell .client-profile-series-row--button:focus-visible {
  border-color: color-mix(in srgb, var(--staff-primary-action, #5db85d) 42%, var(--staff-line-subtle) 58%);
  box-shadow: 0 14px 28px rgba(36, 54, 73, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.staff-figma-shell .client-profile-series-row__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.staff-figma-shell .client-profile-series-row__title-block {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.staff-figma-shell .client-profile-series-row__title-block h4 {
  margin: 0;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.35;
}

.staff-figma-shell .client-profile-series-row__title-block p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.staff-figma-shell .client-profile-series-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.staff-figma-shell .client-profile-series-status.is-scheduled {
  background: color-mix(in srgb, var(--staff-info-blue-surface) 76%, white 24%);
  color: var(--staff-info-blue-text);
}

.staff-figma-shell .client-profile-series-status.is-waiting {
  background: color-mix(in srgb, var(--accent) 16%, white 84%);
  color: color-mix(in srgb, var(--high) 84%, var(--text) 16%);
}

.staff-figma-shell .client-profile-series-status.is-claimed {
  background: color-mix(in srgb, var(--primary-soft) 74%, white 26%);
  color: color-mix(in srgb, var(--primary) 64%, var(--text) 36%);
}

.staff-figma-shell .client-profile-series-status.is-callback {
  background: color-mix(in srgb, var(--accent) 18%, white 82%);
  color: color-mix(in srgb, var(--accent) 86%, var(--text) 14%);
}

.staff-figma-shell .client-profile-series-status.is-progress {
  background: color-mix(in srgb, var(--low) 14%, white 86%);
  color: color-mix(in srgb, var(--low) 82%, var(--text) 18%);
}

.staff-figma-shell .client-profile-series-status.is-completed {
  background: color-mix(in srgb, var(--staff-call-console-soft-surface) 70%, white 30%);
  color: var(--text);
}

.staff-figma-shell .client-profile-series-status.is-cancelled {
  background: color-mix(in srgb, var(--urgent) 14%, white 86%);
  color: color-mix(in srgb, var(--urgent) 84%, var(--text) 16%);
}

.staff-figma-shell .client-profile-series-meta-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.staff-figma-shell .client-profile-series-row__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.staff-figma-shell .client-profile-series-meta {
  display: grid;
  gap: 4px;
}

.staff-figma-shell .client-profile-series-meta span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.staff-figma-shell .client-profile-series-meta strong {
  color: var(--text);
  font-size: 0.84rem;
  line-height: 1.4;
}

.staff-figma-shell .client-profile-series-channel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.staff-figma-shell .client-profile-series-delete-button {
  color: color-mix(in srgb, var(--urgent) 84%, var(--text) 16%);
}

.staff-figma-shell .client-profile-series-delete-button:hover {
  border-color: color-mix(in srgb, var(--urgent) 24%, white 76%);
  background: color-mix(in srgb, var(--urgent) 10%, white 90%);
  color: color-mix(in srgb, var(--urgent) 88%, var(--text) 12%);
}

.staff-figma-shell .profile-two-column-content.compact {
  gap: 16px;
}

.staff-figma-shell .profile-list-column,
.staff-figma-shell .attention-warning-content {
  min-width: 0;
  display: grid;
  align-content: start;
}

.staff-figma-shell .profile-list-heading {
  margin: 0 0 6px;
  color: var(--staff-text, #243649);
  font-size: 0.84rem;
  font-weight: 600;
}

.staff-figma-shell .profile-list-heading.do {
  color: color-mix(in srgb, var(--staff-success-tone, #4fb89d) 80%, var(--staff-text, #243649) 20%);
}

.staff-figma-shell .profile-list-heading.dont {
  color: color-mix(in srgb, var(--staff-danger-tone, #d96e76) 82%, var(--staff-text, #243649) 18%);
}

.staff-figma-shell .client-profile-goal-list {
  display: grid;
  gap: 12px;
}

.staff-figma-shell .client-profile-goal-card {
  border: 1px solid var(--staff-line-subtle, #e3edf2);
  border-radius: 16px;
  background: var(--panel, #fff);
  padding: 14px 16px;
  display: grid;
  gap: 6px;
}

.staff-figma-shell .client-profile-goal-card h3 {
  margin: 0;
  color: var(--staff-text, #243649);
  font-size: 0.96rem;
  font-weight: 700;
}

.staff-figma-shell .client-profile-goal-card p {
  margin: 0;
  color: var(--staff-text-muted, #728191);
  line-height: 1.55;
}

.staff-figma-shell .profile-editable-list,
.staff-figma-shell .contact-card-list,
.staff-figma-shell .stack {
  display: grid;
  gap: 10px;
}

.staff-figma-shell .profile-editable-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.staff-figma-shell .profile-row-remove,
.staff-figma-shell .attention-chip-remove,
.staff-figma-shell .contact-card-remove,
.staff-figma-shell .contact-eye-button,
.staff-figma-shell .popup-close,
.staff-figma-shell .push-history-clear {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.staff-figma-shell .profile-list-prefix {
  flex-shrink: 0;
  color: var(--staff-text, #243649);
  font-size: 0.95rem;
  line-height: 1;
}

.staff-figma-shell .profile-list-prefix.do {
  color: color-mix(in srgb, var(--staff-success-tone, #4fb89d) 80%, var(--staff-text, #243649) 20%);
}

.staff-figma-shell .profile-list-prefix.dont {
  color: color-mix(in srgb, var(--staff-danger-tone, #d96e76) 82%, var(--staff-text, #243649) 18%);
}

.staff-figma-shell .profile-list-copy {
  margin: 0;
  color: var(--staff-text, #243649);
  font-size: 0.875rem;
  line-height: 1.6;
}

.staff-figma-shell .section-edit-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.staff-figma-shell .attention-warning-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.staff-figma-shell .attention-warning-icon {
  color: color-mix(in srgb, var(--staff-warning-tone, #d79b56) 86%, var(--staff-text, #243649) 14%);
  margin-top: 6px;
}

.staff-figma-shell .attention-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.staff-figma-shell .attention-chip-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--staff-accent-warm, #edb36f) 16%, white 84%);
  color: color-mix(in srgb, var(--staff-warning-tone, #d79b56) 84%, var(--staff-text, #243649) 16%);
  font-size: 0.76rem;
  font-weight: 600;
}

.staff-figma-shell .attention-chip-input {
  width: 110px;
  border-color: color-mix(in srgb, var(--staff-accent-warm, #edb36f) 48%, white 52%);
}

.staff-figma-shell .inline-add-button {
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: var(--staff-text-muted, #728191);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.83rem;
  cursor: pointer;
}

.staff-figma-shell .attention-field-row,
.staff-figma-shell .contact-card-row,
.staff-figma-shell .client-profile-label-row,
.staff-figma-shell .wait-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 72%, white 28%);
}

.staff-figma-shell .attention-field-label,
.staff-figma-shell .contact-card-label,
.staff-figma-shell .wait-card-label {
  color: var(--staff-text-muted, #728191);
  font-size: 0.875rem;
}

.staff-figma-shell .attention-field-value,
.staff-figma-shell .contact-card-value,
.staff-figma-shell .wait-card-value {
  color: var(--staff-text, #243649);
  font-size: 0.875rem;
  text-align: right;
}

.staff-figma-shell .contact-card {
  position: relative;
  padding: 14px 14px 12px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 76%, white 24%);
  background: var(--staff-panel-surface, #ffffff);
  display: grid;
  gap: 2px;
}

.staff-figma-shell .contact-card-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  color: color-mix(in srgb, var(--staff-danger-tone, #d96e76) 78%, white 22%);
}

.staff-figma-shell .contact-card-row.with-divider {
  border-bottom: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 72%, white 28%);
}

.staff-figma-shell .contact-card-sensitive {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.staff-figma-shell .contact-eye-button {
  color: var(--staff-text-muted, #728191);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    opacity 160ms ease;
}

.staff-figma-shell .contact-eye-button svg {
  width: 15px;
  height: 15px;
}

.staff-figma-shell .contact-eye-button:hover:not([disabled]),
.staff-figma-shell .contact-eye-button:focus-visible:not([disabled]) {
  background: color-mix(in srgb, var(--staff-accent-soft, #7cb7d9) 18%, white 82%);
  color: var(--staff-text, #243649);
  outline: none;
}

.staff-figma-shell .contact-eye-button[disabled] {
  cursor: default;
  opacity: 0.5;
}

.staff-figma-shell .contact-card-input-name {
  width: 176px;
}

.staff-figma-shell .emergency-section {
  border-top: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 72%, white 28%);
  padding-top: 20px;
}

.staff-figma-shell .emergency-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.staff-figma-shell .wait-card-rows {
  display: grid;
}

.staff-figma-shell .wait-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.staff-figma-shell .tech-widget {
  padding: 0;
  overflow: hidden;
}

.staff-figma-shell .client-profile-side-card__body {
  padding: 16px 0 0;
  display: grid;
  gap: 16px;
}

.staff-figma-shell .push-compose-widget {
  display: grid;
  gap: 16px;
}

.staff-figma-shell .push-compose-widget__summary {
  display: grid;
  gap: 8px;
}

.staff-figma-shell .push-compose-widget__summary-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.staff-figma-shell .push-compose-widget__summary-pill,
.staff-figma-shell .push-compose-widget__preview-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.staff-figma-shell .push-compose-widget__summary-pill {
  background: color-mix(in srgb, var(--staff-info-blue-surface, #edf5fb) 84%, white 16%);
  color: color-mix(in srgb, var(--staff-info-blue-text, #5a7692) 84%, var(--staff-text, #243649) 16%);
}

.staff-figma-shell .push-compose-widget__summary-meta {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.staff-figma-shell .push-compose-widget__summary-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.staff-figma-shell .push-compose-widget__template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.staff-figma-shell .push-compose-widget__template {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 80%, white 20%);
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--staff-panel-surface, #ffffff) 92%, white 8%) 0%,
    color-mix(in srgb, var(--staff-tool-surface, #f3f8f9) 14%, white 86%) 100%
  );
  padding: 16px;
  text-align: left;
  display: grid;
  gap: 10px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease,
    background-color 160ms ease;
}

.staff-figma-shell .push-compose-widget__template:hover {
  transform: translateY(-1px);
}

.staff-figma-shell .push-compose-widget__template:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--primary) 40%, white 60%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, white 88%);
}

.staff-figma-shell .push-compose-widget__template.is-selected {
  border-width: 1px;
  box-shadow:
    0 12px 26px rgba(15, 23, 42, 0.06),
    inset 0 0 0 1px color-mix(in srgb, var(--primary) 22%, white 78%);
}

.staff-figma-shell .push-compose-widget__template:disabled {
  opacity: 0.72;
  cursor: progress;
  transform: none;
}

.staff-figma-shell .push-compose-widget__template-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.staff-figma-shell .push-compose-widget__template-title {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
}

.staff-figma-shell .push-compose-widget__template-state {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.7);
  color: color-mix(in srgb, var(--muted) 78%, white 22%);
}

.staff-figma-shell .push-compose-widget__template.is-selected .push-compose-widget__template-state {
  background: rgba(255, 255, 255, 0.94);
  color: color-mix(in srgb, var(--primary) 60%, var(--text) 40%);
}

.staff-figma-shell .push-compose-widget__template-copy {
  color: var(--text);
  font-size: 0.84rem;
  line-height: 1.55;
}

.staff-figma-shell .push-compose-widget__template-meta {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.staff-figma-shell .push-compose-widget__template--blue {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--staff-info-blue-surface, #edf5fb) 34%, white 66%) 0%,
    #ffffff 100%
  );
}

.staff-figma-shell .push-compose-widget__template--emerald,
.staff-figma-shell .push-compose-widget__template--success {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 38%, white 62%) 0%,
    #ffffff 100%
  );
}

.staff-figma-shell .push-compose-widget__template--orange,
.staff-figma-shell .push-compose-widget__template--yellow {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--staff-accent-warm, #edb36f) 22%, white 78%) 0%,
    #ffffff 100%
  );
}

.staff-figma-shell .push-compose-widget__template--rose {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--staff-danger-tone, #d96e76) 14%, white 86%) 0%,
    #ffffff 100%
  );
}

.staff-figma-shell .push-compose-widget__template--violet,
.staff-figma-shell .push-compose-widget__template--purple {
  background: linear-gradient(
    180deg,
    rgba(237, 233, 254, 0.88) 0%,
    #ffffff 100%
  );
}

.staff-figma-shell .push-compose-widget__template--neutral {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--staff-tool-surface, #f3f8f9) 88%, white 12%) 0%,
    #ffffff 100%
  );
}

.staff-figma-shell .push-compose-widget__preview {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 76%, white 24%);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--staff-panel-surface, #ffffff) 90%, white 10%) 0%,
    color-mix(in srgb, var(--staff-tool-surface, #f3f8f9) 18%, white 82%) 100%
  );
}

.staff-figma-shell .push-compose-widget__preview--blue {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--staff-info-blue-surface, #edf5fb) 28%, white 72%) 0%,
    #ffffff 100%
  );
}

.staff-figma-shell .push-compose-widget__preview--emerald,
.staff-figma-shell .push-compose-widget__preview--success {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 34%, white 66%) 0%,
    #ffffff 100%
  );
}

.staff-figma-shell .push-compose-widget__preview--orange,
.staff-figma-shell .push-compose-widget__preview--yellow {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--staff-accent-warm, #edb36f) 22%, white 78%) 0%,
    #ffffff 100%
  );
}

.staff-figma-shell .push-compose-widget__preview--rose {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--staff-danger-tone, #d96e76) 12%, white 88%) 0%,
    #ffffff 100%
  );
}

.staff-figma-shell .push-compose-widget__preview--violet,
.staff-figma-shell .push-compose-widget__preview--purple {
  background: linear-gradient(180deg, rgba(237, 233, 254, 0.82) 0%, #ffffff 100%);
}

.staff-figma-shell .push-compose-widget__preview--neutral {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--staff-tool-surface, #f3f8f9) 86%, white 14%) 0%,
    #ffffff 100%
  );
}

.staff-figma-shell .push-compose-widget__preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.staff-figma-shell .push-compose-widget__preview-head .profile-list-heading {
  margin-bottom: 4px;
}

.staff-figma-shell .push-compose-widget__preview-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.staff-figma-shell .push-compose-widget__preview-status {
  background: rgba(255, 255, 255, 0.9);
  color: color-mix(in srgb, var(--primary) 58%, var(--text) 42%);
}

.staff-figma-shell .push-compose-widget__preview-message {
  margin: 0;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 80%, white 20%);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

.staff-figma-shell .push-compose-widget__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.staff-figma-shell .tech-widget-toggle {
  width: 100%;
  border: 0;
  background: linear-gradient(
    180deg,
    var(--staff-toolbar-inner-start) 0%,
    var(--staff-toolbar-inner-end) 100%
  );
  padding: 20px 24px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.staff-figma-shell .tech-widget-toggle:hover {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--staff-toolbar-inner-start) 92%, #fff 8%) 0%,
    color-mix(in srgb, var(--staff-toolbar-inner-end) 92%, #fff 8%) 100%
  );
}

.staff-figma-shell .tech-widget-toggle-icon {
  width: 1rem;
  height: 1rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.staff-figma-shell .tech-widget-body {
  padding: 0 24px 24px;
  display: grid;
  gap: 18px;
}

.staff-figma-shell .tech-widget-group {
  display: grid;
  gap: 4px;
}

.staff-figma-shell .tech-widget-label {
  margin: 0;
  color: color-mix(in srgb, var(--staff-text-muted, #728191) 68%, white 32%);
  font-size: 0.75rem;
}

.staff-figma-shell .tech-widget-value {
  margin: 0;
  color: var(--staff-text, #243649);
  font-size: 0.9rem;
}

.staff-figma-shell .tech-widget-subtle {
  margin: 0;
  color: var(--staff-text-muted, #728191);
  font-size: 0.75rem;
}

.staff-figma-shell .tech-widget-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--staff-text, #243649);
  font-size: 0.9rem;
}

.staff-figma-shell .tech-widget-check .svg-icon {
  color: color-mix(in srgb, var(--staff-success-tone, #4fb89d) 82%, var(--staff-text, #243649) 18%);
}

.staff-figma-shell .tech-widget-check.failed {
  color: color-mix(in srgb, var(--staff-danger-tone, #d96e76) 82%, var(--staff-text, #243649) 18%);
}

.staff-figma-shell .tech-widget-check.failed .svg-icon {
  color: color-mix(in srgb, var(--staff-danger-tone, #d96e76) 88%, white 12%);
}

.staff-figma-shell .tech-widget-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 72%, white 28%);
}

.staff-figma-shell .tech-widget-test-button,
.staff-figma-shell .tech-widget-logboek-button {
  border-radius: 12px;
}

.staff-figma-shell .tech-widget-test-button {
  flex: 1 1 auto;
  border: 0;
  min-height: 48px;
  background: color-mix(in srgb, var(--staff-accent-warm, #edb36f) 16%, white 84%);
  color: color-mix(in srgb, var(--staff-warning-tone, #d79b56) 84%, var(--staff-text, #243649) 16%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.staff-figma-shell .tech-widget-test-button:hover {
  background: color-mix(in srgb, var(--staff-accent-warm, #edb36f) 22%, white 78%);
}

.staff-figma-shell .tech-widget-test-button:disabled {
  cursor: progress;
  opacity: 0.82;
  transform: none;
}

.staff-figma-shell .tech-widget-logboek-button {
  border: 0;
  background: transparent;
  color: var(--staff-info-blue-text, #5a7692);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0 8px;
}

.staff-figma-shell .tech-widget-logboek-button:hover {
  color: color-mix(in srgb, var(--staff-info-blue-text, #5a7692) 82%, var(--staff-text, #243649) 18%);
}

.staff-figma-shell .log-list {
  display: grid;
  gap: 12px;
}

.staff-figma-shell .client-profile-workbench .client-profile-logbook-card {
  gap: 14px;
  padding: 18px 20px;
}

.staff-figma-shell .client-profile-logbook-sections {
  display: grid;
  gap: 14px;
}

.staff-figma-shell .client-profile-logbook-sections .profile-list-heading {
  margin: 0 0 5px;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.staff-figma-shell .client-profile-logbook-table-shell {
  overflow: hidden;
  border: 1px solid #d8e1ea;
  border-radius: 10px;
  background: #ffffff;
}

.staff-figma-shell .client-profile-logbook-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.staff-figma-shell .client-profile-logbook-table th,
.staff-figma-shell .client-profile-logbook-table td {
  padding: 7px 10px;
  border-bottom: 1px solid #e3e9ef;
  color: #102033;
  font-size: 0.78rem;
  line-height: 1.25;
  text-align: left;
  vertical-align: top;
}

.staff-figma-shell .client-profile-logbook-table th {
  background: #f8fafc;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.staff-figma-shell .client-profile-logbook-table tbody tr:last-child td {
  border-bottom: 0;
}

.staff-figma-shell .client-profile-logbook-table tbody tr:hover td {
  background: #f8fbff;
}

.staff-figma-shell .client-profile-logbook-table th:nth-child(1),
.staff-figma-shell .client-profile-logbook-table td:nth-child(1) {
  width: 82px;
  color: #475569;
}

.staff-figma-shell .client-profile-logbook-table th:nth-child(2),
.staff-figma-shell .client-profile-logbook-table td:nth-child(2) {
  width: 18%;
  font-weight: 600;
}

.staff-figma-shell .client-profile-logbook-table th:nth-child(3),
.staff-figma-shell .client-profile-logbook-table td:nth-child(3) {
  width: 14%;
  color: #475569;
}

.staff-figma-shell .client-profile-logbook-table th:nth-child(5),
.staff-figma-shell .client-profile-logbook-table td:nth-child(5) {
  width: 92px;
  color: #475569;
}

.staff-figma-shell .client-profile-logbook-table td:nth-child(4) {
  color: #334155;
  overflow-wrap: anywhere;
}

.staff-figma-shell .client-profile-logbook-date,
.staff-figma-shell .client-profile-logbook-time {
  display: block;
  white-space: nowrap;
}

.staff-figma-shell .client-profile-logbook-time {
  margin-top: 2px;
  color: #64748b;
  font-size: 0.72rem;
}

.staff-figma-shell .log-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 18%, white 82%);
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 80%, white 20%);
}

@media (max-width: 1200px) {
  .staff-figma-shell .client-profile-profile-layout {
    grid-template-columns: 1fr;
  }

  .staff-figma-shell .client-profile-sidebar--summary {
    margin-top: 0;
  }

  .staff-figma-shell .client-profile-tab-nav {
    padding: 0 8px;
  }

  .staff-figma-shell .client-profile-series-meta-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .staff-figma-shell .client-profile-tab-nav {
    gap: 5px;
    padding: 0 6px;
  }

  .staff-figma-shell .client-profile-tab-button {
    gap: 4px;
    padding: 0 6px;
    font-size: 0.78rem;
  }

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

  .staff-figma-shell .client-profile-label-row,
  .staff-figma-shell .wait-card-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

.staff-figma-shell .accordion {
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 82%, white 18%);
  border-radius: 28px;
  overflow: hidden;
  background: var(--staff-panel-surface, #ffffff);
}

.staff-figma-shell .accordion-toggle {
  width: 100%;
  border: 0;
  background: linear-gradient(
    180deg,
    var(--staff-toolbar-inner-start, #f4fbfb) 0%,
    var(--staff-toolbar-inner-end, #eef7f8) 100%
  );
  padding: 20px 24px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  color: var(--staff-text, #243649);
  font-weight: 500;
}

.staff-figma-shell .accordion-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.staff-figma-shell .accordion-title strong {
  display: block;
  font-size: 0.96rem;
  font-weight: 500;
}

.staff-figma-shell .accordion-title small {
  display: block;
  margin-top: 4px;
  color: var(--staff-text-muted, #728191);
  font-size: 0.78rem;
}

.staff-figma-shell .accordion-chevron {
  transition: transform 160ms ease;
}

.staff-figma-shell .accordion-chevron.is-open {
  transform: rotate(180deg);
}

.staff-figma-shell .accordion-body {
  padding: 22px;
  border-top: 1px solid #f1f5f9;
}

@media (max-width: 1120px) {
  .staff-figma-shell .profile-layout,
  .staff-figma-shell .call-feed,
  .staff-figma-shell .profile-two-column-content,
  .staff-figma-shell .contact-emergency-grid,
  .staff-figma-shell .attention-field-grid,
  .staff-figma-shell .profile-detail-grid {
    grid-template-columns: 1fr;
  }

  .staff-figma-shell .video-actions {
    position: static;
    padding: 18px 18px 0;
  }
}

.staff-figma-shell .statistics-page {
  display: grid;
  gap: 22px;
}

.staff-figma-shell .statistics-page .card-subtitle {
  margin: 0;
  color: var(--staff-text-muted, #728191);
  font-size: 0.86rem;
  line-height: 1.55;
}

.staff-figma-shell .statistics-filter-panel {
  overflow: hidden;
  padding: 0;
}

.staff-figma-shell .statistics-filter-bar {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 18%, white 82%) 100%
  );
}

.staff-figma-shell .statistics-filter-copy {
  display: grid;
  gap: 0;
}

.staff-figma-shell .statistics-filter-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.staff-figma-shell .statistics-filter-heading-copy {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.staff-figma-shell .statistics-filter-heading-copy .card-title {
  font-size: 1rem;
}

.staff-figma-shell .statistics-filter-heading-copy .card-subtitle {
  max-width: none;
  font-size: 0.78rem;
  white-space: nowrap;
}

.staff-figma-shell .statistics-filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 14px;
  align-items: end;
}

.staff-figma-shell .statistics-filter-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.staff-figma-shell .statistics-filter-field {
  display: grid;
  gap: 4px;
}

.staff-figma-shell .statistics-filter-field span {
  color: var(--staff-text-muted, #728191);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.staff-figma-shell .statistics-filter-select-shell {
  position: relative;
}

.staff-figma-shell .statistics-filter-field select {
  width: 100%;
  min-height: 38px;
  padding: 0 34px 0 12px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 80%, white 20%);
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 14%, white 86%) 100%
  );
  color: var(--staff-text, #243649);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  appearance: none;
}

.staff-figma-shell .statistics-filter-field select:focus,
.staff-figma-shell .statistics-filter-button:focus {
  outline: 0;
  border-color: color-mix(in srgb, var(--staff-primary-action, #5db85d) 38%, white 62%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--staff-focus-ring, #8edfd8) 26%, white 74%);
}

.staff-figma-shell .statistics-filter-select-icon {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  color: color-mix(in srgb, var(--staff-text-muted, #728191) 72%, white 28%);
  font-size: 0.95rem;
  pointer-events: none;
}

.staff-figma-shell .statistics-filter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 8px;
  width: auto;
  padding-top: 0;
}

.staff-figma-shell .statistics-filter-button {
  width: auto;
  min-width: 112px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 78%, white 22%);
  font-size: 0.78rem;
  font-weight: 600;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease,
    color 0.2s ease;
}

.staff-figma-shell .statistics-filter-button:hover {
  border-color: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 40%, var(--staff-line-subtle, #d9e6e8) 60%);
}

.staff-figma-shell .statistics-filter-button--secondary {
  min-width: 148px;
  background: color-mix(in srgb, var(--staff-panel-surface, #ffffff) 84%, var(--staff-tool-surface, #f3f8f9) 16%);
  color: var(--staff-text-muted, #728191);
}

.staff-figma-shell .statistics-filter-button--primary {
  border-color: transparent;
  background: linear-gradient(
    180deg,
    var(--staff-button-primary-start, #5db85d) 0%,
    var(--staff-button-primary-end, #5db85d) 100%
  );
  color: #ffffff;
  box-shadow: 0 14px 24px rgba(93, 184, 93, 0.22);
}

.staff-figma-shell .statistics-filter-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  margin: 0;
  color: var(--staff-text-muted, #728191);
  font-size: 0.79rem;
  font-weight: 600;
  line-height: 1.55;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.staff-figma-shell .statistics-filter-link:hover {
  color: var(--staff-info-blue-text, #5a7692);
}

.staff-figma-shell .statistics-filter-link:focus {
  outline: 0;
  color: var(--staff-info-blue-text, #5a7692);
}

.staff-figma-shell .statistics-inline-feedback {
  flex: 0 0 auto;
  margin: 0;
  padding: 2px 0 0;
  border: 0;
  background: transparent;
  color: var(--staff-text-muted, #728191);
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: right;
  white-space: nowrap;
}

.staff-figma-shell .statistics-inline-feedback.is-success {
  background: transparent;
  color: color-mix(in srgb, var(--staff-success-tone, #4fb89d) 78%, var(--staff-text, #243649) 22%);
}

.staff-figma-shell .statistics-inline-feedback.is-error {
  background: transparent;
  color: color-mix(in srgb, var(--staff-danger-tone, #d96e76) 86%, var(--staff-text, #243649) 14%);
}

.staff-figma-shell .statistics-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.staff-figma-shell .statistics-card {
  display: grid;
  gap: 18px;
  min-height: 100%;
  border-radius: 22px;
  border-color: color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 82%, white 18%);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 10%, white 90%) 100%
  );
  box-shadow: 0 14px 30px rgba(36, 54, 73, 0.05);
}

.staff-figma-shell .statistics-card--compact {
  gap: 12px;
}

.staff-figma-shell .statistics-kpi-card {
  min-height: 136px;
  gap: 14px;
  padding: 20px;
  border-radius: 18px;
}

.staff-figma-shell .statistics-kpi-card--accent {
  border-color: color-mix(in srgb, var(--staff-info-blue-surface, #edf5fb) 44%, var(--staff-line-subtle, #d9e6e8) 56%);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--staff-info-blue-surface, #edf5fb) 62%, white 38%) 0%,
    rgba(255, 255, 255, 0.98) 92%
  );
}

.staff-figma-shell .statistics-kpi-card--calm {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 8%, white 92%) 100%
  );
}

.staff-figma-shell .statistics-kpi-card .eyebrow {
  margin-bottom: 0;
}

.staff-figma-shell .statistics-kpi-card .stat-value {
  font-size: clamp(1.95rem, 2.3vw, 2.45rem);
  margin-bottom: 0;
}

.staff-figma-shell .statistics-kpi-card .stat-meta {
  font-size: 0.8rem;
  line-height: 1.55;
}

.staff-figma-shell .statistics-primary-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.staff-figma-shell .statistics-primary-main,
.staff-figma-shell .statistics-primary-side,
.staff-figma-shell .statistics-secondary-grid,
.staff-figma-shell .statistics-analysis-grid {
  display: grid;
  gap: 18px;
}

.staff-figma-shell .statistics-primary-side {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.staff-figma-shell .statistics-secondary-grid {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.staff-figma-shell .statistics-analysis-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.staff-figma-shell .statistics-secondary-card--wide {
  grid-column: 1 / -1;
}

.staff-figma-shell .statistics-analysis-card {
  align-content: start;
}

.staff-figma-shell .statistics-analysis-card--wide {
  grid-column: 1 / -1;
}

.staff-figma-shell .statistics-summary-card {
  gap: 14px;
}

.staff-figma-shell .statistics-card--hero {
  gap: 20px;
  border-radius: 20px;
  border-color: #dbe4ef;
}

.staff-figma-shell .statistics-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.staff-figma-shell .statistics-panel-head--hero {
  align-items: flex-start;
}

.staff-figma-shell .statistics-panel-copy {
  display: grid;
  gap: 6px;
}

.staff-figma-shell .statistics-panel-copy .card-title,
.staff-figma-shell .statistics-card .card-title {
  font-size: 1rem;
  font-weight: 600;
}

.staff-figma-shell .statistics-panel-meta {
  display: grid;
  gap: 12px;
  justify-items: end;
}

.staff-figma-shell .statistics-panel-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.staff-figma-shell .statistics-panel-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--staff-tool-surface, #f3f8f9) 82%, white 18%);
  color: var(--staff-text-muted, #728191);
  font-size: 0.78rem;
  font-weight: 700;
}

.staff-figma-shell .statistics-panel-pill--accent {
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 78%, white 22%);
  color: color-mix(in srgb, var(--staff-primary-action, #5db85d) 66%, var(--staff-text, #243649) 34%);
}

.staff-figma-shell .statistics-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--staff-text-muted, #728191);
  font-size: 0.76rem;
  font-weight: 700;
}

.staff-figma-shell .statistics-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.staff-figma-shell .statistics-chart-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.staff-figma-shell .statistics-chart-legend .incoming {
  background: var(--staff-info-blue-text, #5a7692);
}

.staff-figma-shell .statistics-chart-legend .capacity {
  background: var(--staff-success-tone, #4fb89d);
}

.staff-figma-shell .statistics-chart-legend .required {
  background: var(--staff-warning-tone, #d79b56);
}

.staff-figma-shell .statistics-chart-frame {
  overflow: hidden;
  padding: 14px 14px 8px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 78%, white 22%);
  border-radius: 22px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--staff-tool-surface, #f3f8f9) 66%, white 34%) 0%,
    rgba(255, 255, 255, 0.98) 100%
  );
}

.staff-figma-shell .statistics-chart-frame--hero {
  padding: 16px 16px 8px;
  border-color: color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 86%, white 14%);
}

.staff-figma-shell .statistics-chart-slot {
  min-height: 250px;
}

.staff-figma-shell .statistics-chart-slot--hero {
  min-height: 372px;
}

.staff-figma-shell .statistics-chart-slot--support {
  min-height: 228px;
}

.staff-figma-shell .statistics-chart-slot--compact {
  min-height: 188px;
}

.staff-figma-shell .statistics-card--compact .card-header.compact {
  margin-bottom: 4px;
}

.staff-figma-shell .statistics-card--compact .card-subtitle {
  max-width: 40ch;
}

.staff-figma-shell .statistics-card--compact .statistics-chart-frame {
  padding: 10px 10px 4px;
  border-radius: 16px;
}

.staff-figma-shell .statistics-card--compact .statistics-support-metrics {
  gap: 10px;
  margin-top: -2px;
}

.staff-figma-shell .statistics-card--compact .statistics-support-metric {
  padding: 10px 12px;
}

.staff-figma-shell .statistics-chart-loading,
.staff-figma-shell .statistics-chart-fallback {
  min-height: inherit;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 8px;
  color: var(--staff-text-muted, #728191);
  font-size: 0.84rem;
  line-height: 1.6;
}

.staff-figma-shell .statistics-chart-fallback strong {
  color: var(--staff-text, #243649);
  font-size: 0.92rem;
}

.staff-figma-shell .statistics-chart-fallback--detailed {
  min-height: inherit;
  display: block;
  color: inherit;
  text-align: left;
}

.staff-figma-shell .statistics-support-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.staff-figma-shell .statistics-support-metric {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 76%, white 24%);
  background: color-mix(in srgb, var(--staff-panel-surface, #ffffff) 88%, var(--staff-primary-soft, #eef8ee) 12%);
}

.staff-figma-shell .statistics-support-metric span {
  color: var(--staff-text-muted, #728191);
  font-size: 0.75rem;
  font-weight: 700;
}

.staff-figma-shell .statistics-support-metric strong {
  color: var(--staff-text, #243649);
  font-size: 1rem;
  line-height: 1.2;
}

.staff-figma-shell .apexcharts-canvas,
.staff-figma-shell .apexcharts-svg {
  font-family: inherit !important;
}

.staff-figma-shell .apexcharts-legend-text {
  color: var(--staff-text-muted, #728191) !important;
}

.staff-figma-shell .apexcharts-gridline {
  stroke: color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 86%, white 14%) !important;
}

.staff-figma-shell .apexcharts-xaxis-label,
.staff-figma-shell .apexcharts-yaxis-label {
  fill: var(--staff-text-muted, #728191) !important;
}

.staff-figma-shell .apexcharts-tooltip,
.staff-figma-shell .apexcharts-xaxistooltip {
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 80%, white 20%) !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 34px rgba(36, 54, 73, 0.12) !important;
}

.staff-figma-shell .apexcharts-tooltip-title {
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 20%, white 80%) !important;
  border-bottom: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 76%, white 24%) !important;
  color: var(--staff-text, #243649) !important;
}

.staff-figma-shell .apexcharts-toolbar {
  display: none !important;
}

.staff-figma-shell .statistics-load-chart-shell {
  padding: 20px 18px 14px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 78%, white 22%);
  border-radius: 22px;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--staff-tool-surface, #f3f8f9) 70%, white 30%) 0%,
      rgba(255, 255, 255, 0.98) 100%
    );
}

.staff-figma-shell .statistics-load-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(68px, 1fr));
  gap: 12px;
  align-items: end;
}

.staff-figma-shell .statistics-load-column {
  display: grid;
  gap: 10px;
}

.staff-figma-shell .statistics-load-bar-group {
  min-height: 230px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 7px;
  padding: 18px 12px 14px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 84%, white 16%);
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--staff-tool-surface, #f3f8f9) 68%, white 32%) 0%,
      rgba(255, 255, 255, 0.98) 100%
    );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.staff-figma-shell .statistics-load-column.is-shortage .statistics-load-bar-group {
  border-color: color-mix(in srgb, var(--staff-warning-tone, #d79b56) 28%, var(--staff-line-subtle, #d9e6e8) 72%);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--staff-accent-warm, #edb36f) 16%, white 84%) 0%,
    rgba(255, 255, 255, 0.98) 100%
  );
}

.staff-figma-shell .statistics-load-bar {
  display: block;
  width: 13px;
  border-radius: 999px 999px 6px 6px;
}

.staff-figma-shell .statistics-load-bar.incoming {
  background: var(--staff-info-blue-text, #5a7692);
}

.staff-figma-shell .statistics-load-bar.capacity {
  background: var(--staff-success-tone, #4fb89d);
}

.staff-figma-shell .statistics-load-bar.required {
  background: var(--staff-warning-tone, #d79b56);
}

.staff-figma-shell .statistics-load-meta {
  color: var(--staff-text, #243649);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

.staff-figma-shell .statistics-load-values {
  display: grid;
  gap: 6px;
  justify-items: center;
  color: var(--staff-text-muted, #728191);
  font-size: 0.72rem;
  font-weight: 700;
}

.staff-figma-shell .statistics-shortage-badge,
.staff-figma-shell .statistics-match-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
}

.staff-figma-shell .statistics-shortage-badge {
  background: color-mix(in srgb, var(--staff-danger-tone, #d96e76) 12%, white 88%);
  color: color-mix(in srgb, var(--staff-danger-tone, #d96e76) 86%, var(--staff-text, #243649) 14%);
}

.staff-figma-shell .statistics-match-badge {
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 84%, white 16%);
  color: color-mix(in srgb, var(--staff-success-tone, #4fb89d) 78%, var(--staff-text, #243649) 22%);
}

.staff-figma-shell .statistics-heatmap-shell {
  overflow-x: auto;
  padding-bottom: 2px;
}

.staff-figma-shell .statistics-heatmap-table {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
}

.staff-figma-shell .statistics-heatmap-table th,
.staff-figma-shell .statistics-heatmap-table td {
  padding: 9px 10px;
  border-top: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 78%, white 22%);
  text-align: center;
}

.staff-figma-shell .statistics-heatmap-table th {
  color: var(--staff-text-muted, #728191);
  font-size: 0.76rem;
  font-weight: 700;
}

.staff-figma-shell .statistics-heatmap-table tbody th {
  text-align: left;
  color: var(--staff-text, #243649);
  white-space: nowrap;
}

.staff-figma-shell .statistics-heatmap-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 34px;
  border-radius: 10px;
  background: color-mix(
    in srgb,
    var(--staff-info-blue-surface, #edf5fb) calc(var(--statistics-cell-alpha, 0.08) * 100%),
    white
  );
  color: var(--staff-text, #243649);
  font-size: 0.78rem;
  font-weight: 700;
}

.staff-figma-shell .statistics-balance-list {
  display: grid;
  gap: 16px;
}

.staff-figma-shell .statistics-balance-row {
  display: grid;
  gap: 10px;
}

.staff-figma-shell .statistics-balance-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.staff-figma-shell .statistics-balance-head strong {
  display: block;
  color: var(--staff-text, #243649);
  font-size: 0.9rem;
}

.staff-figma-shell .statistics-balance-head span {
  color: var(--staff-text-muted, #728191);
  font-size: 0.8rem;
}

.staff-figma-shell .statistics-balance-counts {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  color: var(--staff-text-muted, #728191);
  font-size: 0.78rem;
  font-weight: 700;
}

.staff-figma-shell .statistics-balance-track {
  display: flex;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 76%, white 24%);
}

.staff-figma-shell .statistics-balance-segment {
  display: block;
  min-width: 0;
}

.staff-figma-shell .statistics-balance-segment.incoming {
  background: var(--staff-info-blue-text, #5a7692);
}

.staff-figma-shell .statistics-balance-segment.outgoing {
  background: var(--staff-success-tone, #4fb89d);
}

.staff-figma-shell .statistics-mini-bar-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
  gap: 12px;
  align-items: end;
}

.staff-figma-shell .statistics-mini-bar-column {
  display: grid;
  gap: 8px;
}

.staff-figma-shell .statistics-mini-bar-value {
  color: var(--staff-text, #243649);
  font-size: 0.74rem;
  font-weight: 700;
  text-align: center;
}

.staff-figma-shell .statistics-mini-bar-shell {
  min-height: 168px;
  display: flex;
  align-items: end;
  justify-content: center;
  padding: 12px 0;
  border-radius: 16px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--staff-tool-surface, #f3f8f9) 70%, white 30%) 0%,
    rgba(255, 255, 255, 0.98) 100%
  );
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 78%, white 22%);
}

.staff-figma-shell .statistics-mini-bar {
  display: block;
  width: 20px;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--staff-primary-action, #5db85d) 66%, white 34%) 0%,
    var(--staff-info-blue-text, #5a7692) 100%
  );
}

.staff-figma-shell .statistics-mini-bar-label {
  color: var(--staff-text-muted, #728191);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.staff-figma-shell .statistics-donut-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
}

.staff-figma-shell .statistics-donut {
  width: 138px;
  height: 138px;
  border-radius: 999px;
  background: conic-gradient(
    var(--staff-danger-tone, #d96e76) 0deg var(--statistics-donut-angle),
    color-mix(in srgb, var(--staff-info-blue-surface, #edf5fb) 82%, white 18%) var(--statistics-donut-angle) 360deg
  );
  display: grid;
  place-items: center;
}

.staff-figma-shell .statistics-donut-inner {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: var(--staff-panel-surface, #ffffff);
  display: grid;
  place-items: center;
  text-align: center;
}

.staff-figma-shell .statistics-donut-inner strong {
  color: var(--staff-text, #243649);
  font-size: 1.5rem;
  line-height: 1;
}

.staff-figma-shell .statistics-donut-inner span {
  color: var(--staff-text-muted, #728191);
  font-size: 0.82rem;
  font-weight: 700;
}

.staff-figma-shell .statistics-donut-copy {
  display: grid;
  gap: 12px;
}

.staff-figma-shell .statistics-donut-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 76%, white 24%);
  border-radius: 14px;
  background: color-mix(in srgb, var(--staff-panel-surface, #ffffff) 84%, var(--staff-primary-soft, #eef8ee) 16%);
  color: var(--staff-text, #243649);
  font-size: 0.84rem;
  font-weight: 700;
}

.staff-figma-shell .statistics-donut-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.staff-figma-shell .statistics-donut-dot.known {
  background: var(--staff-info-blue-text, #5a7692);
}

.staff-figma-shell .statistics-donut-dot.unknown {
  background: var(--staff-danger-tone, #d96e76);
}

.staff-figma-shell .statistics-phone-list {
  display: grid;
  gap: 12px;
}

.staff-figma-shell .statistics-phone-row {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 76%, white 24%);
  border-radius: 16px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 10%, white 90%) 100%
  );
}

.staff-figma-shell .statistics-phone-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.staff-figma-shell .statistics-phone-copy strong {
  color: var(--staff-text, #243649);
  font-size: 0.86rem;
}

.staff-figma-shell .statistics-phone-copy span {
  color: var(--staff-text-muted, #728191);
  font-size: 0.78rem;
}

.staff-figma-shell .statistics-phone-bar-shell {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 76%, white 24%);
}

.staff-figma-shell .statistics-phone-bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--staff-primary-action, #5db85d) 70%, white 30%) 0%,
    var(--staff-info-blue-text, #5a7692) 100%
  );
}

.staff-figma-shell .statistics-insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.staff-figma-shell .statistics-summary-card .statistics-insights-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}

.staff-figma-shell .statistics-insight-card {
  display: grid;
  gap: 7px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 78%, white 22%);
  border-radius: 16px;
  background: color-mix(in srgb, var(--staff-panel-surface, #ffffff) 88%, var(--staff-primary-soft, #eef8ee) 12%);
}

.staff-figma-shell .statistics-summary-card .statistics-insight-card {
  gap: 5px;
  padding: 10px 12px;
}

.staff-figma-shell .statistics-insight-label {
  color: var(--staff-text-muted, #728191);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.01em;
}

.staff-figma-shell .statistics-insight-value {
  color: var(--staff-text, #243649);
  font-size: 1.2rem;
  line-height: 1.1;
}

.staff-figma-shell .statistics-summary-card .statistics-insight-value {
  font-size: 1.02rem;
}

.staff-figma-shell .statistics-insight-meta {
  margin: 0;
  color: var(--staff-text-muted, #728191);
  font-size: 0.82rem;
  line-height: 1.5;
}

.staff-figma-shell .statistics-summary-card .statistics-insight-meta {
  font-size: 0.74rem;
  line-height: 1.35;
}

.staff-figma-shell .missed-calls-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.9fr);
  gap: 24px;
  align-items: start;
  max-width: 1240px;
}

.staff-figma-shell .missed-calls-page-layout--single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1120px;
}

.staff-figma-shell .missed-calls-insights-grid {
  margin-bottom: 24px;
}

.staff-figma-shell .missed-calls-primary {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.staff-figma-shell .missed-calls-filter-panel {
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 82%, white 18%);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 18%, white 82%) 100%
  );
}

.staff-figma-shell .missed-calls-filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 20px;
  align-items: center;
}

.staff-figma-shell .missed-calls-filter-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.staff-figma-shell .missed-calls-filter-copy {
  display: grid;
  gap: 4px;
  min-width: 220px;
  flex: 0 1 260px;
}

.staff-figma-shell .missed-calls-filter-copy span {
  color: var(--staff-text, #243649);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
}

.staff-figma-shell .missed-calls-filter-copy p {
  margin: 0;
  color: var(--staff-text-muted, #728191);
  font-size: 0.84rem;
  line-height: 1.5;
}

.staff-figma-shell .missed-calls-filter-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(170px, 220px);
  gap: 12px;
  align-items: end;
}

.staff-figma-shell .missed-calls-filter-fields--compact {
  grid-template-columns: minmax(170px, 220px);
}

.staff-figma-shell .missed-calls-filter-field {
  display: grid;
  gap: 6px;
  min-width: 148px;
  color: var(--staff-text-muted, #728191);
  font-size: 0.78rem;
  font-weight: 600;
}

.staff-figma-shell .missed-calls-filter-field--search {
  min-width: 0;
}

.staff-figma-shell .missed-calls-filter-control {
  display: grid;
  align-items: center;
  min-height: 44px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 80%, white 20%);
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 14%, white 86%) 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.staff-figma-shell .missed-calls-filter-control--search {
  grid-template-columns: 36px minmax(0, 1fr);
  padding-right: 12px;
}

.staff-figma-shell .missed-calls-filter-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: color-mix(in srgb, var(--staff-text-muted, #728191) 72%, white 28%);
}

.staff-figma-shell .missed-calls-filter-icon .figma-icon {
  width: 0.9rem;
  height: 0.9rem;
}

.staff-figma-shell .missed-calls-filter-field input,
.staff-figma-shell .missed-calls-filter-field select {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 80%, white 20%);
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 12%, white 88%) 100%
  );
  color: var(--staff-text, #243649);
  font: inherit;
}

.staff-figma-shell .missed-calls-filter-control input {
  min-height: 42px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  outline: none;
}

.staff-figma-shell .missed-calls-filter-field input:focus,
.staff-figma-shell .missed-calls-filter-field select:focus,
.staff-figma-shell .missed-calls-filter-control:focus-within {
  border-color: color-mix(in srgb, var(--staff-primary-action, #5db85d) 38%, white 62%);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--staff-focus-ring, #8edfd8) 28%, white 72%);
  outline: none;
}

.staff-figma-shell .missed-calls-filter-field input::placeholder {
  color: color-mix(in srgb, var(--staff-text-muted, #728191) 72%, white 28%);
}

.staff-figma-shell .missed-calls-open-summary {
  display: grid;
  gap: 4px;
  min-width: 148px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 82%, white 18%);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 16%, white 84%) 100%
  );
  text-align: right;
  justify-self: end;
  align-self: center;
}

.staff-figma-shell .missed-calls-open-summary span {
  color: var(--staff-text-muted, #728191);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: none;
}

.staff-figma-shell .missed-calls-open-summary strong {
  color: var(--staff-text, #243649);
  font-size: 1.35rem;
  line-height: 1.1;
}

.staff-figma-shell .missed-calls-open-summary small {
  color: var(--staff-text-muted, #728191);
  font-size: 0.76rem;
  font-weight: 600;
}

.staff-figma-shell .missed-calls-card .table-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.staff-figma-shell .missed-calls-card .table-header-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.staff-figma-shell .missed-calls-card-toolbar {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 78%, white 22%);
  align-items: end;
}

.staff-figma-shell .missed-calls-card-toolbar--top {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.staff-figma-shell .missed-calls-count-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 80%, white 20%);
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 76%, white 24%);
  color: color-mix(in srgb, var(--staff-primary-action, #5db85d) 66%, var(--staff-text, #243649) 34%);
  font-size: 0.82rem;
  font-weight: 700;
}

.staff-figma-shell .missed-calls-inline-feedback {
  margin: 16px 20px 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.staff-figma-shell .missed-calls-inline-feedback.is-success {
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 84%, white 16%);
  color: color-mix(in srgb, var(--staff-success-tone, #4fb89d) 78%, var(--staff-text, #243649) 22%);
}

.staff-figma-shell .missed-calls-inline-feedback.is-error {
  background: color-mix(in srgb, var(--staff-danger-tone, #d96e76) 12%, white 88%);
  color: color-mix(in srgb, var(--staff-danger-tone, #d96e76) 86%, var(--staff-text, #243649) 14%);
}

.staff-figma-shell .missed-calls-table-shell {
  overflow-x: auto;
}

.staff-figma-shell .missed-calls-table {
  width: 100%;
  border-collapse: collapse;
}

.staff-figma-shell .missed-calls-table th,
.staff-figma-shell .missed-calls-table td {
  padding: 16px 20px;
  border-top: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 78%, white 22%);
  text-align: left;
  vertical-align: middle;
}

.staff-figma-shell .missed-calls-table th {
  color: var(--staff-text-muted, #728191);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
}

.staff-figma-shell .missed-calls-table tbody tr.is-demo {
  background: color-mix(in srgb, var(--staff-tool-surface, #f3f8f9) 72%, white 28%);
}

.staff-figma-shell .missed-calls-table tbody tr.is-selected {
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 42%, white 58%);
}

.staff-figma-shell .missed-call-person {
  display: grid;
  gap: 4px;
}

.staff-figma-shell .missed-call-person strong {
  color: var(--staff-text, #243649);
  font-size: 0.94rem;
}

.staff-figma-shell .missed-call-person-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  width: fit-content;
  color: var(--staff-text, #243649);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.staff-figma-shell .missed-call-person-link:hover {
  color: var(--staff-info-blue-text, #5a7692);
  text-decoration: underline;
}

.staff-figma-shell .missed-call-appointment-link {
  display: inline-flex;
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--staff-text, #243649);
  cursor: pointer;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.staff-figma-shell .missed-call-appointment-link:hover {
  color: var(--staff-info-blue-text, #5a7692);
  text-decoration: underline;
}

.staff-figma-shell .missed-call-person span {
  color: var(--staff-text-muted, #728191);
  font-size: 0.82rem;
}

.staff-figma-shell .missed-call-date {
  color: var(--staff-text, #243649);
  font-size: 0.92rem;
}

.staff-figma-shell .missed-call-date-time {
  color: var(--staff-text-muted, #728191);
  font-size: 0.84rem;
  font-weight: 600;
}

.staff-figma-shell .missed-call-status-cell {
  display: grid;
  gap: 6px;
  justify-items: start;
}

.staff-figma-shell .missed-call-status-cell small {
  color: var(--staff-text-muted, #728191);
  font-size: 0.78rem;
  line-height: 1.4;
}

.staff-figma-shell .callback-task-request-cell {
  display: grid;
  gap: 6px;
}

.staff-figma-shell .callback-task-request-cell strong {
  color: var(--staff-text, #243649);
  font-size: 0.94rem;
  line-height: 1.45;
}

.staff-figma-shell .callback-task-request-cell span {
  color: var(--staff-text-muted, #728191);
  font-size: 0.82rem;
  line-height: 1.45;
}

.staff-figma-shell .callback-task-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  overflow: visible;
}

.staff-figma-shell .callback-task-action-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border: 0;
  border-radius: 13px;
  color: #ffffff;
  box-shadow: none;
  overflow: visible;
}

.staff-figma-shell .callback-task-action-button .svg-icon {
  width: 1.05rem;
  height: 1.05rem;
}

.staff-figma-shell .callback-task-action-button--claim {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--staff-success-tone, #4fb89d) 86%, white 14%) 0%,
    var(--staff-success-tone, #4fb89d) 100%
  );
}

.staff-figma-shell .callback-task-action-button--claim:hover:not(:disabled) {
  background: linear-gradient(
    180deg,
    var(--staff-success-tone, #4fb89d) 0%,
    color-mix(in srgb, var(--staff-success-tone, #4fb89d) 84%, var(--staff-text, #243649) 16%) 100%
  );
}

.staff-figma-shell .callback-task-action-button--delete {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--staff-danger-tone, #d96e76) 84%, white 16%) 0%,
    color-mix(in srgb, var(--staff-danger-tone, #d96e76) 74%, var(--staff-text, #243649) 26%) 100%
  );
}

.staff-figma-shell .callback-task-action-button--delete:hover:not(:disabled) {
  background: linear-gradient(
    180deg,
    var(--staff-danger-tone, #d96e76) 0%,
    color-mix(in srgb, var(--staff-danger-tone, #d96e76) 82%, var(--staff-text, #243649) 18%) 100%
  );
}

.staff-figma-shell .callback-task-action-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.staff-figma-shell .callback-task-action-button[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  z-index: 30;
  width: max-content;
  max-width: min(260px, calc(100vw - 32px));
  padding: 6px 8px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--staff-text, #243649) 92%, black 8%);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -3px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.staff-figma-shell .callback-task-action-button[data-tooltip]:hover::after,
.staff-figma-shell .callback-task-action-button[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.staff-figma-shell .missed-call-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: min(170px, 100%);
}

.staff-figma-shell .missed-call-actions--icons {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  overflow: visible;
  flex-wrap: wrap;
}

.staff-figma-shell .missed-call-actions--icons .missed-call-demo-label {
  flex-basis: 100%;
  text-align: center;
}

.staff-figma-shell .missed-call-actions button,
.staff-figma-shell .missed-call-detail-actions button:not(.button-ghost) {
  min-height: 38px;
  width: 100%;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  box-shadow: none;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
}

.staff-figma-shell .missed-call-actions .missed-call-call-button,
.staff-figma-shell .missed-call-detail-actions .missed-call-call-button {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--staff-success-tone, #4fb89d) 86%, white 14%) 0%,
    var(--staff-success-tone, #4fb89d) 100%
  );
}

.staff-figma-shell .missed-call-actions .missed-call-call-button:hover:not(:disabled),
.staff-figma-shell .missed-call-detail-actions .missed-call-call-button:hover:not(:disabled) {
  background: linear-gradient(
    180deg,
    var(--staff-success-tone, #4fb89d) 0%,
    color-mix(in srgb, var(--staff-success-tone, #4fb89d) 84%, var(--staff-text, #243649) 16%) 100%
  );
}

.staff-figma-shell .missed-call-actions .missed-call-callback-button,
.staff-figma-shell .missed-call-detail-actions .missed-call-callback-button {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--staff-primary-action, #5db85d) 86%, white 14%) 0%,
    color-mix(in srgb, var(--staff-primary-action, #5db85d) 76%, var(--staff-text, #243649) 24%) 100%
  );
}

.staff-figma-shell .missed-call-actions .missed-call-callback-button:hover:not(:disabled),
.staff-figma-shell .missed-call-detail-actions .missed-call-callback-button:hover:not(:disabled) {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--staff-primary-action, #5db85d) 92%, white 8%) 0%,
    color-mix(in srgb, var(--staff-primary-action, #5db85d) 68%, var(--staff-text, #243649) 32%) 100%
  );
}

.staff-figma-shell .missed-call-actions .missed-call-remove-button,
.staff-figma-shell .missed-call-detail-actions .missed-call-remove-button {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--staff-accent-warm, #edb36f) 82%, white 18%) 0%,
    var(--staff-warning-tone, #d79b56) 100%
  );
}

.staff-figma-shell .missed-call-actions .missed-call-remove-button:hover:not(:disabled),
.staff-figma-shell .missed-call-detail-actions .missed-call-remove-button:hover:not(:disabled) {
  background: linear-gradient(
    180deg,
    var(--staff-warning-tone, #d79b56) 0%,
    color-mix(in srgb, var(--staff-warning-tone, #d79b56) 84%, var(--staff-text, #243649) 16%) 100%
  );
}

.staff-figma-shell .missed-call-actions button:disabled,
.staff-figma-shell .missed-call-detail-actions button:not(.button-ghost):disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.staff-figma-shell .missed-call-actions .missed-call-icon-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 13px;
  overflow: visible;
}

.staff-figma-shell .missed-call-actions .missed-call-icon-button .svg-icon {
  width: 1.05rem;
  height: 1.05rem;
}

.staff-figma-shell .missed-call-actions .missed-call-icon-button.is-unavailable {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, white 42%, transparent);
  filter: saturate(0.82);
}

.staff-figma-shell .missed-call-actions .missed-call-icon-button[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  z-index: 30;
  width: max-content;
  max-width: min(260px, calc(100vw - 32px));
  padding: 6px 8px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--staff-text, #243649) 92%, black 8%);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -3px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.staff-figma-shell .missed-call-actions .missed-call-icon-button[data-tooltip]:hover::after,
.staff-figma-shell .missed-call-actions .missed-call-icon-button[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.staff-figma-shell .missed-call-demo-label {
  align-self: center;
  color: var(--staff-text-muted, #728191);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.01em;
}

.staff-figma-shell .missed-calls-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 20px;
  border-top: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 78%, white 22%);
  flex-wrap: wrap;
}

.staff-figma-shell .missed-calls-pagination-meta {
  color: var(--staff-text-muted, #728191);
  font-size: 0.82rem;
}

.staff-figma-shell .missed-calls-pagination-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.staff-figma-shell .missed-calls-pagination-actions button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 78%, white 22%);
  border-radius: 12px;
  background: color-mix(in srgb, var(--staff-panel-surface, #ffffff) 84%, var(--staff-tool-surface, #f3f8f9) 16%);
  color: var(--staff-text, #243649);
  font-size: 0.82rem;
  font-weight: 600;
}

.staff-figma-shell .missed-calls-pagination-actions button:disabled {
  color: color-mix(in srgb, var(--staff-text-muted, #728191) 72%, white 28%);
  background: color-mix(in srgb, var(--staff-tool-surface, #f3f8f9) 84%, white 16%);
}

.staff-figma-shell .missed-calls-pagination-page {
  color: var(--staff-text-muted, #728191);
  font-size: 0.82rem;
  font-weight: 600;
}

.staff-figma-shell .call-registrations-table {
  min-width: 720px;
}

.staff-figma-shell .call-registrations-table th,
.staff-figma-shell .call-registrations-table td {
  padding: 15px 16px;
}

.staff-figma-shell .call-registrations-card {
  padding: 0;
  overflow: hidden;
}

.staff-figma-shell .call-registrations-card .table-header-bar {
  padding: 22px 24px 0;
}

.staff-figma-shell .call-registrations-card .call-registrations-table-shell {
  margin: 16px 24px 0;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 80%, white 20%);
  border-radius: 18px;
  background: var(--staff-panel-surface, #ffffff);
  overflow: auto;
}

.staff-figma-shell .call-registrations-card .missed-calls-pagination {
  padding: 16px 24px 24px;
  border-top: 0;
}

.staff-figma-shell .call-registrations-table__cell-tight {
  min-width: 108px;
}

.staff-figma-shell .call-registrations-table__cell-nowrap {
  white-space: nowrap;
}

.staff-figma-shell .call-registrations-table__cell-copy {
  min-width: 170px;
  max-width: 240px;
  line-height: 1.45;
}

.staff-figma-shell .call-registrations-table__action-head,
.staff-figma-shell .call-registrations-table__action {
  width: 152px;
  min-width: 152px;
  text-align: right;
}

.staff-figma-shell .call-registrations-table__action {
  vertical-align: middle;
}

.staff-figma-shell .call-registrations-table__actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.staff-figma-shell .call-registrations-table__edit-button {
  min-height: 36px;
  min-width: 96px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 78%, white 22%);
  border-radius: 12px;
  background: color-mix(in srgb, var(--staff-panel-surface, #ffffff) 82%, var(--staff-tool-surface, #f3f8f9) 18%);
  color: var(--staff-text, #243649);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
}

.staff-figma-shell .call-registrations-table__delete-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid color-mix(in srgb, #ef4444 36%, white 64%);
  border-radius: 12px;
  background: color-mix(in srgb, #fff1f2 84%, white 16%);
  color: #b42318;
}

.staff-figma-shell .call-registrations-table__delete-button .svg-icon {
  width: 1rem;
  height: 1rem;
}

.staff-figma-shell .call-registrations-table__edit-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.staff-figma-shell .call-registrations-table__delete-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.staff-figma-shell .missed-call-quick-list,
.staff-figma-shell .missed-call-info-list {
  display: grid;
  gap: 12px;
}

.staff-figma-shell .missed-call-quick-row,
.staff-figma-shell .missed-call-info-row {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  background: #ffffff;
}

.staff-figma-shell .missed-call-quick-row span {
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 700;
}

.staff-figma-shell .missed-call-quick-row strong {
  color: #0f172a;
  font-size: 0.92rem;
}

.staff-figma-shell .missed-call-quick-row small,
.staff-figma-shell .missed-call-info-row small {
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.45;
}

.staff-figma-shell .missed-call-info-row strong {
  color: #0f172a;
  font-size: 0.88rem;
}

.staff-figma-shell .missed-call-detail-card {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  background: #f8fafc;
}

.staff-figma-shell .missed-call-detail-lead {
  display: grid;
  gap: 4px;
}

.staff-figma-shell .missed-call-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.staff-figma-shell .missed-call-detail-grid div {
  display: grid;
  gap: 4px;
}

.staff-figma-shell .missed-call-detail-grid span {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.staff-figma-shell .missed-call-detail-grid strong {
  color: #0f172a;
  font-size: 0.88rem;
}

.staff-figma-shell .missed-call-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.staff-figma-shell .missed-call-detail-note {
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 56%, white 44%);
  color: var(--staff-text, #243649);
  font-size: 0.84rem;
  line-height: 1.5;
}

.staff-figma-shell .missed-call-detail-note.is-warning {
  background: color-mix(in srgb, var(--staff-warning-tone, #d79b56) 18%, white 82%);
  color: color-mix(in srgb, var(--staff-warning-tone, #d79b56) 78%, var(--staff-text, #243649) 22%);
}

.staff-figma-shell .missed-call-detail-actions .button-ghost {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--staff-line-subtle);
  background: color-mix(in srgb, var(--staff-call-console-soft-surface) 56%, white 44%);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.staff-figma-shell .missed-call-backlog-list {
  display: grid;
  gap: 12px;
}

.staff-figma-shell .missed-call-backlog-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  background: #ffffff;
}

.staff-figma-shell .missed-call-backlog-row.is-linked {
  border-color: color-mix(in srgb, var(--staff-primary-action, #5db85d) 34%, white 66%);
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 28%, white 72%);
}

.staff-figma-shell .missed-call-backlog-main,
.staff-figma-shell .missed-call-backlog-meta {
  display: grid;
  gap: 6px;
}

.staff-figma-shell .missed-call-backlog-main strong {
  color: var(--staff-text, #243649);
  font-size: 0.9rem;
}

.staff-figma-shell .missed-call-backlog-main span,
.staff-figma-shell .missed-call-backlog-meta small {
  color: var(--staff-text-muted, #728191);
  font-size: 0.8rem;
  line-height: 1.45;
}

.staff-figma-shell .missed-call-backlog-meta {
  justify-items: end;
  text-align: right;
}

.staff-figma-shell .page-sidebar {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 18px;
}

.staff-figma-shell .page-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 4px;
}

.staff-figma-shell .waitroom-intro {
  align-items: stretch;
}

.staff-figma-shell .page-intro-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.staff-figma-shell .page-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.staff-figma-shell .header-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 56%, white 44%) 0%,
    color-mix(in srgb, #ffffff 84%, var(--staff-primary-soft, #eef8ee) 16%) 100%
  );
  color: color-mix(in srgb, var(--staff-primary-action, #5db85d) 62%, var(--staff-text, #243649) 38%);
  box-shadow:
    0 10px 22px rgba(93, 184, 93, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.staff-figma-shell .header-icon svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.staff-figma-shell .page-title {
  margin: 0;
  font-size: clamp(1.54rem, 2.35vw, 1.94rem);
  line-height: 1.06;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.staff-figma-shell .page-description {
  margin: 0;
  max-width: 740px;
  color: color-mix(in srgb, var(--staff-text-muted, #728191) 88%, white 12%);
  font-size: 0.92rem;
  line-height: 1.55;
}

.staff-figma-shell .planner-page-intro {
  display: grid;
  gap: 18px;
}

.staff-figma-shell .planner-page-intro__icon {
  background: #eef2ff;
  color: #4f46e5;
}

.staff-figma-shell .planner-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.staff-figma-shell .planner-command-card,
.staff-figma-shell .planner-toolbar-card,
.staff-figma-shell .planner-filter-card,
.staff-figma-shell .planner-status-line,
.staff-figma-shell .planner-summary-card,
.staff-figma-shell .planner-view-card,
.staff-figma-shell .planner-board-card,
.staff-figma-shell .planner-day-list-card {
  border: 1px solid var(--staff-line-subtle);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.staff-figma-shell .planner-command-card {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--staff-call-console-soft-surface) 28%, white 72%) 0%,
    #ffffff 100%
  );
}

.staff-figma-shell .planner-command-card__top {
  display: grid;
  gap: 10px;
}

.staff-figma-shell .planner-toolbar-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 18px;
}

.staff-figma-shell .planner-toolbar-card__left,
.staff-figma-shell .planner-toolbar-card__right,
.staff-figma-shell .planner-status-line__meta,
.staff-figma-shell .planner-appointment__meta,
.staff-figma-shell .planner-modal__footer,
.staff-figma-shell .planner-series-actions,
.staff-figma-shell .planner-series-toolbar,
.staff-figma-shell .planner-inline-actions,
.staff-figma-shell .planner-weekday-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.staff-figma-shell .planner-toolbar-card__left {
  position: relative;
}

.staff-figma-shell .planner-toolbar-card--embedded,
.staff-figma-shell .planner-status-line--embedded,
.staff-figma-shell .planner-filter-card--embedded {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.staff-figma-shell .planner-toolbar-card--embedded {
  padding: 0;
  gap: 12px;
}

.staff-figma-shell .planner-filter-card {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--staff-call-console-soft-surface) 42%, white 58%) 0%,
    #ffffff 100%
  );
}

.staff-figma-shell .planner-filter-card--embedded {
  padding: 12px 0 0;
  border-top: 1px solid color-mix(in srgb, var(--staff-line-subtle) 78%, white 22%);
  gap: 10px;
}

.staff-figma-shell .planner-filter-card__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 12px;
  align-items: end;
}

.staff-figma-shell .planner-filter-card__grid--compact {
  grid-template-columns: repeat(4, minmax(138px, 1fr));
  gap: 10px;
  align-items: center;
}

.staff-figma-shell .planner-filter-field.is-compact {
  min-width: 0;
}

.staff-figma-shell .planner-filter-field.is-compact .planner-input {
  min-height: 38px;
}

.staff-figma-shell .planner-filter-field .planner-input {
  min-height: 40px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--staff-call-console-soft-surface) 44%, white 56%);
}

.staff-figma-shell .planner-filter-field select.planner-input {
  appearance: none;
  background-color: color-mix(in srgb, var(--staff-call-console-soft-surface) 44%, white 56%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364758b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}

.staff-figma-shell .planner-filter-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.staff-figma-shell .planner-filter-card__reset {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--staff-line-subtle);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 750;
  cursor: pointer;
}

.staff-figma-shell .planner-filter-card__reset:disabled {
  cursor: default;
  opacity: 0.46;
}

.staff-figma-shell .planner-view-toggle {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border: 1px solid var(--staff-line-subtle);
  border-radius: 999px;
  background: color-mix(in srgb, var(--staff-call-console-soft-surface) 56%, white 44%);
}

.staff-figma-shell .planner-view-toggle__button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.staff-figma-shell .planner-view-toggle__button.is-active {
  background: #ffffff;
  color: color-mix(in srgb, var(--primary) 56%, var(--text) 44%);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.05);
}

.staff-figma-shell .planner-view-card {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.staff-figma-shell .planner-agenda-viewport,
.staff-figma-shell .planner-list-viewport {
  position: relative;
  min-height: 420px;
  height: min(720px, max(540px, calc(100vh - 300px)));
  overflow: auto;
  overflow-anchor: none;
  overscroll-behavior: contain;
  scrollbar-gutter: stable both-edges;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    color-mix(in srgb, var(--staff-call-console-soft-surface) 32%, white 68%) 100%
  );
}

.staff-figma-shell .planner-agenda-canvas {
  position: relative;
  display: grid;
  align-items: start;
}

.staff-figma-shell .planner-agenda-corner {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 8;
  grid-column: 1;
  grid-row: 1;
  min-height: 40px;
  border-right: 1px solid var(--staff-line-subtle);
  border-bottom: 1px solid var(--staff-line-subtle);
  background: color-mix(in srgb, var(--staff-call-console-soft-surface) 68%, white 32%);
}

.staff-figma-shell .planner-agenda-lane-header {
  position: sticky;
  top: 0;
  z-index: 7;
  grid-column: 2;
  grid-row: 1;
  display: grid;
  min-height: 40px;
  border-bottom: 1px solid var(--staff-line-subtle);
  background: color-mix(in srgb, var(--staff-call-console-soft-surface) 68%, white 32%);
}

.staff-figma-shell .planner-agenda-lane-header__cell {
  min-height: 40px;
  padding: 0 10px;
  border-left: 1px solid var(--staff-line-subtle);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 750;
  display: flex;
  align-items: center;
  justify-content: center;
}

.staff-figma-shell .planner-agenda-spacer {
  pointer-events: none;
}

.staff-figma-shell .planner-agenda-spacer--start-time {
  grid-column: 1;
  grid-row: 2;
  min-height: var(--planner-start-spacer, 0);
  border-right: 1px solid var(--staff-line-subtle);
  background: #ffffff;
}

.staff-figma-shell .planner-agenda-spacer--start-grid {
  grid-column: 2;
  grid-row: 2;
  min-height: var(--planner-start-spacer, 0);
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 179px,
      rgba(203, 213, 225, 0.54) 179px,
      rgba(203, 213, 225, 0.54) 180px
    ),
    #ffffff;
}

.staff-figma-shell .planner-agenda-spacer--end-time {
  position: relative;
  grid-column: 1;
  grid-row: 4;
  min-height: var(--planner-end-spacer, 224px);
  border-top: 1px solid rgba(148, 163, 184, 0.58);
  border-right: 1px solid var(--staff-line-subtle);
  background: #ffffff;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  padding: 0 8px 0 0;
}

.staff-figma-shell .planner-agenda-spacer--end-time span {
  position: absolute;
  top: 0;
  right: 8px;
  transform: translateY(-50%);
  padding: 2px 0;
  background: #ffffff;
}

.staff-figma-shell .planner-agenda-spacer--end-grid {
  grid-column: 2;
  grid-row: 4;
  min-height: var(--planner-end-spacer, 224px);
  border-top: 1px solid rgba(148, 163, 184, 0.58);
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 179px,
      rgba(203, 213, 225, 0.54) 179px,
      rgba(203, 213, 225, 0.54) 180px
    ),
    #ffffff;
}

.staff-figma-shell .planner-agenda-time-column {
  position: sticky;
  left: 0;
  z-index: 6;
  grid-column: 1;
  grid-row: 3;
  display: grid;
  grid-auto-rows: 56px;
  border-right: 1px solid var(--staff-line-subtle);
  background: #ffffff;
}

.staff-figma-shell .planner-agenda-time-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 0 8px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  border-top: 1px dotted rgba(226, 232, 240, 0.55);
}

.staff-figma-shell .planner-agenda-time-row__label {
  position: absolute;
  top: 0;
  right: 8px;
  transform: translateY(-50%);
  padding: 2px 0;
  background: #ffffff;
}

.staff-figma-shell .planner-agenda-time-row.is-quarter,
.staff-figma-shell .planner-agenda-time-row.is-half-hour {
  border-top-style: solid;
  border-top-color: rgba(203, 213, 225, 0.62);
  color: var(--muted);
}

.staff-figma-shell .planner-agenda-time-row.is-hour {
  border-top-style: solid;
  border-top-color: rgba(148, 163, 184, 0.58);
  color: var(--text);
  font-weight: 800;
}

.staff-figma-shell .planner-agenda-grid {
  position: relative;
  grid-column: 2;
  grid-row: 3;
  min-height: var(--planner-board-grid-height, auto);
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 179px,
      rgba(203, 213, 225, 0.54) 179px,
      rgba(203, 213, 225, 0.54) 180px
    ),
    #ffffff;
}

.staff-figma-shell .planner-agenda-grid-row {
  height: 56px;
  border-top: 1px dotted rgba(226, 232, 240, 0.55);
}

.staff-figma-shell .planner-agenda-grid-row.is-half-hour {
  border-top-style: solid;
  border-top-color: rgba(179, 191, 209, 0.66);
}

.staff-figma-shell .planner-agenda-grid-row.is-quarter {
  border-top-style: solid;
  border-top-color: rgba(203, 213, 225, 0.62);
}

.staff-figma-shell .planner-agenda-grid-row.is-hour {
  border-top-style: solid;
  border-top-color: rgba(148, 163, 184, 0.46);
  background: rgba(248, 250, 252, 0.42);
}

.staff-figma-shell .planner-list-content {
  display: grid;
  gap: 0;
  padding: 0;
  position: relative;
}

.staff-figma-shell .planner-list-group {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  border-bottom: 1px solid var(--staff-line-subtle);
}

.staff-figma-shell .planner-list-group__time {
  position: sticky;
  left: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 10px;
  border-right: 1px solid var(--staff-line-subtle);
  background: color-mix(in srgb, var(--staff-call-console-soft-surface) 56%, white 44%);
  font-variant-numeric: tabular-nums;
}

.staff-figma-shell .planner-list-group__time-label {
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.25;
}

.staff-figma-shell .planner-list-group__items {
  display: block;
  min-width: 0;
}

.staff-figma-shell .planner-list-group.is-current-slot .planner-list-group__time {
  background: color-mix(in srgb, var(--primary-soft) 68%, white 32%);
}

.staff-figma-shell .planner-list-group.is-current-slot .planner-list-group__time-label {
  color: color-mix(in srgb, var(--primary) 62%, var(--text) 38%);
}

.staff-figma-shell .planner-list-group.is-empty .planner-list-group__time {
  background: color-mix(in srgb, var(--staff-call-console-soft-surface) 46%, white 54%);
}

.staff-figma-shell .planner-list-group.is-empty .planner-list-group__time-label {
  color: #cbd5e1;
  font-weight: 560;
}

.staff-figma-shell .planner-list-table-head {
  position: sticky;
  top: 0;
  z-index: 9;
  display: grid;
  grid-template-columns: 150px 1.45fr 1.05fr 110px 90px 190px 150px;
  border-bottom: 1px solid var(--staff-line-subtle);
  background: color-mix(in srgb, var(--staff-call-console-soft-surface) 66%, white 34%);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.staff-figma-shell .planner-list-table-head__cell {
  padding: 10px 10px;
  border-right: 1px solid var(--staff-line-subtle);
}

.staff-figma-shell .planner-list-table-head__cell:last-child {
  border-right: 0;
}

.staff-figma-shell .planner-list-table-head__cell--time {
  position: sticky;
  left: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--staff-call-console-soft-surface) 66%, white 34%);
}

.staff-figma-shell .planner-list-row {
  display: grid;
  grid-template-columns: 1.45fr 1.05fr 110px 90px 190px 150px;
  align-items: center;
  min-height: 36px;
  border-top: 1px solid color-mix(in srgb, var(--staff-line-subtle) 86%, white 14%);
  background: #ffffff;
}

.staff-figma-shell .planner-list-row:hover {
  background: color-mix(in srgb, var(--primary-soft) 20%, white 80%);
}

.staff-figma-shell .planner-list-row.has-label-color {
  box-shadow: inset 4px 0 0 var(--planner-series-label-color);
  background:
    linear-gradient(180deg, var(--planner-series-label-soft) 0%, #ffffff 100%);
}

.staff-figma-shell .planner-list-row.has-label-color:hover {
  background:
    linear-gradient(180deg, var(--planner-series-label-soft) 0%, #fbfdff 100%);
}

.staff-figma-shell .planner-list-row--free {
  border: 0;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  text-align: left;
  width: 100%;
  cursor: pointer;
  background: #ffffff;
}

.staff-figma-shell .planner-list-row--free:hover {
  background: #f8fafc;
}

.staff-figma-shell .planner-list-row--free .planner-list-title {
  color: #475569;
}

.staff-figma-shell .planner-list-empty-row {
  min-height: 38px;
  border-top: 1px solid color-mix(in srgb, var(--staff-line-subtle) 72%, white 28%);
  background: #ffffff;
}

.staff-figma-shell .planner-list-cell {
  min-width: 0;
  padding: 6px 10px;
  border-right: 1px solid #e2e8f0;
  color: #0f172a;
  font-size: 0.78rem;
  line-height: 1.2;
}

.staff-figma-shell .planner-list-cell:last-child {
  border-right: 0;
}

.staff-figma-shell .planner-list-cell--channel {
  display: flex;
  align-items: center;
  justify-content: center;
}

.staff-figma-shell .planner-list-cell--status {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.staff-figma-shell .planner-list-cell--flow {
  min-width: 0;
}

.staff-figma-shell .planner-list-title,
.staff-figma-shell .planner-list-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-figma-shell .planner-list-title {
  font-weight: 750;
  color: #0f172a;
}

.staff-figma-shell .planner-list-title-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.staff-figma-shell .planner-list-kind-chip {
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--primary) 16%, white 84%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary-soft) 64%, white 36%);
  color: color-mix(in srgb, var(--primary) 76%, var(--text) 24%);
  padding: 3px 8px;
  font-size: 0.66rem;
  font-weight: 680;
  white-space: nowrap;
}

.staff-figma-shell .planner-list-inline-meta {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.staff-figma-shell .planner-list-subtitle {
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 700;
}

.staff-figma-shell .planner-list-row.is-presence-match {
  background: rgba(255, 247, 214, 0.55);
}

.staff-figma-shell .planner-list-row.is-presence-match:hover {
  background: rgba(255, 247, 214, 0.7);
}

.staff-figma-shell .planner-list-view .planner-appointment__status-chip,
.staff-figma-shell .planner-list-view .planner-appointment__claim,
.staff-figma-shell .planner-list-view .planner-appointment__countdown {
  border-radius: 8px;
}

.staff-figma-shell .planner-flow-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.staff-figma-shell .planner-flow-chip {
  width: fit-content;
  max-width: 100%;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--staff-line-subtle);
  background: color-mix(in srgb, var(--staff-call-console-soft-surface) 54%, white 46%);
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.staff-figma-shell .planner-flow-chip--waitroom {
  background: color-mix(in srgb, var(--accent) 14%, white 86%);
  border-color: color-mix(in srgb, var(--accent) 28%, white 72%);
  color: color-mix(in srgb, var(--high) 84%, var(--text) 16%);
}

.staff-figma-shell .planner-flow-chip--incoming {
  background: color-mix(in srgb, var(--staff-info-blue-surface) 78%, white 22%);
  border-color: color-mix(in srgb, var(--staff-info-blue-text) 18%, white 82%);
  color: var(--staff-info-blue-text);
}

.staff-figma-shell .planner-flow-chip--claimed {
  background: color-mix(in srgb, var(--primary-soft) 70%, white 30%);
  border-color: color-mix(in srgb, var(--primary) 24%, white 76%);
  color: color-mix(in srgb, var(--primary) 70%, var(--text) 30%);
}

.staff-figma-shell .planner-flow-chip--outgoing {
  background: color-mix(in srgb, var(--low) 12%, white 88%);
  border-color: color-mix(in srgb, var(--low) 24%, white 76%);
  color: color-mix(in srgb, var(--low) 82%, var(--text) 18%);
}

.staff-figma-shell .planner-flow-chip--active {
  background: color-mix(in srgb, var(--low) 16%, white 84%);
  border-color: color-mix(in srgb, var(--low) 32%, white 68%);
  color: color-mix(in srgb, var(--low) 84%, var(--text) 16%);
}

.staff-figma-shell .planner-flow-chip--callback {
  background: color-mix(in srgb, var(--accent) 18%, white 82%);
  border-color: color-mix(in srgb, var(--accent) 32%, white 68%);
  color: color-mix(in srgb, var(--accent) 86%, var(--text) 14%);
}

.staff-figma-shell .planner-flow-chip--completed {
  background: color-mix(in srgb, var(--staff-call-console-soft-surface) 68%, white 32%);
  border-color: color-mix(in srgb, var(--muted) 16%, white 84%);
  color: var(--muted);
}

.staff-figma-shell .planner-flow-chip--absent {
  background: color-mix(in srgb, var(--accent) 10%, white 90%);
  border-color: color-mix(in srgb, var(--accent) 24%, white 76%);
  color: color-mix(in srgb, var(--accent) 74%, var(--text) 26%);
}

.staff-figma-shell .planner-flow-chip--cancelled {
  background: color-mix(in srgb, var(--urgent) 10%, white 90%);
  border-color: color-mix(in srgb, var(--urgent) 24%, white 76%);
  color: color-mix(in srgb, var(--urgent) 82%, var(--text) 18%);
}

.staff-figma-shell .planner-flow-chip--deleted {
  background: color-mix(in srgb, var(--muted) 12%, white 88%);
  border-color: color-mix(in srgb, var(--muted) 22%, white 78%);
  color: var(--muted);
}

.staff-figma-shell .planner-flow-detail {
  min-width: 0;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-figma-shell .planner-list-card__meta span {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.staff-figma-shell .planner-list-card__meta .planner-channel-icon {
  flex: 0 0 auto;
}

.staff-figma-shell .planner-list-card__actions {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.staff-figma-shell .planner-list-card__actions .planner-appointment__claim {
  min-height: 26px;
  padding: 0 9px;
}

.staff-figma-shell .planner-list-card__actions .planner-appointment__countdown {
  max-width: 92px;
  min-height: 22px;
  padding: 0 7px;
  font-size: 0.6rem;
}

.staff-figma-shell .planner-list-card.is-presence-match {
  border-color: color-mix(in srgb, var(--accent) 24%, white 76%);
  box-shadow: inset 4px 0 0 var(--accent);
}

.staff-figma-shell .planner-list-empty-slot {
  width: 100%;
  min-height: 42px;
  padding: 8px 11px;
  border: 1px dashed var(--staff-line-subtle);
  border-radius: 14px;
  background: color-mix(in srgb, var(--staff-call-console-soft-surface) 48%, white 52%);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.staff-figma-shell .planner-list-empty-slot span {
  font-size: 0.7rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.staff-figma-shell .planner-list-empty-slot strong {
  color: color-mix(in srgb, var(--muted) 60%, white 40%);
  font-size: 0.68rem;
  font-weight: 750;
}

.staff-figma-shell .planner-list-empty-slot:hover {
  border-color: color-mix(in srgb, var(--primary) 24%, white 76%);
  background: color-mix(in srgb, var(--primary-soft) 38%, white 62%);
}

.staff-figma-shell .planner-list-empty {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px dashed var(--staff-line-subtle);
  border-radius: 18px;
  background: color-mix(in srgb, var(--staff-call-console-soft-surface) 50%, white 50%);
  color: var(--muted);
}

.staff-figma-shell .planner-list-empty strong {
  color: var(--text);
  font-size: 0.88rem;
}

.staff-figma-shell .planner-list-empty--timeline {
  position: absolute;
  top: 14px;
  left: 164px;
  right: 14px;
  z-index: 8;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  pointer-events: none;
}

.staff-figma-shell .planner-viewport-now-line {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--planner-now-offset, 0);
  z-index: 9;
  height: 0;
  border-top: 2px solid var(--urgent);
  pointer-events: none;
  overflow-anchor: none;
  transform: translateY(-50%);
}

.staff-figma-shell .planner-viewport-now-line::before {
  content: "";
  position: absolute;
  left: 66px;
  top: -5px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--urgent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--urgent) 18%, white 82%);
}

.staff-figma-shell .planner-viewport-now-line span {
  position: absolute;
  left: 84px;
  top: -15px;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--urgent);
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(217, 110, 118, 0.2);
}

.staff-figma-shell .planner-button,
.staff-figma-shell .planner-appointment__claim,
.staff-figma-shell .planner-client-result,
.staff-figma-shell .planner-weekday-chip,
.staff-figma-shell .planner-context-action,
.staff-figma-shell .planner-icon-button {
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.staff-figma-shell .planner-button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--staff-line-subtle);
  background: #ffffff;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.staff-figma-shell .planner-button svg,
.staff-figma-shell .planner-channel-icon svg,
.staff-figma-shell .planner-context-action svg,
.staff-figma-shell .planner-input-shell__icon svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.staff-figma-shell .planner-button:hover:not(:disabled),
.staff-figma-shell .planner-icon-button:hover,
.staff-figma-shell .planner-client-result:hover,
.staff-figma-shell .planner-weekday-chip:hover,
.staff-figma-shell .planner-context-action:hover,
.staff-figma-shell .planner-appointment__claim:hover {
  transform: none;
}

.staff-figma-shell .planner-button:disabled,
.staff-figma-shell .planner-icon-button:disabled,
.staff-figma-shell .planner-context-action:disabled {
  opacity: 0.52;
  cursor: not-allowed;
  transform: none;
}

.staff-figma-shell .planner-button--primary {
  border-color: transparent;
  background: linear-gradient(
    180deg,
    var(--staff-button-primary-start) 0%,
    var(--staff-button-primary-end) 100%
  );
  color: #ffffff;
}

.staff-figma-shell .planner-button--secondary {
  border-color: var(--staff-line-subtle);
  background: color-mix(in srgb, var(--staff-call-console-soft-surface) 52%, white 48%);
  color: var(--text);
}

.staff-figma-shell .planner-button--ghost,
.staff-figma-shell .planner-button--neutral {
  background: #ffffff;
  color: var(--text);
}

.staff-figma-shell .planner-button--danger {
  border-color: transparent;
  background: linear-gradient(
    180deg,
    var(--staff-communication-end-start) 0%,
    var(--staff-communication-end-end) 100%
  );
  color: #ffffff;
}

.staff-figma-shell .planner-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.staff-figma-shell .planner-badge--neutral {
  background: color-mix(in srgb, var(--staff-call-console-soft-surface) 54%, white 46%);
  color: var(--muted);
}

.staff-figma-shell .planner-badge--success {
  background: color-mix(in srgb, var(--low) 12%, white 88%);
  color: color-mix(in srgb, var(--low) 82%, var(--text) 18%);
}

.staff-figma-shell .planner-badge--warning {
  background: color-mix(in srgb, var(--accent) 16%, white 84%);
  color: color-mix(in srgb, var(--high) 84%, var(--text) 16%);
}

.staff-figma-shell .planner-status-line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
}

.staff-figma-shell .planner-status-line--embedded {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  padding: 0;
}

.staff-figma-shell .planner-status-line__picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.staff-figma-shell .planner-date-picker__input {
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid var(--staff-line-subtle);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 700;
}

.staff-figma-shell .planner-status-line__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  justify-self: center;
}

.staff-figma-shell .planner-status-line__nav-button {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--staff-line-subtle);
  background: color-mix(in srgb, var(--staff-call-console-soft-surface) 52%, white 48%);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.staff-figma-shell .planner-status-line__day {
  text-align: center;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 700;
  white-space: nowrap;
}

.staff-figma-shell .planner-status-line__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 0.82rem;
}

.staff-figma-shell .planner-status-line--embedded .planner-status-line__meta {
  justify-content: flex-end;
  font-size: 0.78rem;
  white-space: nowrap;
}

.staff-figma-shell .planner-event-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--staff-call-console-soft-surface) 54%, white 46%);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
}

.staff-figma-shell .planner-event-time {
  color: color-mix(in srgb, var(--muted) 60%, white 40%);
  font-size: 0.74rem;
  font-weight: 700;
}

.staff-figma-shell .planner-status-line__message {
  max-width: 720px;
}

.staff-figma-shell .planner-status-line--embedded .planner-status-line__message {
  max-width: 520px;
}

.staff-figma-shell .planner-status-line__message--success {
  color: color-mix(in srgb, var(--low) 82%, var(--text) 18%);
}

.staff-figma-shell .planner-status-line__message--warning {
  color: color-mix(in srgb, var(--high) 84%, var(--text) 16%);
}

.staff-figma-shell .planner-status-line__message--error {
  color: color-mix(in srgb, var(--urgent) 84%, var(--text) 16%);
}

.staff-figma-shell .planner-sync-diagnostics {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--staff-line-subtle);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(248, 250, 252, 0.94), rgba(255, 255, 255, 0.98)),
    radial-gradient(circle at 8% 0%, rgba(14, 165, 233, 0.16), transparent 30%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.staff-figma-shell .planner-sync-diagnostics--success {
  border-color: color-mix(in srgb, var(--low) 24%, var(--staff-line-subtle) 76%);
}

.staff-figma-shell .planner-sync-diagnostics--warning {
  border-color: color-mix(in srgb, var(--high) 30%, var(--staff-line-subtle) 70%);
}

.staff-figma-shell .planner-sync-diagnostics--error {
  border-color: color-mix(in srgb, var(--urgent) 34%, var(--staff-line-subtle) 66%);
}

.staff-figma-shell .planner-sync-diagnostics__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.staff-figma-shell .planner-sync-diagnostics__eyebrow {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.staff-figma-shell .planner-sync-diagnostics h2 {
  margin: 2px 0 0;
  color: var(--text);
  font-size: 1rem;
}

.staff-figma-shell .planner-sync-diagnostics__refresh {
  min-height: 38px;
}

.staff-figma-shell .planner-sync-diagnostics__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.staff-figma-shell .planner-sync-diagnostics__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.staff-figma-shell .planner-sync-diagnostics__metric {
  display: grid;
  gap: 5px;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--staff-line-subtle);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.staff-figma-shell .planner-sync-diagnostics__metric span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.staff-figma-shell .planner-sync-diagnostics__metric strong {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.3;
}

.staff-figma-shell .planner-sync-diagnostics__metric--success strong {
  color: color-mix(in srgb, var(--low) 82%, var(--text) 18%);
}

.staff-figma-shell .planner-sync-diagnostics__metric--warning strong {
  color: color-mix(in srgb, var(--high) 84%, var(--text) 16%);
}

.staff-figma-shell .planner-sync-diagnostics__metric--error strong {
  color: color-mix(in srgb, var(--urgent) 84%, var(--text) 16%);
}

.staff-figma-shell .planner-sync-diagnostics__notes {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--staff-call-console-soft-surface) 52%, white 48%);
}

.staff-figma-shell .planner-sync-diagnostics__notes p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.staff-figma-shell .planner-diagnostic-log {
  display: grid;
  gap: 6px;
  max-height: 260px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--staff-line-subtle);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.staff-figma-shell .planner-diagnostic-log--empty {
  color: var(--muted);
  font-size: 0.84rem;
}

.staff-figma-shell .planner-diagnostic-log__row {
  display: grid;
  grid-template-columns: 76px minmax(160px, 240px) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 32px;
  padding: 7px 9px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.76rem;
  background: color-mix(in srgb, var(--staff-call-console-soft-surface) 44%, white 56%);
}

.staff-figma-shell .planner-diagnostic-log__row time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.staff-figma-shell .planner-diagnostic-log__row strong {
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 750;
}

.staff-figma-shell .planner-diagnostic-log__row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-figma-shell .planner-diagnostic-log__row--success {
  border-left: 3px solid color-mix(in srgb, var(--low) 76%, white 24%);
}

.staff-figma-shell .planner-diagnostic-log__row--warning {
  border-left: 3px solid color-mix(in srgb, var(--high) 76%, white 24%);
}

.staff-figma-shell .planner-diagnostic-log__row--error {
  border-left: 3px solid color-mix(in srgb, var(--urgent) 76%, white 24%);
}

@media (max-width: 760px) {
  .staff-figma-shell .planner-diagnostic-log__row {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .staff-figma-shell .planner-diagnostic-log__row span {
    grid-column: 1 / -1;
    white-space: normal;
  }
}

.staff-figma-shell .planner-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.staff-figma-shell .planner-summary-card {
  padding: 18px 18px 16px;
  display: grid;
  gap: 8px;
}

.staff-figma-shell .planner-summary-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.staff-figma-shell .planner-summary-value {
  color: var(--text);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}

.staff-figma-shell .planner-summary-copy {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.staff-figma-shell .planner-board-card {
  padding: 12px;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: none;
}

.staff-figma-shell .planner-day-list-card {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.staff-figma-shell .planner-day-list-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 0 2px;
}

.staff-figma-shell .planner-day-list-card__header h2 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.2;
}

.staff-figma-shell .planner-day-list-card__header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.staff-figma-shell .planner-slot-list-shell {
  height: min(720px, max(540px, calc(100vh - 300px)));
  min-height: 360px;
  overflow: auto;
  border: 1px solid var(--staff-line-subtle);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--staff-call-console-soft-surface) 30%, white 70%) 100%);
  scrollbar-gutter: stable;
}

.staff-figma-shell .planner-slot-list {
  display: grid;
  gap: 16px;
  padding: 14px;
}

.staff-figma-shell .planner-slot-group {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.staff-figma-shell .planner-slot-group__time {
  display: grid;
  align-content: start;
  gap: 6px;
  padding-top: 8px;
}

.staff-figma-shell .planner-slot-group__time-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
}

.staff-figma-shell .planner-slot-group__now {
  width: fit-content;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--urgent);
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 8px 18px rgba(217, 110, 118, 0.18);
}

.staff-figma-shell .planner-slot-group__items {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.staff-figma-shell .planner-slot-group.is-current-slot .planner-slot-group__time-label {
  color: color-mix(in srgb, var(--urgent) 86%, var(--text) 14%);
}

.staff-figma-shell .planner-slot-group.is-current-slot .planner-slot-group__items {
  position: relative;
}

.staff-figma-shell .planner-slot-group.is-current-slot .planner-slot-group__items::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 999px;
  background: var(--urgent);
}

.staff-figma-shell .planner-slot-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 60px;
  padding: 9px 11px;
  border: 1px solid var(--staff-line-subtle);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--staff-call-console-soft-surface) 22%, white 78%) 100%);
  box-shadow: inset 4px 0 0 color-mix(in srgb, var(--primary) 18%, white 82%);
  overflow: hidden;
}

.staff-figma-shell .planner-slot-card__main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.staff-figma-shell .planner-slot-card__title-row,
.staff-figma-shell .planner-slot-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.staff-figma-shell .planner-slot-card__title-row {
  justify-content: space-between;
}

.staff-figma-shell .planner-slot-card__title {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-figma-shell .planner-slot-card__meta {
  flex-wrap: nowrap;
  color: var(--muted);
  font-size: 0.68rem;
  overflow: hidden;
  white-space: nowrap;
}

.staff-figma-shell .planner-slot-card__meta span {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.staff-figma-shell .planner-slot-card__meta .planner-channel-icon {
  flex: 0 0 auto;
}

.staff-figma-shell .planner-slot-card__actions {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.staff-figma-shell .planner-slot-card__actions .planner-appointment__claim {
  min-height: 26px;
  padding: 0 9px;
}

.staff-figma-shell .planner-slot-card__actions .planner-appointment__countdown {
  max-width: 92px;
  min-height: 22px;
  padding: 0 7px;
  font-size: 0.6rem;
}

.staff-figma-shell .planner-slot-card.is-presence-match {
  border-color: color-mix(in srgb, var(--accent) 24%, white 76%);
  box-shadow: inset 4px 0 0 var(--accent);
}

.staff-figma-shell .planner-slot-list__empty {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px dashed var(--staff-line-subtle);
  border-radius: 18px;
  background: color-mix(in srgb, var(--staff-call-console-soft-surface) 50%, white 50%);
  color: var(--muted);
}

.staff-figma-shell .planner-slot-list__empty strong {
  color: var(--text);
  font-size: 0.88rem;
}

.staff-figma-shell .planner-day-timeline-shell {
  position: relative;
  height: min(560px, max(380px, calc(100vh - 320px)));
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--staff-line-subtle);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--staff-call-console-soft-surface) 30%, white 70%) 100%);
}

.staff-figma-shell .planner-day-moving-layer {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  min-height: var(--planner-day-list-height, auto);
  padding: 0 12px;
  box-sizing: border-box;
}

.staff-figma-shell .planner-day-timeline {
  position: relative;
  min-height: var(--planner-day-list-height, auto);
  border-right: 1px solid var(--staff-line-subtle);
}

.staff-figma-shell .planner-day-timeline__tick {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  color: color-mix(in srgb, var(--muted) 60%, white 40%);
  font-size: 0.66rem;
  font-weight: 750;
  transform: translateY(-50%);
}

.staff-figma-shell .planner-day-timeline__tick::after {
  content: "";
  position: absolute;
  right: -5px;
  width: 9px;
  height: 1px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--staff-line-subtle) 84%, white 16%);
}

.staff-figma-shell .planner-day-timeline__tick.is-major {
  color: var(--text);
  font-size: 0.72rem;
}

.staff-figma-shell .planner-day-timeline__tick.is-major::after {
  right: -7px;
  width: 13px;
  height: 2px;
  background: color-mix(in srgb, var(--muted) 72%, white 28%);
}

.staff-figma-shell .planner-day-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.staff-figma-shell .planner-day-list__appointment,
.staff-figma-shell .planner-day-list__gap {
  width: 100%;
  box-sizing: border-box;
  border-radius: 16px;
}

.staff-figma-shell .planner-day-list__appointment {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 56px;
  padding: 7px 11px;
  border: 1px solid var(--staff-line-subtle);
  background: linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--staff-call-console-soft-surface) 22%, white 78%) 100%);
  box-shadow: inset 4px 0 0 color-mix(in srgb, var(--primary) 18%, white 82%);
  overflow: hidden;
}

.staff-figma-shell .planner-day-list__appointment.is-presence-match {
  border-color: color-mix(in srgb, var(--accent) 24%, white 76%);
  box-shadow: inset 4px 0 0 var(--accent);
}

.staff-figma-shell .planner-day-list__time {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
}

.staff-figma-shell .planner-day-list__time strong,
.staff-figma-shell .planner-day-list__time span {
  display: block;
}

.staff-figma-shell .planner-day-list__time span {
  color: color-mix(in srgb, var(--muted) 60%, white 40%);
  font-weight: 650;
}

.staff-figma-shell .planner-day-list__main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.staff-figma-shell .planner-day-list__title-row,
.staff-figma-shell .planner-day-list__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.staff-figma-shell .planner-day-list__title-row {
  justify-content: space-between;
}

.staff-figma-shell .planner-day-list__title {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-figma-shell .planner-day-list__meta {
  flex-wrap: nowrap;
  color: var(--muted);
  font-size: 0.68rem;
  overflow: hidden;
  white-space: nowrap;
}

.staff-figma-shell .planner-day-list__meta span {
  flex: 0 0 auto;
}

.staff-figma-shell .planner-day-list__meta span:not(.planner-channel-icon) {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.staff-figma-shell .planner-day-list__note {
  display: none;
}

.staff-figma-shell .planner-day-list__actions {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.staff-figma-shell .planner-day-list__actions .planner-appointment__claim {
  min-height: 26px;
  padding: 0 9px;
}

.staff-figma-shell .planner-day-list__actions .planner-appointment__countdown {
  max-width: 92px;
  min-height: 22px;
  padding: 0 7px;
  font-size: 0.6rem;
}

.staff-figma-shell .planner-day-list__gap {
  display: grid;
  grid-template-columns: 76px minmax(80px, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 7px 12px;
  border: 1px dashed var(--staff-line-subtle);
  background: color-mix(in srgb, var(--staff-call-console-soft-surface) 50%, white 50%);
  color: var(--muted);
  cursor: pointer;
}

.staff-figma-shell .planner-day-list__gap:hover {
  border-color: color-mix(in srgb, var(--primary) 24%, white 76%);
  background: color-mix(in srgb, var(--primary-soft) 38%, white 62%);
}

.staff-figma-shell .planner-day-list__gap-line {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--staff-line-subtle) 84%, white 16%) 18%, color-mix(in srgb, var(--staff-line-subtle) 84%, white 16%) 82%, transparent 100%);
}

.staff-figma-shell .planner-day-list__gap-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.staff-figma-shell .planner-day-now-line {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--planner-day-now-top, 0px);
  z-index: 5;
  height: 0;
  border-top: 2px solid var(--urgent);
  pointer-events: none;
  transform: translateY(-50%);
}

.staff-figma-shell .planner-day-now-line::before {
  content: "";
  position: absolute;
  left: 66px;
  top: -5px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--urgent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--urgent) 18%, white 82%);
}

.staff-figma-shell .planner-day-now-line span {
  position: absolute;
  left: 82px;
  top: -15px;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--urgent);
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(217, 110, 118, 0.2);
}

.staff-figma-shell .planner-board {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  grid-template-rows: 38px auto;
  gap: 0;
  height: min(720px, max(540px, calc(100vh - 300px)));
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.staff-figma-shell .planner-board__corner {
  grid-column: 1;
  grid-row: 1;
  border: 1px solid var(--staff-line-subtle);
  border-right: 0;
  border-radius: 14px 0 0 0;
  background: color-mix(in srgb, var(--staff-call-console-soft-surface) 68%, white 32%);
}

.staff-figma-shell .planner-board__scroll {
  grid-column: 2;
  grid-row: 1 / span 2;
  overflow-x: auto;
  overflow-y: hidden;
  overflow-y: clip;
  scrollbar-gutter: stable;
}

.staff-figma-shell .planner-board__track {
  min-width: 100%;
  display: grid;
  grid-template-rows: 38px auto;
}

.staff-figma-shell .planner-board__lane-head {
  display: grid;
  gap: 0;
}

.staff-figma-shell .planner-board__lane-label {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--staff-line-subtle);
  border-left: 0;
  border-radius: 0;
  background: color-mix(in srgb, var(--staff-call-console-soft-surface) 68%, white 32%);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 750;
  display: flex;
  align-items: center;
  justify-content: center;
}

.staff-figma-shell .planner-board__lane-label:last-child {
  border-radius: 0 14px 0 0;
}

.staff-figma-shell .planner-board__time-window {
  position: relative;
  grid-column: 1;
  grid-row: 2;
  border-left: 1px solid var(--staff-line-subtle);
  border-bottom: 1px solid var(--staff-line-subtle);
  border-radius: 0 0 0 14px;
  background: #ffffff;
  overflow: hidden;
}

.staff-figma-shell .planner-board__time-column {
  display: grid;
  grid-auto-rows: 56px;
  min-height: var(--planner-board-grid-height, auto);
}

.staff-figma-shell .planner-board-card.is-live-now .planner-board__time-column,
.staff-figma-shell .planner-board-card.is-live-now .planner-board__grid {
  position: relative;
  transform: none;
  animation: none;
  will-change: auto;
}

.staff-figma-shell .planner-time-row {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 0 8px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  border-top: 1px dotted rgba(226, 232, 240, 0.55);
}

.staff-figma-shell .planner-time-row.is-quarter,
.staff-figma-shell .planner-time-row.is-half-hour {
  border-top-style: solid;
  border-top-color: rgba(203, 213, 225, 0.62);
  color: var(--muted);
}

.staff-figma-shell .planner-time-row.is-hour {
  border-top-style: solid;
  border-top-color: rgba(148, 163, 184, 0.58);
  color: var(--text);
  font-weight: 800;
}

.staff-figma-shell .planner-board__grid-window {
  position: relative;
  border-right: 1px solid var(--staff-line-subtle);
  border-bottom: 1px solid var(--staff-line-subtle);
  border-left: 1px solid var(--staff-line-subtle);
  border-radius: 0 0 14px 0;
  overflow: hidden;
  background: #ffffff;
}

.staff-figma-shell .planner-board__grid {
  position: relative;
  min-height: var(--planner-board-grid-height, auto);
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 179px,
      rgba(203, 213, 225, 0.54) 179px,
      rgba(203, 213, 225, 0.54) 180px
    ),
    #ffffff;
}

.staff-figma-shell .planner-board__now-overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: 38px;
  height: var(--planner-board-grid-height, 0px);
  z-index: 8;
  pointer-events: none;
}

.staff-figma-shell .planner-board-now-line {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--planner-board-now-top, 0px);
  height: 0;
  border-top: 2px solid var(--urgent);
  transform: translateY(-50%);
}

.staff-figma-shell .planner-board-now-line::before {
  content: "";
  position: absolute;
  left: 66px;
  top: -5px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--urgent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--urgent) 18%, white 82%);
}

.staff-figma-shell .planner-board-now-line span {
  position: absolute;
  left: 84px;
  top: -15px;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--urgent);
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(217, 110, 118, 0.2);
}

.staff-figma-shell .planner-grid-row {
  height: 56px;
  border-top: 1px dotted rgba(226, 232, 240, 0.55);
}

.staff-figma-shell .planner-grid-row.is-half-hour {
  border-top-style: solid;
  border-top-color: rgba(179, 191, 209, 0.66);
}

.staff-figma-shell .planner-grid-row.is-quarter {
  border-top-style: solid;
  border-top-color: rgba(203, 213, 225, 0.62);
}

.staff-figma-shell .planner-grid-row.is-hour {
  border-top-style: solid;
  border-top-color: rgba(148, 163, 184, 0.46);
  background: rgba(248, 250, 252, 0.42);
}

.staff-figma-shell .planner-appointment {
  position: absolute;
  z-index: 2;
  display: flex;
  min-width: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle) 78%, var(--muted) 22%);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.staff-figma-shell .planner-appointment.has-label-color {
  border-color: var(--planner-series-label-border);
  box-shadow:
    0 0 0 1px var(--planner-series-label-soft),
    0 6px 14px rgba(15, 23, 42, 0.06);
}

.staff-figma-shell .planner-appointment__accent {
  width: 4px;
  flex: 0 0 auto;
  background: color-mix(in srgb, var(--muted) 56%, white 44%);
}

.staff-figma-shell .planner-appointment.has-label-color .planner-appointment__accent {
  background: var(--planner-series-label-color);
}

.staff-figma-shell .planner-appointment__body {
  width: 100%;
  min-width: 0;
  padding: 7px 8px;
  display: grid;
  align-content: start;
  gap: 4px;
}

.staff-figma-shell .planner-appointment__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.staff-figma-shell .planner-appointment__title {
  min-width: 0;
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.staff-figma-shell .planner-appointment__time {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  white-space: nowrap;
}

.staff-figma-shell .planner-appointment__meta {
  color: var(--muted);
  font-size: 0.62rem;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex-wrap: nowrap;
  overflow: hidden;
}

.staff-figma-shell .planner-appointment__status-chip {
  max-width: 100%;
  padding: 1px 5px;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text);
  background: color-mix(in srgb, var(--staff-call-console-soft-surface) 60%, white 40%);
  border: 1px solid var(--staff-line-subtle);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.staff-figma-shell .planner-appointment__status-chip--scheduled {
  background: color-mix(in srgb, var(--staff-call-console-soft-surface) 60%, white 40%);
  border-color: var(--staff-line-subtle);
  color: var(--text);
}

.staff-figma-shell .planner-appointment__status-chip--waiting {
  background: color-mix(in srgb, var(--accent) 16%, white 84%);
  border-color: color-mix(in srgb, var(--accent) 28%, white 72%);
  color: color-mix(in srgb, var(--high) 84%, var(--text) 16%);
}

.staff-figma-shell .planner-appointment__status-chip--claimed {
  background: color-mix(in srgb, var(--primary-soft) 72%, white 28%);
  border-color: color-mix(in srgb, var(--primary) 22%, white 78%);
  color: color-mix(in srgb, var(--primary) 70%, var(--text) 30%);
}

.staff-figma-shell .planner-appointment__status-chip--active {
  background: color-mix(in srgb, var(--low) 14%, white 86%);
  border-color: color-mix(in srgb, var(--low) 28%, white 72%);
  color: color-mix(in srgb, var(--low) 84%, var(--text) 16%);
}

.staff-figma-shell .planner-appointment__status-chip--callback {
  background: color-mix(in srgb, var(--accent) 18%, white 82%);
  border-color: color-mix(in srgb, var(--accent) 32%, white 68%);
  color: color-mix(in srgb, var(--accent) 86%, var(--text) 14%);
}

.staff-figma-shell .planner-appointment__status-chip--completed {
  background: color-mix(in srgb, var(--staff-call-console-soft-surface) 68%, white 32%);
  border-color: color-mix(in srgb, var(--muted) 16%, white 84%);
  color: var(--muted);
}

.staff-figma-shell .planner-appointment__status-chip--absent {
  background: color-mix(in srgb, var(--accent) 10%, white 90%);
  border-color: color-mix(in srgb, var(--accent) 24%, white 76%);
  color: color-mix(in srgb, var(--accent) 74%, var(--text) 26%);
}

.staff-figma-shell .planner-appointment__status-chip--cancelled {
  background: color-mix(in srgb, var(--urgent) 10%, white 90%);
  border-color: color-mix(in srgb, var(--urgent) 24%, white 76%);
  color: color-mix(in srgb, var(--urgent) 82%, var(--text) 18%);
}

.staff-figma-shell .planner-appointment__status-chip--deleted {
  background: color-mix(in srgb, var(--muted) 12%, white 88%);
  border-color: color-mix(in srgb, var(--muted) 22%, white 78%);
  color: var(--muted);
}

.staff-figma-shell .planner-appointment__coordination {
  min-width: 0;
}

.staff-figma-shell .planner-appointment__coordination .planner-flow-chip {
  min-height: 22px;
  padding: 0 7px;
  font-size: 0.62rem;
}

.staff-figma-shell .planner-appointment__coordination .planner-flow-detail {
  font-size: 0.62rem;
}

.staff-figma-shell .planner-appointment__claimed-by {
  color: var(--text);
  font-weight: 700;
}

.staff-figma-shell .planner-appointment__note {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.staff-figma-shell .planner-appointment__claim {
  width: fit-content;
  max-width: 100%;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--low) 24%, white 76%);
  background: color-mix(in srgb, var(--low) 12%, white 88%);
  color: color-mix(in srgb, var(--low) 82%, var(--text) 18%);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.staff-figma-shell .planner-appointment__countdown {
  width: fit-content;
  max-width: 100%;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--staff-info-blue-surface) 82%, white 18%);
  color: var(--staff-info-blue-text);
  font-size: 0.66rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.staff-figma-shell .planner-appointment.is-small .planner-appointment__note,
.staff-figma-shell .planner-appointment.is-compact .planner-appointment__meta,
.staff-figma-shell .planner-appointment.is-compact .planner-appointment__coordination,
.staff-figma-shell .planner-appointment.is-compact .planner-appointment__note,
.staff-figma-shell .planner-appointment.is-compact .planner-appointment__claim,
.staff-figma-shell .planner-appointment.is-compact .planner-appointment__countdown {
  display: none;
}

.staff-figma-shell .planner-appointment.is-compact .planner-appointment__body {
  align-content: center;
  padding: 4px 7px;
}

.staff-figma-shell .planner-appointment.is-compact .planner-appointment__title {
  font-size: 0.68rem;
}

.staff-figma-shell .planner-appointment.is-compact .planner-appointment__time {
  font-size: 0.58rem;
}

.staff-figma-shell .planner-channel-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--staff-info-blue-surface) 82%, white 18%);
  color: var(--staff-info-blue-text);
}

.staff-figma-shell .planner-channel-icon--phone {
  background: color-mix(in srgb, var(--low) 12%, white 88%);
  color: color-mix(in srgb, var(--low) 82%, var(--text) 18%);
}

.staff-figma-shell .planner-appointment--planned .planner-appointment__accent {
  background: color-mix(in srgb, var(--muted) 56%, white 44%);
}

.staff-figma-shell .planner-appointment--action {
  background: linear-gradient(180deg, color-mix(in srgb, var(--low) 10%, white 90%) 0%, #ffffff 100%);
}

.staff-figma-shell .planner-appointment--action .planner-appointment__accent {
  background: color-mix(in srgb, var(--low) 82%, var(--text) 18%);
}

.staff-figma-shell .planner-appointment--present {
  background: linear-gradient(180deg, color-mix(in srgb, var(--staff-info-blue-surface) 78%, white 22%) 0%, #ffffff 100%);
}

.staff-figma-shell .planner-appointment--present .planner-appointment__accent {
  background: var(--staff-info-blue-text);
}

.staff-figma-shell .planner-appointment--claimed {
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary-soft) 72%, white 28%) 0%, #ffffff 100%);
}

.staff-figma-shell .planner-appointment--claimed .planner-appointment__accent {
  background: color-mix(in srgb, var(--primary) 64%, var(--text) 36%);
}

.staff-figma-shell .planner-appointment--active {
  background: linear-gradient(180deg, color-mix(in srgb, var(--low) 12%, white 88%) 0%, #ffffff 100%);
}

.staff-figma-shell .planner-appointment--active .planner-appointment__accent {
  background: color-mix(in srgb, var(--low) 82%, var(--text) 18%);
}

.staff-figma-shell .planner-appointment--callback {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 12%, white 88%) 0%, #ffffff 100%);
}

.staff-figma-shell .planner-appointment--callback .planner-appointment__accent {
  background: color-mix(in srgb, var(--accent) 82%, var(--text) 18%);
}

.staff-figma-shell .planner-appointment--completed {
  background: linear-gradient(180deg, color-mix(in srgb, var(--staff-call-console-soft-surface) 58%, white 42%) 0%, #ffffff 100%);
}

.staff-figma-shell .planner-appointment--completed .planner-appointment__accent {
  background: var(--muted);
}

.staff-figma-shell .planner-appointment--absent {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, white 92%) 0%, #ffffff 100%);
  opacity: 0.88;
}

.staff-figma-shell .planner-appointment--absent .planner-appointment__accent {
  background: color-mix(in srgb, var(--accent) 70%, var(--text) 30%);
}

.staff-figma-shell .planner-appointment--cancelled {
  background: linear-gradient(180deg, color-mix(in srgb, var(--urgent) 10%, white 90%) 0%, #ffffff 100%);
  opacity: 0.84;
}

.staff-figma-shell .planner-appointment--cancelled .planner-appointment__accent {
  background: var(--urgent);
}

.staff-figma-shell .planner-appointment--deleted {
  background: linear-gradient(180deg, color-mix(in srgb, var(--staff-call-console-soft-surface) 72%, white 28%) 0%, #ffffff 100%);
  opacity: 0.72;
}

.staff-figma-shell .planner-appointment--deleted .planner-appointment__accent {
  background: var(--muted);
}

.staff-figma-shell .planner-appointment.is-presence-match {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 18%, white 82%), 0 10px 24px rgba(15, 23, 42, 0.08);
}

.staff-figma-shell .planner-appointment.is-claim-locked::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(148, 163, 184, 0.18)),
    repeating-linear-gradient(
      -45deg,
      rgba(15, 23, 42, 0.04) 0,
      rgba(15, 23, 42, 0.04) 6px,
      rgba(255, 255, 255, 0.08) 6px,
      rgba(255, 255, 255, 0.08) 12px
    );
  pointer-events: none;
  z-index: 1;
}

.staff-figma-shell .planner-appointment.is-claim-locked .planner-appointment__body {
  position: relative;
  z-index: 2;
}

.staff-figma-shell .planner-day-list__appointment.planner-appointment--planned {
  background: #ffffff;
  box-shadow: inset 4px 0 0 color-mix(in srgb, var(--muted) 56%, white 44%);
}

.staff-figma-shell .planner-list-card.planner-appointment--planned {
  background: #ffffff;
  box-shadow: inset 4px 0 0 color-mix(in srgb, var(--muted) 56%, white 44%);
}

.staff-figma-shell .planner-slot-card.planner-appointment--planned {
  background: #ffffff;
  box-shadow: inset 4px 0 0 color-mix(in srgb, var(--muted) 56%, white 44%);
}

.staff-figma-shell .planner-day-list__appointment.planner-appointment--action {
  background: linear-gradient(180deg, color-mix(in srgb, var(--low) 10%, white 90%) 0%, #ffffff 100%);
  box-shadow: inset 4px 0 0 color-mix(in srgb, var(--low) 82%, var(--text) 18%);
}

.staff-figma-shell .planner-list-card.planner-appointment--action {
  background: linear-gradient(180deg, color-mix(in srgb, var(--low) 10%, white 90%) 0%, #ffffff 100%);
  box-shadow: inset 4px 0 0 color-mix(in srgb, var(--low) 82%, var(--text) 18%);
}

.staff-figma-shell .planner-slot-card.planner-appointment--action {
  background: linear-gradient(180deg, color-mix(in srgb, var(--low) 10%, white 90%) 0%, #ffffff 100%);
  box-shadow: inset 4px 0 0 color-mix(in srgb, var(--low) 82%, var(--text) 18%);
}

.staff-figma-shell .planner-day-list__appointment.planner-appointment--present {
  background: linear-gradient(180deg, color-mix(in srgb, var(--staff-info-blue-surface) 78%, white 22%) 0%, #ffffff 100%);
  box-shadow: inset 4px 0 0 var(--staff-info-blue-text);
}

.staff-figma-shell .planner-list-card.planner-appointment--present {
  background: linear-gradient(180deg, color-mix(in srgb, var(--staff-info-blue-surface) 78%, white 22%) 0%, #ffffff 100%);
  box-shadow: inset 4px 0 0 var(--staff-info-blue-text);
}

.staff-figma-shell .planner-slot-card.planner-appointment--present {
  background: linear-gradient(180deg, color-mix(in srgb, var(--staff-info-blue-surface) 78%, white 22%) 0%, #ffffff 100%);
  box-shadow: inset 4px 0 0 var(--staff-info-blue-text);
}

.staff-figma-shell .planner-day-list__appointment.planner-appointment--claimed {
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary-soft) 72%, white 28%) 0%, #ffffff 100%);
  box-shadow: inset 4px 0 0 color-mix(in srgb, var(--primary) 64%, var(--text) 36%);
}

.staff-figma-shell .planner-list-card.planner-appointment--claimed {
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary-soft) 72%, white 28%) 0%, #ffffff 100%);
  box-shadow: inset 4px 0 0 color-mix(in srgb, var(--primary) 64%, var(--text) 36%);
}

.staff-figma-shell .planner-slot-card.planner-appointment--claimed {
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary-soft) 72%, white 28%) 0%, #ffffff 100%);
  box-shadow: inset 4px 0 0 color-mix(in srgb, var(--primary) 64%, var(--text) 36%);
}

.staff-figma-shell .planner-day-list__appointment.planner-appointment--active {
  background: linear-gradient(180deg, color-mix(in srgb, var(--low) 12%, white 88%) 0%, #ffffff 100%);
  box-shadow: inset 4px 0 0 color-mix(in srgb, var(--low) 82%, var(--text) 18%);
}

.staff-figma-shell .planner-list-card.planner-appointment--active {
  background: linear-gradient(180deg, color-mix(in srgb, var(--low) 12%, white 88%) 0%, #ffffff 100%);
  box-shadow: inset 4px 0 0 color-mix(in srgb, var(--low) 82%, var(--text) 18%);
}

.staff-figma-shell .planner-slot-card.planner-appointment--active {
  background: linear-gradient(180deg, color-mix(in srgb, var(--low) 12%, white 88%) 0%, #ffffff 100%);
  box-shadow: inset 4px 0 0 color-mix(in srgb, var(--low) 82%, var(--text) 18%);
}

.staff-figma-shell .planner-day-list__appointment.planner-appointment--callback {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 12%, white 88%) 0%, #ffffff 100%);
  box-shadow: inset 4px 0 0 color-mix(in srgb, var(--accent) 82%, var(--text) 18%);
}

.staff-figma-shell .planner-list-card.planner-appointment--callback {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 12%, white 88%) 0%, #ffffff 100%);
  box-shadow: inset 4px 0 0 color-mix(in srgb, var(--accent) 82%, var(--text) 18%);
}

.staff-figma-shell .planner-slot-card.planner-appointment--callback {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 12%, white 88%) 0%, #ffffff 100%);
  box-shadow: inset 4px 0 0 color-mix(in srgb, var(--accent) 82%, var(--text) 18%);
}

.staff-figma-shell .planner-day-list__appointment.planner-appointment--completed {
  background: linear-gradient(180deg, color-mix(in srgb, var(--staff-call-console-soft-surface) 58%, white 42%) 0%, #ffffff 100%);
  box-shadow: inset 4px 0 0 var(--muted);
}

.staff-figma-shell .planner-list-card.planner-appointment--completed {
  background: linear-gradient(180deg, color-mix(in srgb, var(--staff-call-console-soft-surface) 58%, white 42%) 0%, #ffffff 100%);
  box-shadow: inset 4px 0 0 var(--muted);
}

.staff-figma-shell .planner-slot-card.planner-appointment--completed {
  background: linear-gradient(180deg, color-mix(in srgb, var(--staff-call-console-soft-surface) 58%, white 42%) 0%, #ffffff 100%);
  box-shadow: inset 4px 0 0 var(--muted);
}

.staff-figma-shell .planner-day-list__appointment.planner-appointment--cancelled {
  background: linear-gradient(180deg, color-mix(in srgb, var(--urgent) 10%, white 90%) 0%, #ffffff 100%);
  box-shadow: inset 4px 0 0 var(--urgent);
  opacity: 0.84;
}

.staff-figma-shell .planner-list-card.planner-appointment--cancelled {
  background: linear-gradient(180deg, color-mix(in srgb, var(--urgent) 10%, white 90%) 0%, #ffffff 100%);
  box-shadow: inset 4px 0 0 var(--urgent);
  opacity: 0.84;
}

.staff-figma-shell .planner-slot-card.planner-appointment--cancelled {
  background: linear-gradient(180deg, color-mix(in srgb, var(--urgent) 10%, white 90%) 0%, #ffffff 100%);
  box-shadow: inset 4px 0 0 var(--urgent);
  opacity: 0.84;
}

.staff-figma-shell .planner-day-list__appointment.is-presence-match {
  box-shadow: inset 4px 0 0 var(--accent);
}

.staff-webphone-root--planner-single-screen .staff-figma-shell .planner-appointment__claimed-by,
.staff-webphone-root--planner-single-screen .staff-figma-shell .planner-appointment__note {
  display: none;
}

.staff-webphone-root--planner-single-screen:not(.is-planner-sidebar-visible) .staff-figma-shell .page-shell {
  padding-right: 24px;
}

.staff-figma-shell .planner-input-shell {
  position: relative;
}

.staff-figma-shell .planner-input-shell__icon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: color-mix(in srgb, var(--muted) 60%, white 40%);
  pointer-events: none;
}

.staff-figma-shell .planner-field {
  display: grid;
  gap: 8px;
}

.staff-figma-shell .planner-field__label {
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
}

.staff-figma-shell .planner-choice-field {
  align-content: start;
}

.staff-figma-shell .planner-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.staff-figma-shell .planner-choice-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.staff-figma-shell .planner-choice-card {
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid var(--staff-line-subtle);
  border-radius: 14px;
  background: #ffffff;
  color: var(--text);
  display: grid;
  gap: 3px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.staff-figma-shell .planner-choice-card strong {
  font-size: 0.82rem;
  line-height: 1.2;
}

.staff-figma-shell .planner-choice-card span {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.25;
}

.staff-figma-shell .planner-choice-card:hover,
.staff-figma-shell .planner-choice-card:focus-visible {
  border-color: color-mix(in srgb, var(--primary) 34%, white 66%);
  outline: none;
}

.staff-figma-shell .planner-choice-card.is-selected {
  border-color: color-mix(in srgb, var(--primary) 64%, white 36%);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--primary) 10%, white 90%) 0%, #ffffff 100%);
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--primary) 16%, white 84%),
    0 12px 26px rgba(15, 23, 42, 0.08);
}

.staff-figma-shell .planner-choice-card.is-selected strong {
  color: color-mix(in srgb, var(--primary) 72%, var(--text) 28%);
}

.staff-figma-shell .planner-input,
.staff-figma-shell .planner-field select,
.staff-figma-shell .planner-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--staff-line-subtle);
  border-radius: 14px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  outline: none;
}

.staff-figma-shell .planner-input:focus,
.staff-figma-shell .planner-field select:focus,
.staff-figma-shell .planner-field textarea:focus {
  border-color: color-mix(in srgb, var(--primary) 40%, white 60%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, white 86%);
}

.staff-figma-shell .planner-select {
  min-height: 46px;
  padding-right: 42px;
  appearance: none;
  cursor: pointer;
  background-color: #ffffff;
  background-image:
    linear-gradient(45deg, transparent 50%, #728191 50%),
    linear-gradient(135deg, #728191 50%, transparent 50%),
    linear-gradient(180deg, color-mix(in srgb, var(--staff-call-console-soft-surface) 42%, white 58%) 0%, #ffffff 100%);
  background-position:
    calc(100% - 19px) 52%,
    calc(100% - 13px) 52%,
    0 0;
  background-size:
    6px 6px,
    6px 6px,
    100% 100%;
  background-repeat: no-repeat;
  font-weight: 700;
}

.staff-figma-shell .planner-select:hover {
  border-color: color-mix(in srgb, var(--primary) 24%, white 76%);
}

.staff-figma-shell .planner-input-shell .planner-input {
  padding-left: 42px;
}

.staff-figma-shell .planner-picker-field {
  position: relative;
}

.staff-figma-shell .planner-picker-field .planner-input {
  padding-right: 50px;
}

.staff-figma-shell .planner-picker-button {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 32px;
  height: 32px;
  transform: translateY(-50%);
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle) 86%, white 14%);
  border-radius: 10px;
  background: color-mix(in srgb, var(--staff-call-console-soft-surface) 52%, white 48%);
  color: color-mix(in srgb, var(--text) 76%, white 24%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.staff-figma-shell .planner-picker-button:hover {
  border-color: color-mix(in srgb, var(--primary) 24%, white 76%);
  color: var(--primary);
}

.staff-figma-shell .planner-picker-button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--primary) 36%, white 64%);
  outline-offset: 2px;
}

.staff-figma-shell .planner-picker-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.staff-figma-shell .planner-input--textarea,
.staff-figma-shell .planner-field textarea {
  min-height: 100px;
  padding: 12px 14px;
  resize: vertical;
}

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

.staff-figma-shell .planner-form-grid--series {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.staff-figma-shell .planner-note-card {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--staff-line-subtle);
  background: color-mix(in srgb, var(--staff-call-console-soft-surface) 52%, white 48%);
  display: grid;
  gap: 4px;
}

.staff-figma-shell .planner-note-card strong {
  color: var(--text);
  font-size: 0.86rem;
}

.staff-figma-shell .planner-note-card span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.staff-figma-shell .planner-time-entry {
  display: grid;
  gap: 10px;
}

.staff-figma-shell .planner-input--time-text {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.staff-figma-shell .planner-time-entry__shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.staff-figma-shell .planner-time-entry__shortcut {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--staff-line-subtle);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.staff-figma-shell .planner-time-entry__shortcut:hover,
.staff-figma-shell .planner-time-entry__shortcut.is-active {
  border-color: color-mix(in srgb, var(--primary) 28%, white 72%);
  background: color-mix(in srgb, var(--primary-soft) 62%, white 38%);
  color: color-mix(in srgb, var(--primary) 62%, var(--text) 38%);
}

.staff-figma-shell .planner-move-slots {
  display: grid;
  gap: 10px;
}

.staff-figma-shell .planner-move-slots__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 680;
}

.staff-figma-shell .planner-move-slots__header small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 640;
}

.staff-figma-shell .planner-move-slots__grid {
  max-height: 188px;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  gap: 8px;
  padding: 2px;
}

.staff-figma-shell .planner-move-slot {
  min-height: 44px;
  border: 1px solid var(--staff-line-subtle);
  border-radius: 10px;
  background: #ffffff;
  color: var(--text);
  display: grid;
  gap: 2px;
  justify-items: center;
  align-content: center;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.staff-figma-shell .planner-move-slot:hover,
.staff-figma-shell .planner-move-slot.is-active {
  border-color: color-mix(in srgb, var(--primary) 30%, white 70%);
  background: color-mix(in srgb, var(--primary-soft) 58%, white 42%);
  color: color-mix(in srgb, var(--primary) 62%, var(--text) 38%);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.staff-figma-shell .planner-move-slot span {
  font-size: 0.82rem;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
}

.staff-figma-shell .planner-move-slot small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 620;
}

.staff-figma-shell .planner-move-slots__empty {
  margin: 0;
  padding: 12px 14px;
  border: 1px dashed var(--staff-line-subtle);
  border-radius: 12px;
  background: color-mix(in srgb, var(--staff-call-console-soft-surface) 54%, white 46%);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.staff-figma-shell .planner-one-time-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 18px;
  align-items: start;
}

.staff-figma-shell .planner-one-time-layout__main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.staff-figma-shell .planner-one-time-slots-editor {
  display: grid;
  gap: 10px;
}

.staff-figma-shell .planner-one-time-slots-editor__header,
.staff-figma-shell .planner-one-time-slot-editor__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.staff-figma-shell .planner-one-time-slots-editor__list {
  display: grid;
  gap: 10px;
}

.staff-figma-shell .planner-one-time-slot-editor {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--staff-line-subtle);
  border-radius: 14px;
  background: #ffffff;
}

.staff-figma-shell .planner-one-time-slot-editor.is-active {
  border-color: color-mix(in srgb, var(--primary) 26%, white 74%);
  background: color-mix(in srgb, var(--primary-soft) 42%, white 58%);
}

.staff-figma-shell .planner-one-time-slot-editor__head > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.staff-figma-shell .planner-one-time-slot-editor__head strong {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 720;
}

.staff-figma-shell .planner-one-time-slot-editor__head span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 620;
}

.staff-figma-shell .planner-form-grid--one-time-type {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.staff-figma-shell .planner-form-grid--one-time-contact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.staff-figma-shell .planner-form-grid--one-time-slot {
  grid-template-columns: minmax(0, 1fr);
}

.staff-figma-shell .planner-one-time-reserve {
  display: grid;
  gap: 10px;
  align-content: end;
}

.staff-figma-shell .planner-checkbox-field {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--staff-line-subtle);
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  padding: 10px 12px;
  font-size: 0.78rem;
  font-weight: 680;
  cursor: pointer;
}

.staff-figma-shell .planner-checkbox-field input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  flex: 0 0 auto;
}

.staff-figma-shell .planner-mini-action {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--staff-line-subtle);
  border-radius: 10px;
  background: #ffffff;
  color: var(--primary);
  padding: 6px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.staff-figma-shell .planner-mini-action:hover,
.staff-figma-shell .planner-mini-action:focus-visible {
  border-color: color-mix(in srgb, var(--primary) 26%, white 74%);
  background: color-mix(in srgb, var(--primary-soft) 56%, white 44%);
  color: color-mix(in srgb, var(--primary) 70%, var(--text) 30%);
}

.staff-figma-shell .planner-mini-action svg {
  width: 14px;
  height: 14px;
}

.staff-figma-shell .planner-mini-action--danger {
  color: var(--urgent);
}

.staff-figma-shell .planner-mini-action--danger:hover,
.staff-figma-shell .planner-mini-action--danger:focus-visible {
  border-color: color-mix(in srgb, var(--urgent) 24%, white 76%);
  background: color-mix(in srgb, var(--urgent) 8%, white 92%);
  color: color-mix(in srgb, var(--urgent) 70%, var(--text) 30%);
}

.staff-figma-shell .planner-one-time-slots {
  position: sticky;
  top: 0;
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--staff-line-subtle);
  border-radius: 18px;
  background: color-mix(in srgb, var(--staff-call-console-soft-surface) 58%, white 42%);
}

.staff-figma-shell .planner-one-time-slots__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.staff-figma-shell .planner-one-time-slots__header div {
  display: grid;
  gap: 3px;
}

.staff-figma-shell .planner-one-time-slots__header strong {
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 720;
}

.staff-figma-shell .planner-one-time-slots__header span,
.staff-figma-shell .planner-one-time-slots__hint {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.staff-figma-shell .planner-one-time-slots__header small {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  padding: 4px 9px;
  font-size: 0.72rem;
  font-weight: 680;
}

.staff-figma-shell .planner-one-time-slots__hint {
  margin: 0;
}

.staff-figma-shell .planner-one-time-slots__grid {
  max-height: 354px;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 2px;
}

.staff-figma-shell .planner-one-time-slot {
  min-height: 50px;
  border: 1px solid var(--staff-line-subtle);
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  display: grid;
  gap: 2px;
  align-content: center;
  justify-items: start;
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.staff-figma-shell .planner-one-time-slot:hover,
.staff-figma-shell .planner-one-time-slot.is-active {
  border-color: color-mix(in srgb, var(--primary) 30%, white 70%);
  background: color-mix(in srgb, var(--primary-soft) 58%, white 42%);
  color: color-mix(in srgb, var(--primary) 62%, var(--text) 38%);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.staff-figma-shell .planner-one-time-slot span {
  font-size: 0.84rem;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
}

.staff-figma-shell .planner-one-time-slot small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 620;
}

.staff-figma-shell .planner-one-time-slots__empty {
  margin: 0;
  padding: 12px 14px;
  border: 1px dashed var(--staff-line-subtle);
  border-radius: 12px;
  background: #ffffff;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.staff-figma-shell .planner-note-card.is-danger {
  border-color: color-mix(in srgb, var(--urgent) 24%, white 76%);
  background: color-mix(in srgb, var(--urgent) 10%, white 90%);
}

.staff-figma-shell .planner-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.staff-figma-shell .planner-detail-row {
  padding: 14px 16px;
  border: 1px solid var(--staff-line-subtle);
  border-radius: 16px;
  background: #ffffff;
  display: grid;
  gap: 6px;
}

.staff-figma-shell .planner-detail-row span {
  color: var(--muted);
  font-size: 0.76rem;
}

.staff-figma-shell .planner-detail-row strong {
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.45;
}

.staff-figma-shell .planner-context-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 18px;
  align-items: start;
}

.staff-figma-shell .planner-context-layout__main,
.staff-figma-shell .planner-context-layout__actions,
.staff-figma-shell .planner-context-actions {
  display: grid;
  gap: 14px;
}

.staff-figma-shell .planner-context-actions-card {
  padding: 18px;
  border: 1px solid var(--staff-line-subtle);
  border-radius: 20px;
  background: color-mix(in srgb, var(--staff-call-console-soft-surface) 52%, white 48%);
  display: grid;
  gap: 14px;
}

.staff-figma-shell .planner-context-actions-card__header {
  display: grid;
  gap: 6px;
}

.staff-figma-shell .planner-context-actions-card__header h3 {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
}

.staff-figma-shell .planner-context-actions-card__header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.staff-figma-shell .planner-context-action {
  width: 100%;
  min-height: 64px;
  padding: 14px 16px;
  border: 1px solid var(--staff-line-subtle);
  border-radius: 16px;
  background: #ffffff;
  color: var(--text);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  text-align: left;
  cursor: pointer;
}

.staff-figma-shell .planner-context-action:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--primary) 24%, white 76%);
  background: color-mix(in srgb, var(--primary-soft) 38%, white 62%);
}

.staff-figma-shell .planner-context-action__content {
  display: grid;
  gap: 4px;
}

.staff-figma-shell .planner-context-action__content strong {
  color: var(--text);
  font-size: 0.84rem;
  line-height: 1.35;
}

.staff-figma-shell .planner-context-action__content span {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.staff-figma-shell .planner-context-action--primary {
  border-color: color-mix(in srgb, var(--primary) 28%, white 72%);
  background: color-mix(in srgb, var(--primary-soft) 54%, white 46%);
}

.staff-figma-shell .planner-context-action--primary:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--primary) 36%, white 64%);
  background: color-mix(in srgb, var(--primary-soft) 68%, white 32%);
}

.staff-figma-shell .planner-context-action--danger {
  border-color: color-mix(in srgb, var(--urgent) 24%, white 76%);
}

.staff-figma-shell .planner-context-action--danger:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--urgent) 34%, white 66%);
  background: color-mix(in srgb, var(--urgent) 10%, white 90%);
}

.staff-figma-shell .planner-list-row.is-claim-locked {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.48), rgba(148, 163, 184, 0.1)),
    #ffffff;
  box-shadow:
    inset 0 0 0 999px rgba(255, 255, 255, 0.18),
    inset 4px 0 0 color-mix(in srgb, var(--primary) 52%, var(--muted) 48%);
}

.staff-figma-shell .planner-client-search,
.staff-figma-shell .planner-series-block,
.staff-figma-shell .planner-series-analysis,
.staff-figma-shell .planner-modal__body {
  display: grid;
  gap: 14px;
}

.staff-figma-shell .planner-client-results {
  max-height: 220px;
  overflow: auto;
  display: grid;
  gap: 8px;
  padding-right: 2px;
}

.staff-figma-shell .planner-client-search--one-time {
  position: relative;
  z-index: 6;
}

.staff-figma-shell .planner-client-results--one-time {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 236px;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--staff-line-subtle);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
}

.staff-figma-shell .planner-client-results--one-time .planner-client-result {
  min-height: 40px;
  border-radius: 10px;
}

.staff-figma-shell .planner-client-result {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--staff-line-subtle);
  border-radius: 14px;
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  cursor: pointer;
}

.staff-figma-shell .planner-client-results__empty {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px dashed var(--staff-line-subtle);
  border-radius: 12px;
  background: color-mix(in srgb, var(--staff-call-console-soft-surface) 62%, white 38%);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.staff-figma-shell .planner-client-result.is-selected {
  border-color: color-mix(in srgb, var(--primary) 30%, white 70%);
  background: color-mix(in srgb, var(--primary-soft) 62%, white 38%);
}

.staff-figma-shell .planner-client-result__code {
  min-width: 68px;
  color: color-mix(in srgb, var(--primary) 62%, var(--text) 38%);
  font-size: 0.78rem;
  font-weight: 700;
}

.staff-figma-shell .planner-client-result__name {
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
}

.staff-figma-shell .planner-series-block {
  padding: 16px;
  border: 1px solid var(--staff-line-subtle);
  border-radius: 18px;
  background: #ffffff;
}

.staff-figma-shell .planner-series-block__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.staff-figma-shell .planner-series-block__title {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.staff-figma-shell .planner-series-block__title strong {
  color: var(--text);
  font-size: 0.94rem;
}

.staff-figma-shell .planner-series-block__title span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.staff-figma-shell .planner-series-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--staff-line-subtle);
  border-radius: 18px;
  background: color-mix(in srgb, var(--staff-call-console-soft-surface) 52%, white 48%);
}

.staff-figma-shell .planner-series-step {
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.staff-figma-shell .planner-series-step.is-active {
  border-color: color-mix(in srgb, var(--primary) 24%, white 76%);
  background: #ffffff;
  color: color-mix(in srgb, var(--primary) 62%, var(--text) 38%);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.staff-figma-shell .planner-series-step.is-complete {
  color: color-mix(in srgb, var(--low) 82%, var(--text) 18%);
}

.staff-figma-shell .planner-series-step__number {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--staff-line-subtle) 82%, white 18%);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.staff-figma-shell .planner-series-step.is-active .planner-series-step__number {
  background: color-mix(in srgb, var(--primary-soft) 74%, white 26%);
  color: color-mix(in srgb, var(--primary) 62%, var(--text) 38%);
}

.staff-figma-shell .planner-series-step.is-complete .planner-series-step__number {
  background: color-mix(in srgb, var(--low) 14%, white 86%);
  color: color-mix(in srgb, var(--low) 82%, var(--text) 18%);
}

.staff-figma-shell .planner-series-step__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.76rem;
  font-weight: 800;
}

.staff-figma-shell .planner-series-summary-row {
  display: grid;
  grid-template-columns: minmax(90px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.staff-figma-shell .planner-series-summary-row strong {
  color: var(--text);
}

.staff-figma-shell .planner-series-summary-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-figma-shell .planner-series-overview {
  display: grid;
  gap: 12px;
}

.staff-figma-shell .planner-series-overview-card {
  padding: 14px 16px;
  border: 1px solid var(--staff-line-subtle);
  border-radius: 16px;
  background: #ffffff;
  display: grid;
  gap: 12px;
}

.staff-figma-shell .planner-series-overview-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
}

.staff-figma-shell .planner-series-overview-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.staff-figma-shell .planner-series-overview-card div {
  min-width: 0;
}

.staff-figma-shell .planner-series-overview-card dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.staff-figma-shell .planner-series-overview-card dd {
  margin: 3px 0 0;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-figma-shell .planner-series-overview-card__note {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--staff-line-subtle);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.staff-figma-shell .planner-series-success {
  min-height: 340px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
}

.staff-figma-shell .planner-series-success__mark {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--low) 14%, white 86%);
  color: color-mix(in srgb, var(--low) 82%, var(--text) 18%);
  font-size: 2rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.staff-figma-shell .planner-series-success__mark.is-pending {
  background: color-mix(in srgb, var(--staff-info-blue-surface) 82%, white 18%);
  color: var(--staff-info-blue-text);
}

.staff-figma-shell .planner-series-success__mark.is-danger {
  background: color-mix(in srgb, var(--urgent) 12%, white 88%);
  color: color-mix(in srgb, var(--urgent) 82%, var(--text) 18%);
}

.staff-figma-shell .planner-series-success__status {
  display: inline-flex;
  justify-content: center;
}

.staff-figma-shell .planner-series-success h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.25rem;
}

.staff-figma-shell .planner-series-success p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.staff-figma-shell .planner-series-success__meta {
  width: min(100%, 420px);
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--staff-line-subtle);
  background: color-mix(in srgb, var(--staff-call-console-soft-surface) 52%, white 48%);
}

.staff-figma-shell .planner-series-success__meta dl {
  margin: 0;
  display: grid;
  gap: 10px;
  text-align: left;
}

.staff-figma-shell .planner-series-success__meta div {
  display: grid;
  gap: 3px;
}

.staff-figma-shell .planner-series-success__meta dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.staff-figma-shell .planner-series-success__meta dd {
  margin: 0;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.45;
}

.staff-figma-shell .planner-weekday-chip {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--staff-line-subtle);
  background: #ffffff;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.staff-figma-shell .planner-weekday-chip.is-active {
  border-color: color-mix(in srgb, var(--primary) 24%, white 76%);
  background: color-mix(in srgb, var(--primary-soft) 62%, white 38%);
  color: color-mix(in srgb, var(--primary) 62%, var(--text) 38%);
}

.staff-figma-shell .planner-series-analysis {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.staff-figma-shell .planner-series-analysis-table {
  display: grid;
  gap: 14px;
}

.staff-figma-shell .planner-series-analysis-table__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.staff-figma-shell .planner-series-analysis-table__meta span {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--staff-line-subtle);
  background: color-mix(in srgb, var(--staff-call-console-soft-surface) 52%, white 48%);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.staff-figma-shell .planner-series-slot-grid {
  display: grid;
  gap: 10px;
  align-items: start;
}

.staff-figma-shell .planner-series-slot-column {
  min-width: 0;
  padding: 12px 10px;
  border: 1px solid var(--staff-line-subtle);
  border-radius: 16px;
  background: color-mix(in srgb, var(--staff-call-console-soft-surface) 52%, white 48%);
  display: grid;
  gap: 10px;
}

.staff-figma-shell .planner-series-slot-column__header,
.staff-figma-shell .planner-series-slot-column__footer {
  display: grid;
  gap: 4px;
  text-align: center;
}

.staff-figma-shell .planner-series-slot-column__header strong {
  color: var(--text);
  font-size: 0.84rem;
  text-transform: lowercase;
}

.staff-figma-shell .planner-series-slot-column__header span,
.staff-figma-shell .planner-series-slot-column__footer span {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.staff-figma-shell .planner-series-slot-list {
  display: grid;
  gap: 8px;
}

.staff-figma-shell .planner-series-slot {
  width: 100%;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--primary) 24%, white 76%);
  border-radius: 12px;
  background: #ffffff;
  color: color-mix(in srgb, var(--primary) 62%, var(--text) 38%);
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.staff-figma-shell .planner-series-slot.is-requested {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 18%, white 82%);
}

.staff-figma-shell .planner-series-slot.is-selected {
  border-color: transparent;
  background: linear-gradient(
    180deg,
    var(--staff-button-primary-start) 0%,
    var(--staff-button-primary-end) 100%
  );
  color: #ffffff;
}

.staff-figma-shell .planner-series-slot.is-unavailable {
  border-color: var(--staff-line-subtle);
  background: #ffffff;
  color: color-mix(in srgb, var(--muted) 60%, white 40%);
  cursor: not-allowed;
}

.staff-figma-shell .planner-series-slot--placeholder {
  min-height: 44px;
  padding: 0 10px;
  border: 1px dashed var(--staff-line-subtle);
  border-radius: 12px;
  background: transparent;
  color: color-mix(in srgb, var(--muted) 46%, white 54%);
  font-size: 0.86rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.staff-figma-shell .planner-series-analysis__card {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--staff-line-subtle);
  background: color-mix(in srgb, var(--staff-call-console-soft-surface) 52%, white 48%);
  display: grid;
  gap: 10px;
}

.staff-figma-shell .planner-series-analysis__card h3 {
  margin: 0;
  color: var(--text);
  font-size: 0.88rem;
}

.staff-figma-shell .planner-series-analysis__card.is-warning {
  border-color: color-mix(in srgb, var(--accent) 24%, white 76%);
  background: color-mix(in srgb, var(--accent) 12%, white 88%);
}

.staff-figma-shell .planner-series-analysis__card.is-success {
  border-color: color-mix(in srgb, var(--low) 24%, white 76%);
  background: color-mix(in srgb, var(--low) 12%, white 88%);
}

.staff-figma-shell .planner-series-conflict {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.staff-figma-shell .planner-series-conflict strong {
  color: var(--text);
}

.staff-figma-shell .planner-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: rgba(36, 54, 73, 0.22);
  backdrop-filter: blur(8px);
}

body.staff-webphone-root:has(.planner-modal-backdrop) #app {
  z-index: 5000;
}

body.staff-webphone-root--planner-modal-open #app,
body.staff-webphone-root--planner-modal-open .staff-figma-shell,
body.staff-webphone-root--planner-modal-open .staff-figma-shell .page-shell,
body.staff-webphone-root--planner-modal-open .staff-figma-shell .page-layout,
body.staff-webphone-root--planner-modal-open .staff-figma-shell .page-main {
  position: relative;
  z-index: 5000;
  overflow: visible;
}

body.staff-webphone-root--planner-modal-open .staff-global-call-column,
body.staff-webphone-root--planner-modal-open .webphone-shell {
  z-index: 10;
  pointer-events: none;
}

.staff-figma-shell .planner-modal {
  width: min(100%, 760px);
  max-height: none;
  overflow: visible;
  margin: auto 0;
  border-radius: 26px;
  border: 1px solid var(--staff-line-subtle);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.99) 100%
  );
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.16);
  display: flex;
  flex-direction: column;
}

.staff-figma-shell .planner-modal--small {
  width: min(100%, 460px);
}

.staff-figma-shell .planner-modal--medium {
  width: min(100%, 760px);
}

.staff-figma-shell .planner-modal--one-time {
  width: min(100%, 1040px);
}

.staff-figma-shell .planner-modal--wide {
  width: min(100%, 1100px);
}

.staff-figma-shell .planner-modal__header,
.staff-figma-shell .planner-modal__footer {
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.staff-figma-shell .planner-modal__header {
  border-bottom: 1px solid var(--staff-line-subtle);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--staff-call-console-soft-surface) 68%, white 32%) 0%,
    #ffffff 100%
  );
}

.staff-figma-shell .planner-modal__header h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.12rem;
}

.staff-figma-shell .planner-modal__header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.staff-figma-shell .planner-modal__body {
  padding: 20px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: visible;
}

.staff-figma-shell .planner-modal__footer {
  border-top: 1px solid var(--staff-line-subtle);
  justify-content: flex-end;
}

.staff-figma-shell .planner-icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--staff-line-subtle);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.staff-figma-shell .planner-overlay-anchor {
  position: fixed;
  inset: 0;
  z-index: 215;
}

.staff-figma-shell .planner-toolbar-card__left > .planner-overlay-anchor {
  position: absolute;
  inset: auto;
  top: calc(100% + 10px);
  right: 0;
  z-index: 220;
  width: min(360px, calc(100vw - 48px));
}

.staff-figma-shell .planner-lane-menu {
  border: 1px solid var(--staff-line-subtle);
  border-radius: 20px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.99) 100%
  );
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.14);
}

.staff-figma-shell .planner-lane-menu {
  width: 100%;
  padding: 18px;
  display: grid;
  gap: 14px;
}

.staff-figma-shell .planner-toolbar-card__left > .planner-overlay-anchor .planner-lane-menu {
  position: relative;
}

.staff-figma-shell .planner-lane-menu__header {
  display: grid;
  gap: 6px;
}

.staff-figma-shell .planner-lane-menu__header h2 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
}

.staff-figma-shell .planner-lane-menu__header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.staff-figma-shell .planner-lane-menu__list {
  display: grid;
  gap: 8px;
}

.staff-figma-shell .planner-lane-row {
  min-height: 42px;
  padding: 0 4px;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Staffportal planner visual refresh */
.staff-figma-shell.route-planner,
.staff-figma-shell.route-planner-large,
.staff-figma-shell.route-agenda-large {
  --planner-bg: #f6f8fb;
  --planner-panel: #ffffff;
  --planner-panel-soft: #fbfcfe;
  --planner-border: #dfe5ec;
  --planner-border-soft: #edf1f5;
  --planner-text: #20243f;
  --planner-text-deep: #30305f;
  --planner-muted: #8797ad;
  --planner-muted-light: #cbd5e1;
  --planner-indigo: #6070e8;
  --planner-indigo-hover: #5565dc;
  --planner-indigo-soft: #f3f5ff;
  --planner-green: #2ecb87;
  --planner-green-hover: #27bf7b;
  --planner-red: #f43f5e;
  --planner-orange: #ff6b3d;
  --planner-shadow-panel: 0 1px 2px rgba(15, 23, 42, 0.045);
  --planner-shadow-button: 0 5px 12px rgba(46, 203, 135, 0.18);
  --planner-shadow-float: 0 22px 70px rgba(15, 23, 42, 0.18);
  background: var(--planner-bg);
}

.staff-figma-shell.route-planner .page-shell {
  padding-top: 0;
  background: var(--planner-bg);
}

.staff-figma-shell.route-planner .page-main--planner {
  gap: 28px;
}

.staff-figma-shell .planner-page-intro {
  --staff-line-subtle: var(--planner-border);
  --staff-call-console-soft-surface: var(--planner-panel-soft);
  --staff-info-blue-surface: var(--planner-indigo-soft);
  --staff-info-blue-text: var(--planner-indigo);
  --staff-focus-ring: rgba(96, 112, 232, 0.26);
  --text: var(--planner-text);
  --muted: var(--planner-muted);
  --primary: var(--planner-indigo);
  --primary-soft: var(--planner-indigo-soft);
  --low: var(--planner-green);
  --urgent: var(--planner-red);
  --accent: var(--planner-orange);
  --staff-button-primary-start: var(--planner-green);
  --staff-button-primary-end: var(--planner-green-hover);
  gap: 28px;
  color: var(--planner-text);
  font-weight: 500;
}

.staff-figma-shell .planner-page-intro > .page-title-row {
  min-height: 80px;
  margin: 0 -24px;
  padding: 0 28px;
  border-bottom: 1px solid var(--planner-border);
  background: var(--planner-panel);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.staff-figma-shell .planner-page-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.staff-figma-shell .planner-page-intro__icon {
  width: 31px;
  height: 31px;
  border-radius: 0;
  background: transparent;
  color: #5969e5;
}

.staff-figma-shell .planner-page-intro__icon svg {
  width: 27px;
  height: 27px;
  stroke-width: 2.2;
}

.staff-figma-shell .planner-page-intro .page-title {
  color: #2f315f;
  font-size: 1.78rem;
  line-height: 1;
  font-weight: 650;
  letter-spacing: 0;
}

.staff-figma-shell .planner-topbar-refresh {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 16px;
  background: #f7f9fc;
  color: #8fa0b4;
  font-size: 0.94rem;
  font-weight: 550;
  white-space: nowrap;
}

.staff-figma-shell .planner-command-card,
.staff-figma-shell .planner-filter-card,
.staff-figma-shell .planner-view-card,
.staff-figma-shell .planner-modal,
.staff-figma-shell .planner-lane-menu {
  border-color: var(--planner-border);
  background: var(--planner-panel);
  box-shadow: var(--planner-shadow-panel);
}

.staff-figma-shell .planner-command-card {
  min-height: 0;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--planner-panel);
}

.staff-figma-shell .planner-command-card__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 12px;
}

.staff-figma-shell .planner-status-line--embedded {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  width: min(100%, 390px);
  min-width: min(100%, 286px);
}

.staff-figma-shell .planner-status-line__nav {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(196px, 304px) 34px;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.staff-figma-shell .planner-status-line__nav-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #d8dde5;
  border-radius: 999px;
  background: #ffffff;
  color: var(--planner-indigo);
  font-size: 0;
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.03);
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.staff-figma-shell .planner-status-line__nav-button:hover {
  border-color: #bac4ff;
  background: var(--planner-indigo-soft);
  color: var(--planner-indigo-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(96, 112, 232, 0.12);
}

.staff-figma-shell .planner-status-line__nav-button svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.1;
}

.staff-figma-shell .planner-date-button {
  position: relative;
  min-width: 0;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  border: 1px solid #bac4ff;
  background: #ffffff;
  color: var(--planner-indigo);
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.035);
  overflow: hidden;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.staff-figma-shell .planner-date-button:hover {
  border-color: var(--planner-indigo);
  background: var(--planner-indigo-soft);
  color: var(--planner-indigo-hover);
  transform: translateY(-1px);
  box-shadow: 0 7px 16px rgba(96, 112, 232, 0.12);
}

.staff-figma-shell .planner-status-line__day {
  position: relative;
  z-index: 1;
  padding: 0 14px;
  color: currentColor;
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.staff-figma-shell .planner-date-picker__input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.staff-figma-shell .planner-toolbar-card--embedded {
  display: contents;
}

.staff-figma-shell .planner-toolbar-card__left,
.staff-figma-shell .planner-toolbar-card__right {
  gap: 10px;
  min-width: 0;
}

.staff-figma-shell .planner-toolbar-card__left {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

.staff-figma-shell .planner-toolbar-card__right {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.staff-figma-shell .planner-button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 0.89rem;
  font-weight: 510;
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.staff-figma-shell .planner-button svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.05;
}

.staff-figma-shell .planner-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.staff-figma-shell .planner-button--primary {
  min-width: 232px;
  border: 0;
  background: var(--planner-green);
  color: #ffffff;
  box-shadow: var(--planner-shadow-button);
}

.staff-figma-shell .planner-button--primary:hover:not(:disabled) {
  background: var(--planner-green-hover);
}

.staff-figma-shell .planner-button--secondary {
  min-width: 146px;
  border: 1px solid #6271ff;
  background: #ffffff;
  color: #5c6be9;
}

.staff-figma-shell .planner-button--secondary:hover:not(:disabled) {
  background: var(--planner-indigo-soft);
}

.staff-figma-shell .planner-button--ghost,
.staff-figma-shell .planner-button--neutral {
  min-width: 116px;
  border: 1px solid #d8dde5;
  background: #ffffff;
  color: #5e6a80;
}

.staff-figma-shell .planner-button--ghost:hover:not(:disabled),
.staff-figma-shell .planner-button--neutral:hover:not(:disabled),
.staff-figma-shell .planner-command-card.is-lane-menu-open .planner-button--ghost {
  background: #f8fafc;
  color: #364152;
}

.staff-figma-shell .planner-view-toggle {
  height: 34px;
  gap: 3px;
  padding: 3px;
  border: 0;
  border-radius: 10px;
  background: #f8fafc;
}

.staff-figma-shell .planner-view-toggle__button {
  min-width: 74px;
  height: 28px;
  min-height: 28px;
  padding: 0 12px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #6b7280;
  font-size: 0.8rem;
  font-weight: 500;
}

.staff-figma-shell .planner-view-toggle__button svg {
  display: none;
}

.staff-figma-shell .planner-view-toggle__button.is-active {
  background: #ffffff;
  color: #4b5563;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.11);
}

.staff-figma-shell .planner-filter-card--embedded {
  min-height: 0;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--planner-border);
  border-radius: 11px;
  background: var(--planner-panel);
  display: grid;
  gap: 12px;
}

.staff-figma-shell .planner-filter-card__grid--compact {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.staff-figma-shell .planner-filter-field.is-compact {
  position: relative;
  min-width: 164px;
  min-height: 36px;
}

.staff-figma-shell .planner-filter-field.is-compact .planner-sr-only {
  position: absolute;
  z-index: 2;
  top: -7px;
  left: 11px;
  width: auto;
  height: auto;
  padding: 0 4px;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: nowrap;
  border: 0;
  background: #ffffff;
  color: #5f6674;
  font-size: 0.68rem;
  font-weight: 480;
}

.staff-figma-shell .planner-filter-field.is-compact .planner-input {
  width: 100%;
  min-height: 36px;
  border: 1px solid #cfd5dd;
  border-radius: 8px;
  background-color: #ffffff;
  color: #111827;
  font-size: 0.84rem;
  font-weight: 440;
  padding: 0 30px 0 11px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.staff-figma-shell .planner-filter-field.is-compact select.planner-input {
  background-color: #ffffff;
  background-position: right 12px center;
  padding-right: 34px;
}

.staff-figma-shell .planner-filter-card__meta {
  flex: 0 0 auto;
  gap: 14px;
  color: #8997ab;
  font-size: 0.82rem;
  font-weight: 460;
  white-space: nowrap;
}

.staff-figma-shell .planner-filter-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.staff-figma-shell .planner-filter-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.staff-figma-shell .planner-filter-card__actions .planner-button {
  min-height: 34px;
  padding: 0 11px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 500;
}

.staff-figma-shell .planner-filter-card__actions .planner-button svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.staff-figma-shell .planner-filter-card__actions .planner-button--primary {
  min-width: 184px;
  box-shadow: 0 4px 10px rgba(46, 203, 135, 0.18);
}

.staff-figma-shell .planner-filter-card__actions .planner-button--secondary {
  min-width: 118px;
  border-color: #27B4F5;
  background: #27B4F5;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(39, 180, 245, 0.2);
}

.staff-figma-shell .planner-filter-card__actions .planner-button--secondary:hover:not(:disabled) {
  border-color: #1ea4df;
  background: #1ea4df;
  color: #ffffff;
}

.staff-figma-shell .planner-filter-card__reset {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #5868f0;
  font-size: 0.82rem;
  font-weight: 500;
}

.staff-figma-shell .planner-page-intro.is-right-console-open .planner-filter-card--embedded {
  align-items: stretch;
  flex-direction: column;
}

.staff-figma-shell .planner-page-intro.is-right-console-open .planner-filter-card__grid--compact {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 18px 16px;
}

.staff-figma-shell .planner-page-intro.is-right-console-open .planner-filter-card__meta {
  justify-content: flex-end;
}

.staff-figma-shell .planner-view-card {
  border-radius: 12px 12px 0 0;
  border-color: var(--planner-border);
  overflow: hidden;
}

.staff-figma-shell .planner-agenda-viewport,
.staff-figma-shell .planner-list-viewport {
  background: var(--planner-panel);
}

.staff-figma-shell .planner-agenda-corner,
.staff-figma-shell .planner-agenda-lane-header,
.staff-figma-shell .planner-agenda-time-column,
.staff-figma-shell .planner-agenda-spacer--start-time,
.staff-figma-shell .planner-agenda-spacer--end-time,
.staff-figma-shell .planner-list-table-head__cell--time {
  background: var(--planner-panel);
}

.staff-figma-shell .planner-agenda-corner,
.staff-figma-shell .planner-agenda-lane-header,
.staff-figma-shell .planner-agenda-lane-header__cell,
.staff-figma-shell .planner-agenda-time-column,
.staff-figma-shell .planner-agenda-spacer--start-time,
.staff-figma-shell .planner-agenda-spacer--end-time,
.staff-figma-shell .planner-list-table-head,
.staff-figma-shell .planner-list-table-head__cell,
.staff-figma-shell .planner-list-group,
.staff-figma-shell .planner-list-group__time,
.staff-figma-shell .planner-list-cell {
  border-color: var(--planner-border);
}

.staff-figma-shell .planner-agenda-corner,
.staff-figma-shell .planner-agenda-time-column,
.staff-figma-shell .planner-agenda-spacer--start-time,
.staff-figma-shell .planner-agenda-spacer--end-time {
  background: #f8fafc;
}

.staff-figma-shell .planner-agenda-spacer--end-time span {
  background: #f8fafc;
  color: #8797ad;
  font-size: 0.82rem;
  font-weight: 480;
}

.staff-figma-shell .planner-agenda-lane-header__cell {
  min-height: 44px;
  gap: 11px;
  color: var(--planner-lane-color, var(--planner-indigo));
  font-size: 1.06rem;
  font-weight: 600;
}

.staff-figma-shell .planner-lane-duration-pill {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: #f8fafc;
  color: #8797ad;
  font-size: 0.72rem;
  font-weight: 520;
}

.staff-figma-shell .planner-agenda-lane-header__cell--lane {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--planner-lane-color, var(--planner-indigo)) 16%, #ffffff 84%) 0%,
    color-mix(in srgb, var(--planner-lane-color, var(--planner-indigo)) 11%, #ffffff 89%) 100%
  );
  color: color-mix(in srgb, var(--planner-lane-color, var(--planner-indigo)) 62%, #334155 38%);
  border-left-color: var(--planner-border);
  box-shadow: inset 0 -1px 0 rgba(15, 23, 42, 0.035);
}

.staff-figma-shell .planner-agenda-lane-header__cell--lane .planner-lane-duration-pill {
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid color-mix(in srgb, var(--planner-lane-color, var(--planner-indigo)) 18%, #ffffff 82%);
  color: color-mix(in srgb, var(--planner-lane-color, var(--planner-indigo)) 54%, #64748b 46%);
}

.staff-figma-shell .planner-lane-dot {
  width: 15px;
  height: 15px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--planner-lane-color, currentColor) 48%, #ffffff 52%);
  background: color-mix(in srgb, var(--planner-lane-color, currentColor) 44%, #ffffff 56%);
  display: inline-block;
  flex: 0 0 auto;
}

.staff-figma-shell .planner-agenda-time-row {
  padding-right: 14px;
  color: #8797ad;
  font-size: 0.84rem;
  font-weight: 480;
}

.staff-figma-shell .planner-agenda-time-row__label {
  right: 14px;
  background: #f8fafc;
}

.staff-figma-shell .planner-agenda-time-row.is-quarter,
.staff-figma-shell .planner-agenda-time-row.is-half-hour {
  color: #8797ad;
}

.staff-figma-shell .planner-agenda-time-row.is-hour {
  color: #64748b;
  font-weight: 540;
}

.staff-figma-shell .planner-agenda-grid,
.staff-figma-shell .planner-agenda-spacer--start-grid,
.staff-figma-shell .planner-agenda-spacer--end-grid {
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent calc(var(--planner-lane-width, 180px) - 1px),
      var(--planner-border) calc(var(--planner-lane-width, 180px) - 1px),
      var(--planner-border) var(--planner-lane-width, 180px)
    ),
    #ffffff;
}

.staff-figma-shell .planner-agenda-grid-row {
  border-top-color: var(--planner-border-soft);
}

.staff-figma-shell .planner-agenda-grid-row.is-quarter,
.staff-figma-shell .planner-agenda-grid-row.is-half-hour,
.staff-figma-shell .planner-agenda-time-row.is-quarter,
.staff-figma-shell .planner-agenda-time-row.is-half-hour {
  border-top-color: var(--planner-border);
}

.staff-figma-shell .planner-availability-block {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e4e9f0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: #aeb9c8;
  font-size: 0.82rem;
  font-weight: 540;
  line-height: 1;
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.025);
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.staff-figma-shell .planner-availability-block:hover,
.staff-figma-shell .planner-availability-block:focus-visible {
  background: var(--planner-indigo-soft);
  border-color: #bac4ff;
  color: #5868f0;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.staff-figma-shell .planner-availability-block.is-offline {
  z-index: 0;
  border-style: dashed;
  background: #f8fafc;
  color: #c2ccd9;
  box-shadow: none;
  cursor: default;
  pointer-events: none;
}

.staff-figma-shell .planner-availability-block.is-offline span {
  font-size: 0.76rem;
}

.staff-figma-shell .planner-appointment {
  border-radius: 8px;
  border-color: #bbf7d0;
  background: linear-gradient(180deg, #f0fdf4, #ecfdf5);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.staff-figma-shell .planner-appointment:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.08);
}

.staff-figma-shell .planner-appointment__accent {
  background: #22c55e;
}

.staff-figma-shell .planner-appointment__title {
  color: #166534;
  font-size: 0.82rem;
  font-weight: 600;
}

.staff-figma-shell .planner-appointment__time,
.staff-figma-shell .planner-appointment__meta,
.staff-figma-shell .planner-appointment__note {
  color: #22a06b;
}

.staff-figma-shell .planner-appointment--callback,
.staff-figma-shell .planner-appointment--present {
  border-color: #fed7aa;
  background: linear-gradient(180deg, #fff7ed, #fffbeb);
}

.staff-figma-shell .planner-appointment--callback .planner-appointment__accent,
.staff-figma-shell .planner-appointment--present .planner-appointment__accent {
  background: var(--planner-orange);
}

.staff-figma-shell .planner-appointment--cancelled {
  border-color: #fecdd3;
  background: linear-gradient(180deg, #fff1f2, #fff7f8);
}

.staff-figma-shell .planner-appointment--cancelled .planner-appointment__accent {
  background: var(--planner-red);
}

.staff-figma-shell .planner-appointment.has-label-color {
  border-color: var(--planner-series-label-border);
}

.staff-figma-shell .planner-channel-icon {
  background: #f3f5ff;
  color: var(--planner-indigo);
}

.staff-figma-shell .planner-channel-icon--phone {
  background: #ecfdf5;
  color: #22a06b;
}

.staff-figma-shell .planner-appointment__status-chip,
.staff-figma-shell .planner-flow-chip,
.staff-figma-shell .planner-appointment__countdown {
  border-radius: 8px;
  border-color: var(--planner-border-soft);
  background: #ffffff;
}

.staff-figma-shell .planner-appointment__claim {
  border-radius: 8px;
  border-color: #c7d2fe;
  background: #ffffff;
  color: #5868f0;
  font-weight: 600;
}

.staff-figma-shell .planner-list-table-head {
  min-height: 44px;
  background: #ffffff;
  color: #5a6478;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0;
}

.staff-figma-shell .planner-list-group__time {
  background: #ffffff;
}

.staff-figma-shell .planner-list-row {
  min-height: 58px;
  background: #ffffff;
  transition: background-color 160ms ease;
}

.staff-figma-shell .planner-list-row:hover {
  background: #fbfcff;
}

.staff-figma-shell .planner-list-row--free {
  color: var(--planner-muted-light);
}

.staff-figma-shell .planner-list-title {
  color: var(--planner-text-deep);
  font-size: 0.95rem;
  font-weight: 600;
}

.staff-figma-shell .planner-list-inline-meta,
.staff-figma-shell .planner-flow-detail,
.staff-figma-shell .planner-list-cell {
  color: #94a3b8;
  font-weight: 500;
}

.staff-figma-shell .planner-list-row--cancelled .planner-list-title,
.staff-figma-shell .planner-list-row--cancelled .planner-list-kind-chip,
.staff-figma-shell .planner-list-row--cancelled .planner-list-inline-meta,
.staff-figma-shell .planner-list-row--cancelled .planner-list-truncate,
.staff-figma-shell .planner-list-row--cancelled .planner-list-cell--direction,
.staff-figma-shell .planner-list-row--cancelled .planner-flow-title,
.staff-figma-shell .planner-list-row--cancelled .planner-flow-detail,
.staff-figma-shell .planner-list-row--absent .planner-list-title,
.staff-figma-shell .planner-list-row--absent .planner-list-kind-chip,
.staff-figma-shell .planner-list-row--absent .planner-list-inline-meta,
.staff-figma-shell .planner-list-row--absent .planner-list-truncate,
.staff-figma-shell .planner-list-row--absent .planner-list-cell--direction,
.staff-figma-shell .planner-list-row--absent .planner-flow-title,
.staff-figma-shell .planner-list-row--absent .planner-flow-detail,
.staff-figma-shell .planner-list-row--deleted .planner-list-title,
.staff-figma-shell .planner-list-row--deleted .planner-list-kind-chip,
.staff-figma-shell .planner-list-row--deleted .planner-list-inline-meta,
.staff-figma-shell .planner-list-row--deleted .planner-list-truncate,
.staff-figma-shell .planner-list-row--deleted .planner-list-cell--direction,
.staff-figma-shell .planner-list-row--deleted .planner-flow-title,
.staff-figma-shell .planner-list-row--deleted .planner-flow-detail {
  color: #94a3b8;
  text-decoration-line: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(100, 116, 139, 0.58);
  text-decoration-skip-ink: auto;
}

.staff-figma-shell .planner-modal-backdrop {
  background: rgba(15, 23, 42, 0.26);
  backdrop-filter: blur(2px);
}

.staff-figma-shell .planner-modal {
  border-radius: 21px;
  border-color: var(--planner-border);
  background: #ffffff;
  box-shadow: var(--planner-shadow-float);
  overflow: hidden;
}

.staff-figma-shell .planner-modal__header {
  border-bottom-color: var(--planner-border-soft);
  background: #ffffff;
}

.staff-figma-shell .planner-modal__header h2 {
  color: var(--planner-text-deep);
  font-size: 1.375rem;
  font-weight: 640;
  letter-spacing: 0;
}

.staff-figma-shell .planner-modal__header p {
  color: #94a3b8;
  font-weight: 520;
}

.staff-figma-shell .planner-modal__footer {
  border-top: 0;
  background: #f8fafc;
}

.staff-figma-shell .planner-input {
  border-color: var(--planner-border);
  border-radius: 9px;
  background: #ffffff;
  color: #334155;
  font-weight: 500;
}

.staff-figma-shell .planner-field__label {
  color: #5b6476;
  font-weight: 600;
}

.staff-figma-shell .planner-note-card,
.staff-figma-shell .planner-detail-row,
.staff-figma-shell .planner-context-actions-card,
.staff-figma-shell .planner-context-action,
.staff-figma-shell .planner-client-result,
.staff-figma-shell .planner-series-block,
.staff-figma-shell .planner-series-overview-card {
  border-color: var(--planner-border-soft);
  border-radius: 13px;
  background: #f8fafc;
}

.staff-figma-shell .planner-context-actions-card {
  border-color: color-mix(in srgb, var(--low) 30%, white 70%);
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--low) 12%, white 88%) 0%,
      color-mix(in srgb, var(--low) 6%, white 94%) 100%
    );
}

.staff-figma-shell .planner-context-actions-card__header h3 {
  color: color-mix(in srgb, var(--low) 78%, var(--text) 22%);
}

.staff-figma-shell .planner-context-actions-card__header p {
  color: color-mix(in srgb, var(--low) 48%, var(--muted) 52%);
}

.staff-figma-shell .planner-context-actions-card .planner-context-action,
.staff-figma-shell .planner-context-actions-card .planner-context-action--primary,
.staff-figma-shell .planner-context-actions-card .planner-context-action--danger {
  background: #ffffff;
}

.staff-figma-shell .planner-context-actions-card .planner-context-action:not(.planner-context-action--danger) {
  border-color: color-mix(in srgb, var(--low) 20%, white 80%);
}

.staff-figma-shell .planner-context-actions-card .planner-context-action:hover:not(:disabled),
.staff-figma-shell .planner-context-actions-card .planner-context-action--primary:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--low) 38%, white 62%);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(79, 184, 157, 0.11);
}

.staff-figma-shell .planner-context-actions-card .planner-context-action--danger:hover:not(:disabled) {
  background: #ffffff;
}

.staff-figma-shell .planner-icon-button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #f8fafc;
  color: #758195;
}

.staff-figma-shell .planner-icon-button:hover {
  background: #eef2f7;
  color: #475569;
}

.staff-figma-shell .planner-lane-menu {
  width: 230px;
  padding: 6px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
}

.staff-figma-shell .planner-lane-menu__header {
  padding: 10px 10px 4px;
}

.staff-figma-shell .planner-lane-menu__header p {
  display: none;
}

.staff-figma-shell .planner-lane-row {
  min-height: 42px;
  padding: 10px 8px;
  border-radius: 9px;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
}

.staff-figma-shell .planner-lane-row:hover {
  background: #f8fafc;
}

.staff-figma-shell .planner-lane-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.staff-figma-shell .planner-lane-row__label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.staff-figma-shell .planner-lane-row__toggle {
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: #e2e8f0;
  padding: 2px;
  transition: background-color 160ms ease;
}

.staff-figma-shell .planner-lane-row__toggle::after {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.2);
  transition: transform 160ms ease;
}

.staff-figma-shell .planner-lane-row input:checked ~ .planner-lane-row__toggle {
  background: #6674f0;
}

.staff-figma-shell .planner-lane-row input:checked ~ .planner-lane-row__toggle::after {
  transform: translateX(14px);
}

.staff-app-shell--planner-large,
.staff-figma-shell.route-planner-large,
.staff-figma-shell.route-agenda-large {
  min-height: 100vh;
  background: var(--planner-bg);
}

.staff-figma-shell.route-planner-large::before,
.staff-figma-shell.route-agenda-large::before {
  display: none;
}

.staff-figma-shell.route-planner-large .page-shell,
.staff-figma-shell.route-agenda-large .page-shell,
.staff-webphone-root .staff-figma-shell.route-planner-large .page-shell,
.staff-webphone-root .staff-figma-shell.route-agenda-large .page-shell,
.staff-webphone-root--with-call-column .staff-figma-shell.route-planner-large .page-shell,
.staff-webphone-root--with-call-column .staff-figma-shell.route-agenda-large .page-shell {
  height: 100vh;
  min-height: 0;
  padding: 10px 10px 0;
  overflow: hidden;
  background: var(--planner-bg);
}

.staff-figma-shell.route-planner-large .page-layout,
.staff-figma-shell.route-planner-large .page-main,
.staff-figma-shell.route-planner-large .planner-page-intro,
.staff-figma-shell.route-agenda-large .page-layout,
.staff-figma-shell.route-agenda-large .page-main,
.staff-figma-shell.route-agenda-large .planner-page-intro {
  min-height: 0;
  height: 100%;
}

.staff-figma-shell.route-planner-large .page-main--planner-large,
.staff-figma-shell.route-agenda-large .page-main--agenda-large {
  gap: 0;
}

.staff-figma-shell.route-planner-large .planner-page-intro,
.staff-figma-shell.route-agenda-large .planner-page-intro {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
}

.staff-figma-shell.route-agenda-large .planner-page-intro {
  position: fixed;
  inset: 10px 10px 0;
  z-index: 2;
  width: calc(100vw - 20px);
  max-width: none;
}

.staff-figma-shell.route-agenda-large .planner-page-intro > *,
.staff-figma-shell.route-agenda-large .planner-command-card,
.staff-figma-shell.route-agenda-large .planner-view-card {
  width: calc(100vw - 20px);
  max-width: none;
  min-width: 0;
  justify-self: stretch;
  box-sizing: border-box;
}

.staff-figma-shell.route-planner-large .planner-page-intro > .page-title-row,
.staff-figma-shell.route-agenda-large .planner-page-intro > .page-title-row {
  display: none;
}

.staff-figma-shell.route-planner-large .planner-command-card,
.staff-figma-shell.route-agenda-large .planner-command-card {
  padding: 10px 12px;
  border-radius: 10px;
}

.staff-figma-shell.route-planner-large .planner-filter-card--embedded,
.staff-figma-shell.route-agenda-large .planner-filter-card--embedded {
  margin-top: 8px;
  padding: 8px 10px;
  gap: 8px;
}

.staff-figma-shell.route-planner-large .planner-filter-card__grid--compact,
.staff-figma-shell.route-agenda-large .planner-filter-card__grid--compact {
  gap: 8px;
}

.staff-figma-shell.route-planner-large .planner-filter-field.is-compact,
.staff-figma-shell.route-planner-large .planner-filter-field.is-compact .planner-input,
.staff-figma-shell.route-agenda-large .planner-filter-field.is-compact,
.staff-figma-shell.route-agenda-large .planner-filter-field.is-compact .planner-input {
  min-height: 34px;
}

.staff-figma-shell.route-planner-large .planner-filter-card__footer,
.staff-figma-shell.route-agenda-large .planner-filter-card__footer {
  gap: 8px;
  justify-content: flex-start;
}

.staff-figma-shell.route-planner-large .planner-toolbar-card__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.staff-figma-shell.route-planner-large .planner-toolbar-card__actions .planner-button {
  min-height: 32px;
  padding: 0 11px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 500;
}

.staff-figma-shell.route-planner-large .planner-toolbar-card__actions .planner-button svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.staff-figma-shell.route-planner-large .planner-toolbar-card__actions .planner-button--primary {
  min-width: 184px;
  box-shadow: 0 4px 10px rgba(46, 203, 135, 0.18);
}

.staff-figma-shell.route-planner-large .planner-toolbar-card__actions .planner-button--secondary {
  min-width: 118px;
  border-color: #27B4F5;
  background: #27B4F5;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(39, 180, 245, 0.2);
}

.staff-figma-shell.route-planner-large .planner-toolbar-card__actions .planner-button--secondary:hover:not(:disabled) {
  border-color: #1ea4df;
  background: #1ea4df;
  color: #ffffff;
}

.staff-figma-shell.route-planner-large .planner-filter-card__actions .planner-button {
  min-height: 32px;
}

.staff-figma-shell.route-planner-large .planner-view-card,
.staff-figma-shell.route-agenda-large .planner-view-card {
  min-height: 0;
  height: 100%;
  border-radius: 10px 10px 0 0;
}

.staff-figma-shell.route-planner-large .planner-agenda-view,
.staff-figma-shell.route-planner-large .planner-agenda-viewport,
.staff-figma-shell.route-agenda-large .planner-list-view,
.staff-figma-shell.route-agenda-large .planner-list-viewport {
  min-height: 0;
  height: 100%;
}

@media (max-width: 1420px) {
  .staff-figma-shell .planner-command-card__top {
    grid-template-columns: minmax(0, 1fr);
  }

  .staff-figma-shell .planner-status-line--embedded {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
  }

  .staff-figma-shell .planner-toolbar-card__left {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
    justify-content: center;
  }

  .staff-figma-shell .planner-toolbar-card__right {
    grid-column: 1;
    grid-row: 3;
    justify-self: center;
    justify-content: center;
  }

  .staff-figma-shell.route-planner-large .planner-command-card__top {
    grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  }

  .staff-figma-shell.route-planner-large .planner-status-line--embedded {
    grid-column: 2;
    grid-row: 1;
  }

  .staff-figma-shell.route-planner-large .planner-toolbar-card__left {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    justify-content: flex-start;
  }

  .staff-figma-shell.route-planner-large .planner-toolbar-card__right {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    justify-content: flex-end;
  }
}

@media (max-width: 900px) {
  .staff-figma-shell.route-planner-large .planner-command-card__top {
    grid-template-columns: minmax(0, 1fr);
  }

  .staff-figma-shell.route-planner-large .planner-status-line--embedded,
  .staff-figma-shell.route-planner-large .planner-toolbar-card__left,
  .staff-figma-shell.route-planner-large .planner-toolbar-card__right {
    grid-column: 1;
    justify-self: stretch;
  }

  .staff-figma-shell.route-planner-large .planner-status-line--embedded {
    grid-row: 1;
  }

  .staff-figma-shell.route-planner-large .planner-toolbar-card__left {
    grid-row: 2;
  }

  .staff-figma-shell.route-planner-large .planner-toolbar-card__right {
    grid-row: 3;
  }

  .staff-figma-shell.route-planner .page-shell {
    padding-left: 18px;
    padding-right: 18px;
  }

  .staff-figma-shell .planner-page-intro > .page-title-row {
    margin-left: -18px;
    margin-right: -18px;
    padding: 0 18px;
  }

  .staff-figma-shell .planner-page-intro .page-title {
    font-size: 1.625rem;
  }

  .staff-figma-shell .planner-topbar-refresh {
    font-size: 0.82rem;
  }

  .staff-figma-shell .planner-command-card,
  .staff-figma-shell .planner-filter-card--embedded {
    padding: 18px;
  }

  .staff-figma-shell .planner-status-line__nav {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }

  .staff-figma-shell .planner-toolbar-card__left,
  .staff-figma-shell .planner-toolbar-card__right,
  .staff-figma-shell .planner-button,
  .staff-figma-shell .planner-button--primary,
  .staff-figma-shell .planner-button--secondary,
  .staff-figma-shell .planner-button--ghost,
  .staff-figma-shell .planner-button--neutral {
    width: 100%;
    min-width: 0;
  }

  .staff-figma-shell .planner-toolbar-card__right {
    justify-content: flex-end;
  }

  .staff-figma-shell .planner-filter-card--embedded,
  .staff-figma-shell .planner-filter-card__meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .staff-figma-shell .planner-filter-card__grid--compact,
  .staff-figma-shell .planner-filter-field.is-compact {
    width: 100%;
  }
}

.staff-figma-shell .waitroom-total {
  min-width: 160px;
  padding: 24px 22px;
  border-radius: 22px;
  background: var(--staff-panel-surface, #ffffff);
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 88%, white 12%);
  box-shadow: 0 14px 34px rgba(36, 54, 73, 0.06);
  text-align: right;
}

.staff-figma-shell .card,
.staff-figma-shell .panel,
.staff-figma-shell .table-card,
.staff-figma-shell .stat-card {
  position: relative;
  background: var(--staff-panel-surface, #ffffff);
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 88%, white 12%);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(36, 54, 73, 0.06);
}

.staff-figma-shell .panel,
.staff-figma-shell .stat-card {
  padding: 24px;
}

.staff-figma-shell .table-card {
  overflow: hidden;
}

.staff-figma-shell .table-header-bar {
  padding: 18px 20px 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 82%, white 18%);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 24%, white 76%) 0%,
    rgba(255, 255, 255, 0.96) 100%
  );
}

.staff-figma-shell .table-header-copy {
  display: grid;
  gap: 6px;
}

.staff-figma-shell .table-subtitle {
  margin: 0;
  color: var(--staff-text-muted, #728191);
  font-size: 0.88rem;
  line-height: 1.5;
}

.staff-figma-shell .table-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.staff-figma-shell .waitroom-summary-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 78%, white 22%);
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 75%, white 25%);
  color: color-mix(in srgb, var(--staff-primary-action, #5db85d) 68%, var(--staff-text, #243649) 32%);
  font-size: 0.82rem;
  font-weight: 600;
}

.staff-figma-shell .waitroom-widget-shell {
  overflow: hidden;
}

.staff-figma-shell .waitroom-widget-body {
  display: grid;
  gap: 18px;
  padding: 24px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    color-mix(in srgb, var(--staff-app-background, #eef9fa) 58%, white 42%) 100%
  );
}

.staff-figma-shell .waitroom-widget-body.status-loading_next_call,
.staff-figma-shell .waitroom-widget-body.status-idle_empty {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    color-mix(in srgb, var(--staff-info-blue-surface, #edf5fb) 68%, white 32%) 100%
  );
}

.staff-figma-shell .waitroom-widget-body.status-claimed_known_profile,
.staff-figma-shell .waitroom-widget-body.status-claimed_unknown_number {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 74%, white 26%) 100%
  );
}

.staff-figma-shell .waitroom-widget-body.status-opening_destination,
.staff-figma-shell .waitroom-widget-body.status-active_call_minimizable {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 64%, var(--staff-info-blue-surface, #edf5fb) 36%) 100%
  );
}

.staff-figma-shell .waitroom-widget-body.status-no_calls_available {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    color-mix(in srgb, var(--staff-tool-surface, #f3f8f9) 72%, white 28%) 100%
  );
}

.staff-figma-shell .waitroom-widget-body.status-error {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    color-mix(in srgb, var(--staff-danger-tone, #d96e76) 10%, white 90%) 100%
  );
}

.staff-figma-shell .waitroom-widget-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.staff-figma-shell .waitroom-widget-channel,
.staff-figma-shell .waitroom-widget-countdown {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 74%, white 26%);
}

.staff-figma-shell .waitroom-widget-channel {
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 78%, white 22%);
  color: color-mix(in srgb, var(--staff-primary-action, #5db85d) 64%, var(--staff-text, #243649) 36%);
}

.staff-figma-shell .waitroom-widget-channel.video {
  background: color-mix(in srgb, var(--staff-info-blue-surface, #edf5fb) 82%, white 18%);
  color: color-mix(in srgb, var(--staff-info-blue-text, #5a7692) 82%, var(--staff-text, #243649) 18%);
}

.staff-figma-shell .waitroom-widget-channel.phone {
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 86%, white 14%);
  color: color-mix(in srgb, var(--staff-success-tone, #4fb89d) 76%, var(--staff-text, #243649) 24%);
}

.staff-figma-shell .waitroom-widget-channel.audio {
  background: color-mix(in srgb, var(--staff-tool-surface, #f3f8f9) 88%, white 12%);
  color: var(--staff-text-muted, #728191);
}

.staff-figma-shell .waitroom-widget-countdown {
  background: rgba(255, 255, 255, 0.9);
  color: var(--staff-text, #243649);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 78%, white 22%);
}

.staff-figma-shell .waitroom-widget-copy {
  display: grid;
  gap: 8px;
}

.staff-figma-shell .waitroom-widget-title {
  margin: 0;
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  line-height: 1.08;
  font-weight: 600;
  color: var(--staff-text, #243649);
}

.staff-figma-shell .waitroom-widget-subline {
  margin: 0;
  color: var(--staff-text-muted, #728191);
  font-size: 0.98rem;
  line-height: 1.55;
}

.staff-figma-shell .waitroom-widget-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.staff-figma-shell .waitroom-widget-facts div {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 74%, white 26%);
  background: color-mix(in srgb, var(--staff-panel-surface, #ffffff) 88%, var(--staff-primary-soft, #eef8ee) 12%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.staff-figma-shell .waitroom-widget-facts span {
  color: var(--staff-text-muted, #728191);
  font-size: 0.76rem;
}

.staff-figma-shell .waitroom-widget-facts strong {
  color: var(--staff-text, #243649);
  font-size: 0.92rem;
  line-height: 1.35;
}

.staff-figma-shell .waitroom-widget-message {
  margin: 0;
  color: var(--staff-text-muted, #728191);
  line-height: 1.6;
}

.staff-figma-shell .waitroom-widget-warning {
  margin: 0;
}

.staff-figma-shell .waitroom-widget-warning.detail-info {
  background: color-mix(in srgb, var(--staff-info-blue-surface, #edf5fb) 82%, white 18%);
  color: var(--staff-info-blue-text, #5a7692);
  border-color: color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 70%, var(--staff-info-blue-surface, #edf5fb) 30%);
}

.staff-figma-shell .waitroom-widget-actions {
  margin-top: 4px;
}

.staff-figma-shell .waitroom-widget-actions .primary.success {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--staff-success-tone, #4fb89d) 86%, white 14%) 0%,
    color-mix(in srgb, var(--staff-success-tone, #4fb89d) 100%, var(--staff-text, #243649) 0%) 100%
  ) !important;
}

.staff-figma-shell .waitroom-widget-actions .danger {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--staff-danger-tone, #d96e76) 72%, white 28%) 0%,
    var(--staff-danger-tone, #d96e76) 100%
  ) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.staff-figma-shell .card-header,
.staff-figma-shell .panel-header,
.staff-figma-shell .table-header-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.staff-figma-shell .card-header.compact {
  margin-bottom: 12px;
}

.staff-figma-shell .card-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--staff-text, #243649);
}

.staff-figma-shell .stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.staff-figma-shell .stat-card .eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--staff-text-muted, #728191);
}

.staff-figma-shell .icon-chip {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 74%, white 26%);
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 76%, white 24%);
  color: color-mix(in srgb, var(--staff-primary-action, #5db85d) 68%, var(--staff-text, #243649) 32%);
}

.staff-figma-shell .icon-chip.green {
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 84%, white 16%);
  color: color-mix(in srgb, var(--staff-success-tone, #4fb89d) 80%, var(--staff-text, #243649) 20%);
}

.staff-figma-shell .icon-chip.amber {
  background: color-mix(in srgb, var(--staff-accent-warm, #edb36f) 18%, white 82%);
  color: color-mix(in srgb, var(--staff-warning-tone, #d79b56) 84%, var(--staff-text, #243649) 16%);
}

.staff-figma-shell .stat-value {
  font-size: clamp(2rem, 2.8vw, 2.7rem);
  font-weight: 700;
  line-height: 1;
  margin: 0 0 10px;
  color: var(--staff-text, #243649);
}

.staff-figma-shell .stat-meta {
  color: var(--staff-text-muted, #728191);
  font-size: 0.84rem;
}

.staff-figma-shell .wait-card-rows {
  display: grid;
  gap: 12px;
}

.staff-figma-shell .wait-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 72%, white 28%);
}

.staff-figma-shell .wait-card-row:last-child {
  border-bottom: 0;
}

.staff-figma-shell .info-panel-blue {
  background: color-mix(in srgb, var(--staff-info-blue-surface, #edf5fb) 82%, white 18%);
  border-color: color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 68%, var(--staff-info-blue-surface, #edf5fb) 32%);
}

.staff-figma-shell .claim-help {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.staff-figma-shell .claim-help-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 76%, white 24%);
  color: color-mix(in srgb, var(--staff-primary-action, #5db85d) 70%, var(--staff-text, #243649) 30%);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 72%, white 28%);
}

.staff-figma-shell .claim-help-title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--staff-text, #243649);
}

.staff-figma-shell .info-bullet-list {
  margin: 0;
  padding-left: 18px;
  color: var(--staff-text, #243649);
  line-height: 1.65;
  display: grid;
  gap: 6px;
}

.staff-figma-shell .wait-card-label {
  color: var(--staff-text-muted, #728191);
  font-size: 0.88rem;
}

.staff-figma-shell .wait-card-value {
  color: var(--staff-text, #243649);
  font-weight: 600;
}

.staff-figma-shell .live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 84%, white 16%);
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 74%, white 26%);
  color: color-mix(in srgb, var(--staff-success-tone, #4fb89d) 78%, var(--staff-text, #243649) 22%);
}

.staff-figma-shell .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
  flex-shrink: 0;
}

.staff-figma-shell .status-dot.online {
  background: var(--staff-success-tone, #4fb89d);
}

.staff-figma-shell .svg-icon {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.staff-figma-shell .svg-icon--gear {
  display: inline-block;
  background: currentColor;
  mask: url("/staff/src/assets/raphaelsilva-gear-clean.svg") center / contain no-repeat;
  -webkit-mask: url("/staff/src/assets/raphaelsilva-gear-clean.svg") center / contain no-repeat;
}

.staff-figma-shell .svg-icon.sm {
  width: 0.9rem;
  height: 0.9rem;
}

.staff-figma-shell .svg-icon.lg {
  width: 1.2rem;
  height: 1.2rem;
}

.staff-figma-shell .mismatch-dot {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--staff-danger-tone, #d96e76);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  vertical-align: middle;
  margin-left: 6px;
}

.legacy-portal-archive {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 2px solid #e2e8f0;
}

.legacy-portal-archive-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.legacy-portal-kicker {
  margin: 0 0 6px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.legacy-portal-archive-header h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.legacy-portal-archive-header p {
  margin: 0;
  color: #64748b;
  line-height: 1.55;
}

.legacy-portal-layout {
  margin-top: 20px;
}

.staff-figma-shell .queue-table-wrapper {
  overflow: hidden;
  background: var(--staff-panel-surface, #ffffff);
  padding: 0 20px 10px;
}

.staff-figma-shell .queue-table {
  width: 100%;
  border-collapse: collapse;
}

.staff-figma-shell .queue-table th,
.staff-figma-shell .queue-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 76%, white 24%);
  vertical-align: top;
}

.staff-figma-shell .queue-table th {
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 24%, white 76%);
  color: var(--staff-text-muted, #728191);
  font-size: 0.79rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.01em;
}

.staff-figma-shell .queue-table tbody tr:hover {
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 36%, white 64%);
}

.staff-figma-shell .queue-table .claimed-row {
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 46%, white 54%);
}

.staff-figma-shell .table-center {
  text-align: center;
}

.staff-figma-shell .table-type-col {
  width: 80px;
  text-align: center;
}

.staff-figma-shell .table-wait-col {
  width: 132px;
}

.staff-figma-shell .table-action-col {
  width: 240px;
  text-align: right;
}

.staff-figma-shell .waitroom-row-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.staff-figma-shell .waitroom-type-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 72%, white 28%);
  background: color-mix(in srgb, var(--staff-tool-surface, #f3f8f9) 76%, white 24%);
  color: var(--staff-text-muted, #728191);
}

.staff-figma-shell .waitroom-type-icon.video {
  background: color-mix(in srgb, var(--staff-info-blue-surface, #edf5fb) 84%, white 16%);
  color: var(--staff-info-blue-text, #5a7692);
}

.staff-figma-shell .waitroom-type-icon.audio {
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 82%, white 18%);
  color: color-mix(in srgb, var(--staff-success-tone, #4fb89d) 76%, var(--staff-text, #243649) 24%);
}

.staff-figma-shell .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.staff-figma-shell .waitroom-name {
  display: grid;
  gap: 6px;
}

.staff-figma-shell .waitroom-name-primary {
  margin: 0;
  color: var(--staff-text, #243649);
  font-size: 0.96rem;
  font-weight: 600;
}

.staff-figma-shell .waitroom-name-secondary {
  margin: 0;
  color: var(--staff-text-muted, #728191);
  font-size: 0.76rem;
}

.staff-figma-shell .waitroom-queue-table-card {
  overflow: hidden;
}

.staff-figma-shell .waitroom-queue-table-card .panel-head {
  align-items: flex-start;
}

.staff-figma-shell .waitroom-queue-table-card .queue-table-wrapper {
  margin-top: 16px;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 78%, white 22%);
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--staff-panel-surface, #ffffff) 88%, white 12%) 0%,
      color-mix(in srgb, var(--staff-tool-surface, #f3f8f9) 12%, white 88%) 100%
    );
  padding: 0 16px 8px;
}

.staff-figma-shell .waitroom-queue-table-card .queue-table th,
.staff-figma-shell .waitroom-queue-table-card .queue-table td {
  padding: 14px 16px;
  vertical-align: middle;
}

.staff-figma-shell .waitroom-queue-table-card .queue-table th {
  font-size: 0.76rem;
  letter-spacing: 0.03em;
}

.staff-figma-shell .waitroom-queue-status-cell {
  display: grid;
  gap: 6px;
}

.staff-figma-shell .waitroom-queue-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 76%, white 24%);
  font-size: 0.78rem;
  font-weight: 700;
}

.staff-figma-shell .waitroom-queue-status-badge.tone-waiting {
  background: color-mix(in srgb, var(--staff-accent-warm, #edb36f) 18%, white 82%);
  color: color-mix(in srgb, var(--staff-warning-tone, #d79b56) 84%, var(--staff-text, #243649) 16%);
}

.staff-figma-shell .waitroom-queue-status-badge.tone-offered {
  background: color-mix(in srgb, var(--staff-accent-warm, #edb36f) 22%, white 78%);
  color: color-mix(in srgb, var(--staff-warning-tone, #d79b56) 88%, var(--staff-text, #243649) 12%);
}

.staff-figma-shell .waitroom-queue-status-badge.tone-claimed {
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 84%, white 16%);
  color: color-mix(in srgb, var(--staff-success-tone, #4fb89d) 76%, var(--staff-text, #243649) 24%);
}

.staff-figma-shell .waitroom-queue-status-badge.tone-finished {
  background: color-mix(in srgb, var(--staff-tool-surface, #f3f8f9) 88%, white 12%);
  color: var(--staff-text-muted, #728191);
}

.staff-figma-shell .waitroom-queue-status-meta {
  color: var(--staff-text-muted, #728191);
  font-size: 0.78rem;
  line-height: 1.4;
}

.staff-figma-shell .waitroom-queue-status-meta.is-urgent {
  color: color-mix(in srgb, var(--staff-danger-tone, #d96e76) 86%, var(--staff-text, #243649) 14%);
  font-weight: 700;
}

.staff-figma-shell .waitroom-time-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 76%, white 24%);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
  font-weight: 600;
}

.staff-figma-shell .waitroom-time-pill.safe {
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 84%, white 16%);
  color: color-mix(in srgb, var(--staff-success-tone, #4fb89d) 76%, var(--staff-text, #243649) 24%);
}

.staff-figma-shell .waitroom-time-pill.warning {
  background: color-mix(in srgb, var(--staff-accent-warm, #edb36f) 18%, white 82%);
  color: color-mix(in srgb, var(--staff-warning-tone, #d79b56) 84%, var(--staff-text, #243649) 16%);
}

.staff-figma-shell .waitroom-time-pill.danger {
  background: color-mix(in srgb, var(--staff-danger-tone, #d96e76) 16%, white 84%);
  color: color-mix(in srgb, var(--staff-danger-tone, #d96e76) 86%, var(--staff-text, #243649) 14%);
}

.staff-figma-shell .waitroom-action-cell {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.staff-figma-shell .claim-progress-button,
.staff-figma-shell .claim-owner-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 0.875rem;
  font-weight: 600;
}

.staff-figma-shell .claim-progress-button.checking {
  background: color-mix(in srgb, var(--staff-info-blue-surface, #edf5fb) 82%, white 18%);
  color: var(--staff-info-blue-text, #5a7692);
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 70%, var(--staff-info-blue-surface, #edf5fb) 30%);
}

.staff-figma-shell .claim-owner {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.staff-figma-shell .waitroom-queue-table-card .claim-owner {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  margin-top: 0;
  white-space: nowrap;
}

.staff-figma-shell .waitroom-queue-table-card .claim-owner-chip {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.78rem;
}

.staff-figma-shell .waitroom-queue-table-card .claim-owner-name,
.staff-figma-shell .waitroom-queue-table-card .claim-owner-role {
  line-height: 1.2;
  white-space: nowrap;
}

.staff-figma-shell .claim-owner-chip {
  background: color-mix(in srgb, var(--staff-tool-surface, #f3f8f9) 84%, white 16%);
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 76%, white 24%);
  color: var(--staff-text-muted, #728191);
}

.staff-figma-shell .claim-owner-chip.self {
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 84%, white 16%);
  color: color-mix(in srgb, var(--staff-success-tone, #4fb89d) 76%, var(--staff-text, #243649) 24%);
}

.staff-figma-shell .claim-owner-chip.answered {
  background: color-mix(in srgb, var(--staff-info-blue-surface, #edf5fb) 84%, white 16%);
  color: var(--staff-info-blue-text, #5a7692);
}

.staff-figma-shell .claim-owner-name {
  color: var(--staff-text-muted, #728191);
  font-size: 0.75rem;
}

.staff-figma-shell .claim-owner-role {
  color: color-mix(in srgb, var(--staff-text-muted, #728191) 82%, white 18%);
  font-size: 0.72rem;
  line-height: 1.4;
}

.staff-figma-shell .claim-owner-name.self {
  color: color-mix(in srgb, var(--staff-success-tone, #4fb89d) 78%, var(--staff-text, #243649) 22%);
  font-weight: 600;
}

.staff-figma-shell .claim-owner-name.answered {
  color: var(--staff-info-blue-text, #5a7692);
  font-weight: 600;
}

.staff-figma-shell .table-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 76%, white 24%);
  background: color-mix(in srgb, var(--staff-panel-surface, #ffffff) 84%, var(--staff-tool-surface, #f3f8f9) 16%);
  color: var(--staff-text, #243649);
  font-size: 0.875rem;
  font-weight: 600;
}

.staff-figma-shell .table-link-button:hover {
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 36%, white 64%);
}

.staff-figma-shell .waitroom-queue-table-card .queue-note--compact {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.78rem;
  line-height: 1.5;
}

.staff-figma-shell .waitroom-empty {
  min-height: 320px;
}

.staff-figma-shell .empty-state {
  margin: 0;
  padding: 32px 16px;
  text-align: center;
  color: var(--staff-text-muted, #728191);
}

.staff-figma-shell .empty-state-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 48%, white 52%);
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 70%, white 30%);
  color: var(--staff-text-muted, #728191);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.staff-figma-shell .empty-state strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: var(--staff-text, #243649);
}

.staff-figma-shell .waitroom-footer {
  padding: 14px 18px;
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 18%, white 82%);
  border-top: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 74%, white 26%);
}

.staff-figma-shell .waitroom-footer-copy,
.staff-figma-shell .waitroom-footer-note {
  margin: 0;
}

.staff-figma-shell .waitroom-footer-copy {
  color: var(--staff-text-muted, #728191);
  font-size: 0.875rem;
}

.staff-figma-shell .waitroom-footer-count {
  color: var(--staff-text, #243649);
  font-weight: 600;
}

.staff-figma-shell .waitroom-footer-note {
  color: color-mix(in srgb, var(--staff-text-muted, #728191) 82%, white 18%);
  font-size: 0.75rem;
}

@media (max-width: 1120px) {
  .staff-webphone-root--with-call-column .staff-figma-shell .page-shell {
    max-width: 1280px;
    padding-right: 24px;
  }

  .staff-global-call-column {
    position: static;
    width: auto;
    display: block;
    max-height: none;
    padding: 0 24px 24px;
    overflow: visible;
  }

  .staff-global-call-rail {
    max-height: none;
    border-radius: 20px;
  }

  .staff-figma-shell .page-layout {
    grid-template-columns: 1fr;
  }

  .staff-figma-shell .page-sidebar {
    position: static;
  }

  .staff-figma-shell .stat-grid {
    grid-template-columns: 1fr;
  }

  .staff-figma-shell .statistics-filter-row,
  .staff-figma-shell .statistics-primary-layout,
  .staff-figma-shell .statistics-secondary-grid,
  .staff-figma-shell .statistics-analysis-grid {
    grid-template-columns: 1fr;
  }

  .staff-figma-shell .statistics-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .staff-figma-shell .statistics-kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .staff-figma-shell .statistics-filter-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .staff-figma-shell .statistics-support-metrics {
    grid-template-columns: 1fr;
  }

  .staff-figma-shell .client-profile-overview-grid,
  .staff-figma-shell .client-profile-system-grid,
  .staff-figma-shell .client-profile-compact-grid {
    grid-template-columns: 1fr;
  }

  .staff-figma-shell .preferences-page-shell,
  .staff-figma-shell .preferences-grid {
    grid-template-columns: 1fr;
  }

  .staff-portal-shell .preferences-ringtone-row {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .staff-portal-shell .preferences-ringtone-picker {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .staff-portal-shell .preferences-access-summary {
    grid-template-columns: 1fr;
  }

  .staff-portal-shell .preferences-ringtone-row .preferences-preview-button {
    justify-self: stretch;
    width: 100%;
  }

  .staff-portal-shell .preferences-ringtone-actions {
    width: 100%;
  }

  .staff-figma-shell .waitroom-widget-facts {
    grid-template-columns: 1fr;
  }

  .staff-figma-shell .missed-call-detail-grid {
    grid-template-columns: 1fr;
  }

  .staff-figma-shell .queue-table-wrapper {
    overflow-x: auto;
  }
}

@media (max-width: 720px) {
  .staff-webphone-root {
    --staff-webphone-shell-gutter: 16px;
    --staff-webphone-header-left-padding: calc(var(--staff-webphone-rail-reserve) + var(--staff-webphone-shell-gutter));
    --staff-webphone-subbar-left-padding: calc(var(--staff-webphone-rail-reserve) + var(--staff-webphone-shell-gutter));
    --staff-webphone-page-left-padding: calc(var(--staff-webphone-rail-reserve) + var(--staff-webphone-shell-gutter));
  }

  .staff-global-call-column {
    padding-left: 16px;
    padding-right: 16px;
  }

  .staff-global-call-rail {
    border-radius: 18px;
  }

  .staff-webphone-root .staff-figma-shell .app-header-subbar-inner,
  .staff-webphone-root .staff-figma-shell .page-shell {
    padding-left: var(--staff-webphone-page-left-padding);
    padding-right: 16px;
  }

  .staff-figma-shell .page-intro,
  .legacy-portal-archive-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .staff-figma-shell .queue-table {
    min-width: 720px;
  }

  .staff-figma-shell .waitroom-widget-body {
    padding: 20px 18px;
  }

  .staff-figma-shell .waitroom-widget-topline,
  .staff-figma-shell .waitroom-widget-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .staff-figma-shell .client-profile-tab-content {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .staff-figma-shell .client-profile-workbench {
    min-height: auto;
  }

  .staff-figma-shell .client-profile-edit-form {
    grid-template-columns: 1fr;
  }

  .staff-figma-shell .client-profile-card-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .staff-figma-shell .statistics-filter-grid {
    grid-template-columns: 1fr;
  }

  .staff-figma-shell .statistics-filter-top,
  .staff-figma-shell .statistics-filter-heading-copy {
    align-items: flex-start;
    flex-direction: column;
  }

  .staff-figma-shell .statistics-filter-heading-copy .card-subtitle,
  .staff-figma-shell .statistics-inline-feedback {
    white-space: normal;
    text-align: left;
  }

  .staff-figma-shell .statistics-panel-head,
  .staff-figma-shell .statistics-phone-copy,
  .staff-figma-shell .statistics-balance-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .staff-figma-shell .statistics-panel-meta,
  .staff-figma-shell .statistics-panel-pills {
    justify-items: start;
    justify-content: flex-start;
  }

  .staff-figma-shell .statistics-filter-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: none;
    padding-top: 0;
  }

  .staff-figma-shell .preferences-actions,
  .staff-figma-shell .preferences-status-row {
    flex-direction: column;
    align-items: stretch;
  }

  .staff-figma-shell .statistics-kpi-row {
    grid-template-columns: 1fr;
  }

  .staff-figma-shell .statistics-filter-bar {
    padding: 16px;
  }

  .staff-figma-shell .statistics-chart-frame {
    padding: 12px;
  }

  .staff-figma-shell .statistics-chart-slot--hero {
    min-height: 320px;
  }

  .staff-figma-shell .statistics-chart-slot {
    min-height: 220px;
  }

  .staff-figma-shell .missed-calls-page-layout,
  .staff-figma-shell .missed-calls-filter-bar,
  .staff-figma-shell .missed-calls-filter-fields {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .staff-figma-shell .missed-calls-filter-field,
  .staff-figma-shell .missed-calls-open-summary,
  .staff-figma-shell .statistics-filter-field {
    width: 100%;
  }

  .staff-figma-shell .missed-calls-open-summary {
    margin-left: 0;
    text-align: left;
  }

  .staff-figma-shell .missed-call-detail-actions,
  .staff-figma-shell .missed-call-backlog-row {
    flex-direction: column;
  }

  .staff-figma-shell .missed-call-backlog-meta {
    justify-items: start;
    text-align: left;
  }

  .staff-figma-shell .missed-calls-table th,
  .staff-figma-shell .missed-calls-table td {
    padding: 14px 12px;
  }
}

/* Managed staffportal appearance from Backoffice > Vormgeving. */
.staff-portal-shell,
.staff-figma-shell {
  font-family: var(--staff-font-body, "Ubuntu", "Avenir Next", "Trebuchet MS", sans-serif);
  font-size: var(--staff-font-size-body, 0.88rem);
}

.staff-figma-shell h1,
.staff-figma-shell h2,
.staff-figma-shell h3,
.staff-portal-shell h1,
.staff-portal-shell h2,
.staff-portal-shell h3 {
  font-family: var(--staff-font-heading, "Ubuntu", "Avenir Next", "Trebuchet MS", sans-serif);
}

.staff-figma-shell .page-title,
.staff-portal-shell .staff-portal-title {
  font-family: var(--staff-font-h1, "Ubuntu", "Avenir Next", "Trebuchet MS", sans-serif);
  font-size: var(--staff-font-size-h1, 1.55rem);
}

.staff-figma-shell .card-title,
.staff-figma-shell .webphone-title,
.staff-figma-shell .client-info-card__title,
.staff-figma-shell .dashboard-section-title {
  font-family: var(--staff-font-h2, "Ubuntu", "Avenir Next", "Trebuchet MS", sans-serif);
  font-size: var(--staff-font-size-h2, 1.12rem);
}

.staff-figma-shell h3,
.staff-figma-shell .webphone-live-title,
.staff-figma-shell .incoming-call-widget__title,
.staff-figma-shell .incoming-demo-title {
  font-family: var(--staff-font-h3, "Ubuntu", "Avenir Next", "Trebuchet MS", sans-serif);
  font-size: var(--staff-font-size-h3, 0.98rem);
}

.staff-figma-shell .nav-link,
.staff-figma-shell button,
.staff-figma-shell .button,
.staff-portal-shell button,
.staff-portal-shell .staff-portal-inline-link,
.staff-portal-shell .staff-portal-secondary-link {
  font-size: var(--staff-font-size-button, 0.82rem);
}

.staff-figma-shell .cell-muted,
.staff-figma-shell .card-subtitle,
.staff-figma-shell .field-hint,
.staff-figma-shell .app-header-subbar-meta,
.staff-figma-shell .brand-subtitle,
.staff-portal-shell .staff-portal-brand-copy span,
.staff-portal-shell .staff-portal-kicker {
  font-size: var(--staff-font-size-small, 0.74rem);
}

.staff-figma-shell code,
.staff-figma-shell .incoming-call-widget__timer,
.staff-figma-shell .webphone-timer,
.staff-portal-shell code {
  font-family: var(--staff-font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
}

.staff-figma-shell .staff-logbook-terminal {
  --staff-logbook-terminal-row-height: 42px;
  --staff-logbook-terminal-min-rows: 20;
  min-width: 0;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 58%, rgba(36, 54, 73, 0.28) 42%);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(93, 184, 93, 0.08) 0%, transparent 20%),
    linear-gradient(180deg, #23333f 0%, #18242d 100%);
  box-shadow:
    0 26px 58px rgba(15, 23, 42, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.staff-figma-shell .staff-logbook-terminal__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(15, 23, 42, 0.04) 100%);
}

.staff-figma-shell .staff-logbook-terminal__prompt,
.staff-figma-shell .staff-logbook-terminal__count {
  font-family: var(--staff-font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.staff-figma-shell .staff-logbook-terminal__prompt {
  color: color-mix(in srgb, var(--staff-button-primary-start, #5db85d) 72%, white 28%);
  font-weight: 700;
}

.staff-figma-shell .staff-logbook-terminal__count {
  color: rgba(223, 236, 242, 0.68);
}

.staff-figma-shell .staff-logbook-terminal__viewport {
  display: grid;
  gap: 0;
  min-width: 0;
  max-width: 100%;
  height: calc(var(--staff-logbook-terminal-row-height) * var(--staff-logbook-terminal-min-rows));
  min-height: calc(var(--staff-logbook-terminal-row-height) * var(--staff-logbook-terminal-min-rows));
  max-height: calc(var(--staff-logbook-terminal-row-height) * var(--staff-logbook-terminal-min-rows));
  overflow-x: auto;
  overflow-y: auto;
}

.staff-figma-shell .staff-logbook-terminal__row {
  display: grid;
  grid-template-columns: 176px minmax(220px, 1.2fr) minmax(136px, 0.62fr) minmax(180px, 0.95fr);
  align-items: center;
  gap: 12px;
  min-height: var(--staff-logbook-terminal-row-height);
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--staff-font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(236, 244, 247, 0.94);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.staff-figma-shell .staff-logbook-terminal__row > * {
  min-width: 0;
}

.staff-figma-shell .staff-logbook-terminal__row:nth-child(odd) {
  background: rgba(255, 255, 255, 0.02);
}

.staff-figma-shell .staff-logbook-terminal__row:hover {
  background: rgba(93, 184, 93, 0.08);
}

.staff-figma-shell .staff-logbook-terminal__row.is-placeholder {
  color: rgba(148, 171, 180, 0.34);
}

.staff-figma-shell .staff-logbook-terminal__row.is-placeholder:hover {
  background: rgba(255, 255, 255, 0.02);
}

.staff-figma-shell .staff-logbook-terminal__stamp,
.staff-figma-shell .staff-logbook-terminal__action,
.staff-figma-shell .staff-logbook-terminal__actor,
.staff-figma-shell .staff-logbook-terminal__meta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.staff-figma-shell .staff-logbook-terminal__stamp {
  color: rgba(158, 191, 203, 0.88);
  letter-spacing: 0.01em;
}

.staff-figma-shell .staff-logbook-terminal__action {
  color: rgba(246, 250, 251, 0.98);
  font-weight: 600;
}

.staff-figma-shell .staff-logbook-terminal__actor {
  color: color-mix(in srgb, var(--staff-button-primary-start, #5db85d) 54%, white 46%);
}

.staff-figma-shell .staff-logbook-terminal__meta {
  color: rgba(197, 213, 220, 0.8);
}

.staff-figma-shell .staff-logbook-terminal__empty {
  padding: 20px 18px 22px;
  font-family: var(--staff-font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 0.78rem;
  color: rgba(208, 222, 229, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.staff-figma-shell .nav-link.active,
.staff-figma-shell .app-header-subbar-icon.is-video,
.staff-global-call-column .incoming-call-widget__badge.video {
  color: var(--staff-info-blue-text, #2563eb);
  background-color: var(--staff-info-blue-surface, #eff6ff);
}

.staff-figma-shell .push-send-button.ready,
.staff-figma-shell .push-send-button.ready:hover,
.staff-figma-shell .statistics-filter-button--primary,
.staff-figma-shell .primary,
.staff-portal-shell .primary {
  background: linear-gradient(
    180deg,
    var(--staff-button-primary-start, #2563eb) 0%,
    var(--staff-button-primary-end, #1d4ed8) 100%
  ) !important;
}

.staff-figma-shell :focus-visible,
.staff-portal-shell :focus-visible {
  outline-color: var(--staff-focus-ring, #2563eb);
}

@media (max-width: 1180px) {
  .staff-figma-shell .planner-filter-card__grid,
  .staff-figma-shell .planner-summary-grid,
  .staff-figma-shell .planner-series-analysis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 860px) {
  .staff-figma-shell .staff-logbook-terminal__row {
    grid-template-columns: 164px minmax(190px, 1.08fr) minmax(120px, 0.56fr) minmax(148px, 0.82fr);
    gap: 10px;
    padding: 0 14px;
    font-size: 0.68rem;
  }

  .staff-figma-shell .planner-command-card,
  .staff-figma-shell .planner-toolbar-card,
  .staff-figma-shell .planner-filter-card,
  .staff-figma-shell .planner-status-line {
    align-items: flex-start;
  }

  .staff-figma-shell .planner-command-card__top {
    grid-template-columns: minmax(0, 1fr);
  }

  .staff-figma-shell .planner-toolbar-card__right,
  .staff-figma-shell .planner-status-line__meta {
    justify-content: flex-start;
  }

  .staff-figma-shell .planner-status-line {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .staff-figma-shell .planner-status-line__nav {
    justify-self: start;
  }

	  .staff-figma-shell .planner-summary-grid,
	  .staff-figma-shell .planner-filter-card__grid,
	  .staff-figma-shell .planner-form-grid,
	  .staff-figma-shell .planner-form-grid--series,
	  .staff-figma-shell .planner-series-analysis,
	  .staff-figma-shell .planner-detail-grid,
	  .staff-figma-shell .planner-context-layout,
	  .staff-figma-shell .planner-one-time-layout {
	    grid-template-columns: minmax(0, 1fr);
	  }

	  .staff-figma-shell .planner-one-time-slots {
	    position: static;
	  }

	  .staff-figma-shell .planner-one-time-slots__grid {
	    grid-template-columns: minmax(0, 1fr);
	    max-height: 260px;
	  }

  .staff-figma-shell .planner-modal-backdrop {
    padding: 16px;
  }

  .staff-figma-shell .planner-toolbar-card__left > .planner-overlay-anchor {
    left: 0;
    right: auto;
    width: min(360px, calc(100vw - 48px));
  }
}

/* Staffportal rollback restoration: shell, dashboard, search/profile and right call column */
.staff-figma-shell {
  background:
    linear-gradient(
      180deg,
      rgba(238, 249, 250, 0.68) 0%,
      rgba(246, 250, 251, 0.8) 100%
    );
}

.staff-figma-shell .app-header {
  position: sticky;
  top: 0;
  z-index: 40;
}

.staff-figma-shell .app-header-subbar {
  border-bottom: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 82%, white 18%);
  background: rgba(247, 251, 252, 0.82);
  backdrop-filter: blur(10px);
}

.staff-figma-shell .app-header-subbar-inner {
  justify-content: center;
  padding: 8px 24px;
}

.staff-webphone-root .staff-figma-shell .app-header-subbar-inner {
  padding-left: var(--staff-webphone-subbar-left-padding);
}

.staff-webphone-root--with-call-column .staff-figma-shell .app-header-subbar-inner {
  padding-right: calc(var(--staff-call-column-reserve) + 18px);
}

.staff-figma-shell .app-header-subbar-status {
  justify-content: center;
  gap: 14px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.staff-figma-shell .app-header-subbar-item {
  gap: 6px;
  font-size: 0.76rem;
}

.staff-figma-shell .app-header-subbar-item.is-summary {
  padding-right: 12px;
  border-right: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 84%, white 16%);
}

.staff-figma-shell .page-shell {
  padding: 18px 24px 30px;
}

.staff-webphone-root .staff-figma-shell .page-shell {
  padding-left: var(--staff-webphone-page-left-padding);
}

.staff-webphone-root--with-call-column .staff-figma-shell .page-shell {
  padding-right: calc(var(--staff-call-column-reserve) + 18px);
}

.staff-figma-shell.route-planner-large .page-shell,
.staff-figma-shell.route-agenda-large .page-shell,
body.staff-webphone-root .staff-figma-shell.route-planner-large .page-shell,
body.staff-webphone-root .staff-figma-shell.route-agenda-large .page-shell,
body.staff-webphone-root--with-call-column .staff-figma-shell.route-planner-large .page-shell,
body.staff-webphone-root--with-call-column .staff-figma-shell.route-agenda-large .page-shell {
  height: 100vh;
  min-height: 0;
  padding: 10px 10px 0;
  overflow: hidden;
  background: var(--planner-bg);
}

.staff-figma-shell.route-agenda-large .planner-view-card,
.staff-figma-shell.route-agenda-large .planner-list-view,
.staff-figma-shell.route-agenda-large .planner-list-viewport,
.staff-figma-shell.route-agenda-large .planner-list-content {
  width: 100%;
  max-width: none;
}

.staff-figma-shell .page-layout {
  gap: 18px;
}

.staff-figma-shell .page-main {
  gap: 18px;
}

.staff-figma-shell .page-intro {
  align-items: center;
  gap: 14px;
  padding-bottom: 0;
}

.staff-figma-shell .page-title-row {
  gap: 10px;
}

.staff-figma-shell .header-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 56%, white 44%);
  box-shadow: none;
}

.staff-figma-shell .header-icon svg {
  width: 15px;
  height: 15px;
}

.staff-figma-shell .page-title {
  font-size: clamp(1.48rem, 2.1vw, 1.8rem);
  line-height: 1.08;
}

.staff-figma-shell .page-description {
  max-width: 680px;
  font-size: 0.88rem;
}

.staff-figma-shell .dashboard-mini-grid {
  align-items: stretch;
}

.staff-figma-shell .overview-card {
  border-radius: 18px;
  border-color: #e2e8f0;
  box-shadow: none;
}

.staff-figma-shell .dashboard-section-grid {
  gap: 18px;
}

.staff-figma-shell .dashboard-list-panel {
  min-height: 0;
}


.staff-figma-shell .dashboard-list-item {
  border-color: #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: none;
}

.staff-figma-shell .search-input,
.staff-figma-shell .detail-block,
.staff-figma-shell .search-result {
  border-color: #e2e8f0;
  background: #ffffff;
  box-shadow: none;
}

.staff-figma-shell .search-input {
  min-height: 48px;
  border-radius: 16px;
}

.staff-figma-shell .search-results {
  margin-top: 16px;
}

.staff-figma-shell .search-result {
  gap: 6px;
}

.staff-figma-shell .profile-panel .facts {
  margin-top: 16px;
}

.staff-figma-shell .profile-panel .detail-block {
  min-height: 0;
}

.staff-global-call-column {
  background: linear-gradient(
    180deg,
    #fbfdfe 0%,
    #f3f8fa 100%
  );
  border-left: 1px solid color-mix(in srgb, var(--staff-primary-action, #5db85d) 16%, #cbd5e1 84%);
  box-shadow:
    -18px 0 38px rgba(36, 54, 73, 0.1),
    inset 4px 0 0 color-mix(in srgb, var(--staff-primary-action, #5db85d) 22%, white 78%);
  isolation: isolate;
}

.staff-global-call-column::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--staff-primary-action, #5db85d) 86%, white 14%) 0%,
    color-mix(in srgb, var(--staff-button-primary-end, #5db85d) 74%, white 26%) 100%
  );
  opacity: 0.74;
}

.staff-global-call-column .staff-global-call-rail {
  position: relative;
  z-index: 1;
  padding: 16px 16px 18px;
  gap: 14px;
  background:
    radial-gradient(
      circle at 18% 0%,
      color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 64%, transparent) 0%,
      transparent 30%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(244, 248, 250, 0.5) 100%);
}

.staff-global-call-column .staff-toolbar,
.staff-global-call-column .global-call-queue-card,
.staff-global-call-column .incoming-call-widget,
.staff-global-call-column .global-dialer-card {
  border: 1px solid color-mix(in srgb, var(--staff-primary-action, #5db85d) 12%, #dbe4ea 88%);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 12px 28px rgba(36, 54, 73, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.staff-global-call-column .staff-toolbar,
.staff-global-call-column .incoming-call-widget-shell,
.staff-global-call-column .global-call-card--dialer {
  padding: 0;
}

.staff-global-call-column .staff-toolbar {
  overflow: visible;
}

.staff-global-call-column .staff-toolbar__inner {
  min-height: 56px;
  padding: 12px 14px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #f8fbfc 100%);
}

.staff-global-call-column .staff-toolbar__name {
  margin: 0;
  font-size: 1rem;
}

.staff-global-call-column .staff-toolbar__status {
  min-height: 38px;
  border-color: #dbe4ea;
  box-shadow: none;
}

.staff-global-call-column .staff-toolbar__status-panel {
  top: calc(100% + 8px);
  left: 0;
  right: auto;
  min-width: 180px;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.staff-global-call-column .staff-toolbar__presence-option {
  border-radius: 10px;
}

.staff-global-call-column .global-call-queue-card {
  gap: 12px;
  padding: 14px;
}

.staff-global-call-column .incoming-call-widget {
  gap: 12px;
  padding: 14px;
  border-color: color-mix(in srgb, var(--staff-primary-action, #5db85d) 18%, #dbe4ea 82%);
}

.staff-global-call-column .incoming-call-widget__meta {
  gap: 8px;
  margin: 0;
}

.staff-global-call-column .incoming-call-widget__badge,
.staff-global-call-column .incoming-call-widget__timer,
.staff-global-call-column .incoming-call-widget__status {
  min-height: 26px;
  padding: 0 10px;
  font-size: 0.72rem;
}

.staff-global-call-column .incoming-call-widget__preview {
  height: 124px;
  margin-bottom: 0;
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.14) 0%, transparent 24%),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--staff-primary-action, #5db85d) 38%, #305165 62%) 0%,
      #274253 100%
    );
}

.staff-global-call-column .incoming-call-widget__preview--empty {
  border: 1px solid color-mix(in srgb, var(--low, #4fb89d) 42%, white 58%);
  background: #ffffff;
  color: color-mix(in srgb, var(--low, #4fb89d) 84%, var(--text, #243649) 16%);
}

.staff-global-call-column .incoming-call-widget__preview--empty .incoming-call-widget__preview-empty span,
.staff-global-call-column .incoming-call-widget__preview--empty .incoming-call-widget__preview-empty strong {
  color: currentColor;
}

.staff-global-call-column .incoming-call-widget.is-expanded .incoming-call-widget__preview {
  height: 164px;
}

.staff-global-call-column .incoming-call-widget.is-video-medium .incoming-call-widget__preview {
  height: 216px;
}

.staff-global-call-column .incoming-call-widget.is-video-large .incoming-call-widget__preview {
  height: 324px;
}

.staff-global-call-column .incoming-call-widget__body {
  gap: 10px;
  padding-top: 0;
}

.staff-global-call-column .incoming-call-widget__actions {
  gap: 8px;
}

.staff-global-call-column .incoming-call-widget-button {
  min-height: 42px;
  border-radius: 14px;
  font-size: 0.82rem;
}

.staff-global-call-column .global-call-card--dialer {
  min-height: 430px;
}

.staff-global-call-column .global-dialer-card {
  gap: 12px;
  min-height: 430px;
  padding: 12px;
}

.staff-global-call-column .global-dialer-card__header {
  align-items: flex-start;
  gap: 12px;
}

.staff-global-call-column .global-dialer-card__header .muted {
  margin-top: 4px;
}

.staff-global-call-column .global-dialer-card__body,
.staff-global-call-column .global-dialer-card__transfer-panel {
  gap: 12px;
  height: auto;
  min-height: 390px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.staff-global-call-column .global-dialer-card__switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid #dbe7ea;
  border-radius: 16px;
  background: color-mix(in srgb, var(--staff-call-console-soft-surface) 60%, white 40%);
}

.staff-global-call-column .global-dialer-card__switch-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 30px;
  padding: 0 6px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--staff-call-console-muted);
  font: inherit;
  font-size: 0.68rem;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
}

.staff-global-call-column .global-dialer-card__switch-button.is-active {
  background: #ffffff;
  color: var(--staff-call-console-text);
  box-shadow: 0 6px 18px rgba(31, 72, 84, 0.08);
}

.staff-global-call-column .global-dialer-card__input-shell {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f7fafb;
  box-shadow: none;
}

.staff-global-call-column .global-dialer-card__input {
  font-size: 0.8rem;
}

.staff-global-call-column .global-dialer-card__search-button,
.staff-global-call-column .global-dialer-card__subtle-button,
.staff-global-call-column .global-dialer-card__transfer-secondary {
  min-height: 34px;
  border: 1px solid #dbe4ea;
  border-radius: 12px;
  background: #fbfdfe;
  color: var(--text);
}

.staff-global-call-column .global-dialer-card__transfer-primary,
.staff-global-call-column .global-dialer-card__primary-button {
  min-height: 42px;
  border-radius: 14px;
  font-size: 0.78rem;
}

.staff-global-call-column .global-dialer-card__call-strip {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 2px 0 0;
}

.staff-global-call-column .global-dialer-card__call-button {
  min-width: 92px;
  min-height: 34px;
  border: 1px solid color-mix(in srgb, var(--staff-button-primary-end) 30%, white 70%);
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--staff-button-primary-start) 78%, white 22%) 0%,
    color-mix(in srgb, var(--staff-button-primary-end) 82%, white 18%) 100%
  );
  color: #ffffff;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(93, 184, 93, 0.16);
}

.staff-global-call-column .global-dialer-card__call-button.is-end {
  border-color: color-mix(in srgb, var(--staff-communication-end-end) 30%, white 70%);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--staff-communication-end-start) 76%, white 24%) 0%,
    color-mix(in srgb, var(--staff-communication-end-end) 82%, white 18%) 100%
  );
  box-shadow: 0 8px 20px rgba(196, 81, 100, 0.14);
}

.staff-global-call-column .global-dialer-card__call-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  box-shadow: none;
}

.staff-global-call-column .global-dialer-card__call-hint {
  color: var(--staff-call-console-muted);
  font-size: 0.68rem;
  line-height: 1.35;
  text-align: center;
}

.staff-global-call-column .global-dialer-card__keypad {
  width: 100%;
  gap: 8px;
}

.staff-global-call-column .global-dialer-card__key {
  height: 36px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fbfdfe;
  box-shadow: none;
}

.staff-global-call-column .global-dialer-card__dialer-footer {
  width: 100%;
  gap: 8px;
  padding: 2px 0 0;
}

.staff-global-call-column .global-dialer-card__dialer-hint {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  font-size: 0.72rem;
  line-height: 1.45;
}

.staff-global-call-column .global-dialer-card__results {
  padding-right: 0;
}

.staff-global-call-column .global-dialer-card__history-list {
  display: grid;
  gap: 7px;
}

.staff-global-call-column .global-dialer-card__history-item {
  display: grid;
  gap: 5px;
  padding: 9px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f7fafb;
}

.staff-global-call-column .global-dialer-card__history-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.staff-global-call-column .global-dialer-card__history-time {
  color: var(--staff-call-console-muted);
  font-size: 0.66rem;
}

.staff-global-call-column .global-dialer-card__history-direction {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  background: #edf1f7;
  color: #495a7c;
  font-size: 0.52rem;
  font-weight: 700;
}

.staff-global-call-column .global-dialer-card__history-direction.is-inbound {
  background: #eef7f1;
  color: #2f7c5d;
}

.staff-global-call-column .global-dialer-card__history-direction.is-outbound {
  background: #eef1ff;
  color: #3f64d5;
}

.staff-global-call-column .global-dialer-card__history-main {
  color: var(--staff-call-console-text);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.staff-global-call-column .global-dialer-card__history-main-row {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.staff-global-call-column .global-dialer-card__history-main-row .global-dialer-card__quick-actions {
  flex: 0 0 auto;
}

.staff-global-call-column .global-dialer-card__history-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--staff-call-console-muted);
  font-size: 0.64rem;
  line-height: 1.25;
}

.staff-global-call-column .global-dialer-card__history-meta span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.staff-global-call-column .global-dialer-card__result-row,
.staff-global-call-column .global-dialer-card__transfer-option {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f7fafb;
  box-shadow: none;
}

.staff-global-call-column .global-dialer-card__result-row {
  padding: 12px 14px;
}

.staff-global-call-column .global-dialer-card__result-main {
  gap: 10px;
}

.staff-global-call-column .global-dialer-card__avatar,
.staff-global-call-column .global-dialer-card__transfer-avatar {
  width: 34px;
  height: 34px;
}

.staff-global-call-column .global-dialer-card__result-name,
.staff-global-call-column .global-dialer-card__transfer-copy strong {
  font-size: 0.84rem;
}

.staff-global-call-column .global-dialer-card__result-meta,
.staff-global-call-column .global-dialer-card__transfer-copy small {
  font-size: 0.72rem;
}

.staff-global-call-column .global-dialer-card__empty-state,
.staff-global-call-column .global-dialer-card__transfer-note {
  border: 1px dashed #dbe4ea;
  border-radius: 16px;
  background: #f7fafb;
}

.known-caller-linked-clients {
  display: grid;
  gap: 10px;
}

.known-caller-linked-client {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  padding: 12px;
  background: #f8fafc;
}

.known-caller-linked-client h3 {
  margin: 0;
  color: var(--staff-text, #243649);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}

.known-caller-linked-client p {
  margin: 3px 0 0;
  color: var(--staff-text-muted, #728191);
  font-size: 0.84rem;
}

.link-number-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.36);
  backdrop-filter: blur(7px);
}

.link-number-modal {
  width: min(760px, 100%);
  max-height: min(780px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 24px;
  padding: 24px;
  background: #ffffff;
  color: var(--staff-text, #243649);
  font: inherit;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
}

.link-number-modal__head {
  position: relative;
  display: grid;
  gap: 8px;
  padding-right: 42px;
  margin-bottom: 18px;
}

.link-number-modal h2 {
  margin: 0;
  color: var(--staff-text, #243649);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.2;
}

.link-number-modal p {
  margin: 0;
  color: var(--staff-text-muted, #728191);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.5;
}

.link-number-modal__head p span {
  color: var(--staff-text, #243649);
  font-weight: 500;
}

.link-number-modal__close {
  position: absolute;
  top: 0;
  right: 0;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.link-number-modal__body,
.link-number-modal__results,
.link-number-modal__selected,
.link-number-modal__replace,
.link-number-modal__target,
.link-number-modal__done,
.link-number-modal__diagnostics {
  display: grid;
  gap: 12px;
}

.link-number-modal__search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.link-number-modal__field {
  display: grid;
  gap: 7px;
}

.link-number-modal__field span,
.link-number-modal__summary,
.link-number-modal__hint,
.link-number-modal__replace-label {
  color: var(--staff-text-muted, #728191);
  font-size: 0.84rem;
  font-weight: 400;
}

.link-number-modal__field input,
.link-number-modal__field select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 14px;
  padding: 0.78rem 0.9rem;
  background: #ffffff;
  color: var(--staff-text, #243649);
  font: inherit;
}

.link-number-modal__field input:focus,
.link-number-modal__field select:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--staff-primary-action, #5db85d) 44%, white 56%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 70%, white 30%);
}

.link-number-modal__result,
.link-number-modal__selected,
.link-number-modal__option-card,
.link-number-modal__replace-row,
.link-number-modal__warning,
.link-number-modal__empty {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  background: #f8fafc;
}

.link-number-modal__result {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.link-number-modal__result.is-selected {
  border-color: color-mix(in srgb, var(--staff-primary-action, #5db85d) 42%, white 58%);
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 52%, white 48%);
}

.link-number-modal__result-main,
.link-number-modal__selected-main {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.link-number-modal__avatar {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 72%, white 28%);
  color: color-mix(in srgb, var(--staff-primary-action, #5db85d) 58%, var(--staff-text, #243649) 42%);
  font-size: 0.88rem;
  font-weight: 500;
}

.link-number-modal__result-copy,
.link-number-modal__selected-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.link-number-modal__result-name,
.link-number-modal__selected-name,
.link-number-modal__replace-value {
  color: var(--staff-text, #243649);
  font-size: 0.92rem;
  font-weight: 500;
}

.link-number-modal__result-meta,
.link-number-modal__selected-meta,
.link-number-modal__result-action,
.link-number-modal__phone-preview span {
  color: var(--staff-text-muted, #728191);
  font-size: 0.82rem;
  font-weight: 400;
}

.link-number-modal__selected,
.link-number-modal__option-card,
.link-number-modal__warning,
.link-number-modal__empty,
.link-number-modal__diagnostics {
  padding: 14px;
}

.link-number-modal__option-card {
  display: grid;
  gap: 12px;
}

.link-number-modal__option-card h3,
.link-number-modal__done h3 {
  margin: 0;
  color: var(--staff-text, #243649);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.3;
}

.link-number-modal__phone-preview {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

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

.link-number-modal__replace-list {
  display: grid;
  gap: 10px;
}

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

.link-number-modal__replace-row > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.link-number-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.link-number-modal__primary,
.link-number-modal__secondary,
.link-number-modal__text-button {
  border-radius: 999px;
  padding: 0.72rem 0.95rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
}

.link-number-modal__primary {
  border: 0;
  background: color-mix(in srgb, var(--staff-primary-action, #5db85d) 72%, #0f172a 28%);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
}

.link-number-modal__secondary,
.link-number-modal__text-button {
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #ffffff;
  color: #334155;
}

.link-number-modal__text-button {
  width: fit-content;
  border-color: transparent;
  color: var(--staff-text-muted, #728191);
}

.link-number-modal__primary:disabled,
.link-number-modal__secondary:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
}

.link-number-modal__error {
  border: 1px solid rgba(220, 38, 38, 0.22);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(254, 242, 242, 0.92);
  color: #991b1b;
  font-size: 0.86rem;
  font-weight: 400;
}

.link-number-modal__diagnostics {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  background: #f8fafc;
}

.link-number-modal__diagnostics dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.link-number-modal__diagnostic-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.38fr) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.link-number-modal__diagnostic-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.link-number-modal__diagnostic-row dt {
  color: var(--staff-text-muted, #728191);
  font-size: 0.82rem;
  font-weight: 400;
}

.link-number-modal__diagnostic-row dd {
  min-width: 0;
  margin: 0;
  color: var(--staff-text, #243649);
  font-size: 0.84rem;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.link-number-modal__diagnostics details {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  padding: 10px 12px;
  background: #ffffff;
}

.link-number-modal__diagnostics summary {
  color: var(--staff-text, #243649);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 400;
}

.link-number-modal__diagnostics pre {
  max-height: 240px;
  margin: 10px 0 0;
  overflow: auto;
  color: #334155;
  font: 0.78rem/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
}

@media (max-width: 720px) {
  .link-number-modal__search,
  .link-number-modal__contact-grid,
  .link-number-modal__replace-row,
  .callback-request-modal__recipient-selected,
  .callback-request-modal__recipient-option {
    grid-template-columns: 1fr;
  }

  .link-number-modal__diagnostic-row {
    grid-template-columns: 1fr;
  }

  .link-number-modal__search {
    align-items: stretch;
  }

  .link-number-modal__replace-row {
    display: grid;
  }

  .known-caller-linked-client {
    display: grid;
  }

  .callback-request-modal__recipient-selected,
  .callback-request-modal__recipient-option {
    display: grid;
  }
}

.client-registration-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 12px;
  background: rgba(36, 54, 73, 0.22);
  backdrop-filter: blur(6px);
}

.client-registration-modal {
  width: min(1120px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: visible;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 78%, white 22%);
  border-radius: 24px;
  padding: 16px 18px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--primary-soft, #eef8ee) 18%, white 82%) 0%, #ffffff 58%);
  box-shadow: 0 22px 54px rgba(36, 54, 73, 0.16);
  color: var(--text, #243649);
  font-family: var(--staff-font-body, "Avenir Next", "Segoe UI", Arial, sans-serif);
  font-size: var(--staff-font-size-body, 0.9rem);
}

.client-registration-modal__head {
  position: relative;
  display: grid;
  gap: 4px;
  padding-right: 42px;
  margin-bottom: 10px;
}

.client-registration-modal__eyebrow {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 10px;
  background: color-mix(in srgb, var(--primary-soft, #eef8ee) 82%, white 18%);
  color: color-mix(in srgb, var(--primary, #5db85d) 58%, var(--text, #243649) 42%);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.client-registration-modal__close {
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 30px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 78%, white 22%);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text, #243649);
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
}

.client-registration-modal h2 {
  margin: 0;
  color: var(--text, #243649);
  font-family: var(--staff-font-heading, "Avenir Next", "Segoe UI", Arial, sans-serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.2;
}

.client-registration-modal p {
  margin: 0;
  color: var(--muted, #728191);
  line-height: 1.35;
}

.client-registration-modal__form,
.client-registration-modal__fields,
.client-registration-modal__empty {
  display: grid;
  gap: 8px;
}

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

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

.client-registration-modal__warning {
  display: grid;
  gap: 4px;
  border: 1px solid color-mix(in srgb, #f59e0b 28%, white 72%);
  border-radius: 16px;
  padding: 10px 12px;
  background: color-mix(in srgb, #fef3c7 74%, white 26%);
}

.client-registration-modal__warning strong {
  color: #9a3412;
  font-size: 0.78rem;
  font-weight: 600;
}

.client-registration-modal__warning p {
  color: #7c2d12;
}

.client-registration-modal__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr);
  gap: 12px;
  align-items: start;
}

.client-registration-modal__panel {
  display: grid;
  gap: 8px;
}

.client-registration-modal__subcard {
  display: grid;
  gap: 8px;
  border: 1px solid color-mix(in srgb, var(--primary, #5db85d) 14%, var(--staff-line-subtle, #d9e6e8) 86%);
  border-radius: 18px;
  padding: 10px;
  background: color-mix(in srgb, var(--primary-soft, #eef8ee) 28%, white 72%);
}

.client-registration-modal__subcard-head {
  display: grid;
  gap: 2px;
}

.client-registration-modal__subcard-head strong {
  color: var(--text, #243649);
  font-size: 0.8rem;
  font-weight: 600;
}

.client-registration-modal__field--conversation-type {
  gap: 6px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--primary, #5db85d) 16%, var(--staff-line-subtle, #d9e6e8) 84%);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--primary-soft, #eef8ee) 68%, white 32%) 0%, transparent 54%),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--staff-info-blue-surface, #edf5fb) 34%, white 66%) 0%,
      #ffffff 100%
    );
}

.client-registration-modal__field--conversation-type > span {
  font-size: 0.86rem;
  font-weight: 600;
}

.client-registration-modal__select--conversation-type {
  border-color: color-mix(in srgb, var(--primary, #5db85d) 22%, var(--staff-line-subtle, #d9e6e8) 78%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.client-registration-modal__field-note {
  color: var(--muted, #728191);
  font-size: 0.78rem;
  line-height: 1.45;
}

.client-registration-action-list {
  display: grid;
  gap: 8px;
}

.client-registration-action-row {
  display: grid;
  gap: 3px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 78%, white 22%);
  border-radius: 14px;
  padding: 9px 10px;
  background: #ffffff;
}

.client-registration-action-row strong {
  color: var(--text, #243649);
  font-size: 0.82rem;
  font-weight: 500;
}

.client-registration-action-row span {
  color: var(--muted, #728191);
  font-size: 0.74rem;
}

.client-registration-modal__panel--details {
  border: 1px solid color-mix(in srgb, var(--primary, #5db85d) 18%, var(--staff-line-subtle, #d9e6e8) 82%);
  border-radius: 18px;
  padding: 10px;
  background: color-mix(in srgb, var(--primary-soft, #eef8ee) 52%, white 48%);
}

.client-registration-modal__summary article {
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 78%, white 22%);
  border-radius: 13px;
  padding: 7px 9px;
  background: color-mix(in srgb, var(--primary-soft, #eef8ee) 42%, white 58%);
}

.client-registration-modal__summary span,
.client-registration-modal__field span {
  display: block;
  color: var(--muted, #728191);
  font-size: 0.72rem;
  font-weight: 400;
}

.client-registration-modal__summary strong {
  display: block;
  margin-top: 2px;
  color: var(--text, #243649);
  font-size: 0.84rem;
  font-weight: 400;
}

.client-registration-modal__field {
  display: grid;
  gap: 4px;
}

.client-registration-modal__field--full {
  grid-column: 1 / -1;
}

.client-registration-modal__field input,
.client-registration-modal__field textarea,
.client-registration-modal__field select {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 84%, white 16%);
  border-radius: 12px;
  padding: 0.52rem 0.68rem;
  background: #ffffff;
  color: var(--text, #243649);
  font: inherit;
  font-weight: 400;
}

.client-registration-modal__field select,
.client-registration-modal__select {
  appearance: none;
  min-height: 48px;
  padding-right: 2.6rem;
  background-image:
    linear-gradient(45deg, transparent 50%, color-mix(in srgb, var(--primary, #5db85d) 58%, var(--text, #243649) 42%) 50%),
    linear-gradient(135deg, color-mix(in srgb, var(--primary, #5db85d) 58%, var(--text, #243649) 42%) 50%, transparent 50%),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--staff-tool-surface, #f3f8f9) 56%, white 44%) 0%,
      #ffffff 100%
    );
  background-position:
    calc(100% - 1rem) calc(50% - 2px),
    calc(100% - 0.68rem) calc(50% - 2px),
    0 0;
  background-repeat: no-repeat;
  background-size:
    9px 9px,
    9px 9px,
    100% 100%;
}

.client-registration-modal__field input[readonly],
.client-registration-modal__field textarea[readonly] {
  background: #f8fafc;
  color: var(--muted, #728191);
}

.client-registration-modal__field textarea {
  min-height: 52px;
  resize: vertical;
}

.client-registration-modal__field input:focus,
.client-registration-modal__field textarea:focus,
.client-registration-modal__field select:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--primary) 42%, white 58%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, white 86%);
}

.client-registration-modal__error {
  border: 1px solid rgba(220, 38, 38, 0.24);
  border-radius: 14px;
  padding: 8px 10px;
  background: rgba(254, 242, 242, 0.92);
  color: #991b1b;
  font-weight: 400;
}

.client-registration-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.client-registration-modal__primary,
.client-registration-modal__secondary,
.client-registration-modal__danger {
  border-radius: 999px;
  padding: 0.6rem 0.92rem;
  font-weight: 400;
  cursor: pointer;
}

.client-registration-modal__primary {
  border: 0;
  background: linear-gradient(135deg, var(--staff-button-primary-start, #5db85d), var(--staff-button-primary-end, #5db85d));
  color: var(--text, #243649);
  box-shadow: 0 10px 22px rgba(93, 184, 93, 0.24);
}

.client-registration-modal__primary:disabled,
.client-registration-modal__danger:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  box-shadow: none;
}

.client-registration-modal__secondary {
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 78%, white 22%);
  background: #ffffff;
  color: var(--text, #243649);
}

.client-registration-modal__danger {
  border: 1px solid rgba(220, 38, 38, 0.28);
  background: rgba(254, 242, 242, 0.92);
  color: #991b1b;
}

.client-push-modal {
  width: min(760px, calc(100vw - 24px));
  display: grid;
  gap: 14px;
}

.client-push-modal__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.client-push-modal__title-row h2 {
  margin: 0;
}

.client-push-modal__title-row p {
  margin-top: 4px;
}

.client-push-modal__status {
  display: inline-flex;
  align-items: center;
  max-width: 280px;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 0.76rem;
  line-height: 1.35;
  text-align: right;
}

.client-push-modal__status.is-ready {
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 82%, white 18%);
  color: color-mix(in srgb, var(--primary, #5db85d) 54%, var(--text, #243649) 46%);
}

.client-push-modal__status.is-waiting {
  background: color-mix(in srgb, var(--staff-accent-warm, #edb36f) 18%, white 82%);
  color: color-mix(in srgb, var(--high, #9a6b2f) 78%, var(--text, #243649) 22%);
}

.client-push-modal__client-card {
  display: grid;
  gap: 4px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 78%, white 22%);
  border-radius: 16px;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--staff-tool-surface, #f3f8f9) 54%, white 46%);
}

.client-push-modal__client-card span,
.client-push-modal__field span,
.client-push-modal__preview span {
  color: var(--muted, #728191);
  font-size: 0.76rem;
}

.client-push-modal__client-card strong {
  color: var(--text, #243649);
  font-size: 0.9rem;
  font-weight: 400;
}

.client-push-modal__tabs {
  display: inline-flex;
  width: fit-content;
  gap: 4px;
  border-radius: 999px;
  padding: 4px;
  background: color-mix(in srgb, var(--staff-tool-surface, #f3f8f9) 80%, white 20%);
}

.client-push-modal__tab {
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  background: transparent;
  color: var(--muted, #728191);
  cursor: pointer;
  font: inherit;
}

.client-push-modal__tab.is-active {
  background: #ffffff;
  color: var(--text, #243649);
  box-shadow: 0 8px 18px rgba(36, 54, 73, 0.08);
}

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

.client-push-modal__field {
  display: grid;
  gap: 6px;
}

.client-push-modal__select {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 84%, white 16%);
  border-radius: 14px;
  padding: 0.7rem 0.78rem;
  background: #ffffff;
  color: var(--text, #243649);
  font: inherit;
}

.client-push-modal__select:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--primary) 42%, white 58%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, white 86%);
}

.client-push-modal__preview {
  display: grid;
  gap: 7px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 78%, white 22%);
  border-radius: 16px;
  padding: 13px 14px;
  background: #ffffff;
}

.client-push-modal__preview p {
  color: var(--text, #243649);
  line-height: 1.55;
}

.client-push-modal__limit {
  border-radius: 14px;
  padding: 10px 12px;
  background: color-mix(in srgb, var(--staff-accent-warm, #edb36f) 14%, white 86%);
  color: color-mix(in srgb, var(--high, #9a6b2f) 82%, var(--text, #243649) 18%);
  font-size: 0.84rem;
}

.client-push-modal__actions {
  margin-top: 2px;
}

.client-push-modal__history-list {
  display: grid;
  gap: 10px;
}

.client-push-modal__history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.36fr);
  gap: 14px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 78%, white 22%);
  border-radius: 16px;
  padding: 12px 14px;
  background: #ffffff;
}

.client-push-modal__history-copy,
.client-push-modal__history-feedback {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.client-push-modal__history-copy strong {
  color: var(--text, #243649);
  font-size: 0.9rem;
  font-weight: 400;
}

.client-push-modal__history-copy span,
.client-push-modal__history-feedback small {
  color: var(--muted, #728191);
  font-size: 0.76rem;
  line-height: 1.4;
}

.client-push-modal__history-copy p {
  color: var(--text, #243649);
  font-size: 0.84rem;
  line-height: 1.5;
}

.client-push-modal__history-feedback {
  align-content: start;
  justify-items: end;
  text-align: right;
}

.client-push-modal__history-feedback span {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 9px;
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 76%, white 24%);
  color: color-mix(in srgb, var(--primary, #5db85d) 58%, var(--text, #243649) 42%);
  font-size: 0.76rem;
}

.unknown-caller-workspace {
  display: grid;
  gap: 14px;
}

.unknown-caller-profile-layout {
  align-items: start;
}

.unknown-caller-sidebar,
.unknown-caller-main {
  display: grid;
  gap: 12px;
}

.unknown-caller-info-card__hero {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--staff-info-blue-surface, #edf5fb) 44%, white 56%) 0%,
    color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 34%, white 66%) 100%
  );
}

.unknown-caller-info-card__hero strong {
  color: var(--text, #243649);
  font-size: 1.04rem;
  font-weight: 700;
}

.unknown-caller-info-card__hero span:last-child {
  color: var(--muted, #728191);
  font-size: 0.86rem;
}

.unknown-caller-info-card__eyebrow {
  color: color-mix(in srgb, var(--primary, #5db85d) 60%, var(--text, #243649) 40%);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.unknown-caller-panel,
.unknown-caller-registration-panel {
  min-width: 0;
}

.unknown-caller-registration-surface {
  width: 100%;
  max-height: none;
  padding: 18px 20px;
}

.unknown-caller-panel__actions {
  margin-top: 14px;
}

.unknown-caller-registration-panel .client-registration-modal__content {
  grid-template-columns: 1fr;
}

.unknown-caller-registration-panel .client-registration-modal__summary,
.unknown-caller-registration-panel .client-registration-modal__fields--compact {
  grid-template-columns: 1fr;
}

.unknown-caller-registration-panel .client-registration-modal__panel--details {
  border-radius: 14px;
}

.unknown-caller-registration-panel .client-registration-modal__actions {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.unknown-caller-registration-panel .client-registration-modal__primary,
.unknown-caller-registration-panel .client-registration-modal__secondary,
.unknown-caller-registration-panel .client-registration-modal__danger {
  width: 100%;
  text-align: center;
}

.client-registration-inline {
  display: grid;
  gap: 10px;
}

.client-registration-modal__hint {
  margin: 0;
  color: var(--muted, #728191);
  font-size: 0.82rem;
  line-height: 1.5;
}

.client-registration-choice {
  display: grid;
  gap: 16px;
}

.client-registration-choice__intro {
  display: grid;
  gap: 4px;
}

.client-registration-choice__intro h3 {
  margin: 0;
  color: #172033;
  font-size: 1rem;
  font-weight: 650;
}

.client-registration-choice__intro p {
  margin: 0;
  color: #667085;
  font-size: 0.88rem;
  line-height: 1.45;
}

.client-registration-choice__list {
  display: grid;
  gap: 8px;
}

.client-registration-choice__option {
  width: 100%;
  min-height: 64px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid #d8e1ea;
  border-radius: 14px;
  background: #ffffff;
  color: #172033;
  text-align: left;
  cursor: pointer;
}

.client-registration-choice__option:hover,
.client-registration-choice__option.is-selected {
  border-color: #9bbcff;
  background: #f3f7ff;
}

.client-registration-choice__option.is-disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.client-registration-choice__option.is-disabled:hover {
  border-color: #d8e1ea;
  background: #ffffff;
}

.client-registration-choice__main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.client-registration-choice__main strong {
  color: #172033;
  font-size: 0.92rem;
  font-weight: 620;
}

.client-registration-choice__main small {
  color: #667085;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.35;
}

.client-registration-choice__status {
  min-height: 26px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #f1f5f9;
  color: #667085;
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
}

.client-registration-choice__status.is-editable,
.client-registration-choice__status.is-manual {
  background: #eaf3ff;
  color: #2563eb;
}

.client-registration-choice__empty {
  padding: 14px;
  border: 1px dashed #d8e1ea;
  border-radius: 14px;
  background: #f8fafc;
  color: #667085;
  font-size: 0.86rem;
}

/* Compact time-registration modal, scoped away from the other registration-like popups. */
.client-registration-modal-backdrop:has(.client-time-registration-modal) {
  padding: 20px;
  background: rgba(17, 24, 39, 0.48);
  backdrop-filter: none;
}

.client-registration-modal.client-time-registration-modal {
  width: min(940px, calc(100vw - 48px));
  max-height: calc(100vh - 56px);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d8e1ea;
  border-radius: 18px;
  background: #ffffff;
  color: #172033;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
  font-size: 0.88rem;
}

.client-registration-modal.client-time-registration-modal::before {
  display: none;
}

.client-time-registration-modal .client-registration-modal__head.client-time-registration-modal__head {
  min-height: 82px;
  margin: 0;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #e0e5ec;
  background: #ffffff;
}

.client-time-registration-modal__title-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
}

.client-time-registration-modal__icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #dbeafe;
  color: #2563eb;
}

.client-time-registration-modal__icon .svg-icon,
.client-time-registration-modal .client-registration-modal__close .svg-icon {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.client-time-registration-modal__icon .svg-icon {
  width: 23px;
  height: 23px;
  stroke-width: 1.75;
}

.client-time-registration-modal .client-registration-modal__head h2 {
  margin: 0;
  color: #111827;
  font-size: 1.22rem;
  font-weight: 640;
  letter-spacing: 0;
  line-height: 1.12;
}

.client-time-registration-modal .client-registration-modal__head p {
  margin-top: 5px;
  color: #4b5563;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.25;
}

.client-time-registration-modal__head-actions {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}

.client-time-registration-modal .client-registration-modal__eyebrow {
  min-height: 28px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 999px;
  background: #dbeafe;
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 620;
  letter-spacing: 0;
}

.client-time-registration-modal .client-registration-modal__close {
  position: static;
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6b7280;
  box-shadow: none;
}

.client-time-registration-modal .client-registration-modal__close .svg-icon {
  width: 21px;
  height: 21px;
  stroke-width: 1.7;
}

.client-time-registration-modal .client-registration-modal__close:hover {
  background: #f3f6fa;
  color: #374151;
}

.client-time-registration-modal .client-registration-modal__form,
.client-time-registration-modal .client-registration-choice {
  min-height: 0;
  padding: 20px 28px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: auto;
}

.client-time-registration-modal .client-registration-modal__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.client-time-registration-modal .client-registration-modal__panel {
  display: grid;
  gap: 14px;
}

.client-time-registration-modal .client-registration-modal__panel--details {
  display: none;
}

.client-time-registration-modal .client-registration-modal__warning {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 13px 16px;
  border: 1px solid #fde68a;
  border-radius: 12px;
  background: #fffbeb;
}

.client-time-registration-modal .client-registration-modal__warning strong {
  color: #b45309;
  font-size: 0.92rem;
  font-weight: 600;
}

.client-time-registration-modal .client-registration-modal__warning p {
  color: #92400e;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.45;
}

.client-time-registration-modal .client-registration-modal__summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.client-time-registration-modal .client-registration-modal__summary article,
.client-time-registration-modal .client-registration-modal__subcard {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.client-time-registration-modal .client-registration-modal__summary article {
  padding: 10px 12px;
  border: 1px solid #e0e5ec;
  border-radius: 12px;
  background: #f8fafc;
}

.client-time-registration-modal .client-registration-modal__summary span,
.client-time-registration-modal .client-registration-modal__field span {
  color: #4b5563;
  font-size: 0.82rem;
  font-weight: 560;
}

.client-time-registration-modal .client-registration-modal__summary strong {
  color: #111827;
  font-size: 0.95rem;
  font-weight: 620;
}

.client-time-registration-modal .client-registration-modal__fields {
  gap: 12px;
}

.client-time-registration-modal .client-registration-modal__fields--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 18px;
}

.client-time-registration-modal .client-registration-modal__field {
  gap: 7px;
}

.client-time-registration-modal .client-registration-modal__field input,
.client-time-registration-modal .client-registration-modal__field textarea,
.client-time-registration-modal .client-registration-modal__field select {
  min-height: 46px;
  border: 1px solid #d0d7e2;
  border-radius: 12px;
  padding: 0.62rem 0.78rem;
  background-color: #ffffff;
  color: #111827;
  box-shadow: none;
  font-size: 0.92rem;
  font-weight: 430;
}

.client-time-registration-modal .client-registration-modal__field textarea {
  min-height: 74px;
}

.client-time-registration-modal .client-registration-modal__field select,
.client-time-registration-modal .client-registration-modal__select {
  min-height: 46px;
  background-image:
    linear-gradient(45deg, transparent 50%, #9aa3b2 50%),
    linear-gradient(135deg, #9aa3b2 50%, transparent 50%);
  background-position:
    calc(100% - 1.05rem) calc(50% - 2px),
    calc(100% - 0.76rem) calc(50% - 2px);
  background-size: 8px 8px, 8px 8px;
  background-repeat: no-repeat;
}

.client-time-registration-modal .client-registration-modal__field input:focus,
.client-time-registration-modal .client-registration-modal__field textarea:focus,
.client-time-registration-modal .client-registration-modal__field select:focus {
  border-color: #7aa7ff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.client-time-registration-modal .client-registration-modal__subcard {
  gap: 12px;
}

.client-time-registration-modal .client-registration-modal__subcard-head {
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
}

.client-time-registration-modal .client-registration-modal__subcard-head strong {
  color: #111827;
  font-size: 1rem;
  font-weight: 640;
}

.client-time-registration-modal .client-registration-modal__error,
.client-time-registration-modal .client-registration-modal__hint {
  font-size: 0.84rem;
}

.client-time-registration-modal .client-registration-modal__actions {
  margin: 2px -28px 0;
  padding: 16px 28px 18px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  border-top: 1px solid #e0e5ec;
  background: #ffffff;
}

.client-time-registration-modal .client-registration-modal__primary,
.client-time-registration-modal .client-registration-modal__secondary,
.client-time-registration-modal .client-registration-modal__danger {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  box-shadow: none;
  font-size: 0.92rem;
  font-weight: 620;
}

.client-time-registration-modal .client-registration-modal__primary {
  background: #2563eb;
  color: #ffffff;
}

.client-time-registration-modal .client-registration-modal__secondary {
  border: 0;
  background: transparent;
  color: #374151;
}

.client-time-registration-modal .client-registration-modal__danger {
  background: #fff7f7;
  color: #dc2626;
}

.client-time-registration-modal .client-registration-choice__intro h3 {
  font-size: 0.98rem;
  font-weight: 620;
}

.client-time-registration-modal .client-registration-choice__intro p {
  font-size: 0.86rem;
}

.client-time-registration-modal .client-registration-choice__list {
  gap: 7px;
}

.client-time-registration-modal .client-registration-choice__option {
  min-height: 58px;
  padding: 10px 12px;
  border-radius: 12px;
}

.client-time-registration-modal .client-registration-choice__option::before {
  content: "";
  width: 16px;
  height: 16px;
  grid-row: 1;
  grid-column: 1;
  align-self: center;
  border: 1px solid #b8c3d1;
  border-radius: 999px;
  background: #ffffff;
}

.client-time-registration-modal .client-registration-choice__option {
  grid-template-columns: 16px minmax(0, 1fr) auto;
}

.client-time-registration-modal .client-registration-choice__option.is-selected::before {
  border-color: #2563eb;
  box-shadow: inset 0 0 0 4px #ffffff;
  background: #2563eb;
}

.client-time-registration-modal .client-registration-choice__main {
  grid-column: 2;
}

.client-time-registration-modal .client-registration-choice__main strong {
  font-size: 0.88rem;
  font-weight: 600;
}

.client-time-registration-modal .client-registration-choice__main small {
  font-size: 0.76rem;
}

.client-time-registration-modal .client-registration-choice__status {
  grid-column: 3;
  min-height: 24px;
  font-size: 0.72rem;
}

.client-time-registration-modal.client-registration-modal {
  width: min(860px, calc(100vw - 56px));
  border-radius: 16px;
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.18);
  font-size: 0.84rem;
}

.client-time-registration-modal .client-registration-modal__head.client-time-registration-modal__head {
  min-height: 72px;
  padding: 0 24px;
}

.client-time-registration-modal__icon {
  width: 38px;
  height: 38px;
}

.client-time-registration-modal__icon .svg-icon {
  width: 20px;
  height: 20px;
}

.client-time-registration-modal .client-registration-modal__head h2 {
  font-size: 1.1rem;
  font-weight: 600;
}

.client-time-registration-modal .client-registration-modal__head p {
  margin-top: 3px;
  font-size: 0.82rem;
  color: #667085;
}

.client-time-registration-modal .client-registration-modal__eyebrow {
  min-height: 25px;
  padding: 0 11px;
  font-size: 0.72rem;
  font-weight: 590;
}

.client-time-registration-modal .client-registration-modal__close {
  width: 30px;
  height: 30px;
}

.client-time-registration-modal .client-registration-modal__form,
.client-time-registration-modal .client-registration-choice {
  padding: 16px 24px 0;
  gap: 11px;
}

.client-time-registration-modal .client-registration-modal__content,
.client-time-registration-modal .client-registration-modal__panel {
  gap: 11px;
}

.client-time-registration-modal .client-registration-modal__warning {
  padding: 10px 13px;
  border-radius: 11px;
}

.client-time-registration-modal .client-registration-modal__warning strong,
.client-time-registration-modal .client-registration-modal__warning p {
  font-size: 0.82rem;
}

.client-time-registration-modal .client-registration-modal__summary {
  gap: 6px;
}

.client-time-registration-modal .client-registration-modal__summary article {
  padding: 8px 10px;
  border-radius: 10px;
}

.client-time-registration-modal .client-registration-modal__summary span,
.client-time-registration-modal .client-registration-modal__field span {
  font-size: 0.76rem;
  font-weight: 540;
}

.client-time-registration-modal .client-registration-modal__summary strong {
  font-size: 0.86rem;
  font-weight: 590;
}

.client-time-registration-modal .client-registration-modal__fields {
  gap: 9px;
}

.client-time-registration-modal .client-registration-modal__fields--compact {
  gap: 10px 14px;
}

.client-time-registration-modal .client-registration-modal__field {
  gap: 5px;
}

.client-time-registration-modal .client-registration-modal__field input,
.client-time-registration-modal .client-registration-modal__field textarea,
.client-time-registration-modal .client-registration-modal__field select {
  min-height: 40px;
  border-radius: 10px;
  padding: 0.5rem 0.68rem;
  font-size: 0.85rem;
  font-weight: 410;
}

.client-time-registration-modal .client-registration-modal__field textarea {
  min-height: 58px;
}

.client-time-registration-modal .client-registration-modal__subcard {
  gap: 9px;
}

.client-time-registration-modal .client-registration-modal__subcard-head {
  padding-top: 6px;
}

.client-time-registration-modal .client-registration-modal__subcard-head strong {
  font-size: 0.9rem;
  font-weight: 610;
}

.client-time-registration-modal .client-registration-modal__actions {
  margin: 0 -24px;
  padding: 13px 24px 15px;
  gap: 18px;
}

.client-time-registration-modal .client-registration-modal__primary,
.client-time-registration-modal .client-registration-modal__secondary,
.client-time-registration-modal .client-registration-modal__danger {
  min-height: 38px;
  padding: 0 17px;
  border-radius: 11px;
  font-size: 0.84rem;
  font-weight: 600;
}

.client-time-registration-modal .client-registration-choice__intro h3 {
  font-size: 0.92rem;
  font-weight: 600;
}

.client-time-registration-modal .client-registration-choice__intro p {
  font-size: 0.8rem;
}

.client-registration-choice__group-label {
  margin-top: 2px;
  color: #667085;
  font-size: 0.72rem;
  font-weight: 620;
  letter-spacing: 0;
  text-transform: uppercase;
}

.client-time-registration-modal .client-registration-choice__list {
  gap: 6px;
}

.client-time-registration-modal .client-registration-choice__option {
  min-height: 50px;
  padding: 9px 11px;
  border-color: #e0e5ec;
  border-radius: 11px;
}

.client-time-registration-modal .client-registration-choice__option:hover,
.client-time-registration-modal .client-registration-choice__option.is-selected {
  border-color: #8fb4ff;
  background: #f6f9ff;
}

.client-time-registration-modal .client-registration-choice__option.is-readonly {
  opacity: 1;
}

.client-time-registration-modal .client-registration-choice__option--manual {
  background: #f8fafc;
}

.client-time-registration-modal .client-registration-choice__option--demo {
  border-style: dashed;
  background: #ffffff;
}

.client-time-registration-modal .client-registration-choice__option--demo:hover,
.client-time-registration-modal .client-registration-choice__option--demo.is-selected {
  border-style: solid;
  border-color: #8fb4ff;
  background: #f6f9ff;
}

.client-time-registration-modal .client-registration-choice__option--demo-card {
  min-height: 0;
  align-items: start;
  padding: 11px;
}

.client-time-registration-modal .client-registration-choice__card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.client-time-registration-modal .client-registration-choice__card-head em {
  padding: 3px 8px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 580;
  white-space: nowrap;
}

.client-time-registration-modal .client-registration-choice__card-grid {
  margin-top: 5px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 12px;
  color: #4b5563;
  font-size: 0.72rem;
  line-height: 1.3;
}

.client-time-registration-modal .client-registration-choice__card-grid span {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.client-time-registration-modal .client-registration-choice__card-grid b {
  color: #667085;
  font-size: 0.66rem;
  font-weight: 570;
}

.client-time-registration-modal .client-registration-choice__option--ghost {
  cursor: default;
  opacity: 0.72;
}

.client-time-registration-modal .client-registration-choice__option--ghost:hover {
  border-color: #e0e5ec;
  background: #ffffff;
}

.client-time-registration-modal .client-registration-choice__option::before {
  width: 14px;
  height: 14px;
}

.client-time-registration-modal .client-registration-choice__option {
  grid-template-columns: 14px minmax(0, 1fr) auto;
}

.client-time-registration-modal .client-registration-choice__main strong {
  font-size: 0.82rem;
  font-weight: 580;
}

.client-time-registration-modal .client-registration-choice__main small {
  font-size: 0.72rem;
}

.client-time-registration-modal .client-registration-choice__status {
  min-height: 22px;
  padding: 0 8px;
  font-size: 0.68rem;
  font-weight: 590;
}

.client-time-registration-modal .client-registration-choice__status.is-demo {
  background: #eff6ff;
  color: #2563eb;
}

@media (max-width: 1180px) {
  .unknown-caller-profile-layout,
  .unknown-caller-registration-panel .client-registration-modal__content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .client-push-modal__title-row {
    display: grid;
  }

  .client-push-modal__history-row {
    grid-template-columns: 1fr;
  }

  .client-push-modal__status {
    max-width: none;
    text-align: left;
  }

  .client-push-modal__history-feedback {
    justify-items: start;
    text-align: left;
  }
}

.callback-request-modal {
  max-width: min(780px, calc(100vw - 32px));
}

.callback-request-modal__form {
  gap: 18px;
}

.callback-request-modal__everyone-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--staff-text, #243649);
  font-size: 0.92rem;
  font-weight: 600;
}

.callback-request-modal__everyone-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--staff-primary-action, #5db85d);
}

.callback-request-modal__recipient-disabled,
.callback-request-modal__recipient-empty,
.callback-request-modal__recipient-selected {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 82%, white 18%);
  background: color-mix(in srgb, var(--staff-tool-surface, #f3f8f9) 72%, white 28%);
}

.callback-request-modal__recipient-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.callback-request-modal__recipient-selected strong,
.callback-request-modal__recipient-option strong {
  display: block;
  color: var(--staff-text, #243649);
}

.callback-request-modal__recipient-selected span,
.callback-request-modal__recipient-option small,
.callback-request-modal__recipient-disabled,
.callback-request-modal__recipient-empty {
  color: var(--staff-text-muted, #728191);
  font-size: 0.82rem;
  line-height: 1.45;
}

.callback-request-modal__recipient-selected button {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 80%, white 20%);
  background: #ffffff;
  color: var(--staff-text, #243649);
  font-size: 0.82rem;
  font-weight: 600;
}

.callback-request-modal__recipient-list {
  display: grid;
  gap: 10px;
  max-height: 240px;
  overflow: auto;
}

.callback-request-modal__recipient-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 82%, white 18%);
  border-radius: 16px;
  background: #ffffff;
  text-align: left;
}

.callback-request-modal__recipient-option.is-selected {
  border-color: color-mix(in srgb, var(--staff-primary-action, #5db85d) 58%, white 42%);
  background: color-mix(in srgb, var(--staff-primary-soft, #eef8ee) 42%, white 58%);
}

.callback-request-modal__recipient-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.callback-request-modal__recipient-status.is-online {
  background: color-mix(in srgb, var(--staff-success-tone, #4fb89d) 18%, white 82%);
  color: color-mix(in srgb, var(--staff-success-tone, #4fb89d) 82%, var(--staff-text, #243649) 18%);
}

.callback-request-modal__recipient-status.is-timeout,
.callback-request-modal__recipient-status.is-busy {
  background: color-mix(in srgb, var(--staff-accent-warm, #edb36f) 18%, white 82%);
  color: color-mix(in srgb, var(--staff-warning-tone, #d79b56) 84%, var(--staff-text, #243649) 16%);
}

.callback-request-modal__recipient-status.is-offline {
  background: color-mix(in srgb, var(--staff-line-subtle, #d9e6e8) 72%, white 28%);
  color: var(--staff-text-muted, #728191);
}

@media (max-width: 860px) {
  .client-registration-modal__content,
  .client-registration-modal__summary,
  .client-registration-modal__fields--compact {
    grid-template-columns: 1fr;
  }
}

.call-match-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.18), transparent 28%),
    rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(8px);
}

.call-match-modal {
  width: min(520px, 100%);
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 28px;
  padding: 24px;
  background: linear-gradient(145deg, #ffffff, #eef6ff);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
}

.call-match-modal__head {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.call-match-modal__eyebrow {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(14, 165, 233, 0.12);
  color: #0369a1;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.call-match-modal h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1.05;
}

.call-match-modal p {
  margin: 0;
  color: #475569;
  line-height: 1.5;
}

.call-match-modal__summary,
.call-match-modal__choices {
  display: grid;
  gap: 12px;
}

.call-match-modal__summary article,
.call-match-choice {
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.call-match-modal__summary span,
.call-match-choice span {
  display: block;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 800;
}

.call-match-modal__summary strong,
.call-match-choice strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 1rem;
}

.call-match-modal__summary small {
  display: block;
  margin-top: 4px;
  color: #64748b;
}

.call-match-choice {
  width: 100%;
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.call-match-choice:hover {
  border-color: rgba(14, 165, 233, 0.42);
  box-shadow: 0 14px 30px rgba(14, 165, 233, 0.14);
  transform: translateY(-1px);
}

.call-match-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.call-match-modal__primary,
.call-match-modal__secondary {
  border-radius: 999px;
  padding: 0.82rem 1.05rem;
  font-weight: 900;
  cursor: pointer;
}

.call-match-modal__primary {
  border: 0;
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.22);
}

.call-match-modal__secondary {
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.86);
  color: #334155;
}

@media (max-width: 1180px) {
  .staff-figma-shell .app-header-subbar-inner {
    padding-right: 18px;
  }

  .staff-figma-shell .page-shell {
    padding-right: 20px;
  }
}

/* Staff dashboard professional refresh.
   Reversible: remove this block plus STAFF_PORTAL_THEME_DEFAULTS color changes to restore the previous mint-heavy look. */
body {
  background:
    radial-gradient(circle at 12% 0%, rgba(8, 119, 200, 0.08) 0%, transparent 28%),
    radial-gradient(circle at 88% 6%, rgba(246, 178, 26, 0.08) 0%, transparent 22%),
    linear-gradient(135deg, var(--bg) 0%, #fbfdff 54%, var(--bg-deep) 100%);
  color: var(--text);
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

.ambient {
  opacity: 0.22;
  filter: blur(78px);
}

.ambient-left {
  background: rgba(8, 119, 200, 0.16);
}

.ambient-right {
  background: rgba(8, 175, 163, 0.14);
}

.staff-portal-shell .panel,
.staff-portal-panel,
.staff-portal-shell .dashboard-list-panel--figma {
  border-color: #d8e1ea;
  background: #ffffff;
  box-shadow:
    0 1px 1px rgba(15, 23, 42, 0.04),
    0 10px 24px rgba(15, 23, 42, 0.06);
}

.staff-portal-shell .dashboard-list-panel--figma {
  border-radius: 18px;
}

.staff-portal-shell .dashboard-list-panel--figma::before,
.staff-portal-shell .dashboard-duty-card::before,
.staff-portal-shell .dashboard-stat-card::before {
  height: 3px;
  background: linear-gradient(90deg, #08bdb1 0%, var(--staff-logo-blue) 56%, #f6b21a 100%);
}

.staff-portal-shell .dashboard-section-title,
.staff-portal-shell .dashboard-mini-card--figma .overview-value,
.staff-portal-shell .dashboard-client-name,
.staff-portal-shell .dashboard-team-name strong,
.staff-portal-shell .wait-card-value {
  color: #102033;
}

.staff-portal-shell .muted,
.staff-portal-shell .queue-meta,
.staff-portal-shell .queue-note,
.staff-portal-shell .ghost-text,
.staff-portal-shell .overview-meta,
.staff-portal-shell .dashboard-section-subtitle {
  color: #5d6f82;
}

.staff-portal-shell .dashboard-mini-card--figma {
  border-color: #dce5ee;
  background: #ffffff;
  box-shadow:
    0 1px 1px rgba(15, 23, 42, 0.03),
    0 8px 18px rgba(15, 23, 42, 0.045);
}

.staff-portal-shell .dashboard-mini-card--figma::before {
  height: 4px;
}

.staff-portal-shell .dashboard-mini-card--figma.tone-blue::before {
  background: var(--staff-logo-blue);
}

.staff-portal-shell .dashboard-mini-card--figma.tone-emerald::before {
  background: #08afa3;
}

.staff-portal-shell .dashboard-mini-card--figma.tone-amber::before {
  background: #f6b21a;
}

.staff-portal-shell .dashboard-mini-card--figma.tone-slate::before {
  background: #556a7e;
}

.staff-portal-shell .dashboard-mini-card--figma .overview-label {
  color: #40566b;
  font-weight: 700;
}

.staff-portal-shell .dashboard-section-icon.blue,
.staff-portal-shell .dashboard-empty-icon.blue,
.staff-portal-shell .dashboard-client-type.video {
  background: #e7f4ff;
  color: var(--staff-logo-blue);
}

.staff-portal-shell .dashboard-section-icon.green,
.staff-portal-shell .dashboard-summary-pill.online,
.staff-portal-shell .dashboard-presence-dot.online {
  background: #e4f8f5;
  color: #087f76;
}

.staff-portal-shell .dashboard-section-icon.amber,
.staff-portal-shell .dashboard-summary-pill.busy {
  background: #fff5d8;
  color: #9a6204;
}

.staff-portal-shell .dashboard-forecast-card {
  background:
    linear-gradient(180deg, rgba(234, 244, 255, 0.72) 0%, #ffffff 44%),
    #ffffff;
}

.staff-portal-shell .dashboard-team-item,
.staff-portal-shell .dashboard-client-row,
.staff-portal-shell .dashboard-missed-row,
.staff-portal-shell .dashboard-news-row,
.staff-portal-shell .dashboard-new-client-row,
.staff-portal-shell .dashboard-handover-row {
  border-color: #dfe7ef;
  background: #fbfdff;
}

.staff-portal-shell .wait-card-row,
.staff-portal-shell .dashboard-hourly-row {
  border-color: #dfe7ef;
  background: #f8fafc;
}

.webphone-rail {
  border-color: #d8e1ea;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  box-shadow:
    0 1px 1px rgba(15, 23, 42, 0.05),
    0 12px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: none;
}

.webphone-rail-label {
  color: #66798b;
}

.webphone-rail-button,
.webphone-rail-link {
  border-color: #dce5ee;
  background: #ffffff;
  color: #556a7e;
  box-shadow: none;
}

.webphone-rail-button.is-active,
.webphone-rail-button--phone.is-active,
.webphone-rail-button--phone.is-connected,
.webphone-rail-link.is-active,
.webphone-rail-button--search.is-active,
.webphone-rail-button--handover.is-active,
.webphone-rail-link--statistics.is-active,
.webphone-rail-link--missed.is-active,
.webphone-rail-link--logbook.is-active {
  border-color: rgba(8, 119, 200, 0.28);
  background: #e7f4ff;
  color: var(--staff-logo-blue);
  box-shadow: inset 3px 0 0 #08afa3;
}

.webphone-live-pill {
  border-color: rgba(8, 175, 163, 0.24);
  background: #e4f8f5;
  color: #087f76;
}

/* Staff dashboard professional refresh v2.
   Reversible: remove this block to return to the subtler v1 refresh. */
body {
  background:
    linear-gradient(90deg, rgba(8, 119, 200, 0.09) 0 64px, transparent 64px),
    radial-gradient(circle at 26% 0%, rgba(8, 119, 200, 0.09) 0%, transparent 30%),
    radial-gradient(circle at 91% 9%, rgba(246, 178, 26, 0.1) 0%, transparent 20%),
    #f8fafc;
}

.ambient {
  opacity: 0.12;
}

.staff-portal-shell .page-shell {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(248, 250, 252, 0.86));
}

.staff-portal-shell .dashboard-mini-grid {
  gap: 14px;
}

.staff-portal-shell .dashboard-mini-card--figma {
  min-height: 124px;
  padding: 18px 18px 16px;
  border-color: #cfdbe6;
  border-radius: 16px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 14px 30px rgba(15, 23, 42, 0.08);
}

.staff-portal-shell .dashboard-mini-card--figma::before {
  height: 5px;
}

.staff-portal-shell .dashboard-mini-card--figma.tone-blue {
  background:
    linear-gradient(180deg, rgba(231, 244, 255, 0.82) 0%, #ffffff 42%);
}

.staff-portal-shell .dashboard-mini-card--figma.tone-emerald {
  background:
    linear-gradient(180deg, rgba(228, 248, 245, 0.9) 0%, #ffffff 42%);
}

.staff-portal-shell .dashboard-mini-card--figma.tone-amber {
  background:
    linear-gradient(180deg, rgba(255, 245, 216, 0.95) 0%, #ffffff 42%);
}

.staff-portal-shell .dashboard-mini-card--figma.tone-slate {
  background:
    linear-gradient(180deg, rgba(241, 245, 249, 0.95) 0%, #ffffff 42%);
}

.staff-portal-shell .dashboard-mini-card--figma .overview-value {
  margin-top: 6px;
  font-size: 1.78rem;
  font-weight: 800;
  letter-spacing: 0;
}

.staff-portal-shell .dashboard-mini-card--figma .overview-meta {
  margin-top: 8px;
  font-size: 0.84rem;
}

.staff-portal-shell .panel,
.staff-portal-panel,
.staff-portal-shell .dashboard-list-panel--figma {
  border-color: #cfdbe6;
  border-radius: 18px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 16px 34px rgba(15, 23, 42, 0.085);
}

.staff-portal-shell .dashboard-list-panel--figma::before,
.staff-portal-shell .dashboard-duty-card::before,
.staff-portal-shell .dashboard-stat-card::before {
  height: 4px;
}

.staff-portal-shell .dashboard-section-title {
  font-size: 1.05rem;
  font-weight: 800;
}

.staff-portal-shell .dashboard-section-subtitle {
  color: #52677c;
  font-size: 0.8rem;
}

.staff-portal-shell .dashboard-section-icon {
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.staff-portal-shell .dashboard-section-icon.blue,
.staff-portal-shell .dashboard-empty-icon.blue {
  background: #dff0ff;
  color: var(--staff-logo-blue);
}

.staff-portal-shell .dashboard-section-icon.green {
  background: #d9f5ef;
  color: #087f76;
}

.staff-portal-shell .dashboard-section-icon.rose {
  background: #ffe4ea;
  color: #c51f4a;
}

.staff-portal-shell .dashboard-summary-pill,
.staff-portal-shell .live-badge {
  min-height: 34px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  font-weight: 800;
}

.staff-portal-shell .dashboard-summary-pill.online,
.staff-portal-shell .live-badge {
  background: #d9f5ef;
  color: #087f76;
}

.staff-portal-shell .dashboard-summary-pill.busy {
  background: #fff1c7;
  color: #875404;
}

.staff-portal-shell .dashboard-team-item,
.staff-portal-shell .dashboard-client-row,
.staff-portal-shell .dashboard-missed-row,
.staff-portal-shell .dashboard-news-row,
.staff-portal-shell .dashboard-new-client-row,
.staff-portal-shell .dashboard-handover-row,
.staff-portal-shell .wait-card-row,
.staff-portal-shell .dashboard-hourly-row {
  border-color: #d7e2ec;
  background: #ffffff;
}

.staff-portal-shell .wait-card-value,
.staff-portal-shell .dashboard-hourly-value {
  color: #102033;
  font-weight: 850;
}

.staff-portal-shell .dashboard-forecast-card {
  background:
    linear-gradient(180deg, rgba(231, 244, 255, 0.9) 0%, #ffffff 30%);
}

.staff-portal-shell .dashboard-staff-card {
  background:
    linear-gradient(180deg, rgba(228, 248, 245, 0.86) 0%, #ffffff 28%);
}

.staff-portal-shell .wait-card {
  background:
    linear-gradient(180deg, rgba(231, 244, 255, 0.74) 0%, #ffffff 30%);
}

.webphone-rail {
  left: 8px;
  width: 56px;
  padding-inline: 7px;
  border-radius: 18px;
  border-color: #cbd8e3;
  background: #ffffff;
  box-shadow:
    0 18px 36px rgba(15, 23, 42, 0.12),
    inset 4px 0 0 var(--staff-logo-blue);
}

.webphone-rail-button,
.webphone-rail-link {
  width: 42px;
  min-height: 42px;
  border-radius: 12px;
}

.webphone-rail-button:hover,
.webphone-rail-link:hover {
  border-color: rgba(8, 119, 200, 0.32);
  background: #eef7ff;
  color: var(--staff-logo-blue);
}

.webphone-rail-button.is-active,
.webphone-rail-button--phone.is-active,
.webphone-rail-button--phone.is-connected,
.webphone-rail-link.is-active,
.webphone-rail-button--search.is-active,
.webphone-rail-button--handover.is-active,
.webphone-rail-link--statistics.is-active,
.webphone-rail-link--missed.is-active,
.webphone-rail-link--logbook.is-active {
  border-color: rgba(8, 119, 200, 0.42);
  background: linear-gradient(180deg, #dff0ff 0%, #eef8ff 100%);
  color: var(--staff-logo-blue);
  box-shadow:
    inset 3px 0 0 #08afa3,
    0 8px 16px rgba(8, 119, 200, 0.16);
}

.staff-global-call-column {
  border-left: 3px solid rgba(8, 175, 163, 0.24);
  background: linear-gradient(180deg, #f8fafc 0%, #edf7f9 100%);
}

.staff-global-call-column .panel,
.staff-global-call-column .global-dialer-card,
.staff-global-call-column .incoming-call-widget {
  border-color: #cbdde8;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 14px 32px rgba(15, 23, 42, 0.08);
}

/* Staffportal site-wide professional refresh.
   Reversible: remove this block to keep the dashboard-only refresh. */
.staff-figma-shell {
  background:
    linear-gradient(90deg, rgba(8, 119, 200, 0.08) 0 64px, transparent 64px),
    radial-gradient(circle at 22% 0%, rgba(8, 119, 200, 0.08) 0%, transparent 28%),
    radial-gradient(circle at 94% 4%, rgba(246, 178, 26, 0.09) 0%, transparent 18%),
    #f8fafc;
  color: #102033;
}

.staff-figma-shell .app-header-subbar {
  border-bottom-color: #cfdbe6;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: none;
}

.staff-figma-shell .app-header-subbar-status {
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid #d8e1ea;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.staff-figma-shell .app-header-subbar-value {
  color: #102033;
  font-weight: 850;
}

.staff-figma-shell .page-title,
.staff-figma-shell .card-title,
.staff-figma-shell .panel-title,
.staff-figma-shell .table-title,
.staff-figma-shell .client-info-card__title,
.staff-figma-shell .planner-section-title,
.staff-figma-shell .planner-card-title {
  color: #102033;
  font-weight: 850;
  letter-spacing: 0;
}

.staff-figma-shell .page-description,
.staff-figma-shell .card-subtitle,
.staff-figma-shell .table-subtitle,
.staff-figma-shell .field-hint,
.staff-figma-shell .cell-muted,
.staff-figma-shell .muted {
  color: #5d6f82;
}

.staff-figma-shell .header-icon,
.staff-figma-shell .icon-chip {
  border-color: rgba(8, 175, 163, 0.18);
  background: #d9f5ef;
  color: #087f76;
}

.staff-figma-shell .icon-chip.amber {
  border-color: rgba(246, 178, 26, 0.28);
  background: #fff1c7;
  color: #875404;
}

.staff-figma-shell .icon-chip.blue,
.staff-figma-shell .app-header-subbar-icon.is-video {
  border-color: rgba(8, 119, 200, 0.22);
  background: #dff0ff;
  color: var(--staff-logo-blue);
}

.staff-figma-shell .card,
.staff-figma-shell .panel,
.staff-figma-shell .table-card,
.staff-figma-shell .stat-card,
.staff-figma-shell .preferences-main-card,
.staff-figma-shell .preferences-side-card,
.staff-figma-shell .client-directory-profile-hero,
.staff-figma-shell .client-profile-workbench .profile-soft-card,
.staff-figma-shell .client-profile-workbench .profile-split-card,
.staff-figma-shell .client-profile-workbench .client-profile-side-card,
.staff-figma-shell .client-profile-workbench .tech-widget,
.staff-figma-shell .statistics-card,
.staff-figma-shell .planner-command-card,
.staff-figma-shell .planner-toolbar-card,
.staff-figma-shell .planner-filter-card,
.staff-figma-shell .planner-status-line,
.staff-figma-shell .planner-calendar-card,
.staff-figma-shell .planner-summary-card,
.staff-figma-shell .missed-calls-filter-panel {
  border-color: #cfdbe6;
  border-radius: 18px;
  background: #ffffff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 14px 30px rgba(15, 23, 42, 0.075);
}

.staff-figma-shell .card::before,
.staff-figma-shell .panel::before,
.staff-figma-shell .table-card::before,
.staff-figma-shell .stat-card::before,
.staff-figma-shell .statistics-card::before,
.staff-figma-shell .planner-command-card::before,
.staff-figma-shell .planner-toolbar-card::before,
.staff-figma-shell .planner-filter-card::before,
.staff-figma-shell .missed-calls-filter-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, #08bdb1 0%, var(--staff-logo-blue) 58%, #f6b21a 100%);
}

.staff-figma-shell .table-card,
.staff-figma-shell .statistics-filter-panel,
.staff-figma-shell .missed-calls-filter-panel {
  overflow: hidden;
}

.staff-figma-shell .client-profile-tab-panel .profile-soft-card,
.staff-figma-shell .client-profile-tab-panel .profile-split-card,
.staff-figma-shell .client-profile-tab-panel .client-profile-side-card,
.staff-figma-shell .client-profile-tab-panel .tech-widget {
  border: 1px solid #d8e6f5;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(16, 67, 114, 0.045);
}

.staff-figma-shell .client-profile-tab-panel .profile-soft-card,
.staff-figma-shell .client-profile-tab-panel .profile-split-card,
.staff-figma-shell .client-profile-tab-panel .client-profile-side-card {
  padding: 28px;
  gap: 18px;
}

.staff-figma-shell .client-profile-tab-panel .profile-soft-card > .profile-card-head,
.staff-figma-shell .client-profile-tab-panel .profile-soft-card > .card-header,
.staff-figma-shell .client-profile-tab-panel .profile-split-card > .profile-card-head,
.staff-figma-shell .client-profile-tab-panel .client-profile-side-card > .card-header,
.staff-figma-shell .client-profile-tab-panel .tech-widget > .card-header {
  margin: 0;
  padding: 0 0 16px;
  border-bottom: 1px solid #dce9f7;
  background: transparent;
}

.staff-figma-shell .client-profile-tab-panel .card-header,
.staff-figma-shell .client-profile-tab-panel .profile-card-head {
  align-items: center;
  gap: 12px;
}

.staff-figma-shell .client-profile-tab-panel .client-profile-card-title-block {
  min-width: 0;
  margin-right: auto;
}

.staff-figma-shell .client-profile-tab-panel .client-profile-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 14px;
  background: #eef6ff;
  color: #1785e8;
}

.staff-figma-shell .client-profile-tab-panel .client-profile-card-icon .svg-icon {
  width: 1.12rem;
  height: 1.12rem;
}

.staff-figma-shell .client-profile-tab-panel .profile-soft-card .card-title,
.staff-figma-shell .client-profile-tab-panel .profile-split-card .card-title,
.staff-figma-shell .client-profile-tab-panel .client-profile-side-card .card-title,
.staff-figma-shell .client-profile-tab-panel .tech-widget .card-title {
  color: #09254a;
  font-size: 1.02rem;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: 0;
}

.staff-figma-shell .client-profile-tab-panel .card-header .table-subtitle,
.staff-figma-shell .client-profile-tab-panel .profile-card-head .table-subtitle {
  display: none;
}

.staff-figma-shell .client-profile-tab-panel .profile-rich-copy,
.staff-figma-shell .client-profile-tab-panel .emergency-copy,
.staff-figma-shell .client-profile-tab-panel .client-profile-section-copy {
  color: #58709a;
  font-size: 0.92rem;
  line-height: 1.7;
}

.staff-figma-shell .table-header-bar,
.staff-figma-shell .statistics-filter-bar,
.staff-figma-shell .missed-calls-filter-panel,
.staff-figma-shell .client-directory-profile-hero {
  background:
    linear-gradient(180deg, rgba(231, 244, 255, 0.78) 0%, #ffffff 42%);
}

.staff-figma-shell .stat-card,
.staff-figma-shell .statistics-kpi-card {
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.96) 0%, #ffffff 48%);
}

.staff-figma-shell .stat-card .stat-value,
.staff-figma-shell .statistics-kpi-card .stat-value,
.staff-figma-shell .statistics-insight-value,
.staff-figma-shell .waitroom-total strong {
  color: #102033;
  font-weight: 850;
}

.staff-figma-shell .search-input,
.staff-figma-shell input,
.staff-figma-shell select,
.staff-figma-shell textarea,
.staff-figma-shell .preferences-select,
.staff-figma-shell .preferences-input,
.staff-figma-shell .statistics-filter-field select,
.staff-figma-shell .statistics-filter-search-input,
.staff-figma-shell .client-directory-search-control,
.staff-figma-shell .planner-input,
.staff-figma-shell .planner-select,
.staff-figma-shell .planner-textarea {
  border-color: #cfdbe6;
  background: #ffffff;
  color: #102033;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.staff-figma-shell .search-input:focus,
.staff-figma-shell input:focus,
.staff-figma-shell select:focus,
.staff-figma-shell textarea:focus,
.staff-figma-shell .preferences-select:focus,
.staff-figma-shell .preferences-input:focus,
.staff-figma-shell .statistics-filter-field select:focus,
.staff-figma-shell .statistics-filter-search-input:focus,
.staff-figma-shell .client-directory-search-control:focus-within,
.staff-figma-shell .planner-input:focus,
.staff-figma-shell .planner-select:focus,
.staff-figma-shell .planner-textarea:focus {
  border-color: rgba(8, 119, 200, 0.48);
  box-shadow:
    0 0 0 4px rgba(8, 119, 200, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.staff-figma-shell .primary,
.staff-figma-shell .button.primary,
.staff-figma-shell .push-send-button.ready,
.staff-figma-shell .statistics-filter-button--primary,
.staff-figma-shell .profile-save-button,
.staff-figma-shell .planner-button--primary,
.staff-figma-shell .planner-button.primary,
.staff-portal-shell .primary {
  border-color: transparent !important;
  background: linear-gradient(180deg, #08bdb1 0%, var(--staff-logo-blue) 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(8, 119, 200, 0.22) !important;
}

.staff-figma-shell .secondary,
.staff-figma-shell .button.secondary,
.staff-figma-shell .planner-button--secondary,
.staff-figma-shell .planner-button--neutral,
.staff-figma-shell .link-button,
.staff-portal-shell .staff-portal-secondary-button {
  border-color: #cfdbe6;
  background: #ffffff;
  color: #244058;
}

.staff-figma-shell .nav-link.active,
.staff-figma-shell .planner-view-toggle__button.is-active,
.staff-figma-shell .presence-menu-option.is-active {
  border-color: rgba(8, 119, 200, 0.3);
  background: #dff0ff;
  color: var(--staff-logo-blue);
  box-shadow: inset 3px 0 0 #08afa3;
}

.staff-figma-shell .status-pill,
.staff-figma-shell .preferences-status-pill,
.staff-figma-shell .waitroom-summary-pill,
.staff-figma-shell .statistics-panel-pill--accent,
.staff-figma-shell .statistics-match-badge,
.staff-figma-shell .client-directory-appointment-status {
  border: 1px solid rgba(8, 175, 163, 0.2);
  background: #d9f5ef;
  color: #087f76;
  font-weight: 800;
}

.staff-figma-shell .priority.high,
.staff-figma-shell .statistics-shortage-badge,
.staff-figma-shell .waitroom-time-pill.warning,
.staff-figma-shell .missed-call-demo-label,
.staff-figma-shell .planner-status-badge.warning {
  border-color: rgba(246, 178, 26, 0.34);
  background: #fff1c7;
  color: #875404;
}

.staff-figma-shell .detail-block,
.staff-figma-shell .search-result,
.staff-figma-shell .client-directory-result,
.staff-figma-shell .client-directory-contact-card,
.staff-figma-shell .client-directory-appointment-row,
.staff-figma-shell .statistics-support-metric,
.staff-figma-shell .statistics-insight-card,
.staff-figma-shell .statistics-phone-row,
.staff-figma-shell .statistics-donut-row,
.staff-figma-shell .waitroom-widget-facts div,
.staff-figma-shell .planner-series-row,
.staff-figma-shell .planner-appointment-card,
.staff-figma-shell .planner-slot-card,
.staff-figma-shell .missed-call-row,
.staff-figma-shell .call-registrations-table__row {
  border-color: #d7e2ec;
  background: #ffffff;
  box-shadow: none;
}

.staff-figma-shell table,
.staff-figma-shell .queue-table,
.staff-figma-shell .statistics-heatmap-table,
.staff-figma-shell .call-registrations-table {
  color: #102033;
}

.staff-figma-shell th,
.staff-figma-shell .queue-table th,
.staff-figma-shell .statistics-heatmap-table th,
.staff-figma-shell .call-registrations-table__head {
  color: #40566b;
  font-weight: 850;
  background: #f1f6fb;
}

.staff-figma-shell td,
.staff-figma-shell .queue-table td,
.staff-figma-shell .statistics-heatmap-table td {
  border-color: #dce5ee;
}

.staff-figma-shell tbody tr:hover,
.staff-figma-shell .queue-table tbody tr:hover,
.staff-figma-shell .client-directory-result:hover,
.staff-figma-shell .search-result:hover {
  background: #f3f9ff;
}

.staff-figma-shell .statistics-chart-frame,
.staff-figma-shell .statistics-load-chart-shell,
.staff-figma-shell .statistics-load-bar-group,
.staff-figma-shell .statistics-mini-bar-shell,
.staff-figma-shell .planner-calendar-grid,
.staff-figma-shell .planner-time-grid {
  border-color: #d7e2ec;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.staff-figma-shell .statistics-load-bar.incoming,
.staff-figma-shell .statistics-chart-legend .incoming,
.staff-figma-shell .statistics-balance-segment.incoming,
.staff-figma-shell .statistics-donut-dot.known {
  background: var(--staff-logo-blue);
}

.staff-figma-shell .statistics-load-bar.capacity,
.staff-figma-shell .statistics-chart-legend .capacity,
.staff-figma-shell .statistics-balance-segment.outgoing,
.staff-figma-shell .statistics-donut-dot.online {
  background: #08afa3;
}

.staff-figma-shell .statistics-load-bar.required,
.staff-figma-shell .statistics-chart-legend .required {
  background: #f6b21a;
}

.staff-figma-shell .planner-current-time-line,
.staff-figma-shell .planner-now-line {
  background: var(--staff-logo-blue);
  box-shadow: 0 0 0 3px rgba(8, 119, 200, 0.12);
}

.staff-figma-shell .planner-appointment-card {
  border-left: 4px solid #08afa3;
}

.staff-figma-shell .planner-appointment-card.is-video,
.staff-figma-shell .planner-appointment-card.video {
  border-left-color: var(--staff-logo-blue);
}

.staff-figma-shell .planner-appointment-card.is-warning,
.staff-figma-shell .planner-appointment-card.warning {
  border-left-color: #f6b21a;
}

.staff-figma-shell .staff-logbook-terminal {
  border-color: #1d3344;
  background:
    radial-gradient(circle at top right, rgba(8, 189, 177, 0.12) 0%, transparent 22%),
    linear-gradient(180deg, #1f3344 0%, #132230 100%);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.2);
}

.staff-figma-shell .staff-logbook-terminal__prompt,
.staff-figma-shell .staff-logbook-terminal__actor {
  color: #5de0d4;
}

/* Staffportal modal and header brand refresh.
   Reversible: remove this block plus the app-header-brand markup in renderHeaderSubbar. */
.staff-figma-shell .app-header-subbar-inner {
  position: relative;
  min-height: 48px;
  align-items: center;
}

.staff-figma-shell .app-header-brand {
  display: none;
}

.staff-figma-shell .app-header-brand {
  position: absolute;
  left: var(--staff-webphone-header-left-padding, 24px);
  top: 50%;
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-height: 42px;
  padding: 4px;
  border: 1px solid #d8e1ea;
  border-radius: 999px;
  background: #ffffff;
  color: #102033;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  transform: translateY(-50%);
}

.staff-figma-shell .app-header-brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(207, 216, 227, 0.9);
  border-radius: 11px;
  background: #ffffff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 4px 10px rgba(15, 23, 42, 0.08);
}

.staff-figma-shell .app-header-brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.staff-figma-shell .app-header-brand-copy {
  display: grid;
  gap: 0;
  line-height: 1.05;
}

.staff-figma-shell .app-header-brand-copy strong {
  color: #102033;
  font-size: 0.86rem;
  font-weight: 850;
}

.staff-figma-shell .app-header-brand-copy span {
  color: #5d6f82;
  font-size: 0.68rem;
  font-weight: 700;
}

.staff-webphone-root--with-call-column .staff-figma-shell .app-header-brand {
  left: var(--staff-webphone-header-left-padding, 92px);
}

.webphone-rail-logo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid #d8e1ea;
  border-radius: 14px;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 8px 16px rgba(15, 23, 42, 0.08);
}

.webphone-rail-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.client-registration-modal-backdrop,
.link-number-modal-backdrop,
.staff-figma-shell .planner-modal-backdrop,
.call-match-modal-backdrop {
  background:
    radial-gradient(circle at 24% 8%, rgba(8, 119, 200, 0.2), transparent 30%),
    radial-gradient(circle at 84% 12%, rgba(246, 178, 26, 0.18), transparent 24%),
    rgba(15, 23, 42, 0.46);
  backdrop-filter: blur(10px);
}

.client-registration-modal,
.link-number-modal,
.staff-figma-shell .planner-modal,
.call-match-modal,
.staff-figma-shell .client-info-card__match-panel {
  border-color: #cbd8e3;
  border-radius: 22px;
  background: #ffffff;
  color: #102033;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 28px 70px rgba(15, 23, 42, 0.24);
}

.client-registration-modal,
.link-number-modal,
.staff-figma-shell .planner-modal,
.call-match-modal {
  position: relative;
  overflow: hidden;
}

.client-registration-modal::before,
.link-number-modal::before,
.staff-figma-shell .planner-modal::before,
.call-match-modal::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #08bdb1 0%, var(--staff-logo-blue) 58%, #f6b21a 100%);
}

.client-registration-modal__head,
.link-number-modal__head,
.staff-figma-shell .planner-modal__header,
.call-match-modal__head {
  border-bottom-color: #d8e1ea;
  background: linear-gradient(180deg, rgba(231, 244, 255, 0.72) 0%, #ffffff 78%);
}

.client-registration-modal__head,
.link-number-modal__head,
.call-match-modal__head {
  margin: -16px -18px 16px;
  padding: 20px 62px 16px 22px;
}

.link-number-modal__head {
  margin: -24px -24px 18px;
  padding: 22px 66px 18px 24px;
}

.call-match-modal__head {
  margin: -24px -24px 18px;
  padding: 24px 24px 18px;
}

.client-registration-modal h2,
.link-number-modal h2,
.staff-figma-shell .planner-modal__header h2,
.call-match-modal h2,
.staff-figma-shell .client-info-card__match-panel h3 {
  color: #102033;
  font-weight: 850;
  letter-spacing: 0;
}

.client-registration-modal p,
.link-number-modal p,
.staff-figma-shell .planner-modal__header p,
.call-match-modal p,
.staff-figma-shell .client-info-card__match-panel p {
  color: #5d6f82;
}

.client-registration-modal__eyebrow,
.call-match-modal__eyebrow,
.staff-figma-shell .client-info-card__match-eyebrow {
  border: 1px solid rgba(8, 175, 163, 0.2);
  background: #d9f5ef;
  color: #087f76;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.client-registration-modal__close,
.link-number-modal__close,
.webphone-close,
.staff-figma-shell .planner-icon-button,
.call-match-modal__secondary {
  border-color: #cfdbe6;
  background: #ffffff;
  color: #244058;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.06);
}

.client-registration-modal__close:hover,
.link-number-modal__close:hover,
.webphone-close:hover {
  border-color: rgba(8, 119, 200, 0.3);
  background: #e7f4ff;
  color: var(--staff-logo-blue);
}

.client-registration-modal__subcard,
.client-registration-modal__panel--details,
.client-registration-modal__summary article,
.link-number-modal__result,
.link-number-modal__selected,
.link-number-modal__option-card,
.link-number-modal__replace-row,
.link-number-modal__warning,
.link-number-modal__empty,
.link-number-modal__diagnostics,
.call-match-modal__summary article,
.call-match-choice,
.callback-request-modal__recipient-option,
.callback-request-modal__recipient-selected,
.client-push-modal__client-card,
.client-push-modal__preview,
.client-push-modal__history-row {
  border-color: #d7e2ec;
  background: #ffffff;
  box-shadow: none;
}

.client-registration-modal__subcard,
.client-registration-modal__panel--details,
.client-push-modal__client-card {
  background: linear-gradient(180deg, rgba(231, 244, 255, 0.58) 0%, #ffffff 72%);
}

.client-registration-modal__warning,
.link-number-modal__warning,
.client-push-modal__status.is-waiting {
  border-color: rgba(246, 178, 26, 0.34);
  background: #fff1c7;
  color: #875404;
}

.client-registration-modal__field input,
.client-registration-modal__field textarea,
.client-registration-modal__field select,
.link-number-modal__field input,
.link-number-modal__field select,
.client-push-modal__select,
.client-push-modal__textarea,
.callback-request-modal__message,
.callback-request-modal__recipient-search {
  border-color: #cfdbe6;
  background: #ffffff;
  color: #102033;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.client-registration-modal__field input:focus,
.client-registration-modal__field textarea:focus,
.client-registration-modal__field select:focus,
.link-number-modal__field input:focus,
.link-number-modal__field select:focus,
.client-push-modal__select:focus,
.client-push-modal__textarea:focus,
.callback-request-modal__message:focus,
.callback-request-modal__recipient-search:focus {
  border-color: rgba(8, 119, 200, 0.48);
  box-shadow:
    0 0 0 4px rgba(8, 119, 200, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.client-registration-modal__primary,
.link-number-modal__primary,
.call-match-modal__primary,
.client-push-modal .client-registration-modal__primary {
  border-color: transparent;
  background: linear-gradient(180deg, #08bdb1 0%, var(--staff-logo-blue) 100%);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(8, 119, 200, 0.22);
}

.client-registration-modal__secondary,
.link-number-modal__secondary,
.link-number-modal__text-button,
.client-push-modal .client-registration-modal__secondary,
.call-match-modal__secondary {
  border-color: #cfdbe6;
  background: #ffffff;
  color: #244058;
}

.client-registration-modal__danger {
  border-color: rgba(217, 110, 118, 0.34);
  background: #fff1f3;
  color: #a91f35;
}

.link-number-modal__result.is-selected,
.client-push-modal__tab.is-active {
  border-color: rgba(8, 119, 200, 0.32);
  background: #e7f4ff;
  color: var(--staff-logo-blue);
  box-shadow: inset 3px 0 0 #08afa3;
}

.webphone-panel {
  border-color: #cbd8e3;
  border-radius: 20px;
  background: #ffffff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 24px 54px rgba(15, 23, 42, 0.18);
}

.webphone-panel::before {
  height: 5px;
  background: linear-gradient(90deg, #08bdb1 0%, var(--staff-logo-blue) 58%, #f6b21a 100%);
}

.webphone-panel-head {
  border-bottom-color: #d8e1ea;
  background: linear-gradient(180deg, rgba(231, 244, 255, 0.66) 0%, #ffffff 90%);
}

.webphone-search-panel__input,
.webphone-notes-textarea,
.webphone-handover-note {
  border-color: #cfdbe6;
  background: #ffffff;
  color: #102033;
}

@media (max-width: 1100px) {
  .staff-figma-shell .app-header-brand-copy {
    display: none;
  }

  .staff-figma-shell .app-header-brand {
    padding-right: 5px;
  }
}

/* Staffportal friendly notification bars.
   Reversible: remove this block plus the banner-message markup in renderBanner. */
.staff-figma-shell .banner,
.staff-portal-shell .banner {
  width: 100%;
  max-width: none;
  min-height: 50px;
  margin: 0 0 22px;
  padding: 13px 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  justify-content: stretch;
  gap: 12px;
  border: 1px solid rgba(8, 175, 163, 0.24);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(217, 245, 239, 0.88) 100%);
  color: #174f49;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 10px 22px rgba(15, 23, 42, 0.055);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0;
}

.staff-figma-shell .banner-status-dot,
.staff-portal-shell .banner-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #08afa3;
  box-shadow: 0 0 0 4px rgba(8, 175, 163, 0.13);
}

.staff-figma-shell .banner-message,
.staff-portal-shell .banner-message {
  min-width: 0;
  color: inherit;
}

.staff-figma-shell .banner-dismiss,
.staff-portal-shell .banner-dismiss {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(8, 175, 163, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #087f76;
  cursor: pointer;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 850;
  line-height: 1;
}

.staff-figma-shell .banner-dismiss:hover,
.staff-portal-shell .banner-dismiss:hover {
  background: #ffffff;
  border-color: rgba(8, 175, 163, 0.36);
}

.staff-figma-shell .banner--info,
.staff-figma-shell .banner.info,
.staff-portal-shell .banner--info,
.staff-portal-shell .banner.info {
  border-color: rgba(101, 116, 139, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(241, 245, 249, 0.9) 100%);
  color: #475569;
}

.staff-figma-shell .banner--success,
.staff-figma-shell .banner.success,
.staff-portal-shell .banner--success,
.staff-portal-shell .banner.success {
  border-color: rgba(8, 175, 163, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(217, 245, 239, 0.88) 100%);
  color: #087f76;
}

.staff-figma-shell .banner--success .banner-status-dot,
.staff-figma-shell .banner.success .banner-status-dot,
.staff-portal-shell .banner--success .banner-status-dot,
.staff-portal-shell .banner.success .banner-status-dot {
  background: #08afa3;
  box-shadow: 0 0 0 4px rgba(8, 175, 163, 0.13);
}

.staff-figma-shell .banner--warning,
.staff-figma-shell .banner.warning,
.staff-portal-shell .banner--warning,
.staff-portal-shell .banner.warning {
  border-color: rgba(246, 178, 26, 0.3);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 241, 199, 0.9) 100%);
  color: #6f4d17;
}

.staff-figma-shell .banner--warning .banner-status-dot,
.staff-figma-shell .banner.warning .banner-status-dot,
.staff-portal-shell .banner--warning .banner-status-dot,
.staff-portal-shell .banner.warning .banner-status-dot {
  background: #f6b21a;
  box-shadow: 0 0 0 4px rgba(246, 178, 26, 0.14);
}

.staff-figma-shell .banner--error,
.staff-figma-shell .banner.error,
.staff-portal-shell .banner--error,
.staff-portal-shell .banner.error {
  border-color: rgba(8, 175, 163, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(217, 245, 239, 0.86) 100%);
  color: #174f49;
}

.staff-figma-shell .banner--error .banner-status-dot,
.staff-figma-shell .banner.error .banner-status-dot,
.staff-portal-shell .banner--error .banner-status-dot,
.staff-portal-shell .banner.error .banner-status-dot {
  background: #08afa3;
  box-shadow: 0 0 0 4px rgba(8, 175, 163, 0.13);
}

.staff-figma-shell .statistics-inline-feedback,
.staff-figma-shell .missed-calls-inline-feedback,
.staff-figma-shell .preferences-feedback,
.staff-figma-shell .profile-input-error,
.staff-figma-shell .planner-status-line__message,
.staff-figma-shell .planner-sync-diagnostics,
.staff-global-call-column .global-dialer-card__transfer-feedback,
.webphone-panel-inline-feedback {
  border: 1px solid #cfe0ec;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(234, 244, 255, 0.82) 100%);
  color: #244058;
  font-weight: 700;
  line-height: 1.45;
}

.staff-figma-shell .statistics-inline-feedback.is-error,
.staff-figma-shell .missed-calls-inline-feedback.is-error,
.staff-figma-shell .preferences-feedback--error,
.staff-figma-shell .profile-input-error,
.staff-figma-shell .planner-status-line__message--error,
.staff-figma-shell .planner-sync-diagnostics--error {
  border-color: #cfe0ec;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(234, 244, 255, 0.82) 100%);
  color: #244058;
}

/* Staffportal prominent fixed call console.
   Reversible: remove this block to restore the previous call console spacing. */
@media (min-width: 1121px) {
  .staff-webphone-root--with-call-column {
    --staff-call-column-width: 408px;
    --staff-call-column-reserve: 444px;
  }

  .staff-webphone-root--planner-single-screen.is-planner-sidebar-visible {
    --staff-call-column-width: 408px;
    --staff-call-column-reserve: 444px;
  }

  .staff-global-call-column {
    top: 0;
    right: 0;
    bottom: 0;
    height: 100svh;
    overflow: hidden;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(247, 251, 252, 0.96) 100%),
      radial-gradient(circle at 0% 12%, rgba(8, 119, 200, 0.12) 0%, transparent 32%),
      radial-gradient(circle at 100% 0%, rgba(8, 189, 177, 0.14) 0%, transparent 34%);
    border-left-color: rgba(8, 119, 200, 0.18);
    box-shadow:
      -26px 0 46px rgba(15, 23, 42, 0.12),
      inset 4px 0 0 rgba(8, 189, 177, 0.2);
  }

  .staff-global-call-column::before {
    width: 5px;
    background: linear-gradient(180deg, #08bdb1 0%, var(--staff-logo-blue) 58%, #f6b21a 100%);
    opacity: 0.9;
  }

  .staff-global-call-column .staff-global-call-rail {
    height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 11px;
    padding: 12px 16px 14px;
    overflow: hidden;
    scrollbar-gutter: auto;
  }

  .staff-global-call-column .staff-toolbar,
  .staff-global-call-column .incoming-call-widget,
  .staff-global-call-column .global-dialer-card {
    border-color: rgba(8, 119, 200, 0.14);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
      0 16px 34px rgba(15, 23, 42, 0.09),
      inset 0 1px 0 rgba(255, 255, 255, 0.95);
  }

  .staff-global-call-column .staff-toolbar__inner {
    min-height: 56px;
    padding: 10px 14px;
    border-radius: 20px;
  }

  .staff-global-call-column .incoming-call-widget {
    position: relative;
    gap: 10px;
    padding: 14px 16px;
    border-color: rgba(8, 189, 177, 0.28);
    box-shadow:
      0 18px 38px rgba(8, 119, 200, 0.1),
      inset 0 3px 0 rgba(8, 189, 177, 0.62);
  }

  .staff-global-call-column .incoming-call-widget__title {
    font-size: 1rem;
    font-weight: 850;
  }

  .staff-global-call-column .incoming-call-widget__preview {
    height: 112px;
    border-radius: 18px;
  }

  .staff-global-call-column .incoming-call-widget__preview--empty {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 251, 248, 0.86) 100%);
    border-color: rgba(8, 189, 177, 0.36);
  }

  .staff-global-call-column .global-call-card--dialer {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    width: 100%;
    align-self: stretch;
    box-sizing: border-box;
  }

  .staff-global-call-column .global-dialer-card {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    align-self: stretch;
    box-sizing: border-box;
    padding: 13px 14px;
    border-color: rgba(246, 178, 26, 0.26);
    box-shadow:
      0 18px 38px rgba(15, 23, 42, 0.08),
      inset 0 3px 0 rgba(246, 178, 26, 0.64);
  }

  .staff-global-call-column .global-dialer-card__body,
  .staff-global-call-column .global-dialer-card__transfer-panel {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .staff-global-call-column .global-dialer-card__switch,
  .staff-global-call-column .global-dialer-card__input-shell,
  .staff-global-call-column .global-dialer-card__call-strip,
  .staff-global-call-column .global-dialer-card__keypad {
    flex: 0 0 auto;
  }

  .staff-global-call-column .global-dialer-card__input-shell {
    min-height: 40px;
    border-color: rgba(8, 119, 200, 0.16);
    background: #ffffff;
  }

  .staff-global-call-column .global-dialer-card__call-button {
    min-width: 104px;
    min-height: 36px;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(8, 189, 177, 0.2);
  }

  .staff-global-call-column .global-dialer-card__keypad {
    gap: 8px;
  }

  .staff-global-call-column .global-dialer-card__key {
    height: 36px;
    border-color: rgba(8, 119, 200, 0.12);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfc 100%);
    color: #102033;
    font-weight: 800;
  }

  .staff-global-call-column .global-dialer-card__key:hover {
    border-color: rgba(8, 119, 200, 0.26);
    background: #f2f8fc;
  }

  .staff-global-call-column .global-dialer-card__dialer-footer {
    flex: 0 0 auto;
    margin-top: auto;
  }

  .staff-global-call-column .global-dialer-card__results,
  .staff-global-call-column .global-dialer-card__history-list,
  .staff-global-call-column .global-dialer-card__transfer-list {
    min-height: 0;
    overflow-y: auto;
  }
}

/* Staffportal live alignment: keep the chrome quiet and remove legacy multicolor accents. */
.staff-portal-shell .dashboard-list-panel--figma::before,
.staff-portal-shell .dashboard-duty-card::before,
.staff-portal-shell .dashboard-stat-card::before,
.staff-portal-shell .dashboard-mini-card--figma::before,
.staff-figma-shell .card::before,
.staff-figma-shell .panel::before,
.staff-figma-shell .table-card::before,
.staff-figma-shell .stat-card::before,
.staff-figma-shell .statistics-card::before,
.staff-figma-shell .planner-command-card::before,
.staff-figma-shell .planner-toolbar-card::before,
.staff-figma-shell .planner-filter-card::before,
.staff-figma-shell .missed-calls-filter-panel::before,
.client-registration-modal::before,
.link-number-modal::before,
.staff-figma-shell .planner-modal::before,
.call-match-modal::before,
.webphone-panel::before,
.staff-global-call-column::before {
  display: none;
}

body,
.staff-figma-shell {
  background: #f6f8fb;
}

.staff-portal-shell .page-shell,
.staff-figma-shell .page-shell {
  background: #f6f8fb;
}

.staff-portal-shell .dashboard-mini-card--figma,
.staff-portal-shell .dashboard-mini-card--figma.tone-blue,
.staff-portal-shell .dashboard-mini-card--figma.tone-emerald,
.staff-portal-shell .dashboard-mini-card--figma.tone-amber,
.staff-portal-shell .dashboard-mini-card--figma.tone-slate,
.staff-portal-shell .dashboard-forecast-card,
.staff-portal-shell .dashboard-staff-card,
.staff-portal-shell .wait-card,
.staff-figma-shell .table-header-bar,
.staff-figma-shell .statistics-filter-bar,
.staff-figma-shell .missed-calls-filter-panel,
.staff-figma-shell .client-directory-profile-hero,
.staff-figma-shell .stat-card,
.staff-figma-shell .statistics-kpi-card,
.client-registration-modal__head,
.link-number-modal__head,
.staff-figma-shell .planner-modal__header,
.call-match-modal__head,
.client-registration-modal__subcard,
.client-registration-modal__panel--details,
.client-push-modal__client-card,
.webphone-rail,
.webphone-panel,
.webphone-panel-head,
.staff-global-call-column,
.staff-global-call-column .global-dialer-card__key {
  background: #ffffff;
}

.staff-portal-shell .panel,
.staff-portal-panel,
.staff-portal-shell .dashboard-list-panel--figma,
.staff-portal-shell .dashboard-mini-card--figma,
.staff-figma-shell .card,
.staff-figma-shell .panel,
.staff-figma-shell .table-card,
.staff-figma-shell .stat-card,
.staff-figma-shell .preferences-main-card,
.staff-figma-shell .preferences-side-card,
.staff-figma-shell .client-directory-profile-hero,
.staff-figma-shell .statistics-card,
.staff-figma-shell .planner-command-card,
.staff-figma-shell .planner-toolbar-card,
.staff-figma-shell .planner-filter-card,
.staff-figma-shell .planner-status-line,
.staff-figma-shell .planner-calendar-card,
.staff-figma-shell .planner-summary-card,
.staff-figma-shell .missed-calls-filter-panel,
.client-registration-modal,
.link-number-modal,
.staff-figma-shell .planner-modal,
.call-match-modal,
.webphone-panel,
.staff-global-call-column .panel,
.staff-global-call-column .global-dialer-card,
.staff-global-call-column .incoming-call-widget {
  border-color: #d8e1ea;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 14px 30px rgba(15, 23, 42, 0.07);
}

.webphone-rail,
.staff-global-call-column {
  border-left-color: #d8e1ea;
  border-color: #d8e1ea;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
}

.webphone-rail-button.is-active,
.webphone-rail-button--phone.is-active,
.webphone-rail-button--phone.is-connected,
.webphone-rail-link.is-active,
.webphone-rail-button--search.is-active,
.webphone-rail-button--handover.is-active,
.webphone-rail-link--statistics.is-active,
.webphone-rail-link--missed.is-active,
.webphone-rail-link--logbook.is-active,
.staff-figma-shell .nav-link.active,
.staff-figma-shell .planner-view-toggle__button.is-active,
.staff-figma-shell .presence-menu-option.is-active,
.link-number-modal__result.is-selected,
.client-push-modal__tab.is-active {
  border-color: #cfdbe6;
  background: #eef5ff;
  color: var(--staff-logo-blue);
  box-shadow: none;
}

.staff-global-call-column .global-dialer-card {
  border-color: #d8e1ea;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 14px 30px rgba(15, 23, 42, 0.07);
}

.staff-webphone-root--with-call-column .webphone-rail,
.staff-webphone-root--planner-single-screen:not(.is-planner-sidebar-visible) .webphone-rail,
.webphone-rail {
  border-color: #d8e1ea;
  border-left-color: #d8e1ea;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
}

.staff-global-call-column .staff-toolbar,
.staff-global-call-column .incoming-call-widget,
.staff-global-call-column .global-dialer-card {
  border-color: #d8e1ea;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 14px 30px rgba(15, 23, 42, 0.07);
}

.staff-webphone-root--with-call-column .webphone-rail,
.staff-webphone-root--planner-single-screen:not(.is-planner-sidebar-visible) .webphone-rail,
.webphone-rail {
  border-color: var(--staff-logo-blue);
  border-left-color: var(--staff-logo-blue);
  background: var(--staff-logo-blue);
  box-shadow: 0 18px 34px color-mix(in srgb, var(--staff-logo-blue) 22%, transparent);
}

.webphone-rail-logo {
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: var(--staff-logo-blue);
  box-shadow: none;
}

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

.webphone-rail-label {
  color: rgba(255, 255, 255, 0.72);
}

.webphone-rail-button,
.webphone-rail-link {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  box-shadow: none;
}

.webphone-rail-button:hover,
.webphone-rail-link:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  box-shadow: none;
}

.webphone-rail-button.is-active,
.webphone-rail-button--phone.is-active,
.webphone-rail-button--phone.is-connected,
.webphone-rail-link.is-active,
.webphone-rail-button--search.is-active,
.webphone-rail-button--handover.is-active,
.webphone-rail-link--statistics.is-active,
.webphone-rail-link--missed.is-active,
.webphone-rail-link--logbook.is-active,
.webphone-rail-link--registrations.is-active,
.webphone-rail-link--callback.is-active {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  box-shadow: none;
}

.webphone-rail-badge {
  border-color: rgba(255, 255, 255, 0.86);
  background: #ffffff;
  color: var(--staff-logo-blue);
}

.webphone-rail-separator {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.18);
}

.staff-global-call-column .staff-toolbar {
  border-radius: 20px;
}

.staff-global-call-column .staff-toolbar__inner {
  min-height: 58px;
  padding: 10px 12px 10px 18px;
  border: 1px solid #d8e1ea;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: none;
}

.staff-global-call-column .staff-toolbar__name {
  color: #1f2d3d;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0;
}

.staff-global-call-column .staff-toolbar__status {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 16px;
  border-color: #d8e1ea;
  background: #f6fbf9;
  box-shadow: none;
}

.staff-global-call-column .staff-toolbar__status--online {
  border-color: #cfe3dc;
  background: #f1faf6;
}

.staff-global-call-column .staff-toolbar__status-dot {
  width: 7px;
  height: 7px;
}

.staff-global-call-column .staff-toolbar__status-text {
  color: #3aa88c;
  font-size: 0.84rem;
  font-weight: 600;
}

.staff-global-call-column .staff-toolbar__status-chevron {
  color: #64748b;
}

.staff-global-call-column .staff-toolbar__tool {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  border-color: #d8e1ea;
  background: #f8fafc;
  color: #1f2933;
  box-shadow: none;
}

.staff-global-call-column .staff-toolbar__tool .svg-icon--gear {
  width: 1.18rem;
  height: 1.18rem;
}

.staff-global-call-column {
  border-left-color: #d8e1ea;
  background: #eef2f6;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
}

.staff-global-call-column::before {
  display: none;
}

.staff-global-call-column .staff-global-call-rail {
  background: #eef2f6;
}

.staff-global-call-column .staff-toolbar,
.staff-global-call-column .global-call-queue-card,
.staff-global-call-column .incoming-call-widget,
.staff-global-call-column .global-dialer-card,
.staff-global-call-column .waitroom-widget-shell,
.staff-global-call-column .global-call-card {
  border-color: #d8e1ea;
  background: #ffffff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 14px 30px rgba(15, 23, 42, 0.07);
}

.staff-global-call-column .incoming-call-widget__preview,
.staff-global-call-column .incoming-call-widget__preview--empty,
.staff-global-call-column .global-dialer-card__input-shell,
.staff-global-call-column .global-dialer-card__call-strip,
.staff-global-call-column .global-dialer-card__key,
.staff-global-call-column .global-dialer-card__empty-state {
  border-color: #d8e1ea;
  background: #f8fafc;
}

.staff-global-call-column .global-dialer-card__body.is-bellen {
  display: grid;
  gap: 14px;
  min-height: 0;
  padding: 0 2px 4px;
}

.staff-global-call-column .global-dialer-card__body.is-bellen form,
.staff-global-call-column .global-dialer-card__body.is-zoeken form {
  margin: 0;
}

.staff-global-call-column .global-dialer-card__body.is-bellen .global-dialer-card__input-shell,
.staff-global-call-column .global-dialer-card__body.is-zoeken .global-dialer-card__input-shell {
  min-height: 36px;
  padding: 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.staff-global-call-column .global-dialer-card__body.is-bellen .global-dialer-card__input-icon,
.staff-global-call-column .global-dialer-card__body.is-bellen .global-dialer-card__search-button {
  display: none;
}

.staff-global-call-column .global-dialer-card__body.is-bellen .global-dialer-card__input {
  color: #102033;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.staff-global-call-column .global-dialer-card__body.is-bellen .global-dialer-card__input::placeholder {
  color: #cbd5e1;
}

.staff-global-call-column .global-dialer-card__body.is-zoeken .global-dialer-card__input {
  color: #102033;
  font-size: 0.82rem;
  font-weight: 500;
}

.staff-global-call-column .global-dialer-card__body.is-zoeken .global-dialer-card__input::placeholder {
  color: #94a3b8;
}

.staff-global-call-column .global-dialer-card__body.is-zoeken .global-dialer-card__search-button {
  height: 24px;
  padding: 0 10px;
  background: #edf4ff;
  color: #2563eb;
}

.staff-global-call-column .global-dialer-card__body.is-bellen .global-dialer-card__keypad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.staff-global-call-column .global-dialer-card__body.is-bellen .global-dialer-card__key {
  height: 56px;
  border: 1px solid #d8e1ea;
  border-radius: 16px;
  background: #ffffff;
  color: #1f2d3d;
  font-size: 1.08rem;
  font-weight: 600;
  box-shadow: none;
}

.staff-global-call-column .global-dialer-card__body.is-bellen .global-dialer-card__key:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.staff-global-call-column .global-dialer-card__body.is-bellen .global-dialer-card__call-strip {
  display: block;
  padding: 0;
}

.staff-global-call-column .global-dialer-card__body.is-bellen .global-dialer-card__call-button {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 16px;
  background: #08c486;
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 700;
  box-shadow: none;
}

.staff-global-call-column .global-dialer-card__body.is-bellen .global-dialer-card__call-button::before {
  content: "";
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-right: 10px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6.6 10.8a15.8 15.8 0 0 0 6.6 6.6l2.2-2.2a1.5 1.5 0 0 1 1.5-.37c1.2.39 2.47.6 3.8.6A1.3 1.3 0 0 1 22 16.7V21a1.3 1.3 0 0 1-1.3 1.3C10.9 22.3 1.7 13.1 1.7 1.3A1.3 1.3 0 0 1 3 0h4.3a1.3 1.3 0 0 1 1.3 1.3c0 1.33.21 2.6.6 3.8a1.5 1.5 0 0 1-.37 1.5l-2.2 2.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6.6 10.8a15.8 15.8 0 0 0 6.6 6.6l2.2-2.2a1.5 1.5 0 0 1 1.5-.37c1.2.39 2.47.6 3.8.6A1.3 1.3 0 0 1 22 16.7V21a1.3 1.3 0 0 1-1.3 1.3C10.9 22.3 1.7 13.1 1.7 1.3A1.3 1.3 0 0 1 3 0h4.3a1.3 1.3 0 0 1 1.3 1.3c0 1.33.21 2.6.6 3.8a1.5 1.5 0 0 1-.37 1.5l-2.2 2.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  vertical-align: -2px;
}

.staff-global-call-column .global-dialer-card__body.is-bellen .global-dialer-card__call-hint,
.staff-global-call-column .global-dialer-card__body.is-bellen .global-dialer-card__dialer-footer {
  display: none;
}

.staff-figma-shell .client-profile-workbench .client-profile-header-status {
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: none;
}

.staff-figma-shell .app-header-subbar {
  border-bottom: 1px solid #d8e1ea;
  background: transparent;
  backdrop-filter: none;
}

.staff-figma-shell .app-header-subbar-inner {
  justify-content: flex-start;
  min-height: 36px;
  padding-top: 6px;
  padding-bottom: 4px;
}

.staff-figma-shell .app-header-subbar-status {
  justify-content: flex-start;
  width: auto;
  max-width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  gap: 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.staff-figma-shell .app-header-subbar-item {
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 550;
}

.staff-figma-shell .app-header-subbar-item.is-summary {
  padding-right: 12px;
  border-right: 1px solid #d8e1ea;
}

.staff-figma-shell .app-header-subbar-label,
.staff-figma-shell .app-header-subbar-meta {
  color: #7a8a9a;
  font-weight: 500;
}

.staff-figma-shell .app-header-subbar-value {
  color: #334155;
  font-weight: 650;
}

.staff-global-call-column .incoming-call-widget__preview--empty {
  height: 158px;
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.staff-app-shell.has-floating-rail .staff-figma-shell .app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
}

.staff-app-shell.has-floating-rail .staff-figma-shell .app-header-subbar {
  background: rgba(246, 248, 251, 0.94);
  backdrop-filter: blur(8px);
}

.staff-app-shell.has-floating-rail .staff-figma-shell .page-shell {
  padding-top: 54px;
}

/* Unified webphone popup correction.
   Older webphone-panel rules exist above for the side panels; keep the three
   modal popups on one explicit scale so they do not drift apart. */
.webphone-shell.is-modal .webphone-modal-panel.is-notes,
.webphone-shell.is-modal .webphone-modal-panel.is-handover,
.webphone-shell.is-modal .webphone-modal-panel.is-search {
  left: 50%;
  top: 50%;
  width: min(1120px, calc(100vw - 80px));
  height: min(760px, calc(100vh - 80px));
  min-height: min(520px, calc(100vh - 80px));
  max-height: calc(100vh - 80px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 30px 72px rgba(15, 23, 42, 0.26);
  transform: translate(-50%, -50%);
  overflow: hidden;
}

.webphone-shell.is-modal .webphone-modal-panel.is-notes .webphone-modal-head,
.webphone-shell.is-modal .webphone-modal-panel.is-handover .webphone-modal-head,
.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-modal-head {
  min-height: 88px;
  padding: 0 32px;
  margin: 0;
  border-bottom: 1px solid #d9dee7;
  background: #ffffff;
}

.webphone-shell.is-modal .webphone-modal-panel.is-notes .webphone-modal-title-row,
.webphone-shell.is-modal .webphone-modal-panel.is-handover .webphone-modal-title-row,
.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-modal-title-row {
  gap: 18px;
}

.webphone-shell.is-modal .webphone-modal-panel.is-notes .webphone-modal-icon,
.webphone-shell.is-modal .webphone-modal-panel.is-handover .webphone-modal-icon,
.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-modal-icon {
  width: 48px;
  height: 48px;
  background: #dbeafe;
}

.webphone-shell.is-modal .webphone-modal-panel.is-notes .webphone-modal-icon .svg-icon,
.webphone-shell.is-modal .webphone-modal-panel.is-handover .webphone-modal-icon .svg-icon,
.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-modal-icon .svg-icon {
  width: 24px;
  height: 24px;
}

.webphone-shell.is-modal .webphone-modal-panel.is-notes .webphone-title,
.webphone-shell.is-modal .webphone-modal-panel.is-handover .webphone-title,
.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-title {
  color: #111827;
  font-size: 24px;
  font-weight: 750;
  letter-spacing: 0;
}

.webphone-shell.is-modal .webphone-modal-panel.is-notes .webphone-modal-actions,
.webphone-shell.is-modal .webphone-modal-panel.is-handover .webphone-modal-actions,
.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-modal-actions {
  gap: 18px;
}

.webphone-shell.is-modal .webphone-modal-panel.is-notes .webphone-modal-action,
.webphone-shell.is-modal .webphone-modal-panel.is-handover .webphone-modal-action,
.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-modal-action {
  min-height: 34px;
  gap: 8px;
  color: #99a1af;
  font-size: 17px;
  font-weight: 700;
}

.webphone-shell.is-modal .webphone-modal-panel.is-notes .webphone-modal-action.is-primary,
.webphone-shell.is-modal .webphone-modal-panel.is-handover .webphone-modal-action.is-primary,
.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-modal-action.is-primary {
  color: var(--staff-logo-blue);
}

.webphone-shell.is-modal .webphone-modal-panel.is-notes .webphone-modal-action.is-danger,
.webphone-shell.is-modal .webphone-modal-panel.is-handover .webphone-modal-action.is-danger,
.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-modal-action.is-danger {
  color: #f87171;
}

.webphone-shell.is-modal .webphone-modal-panel.is-notes .webphone-modal-action__icon,
.webphone-shell.is-modal .webphone-modal-panel.is-handover .webphone-modal-action__icon,
.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-modal-action__icon {
  width: 20px;
  height: 20px;
}

.webphone-shell.is-modal .webphone-modal-panel.is-notes .webphone-modal-divider,
.webphone-shell.is-modal .webphone-modal-panel.is-handover .webphone-modal-divider,
.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-modal-divider {
  height: 34px;
}

.webphone-shell.is-modal .webphone-modal-panel.is-notes .webphone-modal-close,
.webphone-shell.is-modal .webphone-modal-panel.is-handover .webphone-modal-close,
.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-modal-close {
  width: 42px;
  height: 42px;
  color: #6b7280;
}

.webphone-shell.is-modal .webphone-modal-panel.is-notes .webphone-modal-close__icon,
.webphone-shell.is-modal .webphone-modal-panel.is-handover .webphone-modal-close__icon,
.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-modal-close__icon {
  width: 25px;
  height: 25px;
}

.webphone-shell.is-modal .webphone-modal-panel.is-notes .webphone-body,
.webphone-shell.is-modal .webphone-modal-panel.is-handover .webphone-body,
.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-body {
  padding: 32px 32px 28px;
  min-height: 0;
}

.webphone-shell.is-modal .webphone-modal-panel.is-notes .webphone-body.is-notes {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 18px;
}

.webphone-shell.is-modal .webphone-modal-panel.is-notes .webphone-note-textarea,
.webphone-shell.is-modal .webphone-modal-panel.is-handover .webphone-handover-compose__input {
  min-height: 0;
  padding: 20px 22px;
  border: 1px solid #cfd6e1;
  border-radius: 18px;
  background: #ffffff;
  color: #111827;
  box-shadow: none;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
}

.webphone-shell.is-modal .webphone-modal-panel.is-notes .webphone-note-textarea::placeholder,
.webphone-shell.is-modal .webphone-modal-panel.is-handover .webphone-handover-compose__input::placeholder {
  color: #9ca3af;
}

.webphone-shell.is-modal .webphone-modal-counter {
  color: #667085;
  font-size: 17px;
  font-weight: 650;
}

.webphone-shell.is-modal .webphone-modal-panel.is-handover .webphone-handover-panel {
  grid-template-rows: minmax(220px, 1fr) minmax(0, auto) auto;
  gap: 16px;
}

.webphone-shell.is-modal .webphone-modal-panel.is-handover .webphone-handover-compose {
  gap: 14px;
}

.webphone-shell.is-modal .webphone-modal-panel.is-handover .webphone-handover-list {
  max-height: 170px;
  gap: 8px;
}

.webphone-shell.is-modal .webphone-modal-panel.is-handover .webphone-handover-item {
  padding: 10px 12px;
  border-radius: 12px;
}

.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-body {
  display: flex;
  overflow: hidden;
}

.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-search-panel {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 18px;
}

.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-search-panel__bar {
  min-height: 74px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  padding: 0 14px 0 24px;
  border: 3px solid #2d73ff;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: none;
}

.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-search-panel__icon .svg-icon {
  width: 28px;
  height: 28px;
}

.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-search-panel__input {
  font-size: 22px;
  font-weight: 520;
}

.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-search-panel__submit {
  min-width: 104px;
  height: 52px;
  border: 0;
  border-radius: 16px;
  background: #2463f6;
  color: #ffffff;
  font-size: 18px;
  font-weight: 760;
}

.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-search-panel__count {
  padding: 0;
  background: transparent;
  color: #4b5563;
  font-size: 18px;
  font-weight: 520;
}

.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-search-results {
  gap: 14px;
  min-height: 0;
  overflow: auto;
}

.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-search-result,
.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-search-result--button {
  min-height: 96px;
  padding: 16px 22px;
  border: 1px solid #d9dee7;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: none;
}

.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-search-result.is-active {
  border-color: #2d73ff;
  background: #eaf3ff;
}

.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-search-result__avatar {
  width: 54px;
  height: 54px;
}

.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-search-result__avatar .svg-icon {
  width: 24px;
  height: 24px;
}

.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-search-result__name {
  font-size: 24px;
  font-weight: 760;
}

.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-search-result__code {
  font-size: 18px;
  font-weight: 680;
}

.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-search-result__meta {
  font-size: 17px;
  font-weight: 560;
}

.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-search-result__chevron {
  font-size: 34px;
}

.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-search-panel__footer {
  margin: 0 -32px -28px;
  padding: 20px 32px;
  border-top: 1px solid #d8dee8;
}

.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-search-panel__more-link {
  font-size: 18px;
  font-weight: 720;
}

/* Final refined popup scale: smaller, softer, and consistent with the original compact popup footprint. */
.webphone-shell.is-modal::before {
  background: rgba(17, 24, 39, 0.38);
  backdrop-filter: none;
}

.webphone-shell.is-modal .webphone-modal-panel.is-notes,
.webphone-shell.is-modal .webphone-modal-panel.is-handover,
.webphone-shell.is-modal .webphone-modal-panel.is-search {
  width: min(900px, calc(100vw - 96px));
  height: min(620px, calc(100vh - 96px));
  min-height: min(460px, calc(100vh - 96px));
  border-radius: 20px;
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.22);
}

.webphone-shell.is-modal .webphone-modal-panel.is-notes .webphone-modal-head,
.webphone-shell.is-modal .webphone-modal-panel.is-handover .webphone-modal-head,
.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-modal-head {
  min-height: 72px;
  padding: 0 28px;
  border-bottom-color: #e0e5ec;
}

.webphone-shell.is-modal .webphone-modal-panel.is-notes .webphone-modal-title-row,
.webphone-shell.is-modal .webphone-modal-panel.is-handover .webphone-modal-title-row,
.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-modal-title-row {
  gap: 14px;
}

.webphone-shell.is-modal .webphone-modal-panel.is-notes .webphone-modal-icon,
.webphone-shell.is-modal .webphone-modal-panel.is-handover .webphone-modal-icon,
.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-modal-icon {
  width: 42px;
  height: 42px;
  background: #dbeafe;
  color: #2563eb;
}

.webphone-shell.is-modal .webphone-modal-panel.is-notes .webphone-modal-icon .svg-icon,
.webphone-shell.is-modal .webphone-modal-panel.is-handover .webphone-modal-icon .svg-icon,
.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-modal-icon .svg-icon {
  width: 21px;
  height: 21px;
  stroke-width: 1.7;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.webphone-shell.is-modal .webphone-modal-panel.is-notes .webphone-title,
.webphone-shell.is-modal .webphone-modal-panel.is-handover .webphone-title,
.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-title {
  color: #172033;
  font-size: 21px;
  font-weight: 650;
}

.webphone-shell.is-modal .webphone-modal-panel.is-notes .webphone-modal-actions,
.webphone-shell.is-modal .webphone-modal-panel.is-handover .webphone-modal-actions,
.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-modal-actions {
  gap: 14px;
}

.webphone-shell.is-modal .webphone-modal-panel.is-notes .webphone-modal-action,
.webphone-shell.is-modal .webphone-modal-panel.is-handover .webphone-modal-action,
.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-modal-action {
  min-height: 30px;
  gap: 7px;
  color: #9aa3af;
  font-size: 15px;
  font-weight: 560;
}

.webphone-shell.is-modal .webphone-modal-panel.is-notes .webphone-modal-action.is-danger,
.webphone-shell.is-modal .webphone-modal-panel.is-handover .webphone-modal-action.is-danger,
.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-modal-action.is-danger {
  color: #f47f7f;
}

.webphone-shell.is-modal .webphone-modal-panel.is-notes .webphone-modal-action__icon,
.webphone-shell.is-modal .webphone-modal-panel.is-handover .webphone-modal-action__icon,
.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-modal-action__icon {
  width: 18px;
  height: 18px;
  stroke-width: 1.65;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.webphone-shell.is-modal .webphone-modal-panel.is-notes .webphone-modal-divider,
.webphone-shell.is-modal .webphone-modal-panel.is-handover .webphone-modal-divider,
.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-modal-divider {
  height: 30px;
  background: #d5dbe4;
}

.webphone-shell.is-modal .webphone-modal-panel.is-notes .webphone-modal-close,
.webphone-shell.is-modal .webphone-modal-panel.is-handover .webphone-modal-close,
.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-modal-close {
  width: 36px;
  height: 36px;
  color: #6f7785;
}

.webphone-shell.is-modal .webphone-modal-panel.is-notes .webphone-modal-close__icon,
.webphone-shell.is-modal .webphone-modal-panel.is-handover .webphone-modal-close__icon,
.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-modal-close__icon {
  width: 22px;
  height: 22px;
  stroke-width: 1.65;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.webphone-shell.is-modal .webphone-modal-panel.is-notes .webphone-body,
.webphone-shell.is-modal .webphone-modal-panel.is-handover .webphone-body,
.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-body {
  padding: 26px 28px 24px;
}

.webphone-shell.is-modal .webphone-modal-panel.is-notes .webphone-note-textarea,
.webphone-shell.is-modal .webphone-modal-panel.is-handover .webphone-handover-compose__input {
  padding: 18px 20px;
  border-color: #d3dae4;
  border-radius: 16px;
  color: #243047;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.48;
}

.webphone-shell.is-modal .webphone-modal-panel.is-notes .webphone-note-textarea::placeholder,
.webphone-shell.is-modal .webphone-modal-panel.is-handover .webphone-handover-compose__input::placeholder {
  color: #a3acba;
  font-weight: 400;
}

.webphone-shell.is-modal .webphone-modal-counter {
  font-size: 15px;
  font-weight: 600;
}

.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-search-panel {
  gap: 14px;
}

.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-search-panel__bar {
  min-height: 58px;
  gap: 14px;
  padding: 0 10px 0 18px;
  border-width: 2px;
  border-color: #3b78ff;
  border-radius: 18px;
}

.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-search-panel__icon .svg-icon {
  width: 23px;
  height: 23px;
  stroke-width: 1.65;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-search-panel__input {
  color: #243047;
  font-size: 16px;
  font-weight: 400;
}

.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-search-panel__input::placeholder {
  color: #a3acba;
  font-weight: 400;
}

.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-search-panel__submit {
  min-width: 82px;
  height: 42px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 650;
}

.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-search-panel__count {
  font-size: 15px;
  font-weight: 500;
}

.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-search-results {
  gap: 10px;
}

.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-search-result,
.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-search-result--button {
  min-height: 76px;
  padding: 12px 16px;
  border-color: #dde3eb;
  border-radius: 15px;
}

.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-search-result__main {
  gap: 14px;
}

.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-search-result__avatar {
  width: 44px;
  height: 44px;
}

.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-search-result__avatar .svg-icon {
  width: 20px;
  height: 20px;
  stroke-width: 1.65;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-search-result__copy {
  gap: 4px;
}

.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-search-result__title-row {
  gap: 8px;
}

.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-search-result__name {
  color: #172033;
  font-size: 17px;
  font-weight: 650;
}

.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-search-result__code {
  font-size: 14px;
  font-weight: 560;
}

.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-search-result__meta {
  color: #586273;
  font-size: 13px;
  font-weight: 450;
}

.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-search-result__chevron {
  font-size: 28px;
  color: #9aa3b2;
}

.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-search-panel__footer {
  margin: 0 -28px -24px;
  padding: 16px 28px;
  border-top-color: #e0e5ec;
}

.webphone-shell.is-modal .webphone-modal-panel.is-search .webphone-search-panel__more-link {
  font-size: 15px;
  font-weight: 680;
}

/* Kladblok returns to the side-popup footprint next to the rail. */
.webphone-shell.is-notes-open .webphone-modal-panel.is-notes {
  left: calc(var(--staff-webphone-rail-reserve) + 16px);
  right: auto;
  top: 50%;
  width: var(--webphone-sidebar-panel-width);
  height: var(--webphone-sidebar-panel-height);
  min-height: var(--webphone-sidebar-panel-height);
  max-height: var(--webphone-sidebar-panel-height);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translate(0, -50%);
  border: 1px solid #d8e1ea;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.15);
  backdrop-filter: none;
}

.webphone-shell.is-notes-open .webphone-modal-panel.is-notes::before {
  display: none;
}

.webphone-shell.is-notes-open .webphone-modal-panel.is-notes .webphone-modal-head {
  min-height: 64px;
  margin: 0;
  padding: 0 20px 0 22px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e0e5ec;
  background: #ffffff;
}

.webphone-shell.is-notes-open .webphone-modal-panel.is-notes .webphone-modal-title-row {
  min-height: 42px;
  gap: 12px;
  align-items: center;
}

.webphone-shell.is-notes-open .webphone-modal-panel.is-notes .webphone-modal-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #dbeafe;
  color: #2563eb;
}

.webphone-shell.is-notes-open .webphone-modal-panel.is-notes .webphone-modal-icon .svg-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.webphone-shell.is-notes-open .webphone-modal-panel.is-notes .webphone-title {
  margin: 0;
  color: #172033;
  font-size: 1.18rem;
  font-weight: 640;
  letter-spacing: 0;
  line-height: 1;
}

.webphone-shell.is-notes-open .webphone-modal-panel.is-notes .webphone-modal-actions {
  min-height: 42px;
  gap: 8px;
  align-items: center;
  align-self: center;
}

.webphone-shell.is-notes-open .webphone-modal-panel.is-notes .webphone-modal-action {
  min-height: 32px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #dfe5ed;
  border-radius: 999px;
  background: #f8fafc;
  color: #7a8493;
  font-size: 0.78rem;
  font-weight: 560;
  cursor: pointer;
}

.webphone-shell.is-notes-open .webphone-modal-panel.is-notes .webphone-modal-action.is-danger {
  border-color: #fde0e0;
  background: #fff7f7;
  color: #e56f6f;
}

.webphone-shell.is-notes-open .webphone-modal-panel.is-notes .webphone-modal-action__icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.webphone-shell.is-notes-open .webphone-modal-panel.is-notes .webphone-modal-divider {
  width: 1px;
  height: 28px;
  margin: 0 2px 0 6px;
  background: #d8dee8;
}

.webphone-shell.is-notes-open .webphone-modal-panel.is-notes .webphone-modal-close {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dfe5ed;
  border-radius: 999px;
  background: #ffffff;
  color: #6f7785;
  box-shadow: none;
}

.webphone-shell.is-notes-open .webphone-modal-panel.is-notes .webphone-modal-close__icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.webphone-shell.is-notes-open .webphone-modal-panel.is-notes .webphone-body.is-notes {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 20px 22px 18px;
  overflow: hidden;
}

.webphone-shell.is-notes-open .webphone-modal-panel.is-notes .webphone-note-textarea {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 16px 18px;
  border: 1px solid #d3dae4;
  border-radius: 16px;
  background: #ffffff;
  color: #243047;
  box-shadow: none;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.5;
  resize: none;
}

.webphone-shell.is-notes-open .webphone-modal-panel.is-notes .webphone-note-textarea::placeholder {
  color: #a3acba;
  font-weight: 400;
}

.webphone-shell.is-notes-open .webphone-modal-panel.is-notes .webphone-note-textarea:focus {
  outline: none;
  border-color: #b8c3d1;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.webphone-shell.is-notes-open .webphone-modal-panel.is-notes .webphone-modal-counter {
  justify-self: end;
  color: #667085;
  font-size: 0.84rem;
  font-weight: 560;
}

/* Overdracht follows the same side-popup footprint as Kladblok. */
.webphone-shell.is-handover-open .webphone-modal-panel.is-handover {
  left: calc(var(--staff-webphone-rail-reserve) + 16px);
  right: auto;
  top: 50%;
  width: var(--webphone-sidebar-panel-width);
  height: var(--webphone-sidebar-panel-height);
  min-height: var(--webphone-sidebar-panel-height);
  max-height: var(--webphone-sidebar-panel-height);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translate(0, -50%);
  border: 1px solid #d8e1ea;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.15);
  backdrop-filter: none;
}

.webphone-shell.is-handover-open .webphone-modal-panel.is-handover::before {
  display: none;
}

.webphone-shell.is-handover-open .webphone-modal-panel.is-handover .webphone-modal-head {
  min-height: 64px;
  margin: 0;
  padding: 0 20px 0 22px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e0e5ec;
  background: #ffffff;
}

.webphone-shell.is-handover-open .webphone-modal-panel.is-handover .webphone-modal-title-row {
  min-height: 42px;
  gap: 12px;
  align-items: center;
}

.webphone-shell.is-handover-open .webphone-modal-panel.is-handover .webphone-modal-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #dbeafe;
  color: #2563eb;
}

.webphone-shell.is-handover-open .webphone-modal-panel.is-handover .webphone-modal-icon .svg-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.webphone-shell.is-handover-open .webphone-modal-panel.is-handover .webphone-title {
  margin: 0;
  color: #172033;
  font-size: 1.18rem;
  font-weight: 640;
  letter-spacing: 0;
  line-height: 1;
}

.webphone-shell.is-handover-open .webphone-modal-panel.is-handover .webphone-modal-actions {
  min-height: 42px;
  gap: 8px;
  align-items: center;
  align-self: center;
}

.webphone-shell.is-handover-open .webphone-modal-panel.is-handover .webphone-modal-action {
  min-height: 32px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #dfe5ed;
  border-radius: 999px;
  background: #f8fafc;
  color: #7a8493;
  font-size: 0.78rem;
  font-weight: 560;
  cursor: pointer;
}

.webphone-shell.is-handover-open .webphone-modal-panel.is-handover .webphone-modal-action.is-primary {
  border-color: #d7e5ff;
  background: #eef5ff;
  color: #2563eb;
}

.webphone-shell.is-handover-open .webphone-modal-panel.is-handover .webphone-modal-action__icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.webphone-shell.is-handover-open .webphone-modal-panel.is-handover .webphone-modal-divider {
  width: 1px;
  height: 28px;
  margin: 0 2px 0 6px;
  background: #d8dee8;
}

.webphone-shell.is-handover-open .webphone-modal-panel.is-handover .webphone-modal-close {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dfe5ed;
  border-radius: 999px;
  background: #ffffff;
  color: #6f7785;
  box-shadow: none;
}

.webphone-shell.is-handover-open .webphone-modal-panel.is-handover .webphone-modal-close__icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.webphone-shell.is-handover-open .webphone-modal-panel.is-handover .webphone-body.is-handover {
  flex: 1 1 auto;
  min-height: 0;
  padding: 20px 22px 18px;
  overflow: hidden;
}

.webphone-shell.is-handover-open .webphone-modal-panel.is-handover .webphone-handover-panel {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(90px, 0.38fr) auto;
  gap: 12px;
}

.webphone-shell.is-handover-open .webphone-modal-panel.is-handover .webphone-handover-compose {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
}

.webphone-shell.is-handover-open .webphone-modal-panel.is-handover .webphone-handover-compose__input {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 16px 18px;
  border: 1px solid #d3dae4;
  border-radius: 16px;
  background: #ffffff;
  color: #243047;
  box-shadow: none;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.5;
  resize: none;
}

.webphone-shell.is-handover-open .webphone-modal-panel.is-handover .webphone-handover-compose__input::placeholder {
  color: #a3acba;
  font-weight: 400;
}

.webphone-shell.is-handover-open .webphone-modal-panel.is-handover .webphone-handover-compose__input:focus {
  outline: none;
  border-color: #b8c3d1;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.webphone-shell.is-handover-open .webphone-modal-panel.is-handover .webphone-modal-counter {
  justify-self: end;
  color: #667085;
  font-size: 0.84rem;
  font-weight: 560;
}

.webphone-shell.is-handover-open .webphone-modal-panel.is-handover .webphone-handover-list {
  min-height: 0;
  max-height: none;
  padding: 0;
  display: grid;
  gap: 8px;
  overflow: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.webphone-shell.is-handover-open .webphone-modal-panel.is-handover .webphone-handover-item {
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  box-shadow: none;
}

.webphone-shell.is-handover-open .webphone-modal-panel.is-handover .webphone-handover-panel__footer {
  justify-content: flex-end;
  padding-top: 0;
}

.webphone-shell.is-handover-open .webphone-modal-panel.is-handover .webphone-handover-panel__link {
  color: #667085;
  font-size: 0.82rem;
  font-weight: 560;
}

/* Zoeken uses the same compact side-popup shell, while keeping the form/results behavior intact. */
.webphone-shell.is-search-open .webphone-modal-panel.is-search {
  left: calc(var(--staff-webphone-rail-reserve) + 16px);
  right: auto;
  top: 50%;
  width: var(--webphone-sidebar-panel-width);
  height: var(--webphone-sidebar-panel-height);
  min-height: var(--webphone-sidebar-panel-height);
  max-height: var(--webphone-sidebar-panel-height);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translate(0, -50%);
  border: 1px solid #d8e1ea;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.15);
  backdrop-filter: none;
}

.webphone-shell.is-search-open .webphone-modal-panel.is-search::before {
  display: none;
}

.webphone-shell.is-search-open .webphone-modal-panel.is-search .webphone-modal-head {
  min-height: 64px;
  margin: 0;
  padding: 0 20px 0 22px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e0e5ec;
  background: #ffffff;
}

.webphone-shell.is-search-open .webphone-modal-panel.is-search .webphone-modal-title-row {
  min-height: 42px;
  gap: 12px;
  align-items: center;
}

.webphone-shell.is-search-open .webphone-modal-panel.is-search .webphone-modal-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #dbeafe;
  color: #2563eb;
}

.webphone-shell.is-search-open .webphone-modal-panel.is-search .webphone-modal-icon .svg-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.webphone-shell.is-search-open .webphone-modal-panel.is-search .webphone-title {
  margin: 0;
  color: #172033;
  font-size: 1.18rem;
  font-weight: 640;
  letter-spacing: 0;
  line-height: 1;
}

.webphone-shell.is-search-open .webphone-modal-panel.is-search .webphone-modal-actions {
  min-height: 42px;
  gap: 8px;
  align-items: center;
  align-self: center;
}

.webphone-shell.is-search-open .webphone-modal-panel.is-search .webphone-modal-divider {
  width: 1px;
  height: 28px;
  margin: 0 2px 0 6px;
  background: #d8dee8;
}

.webphone-shell.is-search-open .webphone-modal-panel.is-search .webphone-modal-close {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dfe5ed;
  border-radius: 999px;
  background: #ffffff;
  color: #6f7785;
  box-shadow: none;
}

.webphone-shell.is-search-open .webphone-modal-panel.is-search .webphone-modal-close__icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.webphone-shell.is-search-open .webphone-modal-panel.is-search .webphone-body.is-search {
  flex: 1 1 auto;
  min-height: 0;
  padding: 18px 22px 0;
  display: flex;
  overflow: hidden;
}

.webphone-shell.is-search-open .webphone-modal-panel.is-search .webphone-search-panel {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 12px;
}

.webphone-shell.is-search-open .webphone-modal-panel.is-search .webphone-search-panel__bar {
  min-height: 50px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  padding: 0 7px 0 14px;
  border: 1px solid #b8c8ff;
  border-radius: 15px;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.06);
}

.webphone-shell.is-search-open .webphone-modal-panel.is-search .webphone-search-panel__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8f98a8;
}

.webphone-shell.is-search-open .webphone-modal-panel.is-search .webphone-search-panel__icon .svg-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.webphone-shell.is-search-open .webphone-modal-panel.is-search .webphone-search-panel__input {
  min-width: 0;
  color: #243047;
  font-size: 0.94rem;
  font-weight: 400;
}

.webphone-shell.is-search-open .webphone-modal-panel.is-search .webphone-search-panel__input::placeholder {
  color: #a3acba;
  font-weight: 400;
}

.webphone-shell.is-search-open .webphone-modal-panel.is-search .webphone-search-panel__submit {
  min-width: 64px;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: #2563eb;
  color: #ffffff;
  box-shadow: none;
  font-size: 0.82rem;
  font-weight: 650;
}

.webphone-shell.is-search-open .webphone-modal-panel.is-search .webphone-search-panel__count {
  padding: 0;
  background: transparent;
  color: #586273;
  font-size: 0.88rem;
  font-weight: 520;
}

.webphone-shell.is-search-open .webphone-modal-panel.is-search .webphone-search-results {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 9px;
  overflow: auto;
}

.webphone-shell.is-search-open .webphone-modal-panel.is-search .webphone-search-result,
.webphone-shell.is-search-open .webphone-modal-panel.is-search .webphone-search-result--button {
  min-height: 66px;
  padding: 10px 12px;
  border: 1px solid #dde3eb;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: none;
}

.webphone-shell.is-search-open .webphone-modal-panel.is-search .webphone-search-result.is-active {
  border-color: #8fb4ff;
  background: #eef5ff;
}

.webphone-shell.is-search-open .webphone-modal-panel.is-search .webphone-search-result:hover,
.webphone-shell.is-search-open .webphone-modal-panel.is-search .webphone-search-result--button:hover {
  border-color: #b9c7da;
  background: #f8fbff;
}

.webphone-shell.is-search-open .webphone-modal-panel.is-search .webphone-search-result__main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.webphone-shell.is-search-open .webphone-modal-panel.is-search .webphone-search-result__avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}

.webphone-shell.is-search-open .webphone-modal-panel.is-search .webphone-search-result__avatar .svg-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.webphone-shell.is-search-open .webphone-modal-panel.is-search .webphone-search-result__copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.webphone-shell.is-search-open .webphone-modal-panel.is-search .webphone-search-result__title-row {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.webphone-shell.is-search-open .webphone-modal-panel.is-search .webphone-search-result__name {
  color: #172033;
  font-size: 0.96rem;
  font-weight: 650;
  line-height: 1.15;
}

.webphone-shell.is-search-open .webphone-modal-panel.is-search .webphone-search-result__code {
  color: #697386;
  font-size: 0.82rem;
  font-weight: 560;
  white-space: nowrap;
}

.webphone-shell.is-search-open .webphone-modal-panel.is-search .webphone-search-result__meta {
  color: #586273;
  font-size: 0.78rem;
  font-weight: 450;
  line-height: 1.25;
}

.webphone-shell.is-search-open .webphone-modal-panel.is-search .webphone-search-result__chevron {
  flex: 0 0 auto;
  color: #8f98a8;
  font-size: 1.7rem;
  font-weight: 300;
  line-height: 1;
}

.webphone-shell.is-search-open .webphone-modal-panel.is-search .webphone-search-panel__footer {
  margin: 0 -22px;
  padding: 12px 22px 14px;
  border-top: 1px solid #e0e5ec;
  justify-content: flex-start;
}

.webphone-shell.is-search-open .webphone-modal-panel.is-search .webphone-search-panel__more-link {
  color: #2563eb;
  font-size: 0.84rem;
  font-weight: 620;
}

/* Pushbericht modal: keep the centered popup, align its visual language with the refined webphone popups. */
.client-push-modal-backdrop {
  background: rgba(17, 24, 39, 0.48);
  backdrop-filter: none;
}

.client-registration-modal.client-push-modal {
  width: min(920px, calc(100vw - 48px));
  max-height: calc(100vh - 56px);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  border: 1px solid #d8e1ea;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 26px 68px rgba(15, 23, 42, 0.24);
}

.client-registration-modal.client-push-modal::before {
  display: none;
}

.client-push-modal .client-registration-modal__head.client-push-modal__head {
  min-height: 106px;
  margin: 0;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #e0e5ec;
  background: #ffffff;
}

.client-push-modal__heading {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.client-push-modal__icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #cffafe;
  color: #0891b2;
}

.client-push-modal__icon .svg-icon {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.client-push-modal .client-registration-modal__head h2 {
  margin: 0;
  color: #111827;
  font-size: 1.55rem;
  font-weight: 680;
  letter-spacing: 0;
  line-height: 1.12;
}

.client-push-modal .client-registration-modal__head p {
  margin-top: 9px;
  color: #4b5563;
  font-size: 1.05rem;
  font-weight: 420;
  line-height: 1.2;
}

.client-push-modal__head-actions {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  flex: 0 0 auto;
}

.client-push-modal .client-registration-modal__eyebrow {
  min-height: 34px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 999px;
  background: #cffafe;
  color: #0e7490;
  font-size: 0.95rem;
  font-weight: 660;
  letter-spacing: 0;
}

.client-push-modal .client-registration-modal__close {
  position: static;
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6b7280;
  box-shadow: none;
}

.client-push-modal .client-registration-modal__close .svg-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.client-push-modal .client-registration-modal__close:hover {
  background: #f3f6fa;
  color: #374151;
}

.client-push-modal__client-card {
  margin: 22px 32px 20px;
  min-height: 106px;
  padding: 22px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px solid #dde3eb;
  border-radius: 18px;
  background: #f8fafc;
}

.client-push-modal__client-avatar {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #bfdbfe;
  color: #2563eb;
}

.client-push-modal__client-avatar .svg-icon {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.client-push-modal__client-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.client-push-modal__client-card strong {
  color: #111827;
  font-size: 1.32rem;
  font-weight: 680;
  line-height: 1.15;
}

.client-push-modal__client-card span {
  color: #4b5563;
  font-size: 1.02rem;
  font-weight: 420;
  line-height: 1.25;
}

.client-push-modal__status {
  min-height: 34px;
  max-width: none;
  padding: 0 16px;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 660;
  line-height: 1;
  white-space: nowrap;
}

.client-push-modal__status.is-ready {
  background: #dcfce7;
  color: #13823b;
}

.client-push-modal__status.is-waiting {
  background: #fff7ed;
  color: #9a3412;
}

.client-push-modal__tabs {
  width: auto;
  margin: 0 32px;
  padding: 0;
  display: flex;
  gap: 26px;
  border-radius: 0;
  border-bottom: 1px solid #d8dee8;
  background: transparent;
}

.client-push-modal__tab {
  min-height: 52px;
  padding: 0 22px;
  border-radius: 0;
  border-bottom: 3px solid transparent;
  color: #111827;
  font-size: 1.02rem;
  font-weight: 640;
  background: transparent;
  box-shadow: none;
}

.client-push-modal__tab.is-active {
  color: #2563eb;
  border-bottom-color: #2563eb;
  background: transparent;
  box-shadow: none;
}

.client-push-modal__body {
  min-height: 0;
  padding: 26px 32px 0;
  display: grid;
  gap: 18px;
  overflow: auto;
}

.client-push-modal__field {
  display: grid;
  gap: 12px;
}

.client-push-modal__field > span {
  color: #374151;
  font-size: 1rem;
  font-weight: 620;
}

.client-push-modal__select {
  min-height: 70px;
  padding: 0 54px 0 24px;
  appearance: none;
  border: 2px solid #2d73ff;
  border-radius: 18px;
  background:
    linear-gradient(45deg, transparent 50%, #9aa3b2 50%) calc(100% - 34px) 31px / 9px 9px no-repeat,
    linear-gradient(135deg, #9aa3b2 50%, transparent 50%) calc(100% - 28px) 31px / 9px 9px no-repeat,
    #ffffff;
  color: #172033;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.06);
  font-size: 1.08rem;
  font-weight: 640;
}

.client-push-modal__select:focus {
  outline: none;
  border-color: #2d73ff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.client-push-modal__hint {
  margin: -2px 0 18px;
  color: #4b5563;
  font-size: 1rem;
  font-weight: 420;
}

.client-push-modal__preview {
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid #dde3eb;
  border-radius: 16px;
  background: #f8fafc;
}

.client-push-modal__preview span {
  color: #667085;
  font-size: 0.8rem;
  font-weight: 650;
  text-transform: uppercase;
}

.client-push-modal__preview p {
  color: #172033;
  font-size: 0.98rem;
  font-weight: 420;
  line-height: 1.5;
}

.client-push-modal__limit {
  margin: 0 0 18px;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 0.9rem;
}

.client-registration-modal__actions.client-push-modal__actions {
  margin: 4px -32px 0;
  padding: 22px 32px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 42px;
  border-top: 1px solid #e0e5ec;
  background: #ffffff;
}

.client-push-modal .client-registration-modal__secondary {
  min-height: 48px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: #374151;
  box-shadow: none;
  font-size: 1rem;
  font-weight: 650;
}

.client-push-modal .client-registration-modal__primary {
  min-height: 58px;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 14px;
  background: #86cfe0;
  color: #ffffff;
  box-shadow: none;
  font-size: 1.02rem;
  font-weight: 720;
}

.client-push-modal .client-registration-modal__primary .svg-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.client-push-modal .client-registration-modal__primary:not(:disabled):hover {
  background: #61bfd6;
}

.client-push-modal .client-registration-modal__primary:disabled {
  opacity: 0.7;
}

.client-push-modal__history-list {
  gap: 10px;
  padding-bottom: 24px;
}

.client-push-modal__history-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 13px 15px;
  border-color: #dde3eb;
  border-radius: 14px;
  background: #ffffff;
}

.client-push-modal__history-copy strong {
  color: #172033;
  font-size: 0.95rem;
  font-weight: 640;
}

.client-push-modal__history-copy p {
  color: #344054;
  font-size: 0.86rem;
}

.client-push-modal__history-feedback span {
  background: #eef5ff;
  color: #2563eb;
}

/* Pushbericht modal compact refinement. */
.client-registration-modal.client-push-modal {
  width: min(760px, calc(100vw - 48px));
  max-height: calc(100vh - 72px);
  border-radius: 18px;
  box-shadow: 0 22px 56px rgba(15, 23, 42, 0.2);
}

.client-push-modal .client-registration-modal__head.client-push-modal__head {
  min-height: 82px;
  padding: 0 28px;
  gap: 18px;
}

.client-push-modal__heading {
  gap: 12px;
}

.client-push-modal__icon {
  width: 44px;
  height: 44px;
}

.client-push-modal__icon .svg-icon {
  width: 23px;
  height: 23px;
  stroke-width: 1.7;
}

.client-push-modal .client-registration-modal__head h2 {
  font-size: 1.24rem;
  font-weight: 620;
}

.client-push-modal .client-registration-modal__head p {
  margin-top: 5px;
  font-size: 0.9rem;
  font-weight: 400;
}

.client-push-modal__head-actions {
  gap: 16px;
}

.client-push-modal .client-registration-modal__eyebrow {
  min-height: 28px;
  padding: 0 13px;
  font-size: 0.78rem;
  font-weight: 600;
}

.client-push-modal .client-registration-modal__close {
  width: 32px;
  height: 32px;
}

.client-push-modal .client-registration-modal__close .svg-icon {
  width: 21px;
  height: 21px;
  stroke-width: 1.7;
}

.client-push-modal__client-card {
  margin: 18px 28px 16px;
  min-height: 82px;
  padding: 16px 18px;
  gap: 13px;
  border-radius: 15px;
}

.client-push-modal__client-avatar {
  width: 44px;
  height: 44px;
}

.client-push-modal__client-avatar .svg-icon {
  width: 22px;
  height: 22px;
}

.client-push-modal__client-copy {
  gap: 5px;
}

.client-push-modal__client-card strong {
  font-size: 1.08rem;
  font-weight: 620;
}

.client-push-modal__client-card span {
  font-size: 0.88rem;
  font-weight: 400;
}

.client-push-modal__status {
  min-height: 28px;
  padding: 0 12px;
  font-size: 0.78rem;
  font-weight: 600;
}

.client-push-modal__tabs {
  margin: 0 28px;
  gap: 18px;
}

.client-push-modal__tab {
  min-height: 42px;
  padding: 0 14px;
  border-bottom-width: 2px;
  font-size: 0.9rem;
  font-weight: 580;
}

.client-push-modal__body {
  padding: 20px 28px 0;
  gap: 14px;
}

.client-push-modal__field {
  gap: 9px;
}

.client-push-modal__field > span {
  font-size: 0.9rem;
  font-weight: 560;
}

.client-push-modal__dropdown {
  position: relative;
}

.client-push-modal__select {
  min-height: 52px;
  width: 100%;
  padding: 0 46px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #2d73ff;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.045);
  color: #172033;
  font-size: 0.95rem;
  font-weight: 520;
  text-align: left;
  cursor: pointer;
}

.client-push-modal__select span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-push-modal__select-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: #8f98a8;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.client-push-modal__dropdown.is-open .client-push-modal__select-icon {
  transform: rotate(180deg);
}

.client-push-modal__select:focus-visible {
  outline: none;
  border-color: #2d73ff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.client-push-modal__menu {
  position: static;
  z-index: auto;
  margin-top: 8px;
  max-height: 188px;
  padding: 6px;
  display: grid;
  gap: 4px;
  overflow: auto;
  border: 1px solid #d8e1ea;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.16);
}

.client-push-modal__option {
  width: 100%;
  padding: 10px 12px;
  display: grid;
  gap: 3px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #172033;
  text-align: left;
  cursor: pointer;
}

.client-push-modal__option:hover,
.client-push-modal__option.is-selected {
  background: #eef5ff;
}

.client-push-modal__option span {
  font-size: 0.88rem;
  font-weight: 600;
}

.client-push-modal__option small {
  color: #667085;
  font-size: 0.76rem;
  font-weight: 400;
  line-height: 1.35;
}

.client-push-modal__hint {
  margin: -2px 0 12px;
  font-size: 0.9rem;
}

.client-push-modal__preview {
  padding: 13px 15px;
  border-radius: 14px;
}

.client-push-modal__preview span {
  font-size: 0.72rem;
  font-weight: 600;
}

.client-push-modal__preview p {
  font-size: 0.9rem;
}

.client-registration-modal__actions.client-push-modal__actions {
  margin: 2px -28px 0;
  padding: 16px 28px 18px;
  gap: 28px;
}

.client-push-modal .client-registration-modal__secondary {
  min-height: 40px;
  font-size: 0.9rem;
  font-weight: 580;
}

.client-push-modal .client-registration-modal__primary {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 640;
}

.client-push-modal .client-registration-modal__primary .svg-icon {
  width: 19px;
  height: 19px;
}
.reporting-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  background: transparent;
}

.reporting-modal-shell {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 88px 24px 20px 92px;
  pointer-events: none;
}

.reporting-modal {
  width: min(100%, 720px);
  max-height: calc(100vh - 108px);
  overflow: hidden;
  border-radius: 32px;
  background: #f1f5f9;
  box-shadow: 0 24px 80px rgb(15 23 42 / 32%);
  display: flex;
  flex-direction: column;
  pointer-events: auto;
}

body.staff-webphone-root--with-call-column .reporting-modal-shell {
  padding-right: calc(var(--staff-call-column-reserve, 412px) + 24px);
}

body.staff-webphone-root--with-call-column .reporting-modal {
  width: min(720px, calc(100vw - var(--staff-call-column-reserve, 412px) - 128px));
}

.reporting-modal__header,
.reporting-modal__footer {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 0 0 auto;
}

.reporting-modal__header {
  position: relative;
  padding-right: 72px;
}

.reporting-modal__header .client-registration-modal__close {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 10px 20px rgb(15 23 42 / 12%);
  opacity: 1;
  visibility: visible;
}

.reporting-modal__header .client-registration-modal__close .svg-icon {
  width: 18px;
  height: 18px;
  display: block;
  stroke: currentColor;
  stroke-width: 2.4;
  fill: none;
}

.reporting-modal__header .client-registration-modal__close:hover {
  border-color: #94a3b8;
  background: #f8fafc;
  color: #020617;
}

.reporting-modal__preview span,
.reporting-modal__goal-block > span,
.reporting-modal__free-text > span,
.reporting-modal__section-title span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.reporting-modal__header h2 {
  margin: 0;
  color: #0f172a;
  font-size: 22px;
}

.reporting-modal__body {
  padding: 18px 18px 28px;
  overflow: auto;
  display: grid;
  gap: 16px;
  min-height: 0;
  flex: 1 1 auto;
}

.reporting-modal__report-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 14px;
  display: grid;
  gap: 14px;
  box-shadow: 0 10px 30px rgb(15 23 42 / 6%);
}

.reporting-modal__preview,
.reporting-modal__timeline-card,
.reporting-modal__group,
.reporting-modal__free-text {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px;
}

.reporting-modal__save-button {
  border: 0;
  border-radius: 999px;
  background: #15803d;
  color: #ffffff;
  padding: 11px 22px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s ease;
}

.reporting-modal__save-button:hover:not(:disabled) {
  background: #166534;
  transform: translateY(-1px);
}

.reporting-modal__save-button:disabled {
  background: #cbd5e1;
  color: #64748b;
  cursor: not-allowed;
  transform: none;
}

.reporting-modal__goal-block {
  background: #dbeafe;
  border: 1px solid #bfdbfe;
  border-radius: 18px;
  padding: 12px;
}

.reporting-modal__goal-block p {
  margin: 9px 0 0;
  color: #1e3a8a;
  font-size: 13px;
  line-height: 1.45;
}

.reporting-modal__goal-note {
  border-top: 1px solid rgb(37 99 235 / 18%);
  padding-top: 8px;
  font-weight: 700;
}

.reporting-modal__groups {
  display: grid;
  gap: 10px;
}

.reporting-modal__goal-pills,
.reporting-modal__chips,
.reporting-modal__context {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.reporting-modal__goal-pills button,
.reporting-modal__chips button {
  border: 0;
  border-radius: 999px;
  background: #e5e7eb;
  color: #334155;
  padding: 8px 11px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}

.reporting-modal__goal-pills button.is-selected,
.reporting-modal__chips button.is-selected {
  background: #0f172a;
  color: #ffffff;
}

.reporting-modal__group {
  background: #ffffff;
}

.reporting-modal__group.is-missing {
  border-color: #fbbf24;
  box-shadow: 0 0 0 3px rgb(251 191 36 / 14%);
}

.reporting-modal__group-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #0f172a;
}

.reporting-modal__group-head span {
  color: #64748b;
  font-size: 12px;
}

.reporting-modal__free-text {
  display: grid;
  gap: 8px;
  background: #ffffff;
}

.reporting-modal__answers-disabled {
  border: 1px solid #fcd34d;
  border-radius: 16px;
  background: #fffbeb;
  padding: 14px;
}

.reporting-modal__answers-disabled-title {
  color: #78350f;
  font-size: 14px;
  font-weight: 800;
}

.reporting-modal__answers-disabled p {
  margin: 5px 0 0;
  color: #92400e;
  font-size: 14px;
  line-height: 1.55;
}

.reporting-modal__quiet-note,
.reporting-modal__save-hint {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

.reporting-modal__save-hint {
  text-align: right;
}

.reporting-modal__free-text textarea {
  min-height: 96px;
  resize: vertical;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
  padding: 10px 12px;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.45;
}

.reporting-modal__free-text--prominent textarea {
  min-height: 160px;
}

.reporting-modal__card-actions {
  display: flex;
  justify-content: flex-end;
}

.reporting-modal__preview {
  background: #ffffff;
  border-radius: 16px;
  padding: 12px;
}

.reporting-modal__preview p {
  margin: 8px 0 0;
  color: #0f172a;
  line-height: 1.55;
  font-size: 14px;
}

.reporting-modal__context {
  margin-top: 0;
}

.reporting-modal__context span {
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  padding: 8px 11px;
  font-weight: 700;
  font-size: 12px;
}

.reporting-modal__context span.is-primary {
  background: #dbeafe;
  color: #1d4ed8;
}

.reporting-modal__timeline-section {
  background: transparent;
  display: grid;
  gap: 12px;
}

.reporting-modal__section-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  padding: 0 4px;
}

.reporting-modal__section-title strong {
  color: #0f172a;
  font-size: 14px;
}

.reporting-modal__timeline {
  display: grid;
  gap: 0;
}

.reporting-modal__timeline-item {
  display: grid;
  grid-template-columns: 52px 22px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.reporting-modal__timeline-time {
  display: grid;
  align-content: start;
  gap: 2px;
  padding-top: 8px;
  color: #0f172a;
  font-weight: 800;
  font-size: 12px;
  text-align: right;
}

.reporting-modal__timeline-time small {
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
}

.reporting-modal__timeline-rail {
  position: relative;
  display: flex;
  justify-content: center;
}

.reporting-modal__timeline-rail::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #bfdbfe;
}

.reporting-modal__timeline-node {
  position: relative;
  z-index: 1;
  width: 12px;
  height: 12px;
  margin-top: 8px;
  border-radius: 999px;
  border: 3px solid #ffffff;
  background: #2563eb;
  box-shadow: 0 0 0 3px #bfdbfe;
}

.reporting-modal__timeline-card {
  background: #ffffff;
  margin-bottom: 10px;
}

.reporting-modal__timeline-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reporting-modal__timeline-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.reporting-modal__timeline-item--report .reporting-modal__timeline-avatar {
  background: #ecfdf5;
  color: #047857;
}

.reporting-modal__timeline-item--planning .reporting-modal__timeline-avatar {
  background: #fef3c7;
  color: #b45309;
}

.reporting-modal__timeline-item--client .reporting-modal__timeline-avatar {
  background: #fce7f3;
  color: #be185d;
}

.reporting-modal__timeline-item--push .reporting-modal__timeline-avatar {
  background: #ede9fe;
  color: #6d28d9;
}

.reporting-modal__timeline-card strong {
  display: block;
  color: #0f172a;
  font-size: 14px;
}

.reporting-modal__timeline-card small {
  color: #64748b;
  font-size: 12px;
}

.reporting-modal__timeline-card p {
  margin: 9px 0 0;
  color: #334155;
  font-size: 13px;
  line-height: 1.45;
}

.reporting-modal__timeline-details {
  margin: 10px 0 0;
  display: grid;
  gap: 6px;
}

.reporting-modal__timeline-details div {
  display: grid;
  gap: 2px;
  border-top: 1px solid #e2e8f0;
  padding-top: 6px;
}

.reporting-modal__timeline-details dt {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.reporting-modal__timeline-details dd {
  margin: 0;
  color: #0f172a;
  font-size: 12px;
  line-height: 1.4;
}

.reporting-modal__more-button {
  justify-self: end;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #ffffff;
  color: #1d4ed8;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 16px rgb(15 23 42 / 6%);
}

.reporting-modal__more-button:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

.reporting-modal__footer {
  border-top: 1px solid #e2e8f0;
  border-bottom: 0;
  padding: 14px 24px;
}

.reporting-modal__footer span {
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1.35;
}

@media (max-width: 720px) {
  .reporting-modal-shell {
    padding: 72px 10px 10px;
  }

  .reporting-modal {
    width: 100%;
    max-height: calc(100vh - 82px);
    border-radius: 24px;
  }

  .reporting-modal__header,
  .reporting-modal__footer {
    padding: 16px;
  }

  .reporting-modal__timeline-item {
    grid-template-columns: 46px 18px minmax(0, 1fr);
    gap: 8px;
  }
}
