:root {
  color-scheme: light;
  --evergreen-950: #092b24;
  --evergreen-900: #103b32;
  --evergreen-800: #174b40;
  --evergreen-700: #226456;
  --evergreen-100: #dcebe6;
  --evergreen-50: #eef6f3;
  --orange-600: #bd542c;
  --orange-500: #d66535;
  --orange-100: #f7ddd1;
  --orange-50: #fff3ed;
  --steel-700: #47677d;
  --steel-100: #dce8ee;
  --steel-50: #eff5f7;
  --ink: #18342e;
  --muted: #647871;
  --muted-2: #83938d;
  --paper: #fbfaf6;
  --bone: #f2eee4;
  --bone-2: #e7e1d4;
  --white: #ffffff;
  --danger: #b04436;
  --danger-soft: #f9e5df;
  --success: #2e745d;
  --success-soft: #e2f1eb;
  --warning: #9a6721;
  --warning-soft: #fcf0d5;
  --shadow-sm: 0 1px 2px rgba(14, 45, 38, 0.05), 0 5px 18px rgba(14, 45, 38, 0.04);
  --shadow-md: 0 18px 48px rgba(14, 45, 38, 0.12);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --sidebar-width: 252px;
  --banner-height: 34px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(214, 101, 53, 0.32);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.loading-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  background: linear-gradient(145deg, var(--paper), var(--bone));
  color: var(--muted);
}

.loading-mark,
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--orange-500);
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1;
  box-shadow: 0 8px 22px rgba(214, 101, 53, 0.28);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px 18px 18px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 255, 255, 0.08), transparent 34%),
    var(--evergreen-950);
  color: rgba(255, 255, 255, 0.82);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 7px 23px;
}

.brand-mark {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 22px;
}

.brand-name {
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  letter-spacing: 0.01em;
}

.brand-subtitle {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.client-switcher {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  text-align: left;
  cursor: default;
}

.client-avatar,
.advisor-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.11);
  color: white;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.client-switcher-copy,
.advisor-card > span:nth-child(2) {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.client-switcher-copy strong,
.advisor-card strong {
  overflow: hidden;
  color: white;
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-switcher-copy small,
.advisor-card small {
  color: rgba(255, 255, 255, 0.49);
  font-size: 10px;
}

.chevron {
  color: rgba(255, 255, 255, 0.42);
}

.primary-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 22px;
}

.nav-section-label {
  padding: 0 11px;
  margin: 4px 0 7px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-button {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 11px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: 150ms ease;
}

.nav-button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: white;
}

.nav-button.active {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.nav-button.active::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--orange-500);
}

.nav-icon {
  width: 18px;
  display: inline-grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
}

.nav-button.active .nav-icon {
  color: #f38b58;
}

.nav-count {
  min-width: 22px;
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 99px;
  background: rgba(214, 101, 53, 0.2);
  color: #f6a078;
  font-size: 9px;
  text-align: center;
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 22px;
}

.demo-progress-card {
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.eyebrow {
  color: var(--orange-600);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.demo-progress-card .eyebrow {
  color: rgba(255, 255, 255, 0.4);
}

.progress-heading {
  display: flex;
  justify-content: space-between;
  margin: 7px 0 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 10px;
  font-weight: 700;
}

.progress-heading span:last-child {
  color: #f29a70;
}

.progress-track {
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.09);
}

.progress-track span {
  display: block;
  width: 60%;
  height: 100%;
  border-radius: inherit;
  background: var(--orange-500);
  transition: width 250ms ease;
}

.ghost-button,
.secondary-button,
.primary-button,
.soft-button,
.icon-button,
.text-button {
  border: 0;
  cursor: pointer;
}

.reset-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  background: transparent;
  color: rgba(255, 255, 255, 0.46);
  font-size: 10px;
  font-weight: 700;
  text-align: left;
}

.reset-button:hover {
  color: white;
}

.advisor-card {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
  padding: 13px 8px 3px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.advisor-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--steel-700);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #76c7a9;
  box-shadow: 0 0 0 3px rgba(118, 199, 169, 0.12);
}

