:root {
  --bg: #f3f6f4;
  --surface: #ffffff;
  --surface-soft: #f7f9f8;
  --surface-tint: #edf3f0;
  --ink: #17221f;
  --muted: #6d7975;
  --muted-2: #98a39f;
  --line: #e1e7e4;
  --green: #174c43;
  --green-2: #23675b;
  --green-soft: #e6f1ed;
  --lime: #c8f15a;
  --lime-soft: #f0facf;
  --coral: #e86e5a;
  --coral-soft: #fff0ed;
  --amber: #d59a28;
  --amber-soft: #fff7df;
  --shadow: 0 12px 40px rgba(20, 55, 47, 0.06);
  --radius: 18px;
  --font: Inter, "SF Pro Display", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  display: flex;
  width: 258px;
  flex-direction: column;
  color: #dfeae6;
  background: #123e37;
  background-image:
    radial-gradient(circle at 0 0, rgba(200, 241, 90, 0.08), transparent 28%),
    linear-gradient(180deg, #16483f 0%, #103b34 100%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--lime);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.09);
}

.brand-mark svg {
  width: 27px;
  height: 27px;
  stroke-width: 2;
}

.brand-copy {
  display: grid;
  gap: 3px;
}

.brand-copy strong {
  color: #fff;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.brand-copy span {
  color: #92aba5;
  font-size: 11px;
}

.main-nav {
  flex: 1;
  padding: 24px 14px;
}

.nav-caption {
  display: block;
  padding: 0 11px 10px;
  color: #78968f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-caption.second {
  margin-top: 28px;
}

.nav-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  margin: 3px 0;
  padding: 11px 12px;
  color: #abc0bb;
  border: 0;
  border-radius: 11px;
  background: transparent;
  text-align: left;
  transition: 0.2s ease;
}

.nav-item svg {
  width: 19px;
  height: 19px;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-item.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
  box-shadow: inset 3px 0 var(--lime);
}

.nav-item.muted {
  color: #8ca59f;
}

.nav-count {
  min-width: 22px;
  margin-left: auto;
  padding: 3px 6px;
  color: #203d36;
  border-radius: 10px;
  background: var(--lime);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.sidebar-bottom {
  padding: 0 14px 18px;
}

.secure-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px;
  color: #9db3ad;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.08);
}

.secure-note svg {
  width: 18px;
  color: var(--lime);
}

.secure-note div {
  display: grid;
  gap: 2px;
}

.secure-note strong {
  color: #dce9e5;
  font-size: 11px;
}

.secure-note span {
  font-size: 10px;
}

.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.profile > div:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.profile strong {
  overflow: hidden;
  color: #ecf4f1;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile span {
  color: #819b95;
  font-size: 9px;
}

.avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  color: #173c34;
  border-radius: 50%;
  background: var(--lime);
  font-size: 10px;
  font-weight: 800;
}

.avatar-dark {
  color: #ddecdf;
  background: #2b6157;
}

.more-button {
  margin-left: auto;
  padding: 5px;
  color: #78938d;
  border: 0;
  background: none;
  letter-spacing: 2px;
}

.main {
  min-height: 100vh;
  margin-left: 258px;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  height: 70px;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.topbar-left,
.topbar-actions,
.breadcrumbs,
.ai-status,
.heading-actions {
  display: flex;
  align-items: center;
}

.breadcrumbs {
  gap: 8px;
  color: var(--muted-2);
  font-size: 12px;
}

.breadcrumbs svg {
  width: 13px;
  height: 13px;
}

.breadcrumbs strong {
  color: var(--ink);
  font-weight: 600;
}

.topbar-actions {
  gap: 18px;
}

.ai-status {
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #55ad71;
  box-shadow: 0 0 0 4px #e8f5ec;
}

.demo-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  color: #fff;
  border: 0;
  border-radius: 10px;
  background: var(--green);
  box-shadow: 0 6px 18px rgba(23, 76, 67, 0.16);
  font-size: 12px;
  font-weight: 700;
  transition: 0.2s ease;
}

