/* SharpTake — UX21 Major Redesign */

:root {
  --navy:      #0c1a2e;
  --navy-mid:  #0f2340;
  --blue-act:  #1d4b8a;
  --blue-link: #3568c0;
  --muted:     #8090a0;
  --border:    #d8dfe9;
  --surface:   #ffffff;
  --bg:        #f0eff0;
  --page-width: 1440px;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

@keyframes pulse-loading {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.45; }
}

/* Top accent bar */
body::before {
  content: "";
  display: block;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0c1a2e 0%, #1d4b8a 55%, #3a82d0 100%);
  z-index: 100;
}

body {
  margin: 0;
  padding: 2rem 1.5rem 3rem;
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--bg);
  color: var(--navy);
}

.container {
  max-width: var(--page-width);
  margin: 0 auto;
}

/* UI-LAUNCH1 — shared shell keeps the full public product page aligned */
.page-shell {
  width: 100%;
  max-width: var(--page-width);
  margin-left: auto;
  margin-right: auto;
}

/* UI26 — desktop workspace: tighter body padding + page-shell guard + flatter answer panel */
@media (min-width: 1240px) {
  body {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  /* Keep the unified launch workspace clear of the viewport edge */
  .page-shell {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Flatten the answer-panel card impression — wide workspace surface, not floating box */
  #answer-panel {
    border-radius: 5px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.07);
    border-color: #e4ecf4;
  }
}

/* Private-demo access gate */
.access-shell {
  min-height: calc(100vh - 4.25rem);
  display: grid;
  place-items: center;
}

.access-card {
  width: min(100%, 420px);
  background: #fff;
  border: 1px solid #d4dbe6;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}

.access-note {
  margin: 0 0 1.2rem;
  color: #536070;
  line-height: 1.5;
}

.access-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.access-form label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #536070;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.access-form input {
  width: 100%;
  padding: 0.7rem 0.95rem;
  font: inherit;
  border: 1.5px solid #c5d0dd;
  border-radius: 7px;
  outline: none;
}

.access-form input:focus {
  border-color: #3368b8;
  box-shadow: 0 0 0 3px rgba(51, 104, 184, 0.12);
}

.access-form button {
  width: 100%;
  padding: 0.8rem 1.25rem;
  font: inherit;
  font-weight: 600;
  background: linear-gradient(180deg, #3568c0 0%, #244fa8 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(36, 79, 168, 0.35);
}

.access-message {
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 7px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.access-message-error {
  border: 1px solid #edb0b0;
  background: #fff4f4;
  color: #b83030;
}

/* ── Header / masthead ── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.5rem 0 1.1rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--navy);
}

.launch-intro {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin: -0.5rem 0 1.4rem;
}

.launch-intro__promise {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.3vw, 2.15rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--navy);
}

.launch-intro__coverage {
  max-width: 30rem;
  margin: 0;
  color: #60758d;
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: right;
}

.site-header__brand {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  min-width: 0;
}

.site-header__home-link {
  color: inherit;
  text-decoration: none;
  border-radius: 4px;
}

.site-header__home-link:hover h1,
.site-header__home-link:focus-visible h1 {
  color: var(--blue-act);
}

.site-header__home-link:focus-visible {
  outline: 3px solid rgba(29, 75, 138, 0.22);
  outline-offset: 4px;
}

h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  margin: 0;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: uppercase;
}

.brand-tagline {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.subtitle {
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.2rem 0.1rem;
  flex-shrink: 0;
}

.ctx-chip {
  font-size: 0.7rem;
  font-weight: 600;
  color: #6878a0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.1rem 0.52rem;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.ctx-sep {
  font-size: 0.7rem;
  color: #c0cad8;
  padding: 0 0.1rem;
}

/* ── Composer section: quiet secondary NL input ── */
.composer-section {
  width: 100%;
  margin: 0 0 1.5rem;
  padding: 0.7rem 0 0;
  background: none;
  border: none;
  border-top: 1px solid var(--border);
}

.composer-row {
  display: flex;
  gap: 0.65rem;
  align-items: stretch;
}

#query-input {
  flex: 1;
  padding: 0.85rem 1.15rem;
  font-size: 1.05rem;
  font-family: var(--font-body);
  border: 2px solid var(--border);
  border-radius: 8px;
  outline: none;
  background: var(--surface);
  color: var(--navy);
  transition: border-color 0.15s, box-shadow 0.15s;
}
#query-input:focus {
  border-color: var(--blue-act);
  box-shadow: 0 0 0 3px rgba(29, 75, 138, 0.1);
}

button#ask-btn {
  padding: 0 1.85rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 10px rgba(12, 26, 46, 0.35);
}
button#ask-btn:hover {
  background: #1a3060;
  box-shadow: 0 3px 14px rgba(12, 26, 46, 0.45);
}
button#ask-btn:disabled {
  background: #9ab0cc;
  box-shadow: none;
  cursor: default;
}

.options-row {
  margin-top: 0.55rem;
  font-size: 0.77rem;
  color: var(--muted);
}
.options-row label { cursor: pointer; display: flex; align-items: center; gap: 0.35rem; }
.options-row input[type="checkbox"] { cursor: pointer; opacity: 0.7; }

/* ── Demo section: horizontal guided-question strip ── */
.demo-section {
  border-top: 1.5px solid #c8d4e0;
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 0 0.9rem;
  margin-bottom: 2rem;
}

.demo-heading {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #3a5878;
  margin-bottom: 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  gap: 0.75rem;
  user-select: none;
  padding: 0.45rem 0.55rem;
  border: 1px solid transparent;
  border-radius: 6px;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.demo-heading::-webkit-details-marker { display: none; }
.demo-heading::marker { display: none; }
.demo-heading__label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.demo-heading__caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border: 1px solid #a9bed3;
  border-radius: 50%;
  background: #f7fafd;
  font-size: 0.8rem;
  line-height: 1;
  color: var(--blue-act);
  transition: transform 0.15s, color 0.15s, border-color 0.15s, background-color 0.15s;
  flex-shrink: 0;
}
#demo-details[open] > .demo-heading .demo-heading__caret { transform: rotate(90deg); }
#demo-details:not([open]) > .demo-heading { margin-bottom: 0; }
.demo-heading:hover,
.demo-heading:focus-visible {
  color: var(--navy);
  background: #f7fafd;
  border-color: #d6e1ec;
  outline: none;
}
.demo-heading:focus-visible {
  box-shadow: 0 0 0 3px rgba(29, 75, 138, 0.14);
}
.demo-heading:hover .demo-heading__caret,
.demo-heading:focus-visible .demo-heading__caret {
  color: var(--navy);
  background: #fff;
  border-color: var(--blue-act);
}

.example-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  padding-top: 0.85rem;
}

.example-group {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  background: #f8fafd;
  border: 1px solid #e4eaf2;
  border-radius: 8px;
  padding: 0.85rem 0.95rem;
}

.example-group--secondary {
  grid-column: 1 / -1;
  background: #f5f7fb;
  border-color: #dde6f0;
}

.example-group h2 {
  margin: 0 0 0.35rem;
  color: #3a5878;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding-bottom: 0.32rem;
  border-bottom: 1px solid #dce5f0;
}

.example-group--secondary h2 {
  color: #6a7f97;
}

.example-group--secondary .example-prompt {
  background: #f8fafc;
  border-color: #d2dde9;
  color: #405a78;
}

.example-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.example-prompt {
  padding: 0.22rem 0.6rem;
  border: 1px solid #c5d3e5;
  border-radius: 999px;
  background: var(--surface);
  color: #28426a;
  font: inherit;
  font-size: 0.73rem;
  line-height: 1.25;
  cursor: pointer;
  text-align: left;
  transition: background 0.1s, border-color 0.1s;
}
.example-prompt:hover,
.example-prompt:focus {
  background: #deeaf8;
  border-color: #6da8e0;
}

.example-toggle {
  margin-top: 0.3rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue-link);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
}
.example-toggle:hover,
.example-toggle:focus {
  color: #173e75;
  text-decoration: underline;
}

/* ── Featured prompt launcher (UI28) ── */
.example-featured {
  padding: 0.9rem 0 0.4rem;
}

