:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-muted: #f2f3f5;
  --surface-subtle: #fafafa;
  --ink: #171717;
  --ink-soft: #3f3f46;
  --muted: #71717a;
  --muted-2: #a1a1aa;
  --line: #e4e4e7;
  --line-strong: #d4d4d8;
  --brand: #c4161c;
  --brand-dark: #991b1f;
  --green: #15803d;
  --amber: #a16207;
  --blue: #1d4ed8;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(24, 24, 27, 0.04);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}

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

button {
  -webkit-tap-highlight-color: transparent;
}

.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(420px, 0.9fr) minmax(420px, 1.1fr);
  background: var(--bg);
}

.auth-screen.hidden {
  display: none;
}

.auth-visual {
  min-height: 100vh;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #111113;
  color: #fff;
  border-right: 1px solid #27272a;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 20px;
}

.auth-brand p,
.brand p {
  margin: 0;
  font-weight: 750;
  letter-spacing: 0;
}

.auth-brand span,
.brand span {
  color: var(--muted);
  font-size: 12px;
}

.auth-visual .auth-brand span,
.auth-copy p,
.auth-proof span {
  color: #a1a1aa;
}

.auth-copy {
  max-width: 620px;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-copy .eyebrow {
  color: #a1a1aa;
}

.auth-copy h1 {
  margin: 14px 0 14px;
  max-width: 580px;
  font-size: 48px;
  line-height: 1.04;
  font-weight: 760;
  letter-spacing: 0;
}

.auth-copy p {
  max-width: 500px;
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
}

.auth-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 520px;
}

.auth-proof div {
  min-height: 92px;
  padding: 16px;
  border: 1px solid #27272a;
  border-radius: var(--radius);
  background: #18181b;
}

.auth-proof strong {
  display: block;
  color: #fff;
  font-size: 24px;
  font-weight: 760;
}

.auth-proof span {
  display: block;
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.35;
}

.auth-panel {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.auth-card {
  width: min(100%, 430px);
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(24, 24, 27, 0.08);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 24px;
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.auth-tabs button {
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 650;
  cursor: pointer;
}

.auth-tabs button.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.auth-heading h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 760;
  letter-spacing: 0;
}

.auth-heading p,
.auth-note {
  color: var(--muted);
  line-height: 1.5;
}

.auth-heading p {
  margin: 8px 0 0;
}

.auth-form,
.form,
.survey-form {
  display: grid;
  gap: 14px;
}

.survey-success {
  padding: 22px;
  border: 1px solid rgba(22, 163, 74, 0.22);
  border-radius: var(--radius);
  background: #f0fdf4;
  color: #14532d;
}

.survey-success strong {
  display: block;
  font-size: 20px;
  margin-bottom: 8px;
}

.survey-success p {
  margin: 0;
  color: #166534;
}

.analysis-card pre {
  max-height: 360px;
  overflow: auto;
  margin: 12px 0 0;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: #111827;
  color: #e5e7eb;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}

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

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

.project-card {
  display: grid;
  gap: 16px;
  align-content: space-between;
  min-height: 230px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.project-card.active {
  border-color: rgba(185, 28, 28, 0.38);
  box-shadow: 0 14px 34px rgba(185, 28, 28, 0.08);
}

.project-card h3 {
  margin: 6px 0 8px;
  font-size: 22px;
}

.project-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-meta span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}

.project-form {
  margin-top: 4px;
}

.auth-form {
  margin-top: 22px;
}

.hidden {
  display: none !important;
}

body[data-role="participant"] .sidebar {
  background: #111113;
  color: #fff;
}

body[data-role="participant"] .sidebar .brand span,
body[data-role="participant"] .sidebar-card p {
  color: #a1a1aa;
}

body[data-role="participant"] .nav-item {
  color: #d4d4d8;
}

body[data-role="participant"] .nav-item.active,
body[data-role="participant"] .nav-item:hover {
  background: #27272a;
  color: #fff;
}

body[data-role="participant"] .sidebar-card {
  background: #18181b;
  border-color: #27272a;
}

body[data-role="owner"] .sidebar {
  background: #f4f5f7;
}

.auth-submit {
  margin-top: 4px;
  min-height: 42px;
}

.auth-note {
  margin: 18px 0 0;
  font-size: 12px;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: #fbfbfc;
  border-right: 1px solid var(--line);
}

.nav {
  display: grid;
  gap: 3px;
}

.nav-item {
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-soft);
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.nav-item.active {
  background: #eceef1;
  color: var(--ink);
}

.nav-item:hover {
  background: #f0f1f3;
  color: var(--ink);
}

.sidebar-card {
  margin-top: auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.sidebar-card strong,
.sidebar-card p {
  margin: 0;
}

.sidebar-card strong {
  display: block;
  font-size: 12px;
}

.sidebar-card p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.status-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 999px;
  background: #22c55e;
}

.main {
  min-width: 0;
  padding: 22px 26px 36px;
}

.topbar {
  min-height: 56px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 18px;
}

.topbar h1 {
  margin: 5px 0 0;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 760;
  letter-spacing: 0;
}

.topbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.primary-button,
.ghost-button {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.primary-button {
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
}

.primary-button:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.ghost-button {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.ghost-button:hover {
  background: var(--surface-muted);
}

.ghost-link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.ghost-link:hover {
  background: var(--surface-muted);
}

.view {
  display: none;
}

.view.active {
  display: grid;
  gap: 14px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 12px;
}

.score-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 12px;
}

.score-card {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #18181b;
  color: #fff;
}

.score-card span {
  color: #a1a1aa;
  font-size: 12px;
  font-weight: 650;
}

.score-card strong {
  font-size: 42px;
  line-height: 1;
  font-weight: 780;
}

.score-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.score-table div {
  min-height: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-subtle);
}

.score-table span {
  color: var(--muted);
  font-weight: 650;
}

.score-table strong {
  font-size: 18px;
}

.metric,
.panel,
.booklet {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.metric {
  min-height: 104px;
  padding: 15px;
}

.metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.metric strong {
  display: block;
  margin-top: 18px;
  font-size: 28px;
  line-height: 1;
  font-weight: 760;
}

.content-grid,
.split,
.analysis-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  gap: 14px;
}

.panel {
  padding: 16px;
}

.panel-header {
  min-height: 34px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 14px;
}

.panel-header h2 {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 720;
}

.panel-header span {
  color: var(--muted);
  font-size: 12px;
}

.flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.flow div {
  min-height: 88px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-subtle);
}

.flow b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #18181b;
  color: #fff;
  font-size: 12px;
  font-weight: 720;
}

