:root {
  --navy:#061a2f;
  --navy2:#0a2947;
  --cyan:#17c8f4;
  --cyan2:#00a7db;
  --ink:#102338;
  --muted:#65768a;
  --line:#dbe6ed;
  --surface:#f5f9fc;
  --success:#168a64;
  --danger:#9b2530;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
  min-height:100vh;
  color:var(--ink);
  background:
    radial-gradient(
      circle at 88% 0%,
      rgba(23,200,244,.13),
      transparent 27rem
    ),
    linear-gradient(
      180deg,
      #fbfdff,
      #f4f8fb
    );
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

button,
input,
select {
  font:inherit;
}

button {
  cursor:pointer;
}

.hidden {
  display:none !important;
}

.topbar {
  min-height:82px;
  padding:0 5vw;
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:white;
  background:var(--navy);
}

.brand {
  display:flex;
  align-items:center;
  gap:13px;
}

.logo {
  width:43px;
  height:49px;
}

.logo svg {
  width:100%;
  height:100%;
  fill:none;
  stroke:var(--cyan);
  stroke-width:2.1;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.logo .shield {
  fill:rgba(23,200,244,.05);
}

.logo .player {
  stroke:white;
}

.brand-name {
  font-size:20px;
  font-weight:900;
  letter-spacing:.15em;
}

.brand-sub {
  margin-top:2px;
  color:var(--cyan);
  font-size:9px;
  font-weight:800;
  letter-spacing:.31em;
}

.header-actions {
  display:flex;
  align-items:center;
  gap:12px;
}

.beta {
  border:1px solid rgba(23,200,244,.4);
  border-radius:99px;
  padding:7px 11px;
  color:var(--cyan);
  font-size:10px;
  font-weight:900;
}

.shell {
  width:min(1180px,92vw);
  margin:0 auto;
  padding:48px 0 72px;
}

.login-layout {
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:56px;
  align-items:center;
  min-height:calc(100vh - 210px);
}

.eyebrow {
  color:var(--cyan2);
  font-size:11px;
  font-weight:900;
  letter-spacing:.18em;
}

.hero h1 {
  max-width:760px;
  margin:12px 0 18px;
  color:var(--navy);
  font-size:clamp(48px,6vw,82px);
  line-height:.98;
  letter-spacing:-.045em;
}

.hero h1 span {
  color:var(--cyan2);
}

.hero > p {
  max-width:650px;
  color:var(--muted);
  font-size:19px;
  line-height:1.65;
}

.hero-steps {
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:34px;
}

.hero-steps div {
  min-width:130px;
  border-top:2px solid var(--cyan);
  padding-top:10px;
  font-weight:850;
}

.hero-steps strong {
  display:block;
  margin-bottom:4px;
  color:var(--cyan2);
  font-size:10px;
}

.card {
  border:1px solid rgba(6,26,47,.09);
  border-radius:20px;
  background:rgba(255,255,255,.96);
  box-shadow:0 18px 45px rgba(5,30,52,.09);
}

.login-card,
.panel {
  padding:27px;
}

.login-card h2,
.section-head h2 {
  margin:7px 0 4px;
}

.muted,
.page-heading p {
  color:var(--muted);
}

form {
  margin-top:22px;
}

label {
  display:flex;
  flex-direction:column;
  gap:7px;
  color:var(--navy2);
  font-size:12px;
  font-weight:800;
}

input,
select {
  width:100%;
  min-height:46px;
  border:1px solid var(--line);
  border-radius:10px;
  outline:0;
  padding:10px 12px;
  background:white;
  color:var(--ink);
}

input:focus,
select:focus {
  border-color:var(--cyan2);
  box-shadow:0 0 0 3px rgba(23,200,244,.13);
}

.primary,
.secondary,
.ghost {
  border-radius:10px;
  padding:11px 16px;
  font-weight:850;
}

.primary {
  border:0;
  color:white;
  background:
    linear-gradient(
      135deg,
      var(--cyan2),
      #0788bd
    );
}

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

.secondary {
  border:1px solid var(--line);
  color:var(--navy2);
  background:white;
}

.ghost {
  border:1px solid rgba(255,255,255,.25);
  color:white;
  background:transparent;
}

.wide {
  width:100%;
  margin-top:7px;
}

.page-heading,
.section-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.page-heading {
  margin-bottom:24px;
}

.page-heading h1 {
  margin:7px 0 3px;
  color:var(--navy);
}

.connected {
  display:flex;
  align-items:center;
  gap:8px;
  border-radius:99px;
  padding:8px 11px;
  background:#edf4f8;
  font-size:11px;
  font-weight:850;
}

.connected span {
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--success);
}

.grid {
  display:grid;
  grid-template-columns:.92fr 1.08fr;
  gap:22px;
}

.player-list,
.history-list {
  display:grid;
  gap:10px;
  margin-top:20px;
}

.player {
  display:flex;
  align-items:center;
  gap:12px;
  border:1px solid var(--line);
  border-radius:12px;
  padding:13px;
  background:var(--surface);
}

.avatar {
  width:40px;
  height:40px;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:white;
  background:var(--navy);
  font-weight:900;
}

.player strong,
.player small {
  display:block;
}

.player small {
  margin-top:3px;
  color:var(--muted);
}

.empty {
  border:1px dashed var(--line);
  border-radius:12px;
  padding:24px;
  color:var(--muted);
  text-align:center;
}

.form-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:15px;
}