.workspace-shell {
  min-width: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(251, 250, 246, 0.94), rgba(251, 250, 246, 0.94)),
    radial-gradient(circle at 80% -20%, rgba(214, 101, 53, 0.1), transparent 35%);
}

.prototype-banner {
  height: var(--banner-height);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  background: var(--orange-50);
  color: #7f4b33;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.banner-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange-500);
}

.banner-mode {
  margin-left: auto;
  padding: 3px 8px;
  border: 1px solid rgba(189, 84, 44, 0.18);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.5);
  font-size: 9px;
  text-transform: uppercase;
}

.topbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 34px;
  border-bottom: 1px solid var(--bone-2);
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(14px);
}

.breadcrumb {
  color: var(--muted-2);
  font-size: 10px;
}

.breadcrumb span {
  padding: 0 5px;
  color: var(--bone-2);
}

.breadcrumb strong {
  color: var(--muted);
  font-weight: 700;
}

.page-kicker {
  margin-top: 5px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.next-meeting {
  display: flex;
  align-items: center;
  gap: 9px;
}

.next-meeting > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.next-meeting small {
  color: var(--muted-2);
  font-size: 9px;
  text-transform: uppercase;
}

.next-meeting strong {
  color: var(--ink);
  font-size: 11px;
}

.calendar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--steel-700);
  box-shadow: 0 0 0 4px var(--steel-100);
}

.primary-button,
.secondary-button,
.soft-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  font-weight: 800;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.primary-button {
  padding: 11px 16px;
  background: var(--evergreen-900);
  color: white;
  box-shadow: 0 6px 18px rgba(16, 59, 50, 0.16);
  font-size: 11px;
}

.primary-button:hover {
  background: var(--evergreen-800);
  transform: translateY(-1px);
}

.primary-button.compact {
  padding: 9px 13px;
  font-size: 10px;
}

.primary-button.orange {
  background: var(--orange-500);
  box-shadow: 0 6px 18px rgba(214, 101, 53, 0.18);
}

.primary-button:disabled,
.secondary-button:disabled,
.soft-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.secondary-button {
  padding: 10px 14px;
  border: 1px solid var(--bone-2);
  background: white;
  color: var(--ink);
  font-size: 10px;
}

.secondary-button:hover {
  border-color: #c7d4cf;
  box-shadow: var(--shadow-sm);
}

.soft-button {
  padding: 8px 11px;
  background: var(--evergreen-50);
  color: var(--evergreen-800);
  font-size: 9px;
}

.soft-button.warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.soft-button.danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.text-button {
  padding: 4px 0;
  background: transparent;
  color: var(--steel-700);
  font-size: 10px;
  font-weight: 800;
}

.text-button:hover {
  color: var(--evergreen-800);
  text-decoration: underline;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bone);
  color: var(--ink);
  font-size: 20px;
}

.main-content {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 30px 34px 54px;
}

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

.page-heading-row h1 {
  margin: 5px 0 7px;
  color: var(--evergreen-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3vw, 39px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

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

.heading-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-top: 8px;
}

.pill,
.status-pill,
.visibility-pill,
.source-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  padding: 5px 8px;
  border-radius: 99px;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}

.pill.neutral,
.status-pill.neutral {
  background: var(--bone);
  color: var(--muted);
}

.pill.success,
.status-pill.accepted {
  background: var(--success-soft);
  color: var(--success);
}

.pill.warning,
.status-pill.review {
  background: var(--warning-soft);
  color: var(--warning);
}

.pill.danger,
.status-pill.dismissed {
  background: var(--danger-soft);
  color: var(--danger);
}

.pill.info {
  background: var(--steel-50);
  color: var(--steel-700);
}

.visibility-pill {
  background: #efe8f5;
  color: #6d4e84;
}

