/* Tool-Lifes — /money atlas styles.
 * Loaded only on /money/* pages. All selectors prefixed money-* or scoped under
 * body.money to avoid colliding with sports/job/meat in the global stylesheet. */

body.money {
  --money-ink: #0a1628;
  --money-muted: #475569;
  --money-stage: #0e7490;
  --money-gold: #a16207;
  --money-card-pad: 18px 20px;
  --money-lead: 1.75;
  --money-tracking: -.01em;
  --money-measure: 62ch;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  font-size: 1.02rem;
}

body.money .section-intro,
body.money .lede { max-width: var(--money-measure); line-height: var(--money-lead); color: var(--ink2); }
body.money .section-intro p { color: var(--ink2); font-size: 1.05rem; }
body.money h1, body.money h2, body.money h3 { letter-spacing: var(--money-tracking); color: var(--ink); }
body.money .hint, body.money .stat-note { color: var(--money-muted); }

/* ---------- locale typography (keep visual.css stack; only tweak measure) ---------- */
body.money[data-lang="ko"] {
  --money-lead: 1.85;
  --money-tracking: -.005em;
  --money-card-pad: 20px 22px;
  --money-measure: 38em;
}
body.money[data-lang="ja"] {
  --money-lead: 1.8;
  --money-tracking: -.02em;
  --money-card-pad: 18px 18px;
  --money-measure: 36em;
}
body.money[data-lang="zh"] {
  --money-lead: 1.8;
  --money-card-pad: 18px 20px;
  --money-measure: 36em;
}
body.money[data-lang="en"] {
  --money-measure: 62ch;
  font-variant-numeric: tabular-nums lining-nums;
}
body.money[data-lang="es"],
body.money[data-lang="fr"],
body.money[data-lang="de"],
body.money[data-lang="pt"] {
  --money-measure: 58ch;
  --money-lead: 1.72;
}
body.money[data-lang="ru"] {
  --money-lead: 1.78;
  --money-measure: 54ch;
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* ---------- hero / stage ---------- */
body.money .money-hero {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 55% at 8% 0%, rgba(14, 116, 144, .1), transparent 55%),
    radial-gradient(ellipse 55% 45% at 96% 12%, rgba(202, 138, 4, .08), transparent 50%),
    linear-gradient(180deg, #f0f7fa 0%, var(--bg) 78%);
}
body.money .money-hero .lede { color: #333333; }
body.money .money-hero .crumbs,
body.money .money-hero .crumbs a,
body.money .money-hero .crumbs span { color: #191919; }
body.money .money-hero h1 {
  color: #191919; font-family: var(--font-display);
  background: none; -webkit-text-fill-color: #191919;
}
.money-hero-symbols {
  position: absolute; inset: auto 0 0 auto; pointer-events: none; overflow: hidden;
  width: min(16vw, 96px); height: min(16vw, 96px);
  font-size: clamp(1.4rem, 3.2vw, 2rem); font-weight: 800; color: rgba(15, 118, 110, .045);
  letter-spacing: -.04em; line-height: 1; z-index: 0;
  right: 10px; top: 10px;
}
.money-hero-symbols span {
  position: absolute;
  transform: rotate(-12deg);
  opacity: .4;
}
.money-hero-symbols span:nth-child(1) { top: 8%; left: 8%; }
.money-hero-symbols span:nth-child(2) { top: 42%; right: 6%; transform: rotate(8deg); color: rgba(202, 138, 4, .07); }
.money-hero-symbols span:nth-child(3) { bottom: 6%; left: 18%; transform: rotate(-4deg); font-size: .72em; }

.money-stage {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}
@media (max-width: 760px) {
  .money-stage { grid-template-columns: 1fr; }
  .money-coin-wrap { justify-self: center; order: -1; }
}

/* ---------- 3D coin medallion ---------- */
.money-coin-wrap {
  perspective: 1100px;
  width: 168px; height: 168px;
}
.money-coin {
  width: 100%; height: 100%;
  position: relative;
  transform-style: preserve-3d;
  border-radius: 50%;
  will-change: transform;
}
.money-coin-face {
  position: absolute; inset: 0;
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  backface-visibility: hidden;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.55), transparent 42%),
    linear-gradient(145deg, #f8fafc 0%, #e2e8f0 45%, #cbd5e1 100%);
  border: 3px solid color-mix(in srgb, var(--accent, #0f766e) 55%, #94a3b8);
  box-shadow:
    0 18px 40px -16px rgba(15, 23, 42, .45),
    inset 0 1px 0 rgba(255,255,255,.7),
    inset 0 -8px 18px rgba(15, 23, 42, .08);
}
.money-coin-face.back {
  transform: rotateY(180deg);
  background:
    radial-gradient(circle at 68% 30%, rgba(255,255,255,.4), transparent 40%),
    linear-gradient(215deg, #fef9c3 0%, #fde68a 40%, #ca8a04 100%);
  border-color: color-mix(in srgb, var(--money-gold) 70%, #854d0e);
}
.money-coin-sym {
  font-size: 2.6rem; font-weight: 800; line-height: 1;
  color: var(--accent2, #134e4a);
  text-shadow: 0 1px 0 rgba(255,255,255,.6);
}
.money-coin-iso {
  margin-top: 6px;
  font-size: .72rem; font-weight: 800; letter-spacing: .14em;
  color: var(--money-muted);
}
.money-coin.is-idle {
  animation: money-coin-spin 14s linear infinite;
}
@keyframes money-coin-spin {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

/* ---------- cards ---------- */
.money-card {
  position: relative;
  padding: var(--money-card-pad);
  transform-style: preserve-3d;
}
.money-card .money-iso {
  position: absolute; top: 14px; right: 16px;
  font-size: .72rem; font-weight: 800; letter-spacing: .06em;
  color: var(--muted); font-variant-numeric: tabular-nums;
}
.money-card .money-card-orb {
  position: absolute; right: 14px; bottom: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  background: conic-gradient(var(--card-accent, var(--accent)) calc(var(--score, 0) * 1%), #e2e8f0 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  opacity: .9;
}
.money-card.money-float {
  animation: money-float 5.5s ease-in-out infinite;
  animation-delay: var(--float-delay, 0ms);
}
@keyframes money-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}

.money-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.money-chip {
  display: inline-block; font-size: .8rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent, #0f766e) 12%, transparent);
  color: var(--accent2, #134e4a); font-variant-numeric: tabular-nums;
}

.money-fam-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  border-left: 4px solid var(--card-accent, var(--accent));
  padding-left: 14px; margin: 2.2rem 0 1rem;
}
.money-fam-head h2 { margin: 0; font-size: 1.35rem; }
.money-fam-head .badge {
  font-size: .78rem; font-weight: 800; color: var(--muted);
  background: var(--track); padding: 3px 10px; border-radius: 999px;
}

/* ---------- notes / design ---------- */
.money-notes { display: grid; gap: 18px; }
.money-note {
  display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
  transform-style: preserve-3d;
}
.money-note::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 40%), rgba(255,255,255,.28), transparent 55%);
  opacity: 0; transition: opacity .25s ease;
}
.money-note:hover::after { opacity: 1; }
.money-note-img, .money-coin-img { margin: 0; }
.money-note-img img, .money-coin-img img {
  width: 100%; height: auto; border-radius: 10px; display: block;
}
@media (max-width: 640px) {
  .money-note { grid-template-columns: 1fr; }
}

/* ---------- score orbs (profile) ---------- */
.money-orbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.money-orb {
  text-align: center;
  padding: 14px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.money-orb-ring {
  width: 88px; height: 88px; margin: 0 auto 10px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--p, 0) * 1%), #e2e8f0 0);
  display: grid; place-items: center;
  position: relative;
}
.money-orb-ring::before {
  content: "";
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--surface);
  position: absolute;
}
.money-orb-val {
  position: relative; z-index: 1;
  font-size: 1.15rem; font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.money-orb-label {
  font-size: .78rem; font-weight: 700; color: var(--muted); line-height: 1.3;
}
.money-orb.is-anim .money-orb-ring {
  animation: money-orb-in .9s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes money-orb-in {
  from { filter: saturate(.4); transform: scale(.86); }
  to { filter: none; transform: scale(1); }
}

/* ---------- browse ---------- */
.money-browse {
  display: flex; flex-wrap: wrap; gap: 10px 12px;
  align-items: center; margin: 0 0 1.4rem;
}
.money-browse-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.money-chip-btn {
  appearance: none; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink2); font: inherit; font-size: .85rem; font-weight: 700;
  padding: 6px 12px; border-radius: 999px; cursor: pointer;
}
.money-chip-btn:hover { border-color: var(--accent); color: var(--accent); }
.money-chip-btn.is-on {
  background: var(--accent); border-color: transparent; color: #fff;
}
.money-browse-search {
  flex: 1 1 200px; min-width: 160px;
}
.money-browse-search input {
  width: 100%; box-sizing: border-box;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; font: inherit; background: var(--surface);
}
.money-browse-search input:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 1px;
}
.money-browse.is-empty .money-browse-empty { display: block; }
.money-browse-empty { display: none; color: var(--muted); margin: 1rem 0; }

/* ---------- rankings ---------- */
body.money .ranking { display: grid; gap: 8px; }
body.money .rank-row {
  display: grid; align-items: center; gap: 14px;
  grid-template-columns: 36px 28px minmax(0, 1fr) minmax(80px, 1.2fr) minmax(48px, auto);
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: inherit; text-decoration: none;
}
body.money .rank-row:hover { text-decoration: none; border-color: color-mix(in srgb, var(--card-accent, var(--accent)) 45%, var(--line)); }
body.money .rr-n { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--muted); text-align: center; }
body.money .rank-row:nth-child(-n+3) .rr-n { color: var(--card-accent, var(--accent)); }
body.money .rr-emoji { text-align: center; font-size: 1.25rem; }
body.money .rr-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
body.money .rr-main b { font-size: 1rem; letter-spacing: -.015em; }
body.money .rr-main i { font-style: normal; font-size: .78rem; color: var(--ink2); }
body.money .rr-bar {
  height: 8px; border-radius: 999px; background: var(--track); overflow: hidden;
}
body.money .rr-bar i {
  display: block; height: 100%; width: var(--w, 0); border-radius: inherit;
  background: linear-gradient(90deg, var(--card-accent, var(--accent)), var(--accent2));
}
body.money .rr-val { font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; color: var(--ink); }
@media (max-width: 640px) {
  body.money .rank-row {
    grid-template-columns: 28px 24px minmax(0, 1fr) minmax(44px, auto); gap: 8px; padding: 10px 12px;
  }
  body.money .rr-bar { display: none; }
}

/* ---------- quiz ---------- */
body.money .money-quiz-cta { border-top: 3px solid var(--card-accent, var(--accent)); }
body.money .quiz {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-soft);
}
body.money .qz-bar { height: 5px; background: var(--track); }
body.money .qz-bar i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width .35s ease;
}
body.money #qz-stage { padding: 32px 30px 24px; }
body.money .qz-count {
  font-size: .78rem; font-weight: 800; letter-spacing: .1em; color: var(--muted);
  text-transform: uppercase;
}
body.money .qz-q {
  font-size: 1.28rem; font-weight: 700; line-height: 1.45; margin: 10px 0 22px; letter-spacing: -.015em;
  color: var(--ink);
}
body.money .qz-opts { display: grid; gap: 8px; max-width: 460px; }
body.money .qz-opts button {
  font: inherit; text-align: left; cursor: pointer; padding: 13px 18px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
}
body.money .qz-opts button:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--bg));
}
body.money .qz-nav { margin-top: 20px; display: flex; gap: 10px; }
body.money .qz-nav button,
body.money .qz-share button {
  font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer; padding: 7px 16px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
body.money .qz-results { display: grid; gap: 10px; }
body.money .qz-hit {
  display: grid; grid-template-columns: 34px 30px 1fr minmax(70px, auto); align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: inherit;
}
body.money .qz-hit:hover { text-decoration: none; border-color: var(--jc, var(--accent)); }
body.money .qz-rank { font-size: 1.1rem; font-weight: 900; color: var(--jc); text-align: center; }
body.money .qz-emoji { font-size: 1.4rem; text-align: center; }
body.money .qz-main { min-width: 0; display: flex; flex-direction: column; }
body.money .qz-main i { font-style: normal; font-size: .76rem; color: var(--ink2); }
body.money .qz-pct { text-align: right; font-weight: 900; color: var(--jc); }
body.money .qz-why { color: var(--ink2); margin: 16px 0 0; }
body.money .money-quiz-all {
  display: flex; flex-wrap: wrap; gap: 8px;
}
body.money .money-quiz-all a {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem;
}
body.money .money-quiz-all a:hover { border-color: var(--jc, var(--accent)); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .money-coin.is-idle,
  .money-card.money-float,
  .money-orb.is-anim .money-orb-ring { animation: none !important; }
}

/* ---------- P0: radar size, labeled legend, dense facts, nav contrast ---------- */
body.money .jhero-text,
body.money .money-stage > div:first-child { position: relative; z-index: 1; }
body.money .profile {
  display: grid; gap: 16px;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  align-items: start;
}
@media (max-width: 720px) {
  body.money .profile { grid-template-columns: 1fr; }
}
body.money .pf-radar {
  display: grid; gap: 12px;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow);
}
@media (max-width: 560px) {
  body.money .pf-radar { grid-template-columns: 1fr; }
}
body.money .radar {
  width: 100%; max-width: 220px; height: auto;
  display: block; margin: 0 auto; overflow: visible;
}
body.money .radar.duo { max-width: 240px; }
body.money .rd-ring { fill: none; stroke: #cbd5e1; stroke-width: 1; }
body.money .rd-ring:last-of-type { stroke: #94a3b8; }
body.money .rd-spoke { stroke: #e2e8f0; stroke-width: 1; }
body.money .rd-area {
  stroke: var(--accent, #0f766e); stroke-width: 2; stroke-linejoin: round;
  fill-opacity: .55;
}
body.money .rd-dot { fill: #fff; stroke: var(--accent, #0f766e); stroke-width: 2; }
body.money .rd-cap {
  font-size: 11px; font-weight: 800; fill: #191919;
  font-variant-numeric: tabular-nums;
}
body.money .rd-duo-cap { font-size: 10px; font-weight: 700; fill: #191919; }
body.money .pf-keys { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
body.money .pf-keys li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  padding: 5px 9px; border-radius: 8px; background: var(--bg); font-size: .8rem;
}
body.money .pf-keys .pk { color: #333; font-weight: 650; }
body.money .pf-keys b { font-variant-numeric: tabular-nums; color: #191919; }
body.money .money-orbs {
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px; margin-top: 0;
}
body.money .money-orb { padding: 10px 8px; }
body.money .money-orb-ring { width: 64px; height: 64px; margin: 0 auto 6px; }
body.money .money-orb-ring::before { width: 48px; height: 48px; }
body.money .money-orb-val { font-size: 1rem; }
body.money .money-orb-label { font-size: .72rem; color: #333; font-weight: 700; }

body.money .facts {
  display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  margin: 6px 0 4px;
}
body.money .fact {
  padding: 8px 10px; border-radius: 10px;
}
body.money .fact .v { font-size: .95rem; color: #191919; }
body.money .fact .k { font-size: .72rem; color: #444; }

body.money .tl-toc a, body.money .jtoc a,
body.money .tl-sec-jump-chip { color: #191919; }
body.money .tl-toc a[aria-current] {
  color: #fff; background: #191919; border-color: #191919; font-weight: 800;
}
body.money .tl-sec-jump-chip.active {
  color: #191919; background: transparent; font-weight: 800;
  box-shadow: inset 0 -2px 0 #191919;
}
body.money .appname { color: #191919; }

body.money .money-note-img img, body.money .money-coin-img img {
  max-height: 160px; object-fit: cover;
}

.money-reserve {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: #134e4a; background: color-mix(in srgb, #0f766e 12%, #fff);
  border: 1px solid color-mix(in srgb, #0f766e 35%, #e5e7eb);
  border-radius: 999px; padding: 4px 10px; margin: 8px 8px 0 0;
}
.money-fx-compare {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: end;
  margin: 0 0 1.2rem; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
}
.money-fx-compare label {
  display: flex; flex-direction: column; gap: 4px;
  font-size: .72rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; color: #333;
}
.money-fx-compare select {
  font: inherit; font-size: .9rem; font-weight: 650; color: #191919;
  border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; background: #fff; min-width: 9rem;
}
.money-fx-compare button, .money-fx-go {
  font: inherit; font-size: .88rem; font-weight: 750; color: #fff;
  background: #191919; border: 0; border-radius: 10px; padding: 8px 14px; cursor: pointer;
  text-decoration: none;
}
.money-fx-go:hover { color: #fff; text-decoration: none; opacity: .92; }
.money-pair-strip { display: flex; flex-wrap: wrap; gap: 6px; margin: .4rem 0 1rem; }
.money-pair-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: #191919; font-size: .8rem; font-weight: 650;
  text-decoration: none;
}
.money-pair-chip b { font-variant-numeric: tabular-nums; }
.money-pair-chip:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

.money-fx-trust {
  margin: .75rem 0 1rem;
  padding: .75rem .95rem;
  border: 1px solid color-mix(in srgb, #b45309 35%, var(--line, #ddd));
  border-radius: 10px;
  background: color-mix(in srgb, #b45309 7%, var(--surface, #fff));
}
.money-fx-trust-k {
  display: block;
  font-weight: 700;
  font-size: .82rem;
  margin-bottom: .3rem;
  color: #92400e;
}
.money-fx-trust p { margin: 0; font-size: .9rem; line-height: 1.45; }
.money-denom-viz, .money-travel-cta {
  margin: 1rem 0 1.25rem;
  padding: .9rem 1rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent, #0f766e) 22%, var(--line));
  background: color-mix(in srgb, var(--accent, #0f766e) 6%, #fff);
}
.money-denom-svg { width: 100%; max-width: 420px; height: auto; display: block; margin-top: .5rem; }
.money-travel-cta .pill { margin-top: .55rem; display: inline-flex; }
.money-iso-q { display: block; margin: 0 0 .4rem; }
.money-iso-q input {
  width: min(100%, 28rem); font: inherit; padding: .55rem .75rem; border-radius: 10px;
  border: 1px solid var(--line); background: #fff;
}
.money-iso-empty { font-weight: 650; }
.money-regime {
  margin: 1rem 0 1.25rem; padding: .9rem 1rem; border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent, #0f766e) 22%, var(--line));
}
.money-regime-svg { width: 100%; max-width: 520px; height: auto; display: block; }
.money-regime-notes { margin: .4rem 0 0; padding-left: 1.1rem; }
.money-regime-notes li { margin: .35rem 0; }
.money-regime-trust { font-size: .85rem; color: #92400e; }
.money-regime-compound { margin-top: .7rem; }
.money-regime-compound .pill { margin-left: .4rem; }

@media print {
  body.money .site-header, body.money .site-footer, body.money .money-hero-symbols,
  body.money .pills, body.money .tl-print-btn, body.money .ad-unit, body.money .tl-ad { display: none !important; }
  body.money .radar { max-width: 200px !important; }
  body.money .hero, body.money .jhero, body.money .money-hero {
    background: #fff !important; color: #111 !important; box-shadow: none !important;
  }
}

/* P3 polish */
.money-gloss-print {
  margin: 1rem 0; padding: .9rem 1rem; border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent, #0f766e) 28%, var(--line));
}
.money-gloss-print-btn, .money-pair-faq details {
  margin: .35rem 0;
}
.money-pair-faq { margin: 1rem 0 1.2rem; }
@media print {
  body.money .money-gloss-print-btn { display: none !important; }
  body.money .money-gloss-print, body.money .credit-table { break-inside: avoid; }
}


/* ========== visual-diff: currency geometry amplify ========== */
body.money .money-denom-viz--geo {
  position: relative; overflow: visible;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--accent, #0f766e) 32%, var(--line));
  background:
    radial-gradient(ellipse 50% 40% at 90% 0%, color-mix(in srgb, var(--money-gold, #a16207) 14%, transparent), transparent 60%),
    linear-gradient(165deg, color-mix(in srgb, var(--accent, #0f766e) 10%, #fff), #fff 70%);
  box-shadow: 0 10px 28px -22px rgba(15, 23, 42, .45);
}
body.money .money-denom-svg { max-width: 480px; }
body.money .money-note-geo rect:first-child {
  filter: drop-shadow(0 6px 10px rgba(15, 23, 42, .18));
}
body.money .money-coin-geo circle:first-child {
  filter: drop-shadow(0 4px 6px rgba(15, 23, 42, .16));
}
body.money .money-hero::before {
  content: ""; position: absolute; inset: auto -8% -30% auto; width: 42vmin; height: 42vmin;
  border-radius: 50%; pointer-events: none; opacity: .18;
  background:
    repeating-radial-gradient(circle at 50% 50%,
      color-mix(in srgb, var(--accent, #0f766e) 35%, transparent) 0 2px,
      transparent 2px 10px);
}
body.money .money-denom-viz--geo.is-ready { outline: 1px solid color-mix(in srgb, var(--accent, #0f766e) 18%, transparent); }

body.money { --money-muted: #334155; }
body.money .money-chip-btn { color: #1f2937; border-color: #d1d5db; background: #fff; }
body.money .money-chip-btn.is-on { color: #fff; }
body.money .money-chip { color: #1f2937; border-color: #cbd5e1; }

/* ===== HUB VISUAL POLISH 2026-09-17: contrast + At-a-Glance / Explore ===== */
/* Aligns with src/data/_hub-visual-polish.json (ui-modern tokens). App-scoped so
 * we do not churn global style.css. Specificity beats ui-modern for these nodes. */
body.money {
  --ink: #0c1220;
  --ink2: #1a2332;
  --muted: #334155;
  --tl-muted: #334155;
  --tl-explore-min: 168px;
  --tl-glance-min: 158px;
}
body.money .appname,
body.money .crumbs a,
body.money .crumbs span { color: #374151; }
body.money .hint,
body.money .sub,
body.money .stat-note { color: var(--ink2); }
body.money .tl-viz-kicker,
body.money .tl-viz-cap { color: #334155; }
body.money .tl-viz-hint { color: #374151; }
body.money .tl-viz-packs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--tl-explore-min), 1fr));
  gap: 10px;
  align-items: stretch;
}
body.money .tl-viz-pack {
  grid-column: span 1 !important;
  min-height: 52px;
  padding: 12px 14px;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid rgba(17, 24, 39, .09);
  background: #fff;
  color: #111827;
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.3;
  box-shadow: var(--tl-shadow, 0 1px 2px rgba(17, 24, 39, .04), 0 4px 16px rgba(17, 24, 39, .05));
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
  -webkit-hyphens: none;
}
body.money .tl-viz-pack .tl-ico {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: #334155;
  opacity: .92;
}
body.money .tl-viz-pack .tl-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
}
body.money .tl-viz-pack > span:not(.tl-dot):not(.tl-preview-pop) {
  min-width: 0;
}
body.money .tl-viz-pack:hover,
body.money .tl-viz-pack.is-on {
  border-color: color-mix(in srgb, var(--accent, var(--tl-accent, #03C75A)) 42%, #e2e8f0);
  background: #fff;
  text-decoration: none;
  box-shadow: var(--tl-elev, 0 4px 8px rgba(17, 24, 39, .04), 0 16px 40px rgba(17, 24, 39, .08));
  transform: translateY(-1px);
}
body.money .tl-viz-shell:has(input[value="compact"]:checked) .tl-viz-packs {
  --tl-explore-min: 140px;
  gap: 8px;
}
body.money .tl-viz-shell:has(input[value="compact"]:checked) .tl-viz-pack {
  min-height: 40px;
  padding: 8px 10px;
  font-size: .8rem;
}
body.money .tl-viz-panel {
  border-color: rgba(17, 24, 39, .09);
  box-shadow: var(--tl-shadow, 0 1px 2px rgba(17, 24, 39, .04));
}
body.money .tl-explore-chip,
body.money .pill,
body.money a.chip {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
@media (prefers-reduced-motion: reduce) {
  body.money .tl-viz-pack:hover,
  body.money .tl-viz-pack.is-on { transform: none; }
}

/* P4-POLISH-2026-09-18 */
body.money .money-note-img,body.money .money-coin-img{background:#f8fafc;border-radius:12px;padding:.35rem}
body.money .money-note-img img,body.money .money-coin-img img{max-height:220px;width:auto;max-width:100%;object-fit:contain;object-position:left center;background:#f8fafc}
body.money .money-denom-svg,body.money .money-regime-svg{overflow:visible}
body.money .money-fx-compare label,body.money .fact .k{color:#1f2937}
body.money .tl-viz-pack{white-space:normal!important;height:auto!important;align-items:center}
body.money .tl-viz-pack>span:not(.tl-dot):not(.tl-preview-pop){display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal!important;line-height:1.25;text-overflow:unset!important}
body.money .p3-tool,body.money .p3-card,body.money .p3-out{color:#111827}
body.money .p3-card{background:#fff}
body.money .p3-form label,body.money .p3-checks label{color:#1f2937}

/* P5-POLISH-2026-09-19 */
body.money .money-card h3{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;line-height:1.25}
body.money .money-card .sub{color:#1f2937}
body.money .money-iso{color:#0f172a;background:#ecfeff;font-weight:800}

/* P6-POLISH-2026-09-19 — not-live-rates ink. Travel CTA href is in money.cjs. */
body.money .money-fx-trust,
body.money .money-fx-trust p,
body.money .money-travel-cta p,
body.money .money-regime-notes { color: #1c1917; }
body.money .money-fx-trust-k { color: #7c2d12; }
body.money .money-iso-q input { color: #111827; background: #fff; }

/* MOBILE-390 2026-09-20 — denomination art scrolls inside, FX row fits. */
@media (max-width: 430px) {
  html[lang] body.money,
  html[lang] body.money :where(p, li, h1, h2, h3, .sub, .lede, figcaption, label) {
    overflow-wrap: normal;
    word-break: keep-all;
    hyphens: none;
    -webkit-hyphens: none;
  }
  html[lang] body.money .money-denom-viz,
  html[lang] body.money .money-regime,
  html[lang] body.money .money-sec-compare,
  html[lang] body.money figure {
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    box-sizing: border-box;
    contain: inline-size;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  html[lang] body.money .money-denom-svg,
  html[lang] body.money .money-regime-svg {
    width: 400px;
    min-width: 400px;
    max-width: none;
    height: auto;
  }
  html[lang] body.money .money-fx-compare {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    max-width: 100%;
    min-width: 0;
  }
  html[lang] body.money .money-fx-compare select {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  html[lang] body.money .tl-heat--scores,
  html[lang] body.money .tl-viz-hbars {
    overflow-x: hidden;
    max-width: 100%;
  }
  html[lang] body.money .tl-heat-score,
  html[lang] body.money .tl-viz-hbar {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    grid-template-columns: minmax(0, 1.15fr) minmax(3.25rem, 1fr) 2.35rem;
  }
  html[lang] body.money .tl-heat-score-lab,
  html[lang] body.money .tl-viz-hbar-lab {
    white-space: normal;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: normal;
    word-break: keep-all;
  }
  html[lang] body.money button,
  html[lang] body.money select,
  html[lang] body.money input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  html[lang] body.money .pill,
  html[lang] body.money .money-fx-go,
  html[lang] body.money .money-pair-chip,
  html[lang] body.money .qz-opts button {
    min-height: 44px;
    box-sizing: border-box;
  }
}
