:root {
  color-scheme: light;
  --bg: #f2f5f1;
  --surface: #ffffff;
  --surface-soft: #f7faf7;
  --ink: #13201d;
  --muted: #64726e;
  --line: #dce5df;
  --green: #167a55;
  --blue: #305caa;
  --amber: #9a650c;
  --red: #b42318;
  --teal: #087f8c;
  --shadow: 0 18px 42px rgba(25, 45, 38, 0.1);
  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;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

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

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

.signals-shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.app-top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 72px;
  padding: 12px 18px;
  background: rgba(242, 245, 241, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #35b987;
  color: #06110e;
  font-weight: 850;
  flex: 0 0 auto;
}

.brand strong,
.brand em {
  display: block;
  line-height: 1.1;
  white-space: nowrap;
}

.brand strong {
  font-size: 17px;
}

.brand em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

.top-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.top-nav::-webkit-scrollbar {
  display: none;
}

.top-nav a {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.top-nav a:hover,
.top-nav a:focus,
.top-nav a.active {
  color: var(--ink);
  background: #e6eee8;
  outline: none;
}

.section-nav {
  position: sticky;
  top: 72px;
  z-index: 9;
  display: flex;
  gap: 8px;
  padding: 9px 18px;
  overflow-x: auto;
  scrollbar-width: none;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.section-nav::-webkit-scrollbar {
  display: none;
}

.section-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.section-nav a:hover,
.section-nav a:focus,
.section-nav a.active {
  border-color: #b8dfcf;
  background: #effaf5;
  color: #0f6b4d;
  outline: none;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 18px;
  color: var(--muted);
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--amber);
  flex: 0 0 auto;
}

.status-line.ready .status-dot {
  background: var(--green);
}

.status-line.error .status-dot {
  background: var(--red);
}

.public-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 18px;
  align-items: end;
  padding: 20px 18px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.public-intro h1 {
  max-width: 780px;
}

.public-intro p {
  max-width: 760px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

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

.intro-actions small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  text-align: center;
}

.primary-link {
  border: 1px solid var(--green);
  background: var(--green);
  color: #ffffff;
}

.secondary-link {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--ink);
}

.primary-link:hover,
.primary-link:focus,
.secondary-link:hover,
.secondary-link:focus {
  outline: 2px solid rgba(48, 92, 170, 0.24);
  outline-offset: 2px;
}

.product-band {
  padding: 22px 18px;
  border-bottom: 1px solid var(--line);
}

#today,
#detail,
#performance,
#learning,
#access {
  scroll-margin-top: 124px;
}

.daily-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 18px 0;
}

