.app-frame-body {
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at top left, rgba(63, 153, 222, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(244, 247, 251, 0.98), rgba(237, 242, 248, 0.98));
}

.app-frame-body.app-sidebar-open {
  overflow: hidden;
}

.app-layout {
  --app-sidebar-width: clamp(248px, 20vw, 320px);
  --app-sidebar-offset: clamp(1rem, 2vw, 1.7rem);
  display: grid;
  grid-template-columns: var(--app-sidebar-width) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.app-sidebar {
  grid-column: 1;
  grid-row: 1 / span 2;
  position: relative;
  z-index: 30;
  background:
    radial-gradient(circle at top left, rgba(74, 112, 171, 0.2), transparent 34%),
    linear-gradient(180deg, #192639 0%, #1b2a3f 48%, #24364f 100%);
  color: rgba(255, 255, 255, 0.88);
  border-right: 1px solid rgba(208, 226, 255, 0.12);
  box-shadow: 18px 0 48px rgba(10, 21, 39, 0.18);
  transition:
    box-shadow 320ms ease,
    border-color 320ms ease,
    background 320ms ease;
}

.app-sidebar-inner {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.2rem 1rem 1rem;
}

.app-sidebar-brand {
  display: grid;
  gap: 0.9rem;
  padding: 0.35rem 0.3rem 1.05rem;
  border-bottom: 1px solid rgba(220, 234, 255, 0.12);
  color: inherit;
  text-decoration: none;
}

.app-sidebar-brand-top {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  min-height: 56px;
  position: relative;
  transition: gap 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.app-sidebar-brand-mark {
  position: absolute;
  top: 50%;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(-50%) scale(0.82);
  transform-origin: center;
  transition:
    opacity 180ms ease,
    transform 300ms cubic-bezier(0.22, 1, 0.36, 1),
    left 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.app-sidebar-brand-mark-image {
  display: block;
  width: 100%;
  height: auto;
}

.app-sidebar-brand-copy {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
  transition:
    opacity 180ms ease,
    transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.app-sidebar-logo {
  display: block;
  width: min(100%, 214px);
  height: auto;
  transition:
    opacity 180ms ease,
    transform 300ms cubic-bezier(0.22, 1, 0.36, 1),
    width 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.app-sidebar-brand-copy strong {
  color: #fff;
  font-size: 1rem;
  line-height: 1.2;
}

.app-sidebar-brand-copy span {
  color: rgba(226, 236, 255, 0.78);
  font-size: 0.84rem;
}

.app-sidebar-nav {
  display: grid;
  gap: 0.45rem;
}

.app-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 52px;
  padding: 0.78rem 0.92rem;
  border-radius: 18px;
  color: rgba(231, 239, 255, 0.8);
  text-decoration: none;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    padding 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.app-sidebar-link:hover {
  transform: translateX(2px);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.app-sidebar-button {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
}

.app-sidebar-link.is-active {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(124, 179, 255, 0.24), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 0 0 1px rgba(183, 213, 255, 0.18),
    0 18px 34px rgba(9, 20, 37, 0.18);
}

.app-sidebar-link-icon {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.app-sidebar-link-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

.app-sidebar-link-label {
  white-space: nowrap;
  font-size: 0.98rem;
  font-weight: 600;
}

.app-sidebar-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(220, 234, 255, 0.12);
}

.app-sidebar-logout {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.app-sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(9, 16, 28, 0.44);
  backdrop-filter: blur(6px);
}

.app-main-shell {
  display: contents;
}

.app-content-header {
  grid-column: 1 / -1;
  grid-row: 1;
  position: relative;
  z-index: 10;
  padding: 1rem 0 0;
}

.app-content-header-inner {
  width: 100%;
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-height: 108px;
  padding:
    1rem
    clamp(1.15rem, 2.4vw, 1.8rem)
    1rem
    calc(var(--app-sidebar-width) + var(--app-sidebar-offset));
  border-radius: 0 0 26px 26px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-top: 0;
  border-left: 0;
  border-right: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 184, 115, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 248, 252, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 18px 44px rgba(17, 31, 50, 0.08);
  transition: padding 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.app-shell-toggle {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 18px;
  border: 1px solid rgba(20, 42, 69, 0.1);
  background: rgba(246, 249, 253, 0.94);
  color: var(--ink-1000);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.app-shell-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.app-content-header-copy {
  min-width: 0;
  padding-left: 0.3rem;
}

.app-company-name {
  margin: 0;
  font-size: clamp(1.68rem, 3.4vw, 2.55rem);
  line-height: 1.05;
  color: var(--ink-1000);
}

.app-section-subtitle {
  margin: 0.35rem 0 0;
  color: var(--ink-700);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 700;
}

.app-main-content {
  grid-column: 2;
  grid-row: 2;
  overflow: visible;
  padding: 1.1rem 1.4rem 1.4rem;
  transition: padding 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.app-main-stack {
  width: min(100%, 1380px);
  margin: 0 auto;
}

.app-page-hero {
  background:
    radial-gradient(circle at top left, rgba(198, 118, 52, 0.14), transparent 38%),
    radial-gradient(circle at top right, rgba(63, 153, 222, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 252, 0.96));
}

.app-grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.9fr);
  gap: 1.15rem;
  align-items: start;
}

.overview-stat-grid,
.analytics-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.overview-stat-card,
.analytics-stat-card {
  min-height: 100%;
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid rgba(20, 42, 69, 0.09);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 247, 251, 0.9));
}

.overview-stat-card strong,
.analytics-stat-card strong {
  display: block;
  color: var(--ink-1000);
  font-size: 1.34rem;
}

.overview-stat-card p,
.analytics-stat-card p {
  margin: 0.24rem 0 0;
}

.session-detail-hero {
  padding: 1.15rem;
}

.analytics-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.analytics-breakdown-card {
  padding: 1.45rem 1.8rem 1.55rem;
  border-radius: 20px;
  border: 1px solid rgba(20, 42, 69, 0.09);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 252, 0.92));
}

.analytics-breakdown-card > h2,
.analytics-breakdown-card > p,
.analytics-breakdown-card > ul {
  padding-inline: 0.1rem;
}

.analytics-breakdown-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.95rem;
}

.analytics-breakdown-card li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-block: 0.06rem;
}

.analytics-breakdown-card li span:last-child {
  font-weight: 700;
  color: var(--ink-1000);
}

.analytics-mini-bar {
  display: block;
  flex: 1 1 auto;
  height: 0.55rem;
  width: 100%;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(31, 59, 94, 0.12);
}

.analytics-mini-bar::-webkit-progress-bar {
  background: rgba(31, 59, 94, 0.12);
  border-radius: inherit;
}

.analytics-mini-bar::-webkit-progress-value {
  background: linear-gradient(90deg, var(--sky-500), var(--copper-500));
  border-radius: inherit;
}

.analytics-mini-bar::-moz-progress-bar {
  background: linear-gradient(90deg, var(--sky-500), var(--copper-500));
  border-radius: inherit;
}

.app-frame-body.app-sidebar-collapsed .app-layout {
  --app-sidebar-width: 92px;
  grid-template-columns: var(--app-sidebar-width) minmax(0, 1fr);
}

.app-frame-body.app-sidebar-collapsed .app-sidebar-link-label {
  display: none;
}

.app-frame-body.app-sidebar-collapsed .app-sidebar-brand {
  justify-items: center;
}

.app-frame-body.app-sidebar-collapsed .app-sidebar-brand-copy {
  justify-items: center;
  opacity: 0;
  transform: scale(0.9);
}

.app-frame-body.app-sidebar-collapsed .app-sidebar-brand-copy span {
  display: none;
}

.app-frame-body.app-sidebar-collapsed .app-sidebar-logo {
  width: min(100%, 56px);
  opacity: 0;
  transform: scale(0.82);
}

.app-frame-body.app-sidebar-collapsed .app-sidebar-brand-mark {
  left: 50%;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.app-frame-body.app-sidebar-collapsed .app-sidebar-brand-top {
  justify-content: center;
}

.app-frame-body.app-sidebar-collapsed .app-sidebar-link,
.app-frame-body.app-sidebar-collapsed .app-sidebar-logout {
  justify-content: center;
  padding-inline: 0;
}

.admin-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.64);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 16px 38px rgba(19, 32, 47, 0.08);
  backdrop-filter: blur(16px);
}

.app-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid rgba(16, 37, 63, 0.12);
  box-shadow: 0 12px 28px rgba(18, 33, 59, 0.08);
}