.full,
.form-title {
  grid-column:span 2;
}

.form-title {
  margin-top:5px;
  border-top:1px solid var(--line);
  padding-top:18px;
  font-weight:900;
}

.form-actions {
  display:flex;
  gap:10px;
}

.notice {
  border-radius:10px;
  padding:11px 13px;
  font-size:12px;
  line-height:1.45;
}

.notice.error {
  border:1px solid #f0c0c5;
  color:var(--danger);
  background:#fff0f1;
}

.pipeline,
.history {
  margin-top:22px;
}

.status {
  border-radius:99px;
  padding:8px 11px;
  background:#edf4f8;
  font-size:11px;
  font-weight:850;
}

.progress-track {
  overflow:hidden;
  height:10px;
  margin-top:24px;
  border-radius:99px;
  background:#e5eef3;
}

.progress-bar {
  width:2%;
  height:100%;
  background:
    linear-gradient(
      90deg,
      var(--cyan2),
      var(--cyan)
    );
  transition:width .25s ease;
}

.progress-text {
  margin-top:8px;
  color:var(--muted);
  font-size:12px;
}

.steps {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  margin-top:23px;
}

.step {
  display:flex;
  gap:9px;
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px;
  opacity:.5;
}

.step b {
  width:27px;
  height:27px;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:white;
  background:#9fb1bd;
  font-size:11px;
}

.step strong,
.step small {
  display:block;
}

.step small {
  margin-top:3px;
  color:var(--muted);
  font-size:10px;
}

.step.active,
.step.complete {
  opacity:1;
  border-color:rgba(23,200,244,.4);
  background:rgba(23,200,244,.05);
}

.step.active b,
.step.complete b {
  background:var(--cyan2);
}

.anchor-panel {
  margin-top:26px;
  border-top:1px solid var(--line);
  padding-top:24px;
}

.anchor-panel h3 {
  margin:8px 0;
}

.anchor-panel p {
  color:var(--muted);
}

.video-wrap {
  position:relative;
  overflow:hidden;
  width:min(900px,100%);
  margin:17px 0 10px;
  border-radius:12px;
  background:black;
}

.video-wrap video {
  display:block;
  width:100%;
  cursor:crosshair;
}

.anchor-marker {
  position:absolute;
  width:24px;
  height:24px;
  border:3px solid white;
  border-radius:50%;
  background:var(--cyan);
  box-shadow:0 0 0 3px rgba(0,0,0,.45);
  transform:translate(-50%,-50%);
  pointer-events:none;
}

.anchor-readout {
  margin-bottom:12px;
  color:var(--muted);
  font-size:11px;
}

.history-row {
  display:grid;
  grid-template-columns:1.2fr .8fr .8fr;
  gap:12px;
  border-bottom:1px solid var(--line);
  padding:11px 0;
}

.history-row:last-child {
  border-bottom:0;
}

.history-row strong,
.history-row small {
  display:block;
}

.history-row small {
  margin-top:3px;
  color:var(--muted);
}

footer {
  display:flex;
  justify-content:space-between;
  gap:15px;
  padding:20px 5vw 30px;
  color:#7b8997;
  font-size:10px;
  font-weight:800;
  letter-spacing:.08em;
}

@media (max-width:850px) {
  .login-layout,
  .grid {
    grid-template-columns:1fr;
  }

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

  .beta {
    display:none;
  }
}

@media (max-width:580px) {
  .shell {
    width:94vw;
    padding-top:30px;
  }

  .brand-sub {
    letter-spacing:.18em;
  }

  .page-heading {
    align-items:flex-start;
    flex-direction:column;
  }

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

  .full,
  .form-title {
    grid-column:span 1;
  }

  .steps,
  .history-row {
    grid-template-columns:1fr;
  }

  footer {
    flex-direction:column;
  }
}


/* ==========================================================
   SYNAPSE ANALYSIS REVIEW v1
   ========================================================== */

.analysis-review {
  margin-top:22px;
}