.example-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.example-featured-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
  padding: 0.8rem 1rem;
  border: 1px solid #b8cfe8;
  border-radius: 10px;
  background: #f4f8fd;
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: background 0.12s, border-color 0.12s, box-shadow 0.12s;
}

.example-featured-card:hover,
.example-featured-card:focus {
  background: #deeaf8;
  border-color: #5a9ad5;
  box-shadow: 0 2px 8px rgba(29, 75, 138, 0.1);
  outline: none;
}

.example-featured-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(29, 75, 138, 0.18);
}

.efc-category {
  font-size: 0.63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5a7fa8;
}

.efc-prompt {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a3a60;
  line-height: 1.3;
}

/* ── More examples collapsible (UI28) ── */
.example-more {
  margin-top: 0.6rem;
}

.example-more__summary {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--blue-link);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.example-more__summary::-webkit-details-marker { display: none; }
.example-more__summary::marker { display: none; }
.example-more__summary::before {
  content: '▸';
  font-size: 0.65rem;
  transition: transform 0.15s;
  display: inline-block;
}
details[open].example-more .example-more__summary::before {
  transform: rotate(90deg);
}
.example-more__summary:hover,
.example-more__summary:focus-visible {
  color: #173e75;
  text-decoration: underline;
  outline: none;
}
.example-more .example-groups {
  padding-top: 0.6rem;
}

/* Snapshot note */
.snapshot-note {
  font-size: 0.72rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.5;
  margin: 0.65rem 0 0;
}

/* ── Results area: full-width report surface ── */
.results-area {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.source-footer {
  width: 100%;
  margin: 2rem auto 0;
  padding-top: 0.8rem;
  border-top: 1px solid #d8dfe9;
  color: #738394;
  font-size: 0.74rem;
  line-height: 1.5;
}

.source-footer a {
  color: #536b8c;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.source-footer a:hover,
.source-footer a:focus {
  color: #1d4b8a;
}

/* Loading indicator */
#loading {
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid #d4dbe6;
  border-radius: 10px;
  color: #6e8090;
  font-size: 0.9rem;
  font-style: italic;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07);
  animation: pulse-loading 1.6s ease-in-out infinite;
}

/* ── Panels (right column) ── */
.panel {
  background: #fff;
  border: 1px solid #d4dbe6;
  border-radius: 10px;
  padding: 1.35rem 1.5rem;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07);
}

.panel-label {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #5a7090;
  margin-bottom: 0.65rem;
  padding-left: 0.55rem;
  border-left: 2px solid #1d4b8a;
}

/* Answer panel */
#answer-panel {
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.1);
}

#answer-text {
  font-size: 1rem;
  line-height: 1.72;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  color: #0d1b2e;
  padding-top: 0.15rem;
}

.answer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid #eaeff5;
}
.answer-header .panel-label { margin-bottom: 0; }

.copy-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#copy-answer-btn {
  padding: 0.3rem 0.65rem;
  border: 1px solid #c5d3e5;
  border-radius: 6px;
  background: #f2f6fc;
  color: #28426a;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.1s, border-color 0.1s;
}
#copy-answer-btn:hover:not(:disabled),
#copy-answer-btn:focus:not(:disabled) {
  background: #deeaf8;
  border-color: #6da8e0;
}
#copy-answer-btn:disabled {
  color: #aab5c0;
  cursor: default;
}

#copy-feedback {
  min-width: 4rem;
  color: #667085;
  font-size: 0.78rem;
}

/* Answer empty state */
.answer-empty-state {
  background: #fff;
  border: 1px solid #d4dbe6;
  border-radius: 10px;
  padding: 2.75rem 2rem 2.5rem;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.aes-heading {
  font-size: 1.05rem;
  font-weight: 600;
  color: #2e4a6a;
  margin: 0 0 0.65rem;
}

.aes-body {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #6e8090;
  margin: 0;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.aes-body--secondary {
  margin-top: 0.6rem;
  color: #7d8c9b;
}

/* ── Failure and clarification cards (A13) ── */
.failure-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  white-space: normal;
}

.fc-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.fc-body {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #3a4a5a;
}

/* partial-match: info/neutral blue */
.failure-card--partial-match {
  padding-left: 0.85rem;
  border-left: 3px solid #3d77c5;
}
.failure-card--partial-match .fc-title {
  color: #1a3a6a;
}

/* not-found: calm, helpful sage */
.failure-card--not-found {
  padding-left: 0.85rem;
  border-left: 3px solid #6aaa7a;
}
.failure-card--not-found .fc-title {
  color: #2a4a2a;
}

/* db-unavailable: amber/service warning */
.failure-card--db-unavailable {
  padding-left: 0.85rem;
  border-left: 3px solid #c88a00;
}
.failure-card--db-unavailable .fc-title {
  color: #5a3a00;
}

/* unsupported-intent: neutral gray */
.failure-card--unsupported-intent {
  padding-left: 0.85rem;
  border-left: 3px solid #a0aab8;
}
.failure-card--unsupported-intent .fc-title {
  color: #3a3a4a;
}

/* generic-error: red — only for truly unexpected states */
.failure-card--generic-error {
  padding-left: 0.85rem;
  border-left: 3px solid #cc3535;
}
.failure-card--generic-error .fc-title {
  color: #4a1a1a;
}

/* Suggestion chips (shown for not-found) */
.fc-suggestions {
  margin-top: 0.1rem;
}

.fc-suggestions-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #8090a0;
  margin-bottom: 0.5rem;
}

.fc-suggestion-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.fc-suggestion-chip {
  padding: 0.32rem 0.75rem;
  border: 1px solid #c5d3e5;
  border-radius: 14px;
  background: #f2f6fc;
  color: #28426a;
  font: inherit;
  font-size: 0.82rem;
  line-height: 1.3;
  cursor: pointer;
  transition: background 0.1s, border-color 0.1s;
}

.fc-suggestion-chip:hover,
.fc-suggestion-chip:focus {
  background: #deeaf8;
  border-color: #6da8e0;
}

/* Status/details panel */
.panel.status {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.panel.status.status-success {
  border-color: #E2E8F0;
}
.panel.status.status-failed {
  border-color: #edb0b0;
  background: #fffafa;
}
.panel.status.status-unknown {
  border-color: #ccd4e0;
}

/* Collapsible details panel (wraps status-grid) */
.details-panel {
  width: 100%;
}

.details-panel > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
  user-select: none;
}

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

.details-panel > summary::after {
  content: "▸";
  font-size: 0.7rem;
  color: #9ca8b4;
  transition: transform 0.15s;
  margin-left: 0.5rem;
}

.details-panel[open] > summary::after {
  transform: rotate(90deg);
}

.details-panel > .status-grid {
  margin-top: 0.75rem;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}
.status-grid div { min-width: 0; }
.status-grid dt {
  margin: 0 0 0.2rem;
  color: #8090a0;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.status-grid dd {
  margin: 0;
  color: #0d1b2e;
  font-family: monospace;
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

/* Error panel */
.panel.error {
  border-color: #edb0b0;
  background: #fff4f4;
  color: #b83030;
}

/* Debug panel */
.panel.debug {
  background: #f6f8fb;
  border-color: #d4dbe6;
  font-size: 0.875rem;
}

.dbg-section {
  margin-bottom: 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #e2e8ef;
}
.dbg-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.dbg-section-title {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #a8b2bc;
  margin-bottom: 0.35rem;
}

.dbg-table { border-collapse: collapse; width: 100%; }
.dbg-table th {
  text-align: left;
  padding: 2px 12px 2px 0;
  color: #8090a0;
  font-weight: 600;
  width: 180px;
  white-space: nowrap;
  font-size: 0.78rem;
}
.dbg-table td {
  padding: 2px 0;
  font-family: monospace;
  color: #2a3a4a;
  font-size: 0.78rem;
}
.dbg-table tr.dbg-warn th,
.dbg-table tr.dbg-warn td {
  color: #b85c00;
  font-weight: 600;
}

details summary {
  cursor: pointer;
  color: #8090a0;
  font-size: 0.8rem;
  user-select: none;
  padding: 2px 0;
}

#dbg-raw {
  margin: 0.5rem 0 0;
  padding: 0.75rem;
  background: #1e1e2e;
  color: #cdd6f4;
  border-radius: 6px;
  font-size: 0.78rem;
  overflow-x: auto;
  white-space: pre;
}

