:root {
  --bg: #d9dbd5;
  --ink: #111b21;
  --muted: #667781;
  --brand: #008069;
  --brand-strong: #075e54;
  --bubble-left: #ffffff;
  --bubble-right: #d9fdd3;
  --system: #fff3c4;
  --line: rgba(17, 27, 33, 0.08);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  --wa-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23d2d7db' stroke-width='1.2' opacity='.55'%3E%3Ccircle cx='24' cy='24' r='11'/%3E%3Cpath d='M65 18h18v12H65z'/%3E%3Cpath d='M108 20c9 0 16 7 16 16s-7 16-16 16-16-7-16-16 7-16 16-16z'/%3E%3Cpath d='M18 78c0-9 7-16 16-16h18v24H34c-9 0-16-7-16-8z'/%3E%3Cpath d='M70 70l18 18-18 18-18-18z'/%3E%3Cpath d='M116 74h22v22h-22z'/%3E%3Cpath d='M26 120h32v16H26z'/%3E%3Cpath d='M86 118c0-10 8-18 18-18s18 8 18 18'/%3E%3Cpath d='M126 126l10 10'/%3E%3C/g%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, #7dcd2f 0%, #1d6d3f 100%);
}

body.chat-mode {
  background: var(--bg);
}

.page-shell {
  width: 100%;
  margin: 0;
  padding: 0;
}

.session-block-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.session-block-card {
  width: min(92vw, 480px);
  padding: 28px 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 46px rgba(7, 94, 84, 0.12);
  text-align: center;
}

.session-block-card h1 {
  margin: 0 0 12px;
  font-size: 1.5rem;
}

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

body.chat-mode .page-shell {
  width: 100%;
  margin: 0;
  padding: 0;
}

.hero {
  display: block;
  min-height: 100vh;
}

.intro-screen {
  min-height: 100vh;
  background: #f7f8fa;
}

.feature-screen {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(37, 211, 102, 0.18), transparent 28%),
    linear-gradient(180deg, #f7fbf8 0%, #eef6f1 100%);
}

.tool-screen,
.consent-screen {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(0, 128, 105, 0.16), transparent 26%),
    linear-gradient(180deg, #f7fbf8 0%, #eef6f1 100%);
}

.intro-topbar {
  display: flex;
  align-items: center;
  padding: 20px 18px;
  background: var(--brand);
  color: white;
}

.intro-body {
  display: grid;
  gap: 18px;
  padding: 28px 22px 36px;
}

.feature-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 18px;
  background: linear-gradient(135deg, var(--brand-strong), var(--brand));
  color: white;
}

.feature-body {
  display: grid;
  gap: 18px;
  padding: 28px 22px 36px;
}

.intro-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.98rem;
  max-width: 40ch;
}

.intro-kicker {
  margin: 0;
  color: var(--brand-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feature-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.98rem;
  max-width: 44ch;
}

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

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

.action-grid,
.quick-actions {
  display: grid;
  gap: 12px;
}

.feature-card {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  background: white;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.05);
}

.feature-card strong {
  font-size: 0.98rem;
}

.feature-card span {
  color: var(--muted);
  line-height: 1.5;
}

.resource-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  background: white;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.resource-card-primary {
  background: linear-gradient(135deg, rgba(0, 128, 105, 0.12), rgba(255, 255, 255, 0.98));
}

.resource-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.02rem;
}

.resource-card span {
  color: var(--muted);
  line-height: 1.55;
}

.action-card,
.quick-tip {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(7, 94, 84, 0.08);
}

.action-card.accent {
  background: linear-gradient(135deg, rgba(0, 128, 105, 0.14), rgba(37, 211, 102, 0.16));
}

.action-card strong,
.quick-tip strong {
  font-size: 1rem;
}

.action-card span,
.quick-tip span {
  color: var(--muted);
  line-height: 1.55;
}

.intro-button {
  width: 100%;
}

.hero-copy,
.viewer,
.floating-panel {
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 0;
  background: transparent;
  min-height: 100vh;
}

