:root {
  color-scheme: light;
  --ink: #16201d;
  --muted: #5d6865;
  --paper: #f5f7f5;
  --surface: #ffffff;
  --line: #dce3df;
  --line-strong: #a8b5af;
  --teal: #0f766e;
  --teal-dark: #115e59;
  --coral: #c2410c;
  --gold: #b7791f;
  --blue: #2563eb;
  --shadow: 0 12px 34px rgba(22, 32, 29, 0.08);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  min-height: 100%;
  margin: 0;
}

body {
  background: #f4f6f5;
  color: var(--ink);
}

.startup-recovery {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px;
}

.startup-recovery-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  max-width: 480px;
  padding: 28px;
  width: 100%;
}

.startup-recovery-panel h1,
.startup-recovery-panel p {
  margin: 0;
}

.startup-recovery-panel p {
  color: var(--muted);
  line-height: 1.5;
}

.startup-recovery-panel button {
  background: var(--teal);
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font-weight: 750;
  min-height: 46px;
  padding: 10px 16px;
}

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

button {
  border: 0;
}

a {
  color: inherit;
}

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

.investor-shell {
  background: #f7f8f7;
}

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

.brand {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  letter-spacing: 0;
  width: 34px;
}

.brand-title {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-title strong {
  font-size: 14px;
  line-height: 1.15;
}

.brand-title span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.nav-links {
  display: flex;
  gap: 10px;
}

.nav-links a,
.text-link {
  border-bottom: 1px solid transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a:hover,
.text-link:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.home {
  display: grid;
  gap: 28px;
  margin: 0 auto;
  max-width: 1180px;
  padding: 48px 28px;
}

.home-band {
  align-items: stretch;
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
}

.home-copy {
  align-content: center;
  display: grid;
  gap: 18px;
}

.eyebrow {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-copy h1,
.gate-copy h1 {
  font-size: clamp(36px, 6vw, 76px);
  line-height: 0.95;
  margin: 0;
  max-width: 760px;
}

.home-copy p,
.gate-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  margin: 0;
  max-width: 680px;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.button,
.ghost-button,
.danger-button,
.icon-button {
  align-items: center;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 750;
  justify-content: center;
  min-height: 42px;
  text-decoration: none;
  transition:
    background 120ms ease,
    border-color 120ms ease,
    transform 120ms ease;
}

.button {
  background: var(--teal);
  color: #fff;
  padding: 0 16px;
}

.button:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

.button:disabled {
  background: #9ab7b2;
  cursor: not-allowed;
  transform: none;
}

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

.ghost-button:hover {
  border-color: var(--ink);
}

.danger-button {
  background: #b42318;
  color: #fff;
  padding: 0 14px;
}

.danger-button:hover {
  background: #8f1d14;
  transform: translateY(-1px);
}

.danger-button:disabled,
.ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.icon-button {
  aspect-ratio: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  width: 42px;
}

.icon-button:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.demo-window,
.gate-form,
.admin-token,
.admin-commandbar,
.upload-panel,
.admin-panel,
.chat-panel,
.slide-stage {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.demo-window {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.demo-window header,
.panel-header {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.status-pill,
.metric-pill {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 760;
  min-height: 28px;
  padding: 0 10px;
  white-space: nowrap;
}

.status-pill {
  background: #e7f6f2;
  color: var(--teal-dark);
}

.status-pill.danger {
  background: #fee4df;
  color: #9f1f17;
}

.status-pill.warning {
  background: #fff1cc;
  color: #7c4a03;
}

.metric-pill {
  background: #fff7e7;
  color: #8a4b0a;
}

.demo-slide {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(194, 65, 12, 0.08)),
    #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  min-height: 360px;
  padding: 34px;
}

.demo-slide h2 {
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1;
  margin: 0 0 18px;
}

.demo-slide p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
  margin: 0;
  max-width: 520px;
}

.demo-stats {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-tile {
  border-left: 3px solid var(--teal);
  display: grid;
  gap: 4px;
  padding-left: 12px;
}

.stat-tile strong {
  font-size: 22px;
}

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

.gate {
  display: grid;
  gap: clamp(36px, 7vw, 92px);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  margin: 0 auto;
  max-width: 1120px;
  padding: 44px 28px;
}

.docsend-gate {
  align-items: center;
  min-height: 100vh;
  padding-bottom: 32px;
  padding-top: 32px;
}

.gate-copy {
  align-content: center;
  display: grid;
  gap: 18px;
}

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

.docsend-gate .gate-copy h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
}

.gate-preview-shell {
  max-width: 520px;
  padding-top: 8px;
}

.gate-document-card {
  aspect-ratio: 16 / 9;
  background: #15201d;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(22, 32, 29, 0.16);
  color: #fff;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(24px, 4vw, 40px);
}

.gate-document-topline,
.gate-document-footer {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.gate-document-topline > span:last-child,
.gate-document-footer span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
}

.gate-document-title {
  align-content: center;
  display: grid;
  gap: 10px;
}

.gate-document-title .eyebrow {
  color: #9fd2ca;
}

.gate-document-title h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  margin: 0;
}

.gate-document-title p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  margin: 0;
}

.gate-form-heading {
  display: grid;
  gap: 6px;
}

.gate-form-heading h2 {
  font-size: 22px;
  line-height: 1.15;
  margin: 0;
}

.gate-form-heading p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  margin: 0;
  overflow-wrap: anywhere;
}

.gate-access-code {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.gate-access-code summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.gate-access-code .field {
  margin-top: 10px;
}

.gate-form,
.admin-token,
.upload-panel,
.admin-panel,
.chat-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.field input,
.field textarea,
.field select {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  min-height: 42px;
  padding: 10px 12px;
  width: 100%;
}

.field textarea {
  line-height: 1.45;
  min-height: 86px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
  outline: none;
}

.share-link-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto auto;
}

[data-copy-state="copied"] {
  border-color: var(--teal);
  color: var(--teal-dark);
  font-size: 0;
}

[data-copy-state="copied"]::after {
  content: "Copied";
  font-size: 0.875rem;
}

[data-copy-state="failed"] {
  border-color: #b42318;
  color: #b42318;
  font-size: 0;
}

[data-copy-state="failed"]::after {
  content: "Copy failed";
  font-size: 0.875rem;
}

.checkbox-row {
  align-items: center;
  color: var(--ink);
  display: flex;
  gap: 10px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}

.checkbox-row input {
  accent-color: var(--teal);
  height: 18px;
  margin: 0;
  width: 18px;
}

.checkbox-row.compact {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.nested-panel,
.material-checklist,
.detail-panel,
.detail-section {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding-top: 14px;
}

.detail-panel {
  margin-top: 2px;
}

.transcript-card .answer-preview {
  white-space: pre-wrap;
}

.material-checklist > div {
  display: grid;
  gap: 10px;
  max-height: 220px;
  overflow: auto;
  padding-right: 2px;
}

.error-text {
  color: #b42318;
  font-size: 13px;
  margin: 0;
}

.success-text {
  color: var(--teal-dark);
  font-size: 13px;
  margin: 0;
}

.viewer {
  display: grid;
  gap: 12px;
  grid-template-columns: 184px minmax(0, 1fr) minmax(300px, 360px);
  grid-template-rows: auto minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  padding: 12px;
}

.viewer-topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 14px;
  grid-column: 1 / -1;
  justify-content: space-between;
  min-height: 58px;
  padding: 9px 12px;
}

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

.viewer-title > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.viewer-title strong {
  font-size: 14px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viewer-title span:not(.viewer-logo) {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.viewer-logo {
  align-items: center;
  background: var(--ink);
  border-radius: 7px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 850;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.viewer-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.viewer-actions .ghost-button {
  min-height: 36px;
  padding: 0 12px;
}

.data-room-trigger {
  display: none;
}

.viewer-actions .active-viewer-action {
  background: #eef6f4;
  border-color: #9ec8c1;
  color: var(--teal-dark);
}

.investor-tabs {
  align-items: center;
  background: rgba(10, 19, 18, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / -1;
  padding: 8px;
}

.investor-tabs a {
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 780;
  min-height: 34px;
  padding: 8px 10px;
  text-decoration: none;
}

.investor-tabs a:hover,
.investor-tabs a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.investor-tabs .share-room-link {
  margin-left: auto;
}

.slide-rail {
  align-content: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  padding: 8px;
}

.room-index-heading {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 2px;
  padding: 4px 4px 10px;
}

.room-index-heading strong {
  font-size: 14px;
}

.room-index-heading .row-meta {
  overflow-wrap: anywhere;
}

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

.room-folder-list,
.room-document-list {
  display: grid;
  gap: 8px;
}

.room-folder {
  display: grid;
  gap: 7px;
}

.room-folder-heading {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 11px;
  gap: 6px;
  justify-content: space-between;
  padding: 3px 4px 0;
  text-transform: uppercase;
}

.room-folder-heading span {
  background: #eef1f0;
  border-radius: 4px;
  min-width: 20px;
  padding: 2px 5px;
  text-align: center;
}

.room-folder-heading strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.room-document {
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}

.room-document.active {
  background: #f0f8f6;
  border-color: var(--teal);
  box-shadow: inset 3px 0 0 var(--teal);
}

.room-document-summary {
  align-items: center;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 8px;
  grid-template-columns: 58px minmax(0, 1fr);
  padding: 7px;
  text-align: left;
  width: 100%;
}

.room-document-summary:disabled {
  cursor: default;
  opacity: 0.65;
}

.room-document-summary .rail-thumb {
  width: 58px;
}

.room-document-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.room-document-copy strong {
  display: -webkit-box;
  font-size: 12px;
  line-height: 1.3;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.room-document-copy span {
  color: var(--muted);
  font-size: 10px;
}

.room-page-list {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 7px;
}

.room-page {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
  display: grid;
  gap: 3px;
  padding: 4px;
}

.room-page.active {
  border-color: var(--teal);
  box-shadow: 0 0 0 1px var(--teal);
}

.room-page > span:last-child {
  color: var(--muted);
  font-size: 10px;
}

.rail-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 7px;
  min-height: 132px;
  padding: 7px;
  text-align: left;
}

.rail-item:hover,
.rail-item.active {
  border-color: var(--teal);
}

.rail-item.active {
  background: #f0f8f6;
  box-shadow: inset 3px 0 0 var(--teal);
}

.rail-thumb {
  align-items: center;
  aspect-ratio: 16 / 9;
  background: #f0f2f1;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  justify-items: center;
  overflow: hidden;
}

.rail-thumb img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.rail-thumb-placeholder {
  color: var(--muted);
  font-size: 22px;
  font-weight: 850;
}

.rail-num {
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rail-title {
  display: -webkit-box;
  font-size: 12px;
  font-weight: 760;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.25;
  overflow: hidden;
}

.slide-stage {
  align-content: stretch;
  box-shadow: none;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
  overflow: hidden;
}

.slide-stage:fullscreen {
  background: #f8faf9;
  border-radius: 0;
  padding: 0;
}

.slide-stage:fullscreen .slide-image {
  max-height: calc(100vh - 128px);
}

.slide-toolbar {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-height: 56px;
  padding: 10px 14px;
}

.slide-toolbar > div:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.slide-toolbar > div:first-child strong {
  overflow-wrap: anywhere;
}

.slide-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.slide-body {
  align-content: center;
  background: #eef1f0;
  display: grid;
  min-height: 0;
  overflow: auto;
  padding: clamp(12px, 2.4vw, 28px);
}

.toolbar-button {
  min-height: 38px;
  padding: 0 11px;
}

.slide-frame {
  display: grid;
  height: 100%;
  min-height: 0;
  place-items: center;
  position: relative;
  width: 100%;
}

.slide-image {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 14px 42px rgba(24, 33, 31, 0.14);
  display: block;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  place-self: center;
}

.watermark-overlay {
  color: rgba(24, 33, 31, 0.16);
  font-size: clamp(18px, 3vw, 42px);
  font-weight: 850;
  left: 50%;
  letter-spacing: 0;
  max-width: 86%;
  overflow-wrap: anywhere;
  pointer-events: none;
  position: absolute;
  text-align: center;
  text-transform: lowercase;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
  user-select: none;
}

.text-slide {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  box-sizing: border-box;
  gap: 20px;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: auto;
  padding: 40px;
  width: min(100%, 960px);
}

.text-slide h2 {
  font-size: 36px;
  line-height: 1.1;
  margin: 0;
  overflow-wrap: anywhere;
}

.text-slide p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
  max-width: 820px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.slide-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 44px;
  padding: 10px 14px;
}

.chat-panel {
  align-content: stretch;
  box-shadow: none;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  padding: 14px;
}

.mobile-chat-toggle,
.mobile-chat-close {
  display: none;
}

.chat-thread {
  align-content: start;
  display: grid;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}

.side-panel-tabs {
  background: #eef1f0;
  border-radius: 7px;
  display: grid;
  gap: 3px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 3px;
}

.side-panel-tab {
  background: transparent;
  border-radius: 5px;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 760;
  min-height: 34px;
  padding: 6px 10px;
}

.side-panel-tab.active {
  background: #fff;
  box-shadow: 0 1px 4px rgba(22, 32, 29, 0.12);
  color: var(--ink);
}

.investor-chat-view {
  display: grid;
  gap: 12px;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
}

.chat-empty {
  align-content: center;
  align-self: center;
  display: grid;
  gap: 6px;
  justify-self: center;
  max-width: 260px;
  padding: 24px 12px;
  text-align: center;
}

.chat-empty strong {
  font-size: 14px;
}

.chat-empty p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}

.materials-list {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 8px;
  scroll-margin-top: 18px;
  padding-bottom: 12px;
}

.materials-list h3,
.faq-list h3 {
  font-size: 12px;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.faq-list {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding-bottom: 12px;
}

.faq-list > div {
  display: grid;
  gap: 10px;
}

.faq-item {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
  padding-top: 10px;
}

.faq-question {
  font-size: 13px;
  font-weight: 780;
  line-height: 1.35;
}

.faq-item p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
  white-space: pre-wrap;
}

.suggested-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.suggestion-chip {
  background: #f7fbfa;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.2;
  min-height: 34px;
  padding: 7px 10px;
}

.suggestion-chip:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.suggestion-chip.brief-chip {
  background: #e8f3f4;
  border-color: #9ec8ca;
  color: var(--ink);
}

.material-category-list,
.material-category {
  align-content: start;
  display: grid;
  gap: 10px;
}

.material-category {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.material-category:first-child {
  border-top: 0;
  padding-top: 0;
}

.material-category-heading {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.material-category-heading strong {
  font-size: 13px;
}

.folder-count {
  background: #eef1f0;
  border-radius: 4px;
  color: var(--muted);
  font-size: 11px;
  min-width: 22px;
  padding: 2px 6px;
  text-align: center;
}

.data-room-item-list {
  align-content: start;
  display: grid;
  gap: 6px;
}

.data-room-item {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 9px;
  grid-template-columns: 44px minmax(0, 1fr);
  padding: 8px;
  text-align: left;
  text-decoration: none;
  width: 100%;
}

.data-room-item:hover,
.data-room-item.active {
  border-color: var(--teal);
}

.data-room-item.active {
  background: #f0f8f6;
  box-shadow: inset 3px 0 0 var(--teal);
}

.data-room-item:disabled {
  cursor: default;
  opacity: 0.6;
}

.data-room-file-icon {
  align-items: center;
  background: #eef1f0;
  border-radius: 5px;
  color: var(--muted);
  display: flex;
  font-size: 9px;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  width: 44px;
}

.data-room-item-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.data-room-item-copy strong {
  font-size: 12px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.data-room-item-copy span {
  color: var(--muted);
  font-size: 10px;
}

.data-room-item-copy .data-room-item-description {
  color: #3f4a47;
  display: -webkit-box;
  font-size: 11px;
  line-height: 1.35;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.stage-video {
  background: #111;
  border-radius: 6px;
  display: block;
  max-height: 100%;
  max-width: 100%;
  width: min(100%, 1080px);
}

.spreadsheet-page {
  align-content: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 18px;
  height: 100%;
  max-width: 1120px;
  overflow: hidden;
  padding: 24px;
  width: 100%;
}

.spreadsheet-page h2 {
  font-size: 22px;
  margin: 0;
}

.spreadsheet-scroll {
  min-height: 0;
  overflow: auto;
}

.spreadsheet-scroll table {
  border-collapse: collapse;
  font-size: 13px;
  min-width: 100%;
  width: max-content;
}

.spreadsheet-scroll th,
.spreadsheet-scroll td {
  border: 1px solid var(--line);
  padding: 9px 12px;
  text-align: left;
  white-space: nowrap;
}

.spreadsheet-scroll th {
  background: #eef3f1;
  font-weight: 800;
  position: sticky;
  top: 0;
}

.spreadsheet-scroll tbody tr:nth-child(even) {
  background: #f8faf9;
}

.material-card {
  display: grid;
  gap: 8px;
}

.material-link {
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 3px;
  margin-top: 6px;
  padding: 9px 10px;
  text-decoration: none;
}

.material-link:hover {
  border-color: var(--teal);
}

.view-only-link {
  background: #fbfcfc;
}

.disabled-link {
  color: var(--muted);
}

.policy-note {
  background: #f3faf8;
  border: 1px solid #c9e4dd;
  border-radius: 8px;
  color: var(--teal-dark);
  display: grid;
  gap: 4px;
  line-height: 1.35;
  padding: 11px 12px;
}

.policy-note strong {
  font-size: 13px;
}

.policy-note span {
  color: var(--muted);
  font-size: 13px;
}

.policy-note.compact {
  margin-top: 2px;
  padding: 9px 10px;
}

.material-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  overflow: hidden;
}

.material-preview.unavailable {
  border-style: dashed;
  padding: 9px 10px;
}

.material-preview summary {
  align-items: center;
  background: #fbfcfc;
  cursor: pointer;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-height: 38px;
  padding: 9px 10px;
}

.material-preview summary span:first-child {
  color: var(--ink);
  font-size: 13px;
  font-weight: 780;
}

.material-preview-slides {
  background: #fff;
  display: grid;
  gap: 12px;
  max-height: 460px;
  overflow: auto;
  padding: 10px;
}

.material-preview-video {
  background: #050b12;
  display: block;
  max-height: 420px;
  width: 100%;
}

.material-preview-slide {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  padding-top: 12px;
}

.material-preview-slide:first-child {
  border-top: 0;
  padding-top: 0;
}

.material-preview-image {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: block;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  width: 100%;
}

.material-preview-text {
  background: #f7fbfa;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow: auto;
  padding: 12px;
}

.material-preview-text p,
.material-preview-copy p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
  white-space: pre-wrap;
}

.material-preview-copy {
  display: grid;
  gap: 4px;
}

.material-preview-copy strong {
  font-size: 12px;
  line-height: 1.3;
}

.document-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.document-question-chip {
  font-size: 11px;
  min-height: 30px;
  padding: 6px 8px;
}

.chat-message {
  border-radius: 8px;
  display: grid;
  gap: 8px;
  line-height: 1.45;
  padding: 12px;
}

.chat-message.user {
  background: #eaf7f4;
}

.chat-message.assistant {
  background: #f3f0e8;
}

.assistant-answer {
  display: grid;
  gap: 8px;
}

.assistant-answer p {
  margin: 0;
}

.assistant-answer .assistant-heading {
  font-weight: 780;
}

.assistant-list-item {
  display: grid;
  gap: 7px;
  grid-template-columns: 8px minmax(0, 1fr);
}

.assistant-list-item::before {
  color: var(--teal-dark);
  content: "\2022";
  font-weight: 800;
}

.chat-message .assistant-answer strong {
  font-size: inherit;
  text-transform: none;
}

.chat-message strong {
  font-size: 12px;
  text-transform: uppercase;
}

.citation-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.citation {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  padding: 4px 8px;
}

.citation-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  padding: 4px 0;
  text-transform: uppercase;
}

.chat-form {
  display: grid;
  gap: 10px;
}

.chat-form textarea {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  min-height: 86px;
  padding: 10px 12px;
  resize: vertical;
}

.chat-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
  outline: none;
}

.chat-submit-row {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.chat-submit-row .button {
  min-height: 36px;
}

.side-materials {
  align-content: start;
  display: grid;
  gap: 12px;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.admin {
  display: grid;
  gap: 22px;
  margin: 0 auto;
  max-width: 1480px;
  padding: 28px 32px 64px;
}

.analytics-admin {
  max-width: 1600px;
}

.analytics-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(280px, 0.8fr) minmax(520px, 1.5fr);
  margin: 0 auto;
  width: 100%;
}

.analytics-layout #viewer-analytics {
  grid-row: span 2;
}

.analytics-layout .admin-section {
  margin: 0;
}

.admin-commandbar {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.admin-commandbar h1 {
  font-size: 28px;
  letter-spacing: 0;
  line-height: 1.1;
  margin: 4px 0;
}

.admin-access-row {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(240px, 420px) auto;
}

.hosted-admin .admin-access-row {
  display: none;
}

.admin-access-row .button {
  justify-self: start;
  min-width: 140px;
  width: 180px;
}

.admin-workspace {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: 180px minmax(0, 1fr);
}

.admin-nav {
  display: grid;
  gap: 4px;
  position: sticky;
  top: 88px;
}

.admin-nav a {
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 12px;
  text-decoration: none;
}

.admin-nav a:hover,
.admin-nav a:focus-visible {
  background: #fff;
  border-left-color: var(--teal);
  color: var(--ink);
  outline: none;
}

.admin-content {
  display: grid;
  gap: 42px;
  min-width: 0;
}

.admin-section {
  display: grid;
  gap: 16px;
  scroll-margin-top: 88px;
}

.admin-section-heading {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 5px;
  padding-bottom: 12px;
}

.admin-section-heading h2 {
  font-size: 20px;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0;
}

.admin-section-heading p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
}

.admin-section-grid {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-section-grid.activity-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.admin-panel,
.upload-panel {
  box-shadow: none;
  min-width: 0;
}

.disclosure-panel {
  padding-top: 0;
}

.disclosure-panel summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  list-style: none;
  min-height: 42px;
}

.disclosure-panel summary::-webkit-details-marker {
  display: none;
}

.disclosure-panel summary::after {
  color: var(--muted);
  content: "+";
  font-size: 18px;
  font-weight: 600;
  margin-left: 10px;
}

.disclosure-panel[open] summary::after {
  content: "-";
}

.disclosure-panel summary .row-meta {
  margin-left: auto;
}

.disclosure-content {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding-top: 14px;
}

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

.metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 14px;
}

.metric strong {
  font-size: 26px;
}

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

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

.row-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 12px;
}

.row-card header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.row-title {
  font-size: 14px;
  font-weight: 780;
  line-height: 1.25;
}

.row-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.question-text {
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
}

.answer-preview {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.question-filter-row,
.question-pills,
.question-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.question-filter-row {
  margin-bottom: 12px;
}

.ghost-button.active-filter {
  background: #e8f3f4;
  border-color: #9ec8ca;
  color: var(--ink);
}

.question-actions {
  margin-top: 2px;
}

.generated-output-list {
  display: grid;
  gap: 14px;
}

.generated-output {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding-top: 14px;
}

.generated-output:first-child {
  border-top: 0;
  padding-top: 0;
}

.brief-output {
  background: #f8fbfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.brief-output p {
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  padding: 18px;
  text-align: center;
}

@media (max-width: 1100px) {
  .viewer,
  .home-band,
  .gate {
    grid-template-columns: 1fr;
  }

  .viewer {
    height: auto;
    min-height: auto;
    overflow: visible;
  }

  .investor-tabs .share-room-link {
    margin-left: 0;
  }

  .slide-rail {
    display: grid;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .page-thumbnail-list {
    display: flex;
    min-width: max-content;
  }

  .page-thumbnail-list .rail-item {
    min-width: 160px;
    width: 160px;
  }

  .room-folder-list {
    display: flex;
    min-width: max-content;
  }

  .room-folder {
    align-content: start;
    min-width: 230px;
  }

  .room-index-heading {
    position: sticky;
    left: 0;
    z-index: 2;
  }

  .slide-stage,
  .chat-panel {
    min-height: 560px;
  }

  .slide-stage {
    height: clamp(560px, 72vh, 680px);
  }

  .admin-workspace {
    grid-template-columns: 1fr;
  }

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

  .analytics-layout #viewer-analytics {
    grid-row: auto;
  }

  .admin-nav {
    background: #f4f6f5;
    display: flex;
    overflow-x: auto;
    padding: 6px 0;
    top: 68px;
    z-index: 10;
  }

  .admin-nav a {
    border-bottom: 2px solid transparent;
    border-left: 0;
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .admin-nav a:hover,
  .admin-nav a:focus-visible {
    border-bottom-color: var(--teal);
    border-left-color: transparent;
  }

  .admin-section-grid,
  .admin-section-grid.activity-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .viewer.mobile-chat-open::before {
    background: rgb(15 23 20 / 38%);
    content: "";
    inset: 0;
    position: fixed;
    z-index: 49;
  }

  .viewer {
    gap: 10px;
    grid-template-columns: 164px minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    padding: 10px;
  }

  .viewer-topbar {
    grid-column: 1 / -1;
  }

  .slide-rail {
    display: grid;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 8px;
  }

  .page-thumbnail-list {
    display: grid;
    min-width: 0;
  }

  .page-thumbnail-list .rail-item {
    min-width: 0;
    width: auto;
  }

  .slide-stage {
    height: auto;
    min-height: 0;
  }

  .chat-panel {
    bottom: 12px;
    height: auto;
    left: auto;
    max-height: none;
    min-height: 0;
    pointer-events: none;
    position: fixed;
    right: 12px;
    top: 12px;
    transform: translateX(calc(100% + 20px));
    transition: transform 160ms ease, visibility 0s linear 160ms;
    visibility: hidden;
    width: min(420px, calc(100vw - 24px));
    z-index: 50;
  }

  .viewer.mobile-chat-open .chat-panel {
    pointer-events: auto;
    transform: translateX(0);
    transition-delay: 0s;
    visibility: visible;
  }

  .mobile-chat-toggle,
  .mobile-chat-close,
  .data-room-trigger {
    display: inline-flex;
  }
}

@media (max-width: 760px) {
  .viewer.mobile-chat-open::before {
    background: rgb(15 23 20 / 38%);
    content: "";
    inset: 0;
    position: fixed;
    z-index: 49;
  }

  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }

  .nav-links {
    width: 100%;
  }

  .home,
  .gate,
  .admin,
  .viewer {
    padding: 16px;
  }

  .docsend-gate {
    align-content: start;
    align-items: start;
    gap: 20px;
    min-height: 100dvh;
    padding: 20px 16px 28px;
  }

  .gate-copy {
    gap: 12px;
  }

  .gate-copy > p {
    font-size: 15px;
    line-height: 1.45;
  }

  .gate-preview-shell {
    display: none;
  }

  .gate-form {
    gap: 12px;
    padding: 14px;
  }

  .gate-form .field input {
    font-size: 16px;
    min-height: 44px;
  }

  .admin-access-row {
    grid-template-columns: 1fr;
  }

  .viewer-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    grid-column: auto;
    min-height: 0;
    padding: 8px 10px;
  }

  .viewer-title strong {
    white-space: normal;
  }

  .viewer-actions {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
  }

  .viewer-actions .ghost-button {
    flex: 1 1 0;
    min-height: 34px;
    padding: 0 8px;
  }

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

  .panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .slide-toolbar,
  .slide-footer {
    align-items: center;
    flex-direction: row;
  }

  .share-link-row {
    grid-template-columns: 1fr;
  }

  .slide-stage {
    height: auto;
    max-height: none;
    min-height: 0;
  }

  .viewer {
    gap: 8px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 94px minmax(0, 1fr);
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    padding: 8px;
  }

  .slide-rail {
    display: grid;
    gap: 6px;
    grid-template-columns: 84px minmax(0, 1fr);
    height: 94px;
    overflow: hidden;
    padding: 6px;
  }

  .room-index-heading {
    align-content: center;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    padding: 4px 8px 4px 2px;
    position: static;
  }

  .room-index-heading .row-meta {
    display: -webkit-box;
    font-size: 10px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .page-thumbnail-list {
    gap: 6px;
    min-width: 0;
    overflow-x: auto;
  }

  .page-thumbnail-list .rail-item {
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 0;
    min-width: 104px;
    padding: 4px;
    width: 104px;
  }

  .room-folder {
    min-width: 210px;
  }

  .rail-title {
    display: none;
  }

  .rail-num {
    font-size: 10px;
  }

  .text-slide {
    padding: 14px;
  }

  .text-slide h2 {
    font-size: 20px;
  }

  .text-slide p {
    font-size: 13px;
    line-height: 1.45;
  }

  .slide-toolbar {
    gap: 8px;
    min-height: 48px;
    padding: 6px 8px;
  }

  .slide-toolbar > div:first-child strong {
    display: -webkit-box;
    font-size: 12px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .slide-toolbar .home-actions {
    flex-wrap: nowrap;
    gap: 4px;
    margin: 0;
  }

  .slide-toolbar .toolbar-button,
  .slide-toolbar .icon-button {
    min-height: 34px;
  }

  .slide-toolbar .icon-button {
    width: 34px;
  }

  .slide-body {
    padding: 8px;
  }

  .slide-footer .row-meta:first-child {
    display: none;
  }

  .slide-footer {
    min-height: 30px;
    padding: 6px 8px;
    justify-content: flex-end;
  }

  .mobile-chat-toggle,
  .mobile-chat-close,
  .data-room-trigger {
    display: inline-flex;
  }

  .chat-panel {
    border-radius: 8px 8px 0 0;
    bottom: 0;
    height: min(620px, calc(100dvh - 72px));
    left: 0;
    max-height: calc(100dvh - 72px);
    min-height: 0;
    overflow: hidden;
    pointer-events: none;
    position: fixed;
    right: 0;
    transform: translateY(100%);
    transition: transform 160ms ease, visibility 0s linear 160ms;
    visibility: hidden;
    z-index: 50;
  }

  .viewer.mobile-chat-open .chat-panel {
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
    visibility: visible;
  }

  .chat-panel .panel-header {
    align-items: center;
    flex-direction: row;
    padding-bottom: 8px;
  }

  .chat-thread {
    max-height: none;
    overflow: auto;
  }

  .investor-chat-view,
  .side-materials {
    min-height: 0;
    overflow: auto;
  }

  .chat-submit-row {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-commandbar {
    padding: 14px;
  }

  .admin-access-row .button {
    width: 100%;
  }

  .admin-commandbar .panel-header {
    align-items: flex-start;
  }

  .admin-nav {
    top: 0;
  }

  .material-preview summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .material-preview-slides {
    max-height: 320px;
  }

  .home-copy h1,
  .gate-copy h1 {
    font-size: 34px;
    line-height: 1.05;
  }

  .admin {
    gap: 14px;
    padding: 12px 12px 36px;
  }

  .analytics-layout {
    gap: 14px;
  }

  .admin-section {
    gap: 12px;
  }

  .row-card header {
    align-items: flex-start;
    flex-direction: column;
  }

  .row-card header .ghost-button {
    width: 100%;
  }
}