.app-nav-shell {
  width: min(100% - 2rem, 1240px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.82rem 0.9rem;
}

.app-nav-left {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.app-nav-title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-1000);
  white-space: nowrap;
}

.dashboard-page .app-shell,
.unauthorized-page .app-shell {
  padding-top: 6.8rem;
}

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

.admin-title {
  display: grid;
  gap: 0.2rem;
}

.admin-title h1 {
  font-size: clamp(1.48rem, 2.5vw, 2rem);
}

.admin-title small {
  font-size: 0.78rem;
  color: rgba(24, 39, 66, 0.56);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.session-page .app-shell {
  padding-top: 7.25rem;
}

.session-nav {
  display: block;
  width: min(100% - 2rem, 1160px);
  margin: 0.82rem auto 0;
  padding: 0.88rem 1.18rem 0.74rem;
  border-radius: 24px;
}

.session-nav-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}

.session-nav-left {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  min-width: 0;
}

.session-nav-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-width: 0;
  width: 246px;
  flex: 0 0 246px;
}

.session-nav-logo {
  display: block;
  width: 100%;
  height: auto;
}

.session-nav-title {
  margin: 0;
  font-size: clamp(0.94rem, 1.8vw, 1.08rem);
  font-weight: 600;
  white-space: nowrap;
  justify-self: center;
  text-align: center;
}

.session-created-line {
  width: 100%;
  margin: 0.15rem 0 0.35rem;
  font-size: 0.84rem;
  color: var(--ink-700);
}

.session-nav-actions {
  margin-left: 0;
  justify-self: end;
}

.dashboard-status-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.dashboard-nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.dashboard-nav-toggle-icon {
  width: 1rem;
  height: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.dashboard-nav-toggle-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.dashboard-nav-toggle-icon-visible {
  display: none;
}

.dashboard-nav-toggle[aria-expanded="true"] .dashboard-nav-toggle-icon-hidden {
  display: none;
}

.dashboard-nav-toggle[aria-expanded="true"] .dashboard-nav-toggle-icon-visible {
  display: inline-flex;
}

.dashboard-account-drawer {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  transition:
    max-height 240ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.dashboard-account-drawer.is-open {
  max-height: 540px;
  opacity: 1;
  transform: translateY(0);
}

.dashboard-account-panel {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.dashboard-account-action-card {
  border: 1px solid rgba(18, 41, 70, 0.09);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(245, 248, 252, 0.92)),
    radial-gradient(circle at top right, rgba(63, 153, 222, 0.12), transparent 40%);
}

.dashboard-account-action-card p {
  margin: 0.35rem 0 0;
}

.dashboard-account-action-card .btn {
  min-width: min(100%, 240px);
}

.dashboard-storage-card {
  padding: 1rem 1.05rem;
  border: 1px solid rgba(176, 112, 56, 0.28);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(203, 122, 52, 0.26), transparent 42%),
    radial-gradient(circle at bottom right, rgba(63, 153, 222, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(255, 247, 238, 0.98), rgba(245, 232, 216, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 14px 28px rgba(126, 74, 30, 0.08);
}

.dashboard-storage-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.dashboard-storage-bar {
  display: block;
  width: 100%;
  height: 0.72rem;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(101, 67, 36, 0.16);
  box-shadow: inset 0 1px 2px rgba(77, 47, 21, 0.12);
  appearance: none;
  -webkit-appearance: none;
}

.dashboard-storage-bar::-webkit-progress-bar {
  background: rgba(101, 67, 36, 0.16);
  border-radius: inherit;
}

.dashboard-storage-bar::-webkit-progress-value {
  border-radius: inherit;
  background: linear-gradient(90deg, var(--copper-500), var(--sky-500));
  transition: width 220ms ease;
}

.dashboard-storage-bar::-moz-progress-bar {
  border-radius: inherit;
  background: linear-gradient(90deg, var(--copper-500), var(--sky-500));
}

.dashboard-storage-message {
  margin: 0;
}

.account-summary-grid,
.account-storage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

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

.account-summary-card,
.account-storage-grid .soft-card {
  min-height: 100%;
  justify-content: space-between;
}

.account-summary-card strong,
.account-storage-grid strong {
  font-size: 1.18rem;
  color: var(--ink-1000);
}

.account-summary-card p {
  margin: 0;
}

.account-trial-banner {
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(176, 112, 56, 0.24);
  background:
    radial-gradient(circle at top right, rgba(223, 149, 86, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 251, 245, 0.96), rgba(248, 240, 229, 0.94));
}

.account-trial-banner p {
  margin: 0.35rem 0 0;
}

.pricing-tier-card.is-current {
  border-color: rgba(176, 102, 42, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 0 1px rgba(223, 149, 86, 0.28),
    0 26px 52px rgba(88, 48, 20, 0.16);
  animation: current-plan-glow 2.8s ease-in-out infinite;
}

.pricing-tier-card.is-current .pricing-tier-badge {
  background: rgba(255, 228, 200, 0.96);
}

@keyframes current-plan-glow {
  0%,
  100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      0 0 0 1px rgba(223, 149, 86, 0.22),
      0 26px 52px rgba(88, 48, 20, 0.14);
  }

  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.92),
      0 0 0 1px rgba(223, 149, 86, 0.36),
      0 30px 60px rgba(88, 48, 20, 0.18);
  }
}

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

.account-summary-card strong,
.account-storage-facts strong {
  display: block;
  font-size: 1.18rem;
  color: var(--ink-1000);
}

.account-summary-card p,
.account-users-note p {
  margin: 0;
}

.account-trial-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(176, 102, 42, 0.18);
  background:
    radial-gradient(circle at top right, rgba(255, 185, 119, 0.24), transparent 32%),
    linear-gradient(180deg, rgba(255, 247, 238, 0.94), rgba(244, 248, 252, 0.92));
}

.account-trial-banner p {
  margin: 0.35rem 0 0;
}

.account-page-shell {
  padding-bottom: 3rem;
}

.account-section {
  padding: 1.1rem;
}

.account-status-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.account-status-item {
  min-height: 100%;
}

.account-section-label {
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-700);
}