.demo-button:hover,
.primary-button:hover {
  background: var(--green-2);
  transform: translateY(-1px);
}

.demo-button svg,
.primary-button svg {
  width: 16px;
  height: 16px;
}

.view-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 34px 38px 52px;
}

.view {
  display: none;
  animation: viewIn 0.3s ease;
}

.view.active {
  display: block;
}

@keyframes viewIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.page-heading h1 {
  margin: 5px 0 7px;
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 650;
  letter-spacing: -0.04em;
}

.page-heading p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--green-2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 17px;
  height: 2px;
  background: var(--lime);
}

.date-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  color: #46534f;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 11px;
  font-weight: 650;
}

.date-button svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.date-button .chevron-down {
  width: 13px;
  margin-left: 5px;
}

.heading-actions {
  gap: 8px;
}

.ghost-button {
  display: grid;
  width: 39px;
  height: 39px;
  padding: 0;
  place-items: center;
}

.ghost-button:hover {
  border-color: #b9c8c3;
  background: var(--surface-tint);
}

.ghost-button svg {
  width: 17px;
}

.call-position {
  min-width: 58px;
  color: var(--muted-2);
  font-size: 11px;
  text-align: center;
}

.call-position strong {
  color: var(--ink);
}

.analysis-call-card {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(120px, 0.55fr)) auto;
  align-items: center;
  gap: 22px;
  margin-bottom: 18px;
  padding: 19px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.call-main-info {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 13px;
}

.call-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--green);
  border-radius: 12px;
  background: var(--green-soft);
}

.call-icon svg {
  width: 19px;
}

.call-main-info > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.call-main-info strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.call-main-info span,
.call-meta span {
  color: var(--muted);
  font-size: 10px;
}

.call-meta {
  display: grid;
  gap: 5px;
}

.call-meta strong {
  font-size: 12px;
  font-weight: 650;
}

.risk-chip,
.grade-chip,
.demo-chip,
.week-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  gap: 5px;
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.risk-high,
.grade-c {
  color: #b44d3e;
  background: var(--coral-soft);
}

.risk-medium,
.grade-b {
  color: #9d6b12;
  background: var(--amber-soft);
}

.risk-low,
.grade-a {
  color: #26734f;
  background: #e8f6ed;
}

.analysis-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 302px;
  align-items: start;
  gap: 18px;
}

.analysis-main,
.insight-card,
.dashboard-card,
.calls-list-card,
.calls-overview {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.analysis-main {
  min-width: 0;
  overflow: hidden;
}

.section-tabs {
  display: flex;
  gap: 26px;
  height: 60px;
  align-items: flex-end;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
}

.section-tab {
  position: relative;
  display: flex;
  height: 100%;
  align-items: center;
  gap: 8px;
  padding: 0;
  color: var(--muted);
  border: 0;
  background: none;
  font-size: 12px;
  font-weight: 650;
}

.section-tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  content: "";
  background: transparent;
}

.section-tab.active {
  color: var(--green);
}

.section-tab.active::after {
  background: var(--green);
}

.section-tab span {
  min-width: 21px;
  padding: 3px 5px;
  color: var(--muted);
  border-radius: 8px;
  background: var(--surface-tint);
  font-size: 9px;
  text-align: center;
}

.section-tab .attention-count {
  color: #b44d3e;
  background: var(--coral-soft);
}

.analysis-panel {
  display: none;
}

.analysis-panel.active {
  display: block;
}

.panel-toolbar,
.criteria-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfb;
}

.search-box {
  display: flex;
  width: 250px;
  height: 36px;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}

.search-box:focus-within {
  border-color: #8caaa3;
  box-shadow: 0 0 0 3px var(--green-soft);
}

.search-box svg {
  width: 15px;
  height: 15px;
  color: var(--muted-2);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 11px;
}