.flow span {
  display: block;
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-list span,
.dimension-grid span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-subtle);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
}

.pain-list,
.template-list,
.roadmap,
#maturity-bars,
.analysis-output,
.heat-list,
.sentiment-list,
.recommendation-grid {
  display: grid;
  gap: 8px;
}

.heat-row,
.sentiment-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-subtle);
}

.heat-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
}

.heat-row .bar {
  grid-column: 1 / -1;
}

.heat-row strong,
.sentiment-card span {
  font-size: 12px;
  font-weight: 760;
}

.high,
.negative {
  color: var(--brand);
}

.medium {
  color: var(--amber);
}

.low,
.positive {
  color: var(--green);
}

.matrix {
  display: grid;
  gap: 10px;
}

.matrix article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-subtle);
}

.matrix h3 {
  margin: 0 0 9px;
  font-size: 14px;
}

.matrix p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 650;
}

.meeting-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-subtle);
}

.meeting-hero h2 {
  margin: 8px 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.meeting-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.agent-card {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.agent-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.agent-pulse {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--muted-2);
}

.agent-pulse.listening {
  background: var(--brand);
  box-shadow: 0 0 0 6px rgba(196, 22, 28, 0.1);
}

.meeting-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.transcript-field textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
}

.meeting-list {
  display: grid;
  gap: 8px;
}

.meeting-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-subtle);
}

.meeting-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.meeting-card span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.meeting-card small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-weight: 650;
}

.stakeholder-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.stakeholder-layer {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-subtle);
}

.stakeholder-layer h3 {
  margin: 0 0 10px;
  font-size: 14px;
}

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

.framework-card,
.method-card,
.method-list div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-subtle);
}

.framework-card {
  min-height: 168px;
  padding: 12px;
}

.framework-code {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #18181b;
  color: #fff;
  font-size: 12px;
  font-weight: 760;
}

.framework-card h3 {
  margin: 12px 0 10px;
  font-size: 15px;
}

.method-card {
  padding: 14px;
}

.method-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.method-list {
  display: grid;
  gap: 8px;
}

.method-list div {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.method-list span {
  color: var(--muted);
  line-height: 1.45;
}

.architecture-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.outlook-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 14px;
}

.user-role-form {
  grid-template-columns: minmax(220px, 1fr) 220px auto;
  align-items: end;
  margin-bottom: 14px;
}

.method-card h3 {
  margin: 0 0 10px;
  font-size: 14px;
}