.summary-card {
  min-height: 94px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.summary-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.summary-card strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.summary-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.feed-band {
  padding-top: 18px;
}

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

.compact-head {
  align-items: center;
}

.eyebrow,
.brand strong,
.badge,
.metric-card span,
.field-name,
.signal-card-meta,
.waitlist-form label {
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  line-height: 1.08;
}

h1 {
  font-size: 34px;
}

h2 {
  font-size: 25px;
}

h3 {
  font-size: 18px;
  line-height: 1.2;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 52%;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge.safe {
  color: #0f6b4d;
  background: #effaf5;
  border-color: #b8dfcf;
}

.badge.watch {
  color: #805100;
  background: #fff7e8;
  border-color: #ecd19a;
}

.feed-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(420px, 1.05fr);
  gap: 16px;
  align-items: start;
}

.feed-column,
.detail-panel,
.table-panel,
.access-layout {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.feed-column {
  display: grid;
  gap: 1px;
  align-self: start;
  position: sticky;
  top: 132px;
  max-height: calc(100vh - 150px);
  overflow: auto;
}

.feed-summary {
  padding: 16px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.42;
}

.feed-summary strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}

.signal-list {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.signal-card {
  width: 100%;
  min-height: 224px;
  padding: 15px 16px;
  border: 0;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 10px;
}

.signal-card:hover,
.signal-card:focus {
  background: #fbfdfb;
  outline: 2px solid rgba(48, 92, 170, 0.24);
  outline-offset: -2px;
}

.signal-card.active {
  box-shadow: inset 4px 0 0 var(--green);
}

.locked-card {
  background: #fffaf0;
}

.signal-card-top,
.signal-card-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.signal-ticker {
  font-size: 26px;
  font-weight: 850;
  line-height: 1;
}

.signal-card h3 {
  margin-top: 5px;
  overflow-wrap: anywhere;
}

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

.signal-score-grid span {
  min-height: 58px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.signal-score-grid em {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.signal-score-grid strong {
  display: block;
  margin-top: 5px;
  font-size: 15px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.signal-card-risk {
  display: grid;
  gap: 3px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.evidence-preview {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.signal-card-risk em,
.evidence-preview em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.signal-card-meta,
.signal-card-foot {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.signal-card-foot {
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  max-width: 150px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #0f6b4d;
  background: #effaf5;
  border: 1px solid #b8dfcf;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-pill.locked {
  color: #805100;
  background: #fff7e8;
  border-color: #ecd19a;
}

.detail-panel {
  position: sticky;
  top: 132px;
  padding: 16px;
}

.detail-body {
  display: grid;
  gap: 14px;
}

.detail-section {
  display: grid;
  gap: 10px;
}

.thesis-section {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.thesis-section h3 {
  font-size: 20px;
  line-height: 1.18;
}

.detail-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mini-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  max-width: 48%;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-lede {
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

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

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

.field,
.metric-card {
  min-height: 82px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.field-name,
.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.field strong,
.metric-card strong {
  display: block;
  margin-top: 7px;
  font-size: 19px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.metric-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.3;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  max-width: 100%;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

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

.evidence-ref {
  display: grid;
  gap: 4px;
  min-height: 62px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  overflow-wrap: anywhere;
}

.evidence-ref strong {
  font-size: 13px;
  line-height: 1.2;
}

.evidence-ref em,
.evidence-ref small {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.32;
}

.score-component-list,
.why-list,
.evidence-timeline,
.invalidation-list {
  display: grid;
  gap: 8px;
}

.score-rationale-section {
  padding: 14px;
  border: 1px solid #cfe1d7;
  border-radius: 8px;
  background: #fbfdfb;
}

.score-component {
  display: grid;
  gap: 7px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.score-component-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.score-component strong {
  font-size: 13px;
  line-height: 1.2;
}

.score-component em,
.score-component small {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.32;
}

.score-component em {
  white-space: nowrap;
  font-weight: 850;
}

.score-bar {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6eee8;
}

.score-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.why-row,
.timeline-item,
.invalidation-list span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.why-row {
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 10px 11px;
  overflow-wrap: anywhere;
}

.why-row strong,
.timeline-item strong {
  font-size: 13px;
  line-height: 1.2;
}

.why-row em,
.why-row small,
.timeline-item small,
.timeline-item p {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.32;
}

.timeline-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 11px;
}

.timeline-item > em {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #e6eee8;
  color: var(--green);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.timeline-item span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.risk-section {
  padding: 14px;
  border: 1px solid #ecd19a;
  border-radius: 8px;
  background: #fffaf0;
}

.locked-detail {
  padding: 14px;
  border: 1px solid #ecd19a;
  border-radius: 8px;
  background: #fffaf0;
}

.locked-detail h3 {
  font-size: 20px;
  line-height: 1.18;
}

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

.detail-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--green);
  border-radius: 8px;
  background: var(--green);
  color: #ffffff;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.invalidation-list span {
  display: block;
  padding: 9px 10px;
  color: #4b4437;
  font-size: 12px;
  line-height: 1.35;
}

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

.mini-metric {
  min-height: 82px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.mini-metric em,
.ledger-field em {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.mini-metric strong,
.ledger-field strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.mini-metric strong {
  font-size: 16px;
}

.mini-metric small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.ledger-section {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4fbf7;
}

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

.ledger-field {
  min-height: 72px;
  padding: 10px;
  border: 1px solid #c7ded2;
  border-radius: 8px;
  background: #ffffff;
}

.ledger-field strong {
  font-size: 13px;
}

.hash-line {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-left: 4px solid var(--green);
  background: #f4fbf7;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.hash-line strong {
  color: var(--ink);
}

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

.table-panel {
  padding: 16px;
  overflow: hidden;
}

.table-panel h3 {
  margin-bottom: 10px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th,
.data-table td {
  padding: 10px 8px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.data-table th {
  color: var(--muted);
  font-size: 12px;
}

.empty-state {
  padding: 18px;
  color: var(--muted);
  line-height: 1.45;
}

.polished-state {
  display: grid;
  gap: 8px;
  background: var(--surface);
}

.polished-state strong {
  color: var(--ink);
  font-size: 17px;
}

.polished-state span {
  display: block;
}

.retry-button {
  width: fit-content;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--green);
  border-radius: 8px;
  background: var(--green);
  color: #ffffff;
  font-weight: 850;
  cursor: pointer;
}

.skeleton-card {
  cursor: default;
}

.skeleton-line {
  display: block;
  width: 72%;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e9f0ea, #f7faf7, #e9f0ea);
}

.skeleton-line.wide {
  width: 88%;
  height: 22px;
}

.skeleton-line.short {
  width: 44%;
}

.access-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.72fr);
  gap: 18px;
  padding: 18px;
}

.access-panel {
  display: grid;
  gap: 10px;
  color: var(--muted);
  line-height: 1.45;
}

.access-panel strong {
  color: var(--ink);
}

.access-status-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.access-status-card.is-unlocked {
  border-color: #9bd8bf;
  background: #effaf5;
}

.access-status-card p {
  color: var(--muted);
  line-height: 1.4;
}

.access-actions-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.38fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.compact-action {
  min-height: 38px;
}

.access-actions-row small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.access-change-card {
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.access-change-card.is-unlocked {
  border-color: #9bd8bf;
  box-shadow: inset 4px 0 0 var(--green);
}

.access-change-card span,
.access-change-card li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.access-change-card ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
}

.access-note-line {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #b8dfcf;
  border-radius: 8px;
  background: #ffffff;
  color: #0f6b4d;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

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

.access-tier-card {
  display: grid;
  gap: 5px;
  min-height: 156px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.access-tier-card em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.access-tier-card strong {
  font-size: 18px;
  line-height: 1.15;
}

.access-tier-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.access-forms {
  display: grid;
  gap: 12px;
  align-content: start;
}

.waitlist-form,
.invite-form {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.primary-access-form {
  border-color: #9bd8bf;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(25, 45, 38, 0.08);
}

.secondary-access-form {
  background: #f9fbf9;
}

.form-card-head {
  display: grid;
  gap: 5px;
}

.form-card-head span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.invite-form h3 {
  margin: 0;
  font-size: 18px;
}

.waitlist-form label,
.invite-form label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

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

.waitlist-row input,
.waitlist-row button,
.waitlist-form select,
.invite-row input,
.invite-row button,
.invite-form > input {
  min-height: 42px;
  border-radius: 8px;
}

.waitlist-row input,
.waitlist-form select,
.invite-row input,
.invite-form > input {
  width: 100%;
  border: 1px solid var(--line);
  padding: 0 11px;
  color: var(--ink);
  background: var(--surface);
}

.waitlist-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 18px, calc(100% - 13px) 18px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  padding-right: 34px;
}

.waitlist-form.has-error input,
.invite-form.has-error input {
  border-color: var(--red);
}

.waitlist-form.is-joined input,
.invite-form.is-joined input {
  border-color: #b8dfcf;
  background: #effaf5;
}

.waitlist-row button,
.invite-row button {
  border: 1px solid var(--green);
  background: var(--green);
  color: #ffffff;
  padding: 0 13px;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}

.invite-form.is-joined {
  border-color: #8bcfb4;
  background: #effaf5;
}

.invite-form.is-joined button {
  background: #0f6b4d;
}

#waitlistNote,
#inviteNote {
  min-height: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

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

.access-assurance-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  line-height: 1.4;
}

.access-assurance-card strong {
  color: var(--ink);
  font-size: 13px;
}

.access-assurance-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.disclaimer-band {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.disclaimer-band strong {
  color: var(--ink);
}

@media (max-width: 900px) {
  .app-top {
    align-items: flex-start;
    flex-direction: column;
    min-height: 112px;
  }

  .top-nav {
    width: 100%;
  }

  .section-nav {
    top: 112px;
  }

  #today,
  #detail,
  #performance,
  #learning,
  #access {
    scroll-margin-top: 166px;
  }

  .feed-layout,
  .split-layout,
  .public-intro,
  .access-layout {
    grid-template-columns: 1fr;
  }

  .feed-column,
  .detail-panel {
    position: static;
    max-height: none;
    overflow: hidden;
  }

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

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

@media (max-width: 560px) {
  .product-band {
    padding: 18px 12px;
  }

  .app-top,
  .section-nav,
  .status-line,
  .public-intro,
  .daily-summary {
    padding-left: 12px;
    padding-right: 12px;
  }

  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 22px;
  }

  .badge {
    max-width: 100%;
    justify-content: flex-start;
  }

  .field-grid,
  .metric-grid,
  .daily-summary,
  .signal-score-grid,
  .mini-metric-grid,
  .ledger-grid,
  .locked-preview-grid,
  .access-tier-grid {
    grid-template-columns: 1fr;
  }

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

  .signal-card {
    min-height: 250px;
  }

  .waitlist-row,
  .invite-row,
  .access-actions-row {
    grid-template-columns: 1fr;
  }

  .intro-actions {
    grid-template-columns: 1fr;
  }
}