.account-status-item strong,
.account-storage-metric strong,
.account-users-summary strong,
.account-plan-status strong {
  display: block;
  color: var(--ink-1000);
  font-size: 1.14rem;
}

.account-status-item p,
.account-storage-metric p,
.account-users-summary p,
.account-plan-status p {
  margin: 0;
}

.account-storage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.account-storage-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.account-storage-metric {
  padding: 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(214, 224, 236, 0.88);
  background: rgba(255, 255, 255, 0.74);
}

.account-users-list {
  display: grid;
  gap: 0.85rem;
}

.account-user-row {
  display: grid;
  gap: 0.85rem;
}

.account-user-meta,
.account-user-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.account-user-meta p {
  margin: 0.28rem 0 0;
}

.account-users-summary,
.account-users-locked,
.account-plan-status {
  border: 1px solid rgba(18, 41, 70, 0.1);
}

.account-users-locked {
  background:
    radial-gradient(circle at top right, rgba(63, 153, 222, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(245, 248, 252, 0.96), rgba(238, 243, 249, 0.94));
}

.account-user-form h3 {
  margin-bottom: 0.25rem;
}

.account-form-actions {
  justify-content: flex-end;
}

.account-user-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.account-plan-banner {
  border: 1px solid rgba(176, 102, 42, 0.14);
  background:
    radial-gradient(circle at top right, rgba(255, 190, 128, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(250, 245, 238, 0.96), rgba(241, 246, 251, 0.94));
}

.account-plan-banner p {
  margin: 0;
}

.account-plan-banner.is-warning {
  border-color: rgba(173, 70, 49, 0.18);
  background:
    radial-gradient(circle at top right, rgba(224, 105, 84, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 246, 244, 0.96), rgba(248, 241, 240, 0.94));
}

.account-danger-zone {
  border-color: rgba(173, 70, 49, 0.16);
}

.account-danger-actions,
.dashboard-intake-actions {
  justify-content: flex-start;
}

.dashboard-intake-card {
  max-width: 980px;
}

.pricing-tier-badge-current {
  color: #fff;
  background: linear-gradient(180deg, var(--copper-500), var(--copper-600));
}

.account-pricing-grid .pricing-tier-card {
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.account-pricing-grid .pricing-tier-card:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 24px 52px rgba(14, 28, 47, 0.12);
}

.account-pricing-grid .pricing-tier-card.is-disabled:hover {
  transform: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 20px 40px rgba(14, 28, 47, 0.08);
}

.account-pricing-grid .price-tag {
  margin: 0.55rem 0 0.9rem;
}

.account-pricing-grid .price-tag span {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.account-pricing-grid .pricing-points {
  gap: 0.48rem;
}

.account-pricing-grid .pricing-tier-actions {
  padding-top: 0.9rem;
}

.pricing-tier-card.is-current-plan {
  border-color: rgba(176, 102, 42, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 26px 56px rgba(90, 49, 20, 0.18);
  animation: account-plan-pulse 3.2s ease-in-out infinite;
}

.pricing-tier-card.is-current-plan::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(234, 151, 78, 0.34);
  pointer-events: none;
}

.is-current-plan-cta {
  pointer-events: none;
  opacity: 0.82;
}

.account-plan-action-disabled {
  pointer-events: none;
  opacity: 0.72;
}

.table tbody tr.is-clickable {
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.table tbody tr.is-clickable:hover {
  transform: translateY(-1px);
  background: rgba(223, 149, 86, 0.08);
  box-shadow: inset 0 0 0 1px rgba(198, 118, 52, 0.12);
}

.table tbody tr.is-clickable:focus-visible {
  outline: 2px solid rgba(198, 118, 52, 0.42);
  outline-offset: -2px;
  background: rgba(223, 149, 86, 0.08);
}

@keyframes account-plan-pulse {
  0%,
  100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      0 22px 48px rgba(90, 49, 20, 0.14);
  }

  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      0 30px 64px rgba(90, 49, 20, 0.22);
  }
}

.billing-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(15, 24, 36, 0.56);
  backdrop-filter: blur(10px);
}

.billing-modal[hidden] {
  display: none;
}

.session-help-modal {
  position: fixed;
  inset: 0;
  z-index: 42;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(15, 24, 36, 0.6);
  backdrop-filter: blur(12px);
}

.session-help-modal[hidden] {
  display: none;
}

.session-help-modal-shell {
  width: min(100%, 860px);
  max-height: min(92vh, 860px);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background:
    radial-gradient(circle at 10% 0%, rgba(63, 153, 222, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(248, 250, 253, 0.98), rgba(242, 246, 250, 0.98));
  box-shadow:
    0 24px 80px rgba(11, 18, 27, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.session-help-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.2rem 1rem;
  border-bottom: 1px solid rgba(214, 224, 236, 0.84);
}

.session-help-modal-body {
  padding: 1.2rem;
  overflow: auto;
}

.session-help-modal-close {
  flex: 0 0 auto;
}

.session-help-eyebrow {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sky-600);
  font-weight: 700;
}

.session-help-grid {
  align-items: start;
}

.session-help-modal-open {
  overflow: hidden;
}

.billing-modal-shell {
  width: min(100%, 980px);
  max-height: min(92vh, 940px);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background:
    radial-gradient(circle at 10% 0%, rgba(63, 153, 222, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(248, 250, 253, 0.98), rgba(242, 246, 250, 0.98));
  box-shadow:
    0 24px 80px rgba(11, 18, 27, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(420px, 1fr);
}

.billing-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.2rem 1rem;
  border-bottom: 1px solid rgba(214, 224, 236, 0.84);
}

.billing-modal-head h2 {
  margin-bottom: 0.2rem;
}

.billing-modal-head p:last-child {
  margin-bottom: 0;
}

.billing-modal-close {
  flex: 0 0 auto;
}

.billing-modal-frame {
  width: 100%;
  min-height: 420px;
  height: min(72vh, 760px);
  border: 0;
  background: #fff;
}

.login-wrap {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1.4rem;
}

.login-card {
  width: min(980px, 100%);
  overflow: hidden;
}

.login-card header {
  text-align: left;
}

.login-card h1,
.login-card h2 {
  font-size: clamp(1.35rem, 3vw, 1.98rem);
}

.signup-card,
.login-modern {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 0;
}

.auth-aside {
  border-right: 1px solid var(--line-soft);
  padding: clamp(1rem, 2.8vw, 1.5rem);
  background:
    radial-gradient(circle at 0% 0%, rgba(63, 153, 222, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(247, 249, 252, 0.94), rgba(242, 245, 250, 0.92));
}

.auth-main {
  padding: clamp(1rem, 2.8vw, 1.5rem);
}

.auth-points .card {
  padding: 0.8rem;
  border-radius: 14px;
  box-shadow: none;
}

.wizard-progress {
  border: 1px solid rgba(198, 118, 52, 0.28);
  border-radius: 999px;
  padding: 0.32rem 0.8rem;
  background: rgba(255, 255, 255, 0.92);
  display: inline-flex;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--copper-600);
}

.status-message {
  min-height: 1.1rem;
}

.status-message.is-alert {
  color: #8f2020;
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 18px;
  overflow: hidden;
}

.table th,
.table td {
  padding: 0.72rem;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  font-size: 0.9rem;
  vertical-align: top;
}

.table th {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--copper-600);
  background: rgba(243, 237, 230, 0.62);
}

.table tbody tr:hover {
  background: rgba(223, 149, 86, 0.08);
}

.link-row {
  font-size: 0.82rem;
  color: #53647d;
  word-break: break-all;
}

.actions .input {
  flex: 1 1 220px;
  max-width: 290px;
}

.dashboard-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.dashboard-section-head h2 {
  margin-bottom: 0.25rem;
}

.dashboard-status-message {
  max-width: 52ch;
  text-align: left;
}

.dashboard-intake-guide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.dashboard-intake-guide .soft-card {
  min-height: 100%;
}

.dashboard-compose-actions {
  margin-top: 0.1rem;
}

.dashboard-compose-actions .btn {
  min-width: 220px;
}

.dashboard-compose-note {
  margin: 0;
  color: var(--ink-700);
}

.activation-page .app-shell {
  width: min(100% - 2rem, 980px);
}

.activation-hero {
  background:
    radial-gradient(circle at top left, rgba(198, 118, 52, 0.12), transparent 38%),
    radial-gradient(circle at top right, rgba(63, 153, 222, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 252, 0.96));
}

.activation-status-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.activation-placeholder p {
  margin: 0.3rem 0 0;
}

.activation-note-card {
  border: 1px solid rgba(18, 41, 70, 0.09);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 247, 251, 0.9));
}

