:root {
  --bg: #eef2f4;
  --bg-soft: #f8fafb;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --surface-dark: #0f1b26;
  --surface-dark-soft: rgba(15, 27, 38, 0.86);
  --brand: #16445f;
  --brand-strong: #0d2b3d;
  --brand-soft: rgba(22, 68, 95, 0.09);
  --accent: #b6894e;
  --accent-soft: rgba(182, 137, 78, 0.12);
  --success: #2e6a52;
  --warning: #9b6d30;
  --danger: #b5544f;
  --ink: #12202b;
  --ink-soft: #30404c;
  --muted: #60707b;
  --line: rgba(18, 32, 43, 0.1);
  --line-strong: rgba(18, 32, 43, 0.16);
  --shadow-lg: 0 26px 72px rgba(15, 27, 38, 0.12);
  --shadow-md: 0 16px 40px rgba(15, 27, 38, 0.08);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: min(1180px, calc(100% - 40px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(22, 68, 95, 0.12), transparent 32%),
    radial-gradient(circle at right 20%, rgba(182, 137, 78, 0.1), transparent 26%),
    linear-gradient(180deg, #f2f5f7 0%, #edf1f4 42%, #f9f7f2 100%);
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

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

button {
  cursor: pointer;
}

main {
  position: relative;
  z-index: 1;
}

.site-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(22, 68, 95, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 68, 95, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 95%);
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(15, 27, 38, 0.06);
  background: rgba(248, 250, 251, 0.86);
  backdrop-filter: blur(18px);
}

.header-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand toggle"
    "nav actions";
  align-items: center;
  gap: 16px 20px;
  padding: 16px 0 18px;
}

.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-mark {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.brand-copy {
  min-width: 0;
}

.brand-name {
  display: block;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
}

.brand-note {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.nav-toggle {
  grid-area: toggle;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  justify-self: end;
}

.site-nav {
  grid-area: nav;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  transition: 180ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ink);
  background: rgba(18, 32, 43, 0.05);
}

.header-actions {
  grid-area: actions;
  display: flex;
  gap: 10px;
  justify-self: end;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  box-shadow: 0 18px 34px rgba(22, 68, 95, 0.2);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--line);
}

.button.ghost {
  padding-inline: 0;
  border: 0;
  background: transparent;
  color: var(--brand);
}

.button.small {
  padding: 9px 14px;
  font-size: 0.9rem;
}

.section {
  padding: 56px 0;
}

.section-compact {
  padding: 34px 0;
}

.page-shell {
  padding: 30px 0 12px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 26px;
}

.section-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--brand);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: rgba(22, 68, 95, 0.32);
}

.hero-title,
.page-title,
.section-title {
  margin: 10px 0 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-title {
  font-size: clamp(2.0rem, 4vw, 3.4rem);
  max-width: 16ch;
  line-height: 1.1;
}

.page-title {
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.lead-text,
.page-text,
.section-text {
  color: var(--muted);
  line-height: 1.72;
}

.lead-text {
  font-size: 1.06rem;
  max-width: 70ch;
}

.page-hero,
.detail-shell,
.admin-layout,
.hero-grid,
.band-grid,
.presentation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(350px, 0.95fr);
  gap: 22px;
  align-items: stretch;
}

.hero-copy,
.page-summary,
.card,
.detail-main,
.detail-side,
.cta-panel,
.admin-panel,
.timeline-item,
.kanban-column,
.chart-shell,
.notice {
  border-radius: var(--radius-xl);
  padding: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 251, 0.88));
  box-shadow: var(--shadow-md);
}