.analysis-review-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}

.analysis-review-head h2 {
  margin:7px 0 4px;
}

.analysis-review-summary {
  max-width:560px;
  margin:0;
  color:#587083;
  font-size:13px;
  line-height:1.55;
}

.analysis-score-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);
  gap:16px;
  margin-top:22px;
}

.analysis-overall {
  display:flex;
  min-height:180px;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(22,190,205,.18);
  border-radius:18px;
  background:
    linear-gradient(
      145deg,
      rgba(6,26,47,.98),
      rgba(10,49,73,.96)
    );
  text-align:center;
}

.analysis-label {
  color:rgba(255,255,255,.62);
  font-size:10px;
  font-weight:800;
  letter-spacing:.12em;
}

.analysis-overall-value {
  margin:7px 0 3px;
  color:#fff;
  font-size:58px;
  font-weight:850;
  line-height:1;
}

.analysis-overall small {
  color:rgba(255,255,255,.62);
}

.analysis-ratings {
  display:flex;
  flex-direction:column;
  gap:8px;
}

.analysis-rating-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:46px;
  padding:0 14px;
  border:1px solid rgba(6,26,47,.08);
  border-radius:12px;
  background:#f7fafc;
  font-size:13px;
}

.analysis-rating-row strong {
  font-size:18px;
}

.analysis-gates {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-top:16px;
}

.analysis-gate {
  padding:14px;
  border:1px solid rgba(6,26,47,.08);
  border-radius:14px;
  background:#f7fafc;
}

.analysis-gate span,
.analysis-gate small {
  display:block;
}