.hidden { display: none; }

/* ── Player profile card (A12) ── */
.profile-card {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  white-space: normal;
}

/* Compact PLAYER_STATS card (Q9) */
.player-stats-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  white-space: normal;
}

.psc-header {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #dde4ef;
}

.psc-player-name {
  font-size: 1.45rem;
  font-weight: 700;
  color: #0d1b2e;
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.psc-meta {
  font-size: 0.82rem;
  color: #6e8090;
  line-height: 1.45;
}

.pc-stat-group--compact .pc-stat-grid {
  grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
}

.pc-stat-group--compact .pc-stat-item {
  padding: 0.78rem 0.85rem;
}

.pc-stat-group--compact .pc-stat-value {
  font-size: 1.42rem;
}

/* Compact PLAYER_COMPARE card (Q15) */
.player-compare-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  white-space: normal;
}

.pcc-header {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #dde4ef;
}

.pcc-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0d1b2e;
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.pcc-teams {
  font-size: 0.88rem;
  font-weight: 600;
  color: #3568c0;
  line-height: 1.35;
  margin-bottom: 0.25rem;
}

.pcc-meta {
  font-size: 0.78rem;
  color: #6e8090;
  line-height: 1.45;
}

.pcc-read {
  padding: 0.78rem 0.9rem;
  border-radius: 8px;
  border: 1px solid #dbe5f1;
  border-left: 4px solid #3568c0;
  background: #f3f7fd;
}

.pcc-section-label {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #536b8c;
  margin-bottom: 0.34rem;
}

.pcc-read-text {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #18304f;
  font-weight: 600;
}

.pcc-evidence {
  padding: 0.72rem 0.9rem;
  border: 1px solid #dde6f0;
  border-radius: 8px;
  background: #f8fafc;
  border-left: 3px solid #8ab0d8;
}

.pcc-evidence-list {
  margin: 0;
  padding-left: 1.05rem;
  color: #334456;
  font-size: 0.86rem;
  line-height: 1.5;
}

.pcc-evidence-list li + li {
  margin-top: 0.24rem;
}

.pcc-table {
  display: grid;
  gap: 0.35rem;
}

.pcc-row {
  display: grid;
  grid-template-columns: minmax(110px, 1.2fr) repeat(2, minmax(72px, 1fr));
  gap: 0.45rem;
  align-items: stretch;
}

.pcc-row--head .pcc-cell {
  background: transparent;
  border-color: transparent;
  color: #6e8090;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-top: 0;
  padding-bottom: 0.2rem;
}

.pcc-row--group {
  grid-template-columns: 1fr;
  margin-top: 0.15rem;
}

.pcc-group-label {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6e8090;
  padding: 0.24rem 0 0.08rem 0.45rem;
  border-left: 2px solid #3d77c5;
}

.pcc-cell {
  min-width: 0;
  background: #f8fafd;
  border: 1px solid #e4eaf2;
  border-radius: 7px;
  padding: 0.58rem 0.68rem;
  color: #0d1b2e;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.pcc-label {
  color: #536070;
  font-size: 0.82rem;
  font-weight: 600;
}