.search-box input::placeholder {
  color: #a2aca9;
}

.legend,
.grade-legend {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
}

.legend span,
.grade-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot,
.grade-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.legend-dot.client {
  background: #c8d0cd;
}

.legend-dot.operator {
  background: var(--green);
}

.transcript {
  min-height: 565px;
  padding: 14px 22px 26px;
}

.transcript-row {
  position: relative;
  display: grid;
  grid-template-columns: 57px 116px minmax(0, 1fr);
  gap: 13px;
  padding: 13px 10px;
  border-bottom: 1px solid #edf0ee;
  border-radius: 9px;
  transition: 0.2s ease;
}

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

.transcript-row:hover {
  background: var(--surface-soft);
}

.transcript-row.critical {
  margin: 6px 0;
  border: 1px solid #f4c9c2;
  background: #fff8f6;
}

.transcript-row.critical::before {
  position: absolute;
  top: 11px;
  bottom: 11px;
  left: -1px;
  width: 3px;
  border-radius: 3px;
  content: "";
  background: var(--coral);
}

.transcript-row.search-hidden {
  display: none;
}

.transcript-time {
  padding-top: 2px;
  color: var(--muted-2);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.speaker {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding-top: 1px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.speaker i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  margin-top: 3px;
  border-radius: 50%;
  background: #bdc8c4;
}

.speaker.operator {
  color: var(--green);
}

.speaker.operator i {
  background: var(--green);
}

.transcript-copy {
  color: #37433f;
  font-size: 12px;
  line-height: 1.6;
}

.transcript-copy mark {
  padding: 1px 2px;
  color: inherit;
  border-radius: 3px;
  background: #ffedae;
}

.critical-note {
  display: flex;
  align-items: center;
  gap: 5px;
  width: max-content;
  margin-top: 8px;
  padding: 4px 7px;
  color: #b44d3e;
  border-radius: 6px;
  background: var(--coral-soft);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.critical-note svg {
  width: 11px;
  height: 11px;
}

.criteria-toolbar > div:first-child {
  display: grid;
  gap: 4px;
}

.criteria-toolbar strong {
  font-size: 12px;
}

.criteria-toolbar > div:first-child span {
  color: var(--muted);
  font-size: 10px;
}

.criteria-list {
  min-height: 584px;
  padding: 9px 20px 22px;
}

.criterion {
  border-bottom: 1px solid #edf0ee;
}

.criterion:last-child {
  border-bottom: 0;
}

.criterion-head {
  display: grid;
  width: 100%;
  grid-template-columns: 31px 1fr auto 22px;
  align-items: center;
  gap: 12px;
  padding: 14px 5px;
  border: 0;
  background: none;
  text-align: left;
}

.criterion-number {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: var(--muted);
  border-radius: 8px;
  background: var(--surface-tint);
  font-size: 9px;
  font-weight: 800;
}

.criterion-title {
  display: grid;
  gap: 3px;
}

.criterion-title strong {
  font-size: 11px;
}

.criterion-title span {
  overflow: hidden;
  max-width: 570px;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.criterion-chevron {
  width: 15px;
  height: 15px;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.criterion.open .criterion-chevron {
  transform: rotate(180deg);
}

.criterion-detail {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin: -2px 5px 14px 48px;
  padding: 12px;
  border-radius: 10px;
  background: var(--surface-soft);
}

.criterion.open .criterion-detail {
  display: grid;
}

.criterion-detail div {
  display: grid;
  align-content: start;
  gap: 5px;
}

.criterion-detail span {
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.criterion-detail p {
  margin: 0;
  color: #46534f;
  font-size: 10px;
  line-height: 1.5;
}

.criterion-quote {
  padding-left: 9px;
  border-left: 2px solid #c9d4d0;
  font-style: italic;
}

.insights-sidebar {
  display: grid;
  gap: 14px;
}

.insight-card {
  padding: 20px;
}

.score-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 14px;
}

.score-ring {
  position: relative;
  display: grid;
  width: 94px;
  height: 94px;
  place-items: center;
}

.score-ring svg {
  width: 94px;
  height: 94px;
  transform: rotate(-90deg);
}

.score-ring circle {
  fill: none;
  stroke-width: 8;
}

.score-ring .ring-track {
  stroke: #eaf0ed;
}

.score-ring .ring-value {
  stroke: var(--green);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s ease;
}

.score-ring strong {
  position: absolute;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.score-copy {
  display: grid;
  gap: 5px;
}

.score-copy span {
  color: var(--muted);
  font-size: 9px;
}

.score-copy strong {
  font-size: 13px;
}

.score-copy small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.card-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-label svg {
  width: 15px;
  height: 15px;
}

.summary-card p,
.action-card p {
  margin: 13px 0 0;
  color: #3e4a46;
  font-size: 11px;
  line-height: 1.6;
}

.summary-divider {
  height: 1px;
  margin: 16px 0 13px;
  background: var(--line);
}

.mini-label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.lost-value {
  color: #b44d3e;
  font-size: 14px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  color: var(--green-2);
  border: 0;
  background: none;
  font-size: 10px;
  font-weight: 800;
}

.text-button svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.text-button:hover svg {
  transform: translateX(3px);
}

.action-card .text-button {
  margin-top: 14px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 16px;
}

.metric-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 13px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.metric-icon {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  color: var(--green);
  border-radius: 12px;
  background: var(--green-soft);
}

.metric-icon.coral {
  color: #bc5849;
  background: var(--coral-soft);
}

.metric-icon.lime {
  color: #587423;
  background: var(--lime-soft);
}

.metric-icon.amber {
  color: #a4741d;
  background: var(--amber-soft);
}

.metric-icon svg {
  width: 19px;
  height: 19px;
}

.metric-copy {
  display: grid;
  gap: 3px;
}

.metric-copy strong {
  font-size: 21px;
  letter-spacing: -0.03em;
}

.metric-copy span {
  color: var(--muted);
  font-size: 9px;
}

.metric-trend {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: -3px;
  color: var(--muted-2);
  font-size: 8px;
}

.metric-trend.positive {
  color: #44815f;
}

.metric-trend i {
  font-style: normal;
  font-weight: 800;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(310px, 0.8fr);
  gap: 16px;
  margin-bottom: 16px;
}

.dashboard-card {
  padding: 22px;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.card-header h2 {
  margin: 0 0 5px;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.card-header p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.sample-note {
  padding: 6px 9px;
  color: var(--muted);
  border-radius: 8px;
  background: var(--surface-tint);
  font-size: 8px;
  font-weight: 700;
}

.skills-chart {
  display: grid;
  gap: 12px;
  margin-top: 23px;
}

.skill-row {
  display: grid;
  grid-template-columns: 170px 1fr 38px;
  align-items: center;
  gap: 14px;
}

.skill-row span {
  overflow: hidden;
  color: #43504c;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skill-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 8px;
  background: #edf1ef;
}

.skill-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transform-origin: left;
  animation: growBar 0.8s ease both;
}

.skill-row.weak .skill-bar i {
  background: var(--coral);
}

.skill-row.medium .skill-bar i {
  background: var(--amber);
}

.skill-row strong {
  font-size: 10px;
  text-align: right;
}

@keyframes growBar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.focus-card {
  color: #eaf3f0;
  border-color: #174c43;
  background:
    radial-gradient(circle at 100% 0, rgba(200, 241, 90, 0.13), transparent 45%),
    var(--green);
}

.focus-card .priority-label {
  display: block;
  margin-bottom: 9px;
  color: var(--lime);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.focus-card h2 {
  max-width: 310px;
  color: #fff;
  font-size: 17px;
  line-height: 1.35;
}

.priority-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--lime);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.09);
}

.priority-icon svg {
  width: 18px;
}

.focus-copy {
  margin: 19px 0 15px;
  color: #bcd0ca;
  font-size: 10px;
  line-height: 1.65;
}

.coach-box {
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.08);
}

.coach-box span {
  color: var(--lime);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.coach-box p {
  margin: 6px 0 0;
  color: #d5e3df;
  font-size: 9px;
  line-height: 1.55;
}

.focus-card .primary-button {
  width: 100%;
  margin-top: 15px;
  color: #193f37;
  background: var(--lime);
  box-shadow: none;
}

.recent-card {
  padding-bottom: 10px;
}

.recent-table {
  margin: 15px -8px 0;
}

.recent-row,
.recent-table-head {
  display: grid;
  grid-template-columns: 1.5fr 0.75fr 0.65fr 0.55fr 0.55fr 25px;
  align-items: center;
  gap: 15px;
  padding: 11px 10px;
}

.recent-table-head {
  color: var(--muted-2);
  border-bottom: 1px solid var(--line);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.recent-row {
  border-bottom: 1px solid #eef1ef;
  font-size: 10px;
  transition: background 0.2s ease;
}

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

.recent-row:hover {
  background: var(--surface-soft);
}

.recent-service {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.recent-service .call-icon {
  width: 31px;
  height: 31px;
  border-radius: 9px;
}

.recent-service .call-icon svg {
  width: 14px;
}

.recent-service div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.recent-service strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-service span,
.recent-cell-muted {
  color: var(--muted);
  font-size: 8px;
}

.row-open {
  display: grid;
  width: 25px;
  height: 25px;
  padding: 0;
  place-items: center;
  color: var(--muted);
  border: 0;
  border-radius: 7px;
  background: transparent;
}

.row-open:hover {
  color: var(--green);
  background: var(--green-soft);
}

.row-open svg {
  width: 14px;
}

.calls-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 16px;
  overflow: hidden;
}

.overview-stat {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 20px;
  border-right: 1px solid var(--line);
}

.overview-stat:last-child {
  border-right: 0;
}

.overview-stat strong {
  display: block;
  margin-bottom: 3px;
  font-size: 17px;
}

.overview-stat span {
  color: var(--muted);
  font-size: 9px;
}

.overview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px var(--green-soft);
}

.overview-dot.coral {
  background: var(--coral);
  box-shadow: 0 0 0 6px var(--coral-soft);
}

.overview-dot.amber {
  background: var(--amber);
  box-shadow: 0 0 0 6px var(--amber-soft);
}

.calls-list-card {
  overflow: hidden;
}

.calls-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfb;
}

.calls-list-head > span {
  color: var(--muted);
  font-size: 9px;
}

.call-list-row {
  display: grid;
  grid-template-columns: minmax(230px, 1.45fr) 0.7fr 0.65fr 0.5fr 0.7fr 34px;
  align-items: center;
  gap: 18px;
  padding: 17px 20px;
  border-bottom: 1px solid #edf0ee;
  transition: background 0.2s ease;
}

.call-list-row:last-child {
  border-bottom: 0;
}

.call-list-row:hover {
  background: var(--surface-soft);
}

.call-list-row.search-hidden {
  display: none;
}

.list-cell {
  display: grid;
  gap: 4px;
}

.list-cell span {
  color: var(--muted);
  font-size: 8px;
}

.list-cell strong {
  font-size: 10px;
}

.list-score {
  font-size: 16px !important;
}

.team-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 16px;
  margin-bottom: 16px;
}

.operator-card {
  display: grid;
  align-content: space-between;
  gap: 28px;
}

.operator-identity {
  display: flex;
  align-items: center;
  gap: 15px;
}

.avatar-large {
  width: 62px;
  height: 62px;
  font-size: 16px;
}

.operator-identity h2 {
  margin: 0 0 4px;
  font-size: 17px;
}

.operator-identity p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 10px;
}

.experience {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 8px;
}

.experience i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #62af7a;
}

