:root {
  color-scheme: light;
  --navy: #1a1a2e;
  --ink: #111827;
  --muted: #6b7280;
  --surface: #ffffff;
  --paper: #ffffff;
  --line: #e2e2e7;
  --soft: #f5f5f7;
  --coral: #f97316;
  --violet: #7c3aed;
  --good: #111827;
  --shadow: 0 10px 30px rgba(16, 42, 67, 0.07);
  --focus: rgba(235, 118, 95, 0.48);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.site-header {
  width: min(1180px, calc(100% - 32px));
  margin: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 1.02rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand img {
  object-fit: contain;
  border-radius: 8px;
}
.brand strong {
  font-weight: 750;
}
.header-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.header-nav a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}
.header-nav a:hover {
  color: var(--navy);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mode-pill,
.tag,
.count-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mode-pill {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--good);
  padding: 7px 10px;
  background: #f5f5f7;
  border-radius: 99px;
}
.status-dot {
  width: 7px;
  height: 7px;
  background: var(--good);
  border-radius: 50%;
}
.icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--navy);
  font-size: 1.2rem;
}
main {
  flex: 1;
}
.page-section,
.detail-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}
.start-section {
  padding: 68px 0 78px;
}
.eyebrow,
.panel-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--violet);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  max-width: 780px;
  margin: 12px 0 16px;
  color: var(--navy);
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.065em;
}
h2 {
  color: var(--navy);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.lede {
  max-width: 590px;
  color: var(--muted);
  font-size: 1.15rem;
}
.process-strip {
  display: flex;
  align-items: center;
  max-width: 730px;
  margin: 52px 0 8px;
}
.process-status {
  max-width: 730px;
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0 0 30px;
}
.process-step {
  display: grid;
  grid-template-columns: 35px auto;
  column-gap: 9px;
  min-width: 110px;
  color: var(--muted);
}
.process-step span {
  grid-row: span 2;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.process-step b {
  font-size: 0.84rem;
  color: var(--ink);
}
.process-step small {
  font-size: 0.7rem;
  display: none;
}
.process-step.active span {
  background: linear-gradient(135deg, var(--violet), var(--coral));
  border-color: transparent;
  color: var(--paper);
  box-shadow: 0 0 0 4px rgba(235, 118, 95, 0.24);
}
.process-step.active b {
  color: var(--navy);
}
.process-step.done span {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--paper);
}
.process-step[aria-current="step"] span {
  box-shadow: 0 0 0 4px rgba(235, 118, 95, 0.16);
}
.process-line {
  height: 1px;
  background: var(--line);
  flex: 1;
  margin: 0 12px;
}
.source-columns {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}
.source-panel {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.source-panel-primary {
  background: var(--navy);
  color: #f3f4f6;
  border-color: var(--navy);
}
.source-panel-primary h2 {
  color: var(--paper);
}
.source-panel-primary .panel-kicker {
  color: #f97316;
}
.source-panel-primary p {
  color: #bdb9c3;
}
.source-panel h2 {
  margin: 10px 0 12px;
  font-size: 1.35rem;
}
.source-panel label {
  display: block;
  margin: 24px 0 8px;
  font-size: 0.83rem;
  font-weight: 700;
}
.input-row {
  display: flex;
  gap: 0;
}
.input-row input {
  min-width: 0;
  flex: 1;
}
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 28px;
  min-height: 40px;
}
.button {
  min-height: 40px;
  min-width: 40px;
  border: 1px solid transparent;
  border-radius: 28px;
  padding: 8px 15px;
  font-weight: 750;
  transition: background 0.15s ease;
}
.input-row input {
  border-radius: 28px 0 0 28px;
}
.input-row .button {
  border-radius: 0 28px 28px 0;
}

.button-primary,
#signInSubmit,
#stageOfficial,
#stagePdf {
  border: 1px solid transparent;
  color: #ffffff;
  background: linear-gradient(90deg, var(--coral), var(--violet)) no-repeat border-box;
}
.button-secondary {
  background: var(--paper);
  border-color: var(--navy);
  color: var(--navy);
}
.button-small {
  font-size: 0.82rem;
  white-space: nowrap;
  background: transparent;
  border-color: var(--line);
  color: var(--navy);
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.full-width {
  width: 100%;
  margin-top: 18px;
}
.field-help {
  font-size: 0.76rem !important;
  color: var(--muted) !important;
  margin: 8px 0 0;
}
.file-picker {
  display: flex !important;
  align-items: center;
  gap: 12px;
  border: 1px dashed var(--line);
  border-radius: 28px;
  padding: 13px;
  cursor: pointer;
  margin-top: 23px !important;
}
.file-picker:hover {
  border-color: var(--violet);
}
.file-picker small,
.file-picker b {
  display: block;
}
.file-picker small {
  font-size: 0.75rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 210px;
}
.file-picker input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.file-icon {
  font-size: 0.68rem;
  color: var(--coral);
  font-weight: 900;
  border: 1px solid var(--coral);
  padding: 4px;
}
.check-row {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
  font-weight: 400 !important;
  font-size: 0.82rem !important;
  color: var(--muted);
  margin: 17px 0 0 !important;
}
.check-row input {
  margin-top: 5px;
  accent-color: var(--navy);
  min-width: 16px;
  min-height: 16px;
}
.mock-message {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 28px;
  background: rgba(255, 255, 254, 0.1);
  font-size: 0.82rem;
  color: var(--coral);
}
.source-panel:not(.source-panel-primary) .mock-message {
  background: var(--soft);
  color: var(--good);
}
input:focus,
textarea:focus,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.boundary-note {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  max-width: 750px;
  margin-top: 23px;
  color: var(--muted);
  font-size: 0.76rem;
  opacity: .78;
}
.boundary-note > span:first-child {
  color: var(--violet);
  font-size: 1rem;
}
.prepared-section {
  padding: 74px 0 100px;
  border-top: 1px solid;
  border-image: linear-gradient(90deg, var(--coral), var(--violet)) 1;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}
.section-heading h2 {
  margin: 8px 0 0;
}
.count-label {
  color: var(--muted);
}
.section-intro {
  max-width: 650px;
  color: var(--muted);
  margin: 14px 0 35px;
}
.review-list {
  border-top: 1px solid;
  border-image: linear-gradient(90deg, var(--coral), var(--violet)) 1;
}
.briefs-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.briefs-search {
  flex: 1;
  min-width: 180px;
  max-width: 360px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 28px;
  font-size: 0.9rem;
  background: var(--surface, #fff);
  color: var(--navy, #1A1A2E);
}
.briefs-search:focus {
  outline: none;
  border-color: var(--violet, #7c3aed);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}
.briefs-sort {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 28px;
  font-size: 0.9rem;
  background: var(--surface, #fff);
  color: var(--navy, #1A1A2E);
  cursor: pointer;
}
.review-row {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 25px 0;
  border-bottom: 1px solid;
  border-image: linear-gradient(90deg, var(--coral), var(--violet)) 1;
}
.review-index {
  color: var(--coral);
  font-weight: 800;
  font-size: 0.85rem;
}
.review-copy h3 {
  margin: 9px 0 5px;
  color: var(--navy);
  font-size: 1.2rem;
}
.review-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.review-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.75rem;
}
.tag {
  display: inline-block;
  padding: 4px 7px;
  border-radius: 2px;
}
.tag-ready {
  color: var(--good);
  background: #f5f5f7;
}
.tag-unavailable {
  color: #6b7280;
  background: #f5f5f7;
}
.review-source {
  color: var(--muted);
  font-size: 0.73rem;
  margin-top: 11px;
}
.unavailable .review-copy {
  opacity: 0.65;
}
.detail-section {
  padding: 52px 0 90px;
}
.back-link {
  border: 0;
  background: none;
  padding: 0;
  color: var(--violet);
  font-weight: 750;
  min-height: 40px;
}
.detail-topline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 38px;
  color: var(--muted);
  font-size: 0.78rem;
}
.detail-section h2 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  max-width: 850px;
  margin: 14px 0 10px;
}
.detail-deck {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 680px;
}
.review-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0 45px;
}
.saved-state {
  color: var(--good);
  font-size: 0.8rem;
  font-weight: 700;
}
.decision-sections {
  max-width: 820px;
  border-top: 1px solid;
  border-image: linear-gradient(90deg, var(--coral), var(--violet)) 1;
}
.decision-block {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 15px;
  padding: 27px 0;
  border-bottom: 1px solid;
  border-image: linear-gradient(90deg, var(--coral), var(--violet)) 1;
}
.block-number {
  font-size: 0.8rem;
  color: var(--coral);
  font-weight: 800;
}
.decision-block h3 {
  font-size: 1.02rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.section-attribution {
  margin-bottom: 8px;
  color: var(--violet) !important;
  font-size: 0.72rem !important;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.section-body p {
  margin-bottom: 8px;
}
.decision-block p,
.decision-block li {
  color: var(--muted);
  font-size: 0.94rem;
}
.decision-block ul {
  margin: 0;
  padding-left: 18px;
}
.no-vote-note {
  display: flex;
  gap: 16px;
  max-width: 820px;
  border-radius: 28px;
  margin: 37px 0;
  padding: 18px 20px;
  background: #f5f5f7;
  border: 1px solid #e2e2e7;
  color: #111827;
}
.no-vote-note strong {
  color: var(--navy);
  white-space: nowrap;
}
.no-vote-note span {
  font-size: 0.87rem;
}
.notes-section {
  max-width: 820px;
  padding: 29px 0;
  border-top: 1px solid;
  border-bottom: 1px solid;
  border-image: linear-gradient(90deg, var(--coral), var(--violet)) 1;
}
.notes-heading {
  display: flex;
  justify-content: space-between;
}
.notes-heading h3 {
  margin: 0;
  color: var(--navy);
}
.notes-heading p {
  font-size: 0.76rem;
  color: var(--muted);
  margin: 3px 0 13px;
}
.notes-section textarea {
  display: block;
  margin-bottom: 10px;
  resize: vertical;
}
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: auto;
  padding: 24px 0 30px;
  border-top: 1px solid;
  border-image: linear-gradient(90deg, var(--coral), var(--violet)) 1;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.72rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 700px) {
  .site-header {
    width: calc(100% - 24px);
    flex-wrap: wrap;
    gap: 10px;
  }
  .header-nav {
    order: 3;
    width: 100%;
    margin: 2px 0 0;
    gap: 16px;
  }
  .mode-pill {
    font-size: 0.65rem;
  }
  .start-section {
    padding: 48px 0 60px;
  }
  .page-section,
  .detail-section {
    width: calc(100% - 24px);
  }
  h1 {
    font-size: clamp(2.65rem, 15vw, 4rem);
  }
  .process-strip {
    margin: 38px 0 8px;
  }
  .process-status {
    margin-bottom: 24px;
  }
  .process-step {
    grid-template-columns: 29px auto;
    min-width: 0;
  }
  .process-step span {
    width: 28px;
    height: 28px;
    font-size: 0.78rem;
  }
  .process-step small {
    display: none;
  }
  .process-line {
    margin: 0 7px;
  }
  .source-columns {
    grid-template-columns: 1fr;
  }
  .source-panel {
    padding: 22px;
  }
  .input-row {
    display: block;
  }
  .input-row input {
    border-radius: 28px;
  }
  .input-row .button {
    border-radius: 28px;
  }
  .input-row .button {
    width: 100%;
    margin-top: 9px;
  }
  .section-heading {
    display: block;
  }
  .count-label {
    display: block;
    margin-top: 15px;
  }
  .review-row {
    grid-template-columns: 30px 1fr;
    gap: 12px;
  }
  .review-row .button {
    grid-column: 2;
    justify-self: start;
  }
  .review-meta {
    display: block;
  }
  .review-meta .tag {
    margin-bottom: 7px;
  }
  .review-copy h3 {
    font-size: 1.08rem;
  }
  .detail-section {
    padding-top: 34px;
  }
  .detail-topline {
    margin-top: 28px;
    display: block;
  }
  .detail-topline span + span {
    display: block;
    margin-top: 8px;
  }
  .no-vote-note {
    display: block;
  }
  .no-vote-note strong {
    display: block;
    margin-bottom: 8px;
  }
  .site-footer {
    width: calc(100% - 24px);
    display: block;
  }
  .site-footer span {
    display: block;
    margin-top: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
[data-theme="dark"] {
  color-scheme: dark;
  --surface: #1a1a2e;
  --paper: #1a1a2e;
  --ink: #f3f4f6;
  --navy: #ffffff;
  --muted: #bdb9c3;
  --line: rgba(255,255,255,.18);
  --soft: #f5f5f7;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  --focus: rgba(246, 151, 132, 0.7);
}
[data-theme="dark"] .brand,
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] .button-small {
  color: var(--navy);
}
[data-theme="dark"] .source-panel-primary {
  background: #1a1a2e;
  border-color: #1a1a2e;
}
[data-theme="dark"] .button-secondary,
[data-theme="dark"] .icon-button {
  background: var(--paper);
  color: var(--navy);
}
[data-theme="dark"] .no-vote-note {
  background: #f5f5f7;
  border-color: #e2e2e7;
  color: #111827;
}

/* Match the existing Aide header treatment: wordmark icon, text theme switcher, no decorative gradient rule. */
.site-header {
  padding-bottom: 1rem;
}
.brand img {
  width: clamp(3.3rem, 6.3vw, 4.5rem);
  height: auto;
  border-radius: 0;
}
.brand {
  min-width: clamp(3.3rem, 6.3vw, 4.5rem);
}
.header-nav {
  align-items: center;
  gap: 1.25rem;
}
.header-nav a {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 400;
  text-decoration: none;
  border-bottom: 1px solid;
  border-image: linear-gradient(90deg, var(--coral), var(--violet)) 1;
  padding-bottom: 0.12em;
}
.theme-switcher {
  display: inline-flex;
  gap: 0.1rem;
  padding: 0.06rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--coral), var(--violet));
  font: inherit;
  font-size: 0.62rem;
  line-height: 1;
}
.theme-switcher button {
  min-height: 0;
  border: 0;
  border-radius: 999px;
  padding: 0.3rem 0.45rem;
  cursor: pointer;
  font: inherit;
  transition: box-shadow 0.2s ease;
}
.theme-switcher button[data-theme-choice="light"] {
  color: #111827;
  background: #fff;
  border-radius: 999px 0 0 999px;
}
.theme-switcher button[data-theme-choice="dark"] {
  color: #f3f4f6;
  background: #1a1a2e;
  border-radius: 0 999px 999px 0;
}
.theme-switcher button[aria-pressed="true"] {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7);
}
.theme-switcher button:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}
.brand-rule {
  display: none;
}
@media (max-width: 700px) {
  .site-header {
    align-items: flex-start;
  }
  .header-nav {
    order: 2;
    margin-left: auto;
    width: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem;
  }
  .mode-pill {
    order: 3;
    width: 100%;
  }
}

.button-secondary {
  border-color: var(--line);
  color: var(--ink);
}
#signInAgain,
#createPdf,
.brief-link,
#saveNote {
  border: 1px solid transparent;
  background: linear-gradient(var(--paper), var(--paper)) no-repeat padding-box,
    linear-gradient(90deg, var(--coral), var(--violet)) no-repeat border-box;
}

