﻿@font-face {
  font-family: Manrope;
  src: url("/app/assets/manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  font-family:
    Manrope,
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  --bg: #f5f6fa;
  --surface: #fff;
  --surface-soft: #f8f9fc;
  --ink: #262a40;
  --muted: #73788b;
  --line: #e7e8f0;
  --green: #7059db;
  --accent: #7059db;
  --accent-soft: #eeeafb;
  --lime: #d6efac;
  --success: #26745d;
  --success-bg: #edf7f1;
  --warning: #926323;
  --warning-bg: #fff6e7;
  --danger: #b44656;
  --danger-bg: #fff3f4;
  --shadow: 0 5px 20px #20233e04;
  --radius: 18px;
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #141723;
  --surface: #1d2131;
  --surface-soft: #24293b;
  --ink: #eceef8;
  --muted: #a5abc1;
  --line: #33384c;
  --green: #b1a0ff;
  --accent: #b1a0ff;
  --accent-soft: #302948;
  --success: #9bd4b8;
  --success-bg: #1c3831;
  --warning: #edc78e;
  --warning-bg: #3c3124;
  --danger: #f2a1ac;
  --danger-bg: #3d2733;
  --shadow: none;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.48;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #9c8be7;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
a {
  color: var(--accent);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  color: var(--ink);
}
h1 {
  font-size: clamp(1.85rem, 2.5vw, 2.7rem);
  letter-spacing: -0.055em;
  line-height: 1.2;
  margin-bottom: 12px;
  font-weight: 750;
}
h2 {
  font-size: 1.25rem;
  letter-spacing: -0.035em;
  line-height: 1.35;
}
h3 {
  font-size: 1rem;
  letter-spacing: -0.015em;
}
p {
  line-height: 1.7;
}
.muted,
.hint {
  color: var(--muted);
}
.hint {
  font-size: 0.77rem;
  line-height: 1.75;
}
.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  font-weight: 750;
  color: var(--muted);
  margin-bottom: 16px;
}
.icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
  vertical-align: middle;
}
.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.brand-word {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.085em;
  line-height: 1;
}
.brand-dot {
  color: #d6efac;
}
.brand img {
  border-radius: 12px;
}
.primary,
.secondary,
.danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 10px;
  padding: 11px 16px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.76rem;
  min-height: 43px;
  line-height: 1.4;
  transition:
    background 0.18s,
    box-shadow 0.18s,
    transform 0.18s;
  white-space: normal;
}
.primary {
  color: #fff;
  background: #7059db;
  box-shadow: 0 3px 6px #7059db1a;
}
.primary:hover {
  background: #5c45c5;
  box-shadow: 0 4px 12px #7059db30;
  transform: translateY(-1px);
}
.secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
.secondary:hover {
  border-color: #b8a9ec;
  background: var(--accent-soft);
}
.danger {
  color: var(--danger);
  background: var(--danger-bg);
  border-color: transparent;
}
.danger:hover {
  border-color: var(--danger);
}
.text-action {
  background: none;
  border: 0;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 750;
  padding: 7px 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.text-action:hover {
  text-decoration: underline;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  width: 40px;
  height: 40px;
  color: var(--muted);
}
.icon-button:hover {
  color: var(--accent);
  background: var(--accent-soft);
}
label {
  display: grid;
  gap: 8px;
  font-size: 0.77rem;
  font-weight: 650;
  margin-bottom: 20px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  padding: 12px 14px;
  min-width: 0;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
  font-size: 0.85rem;
  min-height: 44px;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.85;
}
input:hover,
select:hover,
textarea:hover {
  border-color: #bab5cb;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #8b76df13;
}
textarea {
  resize: vertical;
  line-height: 1.65;
}
input[type="checkbox"] {
  min-height: 0;
  width: 18px;
  height: 18px;
  accent-color: #7059db;
}
.check-label {
  display: flex;
  align-items: center;
}
.password-wrap {
  position: relative;
}
.password-wrap input {
  padding-right: 48px;
}
.password-toggle {
  position: absolute;
  right: 5px;
  top: 4px;
  width: 36px;
  height: 36px;
  border: 0;
  background: none;
  color: var(--muted);
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.password-toggle:hover {
  color: var(--accent);
  background: var(--accent-soft);
}
/* Welcome canvas */
.auth-layout {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 49% 51%;
  padding: 16px;
  background: var(--bg);
}
.welcome {
  background: #191d32;
  color: #fff;
  padding: 40px 48px 28px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - 32px);
}
.welcome:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 0 10%, #40356165, transparent 55%),
    radial-gradient(ellipse at 100% 90%, #3d40684d, transparent 60%);
  pointer-events: none;
}
.welcome > * {
  position: relative;
}
.welcome-copy {
  margin-top: clamp(45px, 7vh, 80px);
  z-index: 1;
}
.welcome h1 {
  font-size: clamp(2.7rem, 4.2vw, 4.4rem);
  letter-spacing: -0.055em;
  color: white;
  line-height: 1.12;
  font-weight: 650;
  margin-bottom: 23px;
}
.welcome h1 em {
  font-style: normal;
  color: #c3b4ff;
}
.welcome .eyebrow {
  color: #b9b0d7;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tiny-spark {
  color: #d6efac;
  font-size: 17px;
}
.welcome-copy > p:last-child {
  font-size: 0.91rem;
  color: #b5b7cd;
  line-height: 1.8;
}
.voice-scene {
  position: relative;
  flex: 1;
  min-height: 280px;
  width: 100%;
  max-width: 580px;
  margin: -36px auto -5px;
  display: grid;
  place-items: center;
}
.voice-art {
  width: 120%;
  max-width: 640px;
  display: block;
}
.float-label {
  position: absolute;
  background: #fff;
  box-shadow: 0 16px 48px #090a2026;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border-radius: 14px;
  color: #25283e;
  max-width: 95%;
  transform: rotate(-3deg);
}
.float-label strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 750;
}
.float-label small {
  display: block;
  font-size: 0.7rem;
  color: #7f8195;
  margin-top: 4px;
}
.float-one {
  left: -8px;
  top: 23%;
}
.float-two {
  right: -8px;
  bottom: 14%;
  transform: rotate(3deg);
}
.float-icon {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 11px;
  background: #efebfc;
  color: #7b65db;
  flex: none;
}
.float-icon.mint {
  background: #e9f5df;
  color: #6c8a47;
}
.mini-wave {
  display: flex;
  gap: 3px;
  align-items: center;
  margin-left: 15px;
  height: 28px;
}
.mini-wave i {
  height: 12px;
  width: 3px;
  border-radius: 3px;
  background: #a08be5;
}
.mini-wave i:nth-child(2n) {
  height: 24px;
}
.mini-wave i:nth-child(3) {
  height: 18px;
}
.welcome-foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  font-size: 0.7rem;
  color: #abaec4;
  padding-top: 12px;
  margin-top: auto;
}
.edition {
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  white-space: nowrap;
}
.auth-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 60px 18px;
  position: relative;
}
.auth-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  color: var(--muted);
  font-size: 0.7rem;
  gap: 15px;
  margin-bottom: 45px;
}
.secure-label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.secure-label .icon {
  width: 13px;
  height: 13px;
}
.auth-card {
  width: 100%;
  max-width: 380px;
  margin: auto 0;
}
.auth-card h2 {
  font-size: 2.05rem;
  line-height: 1.2;
  letter-spacing: -0.055em;
  margin-bottom: 14px;
  max-width: 360px;
}
.auth-card .eyebrow {
  color: var(--accent);
  font-size: 0.7rem;
}
.auth-card > .muted {
  font-size: 0.8rem;
  margin-bottom: 35px;
}
.auth-card > p.hint {
  font-size: 0.7rem;
  text-align: center;
  line-height: 1.8;
  margin: 4px 0 0;
}
.auth-card > button {
  width: 100%;
  margin: 3px 0 20px;
  min-height: 49px;
}
.auth-card > button .icon {
  order: 2;
  margin-left: auto;
}
.auth-card > button {
  justify-content: space-between;
}
.auth-card > a {
  font-size: 0.7rem;
  display: block;
  margin-top: 19px;
  text-align: center;
  text-underline-offset: 4px;
}
.auth-card > .setup-link {
  font-size: 0.7rem;
  color: var(--muted);
  text-decoration: none;
  margin-top: 30px;
}
.setup-link:hover {
  text-decoration: underline;
}
.auth-footer {
  font-size: 0.7rem;
  color: var(--muted);
  margin: 50px 0 0;
  text-align: center;
}
.auth-footer span {
  margin: 0 8px;
}
/* Application frame */
.workspace {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: 100svh;
  background: var(--bg);
}
.sidebar {
  background: #191d32;
  color: #fff;
  padding: 31px 20px 20px;
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: thin;
}
.sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.sidebar .brand {
  padding-left: 7px;
}
.sidebar .brand img {
  width: 32px;
  height: 32px;
}
.sidebar .brand-word {
  font-size: 1.72rem;
}
.organization-box {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 11px;
  background: #ffffff06;
  border: 1px solid #ffffff10;
  border-radius: 12px;
  margin: 33px 0 32px;
}
.organization-symbol {
  width: 30px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #b6aadf;
  flex: none;
}
.org-caption {
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  color: #8f94b1;
}
.org {
  font-size: 0.7rem;
  font-weight: 650;
  color: #e1e0ef;
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}
.sidebar > .eyebrow {
  color: #8288a7;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  margin: 0 12px 13px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  color: #aeb3cf;
  border: 1px solid transparent;
  background: transparent;
  padding: 13px 12px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 550;
  margin-bottom: 6px;
  transition:
    color 0.16s,
    background 0.16s;
}
.nav .icon {
  width: 18px;
  height: 18px;
  opacity: 0.85;
}
.nav:hover {
  background: #ffffff08;
  color: #fff;
}
.nav.active {
  background: #7460dc;
  color: #fff;
  box-shadow: 0 5px 16px #0d10272e;
  border-color: #a38aee33;
}
.nav.active .icon {
  opacity: 1;
}
.nav.active:after {
  content: "";
  margin-left: auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d6efac;
  flex: none;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 35px;
  font-size: 0.7rem;
  color: #a4a9c3;
  overflow-wrap: anywhere;
}
.sidebar-note {
  background: linear-gradient(135deg, #ffffff07, #8472d910);
  border: 1px solid #ffffff0f;
  padding: 17px 13px;
  border-radius: 13px;
  margin-bottom: 25px;
}
.note-icon {
  width: 29px;
  height: 29px;
  background: #a78bfa18;
  color: #c4b5f5;
  border-radius: 8px;
  display: grid;
  place-items: center;
  margin-bottom: 13px;
}
.sidebar-note strong {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: #dfdcf0;
}
.sidebar-note p {
  font-size: 0.7rem;
  line-height: 1.8;
  margin: 7px 0 0;
  color: #9299b7;
}
.account-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 5px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #eeebfa;
  color: #7762c6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  flex: none;
}
.account-identity .avatar {
  background: #37334d;
  color: #d6cafa;
}
.account-caption {
  display: block;
  font-size: 0.7rem;
  color: #838aa7;
  margin-bottom: 3px;
}
#user-email {
  display: block;
  font-size: 0.7rem;
  overflow-wrap: anywhere;
}
.sidebar-bottom .nav {
  margin: 15px 0 0;
  font-size: 0.7rem;
  padding: 9px 10px;
}
.menu-toggle {
  display: none;
}
.content {
  padding: 0 clamp(22px, 3vw, 50px);
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  min-height: 80px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 0.7rem;
}
.breadcrumb-root {
  color: var(--muted);
  white-space: nowrap;
}
.breadcrumb-root span {
  padding-left: 13px;
  color: #b8b9c6;
}
.role-label {
  font-weight: 650;
  color: var(--ink);
  margin-right: auto;
}
.sync-label {
  color: var(--muted);
  font-size: 0.7rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sync-label:before {
  content: "";
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: #83b89a;
}
.sync-label.stale {
  color: var(--warning);
}
.sync-label.stale:before {
  background: #d6a355;
}
.topbar .secondary {
  font-size: 0.7rem;
  min-height: 35px;
  padding: 7px 11px;
}
.topbar .secondary .icon {
  width: 14px;
  height: 14px;
}
.theme-toggle {
  width: 35px;
  height: 35px;
}
.theme-toggle .icon {
  width: 16px;
  height: 16px;
}
.page-heading {
  padding: 34px 0 22px;
  display: block;
}
.page-heading .eyebrow {
  margin-bottom: 10px;
  font-size: 0.7rem;
}
.page-heading > p:last-child,
.page-heading > div > p:last-child {
  color: var(--muted);
  font-size: 0.79rem;
  margin-bottom: 0;
}
#view-overview .page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.heading-dot {
  color: var(--accent);
}
.date-label {
  border: 1px solid var(--line);
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 0.7rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.date-label .icon {
  width: 15px;
  height: 15px;
}
.view {
  animation: arrive 0.28s ease-out;
}
.workspace-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding: 30px 0 22px;
  font-size: 0.7rem;
  color: var(--muted);
}
.workspace-footer strong {
  font-size: 0.72rem;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-left: 4px;
}
/* Overview */
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(285px, 100%), 1fr));
  gap: 20px;
}
.cards-grid .card {
  margin: 0;
}
.hero-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #ece8fa;
  border: 1px solid #e0d8f4;
  border-radius: var(--radius);
  padding: 30px 32px;
  min-height: 224px;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}