.pcc-value {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.pcc-value--leader {
  color: #173e75;
  background: #e5f0fc;
  border-color: #a8c0e0;
  font-weight: 750;
  box-shadow: inset 0 0 0 1px rgba(29, 75, 138, 0.1);
}

.pcc-summary {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #2a3a4a;
  padding: 0.72rem 0.9rem;
  background: #f4f7fb;
  border-radius: 7px;
  border-left: 3px solid #3568c0;
}

.pcc-prototype-note {
  color: #6e7e8e;
  font-size: 0.72rem;
  line-height: 1.45;
  margin-top: -0.2rem;
}

/* ── Compare card section modifiers (UX20) ── */

/* Comparison SharpTake: dark inverted — matches Player Insight callout */
.pcc-read--primary {
  background: #0f2340;
  border: none;
  border-radius: 8px;
  padding: 1rem 1.15rem;
  box-shadow: 0 4px 18px rgba(15, 35, 64, 0.2);
}

.pcc-read--primary .pcc-section-label {
  color: rgba(160, 188, 224, 0.85);
  letter-spacing: 0.11em;
  font-size: 0.62rem;
}

.pcc-read--primary .pcc-read-text {
  color: #e8f0fb;
  font-size: 1rem;
  font-weight: 650;
}

/* Role/Profile Contrast: softer blue-gray tint — clearly supporting, not primary */
.pcc-read--contrast {
  background: #f2f6fb;
  border: 1px solid #d5e2ef;
  border-left: 3px solid #6a9fc2;
}

.pcc-read--contrast .pcc-section-label {
  color: #4a6882;
}

.pcc-read--contrast .pcc-read-text {
  color: #2a3f54;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Why This Comparison: de-emphasized — just context, not key data */
.pcc-llm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.pcc-read--llm {
  background: #f8fafc;
  border: 1px solid #dce6f0;
  border-left: 3px solid #6a9fc2;
}

.pcc-read--llm .pcc-read-text {
  color: #2a3f54;
  font-size: 0.9rem;
  font-weight: 500;
}

.pcc-read--bottom {
  background: #eef5fb;
  border: 1px solid #cddded;
  border-left: 4px solid #173e75;
}

.pcc-read--bottom .pcc-read-text {
  color: #17304f;
  font-size: 0.94rem;
  font-weight: 650;
}

.pcc-coverage {
  padding: 0.55rem 0.05rem 0;
  border-top: 1px solid #e4ecf4;
}

.pcc-coverage .pcc-section-label {
  color: #8090a0;
}

.pcc-coverage-text {
  color: #60707e;
  font-size: 0.78rem;
  line-height: 1.45;
}

.pcc-evidence--why {
  background: transparent;
  border: none;
  border-top: 1px solid #e4ecf4;
  border-radius: 0;
  padding: 0.65rem 0.05rem 0;
}

.pcc-evidence--why .pcc-section-label {
  color: #8090a0;
}

.pcc-evidence--why .pcc-evidence-list {
  color: #60707e;
  font-size: 0.83rem;
}

/* ── UX21: Two-column insight report body ── */
.irc-report-body {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 1.25rem;
  align-items: start;
}

/* UI25 — Projection Read + Career Context side-by-side on desktop */
.irc-lower-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

/* Stats column inside report body */
.irc-stats-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ── UX21: Compare players bar ── */
.pcc-players-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0 1rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.pcc-player-block {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.pcc-player-block--a { text-align: left; }
.pcc-player-block--b { text-align: right; }

.pcc-player-block-name {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0em;
  color: var(--navy);
  line-height: 1.05;
}

.pcc-player-block-team {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-link);
  line-height: 1.3;
}

.pcc-player-block-bio {
  font-size: 0.73rem;
  color: #5a7090;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.pcc-vs {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: #b0bbc8;
  text-align: center;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── UX21: Statistical edge chips ── */
.pcc-edges-section {
  padding: 0.75rem 0.9rem;
  border: 1px solid #dde6f0;
  border-radius: 8px;
  background: #f8fafc;
}

.pcc-edge-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.pcc-edge-chip {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.52rem 0.82rem;
  background: var(--surface);
  border: 1px solid #c5d5e8;
  border-radius: 8px;
  min-width: 100px;
}

.pcc-edge-chip__label {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6080a0;
}

.pcc-edge-chip__detail {
  font-size: 0.8rem;
  font-weight: 600;
  color: #18304f;
  line-height: 1.35;
}

/* ── Polished PLAYER_INSIGHT_REPORT card (D33 → D40) ── */
.insight-report-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  white-space: normal;
}

.irc-header {
  padding-bottom: 1rem;
  border-bottom: 1px solid #d4dce8;
}

.irc-player-name {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: 0em;
  margin-bottom: 0.18rem;
  text-transform: uppercase;
}

.irc-team {
  font-size: 0.9rem;
  font-weight: 600;
  color: #3568c0;
  margin-bottom: 0.35rem;
}

.irc-meta {
  font-size: 0.78rem;
  color: #7888a0;
  line-height: 1.45;
}

.irc-data-basis {
  display: inline-flex;
  align-items: center;
  margin-top: 0.55rem;
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  background: #f6f8fb;
  border: 1px solid #dfe6ee;
  color: #536577;
  font-size: 0.73rem;
  line-height: 1.3;
  font-weight: 650;
}

/* D44 — answer zone groups Key Insight + Bottom Line as a coherent primary answer */
.irc-answer-zone {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

/* D48 — pull answer zone slightly closer to player identity header */
.insight-report-card > .irc-answer-zone {
  margin-top: -0.18rem;
}

/* D48 — evidence zone clusters Trend + Why this read + Role Read as one panel */
.irc-evidence-zone {
  background: #f4f7fb;
  border: 1px solid #dce5f0;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.irc-evidence-zone .irc-section {
  border-top: none;
  padding: 0;
}

.irc-evidence-zone .irc-section--trend {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

/* UX12 — Role Read gets a visual separator so Style signals don't get lost */
.irc-evidence-zone .irc-section--role {
  border-top: 1px solid #d6e5d9;
  padding-top: 0.65rem;
}

.irc-callout {
  border-radius: 8px;
  padding: 1rem 1.1rem;
  border: 1px solid #d9e4f2;
}

.irc-callout--insight {
  background: #0f2340;
  border: none;
  border-radius: 8px;
  box-shadow: 0 6px 28px rgba(15, 35, 64, 0.30);
  padding: 1.35rem 1.5rem;
}

.irc-callout--bottom {
  background: #f2f7f4;
  border-left: 4px solid #2a7050;
}

.irc-block-label,
.irc-section-label {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6e8090;
  margin-bottom: 0.38rem;
}

.irc-callout--insight .irc-block-label {
  color: rgba(180, 210, 240, 0.92);
  letter-spacing: 0.13em;
  font-size: 0.64rem;
}

.irc-callout--bottom .irc-block-label {
  color: #2a7050;
}

.irc-block-text {
  font-size: 1.05rem;
  line-height: 1.58;
  color: #15253a;
  font-weight: 650;
  max-width: 90ch;
}

.irc-callout--insight .irc-block-text {
  font-size: 1.22rem;
  color: #e8f0fb;
  font-weight: 650;
  line-height: 1.62;
  max-width: none;
}

.irc-callout--bottom .irc-block-text {
  color: #1a3828;
  font-size: 0.97rem;
  font-weight: 500;
}

.irc-section {
  padding: 0.85rem 0;
  border-top: 1px solid #edf1f6;
}

.irc-section--trend {
  padding: 0.62rem 0.78rem;
  border: 1px solid #dfe8f3;
  border-radius: 8px;
  background: #fbfcfe;
}

.irc-section-text {
  font-size: 0.93rem;
  line-height: 1.6;
  color: #2a3a4a;
}

.irc-trend-text {
  font-weight: 500;
  font-size: 0.86rem;
  color: #3a4a5a;
}

.irc-section--trend .irc-section-label {
  color: #7888a0;
}

/* D44 — Role Read label is slightly more prominent than evidence labels */
.irc-section--role .irc-section-label {
  color: #4a5868;
  font-size: 0.71rem;
}

.irc-section--role .irc-chip-row {
  margin-top: 0.35rem;
}

.irc-why-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.irc-why-list li {
  padding: 0.48rem 0.78rem 0.48rem 0.72rem;
  background: #f4f7fb;
  border-left: 2px solid #afc3d8;
  border-radius: 0 5px 5px 0;
  font-size: 0.88rem;
  line-height: 1.56;
  color: #2d3f52;
  max-width: 82ch;
}

.irc-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.irc-section--trend .irc-chip-row {
  margin-top: 0.45rem;
}

.irc-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.24rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #d6deea;
  background: #f7f9fc;
  color: #3f5268;
  font-size: 0.73rem;
  line-height: 1.25;
  font-weight: 600;
  white-space: nowrap;
}

.irc-chip--trend {
  background: #eef5fb;
  border-color: #c9daee;
  color: #234b7c;
}

.irc-chip--role-style {
  background: #e8f3ec;
  border-color: #b5d4be;
  color: #245239;
  font-size: 0.76rem;
  font-weight: 700;
}

.irc-role-style-note {
  margin-top: 0.45rem;
}

.irc-role-style-evidence {
  margin-top: 0.45rem;
}

.irc-role-style-source {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  color: #677789;
}

/* UX12 — "Style signals" sub-label sits above role/style chips */
.irc-role-style-label {
  margin-top: 0.55rem;
  font-size: 0.63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2a5a3a;
}

.irc-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: start;
  background: #f6f9fd;
  border: 1px solid #dde6f0;
  border-radius: 8px;
  padding: 0.95rem 1rem;
}

.irc-details-grid .pc-stat-title {
  color: #4a6070;
}

.irc-stat-group .pc-stat-grid {
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
}

.irc-stat-group .pc-stat-item {
  background: #ffffff;
}

/* P7 — Player Projection Read section */
.irc-projection-read {
  padding: 1rem 1.1rem;
  border: 1px solid #c9d6e6;
  border-left: 3px solid #4a7cb5;
  border-radius: 0 6px 6px 0;
  background: #f6f9fd;
}

.irc-projection-read__label {
  margin: 0;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* Two-column grid: pairs of band rows sit side-by-side on wider screens */
.irc-proj-band-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem 1rem;
  margin-top: 0.45rem;
}

@media (max-width: 520px) {
  .irc-proj-band-grid {
    grid-template-columns: 1fr;
  }
}

.irc-proj-band-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  min-width: 0;
}

.irc-proj-band-label {
  color: #556070;
  font-size: 0.78rem;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.irc-proj-band-chip {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  min-width: 4.5rem;
  text-align: center;
  flex-shrink: 0;
}

/* Band chip colors (non-risk bands) */
.irc-proj-band--very-high  { background: #d4edda; color: #1a6630; }
.irc-proj-band--high       { background: #dff0e4; color: #28724b; }
.irc-proj-band--moderate   { background: #e8eef5; color: #3a5068; }
.irc-proj-band--low        { background: #fef3e2; color: #7a5200; }
.irc-proj-band--very-low   { background: #fde8e4; color: #8b2a20; }

/* Regression risk: invert sentiment so low=good, high=warning */
.irc-proj-band--risk.irc-proj-band--low,
.irc-proj-band--risk.irc-proj-band--very-low  { background: #d4edda; color: #1a6630; }
.irc-proj-band--risk.irc-proj-band--high,
.irc-proj-band--risk.irc-proj-band--very-high { background: #fde8e4; color: #8b2a20; }

.irc-proj-summary {
  margin-top: 0.6rem;
  color: #556070;
  font-size: 0.8rem;
  line-height: 1.5;
  font-style: italic;
}

/* P11 — Player Compare Projection Edge (4-column, both players visible) */
.irc-projection-edge {
  padding: 0.8rem 1rem;
  border: 1px solid #dde5ef;
  border-radius: 6px;
  background: #f9fbfd;
  margin-top: 0.75rem;
}
.irc-projection-edge-helper {
  color: #8794a3;
  font-size: 0.72rem;
  margin-top: 0.25rem;
  margin-bottom: 0.45rem;
}
.irc-projection-edge-header {
  display: grid;
  grid-template-columns: 1fr 4.8rem 4.8rem 5.5rem;
  gap: 0 0.5rem;
  align-items: end;
  margin-bottom: 0.2rem;
}
.irc-projection-edge-col-label {
  color: #8794a3;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.irc-projection-edge-table {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}
.irc-projection-edge-row {
  display: grid;
  grid-template-columns: 1fr 4.8rem 4.8rem 5.5rem;
  gap: 0 0.5rem;
  align-items: center;
  min-width: 0;
}
.irc-projection-edge-dim {
  color: #556070;
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.irc-projection-edge-val {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.irc-projection-edge-player-name {
  display: none;
}
.irc-projection-edge-band {
  display: inline-block;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  font-size: 0.67rem;
  font-weight: 600;
  width: 100%;
  text-align: center;
}
.irc-projection-edge-edge-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.irc-projection-edge-edge-prefix {
  display: none;
}
.irc-projection-edge-chip {
  display: inline-block;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  font-size: 0.67rem;
  font-weight: 600;
  width: 100%;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.irc-edge--player-a { background: #dbeafe; color: #1e4d91; }
.irc-edge--player-b { background: #fce7f3; color: #831843; }
.irc-edge--even     { background: #e8eef5; color: #3a5068; }
.irc-edge--unknown  { background: #f3f4f6; color: #9ca3af; }
@media (max-width: 520px) {
  .irc-projection-edge-header { display: none; }
  .irc-projection-edge-row {
    display: block;
    border-top: 1px solid #edf1f6;
    padding: 0.45rem 0;
  }
  .irc-projection-edge-table { gap: 0; }
  .irc-projection-edge-dim {
    display: block;
    font-weight: 600;
    white-space: normal;
    margin-bottom: 0.28rem;
  }
  .irc-projection-edge-val {
    display: block;
    margin-bottom: 0.15rem;
    justify-content: flex-start;
  }
  .irc-projection-edge-player-name {
    display: inline;
    color: #6b7a8d;
    font-size: 0.74rem;
    margin-right: 0.25rem;
  }
  .irc-projection-edge-band {
    display: inline-block;
    width: auto;
  }
  .irc-projection-edge-edge-cell {
    display: block;
    margin-top: 0.18rem;
    justify-content: flex-start;
  }
  .irc-projection-edge-edge-prefix {
    display: inline;
    color: #8794a3;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 0.3rem;
  }
  .irc-projection-edge-chip {
    display: inline-block;
    width: auto;
  }
}

/* P13 — Projection Edge verdict */
.irc-projection-edge-verdict {
  margin: 0.5rem 0 0.4rem;
}
.irc-projection-edge-verdict-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #2d4a6e;
  line-height: 1.3;
}
.irc-projection-edge-verdict-explanation {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: #4a5f75;
  line-height: 1.5;
}

/* P12 — Projection Edge legend (expandable details/summary) */
.irc-projection-edge-legend {
  margin-top: 0.55rem;
  border-top: 1px solid #edf1f6;
  padding-top: 0.35rem;
}
.irc-projection-edge-legend > summary {
  color: #6b7a8d;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  list-style: none;
}
.irc-projection-edge-legend > summary::-webkit-details-marker { display: none; }
.irc-projection-edge-legend > summary::before {
  content: "+ ";
  font-weight: 700;
  color: #8794a3;
}
.irc-projection-edge-legend[open] > summary::before { content: "− "; }
.irc-projection-edge-legend-list {
  margin: 0.4rem 0 0 0;
  padding-left: 0;
  list-style: none;
}
.irc-projection-edge-legend-item {
  color: #556070;
  font-size: 0.74rem;
  line-height: 1.5;
  padding: 0.15rem 0;
  border-bottom: 1px solid #f0f4f8;
}
.irc-projection-edge-legend-item:last-child { border-bottom: none; }
.irc-projection-edge-legend-item strong { color: #3a5068; }

/* D48 — footer groups stat-help and limitations as a single quiet zone */
/* D82 — Career Context section */
.irc-career-context {
  padding: 0.85rem 1rem;
  background: #f7f9fb;
  border: 1px solid #dde5ef;
  border-left: 3px solid #7a9ab8;
  border-radius: 0 8px 8px 0;
}

.irc-career-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.3rem;
}

.irc-career-seasons {
  font-size: 0.83rem;
  color: #3f5268;
  font-weight: 600;
  margin-right: 0.15rem;
}

.irc-chip--tier {
  background: #edf1f7;
  color: #3a5a78;
  border-color: #c9d4e0;
  font-size: 0.72rem;
}

.irc-career-notes {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

.irc-career-note {
  font-size: 0.72rem;
  color: #2d5a3d;
  background: #e6f4eb;
  border: 1px solid #b7d9c2;
  border-radius: 3px;
  padding: 0.1rem 0.45rem;
}

.irc-career-note--neutral {
  color: #536070;
  background: #f0f3f7;
  border-color: #d0d8e4;
}

/* UX14 — Career Context multi-year timeline */
.irc-career-summary-line {
  font-size: 0.78rem;
  color: #536070;
  margin-top: 0.25rem;
  line-height: 1.4;
  font-weight: 500;
}

.irc-career-timeline {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
}

.irc-career-season-row {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.22rem 0;
  flex-wrap: wrap;
  border-top: 1px solid #f0f3f7;
}

.irc-career-season-row:first-child {
  border-top: none;
}

.irc-career-season-label {
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #3f5268;
  min-width: 58px;
  flex-shrink: 0;
}

.irc-career-season-team {
  font-size: 0.78rem;
  color: #1a2b3c;
  font-weight: 500;
  flex: 1;
  min-width: 90px;
}

.irc-career-season-conf {
  font-size: 0.7rem;
  color: #6b7e94;
  font-weight: 700;
  flex-shrink: 0;
  min-width: 26px;
}

.irc-career-season-stats {
  font-size: 0.68rem;
  color: #8794a3;
  flex-shrink: 0;
  white-space: nowrap;
}

.irc-career-transfer-mark {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.63rem;
  color: #9daab8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.18rem 0 0.1rem;
  border-top: 1px dashed #d8e0ea;
  margin: 0.05rem 0;
}

.irc-career-transfer-mark::before {
  content: "↑";
  font-size: 0.68rem;
  opacity: 0.7;
}

/* Tier badge variants — weight/fill distinguishes conference level */
.irc-chip--tier--power {
  background: #1d4b8a;
  color: #fff;
  border-color: #1d4b8a;
}

.irc-chip--tier--high {
  background: transparent;
  color: #3a6ea8;
  border-color: #3a6ea8;
}

.irc-chip--tier--mid {
  background: transparent;
  color: #8794a3;
  border-color: #c5d0dd;
}

.irc-footer {
  border-top: 1px solid #e4ecf4;
  padding-top: 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.irc-footer > .irc-stat-help,
.irc-footer > .irc-limitations,
.irc-footer > .irc-synthesis-debug {
  border-top: none;
  padding-top: 0;
}

.irc-synthesis-debug {
  border-top: 1px solid #edf1f6;
  padding-top: 0.5rem;
}

.irc-synthesis-debug > summary {
  color: #8794a3;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.irc-synthesis-debug-reason {
  margin-top: 0.35rem;
  color: #7b8794;
  font-size: 0.78rem;
}

.irc-limitations {
  border-top: 1px solid #edf1f6;
  padding-top: 0.5rem;
}

.irc-limitations > summary {
  color: #8794a3;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.irc-limitations ul {
  margin: 0.55rem 0 0;
  padding-left: 1.1rem;
  color: #7b8794;
  font-size: 0.8rem;
  line-height: 1.5;
}

/* Advanced stat help disclosure (D43, D47) */
.irc-stat-help {
  border-top: 1px solid #edf1f6;
  padding-top: 0.5rem;
}

.irc-stat-help > summary {
  color: #3568c0;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  letter-spacing: 0.01em;
  list-style: none;
}

.irc-stat-help > summary::-webkit-details-marker {
  display: none;
}

.irc-stat-help > summary::before {
  content: "▸ ";
  font-size: 0.7rem;
}

.irc-stat-help[open] > summary::before {
  content: "▾ ";
}

.irc-stat-help > summary:hover {
  color: #1d4699;
}

.irc-stat-help-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 0.85rem;
  align-items: baseline;
  margin: 0.72rem 0 0.2rem;
  padding: 0;
}

.irc-stat-help-term {
  font-size: 0.76rem;
  font-weight: 700;
  color: #2a3a4a;
  white-space: nowrap;
}

.irc-stat-help-def {
  font-size: 0.78rem;
  color: #536577;
  line-height: 1.5;
  margin: 0;
}

/* Header block: name + team + context chips */
.pc-header {
  padding-bottom: 1rem;
  border-bottom: 1px solid #dde4ef;
}

.pc-player-name {
  font-size: 1.85rem;
  font-weight: 700;
  color: #0d1b2e;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.15rem;
}

.pc-team {
  font-size: 0.92rem;
  font-weight: 600;
  color: #3568c0;
  margin-bottom: 0.55rem;
}

/* Context chips row */
.pc-context-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem;
}

.pc-ctx-chip {
  font-size: 0.72rem;
  color: #6e8090;
  background: #f0f4fa;
  border: 1px solid #dde3ed;
  border-radius: 20px;
  padding: 0.12rem 0.5rem;
}

.pc-ctx-sep {
  font-size: 0.72rem;
  color: #b0bbc8;
  padding: 0 0.1rem;
}

/* Profile section wrapper (label + summary) */
.pc-section {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.pc-section-label {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #6e8090;
}

.pc-summary {
  font-size: 0.97rem;
  line-height: 1.65;
  color: #2a3a4a;
  padding: 0.8rem 1rem;
  background: #f4f7fb;
  border-radius: 7px;
  border-left: 3px solid #3568c0;
}

/* Stats sections */
.pc-stats-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pc-stat-title {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #6e8090;
  margin-bottom: 0.65rem;
  padding-left: 0.55rem;
  border-left: 2px solid #3d77c5;
}

.pc-stat-note {
  color: #6e7e8e;
  font-size: 0.74rem;
  line-height: 1.45;
  margin: 0 0 0.75rem;
  max-width: 560px;
  padding-left: 0.55rem;
  border-left: 2px solid #c0ccd8;
}

.pc-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.6rem;
}

.pc-stat-item {
  background: #f8fafd;
  border: 1px solid #e4eaf2;
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  text-align: center;
  transition: border-color 0.12s, background 0.12s;
}

.pc-stat-item:hover {
  border-color: #c8d3e5;
  background: #f1f5fb;
}

.pc-stat-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}

.pc-stat-label {
  font-size: 0.74rem;
  color: #6e8090;
  margin-top: 0.32rem;
  line-height: 1.3;
}

/* Bucket label and helper note inside derived metric tiles (A14 / A15) */
.pc-stat-context-label {
  font-size: 0.67rem;
  color: #4a6a80;
  margin-top: 0.35rem;
  line-height: 1.3;
  font-weight: 500;
}

.pc-stat-tile-note {
  font-size: 0.62rem;
  color: #8090a0;
  margin-top: 0;
  padding-top: 0.3rem;
  line-height: 1.35;
  border-top: 1px solid #e4eaf2;
}

/* Derived metrics section — wider tiles, subtle differentiation */
.pc-stat-group--derived .pc-stat-grid {
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}

.pc-stat-group--derived .pc-stat-item {
  background: #f4f6fb;
  border-color: #dde4f0;
}

.pc-unavailable {
  font-size: 0.85rem;
  color: #9ca8b4;
  font-style: italic;
  padding: 0.35rem 0;
}

/* ── Team leader card (A20) ── */
.team-leader-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  white-space: normal;
}

.tlc-header {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #dde4ef;
}

.tlc-team-name {
  font-size: 1.45rem;
  font-weight: 700;
  color: #0d1b2e;
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.tlc-meta {
  font-size: 0.78rem;
  color: #6e8090;
  line-height: 1.45;
}

.tlc-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tlc-row {
  display: grid;
  grid-template-columns: 1.6rem 1fr auto;
  gap: 0.5rem;
  align-items: baseline;
  padding: 0.5rem 0.75rem;
  background: #f8fafd;
  border: 1px solid #e4eaf2;
  border-radius: 7px;
}

.tlc-row--top {
  background: #eef4fb;
  border-color: #b8cce6;
}

.tlc-rank {
  font-size: 0.78rem;
  font-weight: 600;
  color: #6e8090;
  text-align: right;
}

.tlc-name {
  font-size: 0.95rem;
  color: #0d1b2e;
  font-weight: 500;
}

.tlc-row--top .tlc-name {
  font-weight: 700;
}

.tlc-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #173e75;
  white-space: nowrap;
}

/* ── Team metrics card (A18) ── */
.team-metrics-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  white-space: normal;
}

.tmc-header {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #dde4ef;
}

.tmc-team-name {
  font-size: 1.45rem;
  font-weight: 700;
  color: #0d1b2e;
  line-height: 1.2;
  margin-bottom: 0.15rem;
}

.tmc-conference {
  font-size: 0.88rem;
  font-weight: 600;
  color: #3568c0;
  margin-bottom: 0.25rem;
}

.tmc-meta {
  font-size: 0.78rem;
  color: #6e8090;
  line-height: 1.45;
}

.tmc-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.6rem;
}

.tmc-stat-item {
  background: #f8fafd;
  border: 1px solid #e4eaf2;
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  text-align: center;
  transition: border-color 0.12s, background 0.12s;
}

.tmc-stat-item:hover {
  border-color: #c8d3e5;
  background: #f1f5fb;
}

.tmc-stat-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}

.tmc-stat-label {
  font-size: 0.72rem;
  color: #6e8090;
  margin-top: 0.3rem;
  line-height: 1.3;
}

/* Team SharpTake card (MVP2c) */
.team-sharptake-card {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  white-space: normal;
}

.tsc-header {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid #d4dce8;
}

.tsc-eyebrow {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #5a7090;
  margin-bottom: 0.2rem;
}

.tsc-team-name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.05;
  text-transform: uppercase;
}

.tsc-meta {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #6e8090;
  line-height: 1.45;
}

.tsc-callout {
  border-radius: 8px;
  padding: 1.1rem 1.25rem;
}

.tsc-callout--key {
  background: #0f2340;
  color: #e8f0fb;
  box-shadow: 0 4px 18px rgba(15, 35, 64, 0.2);
}

.tsc-callout--bottom {
  background: #eaf4f0;
  border-left: 4px solid #2a7050;
}

.tsc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.tsc-section {
  padding: 0.9rem 1rem;
  border: 1px solid #dde6f0;
  border-top: 3px solid #c8d8ea;
  border-radius: 6px;
  background: #f8fafc;
}

.tsc-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #4d6680;
  margin-bottom: 0.55rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid #e4ecf4;
}

.tsc-callout--key .tsc-section-label {
  color: rgba(180, 208, 240, 0.9);
  letter-spacing: 0.12em;
  font-size: 0.62rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.tsc-callout--bottom .tsc-section-label {
  color: #2a7050;
  border-bottom-color: rgba(42, 112, 80, 0.2);
}

.tsc-section-text {
  color: #203348;
  font-size: 0.92rem;
  line-height: 1.62;
}

.tsc-callout--key .tsc-section-text {
  color: #e8f0fb;
  font-size: 1.08rem;
  font-weight: 650;
}

.tsc-callout--bottom .tsc-section-text {
  color: #1a3828;
  font-weight: 550;
}

.tsc-coverage {
  padding: 0.7rem 0.9rem;
  background: #f5f8fb;
  border: 1px solid #e0eaf4;
  border-radius: 6px;
}

.tsc-coverage-source {
  color: #3d5a75;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.tsc-coverage-note {
  color: #687889;
  font-size: 0.77rem;
  line-height: 1.5;
  margin-bottom: 0.3rem;
}

.tsc-coverage-text {
  color: #687889;
  font-size: 0.78rem;
  line-height: 1.5;
}

.tsc-coverage-list {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  color: #7b8794;
  font-size: 0.76rem;
  line-height: 1.55;
}

/* Team Compare card (MVP3) */
.team-compare-card {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  white-space: normal;
}

.tcc-header {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid #d4dce8;
}

.tcc-eyebrow {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #5a7090;
  margin-bottom: 0.35rem;
}

.tcc-matchup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
}

.tcc-team {
  min-width: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.08;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.tcc-vs {
  color: #6e8090;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tcc-meta {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: #6e8090;
  line-height: 1.45;
}

.tcc-records {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: baseline;
  margin-top: 0.45rem;
  color: #24364a;
  font-size: 0.86rem;
  line-height: 1.4;
}

.tcc-records-label {
  color: #5a7090;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tcc-records-text {
  font-weight: 750;
}

.tcc-recent-form {
  padding: 1.25rem 1.25rem;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  background: #ffffff;
}

.tcc-recent-form-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tcc-recent-form-basis {
  color: #667989;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
}

.tcc-recent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.65rem;
}

.tcc-recent-team {
  min-width: 0;
  padding: 0.7rem 0.75rem;
  border: 1px solid #d7e5df;
  border-radius: 6px;
  background: #ffffff;
}

.tcc-recent-team-name {
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.tcc-recent-row {
  display: grid;
  grid-template-columns: minmax(4.2rem, 0.8fr) minmax(2.6rem, 0.45fr) minmax(5.5rem, 1fr);
  gap: 0.45rem;
  align-items: baseline;
  margin-top: 0.45rem;
  color: #24364a;
  font-size: 0.82rem;
  line-height: 1.35;
}

.tcc-recent-label {
  color: #5a7090;
  font-weight: 800;
}

.tcc-recent-record {
  color: #142a3f;
  font-weight: 850;
}

.tcc-recent-margin {
  color: #3d5e52;
  font-weight: 750;
}

.tcc-recent-summary {
  margin-top: 0.65rem;
  color: #4f6173;
  font-size: 0.82rem;
  line-height: 1.45;
}

.tcc-recent-query-note {
  margin-top: 0.45rem;
  color: #6b7d8d;
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.45;
}

.tcc-matchup-factors {
  padding: 1.25rem 1.25rem;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  background: #ffffff;
}

.tcc-matchup-factors-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.tcc-matchup-factors-basis {
  color: #667989;
  font-size: 0.72rem;
  font-weight: 700;
}

.tcc-factor-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.8rem;
}

.tcc-factor {
  min-width: 0;
  padding: 0.9rem 1rem;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.tcc-factor--clear {
}

.tcc-factor--slight {
}

.tcc-factor-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
}

.tcc-factor-label {
  color: #0F172A;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.tcc-factor-edge {
  flex: 0 0 auto;
  padding: 0.15rem 0.42rem;
  border: 1px solid #d6e0e9;
  background: #f2f6f9;
  border-radius: 999px;
  color: #142a3f;
  font-size: 0.68rem;
  font-weight: 850;
  text-align: right;
  text-transform: capitalize;
  white-space: nowrap;
}

.tcc-factor-edge--clear {
  border-color: #bad0e0;
  background: #eaf3f9;
  color: #174c73;
}

.tcc-factor-edge--even {
  color: #5c6d7b;
}

.tcc-factor-summary {
  margin-top: 0.45rem;
  color: #21364d;
  font-size: 0.84rem;
  line-height: 1.45;
}

.tcc-factor-basis {
  margin-top: 0.55rem;
  padding-top: 0.45rem;
  border-top: 1px solid #edf1f5;
  color: #718297;
  font-size: 0.7rem;
  font-weight: 650;
  line-height: 1.35;
}

.tcc-matchup-factors-summary {
  margin-top: 0.65rem;
  color: #46596c;
  font-size: 0.82rem;
  line-height: 1.45;
}

.tcc-callout {
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}

/* UI-SYSTEM1 — major section labels (THE LEAN / MATCHUP FACTORS / RECENT FORM) */
.tcc-major-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748B;
  margin: 1.5rem 0 0.75rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid #E2E8F0;
}

/* UI-SYSTEM1 — projected separation compact table */
.tcc-sep-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.65rem;
}

.tcc-sep-table th {
  text-align: left;
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #64748B;
  padding: 0 0.75rem 0.35rem 0;
  border-bottom: 1px solid #E2E8F0;
}

.tcc-sep-table td {
  padding: 0.35rem 0.75rem 0.35rem 0;
  color: #0F172A;
  font-weight: 600;
  font-size: 0.84rem;
  border-bottom: 1px solid #F1F5F9;
  vertical-align: top;
}

.tcc-sep-table tr:last-child td {
  border-bottom: none;
}

.tcc-sep-table td:first-child {
  color: #64748B;
  font-weight: 500;
  font-size: 0.8rem;
}

.tcc-callout--key {
  background: #0f2340;
  color: #e8f0fb;
  box-shadow: 0 4px 18px rgba(15, 35, 64, 0.2);
}

.tcc-callout--bottom {
  background: #eaf4f0;
  border-left: 4px solid #2a7050;
}

.tcc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.tcc-projection {
  padding: 1.25rem 1.25rem;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  background: #ffffff;
}

.tcc-projection-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.45rem;
}

.tcc-projection-verdict {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}

.tcc-projection-confidence {
  font-size: 0.67rem;
  font-weight: 700;
  color: #4a6278;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: #dfe9f3;
  padding: 0.17rem 0.5rem;
  border-radius: 20px;
  white-space: nowrap;
  align-self: center;
}

.tcc-projection-text {
  margin-top: 0.7rem;
  color: #24364a;
  font-size: 0.92rem;
  line-height: 1.5;
}

.tcc-projection-separation {
  margin-top: 0.7rem;
  color: #182b41;
  line-height: 1.45;
}

.tcc-venue-list {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  color: #182b41;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.45;
}

.tcc-venue-note {
  margin-top: 0.45rem;
  color: #61758a;
  font-size: 0.76rem;
  line-height: 1.45;
}

.tcc-projection-list-label {
  margin-top: 1rem;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.tcc-projection-list {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  color: #24364a;
  font-size: 0.84rem;
  line-height: 1.45;
}

.tcc-projection-caveat {
  margin-top: 0.75rem;
  color: #7a8ea3;
  font-size: 0.76rem;
  line-height: 1.45;
}

.tcc-forecast-preview {
  padding: 1rem 1.1rem;
  border: 1px solid #d7e0e6;
  border-left: 4px solid #b58135;
  border-radius: 8px;
  background: #fbfaf6;
  box-shadow: 0 6px 18px rgba(34, 49, 66, 0.08);
}

.tcc-forecast-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tcc-forecast-preview-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}

.tcc-forecast-preview-badge {
  color: #5f4014;
  background: #f0dfbf;
  border: 1px solid #e2c990;
  border-radius: 999px;
  padding: 0.2rem 0.58rem;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tcc-forecast-preview-text {
  margin-top: 0.65rem;
  color: #203449;
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.48;
}

.tcc-forecast-preview-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.38rem 0.8rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.tcc-forecast-preview-features li {
  position: relative;
  padding-left: 0.9rem;
  color: #344b61;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
}

.tcc-forecast-preview-features li::before {
  content: "";
  position: absolute;
  top: 0.48em;
  left: 0;
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 50%;
  background: #b58135;
}

.tcc-forecast-preview-reason {
  margin-top: 0.8rem;
  padding-top: 0.65rem;
  border-top: 1px solid #e4ddd0;
  color: #5f7185;
  font-size: 0.82rem;
  line-height: 1.45;
}

.tcc-forecast-preview-disclaimer {
  margin-top: 0.35rem;
  color: #7c6a52;
  font-size: 0.72rem;
  line-height: 1.4;
}

.tcc-forecast-preview-cta {
  margin-top: 0.8rem;
  min-height: 2rem;
  border: 1px solid #bd8c45;
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
  background: #bd8c45;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.78rem;
  line-height: 1.2;
  cursor: default;
  opacity: 0.88;
}

.tcc-forecast-preview-cta-note {
  margin-top: 0.35rem;
  color: #7c6a52;
  font-size: 0.74rem;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .tcc-forecast-preview-features {
    grid-template-columns: 1fr;
  }
}

.tcc-section {
  padding: 0.9rem 1rem;
  border: 1px solid #dde6f0;
  border-top: 3px solid #c8d8ea;
  border-radius: 6px;
  background: #f8fafc;
}

.tcc-callout--key .tsc-section-label {
  color: rgba(180, 208, 240, 0.9);
  letter-spacing: 0.12em;
  font-size: 0.62rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.tcc-callout--key .tsc-section-text {
  color: #e8f0fb;
  font-size: 1.08rem;
  font-weight: 650;
}

.tcc-callout--bottom .tsc-section-label {
  color: #2a7050;
  border-bottom-color: rgba(42, 112, 80, 0.2);
}

.tcc-callout--bottom .tsc-section-text {
  color: #1a3828;
  font-weight: 550;
}

.tcc-coverage {
  padding: 0.7rem 0.9rem;
  background: #f5f8fb;
  border: 1px solid #e0eaf4;
  border-radius: 6px;
}

.tcc-matchup > .tcc-team:last-child {
  text-align: right;
}

/* ── Mobile: single-column stacked layout ── */
@media (max-width: 780px) {
  body {
    padding: 1.1rem 0.9rem 2rem;
  }

  .page-shell {
    padding-left: 0;
    padding-right: 0;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.1rem;
    padding-bottom: 0.85rem;
  }

  .site-header__brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  h1 {
    font-size: 1.9rem;
  }

  .composer-section {
    max-width: 100%;
  }

  .composer-row {
    flex-direction: column;
    gap: 0.5rem;
  }

  button#ask-btn {
    padding: 0.8rem 1.25rem;
  }

  .demo-section {
    margin-bottom: 1.25rem;
  }

  .example-featured-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .example-groups {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .example-prompt {
    padding: 0.42rem 0.72rem;
    font-size: 0.8rem;
  }

  .panel {
    padding: 1rem 1.1rem;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }

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

  .answer-empty-state {
    padding: 1.75rem 1.1rem 1.5rem;
  }

  .profile-card {
    gap: 1rem;
  }

  /* Insight report: stack body columns on mobile */
  .irc-report-body {
    grid-template-columns: 1fr;
  }

  .irc-lower-grid {
    grid-template-columns: 1fr;
  }

  .irc-player-name {
    font-size: 1.6rem;
  }

  .pc-player-name {
    font-size: 1.45rem;
  }

  .pc-stats-wrap {
    gap: 1.1rem;
  }

  .pc-stat-grid {
    grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  }

  .pc-stat-group--derived .pc-stat-grid {
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  }

  /* Compare: stack players vertically on narrow screens */
  .pcc-players-bar {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 0.35rem;
  }

  .pcc-player-block--b {
    text-align: left;
  }

  .pcc-vs {
    display: none;
  }

  .pcc-player-block-name {
    font-size: 1.35rem;
  }

  .pcc-row {
    grid-template-columns: minmax(92px, 1.05fr) repeat(2, minmax(58px, 0.85fr));
    gap: 0.35rem;
  }

  .pcc-cell {
    padding: 0.5rem 0.48rem;
    font-size: 0.78rem;
  }

  .pcc-value {
    font-size: 1rem;
  }

  .pcc-read--primary {
    padding: 0.9rem 1rem;
  }

  .pcc-read--primary .pcc-read-text {
    font-size: 0.93rem;
  }

  .pcc-llm-grid {
    grid-template-columns: 1fr;
  }

  .irc-callout--insight {
    padding: 1rem 1.1rem;
  }

  .irc-callout--insight .irc-block-text {
    font-size: 1.08rem;
  }

  .tsc-team-name {
    font-size: 1.55rem;
  }

  .tsc-grid {
    grid-template-columns: 1fr;
  }

  .tcc-matchup {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .tcc-team {
    font-size: 1.3rem;
  }

  .tcc-matchup > .tcc-team:last-child {
    text-align: left;
  }

  .tcc-vs {
    justify-self: start;
  }

  .tcc-grid {
    grid-template-columns: 1fr;
  }

  .tcc-recent-grid {
    grid-template-columns: 1fr;
  }

  .tcc-matchup-factors-header {
    display: block;
  }

  .tcc-matchup-factors-basis {
    margin-top: 0.3rem;
  }

  .tcc-factor-list {
    grid-template-columns: 1fr;
  }

  .tcc-recent-row {
    grid-template-columns: minmax(3.8rem, 0.75fr) minmax(2.4rem, 0.45fr) minmax(5rem, 1fr);
    gap: 0.35rem;
  }

  .pcc-edge-chips {
    gap: 0.4rem;
  }

  .pcc-edge-chip {
    min-width: 80px;
    padding: 0.42rem 0.65rem;
  }
}

/* ── Guided entry section ── */
.guided-section {
  width: 100%;
  margin: 0 0 0;
}

.guided-module {
  background: var(--surface);
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 1.15rem 1.25rem 1.05rem;
  margin-bottom: 0.85rem;
}

.guided-module--primary {
  border-color: var(--navy);
  border-width: 1.5px;
  box-shadow: 0 2px 8px rgba(12, 26, 46, 0.08);
  padding: 1.35rem 1.5rem 1.25rem;
}

.guided-module__header {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.guided-module__title {
  font-family: var(--font-display);
  font-size: 1.0rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}

.guided-module--primary .guided-module__title {
  font-size: 1.2rem;
  color: var(--navy);
}

.guided-module__sub {
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.guided-form__row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.guided-input {
  flex: 1;
  min-width: 110px;
  padding: 0.58rem 0.85rem;
  font-size: 0.93rem;
  font-family: var(--font-body);
  border: 1.5px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--navy);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.guided-input:focus {
  border-color: var(--blue-act);
  box-shadow: 0 0 0 3px rgba(29, 75, 138, 0.1);
}

.guided-vs {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.guided-submit {
  padding: 0.57rem 1.15rem;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s;
}

.guided-submit:hover {
  background: #1a3060;
}

.guided-secondary-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.guided-secondary-grid .guided-module {
  margin-bottom: 0;
}

.coverage-scope {
  font-size: 0.75rem;
  color: var(--muted);
  padding: 0 0.1rem;
}

.coverage-scope__label {
  font-weight: 600;
  color: var(--navy);
}

.coverage-scope__value {
  color: var(--navy);
}

.coverage-scope__sep {
  margin: 0 0.35rem;
}

@media (max-width: 1100px) and (min-width: 641px) {
  .guided-secondary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guided-module--compare-players {
    grid-column: 1 / -1;
  }
}

/* Secondary NL question label and scope note — kept for backward compat */
.composer-label { display: none; }
.composer-scope-note { display: none; }

/* ── Quick Actions: compact secondary path strip (UI-LAUNCH2) ── */
.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0.75rem 0 1.1rem;
}

.qa-item {
  background: var(--surface);
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 0.5rem 0.85rem;
}

.qa-form {
  display: block;
}

.qa-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.qa-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  min-width: 8.5rem;
  flex-shrink: 0;
  cursor: default;
}

.qa-input {
  flex: 1;
  min-width: 0;
  padding: 0.38rem 0.6rem;
  font-size: 0.88rem;
  font-family: var(--font-body);
  border: 1px solid var(--border);
  border-radius: 5px;
  outline: none;
  background: #f7fafd;
  color: var(--navy);
  transition: border-color 0.12s, box-shadow 0.12s;
}

.qa-input:focus {
  border-color: var(--blue-act);
  box-shadow: 0 0 0 2px rgba(29, 75, 138, 0.08);
  background: #fff;
}

.qa-vs {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
}

.qa-btn {
  padding: 0.38rem 0.95rem;
  font-size: 0.78rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: #3d5a7a;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.12s;
}

.qa-btn:hover {
  background: var(--navy);
}

@media (max-width: 640px) {
  .launch-intro {
    display: block;
    margin-bottom: 1.15rem;
  }

  .launch-intro__coverage {
    margin-top: 0.55rem;
    text-align: left;
  }

  .guided-module,
  .guided-module--primary {
    padding: 1rem;
  }

  .guided-form__row {
    flex-direction: column;
    align-items: stretch;
  }

  .guided-vs {
    text-align: center;
    padding: 0.1rem 0;
  }

  .guided-submit {
    width: 100%;
    min-height: 44px;
    padding: 0.65rem;
  }

  .guided-input {
    min-width: 0;
    min-height: 44px;
  }

  .quick-actions {
    gap: 0.45rem;
  }

  .qa-item {
    padding: 0.65rem 0.85rem;
  }

  .qa-row {
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .qa-label {
    min-width: 0;
    width: 100%;
    margin-bottom: 0;
  }

  .qa-input {
    min-height: 42px;
    font-size: 1rem;
  }

  .qa-btn {
    min-height: 42px;
    padding: 0 1rem;
  }

  .composer-section {
    padding: 0.65rem 0 0;
  }

  #query-input,
  button#ask-btn,
  .example-featured-card {
    min-height: 44px;
  }
}