.eyebrow,
.card-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.72rem;
  font-weight: 800;
}

.eyebrow {
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 10px;
}

.card-label {
  color: var(--brand-strong);
}

.start-screen {
  width: 100%;
  min-height: 100vh;
  background: #f7f8fa;
}

.start-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 18px;
  background: var(--brand);
  color: white;
}

.start-description {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.98rem;
  text-align: left;
  max-width: 34ch;
}

.mock-back {
  font-size: 1.3rem;
}

.start-back {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.3rem;
  padding: 0;
}

.mock-title {
  font-size: 1.06rem;
  font-weight: 700;
}

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

.brand-logo {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
}

.start-body {
  padding: 28px 22px 36px;
}

.mock-uploader {
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  text-align: left;
}

.upload-top,
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill,
.participant-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 700;
}

.pill {
  background: rgba(0, 128, 105, 0.12);
  color: var(--brand-strong);
}

.pill.subtle,
.participant-chip {
  background: rgba(17, 27, 33, 0.06);
  color: var(--muted);
}

.dropzone {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 170px;
  border-radius: 18px;
  border: 2px dashed rgba(0, 128, 105, 0.28);
  background: #f8faf9;
  text-align: center;
  padding: 26px 20px;
  cursor: pointer;
  margin-top: 14px;
}

.dropzone input {
  display: none;
}

.dropzone-title {
  font-size: 1.08rem;
  font-weight: 800;
}

.dropzone-hint,
.muted,
.status {
  color: var(--muted);
}

.dropzone-hint {
  line-height: 1.45;
}

.primary-button {
  appearance: none;
  border: 0;
  border-radius: 18px;
  margin-top: 16px;
  padding: 16px 18px;
  font: inherit;
  font-weight: 800;
  color: white;
  background: linear-gradient(135deg, var(--brand), #02a884);
  cursor: pointer;
}

.secondary-button {
  appearance: none;
  border: 1px solid rgba(0, 128, 105, 0.16);
  border-radius: 18px;
  margin-top: 16px;
  padding: 16px 18px;
  font: inherit;
  font-weight: 800;
  color: var(--brand-strong);
  background: rgba(0, 128, 105, 0.08);
  cursor: pointer;
}

.primary-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.compact-button {
  margin-top: 0;
}

.progress-card {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(17, 27, 33, 0.04);
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-size: 0.92rem;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(17, 27, 33, 0.08);
}

.progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #25d366);
  transition: width 180ms ease;
}

.progress-card.processing .progress-bar {
  width: 92%;
  background-size: 200% 100%;
  animation: progressPulse 1.2s linear infinite;
}

.dashboard {
  display: block;
  margin-top: 0;
}

.hidden {
  display: none !important;
}

.viewer {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background: linear-gradient(rgba(230, 221, 212, 0.88), rgba(230, 221, 212, 0.88)), var(--wa-pattern);
  background-size: auto, 160px 160px;
}

body:not(.chat-mode) .viewer {
  border-radius: 30px;
}

.viewer-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: max(10px, env(safe-area-inset-top)) 12px 10px;
  background: var(--brand);
  color: white;
}

.viewer-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.top-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: white;
  font-size: 1.25rem;
  padding: 0;
  flex-shrink: 0;
}

.top-icon:disabled {
  opacity: 0.55;
  cursor: wait;
}

.viewer-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.82rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.viewer-topbar h2 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.viewer-subtitle,
.viewer-topbar .muted {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.76rem;
}

#results-count {
  margin: 0;
  max-width: 96px;
  text-align: right;
  line-height: 1.15;
  font-size: 0.78rem;
  font-weight: 500;
  flex-shrink: 0;
}

.chat-feed {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: calc(100vh - 68px);
  overflow: auto;
  padding: 8px 6px 22px;
}

