/* Operator Instinct — Signal visual system.
   This theme sits over the current product stylesheet so new report, cohort,
   pairing, feedback, and dashboard surfaces keep their layout contracts. */

@font-face {
  font-family: "Albert Sans";
  src: url("./assets/fonts/albert-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("./assets/fonts/instrument-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("./assets/fonts/instrument-sans-italic-latin.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("./assets/fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("./assets/fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("./assets/fonts/ibm-plex-mono-600-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --plaster: #f5f1e8;
  --paper: #fdfaf2;
  --ink: #1b1b15;
  --muted: #6f6a5c;
  --track: #e4dcc6;
  --line: #d8d0b8;
  --line-strong: #1b1b15;
  --teal: #1e5f6e;
  --teal-deep: #164c58;
  --teal-bright: #3f5da8;
  --gold: #cf9f2f;
  --rose: #b4635a;
  --raised: #fdfaf2;
  --white: #fffdf6;
  --mustard: #cf9f2f;
  --cobalt: #3f5da8;
  --petrol: #1e5f6e;
  --oxide: #b4635a;
  --olive: #8a8a3d;
  --forest: #3a7d6e;
  --mustard-ink: #7c5b0a;
  --cobalt-ink: #32498a;
  --petrol-ink: #164c58;
  --oxide-ink: #8f4a42;
  --olive-ink: #66662b;
  --forest-ink: #2c6156;
  --shadow: 0 20px 48px -32px rgba(27, 27, 21, 0.35);
  --font-display: "Albert Sans", ui-sans-serif, system-ui, sans-serif;
  --font: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --serif: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r-card: 20px;
  --r-block: 12px;
  --r-pill: 999px;
}

body {
  background: var(--plaster);
  color: var(--ink);
  font-family: var(--font);
}

body::after {
  content: "";
  position: fixed;
  z-index: 100;
  right: 0;
  bottom: 0;
  left: 0;
  height: 8px;
  background: linear-gradient(
    90deg,
    var(--mustard) 0 16.667%,
    var(--cobalt) 16.667% 33.333%,
    var(--petrol) 33.333% 50%,
    var(--oxide) 50% 66.667%,
    var(--olive) 66.667% 83.333%,
    var(--forest) 83.333% 100%
  );
  pointer-events: none;
}

h1,
h2,
h3,
h4,
.status-card strong,
.ready-pace strong,
.cohort-steps strong,
.lux-rail-identity strong,
.report-badge strong,
.operator-signature figcaption strong,
.share-panel h3,
.insight-card h3,
.strength-card h3,
.chapter-card h3,
.library-grid h4,
.library-detail summary strong {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
}

.shell {
  width: min(1520px, calc(100% - clamp(36px, 7vw, 116px)));
  padding-bottom: 88px;
}

.hero {
  min-height: min(500px, 48vh);
}

.brand-row {
  gap: 16px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: block;
  flex: 0 0 auto;
}

.brand-row strong {
  display: block;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.05;
}

.brand-row p {
  margin-bottom: 4px;
  color: var(--muted);
}

.eyebrow {
  color: var(--mustard-ink);
  letter-spacing: 0.14em;
}

h1 {
  max-width: 940px;
  font-family: var(--font-display);
  font-size: clamp(58px, 8.4vw, 118px);
  font-weight: 700;
  line-height: 0.94;
}

.lede {
  font-size: clamp(19px, 1.9vw, 26px);
  line-height: 1.4;
}

.status-card,
.panel,
.gate-panel form,
.ready-pace,
.ready-rules,
.report-badge,
.operator-signature,
.share-panel,
.share-card-preview,
.mini-score,
.insight-card,
.strength-card,
.report-chapter,
.chapter-card,
.deep-instinct-card,
.paid-depth-grid section,
.input-signature-grid article,
.machine-side-panel,
.operator-context-shell,
.operator-context-card,
.operator-loop-grid article,
.partner-card,
.team-recipe-card,
.next-task-grid div,
.next-task-callout,
.prompt-panel,
.library-grid article,
.library-detail,
.feedback-section,
.dashboard-auth,
.dashboard-grid > section,
.dashboard-metrics {
  border-radius: var(--r-card);
}

.status-card,
.panel {
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: none;
}

.status-card {
  padding: 26px;
  border-color: var(--mustard);
  background: var(--mustard);
}

.status-card span,
.status-card p {
  color: #4a390d;
}

.status-card strong {
  font-size: 27px;
}

.gate-panel {
  overflow: visible;
  background: var(--paper);
}

.cohort-experience .hero {
  border-bottom: 2px solid var(--ink);
}

.cohort-experience .status-card {
  border-top: 2px solid var(--ink);
}

.cohort-experience .gate-panel {
  border-color: var(--ink);
  background: var(--paper);
}

.cohort-experience .gate-panel::before {
  display: none;
}

.gate-panel form {
  border: 2px solid var(--ink);
  background: #fffdf6;
  box-shadow: 6px 6px 0 var(--mustard);
}

.cohort-steps,
.ready-rules {
  border-color: var(--ink);
}

.cohort-steps article,
.ready-rules article {
  border-color: var(--line);
}

.cohort-steps span,
.form-kicker,
.ready-pace span,
.ready-rules article > span {
  color: var(--mustard-ink);
}

.cohort-privacy,
.chapter-note,
.portrait-boundary {
  border-left-color: var(--mustard);
}

.ready-pace {
  border: 2px solid var(--ink);
  border-top: 8px solid var(--mustard);
  background: var(--paper);
}

.pacing-option {
  border-top-color: var(--line);
}

label {
  color: var(--muted);
}

input,
select,
textarea {
  border: 2px solid var(--line);
  border-radius: var(--r-block);
  background: #fffdf6;
  color: var(--ink);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--ink);
  outline: 2px solid var(--mustard);
  outline-offset: 2px;
  box-shadow: none;
}

.checks input {
  accent-color: var(--ink);
}

button,
.button-link {
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--plaster);
  font-family: var(--font);
  font-weight: 600;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

button:hover:not(:disabled):not(.choice-card),
.button-link:hover {
  border-color: var(--ink);
  background: var(--ink);
  box-shadow: 4px 4px 0 var(--mustard);
  transform: translate(-2px, -2px);
}

button.secondary,
button.quiet-action {
  background: transparent;
  color: var(--ink);
}

button:focus-visible,
.button-link:focus-visible {
  outline: 3px solid var(--mustard);
  outline-offset: 3px;
}

.runner-panel {
  max-width: 1180px;
  padding: clamp(26px, 4vw, 48px);
}

.runner-head h2 {
  color: var(--petrol);
}

.progress {
  height: 8px;
  background: var(--track);
}

.progress span {
  background: var(--mustard);
}

.item-prompt {
  max-width: 1040px;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1.04;
}

.choice-area {
  gap: 22px;
}

.choice-card,
.choice-card.is-selected {
  min-height: 280px;
  border: 2px solid var(--ink);
  border-radius: var(--r-card);
  background: var(--paper);
  color: var(--ink);
  box-shadow: none;
}

button.choice-card:hover:not(:disabled),
button.choice-card:focus-visible,
button.choice-card.is-selected {
  border-color: var(--ink);
  outline: none;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 6px 6px 0 var(--mustard);
  transform: translate(-2px, -2px);
}

.choice-card strong {
  color: var(--petrol);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.choice-card span {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.18;
}

.nudge {
  color: var(--muted);
}

.runner-panel .button-row {
  margin-top: 12px;
}

.runner-panel .button-row .quiet-action {
  min-height: 44px;
  padding: 10px 16px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: none;
  transform: none;
}

.runner-panel .button-row .quiet-action:hover:not(:disabled),
.runner-panel .button-row .quiet-action:focus-visible {
  border-color: var(--petrol);
  background: color-mix(in srgb, var(--petrol) 7%, var(--paper));
  color: var(--ink);
  box-shadow: none;
  transform: none;
}

.confidence-check {
  border-color: var(--line);
}

.confidence-check button {
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  background: var(--paper);
}

body:has(#report:not(.hidden)) {
  background: var(--plaster);
}

.lux-report {
  overflow: clip;
  border: 2px solid var(--ink);
  border-radius: var(--r-card);
  background: var(--paper);
  box-shadow: 12px 12px 0 color-mix(in srgb, var(--mustard) 65%, var(--plaster));
}

.lux-rail {
  background: var(--ink);
  color: var(--paper);
}

.lux-brand {
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 8px 14px;
  align-items: center;
}

.lux-brand img {
  content: url("./assets/signal-mark.svg");
  grid-row: 1 / span 2;
  width: 56px;
  filter: none;
}

.lux-brand::after {
  content: "PHASE SHIFT INDEX\A OPERATOR INSTINCT";
  grid-column: 2;
  white-space: pre;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.lux-brand span {
  grid-column: 2;
  color: var(--mustard);
}

.lux-rail-identity,
.lux-rail-nav a {
  border-color: rgba(253, 250, 242, 0.16);
}

.lux-rail-nav a::after {
  color: var(--mustard);
}

.lux-rail-nav a:hover,
.lux-rail-nav a:focus-visible {
  color: var(--mustard);
}

.lux-rail-note {
  border: 2px solid color-mix(in srgb, var(--mustard) 60%, transparent);
  border-radius: var(--r-block);
}

.lux-main {
  background: var(--paper);
}

.lux-main .portrait-copy,
.lux-main .chapter-hero > div > p,
.lux-main .chapter-card p,
.lux-main .deep-instinct-card p,
.lux-main .library-detail-body p,
.lux-main .method-question,
.lux-main .insight-card p {
  font-family: var(--font);
}

.lux-hero h2 {
  font-family: var(--font-display);
  font-size: clamp(54px, 6.7vw, 102px);
  line-height: 0.94;
}

.report-badge {
  border: 2px solid var(--ink);
  background: var(--mustard);
}

.report-badge span {
  color: #5c4507;
}

.report-badge p {
  color: #4a390d;
}

.lux-showcase .operator-signature,
.operator-signature {
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  box-shadow: none;
}

.signature-ground {
  fill: var(--ink);
}

.signature-frame {
  stroke: rgba(253, 250, 242, 0.24);
}

.signature-facet {
  stroke: rgba(253, 250, 242, 0.18);
}

.signature-polygon {
  fill: color-mix(in srgb, var(--mustard) 30%, transparent);
  stroke: var(--mustard);
  filter: none;
}

.signature-node-ring {
  stroke: var(--mustard);
}

.signature-node {
  stroke: var(--ink);
}

.signature-label,
.signature-rating,
.signature-label.is-dominant {
  fill: var(--paper);
}

.operator-signature figcaption p,
.caption-note {
  color: color-mix(in srgb, var(--paper) 72%, transparent);
}

.share-panel {
  border: 2px solid var(--ink);
  background: var(--petrol);
  box-shadow: none;
}

.lux-showcase .share-panel {
  max-width: none;
}

.share-panel::before,
.machine-side-panel::after {
  display: none;
}

.share-card-preview {
  border: 2px solid var(--ink);
  background: var(--paper);
}

.share-card-logo {
  content: url("./assets/signal-mark.svg");
  width: 44px;
}

.share-card-mark {
  border-radius: var(--r-block);
  background: var(--ink);
  outline-color: var(--mustard);
}

.share-actions button,
.share-actions a {
  border: 2px solid var(--paper);
  border-radius: var(--r-pill);
}

.mini-score,
.insight-card,
.strength-card,
.report-chapter,
.chapter-card,
.deep-instinct-card,
.paid-depth-grid section,
.input-signature-grid article,
.operator-context-shell,
.operator-loop-grid article,
.partner-card,
.team-recipe-card,
.next-task-grid div,
.next-task-callout,
.prompt-panel,
.library-grid article,
.library-detail,
.feedback-section {
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: none;
}

.score-row {
  gap: 16px;
}

.report-nav {
  border-color: var(--ink);
  background: color-mix(in srgb, var(--plaster) 96%, transparent);
}

.report-nav a {
  border-color: var(--line);
}

.report-nav a:hover,
.report-nav a:focus-visible {
  color: var(--petrol);
}

.premium-value-strip {
  border-color: var(--ink);
}

.premium-value-strip div {
  border-color: var(--line);
}

.input-signature-grid article {
  background: var(--paper);
}

.machine-side-panel,
.operator-context-card {
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.machine-side-panel p,
.machine-side-panel li {
  color: color-mix(in srgb, var(--paper) 78%, transparent);
  font-family: var(--font);
}

.machine-side-panel aside {
  border-color: color-mix(in srgb, var(--mustard) 48%, transparent);
}

.operator-context-controls select {
  border: 2px solid var(--ink);
  background: var(--paper);
}

.operator-context-card {
  border-color: var(--ink);
}

.partner-card::before,
.team-recipe-card::before {
  background: var(--mustard);
}

.meter {
  background: var(--track);
}

.meter span {
  background: var(--petrol);
}

.library-detail summary::after {
  color: var(--mustard-ink);
}

.dashboard-page {
  background: var(--plaster);
}

.dashboard-shell {
  font-family: var(--font);
}

.dashboard-head {
  border-color: var(--ink);
}

.dashboard-auth,
.dashboard-grid > section,
.dashboard-metrics {
  border: 2px solid var(--ink);
  background: var(--paper);
}

/* Virtuous pilot entry: the Signal welcome and the assessment now share one
   visual language. The login is deliberately reduced to identity + consent. */
.signal-domain-pilot .shell {
  padding-top: clamp(20px, 3vw, 38px);
}

.signal-domain-pilot .hero {
  position: relative;
  min-height: 0;
  gap: clamp(44px, 6vw, 78px);
  margin: 0;
  padding: clamp(30px, 4vw, 56px);
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: var(--r-card);
  background: var(--paper);
}

.signal-domain-pilot .hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 12px;
  background: linear-gradient(
    90deg,
    var(--mustard) 0 16.667%,
    var(--cobalt) 16.667% 33.333%,
    var(--petrol) 33.333% 50%,
    var(--oxide) 50% 66.667%,
    var(--olive) 66.667% 83.333%,
    var(--forest) 83.333% 100%
  );
}

.signal-domain-pilot .brand-row {
  justify-content: space-between;
}

.signal-domain-pilot .hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(270px, 330px);
  align-items: end;
  gap: clamp(32px, 5vw, 82px);
}

.signal-domain-pilot .hero h1 {
  max-width: 900px;
  font-size: clamp(58px, 7.4vw, 108px);
}

.signal-domain-pilot .hero .lede {
  max-width: 800px;
}

.signal-domain-pilot .status-card {
  align-self: stretch;
  display: grid;
  align-content: end;
  min-height: 250px;
  border: 0;
  border-radius: var(--r-block);
  background: var(--ink);
  color: var(--paper);
}

.signal-domain-pilot .status-card span {
  color: var(--mustard);
}

.signal-domain-pilot .status-card strong,
.signal-domain-pilot .status-card p {
  color: var(--paper);
}

.signal-domain-pilot .status-card p {
  color: color-mix(in srgb, var(--paper) 74%, transparent);
}

.signal-domain-pilot .gate-panel {
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  gap: 0;
  margin-top: clamp(20px, 2.5vw, 34px);
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: var(--r-card);
  background: var(--paper);
}

.signal-domain-pilot .signal-entry-story {
  position: relative;
  grid-column: 1;
  padding: clamp(34px, 5vw, 68px);
  overflow: hidden;
  border-right: 2px solid var(--ink);
  background: var(--mustard);
}

.signal-entry-story .eyebrow {
  color: #56420a;
}

.signal-entry-story h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(46px, 5vw, 76px);
  line-height: 0.98;
}

.signal-entry-lede {
  max-width: 680px;
  margin: 24px 0 34px;
  color: #3f351f;
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1.5;
}

.signal-entry-outcomes {
  position: relative;
  z-index: 1;
  border-top: 2px solid var(--ink);
}

.signal-outcome {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 28%, transparent);
}

.signal-outcome > span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.signal-outcome strong {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
}

.signal-outcome p {
  margin: 5px 0 0;
  color: #4a412e;
  line-height: 1.42;
}

.signal-outcome-mustard > span {
  color: var(--mustard-ink);
}

.signal-outcome-cobalt > span {
  color: var(--cobalt-ink);
}

.signal-outcome-forest > span {
  color: var(--forest-ink);
}

.signal-entry-privacy {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  padding: 20px;
  border: 2px solid var(--ink);
  border-radius: var(--r-block);
  background: color-mix(in srgb, var(--paper) 54%, transparent);
}

.signal-entry-privacy strong {
  font-family: var(--font-display);
  font-size: 18px;
}

.signal-entry-privacy p {
  margin: 7px 0 0;
  color: #4a412e;
  line-height: 1.45;
}

.signal-domain-pilot .gate-panel form.signal-entry-form {
  grid-column: 2;
  grid-row: 1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 5vw, 68px);
  border: 0;
  border-radius: 0;
  background: var(--paper);
  box-shadow: none;
}