.analysis-gate span {
  margin-bottom:5px;
  color:#6f8291;
  font-size:10px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.analysis-gate strong {
  display:block;
  margin-bottom:4px;
  font-size:13px;
}

.analysis-gate small {
  color:#718491;
  font-size:10px;
}

.analysis-stop-reason {
  margin-top:14px;
  padding:13px 14px;
  border:1px solid #f0c0c5;
  border-radius:12px;
  background:#fff0f1;
  color:var(--danger,#b4232d);
  font-size:12px;
  line-height:1.45;
}

.analysis-diagnostics {
  margin-top:16px;
  border-top:1px solid rgba(6,26,47,.08);
  padding-top:14px;
}

.analysis-diagnostics summary {
  cursor:pointer;
  color:#607585;
  font-size:12px;
  font-weight:800;
}

.analysis-diagnostic-grid {
  display:grid;
  grid-template-columns:minmax(120px,.7fr) minmax(0,1.5fr);
  gap:8px 14px;
  margin-top:14px;
  font-size:11px;
}

.analysis-diagnostic-grid span {
  color:#718491;
}

.analysis-diagnostic-grid code {
  overflow-wrap:anywhere;
  color:#16364c;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:10px;
}

@media (max-width:680px) {

  .analysis-score-grid,
  .analysis-gates {
    grid-template-columns:1fr;
  }

  .analysis-review-head {
    align-items:flex-start;
  }

  .analysis-overall {
    min-height:150px;
  }

  .analysis-overall-value {
    font-size:52px;
  }

}


/* ==========================================================
   SYNAPSE HISTORY INTERACTION v1
   ========================================================== */

.history-row[role="button"] {
  cursor:pointer;
  transition:
    transform .15s ease,
    border-color .15s ease,
    box-shadow .15s ease;
}

.history-row[role="button"]:hover {
  transform:translateY(-1px);
  border-color:rgba(19,190,204,.35);
  box-shadow:0 10px 24px rgba(5,30,52,.08);
}

.history-row[role="button"]:focus-visible {
  outline:2px solid var(--cyan2);
  outline-offset:3px;
}

.history-row[role="button"]:active {
  transform:scale(.99);
}


/* ==========================================================
   SYNAPSE PROCESSING STATUS FIGMA v1
   ========================================================== */

.pipeline {
  overflow:hidden;
}

.pipeline .steps {
  grid-template-columns:
    repeat(5,minmax(0,1fr));
}

.pipeline .step {
  min-width:0;
}

.pipeline .step strong {
  text-transform:uppercase;
  letter-spacing:.035em;
}

.pipeline[data-state="processing"] .status {
  color:#067c91;
  background:rgba(23,200,244,.12);
}

.pipeline[data-state="action"] .status {
  color:#9a6500;
  background:#fff2cc;
}

.pipeline[data-state="ready"] .status {
  color:#08764f;
  background:#dff6ec;
}

.pipeline[data-state="stopped"] .status {
  color:#a92b35;
  background:#fde8ea;
}

.pipeline[data-state="stopped"]
.step.active {
  border-color:rgba(190,53,67,.35);
  background:rgba(190,53,67,.05);
}

.pipeline[data-state="stopped"]
.step.active b {
  background:#be3543;
}

.pipeline[data-state="action"]
.step.active {
  border-color:rgba(215,154,23,.38);
  background:rgba(215,154,23,.06);
}

.pipeline[data-state="action"]
.step.active b {
  background:#d79a17;
}

@media (max-width:850px) {

  .pipeline .steps {
    grid-template-columns:1fr;
    gap:8px;
  }

  .pipeline .step {
    min-height:52px;
    align-items:center;
  }

  .pipeline .progress-track {
    height:7px;
  }
}


/* ==========================================================
   SYNAPSE ANALYSIS REVIEW — FIGMA ALIGNMENT v1
   ========================================================== */

.analysis-review {
  margin-top:22px;
  display:flex;
  flex-direction:column;
  gap:16px;
}

.syn-review-heading {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}

.syn-review-heading h2 {
  margin:6px 0 0;
}

.syn-review-pill {
  flex:0 0 auto;
  border-radius:999px;
  padding:7px 10px;
  background:#e8f6f8;
  color:#08798b;
  font-size:10px;
  font-weight:850;
  letter-spacing:.06em;
}

.syn-review-card,
.syn-review-section,
.syn-diagnostics {
  border:1px solid rgba(6,26,47,.09);
  border-radius:18px;
  background:rgba(255,255,255,.97);
  box-shadow:0 12px 28px rgba(5,30,52,.06);
}

.syn-review-card,
.syn-review-section {
  padding:18px;
}

.syn-match-context {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.syn-card-label,
.syn-section-title {
  color:#657d8d;
  font-size:10px;
  font-weight:850;
  letter-spacing:.1em;
}

.syn-match-context strong {
  display:block;
  margin-top:4px;
  color:#071f36;
  font-size:20px;
}

.syn-match-meta {
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:7px 12px;
  color:#6d8190;
  font-size:11px;
}

.syn-section-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
  color:#657d8d;
  font-size:10px;
  font-weight:850;
  letter-spacing:.09em;
}

.syn-section-head strong {
  color:#08798b;
}

.syn-status-list {
  display:flex;
  flex-direction:column;
  gap:10px;
}

.syn-status-row {
  display:flex;
  align-items:center;
  gap:10px;
}

.syn-status-row strong,
.syn-status-row small {
  display:block;
}

.syn-status-row strong {
  color:#15364d;
  font-size:11px;
  letter-spacing:.035em;
}

.syn-status-row small {
  margin-top:2px;
  color:#718594;
  font-size:10px;
}

.syn-status-dot {
  width:16px;
  height:16px;
  flex:0 0 auto;
  border:2px solid #adbbc4;
  border-radius:50%;
  background:white;
}

.syn-status-dot.complete {
  border-color:#1c9b71;
  background:#1c9b71;
  box-shadow:
    inset 0 0 0 4px white;
}

.syn-status-dot.active {
  border-color:#1bc7df;
  background:#1bc7df;
  box-shadow:
    inset 0 0 0 4px white;
}

.syn-status-dot.error {
  border-color:#ca4652;
  background:#ca4652;
  box-shadow:
    inset 0 0 0 4px white;
}

.syn-status-summary {
  margin:14px 0 0;
  padding-top:12px;
  border-top:1px solid rgba(6,26,47,.07);
  color:#607786;
  font-size:11px;
  line-height:1.5;
}

.syn-section-title {
  margin-bottom:14px;
}

.syn-section-helper {
  margin:-7px 0 14px;
  color:#82939f;
  font-size:10px;
}

.syn-rating-layout {
  display:grid;
  grid-template-columns:minmax(150px,.75fr) minmax(0,1.25fr);
  gap:16px;
}

.syn-overall-card {
  display:flex;
  min-height:250px;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  border-radius:16px;
  background:
    linear-gradient(
      150deg,
      #061c31,
      #0b3650
    );
}

.syn-rating-ring {
  --rating-progress:0%;
  display:grid;
  width:150px;
  height:150px;
  place-items:center;
  border-radius:50%;
  background:
    conic-gradient(
      #20c8df var(--rating-progress),
      rgba(255,255,255,.13) 0
    );
}

.syn-rating-ring-inner {
  display:flex;
  width:122px;
  height:122px;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#08263c;
}

.syn-rating-ring-inner span {
  color:rgba(255,255,255,.55);
  font-size:8px;
  font-weight:850;
  letter-spacing:.09em;
}

.syn-rating-ring-inner strong {
  margin-top:6px;
  color:white;
  font-size:50px;
  line-height:1;
}

.syn-overall-card small {
  margin-top:12px;
  color:rgba(255,255,255,.58);
  font-size:9px;
}

.syn-category-ratings {
  display:flex;
  flex-direction:column;
  gap:12px;
}

.syn-category-row {
  padding:12px 13px;
  border:1px solid rgba(6,26,47,.07);
  border-radius:12px;
  background:#f8fbfc;
}

.syn-category-top {
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
  color:#385369;
  font-size:10px;
  font-weight:850;
}

.syn-category-top strong {
  color:#102f45;
  font-size:16px;
}

.syn-rating-track {
  overflow:hidden;
  height:6px;
  border-radius:999px;
  background:#e7edf1;
}

.syn-rating-fill {
  width:0;
  height:100%;
  border-radius:999px;
  transition:width .3s ease;
}

.syn-rating-fill.technical {
  background:#21c6df;
}

.syn-rating-fill.tactical {
  background:#6978f0;
}

.syn-rating-fill.defensive {
  background:#39a876;
}

.syn-rating-fill.physical {
  background:#ee9b35;
}

.syn-rating-fill.psychological {
  background:#b367d6;
}

.syn-card-stack {
  display:flex;
  flex-direction:column;
  gap:10px;
}

.syn-insight-card,
.syn-coaching-card,
.syn-mastery-card {
  border:1px solid rgba(6,26,47,.07);
  border-radius:14px;
  background:#f8fbfc;
  padding:14px;
}

.syn-insight-card {
  color:#28475c;
  font-size:12px;
  line-height:1.5;
}

.syn-coaching-meta {
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
  color:#6a8190;
  font-size:9px;
  font-weight:850;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.syn-coaching-title {
  display:block;
  color:#0c2b42;
  font-size:14px;
  line-height:1.3;
}

.syn-coaching-card p,
.syn-mastery-card p {
  margin:8px 0 0;
  color:#607887;
  font-size:11px;
  line-height:1.5;
}

.syn-evidence-link {
  margin-top:10px;
  color:#0a94aa;
  font-size:9px;
  font-weight:850;
  letter-spacing:.06em;
}

.syn-mastery-top,
.syn-mastery-level {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.syn-mastery-top strong {
  color:#0d2e45;
  font-size:12px;
}

.syn-mastery-category {
  color:#6a8292;
  font-size:9px;
  font-weight:850;
  text-transform:uppercase;
}

.syn-mastery-level {
  margin-top:9px;
  color:#6a8190;
  font-size:9px;
  font-weight:850;
}

.syn-mastery-segments {
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:5px;
  margin-top:9px;
}

.syn-mastery-segment {
  height:6px;
  border-radius:99px;
  background:#e1e8ec;
}

.syn-mastery-segment.filled.technical {
  background:#21c6df;
}

.syn-mastery-segment.filled.tactical {
  background:#6978f0;
}

.syn-mastery-segment.filled.defensive {
  background:#39a876;
}

.syn-mastery-segment.filled.physical {
  background:#ee9b35;
}

.syn-mastery-segment.filled.psychological {
  background:#b367d6;
}

.syn-stop-card {
  padding:14px;
  border:1px solid #efbec3;
  border-radius:14px;
  background:#fff0f1;
  color:#a72b36;
  font-size:11px;
  line-height:1.45;
}

.syn-diagnostics {
  overflow:hidden;
}

.syn-diagnostics summary {
  cursor:pointer;
  padding:15px 17px;
  color:#667d8c;
  font-size:10px;
  font-weight:850;
  letter-spacing:.08em;
}

.syn-diagnostic-grid {
  display:grid;
  grid-template-columns:minmax(120px,.7fr) minmax(0,1.5fr);
  gap:8px 14px;
  padding:0 17px 17px;
  font-size:10px;
}

.syn-diagnostic-grid span {
  color:#7a8e9b;
}

.syn-diagnostic-grid code {
  overflow-wrap:anywhere;
  color:#15374d;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  font-size:9px;
}


@media (max-width:680px) {

  .analysis-review {
    gap:12px;
  }

  .syn-review-heading {
    align-items:flex-start;
  }

  .syn-review-card,
  .syn-review-section {
    padding:15px;
  }

  .syn-match-context {
    align-items:flex-start;
    flex-direction:column;
  }

  .syn-match-meta {
    justify-content:flex-start;
  }

  .syn-rating-layout {
    grid-template-columns:1fr;
  }

  .syn-overall-card {
    min-height:210px;
  }

  .syn-rating-ring {
    width:142px;
    height:142px;
  }

  .syn-rating-ring-inner {
    width:116px;
    height:116px;
  }

  .syn-rating-ring-inner strong {
    font-size:46px;
  }

  .syn-diagnostic-grid {
    grid-template-columns:1fr;
  }
}

/* ---------------------------------------------------------
   Match report navigation + evidence UI
--------------------------------------------------------- */

.syn-review-switcher {
  display:flex;
  gap:8px;
  margin:16px 0;
}

.syn-review-switcher button {
  flex:1;
  min-height:42px;
}

.syn-review-switcher button:disabled {
  opacity:.45;
  cursor:not-allowed;
}


#matchReportRatings {
  display:flex;
  flex-direction:column;
  gap:12px;
}

.syn-rating-row {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:14px;
  align-items:center;
  padding:12px 13px;
  border:1px solid rgba(6,26,47,.07);
  border-radius:12px;
  background:#f8fbfc;
}

.syn-rating-row > div:first-child {
  display:flex;
  flex-direction:column;
  gap:3px;
}

.syn-rating-row > div:last-child {
  min-width:110px;
  text-align:right;
}

.syn-rating-row strong {
  color:#102f45;
}

.syn-rating-row small {
  color:#627a8d;
  font-size:10px;
}

.syn-rating-row .syn-rating-track {
  margin-top:6px;
}


.syn-evidence-row {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:10px;
}

.syn-evidence-chip {
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:5px 9px;
  border:1px solid rgba(6,26,47,.10);
  border-radius:999px;
  background:#eef5f8;
  color:#385369;
  font-size:10px;
  font-weight:800;
  line-height:1.2;
}


@media (max-width: 640px) {
  .syn-review-switcher {
    gap:6px;
  }

  .syn-review-switcher button {
    min-height:40px;
    padding-left:10px;
    padding-right:10px;
    font-size:11px;
  }

  .syn-rating-row {
    grid-template-columns:1fr;
    gap:8px;
  }

  .syn-rating-row > div:last-child {
    min-width:0;
    text-align:left;
  }

  .syn-evidence-chip {
    font-size:9px;
  }
}


/* Evidence clip navigation */

button.syn-evidence-chip {
  appearance:none;
  font-family:inherit;
  cursor:pointer;
  transition:
    transform .15s ease,
    border-color .15s ease,
    background .15s ease;
}

button.syn-evidence-chip:active {
  transform:scale(.98);
}

button.syn-evidence-chip:focus-visible {
  outline:2px solid currentColor;
  outline-offset:2px;
}


/* FIGMA MOBILE SOCIAL OUTPUTS START */

.syn-social-mobile {
  position:relative;
  display:flex;
  flex-direction:column;
  width:min(100%,388px);
  min-height:844px;
  margin:20px auto;
  overflow:hidden;
  border-radius:20px;
  background:#07111f;
  color:#f7fafc;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  box-shadow:0 18px 60px rgba(0,0,0,.28);
}

.syn-social-mobile.hidden {
  display:none;
}

.syn-social-atmosphere {
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(
      circle at 50% 68%,
      rgba(22,155,255,.24),
      rgba(22,155,255,0) 50%
    ),
    linear-gradient(
      180deg,
      rgba(12,27,42,.12) 0%,
      rgba(22,155,255,.11) 55%,
      rgba(115,213,255,.05) 100%
    ),
    #07111f;
}

.syn-social-mobile-topbar {
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:88px;
  padding:28px 20px 12px;
}

.syn-social-logo-lockup {
  display:flex;
  align-items:center;
  gap:8px;
}

.syn-social-logo-mark {
  display:flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border:2px solid #18d7d1;
  border-radius:13px;
  color:#73d5ff;
  font-size:20px;
  font-weight:900;
  box-shadow:
    0 0 16px rgba(22,155,255,.28),
    0 0 32px rgba(22,155,255,.12);
}

.syn-social-logo-name {
  font-size:14px;
  font-weight:900;
  line-height:1;
  letter-spacing:.04em;
}

.syn-social-logo-sub {
  margin-top:3px;
  color:#8ea2b8;
  font-size:6px;
  font-weight:700;
  letter-spacing:.15em;
}

.syn-social-avatar {
  width:32px;
  height:32px;
  border:1px solid #20364a;
  border-radius:50%;
  background:#12283c;
}

.syn-social-mobile-scroll {
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  gap:16px;
  padding:8px 16px 24px;
}

.syn-social-page-title {
  text-align:center;
}

.syn-social-page-title h2 {
  margin:0;
  color:#f7fafc;
  font-size:24px;
  font-weight:700;
  line-height:32px;
}

.syn-social-page-title p {
  margin:2px 0 0;
  color:#8ea2b8;
  font-size:14px;
  font-weight:400;
  line-height:20px;
}

.syn-social-mobile-card {
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:12px;
  border:1px solid #20364a;
  border-radius:12px;
  background:#10243a;
  box-shadow:0 4px 12px rgba(3,7,12,.24);
}

.syn-social-match-card {
  gap:8px;
}

.syn-social-match-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.syn-social-match-row h3 {
  margin:0;
  color:#f7fafc;
  font-size:20px;
  font-weight:600;
  line-height:28px;
}

.syn-social-match-row p {
  margin:0;
  color:#8ea2b8;
  font-size:14px;
  line-height:20px;
}

.syn-social-ready-badge {
  flex-shrink:0;
  padding:8px;
  border:1px solid #22c55e;
  border-radius:8px;
  background:#12283c;
  color:#22c55e;
  font-size:12px;
  font-weight:600;
  line-height:16px;
}

.syn-social-player-meta {
  color:#8ea2b8;
  font-size:12px;
  font-weight:600;
  line-height:16px;
}

.syn-social-section-marker {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:100%;
}

.syn-social-section-marker span {
  flex:1;
  height:1px;
  border-radius:999px;
  background:linear-gradient(
    90deg,
    #169bff,
    rgba(22,155,255,.35),
    rgba(115,213,255,.8),
    #fff
  );
}

.syn-social-section-marker b {
  color:#73d5ff;
  font-size:15px;
  font-weight:800;
  letter-spacing:-2px;
}

.syn-social-section-marker strong {
  flex-shrink:0;
  color:#d7e0e8;
  font-size:18px;
  font-weight:600;
  line-height:24px;
  text-align:center;
}

.syn-social-carousel-count {
  color:#f7fafc;
  font-size:20px;
  font-weight:600;
  line-height:28px;
  text-align:center;
}

.syn-social-card-copy {
  margin:0;
  color:#8ea2b8;
  font-size:14px;
  line-height:20px;
  text-align:center;
}

.syn-social-preview-row {
  display:flex;
  justify-content:center;
  gap:8px;
  overflow-x:auto;
  padding:2px 0;
  scrollbar-width:none;
}

.syn-social-preview-row::-webkit-scrollbar {
  display:none;
}

.syn-social-preview-tile {
  position:relative;
  flex:0 0 96px;
  width:96px;
  height:120px;
  padding:8px;
  overflow:hidden;
  border:1px solid #20364a;
  border-radius:8px;
  background:
    radial-gradient(
      circle at 50% 100%,
      rgba(22,155,255,.22),
      transparent 55%
    ),
    linear-gradient(
      180deg,
      #07111f,
      #10243a
    );
  color:#fff;
  text-align:left;
  cursor:pointer;
}

.syn-social-preview-tile:active {
  transform:scale(.98);
}

.syn-social-mini-brand {
  color:#d7e0e8;
  font-size:5px;
  font-weight:900;
  letter-spacing:.08em;
}

.syn-social-mini-number {
  position:absolute;
  top:8px;
  right:8px;
  color:#169bff;
  font-size:7px;
  font-weight:700;
}

.syn-social-mini-title {
  position:absolute;
  left:8px;
  right:8px;
  bottom:28px;
  color:#f7fafc;
  font-size:8px;
  font-weight:800;
  line-height:10px;
  text-align:center;
}

.syn-social-mini-subtitle {
  position:absolute;
  left:8px;
  right:8px;
  bottom:16px;
  color:#73d5ff;
  font-size:5px;
  font-weight:700;
  text-align:center;
}

.syn-social-mini-accent {
  position:absolute;
  left:14px;
  right:14px;
  bottom:8px;
  height:1px;
  background:#169bff;
}

.syn-social-swipe-copy {
  color:#8ea2b8;
  font-size:12px;
  font-weight:600;
  line-height:16px;
  text-align:center;
}

.syn-social-details-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  width:100%;
  text-align:center;
}

.syn-social-detail-label {
  color:#d9e3ec;
  font-size:12px;
  font-weight:600;
  line-height:16px;
  letter-spacing:.08em;
}

.syn-social-detail-value {
  color:#f7fafc;
  font-size:14px;
  line-height:20px;
}

.syn-social-positive {
  color:#22c55e;
}

.syn-social-primary-action,
.syn-social-secondary-action {
  width:100%;
  min-height:36px;
  padding:8px;
  border-radius:8px;
  font-family:inherit;
  font-size:12px;
  font-weight:600;
  line-height:16px;
}

.syn-social-primary-action {
  border:1px solid #169bff;
  background:#169bff;
  color:#fff;
}

.syn-social-secondary-action {
  border:1px solid #20364a;
  background:#0c1b2a;
  color:#fff;
}

.syn-social-primary-action:disabled,
.syn-social-secondary-action:disabled {
  opacity:.45;
  cursor:not-allowed;
}

.syn-social-consent-copy {
  margin:0;
  color:#8ea2b8;
  font-size:12px;
  font-weight:600;
  line-height:16px;
  text-align:center;
}

.syn-social-bottom-nav {
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:repeat(5,1fr);
  min-height:96px;
  padding:8px;
  border-top:1px solid #20364a;
  background:#0c1b2a;
}

.syn-social-bottom-nav button {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  border:0;
  background:transparent;
  color:#8ea2b8;
  font-family:inherit;
  font-size:12px;
  font-weight:600;
  cursor:pointer;
}

.syn-social-bottom-nav button span {
  font-size:20px;
  line-height:20px;
}

.syn-social-bottom-nav button.active {
  color:#18d7d1;
}

.syn-social-bottom-nav button.submit {
  color:#fff;
}

.syn-social-bottom-nav button.submit span {
  display:flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border-radius:12px;
  background:#169bff;
  font-size:24px;
}

@media (max-width:640px) {
  .syn-social-mobile {
    width:100%;
    margin:0;
    border-radius:20px;
  }
}

/* FIGMA MOBILE SOCIAL OUTPUTS END */



/* ==========================================================
   SYNAPSE MOBILE APP SHELL
   Figma authority: Templates > Web App - Mobile UI
   ========================================================== */

body.synapse-mobile-app-active {
  overflow:hidden;
  background:#07111f;
}


/*
 * The existing pipeline becomes our first mobile screen host.
 * This preserves working analysis/upload state while removing
 * the legacy white beta shell around routed mobile screens.
 */

body.synapse-mobile-app-active #pipeline {
  position:fixed;
  inset:0;
  z-index:10000;

  display:block !important;

  width:100%;
  height:100dvh;

  max-width:none;
  margin:0;
  padding:0;

  overflow-x:hidden;
  overflow-y:auto;

  border:0;
  border-radius:0;

  background:#07111f;
  box-shadow:none;
}


/*
 * Hide legacy pipeline controls while a Figma/mobile screen
 * owns the viewport.
 */

body.synapse-mobile-app-active
#pipeline > * {
  display:none !important;
}


