/* ============================================================
   Supplier Portal page extras
============================================================ */

.nav-links a.active { color: var(--ink); font-weight: 500; }

.subnav {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 65px;
  z-index: 40;
}
.subnav-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 12px var(--pad-x);
  overflow-x: auto;
}
.subnav-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.subnav-inner a {
  text-decoration: none;
  color: var(--muted);
  font-size: 13.5px;
  white-space: nowrap;
  padding: 4px 0;
}
.subnav-inner a:hover { color: var(--ink); }
.subnav-inner a.active {
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 2px;
}

.hero-narrow .display { font-size: clamp(56px, 9vw, 116px); line-height: 0.94; }
.section-head.center-head { margin-left: auto; margin-right: auto; text-align: center; max-width: 760px; }

/* ============================================================
   SCREENSHOT FRAME
============================================================ */
.screenshot-frame {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 1180px;
  margin: 40px auto 0;
}
.sf-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 18px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.sf-url {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  background: var(--bg);
  padding: 5px 12px;
  border-radius: 6px;
}
.sf-tools { display: inline-flex; gap: 8px; }
.sf-img { display: block; width: 100%; height: auto; }
.sf-glow {
  position: absolute;
  inset: auto 8% -8% 8%;
  height: 80px;
  background: radial-gradient(50% 100% at 50% 0%, rgba(var(--ink-rgb),0.20), transparent 70%);
  filter: blur(28px);
  z-index: -1;
}

.sf-callouts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 1180px;
  margin: 36px auto 0;
}
@media (max-width: 920px){ .sf-callouts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .sf-callouts { grid-template-columns: 1fr; } }
.sf-call {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sf-call-i {
  font-weight: 500;
  font-size: clamp(28px, 2.6vw, 36px);
  letter-spacing: -0.028em;
  line-height: 1;
  color: var(--ink);
}
.sf-call-meta b { display: block; font-weight: 600; font-size: 14px; letter-spacing: -0.01em; }
.sf-call-meta span { font-size: 12.5px; color: var(--muted); line-height: 1.4; display: block; margin-top: 2px; }

/* ============================================================
   TWO-SIDES
============================================================ */
.sides-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 820px){ .sides-grid { grid-template-columns: 1fr; } }
.side-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.side-card.ret {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.side-card.ret p { color: rgba(30,30,42,0.75); }
.side-card.ret .tick li { color: rgba(30,30,42,0.85); }
.side-card.ret .tick li::before { background: var(--bg-card); }
.side-card.ret .tick li::after { border-color: var(--ink); }
.sc-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.side-card.ret .sc-eyebrow { color: rgba(30,30,42,0.6); }
.side-card h3 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 6px;
}

/* ============================================================
   LIFECYCLE
============================================================ */
.lifecycle {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}
@media (max-width: 1000px){
  .lifecycle { grid-template-columns: 1fr; }
  .lc-arrow { transform: rotate(90deg); justify-self: center; margin: 4px auto; }
}
.lc-step {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}
.lc-step.done {
  background: rgba(29,122,58,0.06);
  border-color: rgba(29,122,58,0.20);
}
.lc-step.on {
  background: rgba(180,122,18,0.10);
  border-color: rgba(180,122,18,0.30);
  box-shadow: 0 0 0 3px rgba(180,122,18,0.10);
}
.lc-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.lc-step b {
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.lc-step.done b { color: var(--ok); }
.lc-step.on b { color: var(--warn); }
.lc-step span:last-child { font-size: 12px; color: var(--muted); line-height: 1.4; }
.lc-arrow { color: var(--ink-mid); }
.lc-arrow.dim { color: var(--line-2); }
.lc-arrow svg { width: 40px; height: 8px; }

/* ============================================================
   SUBMISSION CARD
============================================================ */
.sub-card {
  width: 100%;
  max-width: 540px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow);
}
.sub-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.sub-h b { display: block; font-weight: 600; font-size: 14px; letter-spacing: -0.015em; }
.sub-h .muted { font-size: 12px; }
.sub-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(var(--ink-rgb),0.05);
  border-radius: 8px;
  flex-wrap: wrap;
}
.st {
  padding: 5px 11px;
  font-size: 12px;
  font-family: var(--f-mono);
  letter-spacing: 0.02em;
  color: var(--muted);
  border-radius: 5px;
}
.st.on { background: var(--bg-card); color: var(--ink); box-shadow: 0 1px 3px rgba(var(--ink-rgb),0.06); font-weight: 500; }