.source-pill {
  padding: 4px 7px;
  border: 1px solid var(--steel-100);
  background: white;
  color: var(--steel-700);
  cursor: pointer;
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

.grid.asymmetric {
  grid-template-columns: minmax(0, 1.55fr) minmax(270px, 0.85fr);
}

.card {
  min-width: 0;
  padding: 19px;
  border: 1px solid var(--bone-2);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.card.flush {
  padding: 0;
  overflow: hidden;
}

.card.tint-green {
  border-color: #d5e5df;
  background: linear-gradient(145deg, #f5faf8, #ffffff);
}

.card.tint-orange {
  border-color: #f1d7ca;
  background: linear-gradient(145deg, #fff8f3, #ffffff);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 15px;
}

.card-header h2,
.card-header h3,
.section-heading {
  margin: 0;
  color: var(--evergreen-950);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.card-header h2,
.section-heading {
  font-size: 20px;
}

.card-header h3 {
  font-size: 16px;
}

.card-header p,
.card-copy {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.section-block {
  margin-top: 22px;
}

.section-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 11px;
}

.section-label-row small {
  color: var(--muted-2);
  font-size: 9px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.75fr);
  gap: 24px;
  padding: 25px 26px;
  border: 1px solid #d7e5df;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 0%, rgba(214, 101, 53, 0.15), transparent 37%),
    linear-gradient(135deg, #f1f7f4, #ffffff 70%);
  box-shadow: var(--shadow-sm);
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -90px;
  width: 210px;
  height: 210px;
  border: 38px solid rgba(23, 75, 64, 0.04);
  border-radius: 50%;
}

.hero-card h2 {
  max-width: 710px;
  margin: 7px 0 10px;
  color: var(--evergreen-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 2.4vw, 32px);
  font-weight: 400;
  line-height: 1.18;
}

.hero-card p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.hero-next-step {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 30px rgba(16, 59, 50, 0.07);
}

.hero-next-step strong {
  display: block;
  margin: 6px 0 5px;
  color: var(--ink);
  font-size: 13px;
}

.hero-next-step p {
  margin-bottom: 12px;
  font-size: 10px;
  line-height: 1.4;
}

.metric-card {
  padding: 17px;
}

.metric-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.metric-label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.metric-value {
  margin-top: 7px;
  color: var(--evergreen-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
}

.metric-target {
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 9px;
}

.metric-progress {
  height: 5px;
  margin-top: 13px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--bone);
}

.metric-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--evergreen-700);
}

.attention-list,
.timeline-list,
.continuity-list,
.question-list,
.driver-list,
.report-list {
  display: flex;
  flex-direction: column;
}

.attention-item,
.timeline-item,
.continuity-item,
.driver-row {
  display: grid;
  gap: 11px;
  padding: 12px 0;
  border-top: 1px solid var(--bone);
}

.attention-item:first-child,
.timeline-item:first-child,
.continuity-item:first-child,
.driver-row:first-child {
  padding-top: 1px;
  border-top: 0;
}

.attention-item {
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: start;
}

.attention-dot {
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--orange-500);
  box-shadow: 0 0 0 4px var(--orange-100);
}

.attention-dot.insight {
  background: var(--steel-700);
  box-shadow: 0 0 0 4px var(--steel-100);
}

.attention-item strong,
.timeline-item strong,
.continuity-item strong {
  color: var(--ink);
  font-size: 11px;
}

.attention-item p,
.timeline-item p,
.continuity-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.timeline-item {
  grid-template-columns: 58px minmax(0, 1fr);
}

.timeline-date {
  color: var(--orange-600);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.action-table,
.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.action-table th,
.comparison-table th {
  padding: 9px 10px;
  border-bottom: 1px solid var(--bone-2);
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.action-table td,
.comparison-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--bone);
  color: var(--muted);
  font-size: 10px;
  vertical-align: middle;
}

.action-table tr:last-child td,
.comparison-table tr:last-child td {
  border-bottom: 0;
}

.action-table td:first-child,
.comparison-table td:first-child {
  color: var(--ink);
  font-weight: 700;
}

.brief-summary {
  padding: 21px;
  border-left: 4px solid var(--orange-500);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: linear-gradient(90deg, var(--orange-50), rgba(255, 255, 255, 0.8));
}

.brief-summary p {
  margin: 8px 0 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.55;
}

.continuity-item {
  grid-template-columns: 104px minmax(0, 1fr);
}

.continuity-label {
  color: var(--orange-600);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.agenda-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.agenda-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--bone-2);
  border-radius: 11px;
  background: white;
}

.drag-handle {
  color: var(--bone-2);
  font-size: 15px;
  letter-spacing: -2px;
}

.agenda-input,
.candidate-edit-input,
.field-input,
.field-select,
.transcript-editor {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
}

.agenda-input {
  padding: 6px 7px;
  font-size: 10px;
  font-weight: 700;
}

.agenda-input:hover,
.agenda-input:focus {
  border-color: var(--bone-2);
  background: var(--paper);
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.checkbox-label input {
  accent-color: var(--evergreen-700);
}

.question-list {
  gap: 9px;
}

.question-item {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  gap: 10px;
  color: var(--ink);
  font-size: 10px;
  line-height: 1.45;
}

.question-number {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 8px;
  background: var(--steel-50);
  color: var(--steel-700);
  font-size: 9px;
  font-weight: 800;
}

.analysis-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(480px, 1.18fr);
  gap: 16px;
  align-items: start;
}

.transcript-card {
  position: sticky;
  top: 20px;
}

.authorization-box {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 12px 0;
  padding: 11px;
  border: 1px solid var(--bone-2);
  border-radius: 10px;
  background: var(--bone);
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.authorization-box input {
  margin-top: 2px;
  accent-color: var(--evergreen-700);
}

.transcript-editor {
  min-height: 360px;
  resize: vertical;
  padding: 13px;
  border-color: var(--bone-2);
  background: #fffefa;
  color: #435c55;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  line-height: 1.65;
}

.transcript-editor:focus {
  border-color: var(--steel-700);
}

.analysis-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.analysis-actions small {
  color: var(--muted-2);
  font-size: 8px;
  line-height: 1.3;
}

.analysis-ready-banner {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 12px;
  padding: 13px;
  border: 1px solid #d7e7e0;
  border-radius: 12px;
  background: var(--evergreen-50);
}

.ready-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: var(--success-soft);
  color: var(--success);
  font-weight: 900;
}

.analysis-ready-banner strong {
  display: block;
  color: var(--ink);
  font-size: 11px;
}

.analysis-ready-banner p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.candidate-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.candidate-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--bone-2);
  border-radius: 12px;
  background: white;
  transition: border-color 120ms ease, opacity 120ms ease;
}