/*
 * Route-specific screen visibility.
 */

body[data-synapse-screen="clip-review"]
#pipeline > #analysisReview,

body[data-synapse-screen="match-report"]
#pipeline > #matchReport,

body[data-synapse-screen="social-outputs"]
#pipeline > #socialOutputs {
  display:block !important;
}


/*
 * Common screen viewport.
 */

body.synapse-mobile-app-active
#analysisReview,

body.synapse-mobile-app-active
#matchReport,

body.synapse-mobile-app-active
#socialOutputs {
  position:relative;

  width:100%;
  min-height:100dvh;

  margin:0 auto;

  border:0;
  border-radius:0;

  box-shadow:none;
}


/*
 * Social Outputs is already based on its locked Figma screen.
 * It now behaves as the app screen itself instead of a card.
 */

body[data-synapse-screen="social-outputs"]
#socialOutputs {
  display:flex !important;

  width:100%;
  max-width:none;

  min-height:100dvh;

  margin:0;

  border-radius:0;

  background:#07111f;
}


/*
 * Keep the actual app content at mobile width on large desktop
 * displays while remaining edge-to-edge on a phone.
 */

@media (min-width:700px) {

  body.synapse-mobile-app-active
  #pipeline {
    background:#030914;
  }


  body.synapse-mobile-app-active
  #analysisReview,

  body.synapse-mobile-app-active
  #matchReport,

  body.synapse-mobile-app-active
  #socialOutputs {
    width:430px;
    max-width:430px;
    margin:0 auto;

    background:#07111f;

    box-shadow:
      0 0 60px rgba(0,0,0,.45);
  }

}


@media (max-width:699px) {

  body.synapse-mobile-app-active
  #analysisReview,

  body.synapse-mobile-app-active
  #matchReport,

  body.synapse-mobile-app-active
  #socialOutputs {
    width:100%;
    max-width:none;
  }

}


/*
 * Prevent the old rounded embedded-social treatment from
 * winning when Social Outputs is acting as a routed screen.
 */

body[data-synapse-screen="social-outputs"]
.syn-social-mobile {
  width:100%;
  max-width:none;

  min-height:100dvh;

  margin:0;

  border-radius:0;
}


/*
 * Bottom navigation should sit against the viewport bottom
 * as part of the mobile app shell.
 */

body[data-synapse-screen="social-outputs"]
.syn-social-bottom-nav {
  position:sticky;
  bottom:0;
  left:0;
  right:0;

  width:100%;

  margin-top:auto;
}


/* ==========================================================
   END SYNAPSE MOBILE APP SHELL
   ========================================================== */