.sub-items { display: flex; flex-direction: column; gap: 6px; }
.sub-item {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12.5px;
}
.sub-item.warn { background: rgba(180,122,18,0.06); border-color: rgba(180,122,18,0.20); }
.si-img {
  width: 38px; height: 38px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-soft);
  position: relative;
}
.si-img .ai-fill { position: absolute; inset: 0; }
.si-meta b { display: block; font-weight: 600; font-size: 13px; letter-spacing: -0.01em; }
.si-meta span { font-size: 10.5px; color: var(--muted); }

.ai-fill.ai-tent {
  background: linear-gradient(135deg, #6A4A2C, #8C6A3E);
  position: relative;
}
.ai-fill.ai-tent::before {
  content: ""; position: absolute;
  inset: 22% 14% 10% 14%;
  background: rgba(255,255,255,0.10);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.sub-msg {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: flex-start;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.sm-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
}
.sm-bubble {
  padding: 10px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  border-top-left-radius: 2px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-mid);
}
.sm-meta {
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--muted);
  margin-bottom: 4px;
}
.sub-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* ============================================================
   ASSETS UPLOAD CARD (dark)
============================================================ */
.upload-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 100%;
  max-width: 520px;
}
.uc-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--line-light);
}
.uc-title { font-family: var(--f-mono); font-size: 12px; color: rgba(255,255,255,0.85); }
.uc-meta { font-size: 12px; color: rgba(255,255,255,0.55); }
.uc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
}
.uc-tile {
  background: var(--bg-dark);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 140px;
}
.uc-thumb {
  aspect-ratio: 1;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.uc-thumb .ai-fill { position: absolute; inset: 0; }
.uc-role {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  background: rgba(255,255,255,0.10);
  color: #fff;
  padding: 3px 7px;
  border-radius: 4px;
  align-self: flex-start;
}
.uc-tile .uc-meta { color: rgba(255,255,255,0.55); font-family: var(--f-mono); font-size: 10.5px; }
.uc-tile.drop {
  border: 1px dashed rgba(255,255,255,0.20);
  background: transparent;
  display: grid;
  place-items: center;
}
.uc-drop {
  font-family: var(--f-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

/* ============================================================
   SUPPLIER LIST
============================================================ */
.sup-list { padding: 0; overflow: hidden; }
.sl-h {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.9fr 0.9fr 1.3fr;
  gap: 14px;
  padding: 14px 22px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.sl-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.9fr 0.9fr 1.3fr;
  gap: 14px;
  align-items: center;
  padding: 12px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.sl-row:last-child { border-bottom: none; }
.sl-row.dim { background: var(--bg-soft); color: var(--muted); }
.sl-name { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.sl-mark {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 11px;
}
.sl-mark.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 16px; }
.sl-mark.add { background: transparent; border: 1px dashed var(--line-2); color: var(--muted); }
.sl-time { color: var(--muted); }
.sl-roles { display: flex; flex-wrap: wrap; gap: 4px; }
.rl {
  font-family: var(--f-mono);
  font-size: 10px;
  padding: 3px 7px;
  background: rgba(var(--ink-rgb),0.06);
  border-radius: 4px;
  color: var(--ink-mid);
  letter-spacing: 0.02em;
}

@media (max-width: 820px){
  .sl-h, .sl-row { grid-template-columns: 1fr auto; }
  .sl-h > span:nth-child(n+3),
  .sl-row > span:nth-child(n+3) { display: none; }
}

/* light tick variant */
.tick.light li { color: rgba(255,255,255,0.78); }
.tick.light li::before { background: var(--bg-card); }
.tick.light li::after { border-color: var(--ink); }

.foot-cols a.on { color: #fff; }

/* ── White mode (html[data-theme="light"]) overrides ── */
/* .side-card.ret sits on var(--ink), which is dark again in light mode —
   restore the white-on-dark internals from the original light theme. */
html[data-theme="light"] .side-card.ret p { color: rgba(255,255,255,0.78); }
html[data-theme="light"] .side-card.ret .tick li { color: rgba(255,255,255,0.85); }
html[data-theme="light"] .side-card.ret .sc-eyebrow { color: rgba(255,255,255,0.55); }