.context-gap {
  margin: 6px auto 2px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.loading-banner {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0 auto;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(225, 245, 254, 0.96);
  color: #54656f;
  font-size: 0.78rem;
  font-weight: 700;
}

.unlock-banner {
  position: sticky;
  top: 8px;
  z-index: 3;
  display: grid;
  gap: 10px;
  margin: 0 auto;
  width: min(92%, 420px);
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(7, 94, 84, 0.12);
  text-align: center;
}

.unlock-banner strong {
  font-size: 0.95rem;
}

.day-group {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  margin: 10px 0 4px;
}

.day-divider {
  height: 1px;
  background: rgba(17, 27, 33, 0.08);
}

.day-label {
  margin: 0;
  padding: 5px 9px;
  border-radius: 8px;
  background: rgba(225, 245, 254, 0.96);
  color: #54656f;
  font-size: 0.72rem;
  font-weight: 700;
}

.message-row {
  display: flex;
}

.message-row.outgoing {
  justify-content: flex-end;
}

.message-row.system {
  justify-content: center;
}

.bubble {
  max-width: min(72ch, 86%);
  padding: 6px 8px 5px;
  border-radius: 7.5px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.16);
}

.message-row.incoming .bubble {
  background: var(--bubble-left);
  border-top-left-radius: 0;
}

.message-row.outgoing .bubble {
  background: var(--bubble-right);
  border-top-right-radius: 0;
}

.message-row.system .bubble {
  background: var(--system);
  border-radius: 7px;
  box-shadow: none;
  text-align: center;
}

.message-row.matched .bubble {
  outline: 2px solid rgba(37, 211, 102, 0.35);
}

.message-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 1px;
  color: #8696a0;
  font-size: 0.7rem;
}

.message-author {
  font-weight: 700;
  color: var(--ink);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-text {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.3;
  font-size: 0.98rem;
}

.message-text mark {
  background: #fff59d;
  color: inherit;
  padding: 0 2px;
  border-radius: 3px;
}

.message-type {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(17, 27, 33, 0.06);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.media-card {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.media-preview {
  width: min(100%, 360px);
  max-height: 360px;
  border-radius: 10px;
  background: rgba(17, 27, 33, 0.04);
}

audio.media-preview {
  height: 48px;
}

.media-link {
  color: #017561;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
}

.audio-player {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(17, 27, 33, 0.16);
  color: white;
}

.audio-element {
  display: none;
}

.audio-play {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: white;
  font-size: 0.9rem;
  cursor: pointer;
}

.audio-track {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
}

.audio-progress {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: inherit;
  background: white;
}

.audio-knob {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.audio-times {
  display: grid;
  gap: 2px;
  min-width: 42px;
  justify-items: end;
  font-size: 0.72rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.92);
}

.fab-toggle {
  position: absolute;
  right: 12px;
  bottom: 14px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #02a884);
  color: white;
  font-size: 2rem;
  box-shadow: 0 10px 24px rgba(0, 128, 105, 0.34);
}

@media (max-width: 380px) {
  .viewer-topbar {
    padding-left: 10px;
    padding-right: 10px;
  }

  .viewer-avatar {
    width: 30px;
    height: 30px;
    font-size: 0.76rem;
  }

  .viewer-topbar h2 {
    font-size: 0.92rem;
  }

  .viewer-subtitle {
    font-size: 0.72rem;
  }

  #results-count {
    max-width: 82px;
    font-size: 0.72rem;
  }

  .bubble {
    max-width: 90%;
  }
}

.fab-toggle.active {
  background: linear-gradient(135deg, var(--brand-strong), var(--brand));
}

.floating-panel {
  position: absolute;
  right: 10px;
  bottom: 78px;
  z-index: 4;
  width: min(94vw, 360px);
  max-height: min(78vh, 640px);
  overflow: auto;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 16px;
}

.panel-head h3 {
  margin: 4px 0 0;
  font-size: 1rem;
}

.panel-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 27, 33, 0.06);
  color: var(--ink);
  font-size: 1.5rem;
}

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

.mini-stat {
  padding: 12px;
  border-radius: 14px;
  background: #f7f8fa;
}

.mini-stat span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
}

.mini-stat strong {
  font-size: 1.1rem;
}