/* Product-shell refinement: restrained Aide navigation and preview identity only. */
.site-header { position: relative; align-items: flex-start; }
.header-nav { align-items: center; }
.primary-nav-action { color: var(--ink) !important; font-weight: 700 !important; }
.menu-toggle { display: none; }
.profile-control { position: relative; margin-left: 0; }
.top-profile-toggle { display: none; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: var(--navy); color: #fff; font-size: .68rem; font-weight: 800; cursor: pointer; }
.profile-trigger { display: flex; align-items: center; gap: 9px; width: 100%; min-width: 220px; padding: 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); color: var(--ink); text-align: left; cursor: pointer; }
.profile-trigger strong, .profile-trigger small { display: block; }
.profile-trigger strong { font-size: .78rem; }
.profile-trigger small { color: var(--muted); font-size: .68rem; line-height: 1.35; }
.initials-avatar { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; color: #fff; background: var(--navy); font-size: .68rem; font-weight: 800; }
.profile-menu { position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 10; width: 240px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); box-shadow: var(--shadow); }
.profile-menu a, .profile-menu button { display: block; width: 100%; padding: 9px 0; border: 0; background: none; color: var(--ink); text-align: left; font-size: .78rem; text-decoration: none; cursor: pointer; }
.profile-label { margin: 0; color: var(--violet); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.profile-body { margin: 5px 0 8px; color: var(--ink); font-size: .82rem; font-weight: 700; }
.profile-body span { color: var(--muted); font-size: .72rem; font-weight: 400; }
.next-steps { display: flex; gap: 10px; max-width: 730px; margin: 20px 0 0; padding: 13px 15px; border: 1px solid var(--line); border-radius: 28px; background: var(--soft); color: var(--ink); font-size: .82rem; }
.next-steps strong { white-space: nowrap; }
.empty-state { max-width: 730px; padding: 28px; border: 1px solid var(--line); border-radius: 28px; background: var(--soft); }
.empty-state strong { display: block; color: var(--navy); font-size: 1.05rem; }
.empty-state p { margin: 7px 0 17px; color: var(--muted); }
.sample-review-shelf { margin-top: 28px; }
.sample-review-shelf summary { color: var(--violet); cursor: pointer; font-weight: 700; }
.how-it-works { padding: 45px 0 60px; border-top: 1px solid; border-image: linear-gradient(90deg, var(--coral), var(--violet)) 1; }
.how-it-works p:last-child { max-width: 620px; color: var(--muted); }
.meeting-context { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 22px 0; padding: 11px 14px; border: 1px solid var(--line); border-radius: 28px; background: var(--soft); color: var(--muted); font-size: .72rem; }
.meeting-context b { display: block; color: var(--ink); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.meeting-context a { display: inline-block; color: var(--violet); font-weight: 700; text-decoration: none; border-bottom: 1px solid; border-image: linear-gradient(90deg, var(--coral), var(--violet)) 1; padding-bottom: .12em; }
@media (min-width: 701px) {
  .header-nav { flex: 1; justify-content: flex-end; }
  .top-profile-toggle { display: grid; place-items: center; margin-left: 2px; }
  .profile-control { align-self: flex-end; position: fixed; left: 16px; bottom: 16px; width: 230px; }
  .site-header { padding-left: 0; }
  main, .site-footer { margin-left: 0; }
}
@media (max-width: 700px) {
  .site-header { flex-wrap: wrap; align-items: center; }
  .menu-toggle { display: block; margin-left: auto; min-height: 40px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font: inherit; font-size: .8rem; font-weight: 700; }
  .top-profile-toggle { display: none; }
  .header-nav { display: none; order: 4; width: 100%; margin: 0; padding: 12px 0 0; flex-direction: column; align-items: stretch; gap: 8px; }
  .header-nav.is-open { display: flex; }
  .header-nav a, .profile-trigger { min-height: 40px; }
  .profile-control { width: 100%; }
  .profile-menu { position: static; width: 100%; margin-top: 7px; }
  .next-steps { display: block; }
  .next-steps strong { display: block; margin-bottom: 4px; }
  .meeting-context { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Live session views (2026-08-05): exactly one session state renders at a
   time, driven by body[data-session]. The :not([hidden]) guard keeps the
   review-detail section's own hidden-attribute behaviour authoritative. */
.view-signed-in,
.view-signed-out,
.view-checking {
  display: none;
}
body[data-session="checking"] .view-checking:not([hidden]),
body[data-session="out"] .view-signed-out:not([hidden]),
body[data-session="in"] .view-signed-in:not([hidden]) {
  display: block;
}
/* The fixed top-right profile toggle has its own display rules inside media
   queries, so it is hidden explicitly outside the signed-in state. */
body[data-session="checking"] #topProfileToggle,
body[data-session="out"] #topProfileToggle {
  display: none;
}
.session-checking {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0;
  color: var(--muted);
  text-align: center;
}
.signin-section {
  padding: 68px 0 78px;
}
.form-message {
  margin-top: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 254, 0.1);
  font-size: 0.82rem;
  color: var(--coral);
}
.source-panel:not(.source-panel-primary) .form-message {
  background: var(--soft);
  color: var(--good);
}
.confirm-panel {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.confirm-panel p {
  margin-bottom: 8px;
}
.confirm-panel .button {
  margin-top: 10px;
}
.projection-status {
  max-width: 730px;
  margin: 0 0 18px;
  padding: 10px 12px;
  background: var(--soft);
  color: var(--coral);
  font-size: 0.82rem;
}
.profile-menu-status {
  margin: 8px 0;
  color: var(--coral);
  font-size: 0.75rem;
}
.role-label {
  text-transform: capitalize;
}
.requests-section {
  padding: 74px 0 0;
  border-top: 1px solid;
  border-image: linear-gradient(90deg, var(--coral), var(--violet)) 1;
}

/* Signup toggle and name field ----------------------------------------- */
.signup-field {
  margin-bottom: 0;
}
.signup-field input {
  width: 100%;
  margin-bottom: 8px;
}
.toggle-signup[hidden] {
  display: none;
}
.toggle-signup {
  display: block;
  margin-top: 16px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--coral);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid;
  border-image: linear-gradient(90deg, var(--coral), var(--violet)) 1;
  padding-bottom: 0.12em;
  cursor: pointer;
}
.source-panel-primary .toggle-signup {
  color: #f97316;
}
.toggle-signup:hover {
  opacity: 0.8;
}

/* Subscription gate (402) --------------------------------------------- */
.subscription-gate {
  padding: 68px 0 78px;
}
.subscription-gate .form-message {
  margin-top: 16px;
}

/* Billing options (monthly/annual toggle) ---------------------------- */
.billing-options {
  display: flex;
  gap: 12px;
  margin: 24px 0 8px;
}
.billing-option {
  flex: 1;
  cursor: pointer;
}
.billing-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.billing-option-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 16px;
  border: 2px solid var(--line);
  border-radius: 14px;
  transition: border-color .15s, background .15s;
}
.billing-option input:checked + .billing-option-label {
  border-color: var(--violet);
  background: rgba(124, 58, 237, .04);
}
.billing-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
}
.billing-cadence {
  font-size: .9rem;
  font-weight: 600;
  color: var(--muted);
}
.billing-save {
  font-size: .72rem;
  font-weight: 700;
  color: var(--violet);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.trial-note {
  font-size: .85rem;
  color: var(--muted);
  margin: 4px 0 20px;
}

/* Manage subscription button in profile menu -------------------------- */
.profile-menu-action {
  border-top: 1px solid;
  border-image: linear-gradient(90deg, var(--coral), var(--violet)) 1;
  margin-top: 6px;
  padding-top: 11px !important;
  color: var(--violet) !important;
  font-weight: 700 !important;
}

/* Feedback modal ------------------------------------------------------ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-overlay[hidden] {
  display: none;
}
.modal {
  background: var(--surface, #fff);
  border-radius: 14px;
  max-width: 540px;
  width: 100%;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.modal-header h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy, #1A1A2E);
  margin: 0;
}
.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--muted, #6B7280);
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 6px;
  line-height: 1;
}
.modal-close:hover {
  background: var(--soft, #f5f5f7);
}
.modal-intro {
  color: var(--muted, #6B7280);
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.modal-textarea {
  width: 100%;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
  min-height: 120px;
  color: var(--navy, #1A1A2E);
  background: var(--surface, #fff);
}
.modal-textarea:focus {
  outline: none;
  border-color: var(--violet, #7c3aed);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}
.modal-status {
  margin: 10px 0;
  font-size: 0.85rem;
  color: var(--muted, #6B7280);
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
}