.operator-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.operator-stats div {
  display: grid;
  gap: 3px;
  padding: 11px;
  border-radius: 10px;
  background: var(--surface-soft);
}

.operator-stats strong {
  font-size: 17px;
}

.operator-stats span {
  color: var(--muted);
  font-size: 8px;
}

.week-badge,
.demo-chip {
  color: var(--green);
  background: var(--green-soft);
}

.development-steps {
  display: grid;
  gap: 0;
  margin-top: 16px;
}

.development-step {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid #edf0ee;
}

.development-step:last-child {
  border-bottom: 0;
}

.step-number {
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
}

.development-step div {
  display: grid;
  gap: 4px;
}

.development-step strong {
  font-size: 10px;
}

.development-step p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.step-time {
  color: var(--muted-2);
  font-size: 8px;
}

.competency-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.competency-item {
  display: grid;
  gap: 11px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.competency-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.competency-top span {
  font-size: 9px;
  line-height: 1.4;
}

.competency-top strong {
  font-size: 11px;
}

.competency-line {
  height: 5px;
  overflow: hidden;
  border-radius: 5px;
  background: #edf1ef;
}

.competency-line i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.competency-item.weak .competency-line i {
  background: var(--coral);
}

.competency-item.medium .competency-line i {
  background: var(--amber);
}

.demo-guide {
  position: fixed;
  z-index: 60;
  right: 24px;
  bottom: 24px;
  display: none;
  width: 322px;
  padding: 18px;
  color: #edf6f3;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 15px;
  background:
    radial-gradient(circle at 100% 0, rgba(200, 241, 90, 0.12), transparent 40%),
    #123e37;
  box-shadow: 0 22px 55px rgba(15, 51, 44, 0.3);
  animation: guideIn 0.3s ease;
}

.demo-guide.visible {
  display: block;
}

@keyframes guideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.guide-top,
.guide-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.guide-top span {
  color: var(--lime);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-top .icon-button {
  color: #8da8a1;
}

.demo-guide > strong {
  display: block;
  margin-top: 12px;
  font-size: 14px;
}

.demo-guide > p {
  margin: 8px 0 16px;
  color: #afc4be;
  font-size: 10px;
  line-height: 1.55;
}

.guide-dots {
  display: flex;
  gap: 5px;
}

.guide-dots i {
  width: 5px;
  height: 5px;
  border-radius: 5px;
  background: #54756d;
}

.guide-dots i.active {
  width: 15px;
  background: var(--lime);
}

.guide-footer button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  color: #183d35;
  border: 0;
  border-radius: 8px;
  background: var(--lime);
  font-size: 9px;
  font-weight: 800;
}

.guide-footer button svg {
  width: 12px;
  height: 12px;
}

.toast {
  position: fixed;
  z-index: 80;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 360px;
  padding: 12px 15px;
  color: #e9f2ef;
  border-radius: 11px;
  background: #1c4039;
  box-shadow: 0 12px 35px rgba(15, 51, 44, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: 0.25s ease;
  font-size: 10px;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.toast svg {
  width: 16px;
  height: 16px;
  color: var(--lime);
}

.icon-button {
  display: grid;
  padding: 4px;
  place-items: center;
  border: 0;
  background: transparent;
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.mobile-menu,
.mobile-close,
.mobile-backdrop {
  display: none;
}

@media (max-width: 1180px) {
  .analysis-call-card {
    grid-template-columns: minmax(240px, 1.3fr) repeat(2, minmax(110px, 0.55fr)) auto;
  }

  .analysis-call-card .call-meta:nth-child(4) {
    display: none;
  }

  .analysis-layout {
    grid-template-columns: minmax(0, 1fr) 275px;
  }

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

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

  .competency-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .mobile-backdrop {
    position: fixed;
    z-index: 25;
    inset: 0;
    background: rgba(10, 30, 26, 0.38);
  }

  .mobile-backdrop.visible {
    display: block;
  }

  .mobile-close {
    display: grid;
    margin-left: auto;
    color: #98afa9;
  }

  .mobile-menu {
    display: grid;
    margin-right: 12px;
  }

  .main {
    margin-left: 0;
  }

  .analysis-layout {
    grid-template-columns: 1fr;
  }

  .insights-sidebar {
    grid-template-columns: repeat(3, 1fr);
  }

  .score-card {
    grid-template-columns: 82px 1fr;
  }

  .score-ring,
  .score-ring svg {
    width: 76px;
    height: 76px;
  }

  .score-ring strong {
    font-size: 20px;
  }

  .recent-row,
  .recent-table-head {
    grid-template-columns: 1.4fr 0.7fr 0.55fr 0.55fr 25px;
  }

  .recent-row > :nth-child(4),
  .recent-table-head > :nth-child(4) {
    display: none;
  }

  .call-list-row {
    grid-template-columns: minmax(200px, 1.3fr) 0.65fr 0.5fr 0.6fr 34px;
  }

  .call-list-row > :nth-child(3) {
    display: none;
  }

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

@media (max-width: 680px) {
  .topbar {
    height: 62px;
    padding: 0 16px;
  }

  .breadcrumbs > span,
  .breadcrumbs svg,
  .ai-status {
    display: none;
  }

  .demo-button span {
    display: none;
  }

  .demo-button {
    width: 38px;
    height: 38px;
    padding: 0;
  }

  .view-container {
    padding: 25px 15px 40px;
  }

  .page-heading {
    align-items: flex-start;
    margin-bottom: 22px;
  }

  .page-heading h1 {
    font-size: 27px;
  }

  .page-heading p {
    font-size: 11px;
  }

  .analysis-heading {
    display: grid;
  }

  .heading-actions {
    justify-self: end;
  }

  .date-button {
    display: none;
  }

  .analysis-call-card {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 15px;
  }

  .analysis-call-card .call-meta {
    display: none;
  }

  .analysis-call-card .risk-chip {
    font-size: 8px;
  }

  .insights-sidebar {
    grid-template-columns: 1fr;
  }

  .panel-toolbar,
  .criteria-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-box {
    width: 100%;
  }

  .transcript {
    padding: 8px 12px 20px;
  }

  .transcript-row {
    grid-template-columns: 42px 1fr;
    gap: 8px;
    padding: 12px 8px;
  }

  .transcript-copy {
    grid-column: 2;
    font-size: 11px;
  }

  .criterion-title span {
    max-width: 170px;
  }

  .criterion-detail {
    grid-template-columns: 1fr;
    margin-left: 5px;
  }

  .metric-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .metric-card {
    grid-template-columns: 35px 1fr;
    gap: 9px;
    padding: 13px;
  }

  .metric-icon {
    width: 35px;
    height: 35px;
  }

  .metric-copy strong {
    font-size: 18px;
  }

  .dashboard-card {
    padding: 17px;
  }

  .skill-row {
    grid-template-columns: 115px 1fr 30px;
    gap: 8px;
  }

  .recent-row,
  .recent-table-head {
    grid-template-columns: 1fr 0.55fr 25px;
  }

  .recent-row > :nth-child(2),
  .recent-row > :nth-child(4),
  .recent-row > :nth-child(5),
  .recent-table-head > :nth-child(2),
  .recent-table-head > :nth-child(4),
  .recent-table-head > :nth-child(5) {
    display: none;
  }

  .calls-overview {
    grid-template-columns: 1fr;
  }

  .overview-stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .calls-list-head {
    align-items: stretch;
    flex-direction: column;
  }

  .call-list-row {
    grid-template-columns: 1fr auto 30px;
    gap: 10px;
    padding: 14px;
  }

  .call-list-row > :nth-child(2),
  .call-list-row > :nth-child(3),
  .call-list-row > :nth-child(5) {
    display: none;
  }

  .operator-stats {
    grid-template-columns: 1fr;
  }

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

  .demo-guide {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
  }
}

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