.panel-block {
  margin-top: 14px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.field span {
  font-size: 0.86rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(17, 27, 33, 0.08);
  border-radius: 12px;
  background: white;
  padding: 13px;
  font: inherit;
  color: var(--ink);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.location-result,
.location-events,
.consent-card,
.consent-loader-shell {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(7, 94, 84, 0.08);
}

.meta-preview {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 16px;
  background: #f7f8fa;
}

.meta-preview-image {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 14px;
  background: rgba(17, 27, 33, 0.08);
}

.meta-preview-copy {
  display: grid;
  gap: 6px;
}

.meta-preview-copy strong,
.meta-preview-copy span,
.meta-preview-copy small {
  display: block;
}

.meta-preview-copy span,
.meta-preview-copy small {
  color: var(--muted);
  line-height: 1.45;
}

.location-events {
  display: grid;
  gap: 14px;
}

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

.location-live-tools {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: #f7f8fa;
}

.location-live-tools .secondary-button {
  width: fit-content;
}

.event-card {
  padding: 14px;
  border-radius: 16px;
  background: #f7f8fa;
}

.event-card strong,
.event-card span {
  display: block;
}

.event-card strong {
  margin-bottom: 6px;
}

.event-card span {
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.92rem;
}

.event-link {
  color: var(--brand-strong);
  font-weight: 700;
  text-decoration: none;
}

.event-unlock-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--brand-strong);
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.consent-card {
  display: grid;
  gap: 18px;
}

.consent-card h1,
.consent-loader-shell h1 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.15;
}

.consent-points,
.consent-actions {
  display: grid;
  gap: 12px;
}

.consent-loader-shell {
  min-height: 100vh;
  width: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  justify-items: center;
  margin: 0 auto;
  padding: 24px;
  gap: 18px;
}

.consent-loader {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 6px solid rgba(0, 128, 105, 0.14);
  border-top-color: var(--brand);
  animation: spin 0.9s linear infinite;
}

.consent-preview-card {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  width: min(92vw, 360px);
  height: min(62vh, 420px);
  min-height: 220px;
  padding: 12px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 46px rgba(7, 94, 84, 0.12);
}

.consent-preview-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0;
  border-radius: 20px;
  background: rgba(17, 27, 33, 0.04);
}

.consent-preview-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100%;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(0, 128, 105, 0.14), rgba(37, 211, 102, 0.08));
  text-align: center;
  padding: 24px;
}

.consent-preview-fallback strong {
  font-size: 1.4rem;
  line-height: 1.2;
  color: var(--brand-strong);
}

.consent-title {
  max-width: 24ch;
  text-align: center;
}

.consent-copy {
  max-width: 34ch;
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.consent-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.consent-screen {
  display: grid;
  place-items: center;
}

.paywall-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 27, 33, 0.46);
}

.paywall-dialog {
  width: min(92vw, 420px);
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: 24px;
  background: white;
  box-shadow: 0 18px 46px rgba(7, 94, 84, 0.18);
}

.paywall-dialog h3 {
  margin: 0;
  font-size: 1.2rem;
}

.paywall-actions {
  display: grid;
  gap: 12px;
}

.paywall-footnote {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 320px;
  text-align: center;
  color: var(--muted);
}

@keyframes progressPulse {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: 0 0;
  }
}

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

@media (min-width: 900px) {
  .page-shell {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .start-screen {
    width: 100%;
  }

  .intro-body,
  .feature-body {
    max-width: 760px;
  }

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

  .resource-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

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

  .start-body {
    padding: 34px 28px 42px;
  }

  .mock-uploader {
    padding: 22px;
  }

  .viewer-topbar {
    padding: max(12px, env(safe-area-inset-top)) 16px 12px;
    gap: 14px;
  }

  .viewer-avatar {
    width: 38px;
    height: 38px;
    font-size: 0.86rem;
  }

  .viewer-topbar h2 {
    font-size: 1.04rem;
  }

  .viewer-subtitle {
    font-size: 0.8rem;
  }

  #results-count {
    max-width: none;
    font-size: 0.82rem;
  }

  .chat-feed {
    padding: 12px 22px 30px;
  }
}