.dashboard-filter-panel {
  gap: 0.9rem;
}

.dashboard-filter-row {
  align-items: end;
}

.dashboard-filter-row .field-full {
  grid-column: 1 / 3;
}

.dashboard-locality-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(74px, 0.5fr) minmax(110px, 0.7fr);
  gap: 0.95rem;
  align-items: end;
}

.session-cell {
  display: grid;
  gap: 0.32rem;
  min-width: 220px;
}

.session-cell strong {
  display: block;
  color: var(--ink-1000);
  font-size: 0.96rem;
}

.session-cell p {
  margin: 0;
  color: var(--ink-800);
  line-height: 1.5;
}

.session-cell-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: var(--ink-700);
  font-size: 0.78rem;
}

.session-cell-id {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.session-layout {
  display: grid;
  grid-template-columns: minmax(360px, 460px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.session-video-card {
  display: grid;
  justify-items: stretch;
  align-content: start;
  gap: 0.68rem;
}

.session-video-card .video-shell,
.session-video-dock {
  width: min(100%, 446px);
  margin: 0 auto;
}

.session-video-card .video-shell {
  aspect-ratio: 9 / 16;
  min-height: clamp(560px, 74vh, 820px);
}

.session-video-card .video-shell.is-collapsed {
  aspect-ratio: 9 / 11;
  min-height: clamp(340px, 46vh, 520px);
}

.video-shell {
  position: relative;
  background:
    radial-gradient(circle at 10% 8%, rgba(94, 165, 219, 0.24), transparent 30%),
    radial-gradient(circle at 92% 84%, rgba(223, 152, 48, 0.16), transparent 34%),
    #182232;
  border: 1px solid rgba(206, 218, 235, 0.3);
  border-radius: 26px;
  overflow: hidden;
  min-height: clamp(560px, 74vh, 820px);
  display: grid;
  place-items: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 48px rgba(14, 24, 35, 0.18);
  transition:
    min-height 220ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    aspect-ratio 220ms ease;
  isolation: isolate;
}

.video-shell-status {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  max-width: calc(100% - 2rem);
  padding: 0.68rem 0.92rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  color: #f5f8fc;
  background: rgba(18, 28, 41, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 16px 32px rgba(10, 16, 24, 0.24);
}

.video-shell-status-dot {
  width: 0.72rem;
  height: 0.72rem;
  flex: 0 0 0.72rem;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08);
}

.video-shell-status.is-live {
  border-color: rgba(107, 224, 159, 0.4);
  color: #dffbea;
  background: linear-gradient(135deg, rgba(32, 96, 62, 0.82), rgba(20, 73, 45, 0.78));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 36px rgba(12, 45, 28, 0.3);
}

.video-shell-status.is-live .video-shell-status-dot {
  box-shadow:
    0 0 0 6px rgba(107, 224, 159, 0.16),
    0 0 18px rgba(107, 224, 159, 0.34);
}

.video-shell-status.is-connecting {
  border-color: rgba(138, 217, 255, 0.34);
  color: #ecf8ff;
  background: linear-gradient(135deg, rgba(23, 76, 106, 0.84), rgba(16, 57, 83, 0.82));
}

.video-shell-status.is-attention {
  border-color: rgba(255, 190, 125, 0.4);
  color: #fff2df;
  background: linear-gradient(135deg, rgba(114, 60, 27, 0.86), rgba(86, 42, 20, 0.82));
}

.video-shell-status.is-closed {
  border-color: rgba(192, 204, 221, 0.18);
  color: #e3ebf4;
  background: linear-gradient(135deg, rgba(39, 49, 62, 0.82), rgba(26, 34, 45, 0.82));
}

.video-shell.is-idle {
  background:
    radial-gradient(circle at 12% 10%, rgba(94, 165, 219, 0.24), transparent 30%),
    radial-gradient(circle at 88% 84%, rgba(223, 152, 48, 0.16), transparent 34%),
    #182232;
  border-color: rgba(206, 218, 235, 0.3);
}

.video-shell.is-attention {
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 205, 145, 0.28), transparent 28%),
    radial-gradient(circle at 80% 78%, rgba(255, 113, 67, 0.24), transparent 32%),
    linear-gradient(180deg, #4a241e 0%, #5d2d1c 48%, #3a1f1d 100%);
  border-color: rgba(255, 179, 113, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(255, 179, 113, 0.14),
    0 24px 48px rgba(65, 28, 21, 0.28);
  animation: ticket-awaiting-tech-pulse 2.8s ease-in-out infinite;
}

.video-shell.is-ready {
  background:
    radial-gradient(circle at 18% 14%, rgba(104, 212, 255, 0.24), transparent 28%),
    radial-gradient(circle at 84% 84%, rgba(74, 145, 255, 0.2), transparent 34%),
    linear-gradient(180deg, #123458 0%, #173f69 52%, #112c49 100%);
  border-color: rgba(119, 190, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(119, 190, 255, 0.12),
    0 24px 48px rgba(14, 46, 88, 0.26);
}

.video-shell.is-live {
  background:
    radial-gradient(circle at 18% 14%, rgba(115, 255, 184, 0.28), transparent 28%),
    radial-gradient(circle at 84% 84%, rgba(70, 201, 140, 0.24), transparent 34%),
    linear-gradient(180deg, #123a2b 0%, #164633 52%, #102d21 100%);
  border-color: rgba(131, 233, 180, 0.44);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(131, 233, 180, 0.14),
    0 24px 48px rgba(15, 63, 43, 0.28);
}

.video-shell.is-connecting {
  background:
    radial-gradient(circle at 16% 14%, rgba(116, 236, 255, 0.26), transparent 30%),
    radial-gradient(circle at 86% 80%, rgba(59, 153, 255, 0.2), transparent 34%),
    linear-gradient(180deg, #102f4c 0%, #114466 48%, #0f2840 100%);
  border-color: rgba(121, 219, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(121, 219, 255, 0.12),
    0 24px 48px rgba(16, 55, 83, 0.26);
}

.video-shell.is-closed {
  background:
    radial-gradient(circle at 14% 12%, rgba(108, 123, 145, 0.16), transparent 28%),
    linear-gradient(180deg, #202734 0%, #18202b 54%, #151b24 100%);
  border-color: rgba(163, 176, 195, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 20px 40px rgba(15, 22, 31, 0.22);
}

.session-tools .actions .btn {
  flex: 1 1 180px;
}

.session-tools .inline-row {
  align-items: flex-start;
}

.session-tools .inline-row label {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
}

.session-access-card .actions .btn {
  flex: 1 1 180px;
}

.session-access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  align-items: end;
}

.session-access-field {
  display: grid;
}

.session-access-field .btn {
  width: 100%;
}

.session-card-toggle {
  flex: 0 0 auto;
  min-width: 84px;
}

.session-access-card .link-row {
  padding: 0.8rem 0.92rem;
  border-radius: 16px;
  border: 1px solid rgba(214, 224, 236, 0.84);
  background: rgba(246, 249, 252, 0.92);
  color: var(--ink-800);
}

.session-copy-link-btn {
  width: 100%;
}

.session-link-delivery-card {
  position: relative;
}

.session-delivery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.session-delivery-method {
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(205, 216, 232, 0.84);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 252, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 16px 30px rgba(18, 31, 47, 0.08);
}

.session-delivery-method.is-wide {
  grid-column: 1 / -1;
}

.session-delivery-method-text {
  background:
    radial-gradient(circle at 0 0, rgba(223, 152, 48, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(248, 243, 236, 0.95));
}

.session-delivery-method-email {
  background:
    radial-gradient(circle at 0 0, rgba(63, 153, 222, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(248, 252, 255, 0.98), rgba(239, 246, 252, 0.95));
}

.session-delivery-method-copy {
  background:
    radial-gradient(circle at 0 0, rgba(84, 102, 129, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(250, 251, 253, 0.98), rgba(241, 245, 249, 0.95));
}

.session-delivery-head {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.session-delivery-head strong {
  display: block;
  margin-bottom: 0.22rem;
}

.session-delivery-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-950);
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 10px 22px rgba(18, 31, 47, 0.12);
}

.session-delivery-method-text .session-delivery-icon {
  color: #9a5a1c;
  background: linear-gradient(180deg, rgba(255, 242, 221, 0.96), rgba(250, 226, 188, 0.94));
}

.session-delivery-method-email .session-delivery-icon {
  color: #25669a;
  background: linear-gradient(180deg, rgba(226, 242, 255, 0.96), rgba(204, 229, 250, 0.94));
}

.session-delivery-method-copy .session-delivery-icon {
  color: #465a75;
  background: linear-gradient(180deg, rgba(234, 239, 246, 0.96), rgba(220, 228, 238, 0.94));
}

.session-delivery-icon svg,
.session-link-action svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.session-link-action {
  width: 100%;
}

.session-video-dock {
  display: grid;
  gap: 0.72rem;
  padding: 0.88rem 0.95rem 0.82rem;
  border-radius: 24px;
  border: 1px solid rgba(205, 216, 232, 0.88);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 252, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 12px 24px rgba(18, 31, 47, 0.08);
}

.session-call-summary {
  display: grid;
  gap: 0.42rem;
  padding: 0.92rem 0.96rem 0.94rem;
  border-radius: 20px;
  border: 1px solid rgba(205, 216, 232, 0.84);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(243, 247, 252, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 12px 24px rgba(18, 31, 47, 0.06);
}

.session-call-summary strong {
  color: var(--ink-1000);
  font-size: 1.04rem;
  line-height: 1.25;
}

.session-call-summary-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 28px;
  padding: 0.28rem 0.68rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-900);
  background: rgba(205, 216, 232, 0.42);
}

.session-call-summary-text {
  margin: 0;
  color: var(--ink-800);
}

.session-call-summary.is-live {
  border-color: rgba(118, 214, 162, 0.48);
  background:
    radial-gradient(circle at 0 0, rgba(112, 221, 164, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(242, 253, 247, 0.98), rgba(233, 248, 239, 0.96));
}

.session-call-summary.is-live .session-call-summary-badge {
  color: #135538;
  background: rgba(110, 219, 161, 0.22);
}

.session-call-summary.is-connecting {
  border-color: rgba(138, 217, 255, 0.44);
  background:
    radial-gradient(circle at 0 0, rgba(138, 217, 255, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(244, 251, 255, 0.98), rgba(235, 244, 251, 0.96));
}

.session-call-summary.is-connecting .session-call-summary-badge {
  color: #1c587c;
  background: rgba(138, 217, 255, 0.22);
}

.session-call-summary.is-attention {
  border-color: rgba(255, 190, 125, 0.5);
  background:
    radial-gradient(circle at 0 0, rgba(255, 190, 125, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(255, 249, 242, 0.98), rgba(251, 241, 230, 0.96));
}

.session-call-summary.is-attention .session-call-summary-badge {
  color: #8f4a18;
  background: rgba(255, 190, 125, 0.22);
}

.session-call-summary.is-closed {
  border-color: rgba(205, 216, 232, 0.88);
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(242, 246, 251, 0.95));
}

.session-call-summary.is-closed .session-call-summary-badge {
  color: #4f627b;
  background: rgba(205, 216, 232, 0.34);
}

.session-video-control-bar {
  width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.session-video-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.session-video-toggle-btn {
  border: 1px solid transparent;
  min-width: 188px;
  justify-content: flex-start;
  flex: 0 0 auto;
}

.session-video-toggle-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.session-video-toggle-btn.is-open-action {
  border-color: rgba(20, 111, 224, 0.44);
  background: linear-gradient(135deg, #3f9bff, #1766da);
  color: #f8fbff;
  box-shadow:
    0 10px 22px rgba(24, 85, 182, 0.22);
}

.session-video-toggle-btn.is-open-action:hover,
.session-video-toggle-btn.is-open-action:focus-visible {
  border-color: rgba(20, 111, 224, 0.5);
  background: linear-gradient(135deg, #53a9ff, #1d73ed);
  color: #f8fbff;
}

.session-video-toggle-btn.is-open-action:disabled {
  opacity: 1;
  cursor: default;
  border-color: rgba(20, 111, 224, 0.44);
  background: linear-gradient(135deg, #3f9bff, #1766da);
  color: #f8fbff;
  box-shadow: 0 10px 22px rgba(24, 85, 182, 0.22);
}

.session-video-toggle-btn.is-close-action {
  border-color: rgba(177, 54, 54, 0.22);
  color: #8a2525;
  background: linear-gradient(180deg, rgba(255, 244, 244, 0.98), rgba(249, 233, 233, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 8px 18px rgba(120, 33, 33, 0.08);
}

.session-video-toggle-btn.is-close-action:hover,
.session-video-toggle-btn.is-close-action:focus-visible {
  border-color: rgba(177, 54, 54, 0.28);
  background: linear-gradient(180deg, rgba(255, 238, 238, 0.99), rgba(245, 220, 220, 0.95));
  color: #7f1f1f;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 10px 22px rgba(120, 33, 33, 0.11);
}

.session-video-toggle-btn.is-close-action:disabled {
  opacity: 1;
  cursor: default;
  border-color: rgba(177, 54, 54, 0.22);
  color: #8a2525;
  background: linear-gradient(180deg, rgba(255, 244, 244, 0.98), rgba(249, 233, 233, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 8px 18px rgba(120, 33, 33, 0.08);
}

@keyframes session-live-pulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(35, 132, 255, 0.38),
      0 10px 22px rgba(24, 85, 182, 0.22);
  }

  70% {
    box-shadow:
      0 0 0 12px rgba(35, 132, 255, 0),
      0 10px 22px rgba(24, 85, 182, 0.18);
  }

  100% {
    box-shadow:
      0 0 0 0 rgba(35, 132, 255, 0),
      0 10px 22px rgba(24, 85, 182, 0.22);
  }
}

.session-icon-btn {
  width: 68px;
  height: 68px;
  border: 1px solid rgba(25, 40, 62, 0.14);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 246, 250, 0.94));
  color: var(--ink-950);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 8px 18px rgba(16, 29, 45, 0.1);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.session-icon-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 20px rgba(16, 29, 45, 0.13);
}

.session-icon-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 5px 12px rgba(16, 29, 45, 0.06);
}

.session-icon-btn svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.session-icon-btn.is-active {
  border-color: rgba(34, 110, 176, 0.22);
  background: linear-gradient(180deg, rgba(87, 165, 221, 0.2), rgba(61, 141, 198, 0.18));
  color: #1e5c8f;
}

.session-icon-btn.is-danger {
  border-color: rgba(177, 54, 54, 0.18);
  background: linear-gradient(180deg, rgba(230, 80, 80, 0.92), rgba(189, 48, 48, 0.94));
  color: #fff;
}

.session-icon-btn.is-danger:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 18px 34px rgba(128, 24, 24, 0.28);
}

.session-video-status {
  margin: 0;
  padding: 0 0.14rem;
  text-align: left;
  color: var(--ink-700);
  min-height: 1.4em;
}

.session-mic-retry-btn {
  align-self: flex-start;
  min-width: 0;
  border-color: rgba(20, 111, 224, 0.18);
  background:
    radial-gradient(circle at top left, rgba(120, 190, 255, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(237, 244, 251, 0.94));
  color: #144d82;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 22px rgba(28, 93, 161, 0.1);
}

.session-mic-retry-btn:hover,
.session-mic-retry-btn:focus-visible {
  border-color: rgba(20, 111, 224, 0.28);
  background:
    radial-gradient(circle at top left, rgba(120, 190, 255, 0.22), transparent 42%),
    linear-gradient(180deg, rgba(250, 253, 255, 0.99), rgba(234, 242, 250, 0.95));
  color: #103e69;
}

.session-close-ticket-btn {
  min-width: min(100%, 240px);
}

.session-diagnostics-card {
  width: 100%;
}

.ticket-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.58rem;
  flex-wrap: wrap;
}

.ticket-row-action {
  white-space: nowrap;
}

.ticket-row-action svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

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

.review-grid-wide {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.review-card {
  min-height: 100%;
}

.review-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.review-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #0f766e;
  font-weight: 700;
}

.review-title {
  margin: 0;
}

.review-subtitle {
  margin: 0;
}

.review-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.review-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1rem;
  margin: 0;
}

.review-detail-list dt {
  margin: 0 0 0.22rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #53708f;
}

.review-detail-list dd {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
  color: #17324d;
}

.review-richtext {
  display: grid;
  gap: 0.65rem;
}

.review-richtext h2,
.review-richtext h3,
.review-richtext p,
.review-richtext ul {
  margin: 0;
}

.review-richtext h2,
.review-richtext h3 {
  color: #103e69;
}

.review-richtext ul {
  padding-left: 1.1rem;
}

.review-note-block,
.review-transcript {
  margin: 0;
  padding: 1rem 1.05rem;
  border-radius: 16px;
  border: 1px solid rgba(111, 145, 178, 0.24);
  background: linear-gradient(180deg, rgba(250, 253, 255, 0.98), rgba(241, 247, 252, 0.95));
  color: #17324d;
}

.review-note-block p {
  margin: 0;
  line-height: 1.65;
}

.review-transcript {
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.review-image-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.review-image-card {
  display: grid;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
}

.review-image-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(111, 145, 178, 0.24);
  background: #edf4fa;
}

.review-image-card span {
  font-size: 0.84rem;
  color: #53708f;
}

.review-media-block {
  display: grid;
  gap: 0.6rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(111, 145, 178, 0.24);
  background: linear-gradient(180deg, rgba(250, 253, 255, 0.98), rgba(241, 247, 252, 0.95));
}

.review-media-block audio,
.review-media-block video {
  width: 100%;
}

.review-link-list {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.review-link-list a {
  color: #0f5ea8;
  text-decoration: none;
  font-weight: 600;
}

.review-call-list {
  display: grid;
  gap: 0.9rem;
}

.review-call-card {
  display: grid;
  gap: 0.55rem;
  padding: 1rem 1.05rem;
  border-radius: 16px;
  border: 1px solid rgba(111, 145, 178, 0.24);
  background: linear-gradient(180deg, rgba(250, 253, 255, 0.98), rgba(241, 247, 252, 0.95));
}

.review-call-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ticket-export-button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.ticket-export-button svg,
.ticket-export-button [data-export-label] {
  position: relative;
  z-index: 1;
}

.ticket-export-button.is-loading {
  box-shadow:
    inset 0 0 0 1px rgba(91, 173, 231, 0.2),
    0 0 0 2px rgba(91, 173, 231, 0.12),
    0 12px 28px rgba(63, 153, 222, 0.16);
}

.ticket-export-button::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0), rgba(91, 173, 231, 0.28), rgba(255, 255, 255, 0));
  transform: translateX(-120%);
}

.ticket-export-button.is-loading::after {
  opacity: 1;
  animation: ticket-export-loading 1.4s linear infinite;
}

.ticket-export-button[data-export-status="blocked"]:disabled {
  opacity: 0.62;
}

@keyframes ticket-export-loading {
  from {
    transform: translateX(-120%);
  }

  to {
    transform: translateX(120%);
  }
}

.unauthorized-shell {
  min-height: calc(100dvh - 6.8rem);
  display: grid;
  align-items: center;
}

.unauthorized-card {
  width: min(100%, 680px);
  margin: 0 auto;
}

#remoteVideo {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background: #101b2a;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 4.85rem 1.6rem 2.25rem;
  color: #edf5ff;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: pre-line;
  text-wrap: balance;
  text-shadow: 0 10px 28px rgba(6, 10, 15, 0.34);
}

.video-shell.is-attention .video-placeholder {
  color: #fff4ea;
}

.video-shell.is-ready .video-placeholder,
.video-shell.is-connecting .video-placeholder {
  color: #f1f8ff;
}

.video-shell.is-closed .video-placeholder {
  color: #dde5ef;
}

@keyframes ticket-awaiting-tech-pulse {
  0%,
  100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 0 0 1px rgba(255, 179, 113, 0.14),
      0 24px 48px rgba(65, 28, 21, 0.28);
  }

  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 0 0 4px rgba(255, 179, 113, 0.16),
      0 26px 52px rgba(65, 28, 21, 0.32);
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.54rem;
}

.stats-item {
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 14px;
  padding: 0.64rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 247, 251, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.stats-item strong {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #516076;
}

.stats-item span {
  display: block;
  margin-top: 0.3rem;
  color: var(--ink-1000);
  font-size: 0.95rem;
  font-weight: 600;
}

.badge.success {
  color: #1f6a43;
  background: rgba(62, 182, 112, 0.18);
  border-color: rgba(62, 182, 112, 0.24);
}

.badge.info {
  color: #2b638c;
  background: rgba(91, 173, 231, 0.16);
  border-color: rgba(63, 153, 222, 0.24);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.6rem;
}

.gallery img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: 0 12px 24px rgba(25, 34, 48, 0.12);
}

.inline-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.notes-textarea {
  min-height: 140px;
  resize: vertical;
  overflow: auto;
}

.ticket-issue-textarea {
  min-height: 124px;
  resize: vertical;
  overflow: auto;
}

.session-record-card {
  padding: 1rem;
}

.session-record-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.session-record-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.58rem;
  flex-wrap: wrap;
}

.session-record-actions .btn {
  white-space: nowrap;
}

.session-record-head p {
  margin: 0.3rem 0 0;
}

.session-record-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.record-stat {
  padding: 0.85rem;
  border-radius: 16px;
  border: 1px solid rgba(214, 224, 236, 0.88);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 247, 251, 0.88));
}

.record-stat strong {
  display: block;
  margin-bottom: 0.28rem;
  color: var(--ink-700);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.record-stat span {
  display: block;
  color: var(--ink-1000);
  font-size: 0.9rem;
  line-height: 1.5;
}

.artifact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.artifact-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.36rem 0.74rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(214, 224, 236, 0.84);
  color: var(--ink-800);
  font-size: 0.79rem;
  font-weight: 600;
}

.artifact-pill.is-ready {
  border-color: rgba(42, 125, 197, 0.2);
  background: rgba(63, 153, 222, 0.1);
  color: #1f6296;
}

.session-timeline {
  display: grid;
  gap: 0.7rem;
}

.session-timeline-row {
  display: grid;
  grid-template-columns: minmax(96px, auto) 1fr;
  gap: 0.75rem;
  align-items: start;
}

.session-timeline-time {
  color: var(--copper-600);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.session-timeline-row strong {
  display: block;
  color: var(--ink-1000);
  font-size: 0.92rem;
}

.session-timeline-row span:last-child {
  display: block;
  margin-top: 0.18rem;
  color: var(--ink-700);
  font-size: 0.84rem;
  line-height: 1.48;
}

.session-page-footnote {
  margin: 0;
  padding: 0 0 1rem;
  color: var(--ink-700);
}

.legal-shell {
  width: min(100% - 2rem, 980px);
  margin: 0 auto;
  padding: 1.2rem 0 2rem;
}

@media (max-width: 980px) {
  .app-layout {
    --app-sidebar-width: 0px;
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    grid-column: 1;
    grid-row: 1 / span 2;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(82vw, 320px);
    transform: translateX(-100%);
    transition: transform 220ms ease;
  }

  .app-frame-body.app-sidebar-open .app-sidebar {
    transform: translateX(0);
  }

  .app-content-header,
  .app-main-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .app-content-header-inner {
    min-height: auto;
    padding: 0.9rem 1rem;
  }

  .app-main-content {
    grid-column: 1;
    grid-row: 2;
  }

  .admin-header,
  .home-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .session-nav {
    padding: 0.76rem 0.92rem 0.66rem;
  }

  .session-nav-top {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
    display: flex;
  }

  .session-nav-left {
    flex-wrap: wrap;
    width: 100%;
  }

  .session-nav-brand {
    width: auto;
    flex: 0 1 auto;
  }

  .session-nav-actions {
    width: 100%;
    margin-left: 0;
  }

  .session-nav-actions .btn {
    width: 100%;
  }

  .session-nav-title {
    width: 100%;
    font-size: 1rem;
  }

  .signup-card,
  .login-modern,
  .session-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-section-head,
  .dashboard-status-inline,
  .dashboard-storage-head,
  .account-trial-banner,
  .account-user-meta,
  .account-user-actions,
  .session-record-head,
  .activation-status-row,
  .billing-modal-head,
  .session-help-modal-head {
    flex-direction: column;
  }

  .dashboard-status-message {
    text-align: left;
  }

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

  .account-summary-grid,
  .account-status-grid,
  .account-storage-grid,
  .account-user-meta-grid {
    grid-template-columns: 1fr;
  }

  .overview-stat-grid,
  .analytics-stat-grid,
  .analytics-breakdown-grid,
  .app-grid-two {
    grid-template-columns: 1fr;
  }

  .account-storage-metrics {
    grid-template-columns: 1fr;
  }

  .dashboard-filter-row .field-full {
    grid-column: auto;
  }

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

  .auth-aside {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .session-video-card .video-shell {
    width: min(100%, 420px);
    min-height: min(74vh, 760px);
  }

  .session-video-card .video-shell.is-collapsed {
    min-height: min(46vh, 460px);
  }

  .session-video-dock {
    width: min(100%, 420px);
  }

  .session-access-grid {
    grid-template-columns: 1fr;
  }

  .session-help-grid {
    grid-template-columns: 1fr;
  }

  .session-delivery-grid {
    grid-template-columns: 1fr;
  }

  .session-delivery-method.is-wide {
    grid-column: auto;
  }

  .session-video-control-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .session-video-toggle-btn {
    width: 100%;
  }

  .ticket-row-actions {
    justify-content: stretch;
  }

  .ticket-row-action {
    width: 100%;
  }

  .review-grid,
  .review-grid-wide,
  .review-detail-list {
    grid-template-columns: 1fr;
  }

  .review-actions {
    width: 100%;
    justify-content: stretch;
  }

  .review-actions .btn {
    width: 100%;
  }

  .video-shell {
    min-height: min(74vh, 760px);
  }

  .video-shell.is-collapsed {
    min-height: min(46vh, 460px);
  }

  .app-nav-shell {
    width: min(100% - 1rem, 1240px);
    padding: 0.74rem 0;
  }

  .app-nav-left {
    gap: 0.72rem;
  }

  .app-nav-title {
    font-size: 1.02rem;
  }

  .dashboard-account-drawer.is-open {
    max-height: 620px;
  }

  .billing-modal {
    padding: 0.65rem;
  }

  .session-help-modal {
    padding: 0.65rem;
  }

  .billing-modal-shell {
    border-radius: 24px;
  }

  .session-help-modal-shell {
    border-radius: 24px;
  }

  .session-icon-btn {
    width: 62px;
    height: 62px;
    border-radius: 20px;
  }
}

@media (max-width: 640px) {
  .app-sidebar {
    width: min(88vw, 320px);
  }

  .app-shell-toggle {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .app-company-name {
    font-size: clamp(1.45rem, 6vw, 2.1rem);
  }

  .dashboard-account-drawer.is-open {
    max-height: 720px;
  }

  .account-summary-grid {
    grid-template-columns: 1fr;
  }

  .account-status-grid,
  .account-storage-metrics,
  .account-user-meta-grid {
    grid-template-columns: 1fr;
  }

  .session-video-card .video-shell,
  .video-shell {
    width: 100%;
    min-height: min(78vh, 680px);
    border-radius: 24px;
  }

  .session-video-card .video-shell.is-collapsed,
  .video-shell.is-collapsed {
    min-height: min(42vh, 400px);
  }

  .session-video-dock {
    width: 100%;
  }

  .billing-modal-shell {
    grid-template-rows: auto minmax(360px, 1fr);
  }

  .session-help-modal-shell {
    grid-template-rows: auto minmax(320px, 1fr);
  }

  .billing-modal-frame {
    min-height: 360px;
    height: min(68vh, 620px);
  }

  .session-help-modal-body {
    padding: 1rem;
  }

  .session-record-grid {
    grid-template-columns: 1fr;
  }

  .session-cell {
    min-width: 180px;
  }

  .session-timeline-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

/* Password strength meter */
.password-strength-meter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.password-strength-meter .strength-bar {
  flex: 1;
  height: 4px;
  background: var(--clr-border, #d0d5dd);
  border-radius: 2px;
  overflow: hidden;
}

.password-strength-meter .strength-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.password-strength-meter .strength-fill.strength-weak { background: #e74c3c; }
.password-strength-meter .strength-fill.strength-fair { background: #f39c12; }
.password-strength-meter .strength-fill.strength-good { background: #27ae60; }
.password-strength-meter .strength-fill.strength-strong { background: #2ecc71; }

.password-strength-meter .strength-label {
  font-size: 0.75rem;
  font-weight: 500;
  min-width: 3rem;
}

.password-strength-meter .strength-label.strength-weak { color: #e74c3c; }
.password-strength-meter .strength-label.strength-fair { color: #f39c12; }
.password-strength-meter .strength-label.strength-good { color: #27ae60; }
.password-strength-meter .strength-label.strength-strong { color: #2ecc71; }

/* Session expiration toast */
.session-expiry-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  background: #1a1a2e;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 380px;
  animation: slideInUp 0.3s ease;
}

.session-expiry-toast button {
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
  font-size: 1rem;
  padding: 0 0.25rem;
}

.email-verification-notice {
  margin: 0 clamp(1rem, 3vw, 2rem);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  border-bottom: 1px solid rgba(185, 124, 39, 0.22);
  background: #fff8ec;
  color: #352617;
}

.email-verification-notice strong {
  display: block;
  color: #20160d;
}

.email-verification-notice p {
  margin: 0.15rem 0 0;
  color: #6a5843;
}

.email-verification-notice .btn {
  flex: 0 0 auto;
}

.email-verification-notice .small {
  flex: 0 1 16rem;
  text-align: right;
}

@media (max-width: 760px) {
  .email-verification-notice {
    align-items: stretch;
    flex-direction: column;
  }

  .email-verification-notice .small {
    flex: 0 0 auto;
    text-align: left;
  }
}

@keyframes slideInUp {
  from { transform: translateY(1rem); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* CRM Integration Cards */
.crm-provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.crm-provider-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--outline-200, #e2e6ed);
  background: var(--surface-50, #fafbfc);
}

.crm-provider-card-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.crm-provider-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 6px;
  background: var(--brand-100, #dbeafe);
  color: var(--brand-700, #1d4ed8);
  font-weight: 700;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.crm-provider-actions {
  margin-top: auto;
  padding-top: 0.25rem;
}

.crm-status-ok {
  color: var(--green-700, #15803d);
}

.crm-status-warn {
  color: var(--amber-700, #b45309);
}

.crm-status-off {
  color: var(--ink-500, #6b7280);
}

.btn-small {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
}

/* CRM Field Mapping Panel */
.crm-field-mapping-panel {
  border: 1px solid var(--outline-200, #e2e6ed);
  border-radius: 8px;
  padding: 1rem;
  background: var(--surface-50, #fafbfc);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.crm-field-mapping-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.crm-field-mapping-header h3 {
  margin: 0;
}

.crm-field-mapping-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.crm-field-mapping-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  align-items: center;
}

.crm-field-mapping-toggle {
  margin: 0;
}

.input-small {
  padding: 0.3rem 0.5rem;
  font-size: 0.82rem;
}

/* CRM Sync Log */
.crm-sync-log-panel {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.crm-sync-log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.crm-sync-log-header h3 {
  margin: 0;
  font-size: 0.95rem;
}

.crm-sync-log-table {
  font-size: 0.82rem;
}

.crm-sync-log-table td,
.crm-sync-log-table th {
  padding: 0.4rem 0.6rem;
}

/* Per-session CRM sync */
.crm-session-sync-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0;
}

.crm-session-sync-row + .crm-session-sync-row {
  border-top: 1px solid var(--outline-100, #f0f1f3);
}

/* CRM Contact Search */
.crm-contact-search-wrap {
  position: relative;
}

.crm-contact-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--surface-0, #fff);
  border: 1px solid var(--outline-200, #e2e6ed);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-height: 260px;
  overflow-y: auto;
}

.crm-contact-result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  transition: background 120ms;
}

.crm-contact-result:hover,
.crm-contact-result:focus {
  background: var(--brand-50, #eff6ff);
  outline: none;
}

.crm-contact-result + .crm-contact-result {
  border-top: 1px solid var(--outline-100, #f0f1f3);
}

.crm-contact-result strong {
  flex: 0 0 auto;
}

.crm-contact-result .badge {
  margin-left: auto;
  font-size: 0.7rem;
}

/* --- Live captions overlay --- */

.caption-overlay {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  pointer-events: none;
  z-index: 20;
  display: flex;
  justify-content: center;
}

.caption-text {
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 1.15rem;
  line-height: 1.5;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-align: center;
  max-width: 100%;
  word-wrap: break-word;
  margin: 0;
  transition: opacity 0.2s ease;
}

.caption-text.is-interim {
  opacity: 0.7;
  font-style: italic;
}

.caption-text.is-self {
  background: rgba(0, 0, 0, 0.5);
  font-size: 0.95rem;
}

.caption-text:empty {
  display: none;
}

/* Caption controls */

.caption-lang-controls {
  display: flex;
  gap: 0.75rem;
  padding: 0.35rem 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.caption-lang-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-secondary, #64748b);
}

.caption-lang-select {
  font-size: 0.8rem;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  border: 1px solid var(--outline-200, #e2e4e9);
  background: var(--bg-surface, #fff);
  color: var(--text-primary, #111);
}

.customer-caption-lang {
  position: absolute;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}

.customer-caption-lang .caption-lang-label {
  color: rgba(255, 255, 255, 0.8);
}

.customer-caption-lang .caption-lang-select {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Active state for caption button */
.session-icon-btn[aria-pressed="true"].is-active,
.customer-icon-btn[aria-pressed="true"].is-active {
  color: var(--accent, #2563eb);
}

#toggleCaptionBtn.is-active {
  background: rgba(37, 99, 235, 0.15);
  color: var(--accent, #2563eb);
}

/* Address autocomplete dropdown */
.address-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 220px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.address-suggestion-item {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #333;
}

.address-suggestion-item:last-child {
  border-bottom: none;
}

.address-suggestion-item.active,
.address-suggestion-item:hover {
  background: #f5f7fa;
}

@media (max-width: 600px) {
  .address-suggestions {
    max-height: 180px;
  }
  .address-suggestion-item {
    padding: 12px;
    font-size: 0.9rem;
  }
}
