/* Project Dynasty — P14 transactions ledger + P08 roster growth.
 * Neutral-base surfaces matching the shell tokens; light and dark themes.
 * Scoped under .pd-lg / .pd-growth so no existing surface is affected.
 *
 * 2026-09-28 visual rebuild: portrait-first event cards, even two-sided trades,
 * a sticky week rail, and phone-first type sizes for the Transactions room.
 */

.pd-lg-room,
.pd-growth {
  --lg-ink: var(--pd-shell-ink, #18181b);
  --lg-dim: var(--pd-shell-dim, #565660);
  --lg-line: var(--pd-shell-line, rgba(24, 24, 27, 0.1));
  --lg-line-strong: var(--pd-shell-line-strong, rgba(24, 24, 27, 0.16));
  --lg-panel: var(--pd-shell-panel, #ffffff);
  --lg-panel-soft: color-mix(in srgb, var(--pd-shell-ink, #18181b) 3.5%, var(--lg-panel));
  --lg-accent: #a87b16;
  --lg-up: #16794a;
  --lg-down: #b3261e;
  --lg-trade: #2f6fed;
  --lg-radius: 18px;
  color: var(--lg-ink);
}

html[data-theme="dark"] .pd-lg-room,
html[data-theme="dark"] .pd-growth {
  --lg-ink: #f4f4f5;
  --lg-dim: #a7a7b1;
  --lg-line: rgba(255, 255, 255, 0.12);
  --lg-line-strong: rgba(255, 255, 255, 0.2);
  --lg-panel: #27272a;
  --lg-panel-soft: rgba(255, 255, 255, 0.045);
  --lg-up: #4ade80;
  --lg-down: #f87171;
  --lg-trade: #6ea0ff;
}

/* ── P14 hero ─────────────────────────────────────────────── */
.pd-lg-room { display: grid; gap: 16px; }
.pd-lg-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: end;
  overflow: hidden;
  padding: 28px 30px;
  border: 1px solid var(--lg-line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 16%, color-mix(in srgb, var(--team-primary, #6b7280) 24%, transparent), transparent 44%),
    linear-gradient(135deg, #0c1118 0%, #1a2330 62%, #0c1118 100%);
  color: #fff;
  box-shadow: 0 22px 50px rgba(11, 18, 28, 0.18);
}
.pd-lg-hero::after {
  content: "LEDGER";
  position: absolute;
  right: -10px;
  bottom: -30px;
  color: rgba(255, 255, 255, 0.05);
  font-family: var(--display-font, Impact, sans-serif);
  font-size: 120px;
  font-weight: 950;
  letter-spacing: -0.04em;
  pointer-events: none;
}
.pd-lg-hero__lead { min-width: 0; }
.pd-lg-kicker {
  display: block;
  margin-bottom: 8px;
  color: #e3c46b;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.pd-lg-hero h2 { margin: 0; color: #fff; font-size: clamp(30px, 4vw, 46px); line-height: 0.98; }
.pd-lg-hero p { max-width: 62ch; margin: 10px 0 0; color: rgba(255, 255, 255, 0.76); font-size: 13.5px; line-height: 1.55; }
.pd-lg-hero__metrics { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, minmax(76px, auto)); gap: 8px; }
.pd-lg-metric {
  display: grid;
  gap: 3px;
  align-content: center;
  min-width: 82px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
}
.pd-lg-metric small { color: rgba(255, 255, 255, 0.62); font-size: 9px; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; }
.pd-lg-metric strong { color: #fff; font-size: 24px; line-height: 1; }
.pd-lg-metric em { color: rgba(255, 255, 255, 0.55); font-size: 10px; font-style: normal; }

/* ── Controls ─────────────────────────────────────────────── */
.pd-lg-controls {
  position: sticky;
  top: 72px;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding: 12px 14px;
  border: 1px solid var(--lg-line);
  border-radius: 16px;
  background: var(--lg-panel);
  box-shadow: 0 14px 30px -26px rgba(9, 9, 11, 0.5);
}
.pd-lg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-lg-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--lg-line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--lg-dim);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.pd-lg-chip svg { width: 13px; height: 13px; fill: currentColor; opacity: 0.85; }
.pd-lg-chip b { padding: 1px 7px; border-radius: 999px; background: var(--lg-panel-soft); color: var(--lg-ink); font-size: 11px; font-weight: 900; }
.pd-lg-chip:hover { border-color: var(--lg-accent); color: var(--lg-ink); }
.pd-lg-chip.is-active { border-color: var(--lg-accent); background: color-mix(in srgb, var(--lg-accent) 16%, transparent); color: var(--lg-ink); }
.pd-lg-chip.is-active.is-trade { border-color: var(--lg-trade); background: color-mix(in srgb, var(--lg-trade) 14%, transparent); }
.pd-lg-chip.is-active.is-signing,
.pd-lg-chip.is-active.is-re_signing { border-color: var(--lg-up); background: color-mix(in srgb, var(--lg-up) 13%, transparent); }
.pd-lg-chip.is-active.is-release { border-color: var(--lg-down); background: color-mix(in srgb, var(--lg-down) 12%, transparent); }
.pd-lg-selects { display: flex; gap: 8px; }
.pd-lg-selects .input,
.pd-lg-selects .select { min-width: 176px; font-size: 14px; }
.pd-lg-count { color: var(--lg-dim); font-size: 11.5px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }

/* ── Week rail ────────────────────────────────────────────── */
.pd-lg-groups { display: grid; gap: 2px; }
.pd-lg-week { position: relative; display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 18px; padding: 12px 0 6px; }
.pd-lg-week__head {
  position: sticky;
  top: 140px;
  align-self: start;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-top: 12px;
}
.pd-lg-week__node {
  width: 12px;
  height: 12px;
  margin-top: 4px;
  flex: 0 0 auto;
  border: 3px solid var(--lg-accent);
  border-radius: 50%;
  background: var(--lg-panel);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--lg-accent) 14%, transparent);
}
.pd-lg-week__label { display: grid; gap: 2px; }
.pd-lg-week__label b { font-size: 16px; line-height: 1.1; }
.pd-lg-week__label small { color: var(--lg-dim); font-size: 12px; font-weight: 700; }
.pd-lg-week__label em { color: var(--lg-dim); font-size: 10px; font-style: normal; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.pd-lg-week::before {
  content: "";
  position: absolute;
  top: 30px;
  bottom: -10px;
  left: 5px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--lg-accent) 55%, transparent), var(--lg-line));
}
.pd-lg-week:last-child::before { display: none; }
.pd-lg-week__body { display: grid; gap: 12px; }

/* ── Event cards ──────────────────────────────────────────── */
.pd-lg-entry {
  overflow: hidden;
  padding: 15px 18px 13px;
  border: 1px solid var(--lg-line);
  border-radius: var(--lg-radius);
  background: var(--lg-panel);
  box-shadow: 0 12px 30px -26px rgba(9, 9, 11, 0.5);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
@media (hover: hover) {
  .pd-lg-entry:hover { border-color: var(--lg-line-strong); box-shadow: 0 20px 40px -28px rgba(9, 9, 11, 0.62); transform: translateY(-1px); }
}
.pd-lg-entry__head { display: flex; align-items: center; gap: 10px; }
.pd-lg-entry__head .pd-lg-stamp { margin-left: auto; }
.pd-lg-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--lg-accent) 14%, transparent);
  color: var(--lg-ink);
  font-size: 10.5px;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.pd-lg-type svg { width: 12px; height: 12px; fill: currentColor; }
.pd-lg-type.is-trade { background: color-mix(in srgb, var(--lg-trade) 15%, transparent); color: color-mix(in srgb, var(--lg-trade) 78%, var(--lg-ink)); }
.pd-lg-type.is-signing,
.pd-lg-type.is-re_signing { background: color-mix(in srgb, var(--lg-up) 14%, transparent); color: color-mix(in srgb, var(--lg-up) 72%, var(--lg-ink)); }
.pd-lg-type.is-release { background: color-mix(in srgb, var(--lg-down) 12%, transparent); color: color-mix(in srgb, var(--lg-down) 76%, var(--lg-ink)); }
.pd-lg-trade__balance {
  min-height: 24px;
  padding: 0 10px;
  border: 1px dashed var(--lg-line-strong);
  border-radius: 999px;
  color: var(--lg-dim);
  font-size: 11px;
  font-weight: 900;
  line-height: 24px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pd-lg-stamp { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.pd-lg-stamp b { font-size: 12px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.pd-lg-stamp time { color: var(--lg-dim); font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }

/* Move card: portrait | identity | route | contract */
.pd-lg-move {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 8px 18px;
  align-items: center;
  margin-top: 13px;
}
.pd-lg-face-wrap { position: relative; display: inline-block; }
.pd-lg-face { display: block; }
.pd-lg-face .pd-pw-portrait { width: 66px; height: 76px; border-radius: 12px; }
.pd-lg-face .pd-pw-portrait--sm { width: 66px; height: 76px; }
.pd-lg-face.is-asset .pd-pw-portrait,
.pd-lg-face.is-asset .pd-pw-portrait--sm { width: 46px; height: 54px; border-radius: 10px; }
.pd-lg-face__initials {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
  color: color-mix(in srgb, var(--pd-gray-500, #71717a) 85%, var(--lg-ink));
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0.02em;
}
.pd-lg-ovr {
  position: absolute;
  z-index: 3;
  left: -7px;
  bottom: -7px;
  display: grid;
  place-items: center;
  min-width: 27px;
  height: 25px;
  padding: 0 6px;
  border: 2px solid var(--lg-panel);
  border-radius: 9px;
  background: #3f3f46;
  color: #fafafa;
  font-size: 13.5px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 6px 14px -8px rgba(0, 0, 0, 0.6);
}
.pd-lg-ovr.is-elite { background: #e8b83f; color: #1c1204; }
.pd-lg-ovr.is-great { background: #1f9d63; color: #f0fff6; }
.pd-lg-ovr.is-good { background: #2f6fed; color: #f2f6ff; }
.pd-lg-ovr.is-solid { background: #52525b; color: #fafafa; }
.pd-lg-ovr.is-developing { background: #71717a; color: #fafafa; }
.pd-lg-face.is-asset .pd-lg-ovr { min-width: 24px; height: 22px; font-size: 12.5px; left: -6px; bottom: -6px; }
.pd-lg-move__player { display: inline-flex; align-items: center; gap: 14px; min-width: 0; }
.pd-lg-move__id { display: grid; gap: 4px; min-width: 0; }
.pd-lg-name { font-size: 17px; font-weight: 900; line-height: 1.15; }
.pd-lg-name a { color: inherit; text-decoration: none; }
.pd-lg-name a:hover { color: var(--lg-accent); }
.pd-lg-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.pd-lg-pos,
.pd-lg-dev {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 7px;
  background: var(--lg-panel-soft);
  color: var(--lg-dim);
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.pd-lg-pos { color: var(--lg-ink); }
.pd-lg-dev img { width: 13px; height: 13px; }
.pd-lg-dev b { font-weight: 900; }
.pd-lg-route { display: inline-flex; align-items: center; gap: 10px; }
.pd-lg-route__end { display: inline-flex; }
.pd-lg-route__arrow { display: inline-flex; color: var(--lg-dim); }
.pd-lg-route__arrow svg { width: 16px; height: 16px; fill: currentColor; }
.pd-lg-contract { display: grid; gap: 2px; justify-items: end; text-align: right; }
.pd-lg-contract small { color: var(--lg-dim); font-size: 9.5px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.pd-lg-contract b { font-size: 13.5px; white-space: nowrap; }
.pd-lg-identity { margin: 12px 0 0; font-size: 16px; font-weight: 800; }
.pd-lg-identity i { color: var(--lg-accent); font-style: normal; }

/* Team chips */
.pd-lg-team { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.pd-lg-team__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--lg-line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--team-primary, #6b7280) 12%, var(--lg-panel));
}
.pd-lg-team__mark img { position: absolute; inset: 3px; z-index: 2; width: calc(100% - 6px); height: calc(100% - 6px); object-fit: contain; }
.pd-lg-team__mark img.is-hidden { display: none; }
.pd-lg-team__mark i { font-size: 10.5px; font-style: normal; font-weight: 950; letter-spacing: 0.02em; }
.pd-lg-team > span:last-child { display: grid; gap: 1px; min-width: 0; }
.pd-lg-team b { font-size: 14.5px; line-height: 1.1; }
.pd-lg-team small { color: var(--lg-dim); font-size: 11px; font-weight: 700; }
.pd-lg-team.is-fa .pd-lg-team__mark { background: var(--lg-panel-soft); color: var(--lg-dim); }
.pd-lg-team.is-fa .pd-lg-team__mark i { font-size: 0; }
.pd-lg-team.is-fa .pd-lg-team__mark::after { content: "FA"; font-size: 10.5px; font-weight: 950; }
.pd-lg-team.is-fa b { font-size: 13.5px; color: var(--lg-dim); }

/* ── Trade card: two even sides ───────────────────────────── */
.pd-lg-trade {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  margin-top: 13px;
}
.pd-lg-trade__side {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--lg-line);
  border-radius: 14px;
  background: var(--lg-panel-soft);
}
.pd-lg-trade__side.is-a { border-top-left-radius: 14px; }
.pd-lg-trade__side > header { display: flex; align-items: center; gap: 10px; }
.pd-lg-trade__side > header > small {
  margin-left: auto;
  color: var(--lg-dim);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pd-lg-trade__axis { display: grid; place-items: center; }
.pd-lg-trade__axis i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--lg-line-strong);
  border-radius: 50%;
  background: var(--lg-panel);
  color: var(--lg-trade);
  box-shadow: 0 8px 18px -12px rgba(9, 9, 11, 0.6);
}
.pd-lg-trade__axis svg { width: 16px; height: 16px; fill: currentColor; }
.pd-lg-assets { display: grid; gap: 8px; align-content: start; margin: 0; padding: 0; list-style: none; }
.pd-lg-asset {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 7px 11px 7px 8px;
  border: 1px solid var(--lg-line);
  border-radius: 12px;
  background: var(--lg-panel);
}
.pd-lg-asset__id { display: grid; gap: 2px; min-width: 0; }
.pd-lg-asset__id strong { font-size: 15px; font-weight: 900; line-height: 1.15; }
.pd-lg-asset__id strong a { color: inherit; text-decoration: none; }
.pd-lg-asset__id strong a:hover { color: var(--lg-accent); }
.pd-lg-asset__id small { color: var(--lg-dim); font-size: 11.5px; font-weight: 700; }
.pd-lg-empty-line {
  margin: 0;
  padding: 16px 12px;
  border: 1px dashed var(--lg-line-strong);
  border-radius: 12px;
  color: var(--lg-dim);
  font-size: 12.5px;
  text-align: center;
}

/* ── Event record detail ──────────────────────────────────── */
.pd-lg-detail { margin-top: 12px; border-top: 1px solid var(--lg-line); }
.pd-lg-detail summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  color: var(--lg-dim);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}
.pd-lg-detail summary::-webkit-details-marker { display: none; }
.pd-lg-detail summary i {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.15s ease;
}
.pd-lg-detail[open] summary { color: var(--lg-ink); }
.pd-lg-detail[open] summary i { transform: rotate(225deg) translateY(-1px); }
.pd-lg-detail summary:hover { color: var(--lg-ink); }
.pd-lg-detail__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding-bottom: 4px;
}
.pd-lg-detail__grid > span {
  display: grid;
  gap: 3px;
  padding: 9px 11px;
  border: 1px solid var(--lg-line);
  border-radius: 11px;
  background: var(--lg-panel-soft);
}
.pd-lg-detail__grid small { color: var(--lg-dim); font-size: 9.5px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.pd-lg-detail__grid b { font-size: 12.5px; font-weight: 800; }
.pd-lg-receipts,
.pd-lg-corrections { display: grid; gap: 4px; padding: 10px 0 2px; }
.pd-lg-receipts small,
.pd-lg-corrections small { color: var(--lg-dim); font-size: 10px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.pd-lg-receipts span,
.pd-lg-receipts a,
.pd-lg-corrections span { color: var(--lg-ink); font-size: 12.5px; }
.pd-lg-receipts a { text-decoration: underline; }

.pd-lg-empty { padding: 34px 20px; border: 1px dashed var(--lg-line-strong); border-radius: 16px; text-align: center; }
.pd-lg-empty strong { display: block; font-size: 16px; }
.pd-lg-empty p { margin: 6px 0 0; color: var(--lg-dim); font-size: 13px; }

/* ── P08 roster growth ────────────────────────────────────── */
.pd-growth { display: grid; gap: 16px; }
.pd-growth__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  padding: 24px 26px;
  border: 1px solid var(--lg-line);
  border-radius: 20px;
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--team-primary, #6b7280) 10%, transparent), transparent 60%),
    var(--lg-panel);
}
.pd-growth__hero h2 { margin: 4px 0 0; font-size: clamp(24px, 3vw, 34px); line-height: 1; }
.pd-growth__hero p { max-width: 70ch; margin: 10px 0 0; color: var(--lg-dim); font-size: 13px; line-height: 1.55; }
.pd-growth__metrics { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-growth__metrics .pd-lg-metric {
  border-color: var(--lg-line);
  background: color-mix(in srgb, var(--pd-shell-ink, #18181b) 4%, transparent);
  backdrop-filter: none;
}
.pd-growth__metrics .pd-lg-metric small { color: var(--lg-dim); }
.pd-growth__metrics .pd-lg-metric strong { color: var(--lg-ink); }
.pd-growth__metrics .pd-lg-metric em { color: var(--lg-dim); }
.pd-growth__movers { display: flex; flex-wrap: wrap; gap: 10px; }
.pd-growth__mover {
  display: grid;
  gap: 2px;
  min-width: 180px;
  padding: 12px 14px;
  border: 1px solid var(--lg-line);
  border-radius: 14px;
  background: var(--lg-panel);
}
.pd-growth__mover small { color: var(--lg-dim); font-size: 10px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.pd-growth__mover strong { font-size: 14px; }
.pd-growth__mover b { font-size: 18px; }
.pd-growth__mover em { color: var(--lg-dim); font-size: 11px; font-style: normal; }
.pd-growth__mover.is-up b { color: var(--lg-up); }
.pd-growth__mover.is-down b { color: var(--lg-down); }
.pd-growth__notes { display: grid; gap: 6px; padding: 12px 15px; border: 1px solid var(--lg-line); border-radius: 14px; background: color-mix(in srgb, var(--pd-shell-ink, #18181b) 3%, transparent); }
.pd-growth__notes span { color: var(--lg-dim); font-size: 12px; line-height: 1.5; }
.pd-growth__list { display: grid; gap: 8px; }
.pd-growth__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 18px;
  align-items: center;
  padding: 11px 14px;
  border: 1px solid var(--lg-line);
  border-radius: 14px;
  background: var(--lg-panel);
}
.pd-growth__player { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.pd-growth__player strong { display: block; font-size: 14px; }
.pd-growth__player strong a { color: inherit; text-decoration: none; }
.pd-growth__player strong a:hover { color: var(--lg-accent); }
.pd-growth__player small { display: block; color: var(--lg-dim); font-size: 11px; }
.pd-growth__status { display: block; margin-top: 2px; color: var(--lg-accent); font-size: 11px; font-style: normal; font-weight: 800; }
.pd-growth__status.is-out { color: var(--lg-down); }
.pd-growth__numbers { display: inline-flex; align-items: center; gap: 10px; }
.pd-growth__value { display: grid; justify-items: center; min-width: 54px; }
.pd-growth__value small { color: var(--lg-dim); font-size: 9px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.pd-growth__value b { font-size: 18px; }
.pd-growth__value.is-now b { color: var(--lg-ink); }
.pd-growth__arrow { color: var(--lg-dim); }
.pd-growth__delta { padding: 1px 7px; border-radius: 999px; font-size: 11px; font-style: normal; font-weight: 950; }
.pd-growth__delta.is-up { background: color-mix(in srgb, var(--lg-up) 14%, transparent); color: var(--lg-up); }
.pd-growth__delta.is-down { background: color-mix(in srgb, var(--lg-down) 12%, transparent); color: var(--lg-down); }
.pd-growth__delta.is-flat { background: color-mix(in srgb, var(--pd-shell-ink, #18181b) 6%, transparent); color: var(--lg-dim); }
.pd-growth__bar { grid-column: 1 / -1; height: 4px; border-radius: 999px; background: color-mix(in srgb, var(--pd-shell-ink, #18181b) 7%, transparent); overflow: hidden; }
.pd-growth__bar i { display: block; height: 100%; border-radius: 999px; background: var(--lg-accent); }
.pd-growth__bar.is-up i { background: var(--lg-up); }
.pd-growth__bar.is-down i { background: var(--lg-down); }
.pd-growth__row.arrived .pd-growth__bar i,
.pd-growth__row.departed .pd-growth__bar i { background: var(--lg-dim); }

html[data-theme="dark"] .pd-growth__metrics .pd-lg-metric { background: rgba(255, 255, 255, 0.05); }
html[data-theme="dark"] .pd-growth__notes { background: rgba(255, 255, 255, 0.04); }
html[data-theme="dark"] .pd-growth__bar { background: rgba(255, 255, 255, 0.1); }

/* ── Phone and narrow layouts ─────────────────────────────── */
@media (max-width: 900px) {
  .pd-lg-hero { grid-template-columns: minmax(0, 1fr); padding: 22px 18px; }
  .pd-lg-hero::after { font-size: 76px; }
  .pd-lg-hero__metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pd-lg-controls { top: 64px; }
  .pd-lg-move { grid-template-columns: auto minmax(0, 1fr); }
  .pd-lg-route { grid-column: 1 / -1; }
  .pd-lg-contract { grid-column: 1 / -1; justify-items: start; text-align: left; }
  .pd-lg-trade { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .pd-lg-trade__axis { order: 0; }
  .pd-lg-trade__axis i { transform: rotate(90deg); width: 30px; height: 30px; }
  .pd-lg-week { grid-template-columns: minmax(0, 1fr); gap: 6px; padding-top: 8px; }
  .pd-lg-week__head { position: static; padding-top: 6px; }
  .pd-lg-week::before { display: none; }
  .pd-lg-week__label b { font-size: 17px; }
  .pd-lg-detail__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-lg-controls { flex-direction: column; align-items: stretch; }
  .pd-lg-selects { flex-direction: column; }
  .pd-lg-selects .input,
  .pd-lg-selects .select { width: 100%; min-width: 0; min-height: 46px; }
  .pd-lg-chip { min-height: 42px; padding: 0 15px; font-size: 13px; }
  .pd-lg-name { font-size: 16.5px; }
  .pd-lg-face .pd-pw-portrait,
  .pd-lg-face .pd-pw-portrait--sm { width: 62px; height: 72px; }
  .pd-lg-asset__id strong { font-size: 15px; }
  .pd-lg-ovr { min-width: 26px; height: 24px; font-size: 13px; }
  .pd-growth__hero { grid-template-columns: minmax(0, 1fr); padding: 20px 16px; }
  .pd-growth__metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-growth__metrics .pd-lg-metric { min-width: 0; }
  .pd-growth__row { grid-template-columns: minmax(0, 1fr); }
  .pd-growth__numbers { justify-content: flex-start; }
}

@media (max-width: 420px) {
  .pd-lg-hero__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-lg-entry { padding: 13px 14px 11px; }
  .pd-lg-trade__side { padding: 11px; }
}