.survey-bank {
  display: grid;
  gap: 12px;
}

.survey-stakeholder {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-subtle);
  overflow: hidden;
}

.survey-stakeholder-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.survey-stakeholder-header h3 {
  margin: 0;
  font-size: 15px;
}

.survey-stakeholder-header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.survey-category {
  padding: 14px;
}

.survey-category + .survey-category {
  border-top: 1px solid var(--line);
}

.survey-category h4 {
  margin: 0 0 10px;
  font-size: 13px;
}

.question-list {
  display: grid;
  gap: 8px;
}

.question-row {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.question-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.question-meta strong,
.question-meta span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.question-meta strong {
  background: #18181b;
  color: #fff;
}

.question-meta span {
  border: 1px solid var(--line);
  background: var(--surface-subtle);
  color: var(--muted);
}

.question-row p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.question-row b {
  color: var(--ink);
}

.pain-item,
.template-card,
.roadmap-card,
.analysis-card,
.bar-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-subtle);
}

.pain-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px;
}

.pain-item strong,
.template-card strong {
  font-weight: 700;
}

.pain-item p,
.template-card p,
.analysis-card p,
.roadmap-card li {
  color: var(--muted);
  line-height: 1.5;
}

.pain-item p,
.template-card p,
.analysis-card p {
  margin: 5px 0 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 760;
}

.badge.high {
  background: var(--brand);
}

.badge.medium {
  background: var(--amber);
}

.badge.low {
  background: var(--green);
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 680;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 9px 10px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #a1a1aa;
  box-shadow: 0 0 0 3px rgba(161, 161, 170, 0.18);
}

textarea {
  resize: vertical;
}

.template-card,
.roadmap-card,
.analysis-card,
.bar-row {
  padding: 12px;
}

.share-box {
  margin-top: 14px;
  padding: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-subtle);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
}

.share-box p {
  margin: 8px 0 0;
}

.share-box textarea {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.5;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  background: var(--surface);
}

th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

tr:last-child td {
  border-bottom: 0;
}

th {
  background: var(--surface-subtle);
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

td {
  color: var(--ink-soft);
  line-height: 1.45;
}

.bar-row strong {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  font-size: 12px;
}

.bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7e7ea;
}

.bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #18181b;
}

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

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

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

.recommendation-card {
  min-height: 178px;
  display: flex;
  flex-direction: column;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-subtle);
}

.recommendation-card h3 {
  margin: 8px 0;
  font-size: 15px;
}

.recommendation-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.recommendation-meta {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.recommendation-meta span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
}

.roadmap-card h3,
.analysis-card h3,
.booklet h2,
.booklet h3 {
  margin-top: 0;
}

.roadmap-card h3,
.analysis-card h3,
.booklet h3 {
  font-size: 15px;
}

.roadmap-card ul,
.booklet ol {
  margin-bottom: 0;
  padding-left: 18px;
}

.booklet {
  max-width: 980px;
  padding: 28px;
}

.booklet h2 {
  margin-bottom: 12px;
  font-size: 30px;
  line-height: 1.16;
  font-weight: 760;
  letter-spacing: 0;
}

.booklet > p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.65;
}

.booklet-grid,
.dimension-grid {
  display: grid;
  gap: 10px;
}

.booklet-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 24px 0;
}

.booklet-grid article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-subtle);
}

.booklet-grid p,
.booklet li {
  color: var(--muted);
  line-height: 1.55;
}

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

.dimension-grid span {
  justify-content: center;
  min-height: 36px;
  border-radius: var(--radius);
}

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

@media (max-width: 1080px) {
  .metrics-grid,
  .score-layout,
  .flow,
  .roadmap,
  .insight-grid,
  .recommendation-grid,
  .booklet-grid,
  .dimension-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 820px) {
  .auth-screen {
    position: static;
    grid-template-columns: 1fr;
  }

  .auth-visual,
  .auth-panel {
    min-height: auto;
  }

  .auth-visual {
    gap: 40px;
    padding: 28px;
  }

  .auth-copy h1 {
    font-size: 36px;
  }

  .auth-proof,
  .metrics-grid,
  .form-grid,
  .stakeholder-map,
  .framework-grid,
  .architecture-grid,
  .outlook-grid,
  .user-role-form,
  .score-layout,
  .score-table,
  .flow,
  .roadmap,
  .insight-grid,
  .recommendation-grid,
  .booklet-grid,
  .dimension-grid {
    grid-template-columns: 1fr;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .main {
    padding: 18px;
  }

  .meeting-hero {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
  }
}