.hero-copy {
  display: grid;
  align-content: start;
  gap: 18px;
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-meta,
.tag-row,
.filter-bar,
.footer-links,
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-chip,
.chip,
.tag,
.meta-pill,
.status,
.priority-pill,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.hero-chip,
.chip {
  padding: 9px 12px;
  font-size: 0.9rem;
  font-weight: 700;
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.tag,
.meta-pill {
  padding: 7px 11px;
  font-size: 0.84rem;
  background: rgba(18, 32, 43, 0.06);
  color: var(--ink-soft);
  font-weight: 700;
}

.status {
  padding: 7px 12px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status.in-progress,
.status.live,
.status.active {
  color: var(--success);
  background: rgba(46, 106, 82, 0.1);
}

.status.planned,
.status.pending,
.status.backlog {
  color: var(--warning);
  background: rgba(182, 137, 78, 0.16);
}

.status.review,
.status.decision {
  color: #8c5f9f;
  background: rgba(140, 95, 159, 0.12);
}

.status.done,
.status.completed,
.status.next {
  color: #2b5872;
  background: rgba(54, 115, 152, 0.12);
}

.priority-pill {
  padding: 7px 12px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.priority-pill.high {
  color: #8a3736;
  background: rgba(181, 84, 79, 0.12);
}

.priority-pill.medium {
  color: #8d6326;
  background: rgba(182, 137, 78, 0.16);
}

.priority-pill.low {
  color: var(--brand-strong);
  background: rgba(22, 68, 95, 0.12);
}

.page-summary {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.page-summary.overlay-card {
  position: relative;
  padding: 0;
  align-self: stretch; /* Возвращаем stretch для вертикального объема */
  min-height: 65vh; /* Заставляем карточку быть высокой на десктопе */
}

.page-summary.overlay-card img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  max-height: none;
  object-fit: cover;
  border-radius: inherit;
}

.overlay-panel {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  z-index: 10;
}

/* Dashboard Charts */
.chart-container-wrapper {
  width: 100%;
  height: 100%;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: linear-gradient(135deg, #0f1b26, #162a3d);
}

.chart-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 10px;
  z-index: 5;
}

.chart-tab {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chart-tab:hover {
  background: rgba(255, 255, 255, 0.1);
}

.chart-tab.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 4px 12px rgba(22, 68, 95, 0.3);
}

.chart-group-select {
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(18, 32, 43, 0.9);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  outline: none;
}

.chart-canvas-shell {
  flex-grow: 1;
  position: relative;
  min-height: 380px;
}

.chart-canvas-shell.loading::after {
  content: "Загрузка данных...";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
}

.overlay-panel strong {
  display: block;
  margin-bottom: 6px;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 1rem;
}

.metric-grid,
.grid-2,
.grid-3,
.grid-4,
.ops-callout-grid,
.proof-grid,
.kanban-board {
  display: grid;
  gap: 18px;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 26px;
}

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

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

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

.metric-card {
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-md);
}

.metric-value {
  display: block;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 1.8rem;
}

.metric-label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

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

.card-head,
.identity-head,
.followup-history-head,
.chart-head,
.kanban-card-head,
.ops-mini-head,
.timeline-phase,
.presentation-toolbar__head,
.presentation-toolbar__notes-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.card-title,
.detail-heading,
.news-title,
.kanban-column h3,
.timeline-body h3 {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

.card-title {
  font-size: 1.18rem;
}

.card-subtitle {
  color: var(--muted);
  font-size: 0.92rem;
}

.card-text,
.timeline-body p,
.kanban-note,
.ops-mini-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.66;
}

.card-list,
.detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card-list li,
.detail-list li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.card-list li::before,
.detail-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

.brand-band,
.dark-block {
  border-radius: var(--radius-xl);
  padding: clamp(26px, 3vw, 40px);
  color: #f4f8fb;
  background: linear-gradient(135deg, #123447, #102533 64%, #947042 150%);
  box-shadow: 0 30px 72px rgba(12, 28, 40, 0.24);
}

.brand-band .section-title,
.brand-band .section-text,
.dark-block .section-title,
.dark-block .section-lead,
.dark-block .section-text {
  color: inherit;
}

.band-side {
  display: grid;
  gap: 14px;
}

.band-side .card {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.band-side .card-text,
.band-side .card-list li {
  color: rgba(244, 248, 251, 0.88);
}

.band-side .tag {
  color: rgba(244, 248, 251, 0.92);
  background: rgba(255, 255, 255, 0.08);
}

.chart-shell {
  display: grid;
  gap: 18px;
}

.chart-caption {
  color: var(--muted);
  line-height: 1.66;
}

.bar-chart {
  display: grid;
  gap: 12px;
}

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

.chart-label,
.chart-value {
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-weight: 700;
}

.chart-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: rgba(18, 32, 43, 0.08);
  overflow: hidden;
}

.chart-bar {
  position: absolute;
  inset: 0 auto 0 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

.ranking-grid,
.ops-mini-grid {
  display: grid;
  gap: 14px;
}

.ranking-item,
.ops-mini-item,
.todo-item,
.followup-history-item,
.collection-item {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
}

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

.kanban-column {
  display: grid;
  align-content: start;
  gap: 14px;
}

.kanban-list {
  display: grid;
  gap: 12px;
}

.kanban-card {
  padding: 14px;
  border-radius: 16px;
  background: rgba(18, 32, 43, 0.04);
  border: 1px solid rgba(18, 32, 43, 0.08);
}

.kanban-card-head strong {
  font-size: 0.96rem;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
}

.timeline-phase {
  display: grid;
  align-content: start;
  gap: 10px;
}

.timeline-phase strong {
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 1.06rem;
}

.timeline-body {
  display: grid;
  gap: 12px;
}

.cta-panel strong {
  display: block;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.08;
}

.cta-panel p {
  color: var(--muted);
  line-height: 1.72;
}

.detail-main,
.detail-side {
  display: grid;
  gap: 22px;
}

.detail-block {
  display: grid;
  gap: 16px;
}

.detail-block + .detail-block {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 52px 0 70px;
}

.footer-shell {
  border-radius: var(--radius-xl);
  padding: 30px;
  color: rgba(244, 248, 251, 0.9);
  background: rgba(15, 27, 38, 0.96);
  box-shadow: 0 34px 80px rgba(15, 27, 38, 0.22);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 0.8fr));
  gap: 24px;
}

.footer-grid h3,
.footer-grid h4 {
  margin-top: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

.footer-links a,
.footer-links span {
  color: rgba(244, 248, 251, 0.88);
}

.footer-bottom {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(244, 248, 251, 0.6);
  font-size: 0.88rem;
}

.empty-state {
  padding: 30px;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.58);
}

.inline-note,
.inline-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.divider {
  height: 1px;
  margin: 14px 0;
  background: linear-gradient(90deg, transparent, rgba(18, 32, 43, 0.14), transparent);
}

.notice {
  padding: 16px 18px;
  line-height: 1.65;
}

.notice.info {
  border-color: rgba(22, 68, 95, 0.12);
  background: rgba(22, 68, 95, 0.08);
  color: var(--brand-strong);
}

.notice.warning {
  border-color: rgba(182, 137, 78, 0.2);
  background: rgba(182, 137, 78, 0.12);
  color: #7a5521;
}

.notice.error {
  border-color: rgba(181, 84, 79, 0.18);
  background: rgba(181, 84, 79, 0.1);
  color: #8a3736;
}

.admin-shell {
  padding: 30px 0 64px;
}

.admin-hero {
  border-radius: var(--radius-xl);
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.96), rgba(248, 249, 246, 0.88)),
    radial-gradient(circle at right top, rgba(22, 68, 95, 0.1), transparent 34%);
  box-shadow: var(--shadow-md);
}

.admin-layout {
  grid-template-columns: 300px minmax(0, 1fr);
  margin-top: 24px;
  align-items: start;
}

.admin-sidebar,
.admin-content,
.admin-status,
.admin-nav,
.collection-list {
  display: grid;
  gap: 18px;
}

.admin-nav {
  gap: 10px;
}

.admin-nav button {
  text-align: left;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(18, 32, 43, 0.04);
  color: var(--ink);
  font-weight: 700;
}

.admin-nav button.active {
  background: rgba(22, 68, 95, 0.1);
  border-color: rgba(22, 68, 95, 0.16);
  color: var(--brand-strong);
}

.admin-toolbar,
.collection-actions,
.status-cluster,
.followup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.field,
.field-full {
  display: grid;
  gap: 8px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label,
.field-full label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.field input,
.field textarea,
.field select,
.field-full input,
.field-full textarea,
.field-full select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
}

.field textarea,
.field-full textarea {
  min-height: 112px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.field-full input:focus,
.field-full textarea:focus,
.field-full select:focus {
  outline: none;
  border-color: rgba(22, 68, 95, 0.34);
  box-shadow: 0 0 0 3px rgba(22, 68, 95, 0.08);
}

.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
}

.file-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.presentation-hero {
  display: grid;
  gap: 22px;
}

.presentation-scenario-shell {
  padding: 26px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 246, 0.9));
  box-shadow: var(--shadow-md);
}