.hero-copy {
  z-index: 1;
  max-width: 65%;
}
.hero-copy .eyebrow {
  color: #8170a9;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.hero-copy h2 {
  font-size: clamp(1.4rem, 2.1vw, 2rem);
  letter-spacing: -0.05em;
  color: #393052;
  margin: 0 0 10px;
  line-height: 1.25;
}
.hero-copy > p:not(.eyebrow) {
  color: #7d7297;
  font-size: 0.74rem;
  max-width: 365px;
  margin: 0 0 19px;
}
.hero-art {
  position: absolute;
  width: 365px;
  height: 280px;
  object-fit: contain;
  right: -13px;
  top: 50%;
  transform: translateY(-50%);
  z-index: -1;
}
.hero-copy .primary {
  font-size: 0.7rem;
  min-height: 38px;
  padding: 9px 13px;
}
.hero-copy .primary .icon {
  width: 15px;
  height: 15px;
  order: 2;
}
.hero-tag {
  position: absolute;
  right: 32px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: #8e7bb5;
}
.hero-tag:before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #8e7bb5;
}
.banner {
  background: var(--success-bg);
  border: 1px solid color-mix(in srgb, var(--success) 17%, transparent);
  border-radius: 12px;
  padding: 15px 18px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.banner-copy {
  display: flex;
  align-items: center;
  gap: 12px;
}
.banner-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--success);
  border: 1px solid color-mix(in srgb, var(--success) 18%, transparent);
  border-radius: 10px;
}
.banner p {
  margin: 4px 0 0;
  color: var(--success);
  font-size: 0.7rem;
  line-height: 1.65;
}
.banner strong {
  font-size: 0.73rem;
  color: var(--success);
  font-weight: 750;
}
.banner .secondary {
  font-size: 0.7rem;
  padding: 8px 11px;
  min-height: 34px;
  flex: none;
  background: transparent;
  border-color: color-mix(in srgb, var(--success) 23%, transparent);
  color: var(--success);
}
.banner.warning {
  background: var(--warning-bg);
  border-color: color-mix(in srgb, var(--warning) 18%, transparent);
}
.banner.warning strong,
.banner.warning p,
.banner.warning .banner-icon,
.banner.warning .secondary {
  color: var(--warning);
}
.banner.warning .banner-icon,
.banner.warning .secondary {
  border-color: color-mix(in srgb, var(--warning) 20%, transparent);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin: 0 0 24px;
}
.metrics .card {
  margin: 0;
  padding: 20px;
  position: relative;
  overflow: hidden;
  min-width: 0;
}
.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.metric-title {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
}
.metric-icon {
  height: 31px;
  width: 31px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex: none;
}
.metric-icon .icon {
  width: 16px;
  height: 16px;
}
.metrics .card:nth-child(2) .metric-icon {
  background: var(--success-bg);
  color: var(--success);
}
.metrics .card:nth-child(3) .metric-icon {
  background: var(--warning-bg);
  color: var(--warning);
}
.metric-value {
  font-size: 2.05rem;
  letter-spacing: -0.06em;
  display: block;
  margin: 13px 0 3px;
  line-height: 1.2;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.metrics .hint {
  font-size: 0.7rem;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.17fr) minmax(0, 1fr);
  gap: 20px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 22px;
}
.section-heading h2 {
  font-size: 0.94rem;
  margin: 0 0 5px;
}
.section-heading p {
  font-size: 0.7rem;
  color: var(--muted);
  margin: 0;
}
.section-tag {
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 7px;
  white-space: nowrap;
}
.steps {
  counter-reset: step;
  display: grid;
  gap: 18px;
}
.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.step:before {
  counter-increment: step;
  content: "0" counter(step);
  border-radius: 10px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  min-width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 700;
}
.step .text-action {
  padding: 0;
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 0.71rem;
  line-height: 1.5;
  text-align: left;
}
.step p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.7;
}
.step .icon {
  width: 14px;
  height: 14px;
  color: var(--accent);
}
.activity-summary {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 20px;
}
.activity-total strong {
  font-size: 2rem;
  letter-spacing: -0.05em;
  display: block;
  font-variant-numeric: tabular-nums;
}
.activity-total span {
  font-size: 0.7rem;
  color: var(--muted);
}
.status-track {
  display: flex;
  height: 10px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-soft);
  gap: 3px;
  margin: 20px 0;
}
.status-track span {
  min-width: 0;
  background: var(--accent);
  border-radius: 3px;
}
.status-track .complete {
  background: #a7c78b;
}
.status-track .waiting {
  background: #a991e9;
}
.status-track .active {
  background: #6baabd;
}
.status-track .other {
  background: #e7bd87;
}
.status-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px 20px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.7rem;
  color: var(--muted);
}
.legend-item strong {
  margin-left: auto;
  color: var(--ink);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.legend-dot {
  height: 6px;
  width: 6px;
  background: #a7c78b;
  border-radius: 50%;
  flex: none;
}
.legend-dot.waiting {
  background: #a991e9;
}
.legend-dot.active {
  background: #6baabd;
}
.legend-dot.other {
  background: #e7bd87;
}
.usage-summary {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 17px;
}
.usage-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 9px;
}
.usage-label strong {
  color: var(--ink);
}
progress {
  width: 100%;
  height: 5px;
  appearance: none;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface-soft);
  display: block;
}
progress::-webkit-progress-bar {
  background: var(--surface-soft);
  border-radius: 6px;
}
progress::-webkit-progress-value {
  background: #8c78df;
  border-radius: 6px;
}
progress::-moz-progress-bar {
  background: #8c78df;
}
.recent-card {
  padding: 22px 0 0;
  overflow: hidden;
}
.recent-card > .section-heading {
  padding: 0 24px;
  margin-bottom: 18px;
}
.recent-card .text-action {
  font-size: 0.7rem;
}
.recent-card .text-action .icon {
  width: 14px;
  height: 14px;
}
.recent-card table th {
  background: var(--surface-soft);
}
.recent-card td {
  font-size: 0.7rem;
  padding-block: 15px;
}
.recent-card td:last-child {
  text-align: right;
}
.recent-card .empty {
  padding: 22px;
}
.empty-inline {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.7;
  padding: 12px 0 0;
}
.owner-onboard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.owner-onboard p {
  color: var(--muted);
  font-size: 0.75rem;
  max-width: 530px;
}
.owner-onboard h2 {
  font-size: 1.2rem;
}
.owner-onboard .primary {
  flex: none;
}
/* Lists and editors */
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 20px;
  flex-wrap: wrap;
}
.toolbar form {
  display: flex;
  gap: 8px;
  margin-right: auto;
}
.toolbar input {
  max-width: 250px;
}
.search-box {
  position: relative;
}
.search-box > .icon {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.search-box input {
  padding-left: 40px;
  font-size: 0.73rem;
}
.end {
  justify-content: flex-end;
}
.table-wrap {
  padding: 0;
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 0.74rem;
}
th {
  font-size: 0.7rem;
  letter-spacing: 0.035em;
  color: var(--muted);
  font-weight: 650;
  background: var(--surface-soft);
  white-space: nowrap;
}
td,
th {
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
tbody tr {
  transition: background 0.15s;
}
tbody tr:hover {
  background: var(--surface-soft);
}
tbody tr:last-child td {
  border-bottom: 0;
}
.contact-cell {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 155px;
}
.contact-cell .avatar {
  width: 33px;
  height: 33px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.7rem;
}
.contact-cell strong {
  display: block;
  font-size: 0.7rem;
  font-weight: 750;
}
.cell-detail {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 5px;
}
.formation-cell {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 7px;
  font-size: 0.7rem;
  max-width: 160px;
  line-height: 1.5;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 7px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.7rem;
  white-space: nowrap;
  font-weight: 650;
}
.badge:before {
  content: "";
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
  flex: none;
}
.badge.warning {
  background: var(--warning-bg);
  color: var(--warning);
}
.badge.success {
  background: var(--success-bg);
  color: var(--success);
}
.badge.live {
  background: var(--accent-soft);
  color: var(--accent);
}
.actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.actions button {
  font-size: 0.7rem;
  padding: 7px 9px;
  min-height: 33px;
  border-radius: 8px;
}
.actions .icon {
  width: 13px;
  height: 13px;
}
.actions .danger {
  background: transparent;
  border-color: transparent;
  padding-inline: 6px;
}
.actions .danger:hover {
  background: var(--danger-bg);
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-align: center;
  padding: 45px 25px;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.7;
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 17px;
  margin-bottom: 7px;
}
.empty-icon .icon {
  width: 24px;
  height: 24px;
}
.empty strong {
  color: var(--ink);
  font-size: 0.87rem;
}
.heading-count {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 15%, transparent);
  border-radius: 10px;
  padding: 5px 10px;
  margin-left: 12px;
  font-size: 0.82rem;
  letter-spacing: 0;
  line-height: 1.4;
}
.pagination {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--muted);
  margin: 20px 0;
}
.pagination .secondary {
  font-size: 0.7rem;
  min-height: 36px;
  padding: 8px 13px;
}
.inline-form {
  display: flex;
  gap: 18px;
  align-items: end;
  flex-wrap: wrap;
}
.inline-form label {
  flex: 1;
  min-width: 180px;
  margin: 0;
}
.narrow {
  max-width: 560px;
}
.narrow h2 {
  font-size: 1.06rem;
  margin-bottom: 25px;
}
.training-card {
  display: flex;
  flex-direction: column;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.training-card:hover {
  border-color: #bdb0e7;
  transform: translateY(-2px);
}
.training-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 21px;
}
.training-symbol {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.training-card h3 {
  font-size: 1rem;
  line-height: 1.5;
}
.training-card .training-meta {
  font-size: 0.7rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 17px;
  margin-bottom: 17px;
}
.training-preview {
  display: flex;
  gap: 9px;
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 12px;
}
.training-preview span {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 750;
  padding-top: 2px;
}
.training-card > .secondary {
  margin-top: auto;
  width: 100%;
  font-size: 0.7rem;
}
.training-card .question-preview {
  padding-bottom: 15px;
}
.client-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.client-controls label {
  font-size: 0.7rem;
}
.activation-link {
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
}
dialog {
  width: min(760px, calc(100% - 32px));
  max-height: 90svh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px;
  box-shadow: 0 30px 110px #14162935;
  color: var(--ink);
  background: var(--surface);
}
dialog::backdrop {
  background: #12152688;
  backdrop-filter: blur(6px);
}
dialog[open] {
  animation: dialog-in 0.2s ease-out;
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 23px;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}
.dialog-heading h2 {
  margin: 0;
  font-size: 1.32rem;
}
.dialog-heading .icon-button {
  background: var(--surface-soft);
  border: 0;
  width: 34px;
  height: 34px;
}
.dialog-heading .icon {
  width: 17px;
  height: 17px;
}
#dialog-body > p {
  font-size: 0.84rem;
}
#dialog-body > p.hint {
  font-size: 0.75rem;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.question-row {
  padding: 20px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 15px;
}
.question-row label {
  margin-bottom: 13px;
}
.question-row .toolbar {
  margin: 0;
}
.question-row select {
  max-width: 220px;
}
.question-number {
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.call-history {
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 16px 0;
  background: var(--surface);
  overflow: hidden;
}
.call-history summary {
  cursor: pointer;
  padding: 18px;
  font-weight: 650;
  line-height: 1.8;
  font-size: 0.73rem;
  background: var(--surface-soft);
}
.call-history summary::marker {
  color: var(--accent);
}
.call-history summary .badge {
  margin-left: 12px;
}
.call-history[open] summary {
  border-bottom: 1px solid var(--line);
}
.call-history-content {
  padding: 22px;
}
.call-history-content h3 {
  margin-top: 25px;
  font-size: 0.8rem;
}
.transcript {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 15px 17px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 12px;
  line-height: 1.7;
  font-size: 0.76rem;
}
.transcript small {
  display: block;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 750;
  margin-bottom: 7px;
}
.transcript.assistant {
  background: var(--accent-soft);
  border-color: transparent;
  margin-right: 30px;
}
.transcript.prospect {
  background: var(--surface-soft);
  margin-left: 30px;
}
.transcript.prospect small {
  color: var(--success);
}
#notice {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 20;
  max-width: min(520px, calc(100% - 50px));
  background: #24243d;
  color: white;
  padding: 16px 21px;
  border-radius: 13px;
  box-shadow: 0 8px 35px #191a3426;
  border: 1px solid #ffffff20;
  font-size: 0.78rem;
  line-height: 1.65;
  animation: arrive 0.2s ease-out;
}
#notice.error {
  background: #893c4d;
}
html[data-theme="dark"] .hero-card {
  background: #2b2542;
  border-color: #42365e;
}
html[data-theme="dark"] .hero-copy h2 {
  color: #e0d7fc;
}
html[data-theme="dark"] .hero-copy > p:not(.eyebrow) {
  color: #b6a7d5;
}
html[data-theme="dark"] .hero-copy .eyebrow {
  color: #bbaaed;
}
html[data-theme="dark"] .hero-art {
  opacity: 0.85;
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (min-width: 1600px) {
  .content {
    padding-inline: 55px;
  }
  .hero-card {
    min-height: 250px;
  }
  .hero-art {
    width: 430px;
    height: 330px;
    right: 35px;
  }
  .metrics .card {
    padding: 25px;
  }
  .metric-value {
    font-size: 2.6rem;
  }
  .dashboard-grid > .card {
    padding: 28px;
  }
  .welcome {
    padding: 50px 65px;
  }
  .welcome-copy {
    margin-top: 90px;
  }
  .voice-scene {
    max-height: 500px;
  }
  .auth-card {
    max-width: 410px;
  }
  .auth-card h2 {
    font-size: 2.4rem;
    max-width: 410px;
  }
}
@media (max-width: 1150px) {
  .workspace {
    grid-template-columns: 214px minmax(0, 1fr);
  }
  .sidebar {
    padding-inline: 14px;
  }
  .content {
    padding-inline: 25px;
  }
  .nav {
    font-size: 0.7rem;
    padding-inline: 10px;
    gap: 9px;
  }
  .hero-card {
    padding: 25px;
  }
  .hero-art {
    right: -40px;
    width: 310px;
  }
  .hero-copy {
    max-width: 68%;
  }
  .metrics {
    gap: 12px;
  }
  .metrics .card {
    padding: 16px;
  }
  .metric-title {
    font-size: 0.7rem;
  }
  .metric-icon {
    width: 27px;
    height: 27px;
  }
  .metric-value {
    font-size: 1.9rem;
  }
  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .card {
    padding: 20px;
  }
  .status-legend {
    gap: 12px;
  }
  .welcome {
    padding: 35px;
  }
  .auth-content {
    padding: 25px 40px;
  }
  .welcome-copy {
    margin-top: 55px;
  }
  .welcome h1 {
    font-size: 3rem;
  }
  .float-label {
    padding: 12px;
    gap: 8px;
  }
  .float-one {
    left: -10px;
  }
  .float-two {
    right: -10px;
  }
  .mini-wave {
    display: none;
  }
  .edition {
    display: none;
  }
  .sync-label {
    display: none;
  }
  .topbar {
    gap: 10px;
  }
  .date-label {
    font-size: 0.7rem;
  }
}
@media (max-width: 900px) {
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .hero-copy h2 {
    font-size: 1.4rem;
  }
  .hero-copy {
    max-width: 70%;
  }
  .hero-art {
    right: -75px;
    opacity: 0.7;
  }
  .hero-tag {
    display: none;
  }
  .date-label {
    display: none;
  }
  .welcome h1 {
    font-size: 2.65rem;
  }
  .welcome {
    padding: 30px;
  }
  .auth-content {
    padding: 25px 30px;
  }
  .welcome-copy > p:last-child {
    font-size: 0.8rem;
  }
  .float-label strong {
    font-size: 0.7rem;
  }
  .float-label small {
    font-size: 0.7rem;
  }
  .float-icon {
    height: 30px;
    width: 30px;
  }
  .float-two {
    bottom: 15%;
  }
  .voice-scene {
    min-height: 240px;
  }
  .auth-card h2 {
    font-size: 1.75rem;
  }
  .banner {
    flex-wrap: wrap;
  }
  .banner > .secondary {
    margin-left: 44px;
  }
  .owner-onboard {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 720px) {
  .auth-layout {
    grid-template-columns: 1fr;
    padding: 0;
  }
  .welcome {
    min-height: unset;
    padding: 24px;
    border-radius: 0;
    overflow: hidden;
  }
  .welcome .brand img {
    width: 30px;
    height: 30px;
  }
  .welcome .brand-word {
    font-size: 1.7rem;
  }
  .welcome-copy {
    margin: 33px 0 3px;
  }
  .welcome-copy .eyebrow {
    font-size: 0.7rem;
  }
  .welcome h1 {
    font-size: 2.1rem;
    line-height: 1.15;
    margin-bottom: 0;
  }
  .welcome-copy > p:last-child {
    display: none;
  }
  .voice-scene {
    position: absolute;
    width: 230px;
    right: -45px;
    bottom: -75px;
    margin: 0;
    min-height: 230px;
    opacity: 0.75;
    pointer-events: none;
  }
  .voice-art {
    width: 100%;
  }
  .float-label,
  .welcome-foot {
    display: none;
  }
  .auth-content {
    padding: 24px;
    gap: 0;
  }
  .auth-topline {
    margin: 0 0 34px;
    font-size: 0.7rem;
  }
  .auth-card {
    max-width: 440px;
  }
  .auth-card h2 {
    font-size: 1.8rem;
    max-width: 300px;
  }
  .auth-card > .muted {
    margin-bottom: 28px;
  }
  .auth-card > p.hint {
    font-size: 0.7rem;
  }
  .auth-footer {
    margin-top: 35px;
  }
  .workspace {
    display: block;
  }
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 18px 20px;
    overflow: visible;
    z-index: 2;
  }
  .sidebar .brand {
    padding: 0;
  }
  .sidebar .brand img {
    width: 30px;
    height: 30px;
  }
  .sidebar .brand-word {
    font-size: 1.65rem;
  }
  .menu-toggle {
    display: flex;
    background: #ffffff09;
    border-color: #ffffff1a;
    color: #d6d2ef;
    width: 35px;
    height: 35px;
  }
  .sidebar .organization-box,
  .sidebar > .eyebrow,
  .sidebar-note {
    display: none;
  }
  .sidebar nav,
  .sidebar-bottom {
    display: none;
  }
  .sidebar.mobile-open nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-top: 20px;
  }
  .sidebar.mobile-open .sidebar-bottom {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 15px;
    border-top: 1px solid #ffffff12;
  }
  .sidebar-bottom .nav {
    width: auto;
    margin: 0;
    white-space: nowrap;
  }
  .nav {
    margin: 0;
    padding: 13px 10px;
    font-size: 0.7rem;
  }
  .nav.active:after {
    display: none;
  }
  .content {
    padding: 0 20px;
  }
  .topbar {
    min-height: 63px;
    gap: 9px;
  }
  .breadcrumb-root {
    font-size: 0.7rem;
  }
  .breadcrumb-root span {
    padding-left: 5px;
  }
  .role-label {
    font-size: 0.7rem;
  }
  .topbar #refresh {
    font-size: 0;
    padding: 8px;
    width: 33px;
    min-height: 33px;
  }
  .topbar #refresh .icon {
    height: 15px;
    width: 15px;
  }
  .theme-toggle {
    height: 33px;
    width: 33px;
  }
  .page-heading {
    padding: 27px 0 22px;
  }
  h1 {
    font-size: 1.85rem;
  }
  .page-heading .eyebrow {
    font-size: 0.7rem;
  }
  .page-heading > p:last-child,
  .page-heading > div > p:last-child {
    font-size: 0.71rem;
    line-height: 1.8;
  }
  #view-overview .page-heading {
    gap: 8px;
  }
  .hero-card {
    padding: 23px;
    min-height: 235px;
    margin-bottom: 16px;
  }
  .hero-copy {
    max-width: 77%;
  }
  .hero-copy h2 {
    font-size: 1.6rem;
    max-width: 235px;
  }
  .hero-copy > p:not(.eyebrow) {
    font-size: 0.7rem;
    max-width: 225px;
  }
  .hero-copy .eyebrow {
    font-size: 0.7rem;
  }
  .hero-art {
    width: 260px;
    right: -100px;
    top: 44%;
    opacity: 0.5;
  }
  .hero-copy .primary {
    font-size: 0.7rem;
  }
  .banner {
    padding: 14px;
    gap: 10px;
    margin-bottom: 18px;
    border-radius: 12px;
  }
  .banner strong {
    font-size: 0.7rem;
  }
  .banner p {
    font-size: 0.7rem;
  }
  .banner-copy {
    align-items: flex-start;
    gap: 10px;
  }
  .banner > .secondary {
    margin-left: 42px;
    font-size: 0.7rem;
    padding: 7px 10px;
    min-height: 32px;
  }
  .banner-icon {
    width: 30px;
    height: 30px;
  }
  .metrics {
    gap: 11px;
    margin-bottom: 18px;
  }
  .metrics .card {
    padding: 16px;
    border-radius: 14px;
  }
  .metric-value {
    font-size: 2rem;
    margin: 13px 0 4px;
  }
  .metric-title {
    font-size: 0.7rem;
  }
  .metrics .hint {
    font-size: 0.7rem;
    display: block;
  }
  .metric-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
  }
  .metric-icon .icon {
    height: 14px;
    width: 14px;
  }
  .dashboard-grid {
    gap: 0;
  }
  .card {
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 18px;
  }
  .section-heading {
    margin-bottom: 20px;
  }
  .section-heading h2 {
    font-size: 0.89rem;
  }
  .section-heading p {
    font-size: 0.7rem;
  }
  .section-tag {
    font-size: 0.7rem;
  }
  .recent-card {
    padding: 20px 0 0;
  }
  .recent-card > .section-heading {
    padding: 0 18px;
    align-items: center;
  }
  .recent-card > .section-heading .text-action {
    font-size: 0.7rem;
  }
  .recent-card .table-wrap {
    border-radius: 0;
  }
  .toolbar {
    gap: 9px;
    margin-bottom: 18px;
  }
  .toolbar form {
    width: 100%;
    margin-bottom: 4px;
  }
  .toolbar input {
    max-width: none;
    flex: 1;
    min-width: 0;
  }
  .toolbar .primary,
  .toolbar > .secondary {
    flex: 1;
    font-size: 0.7rem;
  }
  .toolbar .icon {
    width: 16px;
    height: 16px;
  }
  .toolbar.end > .primary {
    flex: none;
  }
  .table-wrap {
    padding: 0;
  }
  .table-wrap table {
    min-width: 630px;
  }
  td,
  th {
    padding: 15px;
  }
  .recent-card table {
    min-width: 480px;
  }
  .recent-card td {
    font-size: 0.7rem;
  }
  .actions {
    min-width: 210px;
  }
  .heading-count {
    font-size: 0.7rem;
    padding: 4px 8px;
    vertical-align: middle;
  }
  .pagination {
    gap: 10px;
    font-size: 0.7rem;
  }
  .pagination .secondary {
    font-size: 0.7rem;
    padding: 8px 10px;
  }
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .inline-form {
    display: grid;
  }
  .inline-form label {
    min-width: 0;
  }
  .client-controls {
    grid-template-columns: 1fr 1fr;
  }
  .workspace-footer {
    font-size: 0.7rem;
    gap: 14px;
    align-items: flex-end;
    padding-top: 25px;
  }
  .workspace-footer > span:first-child {
    max-width: 155px;
  }
  .workspace-footer > span:last-child {
    white-space: nowrap;
  }
  .workspace-footer strong {
    font-size: 0.7rem;
  }
  dialog {
    padding: 22px;
    width: calc(100% - 24px);
    max-height: 92svh;
    border-radius: 18px;
  }
  .dialog-heading h2 {
    font-size: 1.14rem;
  }
  .call-history summary {
    padding: 14px;
    font-size: 0.7rem;
  }
  .call-history summary .badge {
    margin-left: 5px;
  }
  .call-history-content {
    padding: 16px;
  }
  .transcript {
    font-size: 0.7rem;
  }
  .transcript.assistant {
    margin-right: 12px;
  }
  .transcript.prospect {
    margin-left: 12px;
  }
  .question-row {
    padding: 15px;
  }
  .auth-card input {
    font-size: 16px;
  }
  .form-grid input,
  dialog input,
  dialog select,
  dialog textarea {
    font-size: 16px;
  }
  #notice {
    bottom: 15px;
    right: 15px;
    max-width: calc(100% - 30px);
    font-size: 0.7rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Contain charts and let small screens use contact cards. */