.signal-entry-form h3 {
  max-width: 560px;
  margin: 12px 0 16px;
  font-size: clamp(38px, 4vw, 60px);
  line-height: 1;
}

.signal-entry-form .form-intro {
  max-width: 570px;
  font-size: 18px;
}

.signal-entry-form .gate-grid {
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 34px;
}

.signal-entry-form label {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal-entry-form input {
  min-height: 62px;
  margin-top: 9px;
  font-family: var(--font);
  font-size: 19px;
  letter-spacing: 0;
  text-transform: none;
}

.signal-entry-terms {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.signal-entry-form .actions {
  align-items: center;
  margin-top: 26px;
}

.signal-entry-form .actions button[type="submit"] {
  min-width: 180px;
  min-height: 54px;
  padding-right: 28px;
  padding-left: 28px;
}

.feedback-context-note {
  margin-bottom: 18px;
  padding: 18px 20px;
  border-left: 5px solid var(--mustard);
  background: color-mix(in srgb, var(--mustard) 10%, var(--paper));
}

.feedback-context-note strong {
  font-family: var(--font-display);
  font-size: 18px;
}

.feedback-context-note p {
  margin: 5px 0 0;
  color: var(--muted);
}

@media (max-width: 980px) {
  .signal-domain-pilot .hero-grid,
  .signal-domain-pilot .gate-panel {
    grid-template-columns: 1fr;
  }

  .signal-domain-pilot .status-card {
    min-height: 0;
  }

  .signal-domain-pilot .signal-entry-story {
    grid-column: 1;
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

  .signal-domain-pilot .gate-panel form.signal-entry-form {
    grid-column: 1;
    grid-row: 2;
  }
}

@media (max-width: 1180px) {
  .lux-brand {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .lux-brand img {
    width: 48px;
  }
}

@media (max-width: 860px) {
  .lux-report {
    border-radius: 0;
    box-shadow: none;
  }

  .lux-rail {
    border-radius: 0;
  }

  .choice-card {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  body::after {
    height: 6px;
  }

  .shell {
    width: calc(100% - 24px);
  }

  .brand-row {
    flex-direction: row;
    align-items: center;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-row strong {
    font-size: 20px;
  }

  .hero h1 {
    font-size: clamp(44px, 13vw, 58px);
    line-height: 0.96;
  }

  .panel,
  .gate-panel {
    border-radius: var(--r-block);
  }

  .gate-panel form {
    box-shadow: 4px 4px 0 var(--mustard);
  }

  .signal-domain-pilot .hero {
    gap: 34px;
    padding: 24px 20px 30px;
    border-radius: var(--r-block);
  }

  .signal-domain-pilot .hero h1 {
    font-size: clamp(45px, 13vw, 58px);
  }

  .signal-domain-pilot .status-card {
    padding: 22px;
  }

  .signal-domain-pilot .gate-panel {
    border-radius: var(--r-block);
  }

  .signal-domain-pilot .signal-entry-story,
  .signal-domain-pilot .gate-panel form.signal-entry-form {
    padding: 28px 22px;
  }

  .signal-entry-story h2 {
    font-size: 42px;
  }

  .signal-entry-form h3 {
    font-size: 38px;
  }

  .signal-entry-form .actions {
    align-items: stretch;
  }

  .signal-entry-form .actions button[type="submit"] {
    width: 100%;
  }

  .item-prompt {
    font-size: clamp(31px, 9vw, 43px);
  }

  .choice-card {
    border-radius: var(--r-block);
  }

  .lux-rail {
    gap: 20px;
    padding: 22px 18px 18px;
  }

  .lux-rail-identity {
    padding: 18px 0;
  }

  .lux-rail-identity strong {
    font-size: 30px;
  }

  .lux-rail-nav a {
    padding: 10px 0;
    font-size: 10px;
  }

  .lux-rail-note {
    margin-top: 0;
    padding: 12px 14px;
  }

  .lux-rail-note > span,
  .lux-rail-note > p {
    display: none;
  }

  .lux-rail-note .quiet-action {
    margin-top: 0;
    font-size: 14px;
  }

  .library-detail summary {
    grid-template-columns: 42px minmax(0, 1fr) 18px;
    gap: 10px;
    padding: 16px 14px;
  }

  .library-detail summary span {
    width: 36px;
    height: 36px;
  }

  .library-detail summary strong {
    font-size: 20px;
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  button,
  .button-link,
  .choice-card {
    transition: none;
  }
}

/* v0.5.6 report polish: editorial depth, quieter controls, balanced sharing. */
body:has(#report:not(.hidden)) .report-showcase,
body:has(#report:not(.hidden)) .lux-showcase {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

body:has(#report:not(.hidden)) .lux-showcase .operator-signature {
  min-height: 0;
}

body:has(#report:not(.hidden)) .share-panel {
  grid-template-columns: minmax(220px, 0.72fr) minmax(380px, 1.35fr) minmax(250px, 0.8fr);
  grid-template-areas:
    "intro card actions"
    "intro card status";
  align-items: center;
  align-content: center;
  gap: 18px 28px;
  min-height: 0;
  padding: 26px 30px;
  border-radius: 10px;
  box-shadow: none;
}

body:has(#report:not(.hidden)) .share-panel > div:first-child {
  grid-area: intro;
}

body:has(#report:not(.hidden)) .share-panel h3 {
  max-width: 360px;
  font-size: clamp(28px, 2.5vw, 38px);
}

body:has(#report:not(.hidden)) .share-card-preview {
  grid-area: card;
  min-width: 0;
  padding: 18px 20px;
  border-radius: 8px;
}

body:has(#report:not(.hidden)) .share-card-copy strong {
  overflow-wrap: normal;
}

body:has(#report:not(.hidden)) .share-actions {
  grid-area: actions;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body:has(#report:not(.hidden)) .share-actions button,
body:has(#report:not(.hidden)) .share-actions a,
body:has(#report:not(.hidden)) .lux-rail-note .quiet-action {
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

body:has(#report:not(.hidden)) .share-actions .share-primary {
  grid-column: 1 / -1;
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}

body:has(#report:not(.hidden)) .share-actions .share-primary:hover,
body:has(#report:not(.hidden)) .share-actions .share-primary:focus-visible {
  border-color: var(--mustard);
  background: var(--paper);
}

body:has(#report:not(.hidden)) .share-status {
  grid-area: status;
  min-height: 18px;
  margin: 0;
  align-self: start;
}

body:has(#report:not(.hidden)) .lux-rail-note .quiet-action {
  width: 100%;
  margin-top: 14px;
  border: 1px solid rgba(253, 250, 242, 0.34);
  color: color-mix(in srgb, var(--paper) 82%, transparent);
}

body:has(#report:not(.hidden)) .lux-rail-note .quiet-action:hover,
body:has(#report:not(.hidden)) .lux-rail-note .quiet-action:focus-visible {
  border-color: var(--mustard);
  color: var(--paper);
  box-shadow: none;
  transform: none;
}

body:has(#report:not(.hidden)) .deep-instinct-card {
  gap: 30px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body:has(#report:not(.hidden)) .paid-depth-grid {
  gap: 0;
  border-top: 2px solid var(--ink);
}

body:has(#report:not(.hidden)) .paid-depth-grid section {
  min-height: 190px;
  padding: 24px 26px 28px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

body:has(#report:not(.hidden)) .paid-depth-grid section:nth-child(even) {
  border-right: 0;
}

body:has(#report:not(.hidden)) .paid-depth-grid section:nth-last-child(-n + 2) {
  border-bottom: 0;
}

body:has(#report:not(.hidden)) .paid-depth-grid p,
body:has(#report:not(.hidden)) .paid-depth-grid li {
  font-size: 18px;
  line-height: 1.52;
}

body:has(#report:not(.hidden)) .paid-depth-grid p {
  margin-top: 16px;
}

body:has(#report:not(.hidden)) .paid-depth-grid ul {
  margin-top: 16px;
}

@media (max-width: 1380px) {
  body:has(#report:not(.hidden)) .share-panel {
    grid-template-columns: minmax(220px, 0.75fr) minmax(360px, 1.25fr);
    grid-template-areas:
      "intro card"
      "actions card"
      "status card";
    align-items: start;
  }
}

@media (max-width: 860px) {
  body:has(#report:not(.hidden)) .share-panel {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "intro"
      "card"
      "actions"
      "status";
    padding: 22px;
  }

  body:has(#report:not(.hidden)) .paid-depth-grid section,
  body:has(#report:not(.hidden)) .paid-depth-grid section:nth-child(even),
  body:has(#report:not(.hidden)) .paid-depth-grid section:nth-last-child(-n + 2) {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  body:has(#report:not(.hidden)) .paid-depth-grid section:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 520px) {
  body:has(#report:not(.hidden)) .share-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  body:has(#report:not(.hidden)) .share-actions .share-primary {
    grid-column: 1;
  }

  body:has(#report:not(.hidden)) .share-actions button,
  body:has(#report:not(.hidden)) .share-actions a {
    width: 100%;
  }
}