.presentation-scenario-switch,
.presentation-toolbar__scenarios,
.presentation-toolbar__pace-buttons,
.presentation-toolbar__route-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.presentation-audience-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(18, 32, 43, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-weight: 700;
  transition: 180ms ease;
}

.presentation-audience-button:hover,
.presentation-audience-button.active {
  border-color: rgba(182, 137, 78, 0.38);
  background: rgba(182, 137, 78, 0.12);
  color: var(--ink);
}

.presentation-audience-button.compact {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 0.8rem;
}

.presentation-scenario-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.presentation-scenario-column strong,
.presentation-scenario-route strong {
  display: block;
  margin-bottom: 10px;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

.presentation-scenario-route {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.followup-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.84fr);
  gap: 20px;
}

.followup-preview {
  min-height: 230px;
  white-space: pre-wrap;
}

.followup-history {
  display: grid;
  gap: 12px;
}

.presentation-toolbar {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: min(320px, calc(100vw - 24px));
  max-height: calc(100vh - 36px);
}

.presentation-toolbar__shell {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  color: #f7f7f4;
  border: 1px solid rgba(182, 137, 78, 0.18);
  background: rgba(15, 27, 38, 0.94);
  box-shadow: 0 22px 46px rgba(15, 27, 38, 0.22);
  backdrop-filter: blur(18px);
  max-height: calc(100vh - 36px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.presentation-toolbar__full {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.presentation-toolbar__compact {
  display: none;
  grid-template-columns: auto auto auto minmax(78px, auto) auto;
  gap: 6px;
  align-items: center;
}

.presentation-toolbar__compact-readout {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 78px;
  font-size: 0.75rem;
  color: rgba(247, 247, 244, 0.82);
}

.presentation-toolbar__compact-readout strong {
  font-size: 0.8rem;
  color: #f7f7f4;
}

.presentation-toolbar.is-collapsed {
  width: auto;
}

.presentation-toolbar.is-collapsed .presentation-toolbar__shell {
  padding: 8px 10px;
  border-radius: 16px;
  background: rgba(15, 27, 38, 0.44);
  box-shadow: 0 16px 34px rgba(15, 27, 38, 0.18);
  max-height: none;
  overflow: visible;
}

.presentation-toolbar.is-collapsed .presentation-toolbar__full {
  display: none;
}

.presentation-toolbar.is-collapsed .presentation-toolbar__compact {
  display: grid;
}

.presentation-toolbar__meta {
  display: grid;
  gap: 8px;
  justify-items: end;
  flex-shrink: 0;
}

.presentation-toolbar__head strong {
  display: block;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 0.94rem;
}

.presentation-toolbar__head p {
  margin: 4px 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(247, 247, 244, 0.72);
}

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

.presentation-toolbar__pace,
.presentation-toolbar__route,
.presentation-toolbar__notes {
  display: grid;
  gap: 8px;
}

.presentation-toolbar__notes {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.presentation-toolbar__notes-text,
.presentation-toolbar__notes-list {
  margin: 0;
  color: rgba(247, 247, 244, 0.82);
  line-height: 1.5;
}

.presentation-toolbar__notes-list {
  padding-left: 16px;
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
}

.presentation-toolbar__timer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.presentation-toolbar .presentation-audience-button {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #f7f7f4;
}

.presentation-toolbar .presentation-audience-button:hover,
.presentation-toolbar .presentation-audience-button.active {
  border-color: rgba(182, 137, 78, 0.42);
  background: rgba(182, 137, 78, 0.18);
  color: #f7ecd6;
}

.presentation-toolbar .button.small {
  gap: 6px;
  padding: 8px 11px;
  font-size: 0.8rem;
}

.presentation-toolbar .meta-pill {
  padding: 5px 8px;
  font-size: 0.72rem;
  color: rgba(247, 247, 244, 0.88);
  background: rgba(255, 255, 255, 0.08);
}

.presentation-toolbar__steps {
  display: grid;
  gap: 6px;
}

.presentation-step-button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  text-align: left;
  font-size: 0.84rem;
  line-height: 1.35;
  transition: 160ms ease;
}

.presentation-step-button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(247, 247, 244, 0.78);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.presentation-step-button:hover,
.presentation-step-button.active {
  border-color: rgba(182, 137, 78, 0.42);
  background: rgba(255, 255, 255, 0.11);
}

.presentation-step-button.is-recommended {
  border-color: rgba(182, 137, 78, 0.28);
}

.presentation-step-button.is-muted {
  opacity: 0.42;
}

.presentation-tool-active .site-header,
.presentation-tool-active .site-footer {
  display: none;
}

.presentation-tool-active {
  padding-bottom: 210px;
}

.presentation-tool-active [data-presentation-step].is-current-step .presentation-scenario-shell,
.presentation-tool-active [data-presentation-step].is-current-step > .container > .card,
.presentation-tool-active [data-presentation-step].is-current-step .section-copy,
.presentation-tool-active [data-presentation-step].is-current-step [data-followup-card] {
  box-shadow: 0 0 0 2px rgba(182, 137, 78, 0.22);
  border-radius: 22px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 420ms ease, transform 420ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .page-hero,
  .detail-shell,
  .admin-layout,
  .hero-grid,
  .band-grid,
  .presentation-layout,
  .followup-shell {
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .grid-4,
  .kanban-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 920px) {
  .header-bar {
    display: flex;
    flex-wrap: wrap;
    padding-block: 14px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    width: 100%;
    order: 4;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
  }

  .header-actions {
    margin-left: auto;
  }

  .grid-3,
  .proof-grid,
  .ops-callout-grid,
  .grid-2,
  .settings-grid,
  .field-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .presentation-toolbar {
    right: 16px;
    bottom: 16px;
    width: min(312px, calc(100vw - 20px));
    max-height: calc(100vh - 32px);
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(1180px, calc(100% - 28px));
  }

  .section {
    padding: 42px 0;
  }

  .hero-copy,
  .page-summary,
  .card,
  .detail-main,
  .detail-side,
  .cta-panel,
  .admin-panel,
  .timeline-item,
  .kanban-column,
  .chart-shell,
  .notice {
    padding: 20px;
  }

  .metric-grid,
  .grid-4,
  .kanban-board {
    grid-template-columns: 1fr;
  }

  .header-actions .button.secondary {
    display: none;
  }

  .hero-meta {
    gap: 8px;
  }

  .hero-chip,
  .chip {
    max-width: 100%;
    white-space: normal;
    text-align: left;
    line-height: 1.35;
  }

  .page-summary.overlay-card {
    padding: 0;
  }

  .page-summary.overlay-card img {
    min-height: 220px;
    aspect-ratio: 4 / 3;
  }

  .overlay-panel {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    padding: 16px;
    border-radius: 0 0 24px 24px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: none;
  }

  .overlay-panel strong {
    font-size: 0.96rem;
    line-height: 1.35;
  }

  .presentation-toolbar {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
    max-height: calc(100vh - 24px);
  }

  .presentation-toolbar__actions {
    grid-template-columns: 1fr;
  }

  .presentation-toolbar__scenarios,
  .presentation-scenario-switch {
    display: grid;
    grid-template-columns: 1fr;
  }

  .presentation-toolbar__compact {
    grid-template-columns: 1fr 1fr;
  }

  .presentation-toolbar__compact-readout {
    grid-column: 1 / -1;
    order: -1;
  }

  .presentation-toolbar__notes-head,
  .card-head,
  .identity-head,
  .followup-history-head,
  .kanban-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .chart-row {
    grid-template-columns: 56px minmax(0, 1fr) 44px;
    gap: 8px;
  }
}