.status-track {
  width: 100%;
}
.dashboard-grid {
  grid-template-columns: minmax(0, 1.17fr) minmax(0, 1fr);
}
.card {
  min-width: 0;
}
.hero-copy h2 {
  max-width: 540px;
}
@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 720px) {
  #view-leads .table-wrap table {
    min-width: 0;
  }
  #view-leads thead {
    display: none;
  }
  #leads-table {
    display: grid;
  }
  #leads-table tr {
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 18px;
    gap: 14px;
    border-bottom: 1px solid var(--line);
  }
  #leads-table tr:last-child {
    border-bottom: 0;
  }
  #leads-table td {
    border: 0;
    padding: 0;
  }
  #leads-table td:first-child {
    grid-column: 1/-1;
  }
  #leads-table td:nth-child(2) {
    color: var(--muted);
    font-size: 0.7rem;
  }
  #leads-table td:nth-child(3) {
    justify-self: end;
  }
  #leads-table td:last-child {
    grid-column: 1/-1;
    padding-top: 13px;
    border-top: 1px solid var(--line);
  }
  #leads-table .actions {
    min-width: 0;
    gap: 8px;
  }
  #leads-table .actions button {
    min-height: 38px;
    font-size: 0.7rem;
  }
  #leads-table .contact-cell strong {
    font-size: 0.8rem;
  }
  #leads-table .cell-detail {
    font-size: 0.7rem;
  }
  #leads-table .contact-cell .avatar {
    height: 38px;
    width: 38px;
    font-size: 0.72rem;
  }
  .recent-card table {
    min-width: 0;
  }
  .recent-card th:nth-child(2),
  .recent-card td:nth-child(2) {
    display: none;
  }
  .recent-card td,
  .recent-card th {
    padding: 12px 10px;
  }
  .recent-card .contact-cell {
    min-width: 0;
    gap: 7px;
  }
  .recent-card .contact-cell strong {
    font-size: 0.7rem;
  }
  .recent-card .contact-cell .avatar {
    width: 26px;
    height: 26px;
    font-size: 0.7rem;
  }
  .recent-card .cell-detail {
    font-size: 0.7rem;
  }
  .recent-card .text-action {
    font-size: 0.7rem;
  }
  .recent-card .badge {
    font-size: 0.7rem;
    padding: 5px 6px;
  }
  .recent-card > .section-heading {
    gap: 10px;
  }
  .recent-card .section-heading .text-action {
    max-width: 100px;
    flex: none;
    text-align: left;
  }
  .recent-card .section-heading h2 {
    font-size: 0.82rem;
  }
}
/* Comfortable reading at every density. */
.nav {
  font-size: 0.8rem;
}
.sidebar-bottom .nav {
  font-size: 0.74rem;
}
.org {
  font-size: 0.75rem;
}
.metric-title {
  font-size: 0.76rem;
}
.hero-copy > p:not(.eyebrow) {
  font-size: 0.83rem;
}
.step p {
  font-size: 0.76rem;
}
.step .text-action {
  font-size: 0.79rem;
}
.section-heading p {
  font-size: 0.73rem;
}
.legend-item {
  font-size: 0.74rem;
}
.usage-label {
  font-size: 0.72rem;
}
.contact-cell strong {
  font-size: 0.78rem;
}
.cell-detail {
  font-size: 0.71rem;
}
.banner p {
  font-size: 0.73rem;
}
.banner strong {
  font-size: 0.8rem;
}
.workspace-footer {
  font-size: 0.65rem;
}
.recent-card td {
  font-size: 0.76rem;
}
@media (max-width: 1150px) {
  .nav {
    font-size: 0.73rem;
    gap: 8px;
  }
  .hero-copy > p:not(.eyebrow) {
    font-size: 0.76rem;
  }
}
@media (max-width: 720px) {
  .nav {
    font-size: 0.74rem;
  }
  .metric-title {
    font-size: 0.72rem;
  }
  .hero-copy > p:not(.eyebrow) {
    font-size: 0.76rem;
  }
  .banner p {
    font-size: 0.7rem;
  }
  .recent-card .contact-cell .avatar {
    display: none;
  }
  .recent-card .contact-cell strong {
    font-size: 0.69rem;
  }
  .recent-card .cell-detail {
    font-size: 0.63rem;
  }
  .recent-card .text-action {
    font-size: 0.67rem;
  }
  .recent-card .badge {
    font-size: 0.62rem;
  }
  .recent-card td,
  .recent-card th {
    padding: 12px 8px;
  }
  .recent-card > .section-heading .text-action {
    max-width: 94px;
    font-size: 0.67rem;
  }
  .section-tag {
    font-size: 0.6rem;
  }
  .workspace-footer {
    font-size: 0.6rem;
  }
}