.candidate-card.accepted {
  border-left: 3px solid var(--success);
}

.candidate-card.review {
  border-left: 3px solid var(--warning);
}

.candidate-card.dismissed {
  border-left: 3px solid var(--muted-2);
  opacity: 0.62;
}

.candidate-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.candidate-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 11px;
}

.candidate-value {
  margin-top: 4px;
  color: var(--evergreen-800);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
}

.candidate-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
}

.candidate-qualifier {
  color: var(--muted);
  font-size: 8px;
}

.candidate-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.candidate-action {
  display: grid;
  place-items: center;
  min-width: 31px;
  height: 29px;
  padding: 0 7px;
  border: 1px solid var(--bone-2);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.candidate-action:hover,
.candidate-action.selected {
  border-color: #c5d8d1;
  background: var(--evergreen-50);
  color: var(--evergreen-800);
}

.candidate-action.dismiss:hover,
.candidate-action.dismiss.selected {
  border-color: #efccc2;
  background: var(--danger-soft);
  color: var(--danger);
}

.candidate-edit-row {
  display: flex;
  gap: 7px;
  margin-top: 8px;
}

.candidate-edit-input {
  padding: 8px 9px;
  border-color: var(--bone-2);
  background: var(--paper);
  font-size: 10px;
}

.recommendation-card {
  position: relative;
  overflow: hidden;
  margin-top: 14px;
  padding: 17px;
  border: 1px solid #ddd3e7;
  border-radius: 14px;
  background: linear-gradient(145deg, #fbf8fd, #ffffff);
}

.recommendation-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #76528d;
}

.recommendation-card h3 {
  margin: 8px 0 5px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 400;
}

.recommendation-section {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid #eee8f3;
}

.recommendation-section:first-of-type {
  margin-top: 12px;
}

.recommendation-section strong {
  color: #6d4e84;
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.scenario-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.input-panel {
  position: sticky;
  top: 20px;
}

.field-group {
  margin-top: 15px;
}

.field-group:first-of-type {
  margin-top: 0;
}

.field-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.field-label-row label {
  color: var(--ink);
  font-size: 9px;
  font-weight: 800;
}

.field-label-row span {
  color: var(--muted);
  font-size: 9px;
}

.field-input,
.field-select {
  padding: 9px 10px;
  border-color: var(--bone-2);
  background: var(--paper);
  font-size: 10px;
}

.field-help {
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 8px;
  line-height: 1.35;
}

.range-input {
  width: 100%;
  accent-color: var(--evergreen-700);
}

.stress-box {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid #efd8a9;
  border-radius: 11px;
  background: #fff9ec;
}

.stress-box label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--warning);
  font-size: 9px;
  font-weight: 800;
}

.toggle {
  position: relative;
  width: 34px;
  height: 19px;
  flex: 0 0 auto;
}

.toggle input {
  position: absolute;
  opacity: 0;
}

.toggle-track {
  position: absolute;
  inset: 0;
  border-radius: 99px;
  background: #d9d0bc;
  transition: 150ms ease;
}

.toggle-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.16);
  transition: 150ms ease;
}

.toggle input:checked + .toggle-track {
  background: var(--orange-500);
}

.toggle input:checked + .toggle-track::after {
  transform: translateX(15px);
}

.scenario-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.scenario-summary {
  padding: 13px;
  border: 1px solid var(--bone-2);
  border-radius: 12px;
  background: white;
}

.scenario-summary.selected {
  border-color: #9ec8b9;
  background: var(--evergreen-50);
}

.scenario-summary.breach {
  border-color: #edb8aa;
  background: var(--danger-soft);
}

.scenario-summary .scenario-name {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.scenario-summary .scenario-value {
  margin: 6px 0 3px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
}

.scenario-summary small {
  color: var(--muted-2);
  font-size: 8px;
}

.constraint-alert {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 11px;
}

.constraint-alert.breach {
  background: var(--danger-soft);
  color: var(--danger);
}

.constraint-alert.pass {
  background: var(--success-soft);
  color: var(--success);
}

.constraint-alert strong {
  display: block;
  font-size: 10px;
}

.constraint-alert p {
  margin: 3px 0 0;
  color: currentColor;
  font-size: 9px;
  line-height: 1.4;
  opacity: 0.86;
}

.chart-wrap {
  position: relative;
  padding: 10px 8px 2px;
  border: 1px solid var(--bone);
  border-radius: 12px;
  background: #fffefa;
}

.cash-chart {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart-grid-line {
  stroke: #ece8df;
  stroke-width: 1;
}

.chart-floor-line {
  stroke: var(--danger);
  stroke-width: 1.5;
  stroke-dasharray: 5 5;
}

.chart-line-baseline,
.chart-line-scenario,
.chart-line-stress {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-line-baseline {
  stroke: var(--steel-700);
  stroke-width: 2.3;
}

.chart-line-scenario {
  stroke: var(--orange-500);
  stroke-width: 3;
}

.chart-line-stress {
  stroke: #76528d;
  stroke-width: 2.2;
  stroke-dasharray: 4 4;
}

.chart-label {
  fill: var(--muted-2);
  font-family: Arial, sans-serif;
  font-size: 8px;
}

.chart-floor-label {
  fill: var(--danger);
  font-family: Arial, sans-serif;
  font-size: 8px;
  font-weight: 700;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 9px 7px 7px;
  color: var(--muted);
  font-size: 8px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-line {
  width: 18px;
  height: 2px;
  background: var(--steel-700);
}

.legend-line.scenario {
  height: 3px;
  background: var(--orange-500);
}

.legend-line.stress {
  background: repeating-linear-gradient(90deg, #76528d 0 4px, transparent 4px 7px);
}

.driver-row {
  grid-template-columns: 1.2fr 0.7fr 1.2fr 0.9fr;
  align-items: center;
  color: var(--muted);
  font-size: 9px;
}

.driver-row strong {
  color: var(--ink);
  font-size: 9px;
}

.report-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: start;
}

.report-paper {
  padding: 38px 42px;
  border: 1px solid #ded9ce;
  border-radius: 3px;
  background: #fffefa;
  box-shadow: 0 12px 32px rgba(52, 56, 48, 0.08);
}

.report-masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--evergreen-900);
}

.report-brand {
  color: var(--evergreen-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.report-meta {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
  text-align: right;
}

.report-paper h2 {
  margin: 28px 0 8px;
  color: var(--evergreen-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  font-weight: 400;
}

.report-paper .report-subtitle {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 10px;
}

.report-section {
  padding: 15px 0;
  border-top: 1px solid var(--bone-2);
}

.report-section h3 {
  margin: 0 0 7px;
  color: var(--orange-600);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-section p {
  margin: 0;
  color: #445a54;
  font-size: 10px;
  line-height: 1.55;
}

.report-comparison {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.report-comparison-card {
  padding: 11px;
  border-radius: 9px;
  background: var(--bone);
}

.report-comparison-card strong {
  display: block;
  color: var(--ink);
  font-size: 9px;
}

.report-comparison-card span {
  display: block;
  margin: 6px 0 2px;
  color: var(--evergreen-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.report-comparison-card small {
  color: var(--muted);
  font-size: 8px;
}

.report-footer-note {
  margin-top: 20px;
  padding: 10px 12px;
  border-left: 3px solid var(--orange-500);
  background: var(--orange-50);
  color: #6b554b;
  font-size: 8px;
  line-height: 1.45;
}

.approval-panel {
  position: sticky;
  top: 20px;
}

.approval-status {
  display: grid;
  place-items: center;
  gap: 9px;
  padding: 20px 12px;
  border-radius: 13px;
  background: var(--bone);
  text-align: center;
}

.approval-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: white;
  color: var(--muted);
  font-size: 18px;
  box-shadow: var(--shadow-sm);
}

.approval-status.ready {
  background: var(--success-soft);
}

.approval-status.ready .approval-icon {
  color: var(--success);
}

.approval-status strong {
  color: var(--ink);
  font-size: 11px;
}

.approval-status p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 16px 0;
}

.check-list-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
}

.check-list-icon {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
  font-size: 8px;
  font-weight: 900;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 340px;
  padding: 30px;
  border: 1px dashed var(--bone-2);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.45);
  text-align: center;
}

.empty-state-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 13px;
  border-radius: 17px;
  background: var(--evergreen-50);
  color: var(--evergreen-700);
  font-size: 24px;
}

.empty-state h2 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 400;
}

.empty-state p {
  max-width: 420px;
  margin: 8px auto 15px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.drawer-backdrop {
  position: fixed;
  z-index: 40;
  inset: 0;
  background: rgba(7, 29, 24, 0.32);
  backdrop-filter: blur(2px);
}

.evidence-drawer {
  position: fixed;
  z-index: 41;
  top: 0;
  right: 0;
  width: min(430px, 94vw);
  height: 100vh;
  overflow-y: auto;
  background: var(--paper);
  box-shadow: -20px 0 50px rgba(8, 32, 27, 0.18);
  animation: drawerIn 180ms ease-out;
}

@keyframes drawerIn {
  from { transform: translateX(24px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.drawer-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 21px;
  border-bottom: 1px solid var(--bone-2);
  background: rgba(251, 250, 246, 0.94);
  backdrop-filter: blur(12px);
}

.drawer-header h2 {
  margin: 5px 0 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 400;
}

.drawer-body {
  padding: 22px;
}

.evidence-context {
  margin-bottom: 16px;
  padding: 13px;
  border-radius: 11px;
  background: var(--bone);
}

.evidence-context strong {
  display: block;
  color: var(--ink);
  font-size: 10px;
}

.evidence-context p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.transcript-evidence {
  padding: 17px;
  border-left: 4px solid var(--orange-500);
  border-radius: 0 12px 12px 0;
  background: white;
  box-shadow: var(--shadow-sm);
}

.evidence-speaker {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.transcript-evidence blockquote {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.55;
}

.evidence-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  padding: 11px 15px;
  border-radius: 10px;
  background: var(--evergreen-950);
  color: white;
  box-shadow: var(--shadow-md);
  font-size: 10px;
  font-weight: 700;
  animation: toastIn 160ms ease-out;
}

@keyframes toastIn {
  from { transform: translate(-50%, 8px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.spinner {
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1060px) {
  :root {
    --sidebar-width: 218px;
  }

  .main-content {
    padding-inline: 24px;
  }

  .topbar {
    padding-inline: 24px;
  }

  .hero-card,
  .analysis-layout,
  .scenario-layout,
  .report-shell {
    grid-template-columns: 1fr;
  }

  .hero-next-step,
  .transcript-card,
  .input-panel,
  .approval-panel {
    position: static;
  }

  .analysis-layout .transcript-card {
    order: 0;
  }
}

@media (max-width: 820px) {
  :root {
    --banner-height: auto;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 14px 15px 0;
    overflow: visible;
  }

  .brand-row {
    display: inline-flex;
    padding: 0 0 12px;
  }

  .brand-mark {
    width: 33px;
    height: 33px;
    font-size: 19px;
  }

  .brand-name {
    font-size: 18px;
  }

  .client-switcher {
    float: right;
    width: min(230px, calc(100% - 150px));
    padding: 7px;
  }

  .primary-nav {
    clear: both;
    flex-direction: row;
    gap: 4px;
    margin: 0 -15px;
    padding: 0 15px 9px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .primary-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-section-label {
    display: none;
  }

  .nav-button {
    width: auto;
    flex: 0 0 auto;
    padding: 8px 10px;
    white-space: nowrap;
  }

  .nav-button.active::before {
    inset: auto 9px -9px;
    width: auto;
    height: 3px;
    border-radius: 4px 4px 0 0;
  }

  .nav-count,
  .sidebar-bottom {
    display: none;
  }

  .prototype-banner {
    min-height: 34px;
    justify-content: flex-start;
    padding: 8px 15px;
    font-size: 9px;
  }

  .banner-mode {
    display: none;
  }

  .topbar {
    min-height: 66px;
    padding: 11px 16px;
  }

  .next-meeting {
    display: none;
  }

  .page-kicker {
    font-size: 16px;
  }

  .main-content {
    padding: 23px 16px 42px;
  }

  .page-heading-row {
    display: block;
  }

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

  .heading-actions {
    margin-top: 12px;
    padding-top: 0;
  }

  .grid.two,
  .grid.three,
  .grid.asymmetric,
  .scenario-summary-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    padding: 21px;
  }

  .analysis-layout,
  .scenario-layout,
  .report-shell {
    display: block;
  }

  .analysis-layout > *,
  .scenario-layout > *,
  .report-shell > * {
    margin-bottom: 16px;
  }

  .transcript-editor {
    min-height: 290px;
  }

  .candidate-card {
    grid-template-columns: 1fr;
  }

  .candidate-actions {
    justify-content: flex-start;
  }

  .recommendation-section {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .driver-row {
    grid-template-columns: 1fr auto;
  }

  .driver-row span:nth-child(3),
  .driver-row span:nth-child(4) {
    grid-column: 1 / -1;
  }

  .report-paper {
    padding: 27px 22px;
  }
}

@media (max-width: 520px) {
  .client-switcher-copy small,
  .chevron {
    display: none;
  }

  .client-switcher {
    width: 145px;
    grid-template-columns: 29px minmax(0, 1fr);
  }

  .client-avatar {
    width: 29px;
    height: 29px;
  }

  .brand-subtitle,
  .breadcrumb,
  .topbar .primary-button span {
    display: none;
  }

  .topbar .primary-button {
    padding: 9px 10px;
  }

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

  .continuity-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .agenda-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .drag-handle {
    display: none;
  }

  .report-masthead {
    align-items: flex-start;
    flex-direction: column;
  }

  .report-meta {
    text-align: left;
  }

  .report-comparison {
    grid-template-columns: 1fr;
  }
}
