/* TUF-67 trader dashboard. Navy base, teal actions, ice for accent marks (CLAUDE.md palette); Sora headings,
   Plus Jakarta Sans body (self-hosted by theme/tuf/fonts.php). Everything scoped to .tdb; buttons 5px radius.
   Text contrast: body #FFFFFF / muted #A9B4C6 on #0A1730-#1B335C (all above 4.5:1). */
body.tuf-dash-body { margin: 0; background: radial-gradient(900px 500px at 100% 0%, rgba(45,212,191,.10), transparent 70%), #0A1730; color: #fff; }
.tdb { --navy: #0A1730; --surface: #14284C; --elev: #1B335C; --card: #0E1D3C; --teal: #2DD4BF; --teal-hover: #22C4AF; --teal-ink: #0A1730; --ice: #B9D4FF;
  --muted: #A9B4C6; --line: rgba(45,212,191,.32); --risk: #FF9C9C; --ok: rgba(45,212,191,.72);
  min-height: 100vh; font: 400 15px/1.55 "Plus Jakarta Sans", system-ui, sans-serif; color: #fff; -webkit-font-smoothing: antialiased; }
.tdb *, .tdb *::before, .tdb *::after { box-sizing: border-box; }
.tdb h1, .tdb h2, .tdb h3 { font-family: Sora, system-ui, sans-serif; letter-spacing: -.02em; color: #fff; margin: 0; }
.tdb :focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.tdb-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.tdb-skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--teal); color: var(--teal-ink); padding: 8px 14px; border-radius: 5px; font-weight: 700; }
.tdb-skip:focus { left: 16px; }
.tdb-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tdb-boot { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 40vh; color: var(--muted); }
.tdb-spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(45,212,191,.25); border-top-color: var(--teal); animation: tdb-spin 1s linear infinite; }
@keyframes tdb-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tdb-spin { animation: none; } }

/* lockup: mark + two-line wordmark (white on navy) */
.tdb .tdb-logo, .tdb .tdb-logo:hover { display: inline-flex; align-items: center; gap: 13px; color: #fff; text-decoration: none; }   /* wordmark is ONE colour: white on navy */
.tdb-mark { width: 40px; height: auto; filter: drop-shadow(0 0 10px rgba(45,212,191,.35)); }
.tdb-words { display: flex; flex-direction: column; line-height: 1; }
.tdb-words b { font: 700 19px/1 Sora, sans-serif; letter-spacing: -.02em; }
.tdb-words span { margin-top: 3px; font: 600 12px/1 Sora, sans-serif; letter-spacing: .3em; opacity: .8; }

/* header */
.tdb-head { border-bottom: 1px solid rgba(45,212,191,.22); }
.tdb-top { display: flex; align-items: center; gap: 20px; padding: 14px 24px; }
.tdb-nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.tdb-nav::-webkit-scrollbar { display: none; }
.tdb-nav a { white-space: nowrap; padding: 8px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 600; }
.tdb-nav a:hover { color: #fff; }
.tdb-nav a[aria-current] { background: rgba(45,212,191,.14); color: #fff; box-shadow: inset 0 0 0 1px rgba(45,212,191,.4); }
.tdb-me { position: relative; }
.tdb-me-btn { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid rgba(45,212,191,.35); color: #fff; border-radius: 999px; padding: 5px 14px 5px 5px; font: inherit; font-weight: 600; cursor: pointer; }
.tdb-me-btn i { width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: var(--teal-ink); display: grid; place-items: center; font-style: normal; font-weight: 800; }
.tdb-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; padding: 6px; background: var(--elev); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); z-index: 5; }
.tdb-menu a, .tdb-menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-radius: 8px; background: none; color: #fff; font: inherit; text-decoration: none; cursor: pointer; }
.tdb-menu a:hover, .tdb-menu button:hover { background: rgba(45,212,191,.12); }

/* buttons */
.tdb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 22px; border-radius: 5px; font: 700 15px/1 "Plus Jakarta Sans", sans-serif; text-decoration: none; cursor: pointer; border: 0; }
.tdb-btn-primary { background: var(--teal); color: var(--teal-ink); box-shadow: 0 10px 24px -10px rgba(45,212,191,.55); }
.tdb-btn-primary:hover { background: var(--teal-hover); color: var(--teal-ink); }
.tdb-btn-secondary { background: transparent; border: 1px solid rgba(45,212,191,.55); color: #fff; }
.tdb-btn-secondary:hover { border-color: var(--teal); color: #fff; }
.tdb-btn-link { background: none; color: var(--ice); padding: 0 12px; }
.tdb-btn[disabled] { opacity: .6; cursor: progress; }
.tdb-wide { width: 100%; }
.tdb-linkbtn { background: none; border: 0; padding: 0; color: var(--ice); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.tdb-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.tdb-actions-left { justify-content: flex-start; }

/* page */
.tdb-main { padding-bottom: 48px; outline: none; }
.tdb-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 34px 0 24px; }
.tdb-hero h1 { font-size: 40px; line-height: 1.08; font-weight: 800; margin-top: 8px; }
.tdb-lead { margin: 6px 0 0; color: var(--muted); font-size: 18px; }
.tdb-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border: 1px solid rgba(169,180,198,.45); border-radius: 999px; padding: 3px 10px; }
.tdb-eyebrow { margin: 0 0 2px; font: 800 12px/1.2 "Plus Jakarta Sans", sans-serif; letter-spacing: .15em; text-transform: uppercase; color: var(--ice); }
.tdb-cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.tdb-stack { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.tdb-side { flex: 1 1 300px; }
.tdb-side > section { display: flex; flex-direction: column; gap: 18px; }
.tdb-card { background: linear-gradient(160deg, var(--surface), var(--card)); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: 0 30px 80px -40px rgba(45,212,191,.35), inset 0 0 0 1px rgba(255,255,255,.04); }
.tdb-card.is-ended { background: var(--navy); border-style: dashed; border-color: rgba(169,180,198,.4); box-shadow: none; padding: 18px 24px; }
.tdb-card.is-mini { padding: 20px; }
.tdb-soonbox { opacity: .92; }
.tdb-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.tdb-ctitle { font-size: 22px; font-weight: 700; }
.tdb-ctitle small { font: 500 14px/1 "Plus Jakarta Sans", sans-serif; letter-spacing: 0; }
.tdb-muted { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.tdb-strong { margin: 4px 0 0; font-weight: 700; color: #fff; }
.tdb-big { margin: 8px 0; font: 700 24px/1.2 Sora, sans-serif; }
.tdb-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.tdb-pill { padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; border: 1px solid rgba(185,212,255,.5); color: var(--ice); }
.tdb-pill.is-solid { background: var(--ice); color: var(--navy); border-color: var(--ice); }
.tdb-pill.is-ramp { background: linear-gradient(135deg, #9FF5E8, #2DD4BF 48%, #17B5A1); color: var(--navy); border: 0; }
.tdb-pill.is-ok { border-color: var(--ok); color: #9FF5E8; }
.tdb-pill.is-risk { border-color: rgba(255,156,156,.6); color: var(--risk); }
.tdb-pill.is-muted { border-color: rgba(169,180,198,.45); color: var(--muted); }
.tdb-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 20px 0 16px; }
.tdb-tile { background: rgba(27,51,92,.7); border-radius: 14px; padding: 16px; }
.tdb-tile-label { margin: 0; color: var(--muted); font-size: 14px; }
.tdb-tile-v { margin: 8px 0 10px; font: 800 26px/1.1 Sora, sans-serif; color: var(--ice); }
.tdb-tile-v small { font: 500 14px/1 "Plus Jakarta Sans", sans-serif; color: var(--muted); }
.tdb-tile-note { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.tdb-tile-note.is-risk { color: var(--risk); }
.tdb-soon { font: 600 16px/1.3 "Plus Jakarta Sans", sans-serif; color: var(--muted); }
.tdb-bar { height: 6px; border-radius: 999px; background: rgba(169,180,198,.25); overflow: hidden; }
.tdb-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #9FF5E8, #2DD4BF); }
.tdb-bar.is-risk span { background: var(--risk); }
.tdb-card-foot { margin-top: 4px; }
.tdb-stale { margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; background: rgba(255,156,156,.1); color: #FFD3D3; font-size: 14px; }
.tdb-empty { text-align: left; }
.tdb-empty .tdb-btn { margin-top: 16px; }
.tdb-list { list-style: none; margin: 10px 0 0; padding: 0; }
.tdb-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(169,180,198,.2); }
.tdb-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 14px 0; }
.tdb-rules div { background: rgba(27,51,92,.6); border-radius: 12px; padding: 12px 14px; }
.tdb-rules dt { color: var(--muted); font-size: 13px; }
.tdb-rules dd { margin: 4px 0 0; font-weight: 700; }
.tdb-foot { padding: 20px 24px 40px; border-top: 1px solid rgba(169,180,198,.2); }
.tdb-foot p { margin: 0; color: var(--muted); font-size: 13px; }

/* forms */
.tdb-form label { display: block; margin: 14px 0 6px; font-weight: 700; font-size: 14px; }
.tdb-form input[type=email], .tdb-form input[type=tel], .tdb-form input:not([type]), .tdb-form select { width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(169,180,198,.45); background: var(--navy); color: #fff; font: 500 15px/1 "Plus Jakarta Sans", sans-serif; }
.tdb-form input:focus, .tdb-form select:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(45,212,191,.25); }
.tdb-form [aria-invalid=true] { border-color: var(--risk); }
.tdb-err { margin: 6px 0 0; min-height: 0; color: var(--risk); font-size: 13px; }
.tdb-err:empty { display: none; }
.tdb-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.tdb-phone { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: 10px; align-items: center; }
.tdb-form .tdb-btn { margin-top: 18px; }
.tdb-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; }
.tdb-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--teal); }
.tdb-check label { margin: 0; font-weight: 500; }
.tdb-new fieldset { border: 0; margin: 0 0 8px; padding: 0; }
.tdb-new legend { padding: 0; margin: 4px 0 10px; font-weight: 700; }
.tdb-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.tdb-choice, .tdb-chip { position: relative; display: block; cursor: pointer; margin: 0 !important; }
.tdb-choice input, .tdb-chip input { position: absolute; opacity: 0; }
.tdb-choice span { display: block; padding: 16px; border-radius: 14px; border: 1px solid rgba(169,180,198,.45); background: var(--navy); }
.tdb-choice b { display: block; font: 700 18px/1.2 Sora, sans-serif; }
.tdb-choice small { color: var(--muted); }
.tdb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tdb-chip span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(169,180,198,.45); font-weight: 700; }
.tdb-choice input:checked + span, .tdb-chip input:checked + span { border-color: var(--teal); background: rgba(45,212,191,.12); box-shadow: inset 0 0 0 1px var(--teal); }
.tdb-choice input:focus-visible + span, .tdb-chip input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 3px; }
.tdb-price { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 6px; }
.tdb-price span { color: var(--muted); }
.tdb-price b { font: 800 32px/1 Sora, sans-serif; }
.tdb-price small { color: var(--muted); }
.tdb-promo summary { cursor: pointer; color: var(--ice); font-weight: 700; margin: 8px 0; }
.tdb-promo .tdb-btn { margin-top: 0; }
.tdb-handoff .tdb-actions { margin-top: 14px; }

/* sign-in */
.tdb-login { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.tdb-login-card { width: 100%; max-width: 440px; background: linear-gradient(160deg, var(--surface), var(--card)); border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.tdb-login-card h1 { margin: 26px 0 6px; font-size: 26px; }
.tdb-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 4px; color: var(--muted); font-size: 13px; }
.tdb-or::before, .tdb-or::after { content: ""; flex: 1; height: 1px; background: rgba(169,180,198,.3); }
.tdb-sent { margin: 20px 0 0; padding: 14px; border-radius: 12px; background: rgba(45,212,191,.1); color: #fff; }
.tdb-fine { margin: 18px 0 0; color: var(--muted); font-size: 13px; }
.tdb-login .tdb-btn-secondary { margin-top: 22px; }

/* phone */
@media (max-width: 720px) {
  .tdb-wrap, .tdb-top { padding-left: 16px; padding-right: 16px; }
  .tdb-top { flex-wrap: wrap; gap: 12px; }
  .tdb-nav { order: 3; flex-basis: 100%; }
  .tdb-me { margin-left: auto; }
  .tdb-me-btn span { display: none; }
  .tdb-me-btn { padding: 4px; }
  .tdb-hero h1 { font-size: 30px; }
  .tdb-lead { font-size: 16px; }
  .tdb-hero .tdb-actions { width: 100%; justify-content: stretch; }
  .tdb-hero .tdb-actions .tdb-btn { flex: 1 1 100%; }
  .tdb-card { padding: 18px; border-radius: 16px; }
  .tdb-tiles { grid-template-columns: 1fr; }
  .tdb-card-foot .tdb-actions { width: 100%; justify-content: stretch; }
  .tdb-card-foot .tdb-actions .tdb-btn-primary { flex: 1; }
  .tdb-grid2 { grid-template-columns: 1fr; }
  .tdb-phone { grid-template-columns: minmax(0, 132px) minmax(0, 1fr); }
  .tdb-words b { font-size: 16px; }
  .tdb-words span { font-size: 11px; margin-top: 2px; }
  .tdb-mark { width: 34px; }
}

/* ======================================================================================================
   Dark dashboard (docs/TUF-dashboard-design-notes.md): sidebar + top bar + workspace panel. Amber is the
   new "getting close" warning colour - warnings only. Red only for risk (loss, breach, "Not passed").
   ====================================================================================================== */
.tdb { --panel: #0E1D38; --amber: #F5A524; --amber-text: #F5C46B; --ramp-ice: #9FF5E8; --grey: #A3ACB9; --risk-light: #FF8A8A; }
.tdk { display: grid; grid-template-columns: 228px minmax(0, 1fr); grid-template-rows: auto 1fr; min-height: 100vh; }
.tdk-side { grid-row: 1 / span 2; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 22px; padding: 22px 14px 18px; }
.tdk-side .tdb-mark { width: 34px; }
.tdk-nav { display: flex; flex-direction: column; gap: 4px; }
.tdk-nav a, .tdk-bottom a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--grey); font-weight: 600; text-decoration: none; }
.tdk-nav a:hover { color: #fff; background: rgba(45,212,191,.06); }
.tdk-nav a[aria-current], .tdk-bottom a[aria-current] { color: #5EEAD4; background: rgba(45,212,191,.12); }
.tdk-trade { margin-top: auto; padding: 14px; border-radius: 14px; border: 1px solid rgba(45,212,191,.32); background: var(--panel); }
.tdk-trade p { margin: 0 0 12px; color: var(--grey); font-size: 13px; line-height: 1.45; }
.tdk-trade .tdb-btn { margin: 0; }
.tdk-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 24px; }
.tdk-top-left, .tdk-top-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tdk-mlogo { display: none; }
.tdk-back { color: var(--grey); font-weight: 600; text-decoration: none; font-size: 14px; }
.tdk-switch { position: relative; }
.tdk-switch-btn { min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(45,212,191,.55); background: rgba(45,212,191,.08); color: #5EEAD4; font: 700 14px/1 "Plus Jakarta Sans", sans-serif; cursor: pointer; }
.tdk-menu { position: absolute; left: 0; top: calc(100% + 8px); min-width: 280px; padding: 6px; background: var(--elev); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); z-index: 6; }
.tdk-menu a { display: block; padding: 10px 12px; border-radius: 8px; color: #fff; text-decoration: none; font-size: 14px; }
.tdk-menu a span { color: var(--grey); }
.tdk-menu a:hover, .tdk-menu a[aria-current] { background: rgba(45,212,191,.12); }
.tdk-tag { font-size: 12px; color: var(--grey); border: 1px solid rgba(163,172,185,.45); border-radius: 999px; padding: 4px 10px; }
.tdk-live { margin: 0; color: #5EEAD4; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.tdk-dot { width: 7px; height: 7px; border-radius: 50%; background: #2DD4BF; box-shadow: 0 0 8px #2DD4BF; }
.tdk-new { min-height: 38px; padding: 0 16px; font-size: 14px; }
.tdk .tdb-me-btn { padding: 4px; }
.tdk-panel { position: relative; min-width: 0; padding: 28px 28px 32px; background: radial-gradient(640px 320px at 100% 0%, rgba(45,212,191,.10), transparent 70%), var(--panel); border: 1px solid rgba(45,212,191,.28); border-right: 0; border-bottom: 0; border-top-left-radius: 22px; outline: none; }
.tdk-foot { margin-top: 32px; padding-top: 16px; border-top: 1px solid rgba(163,172,185,.18); }
.tdk-foot p { margin: 0; color: var(--grey); font-size: 13px; }
.tdk-bottom { display: none; }
.tdk-hero { margin-bottom: 20px; }
.tdk-hero h1 { font-size: 30px; font-weight: 700; line-height: 1.15; }
.tdk-hero-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; }
.tdk-eyebrow { margin: 0 0 6px; font: 800 13px/1.2 "Plus Jakarta Sans", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #5EEAD4; }
h2.tdk-eyebrow { margin: 26px 0 14px; }
.tdk-small { margin: 0; color: var(--grey); font-size: 13px; }
.tdk-link { color: #5EEAD4 !important; font-weight: 700; text-decoration: none; white-space: nowrap; }
.tdk-link:hover { text-decoration: underline; }
.tdk-stack { display: flex; flex-direction: column; gap: 16px; }
.tdk-card.is-mini { padding: 16px 18px; }
.tdk-card p { margin: 6px 0 0; }

/* badges: on track teal, getting close amber, breached red */
.tdk-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; border: 1px solid transparent; }
.tdk-badge.is-ok, .tdk-badge.is-ramp { background: #2DD4BF; color: #0A1730; }
.tdk-badge.is-solid { background: rgba(45,212,191,.12); color: #5EEAD4; border-color: rgba(45,212,191,.5); }
.tdk-badge.is-warn { background: var(--amber); color: #0A1730; }
.tdk-badge.is-risk { color: var(--risk-light); border-color: rgba(255,138,138,.6); }
.tdk-badge.is-muted { color: var(--grey); border-color: rgba(163,172,185,.45); }
.tdb-bar.is-warn span { background: var(--amber); }
.tdb-bar.is-risk span { background: var(--risk-light); }
.tdk b.is-warn { color: var(--amber-text); }
.tdk b.is-risk { color: var(--risk-light); }

/* Today: attention band */
.tdk-atts { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; margin-bottom: 8px; }
.tdk-att { background: linear-gradient(160deg, var(--surface), var(--panel)); border: 1px solid rgba(45,212,191,.32); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.tdk-att h3 { font-size: 15px; font-weight: 700; }
.tdk-att .tdb-muted { margin: 0; }
.tdk-att-v { margin: 2px 0 2px; font: 700 28px/1.1 Sora, sans-serif; color: var(--ramp-ice); }
.tdk-att.is-warn { border: 2px solid var(--amber); box-shadow: 0 0 40px -12px rgba(245,165,36,.55); }
.tdk-att.is-warn .tdk-att-v { color: var(--amber-text); }
.tdk-att.is-risk { border: 2px solid var(--risk-light); }
.tdk-att.is-risk .tdk-att-v { color: var(--risk-light); }
.tdk-att.is-info { border-style: dashed; }

/* Today: accounts table */
.tdk-tablewrap { border: 1px solid rgba(45,212,191,.32); border-radius: 16px; overflow: hidden; }
.tdk-table { width: 100%; border-collapse: collapse; }
.tdk-table thead th { padding: 14px 18px; text-align: left; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); background: rgba(10,23,48,.6); }
.tdk-table tbody tr { background: rgba(20,40,76,.55); border-top: 1px solid rgba(163,172,185,.14); }
.tdk-table tbody tr.is-ended { background: transparent; color: var(--grey); }
.tdk-table th[scope=row], .tdk-table td { padding: 16px 18px; text-align: left; vertical-align: middle; font-size: 14px; font-weight: 400; }
.tdk-table th[scope=row] b { display: block; font-weight: 700; color: #fff; }
.tdk-table th[scope=row] span { color: var(--grey); font-size: 13px; }
.tdk-table td b { font-weight: 700; }
.tdk-table .tdb-bar { margin-top: 6px; height: 5px; max-width: 150px; }
.tdk-act { text-align: right !important; }
.tdk-bottomcards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }

/* Account overview */
.tdk-acc { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 22px; align-items: start; }
.tdk-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.tdk-stats div { border: 1px solid rgba(45,212,191,.32); border-radius: 12px; padding: 10px 14px; background: rgba(10,23,48,.35); }
.tdk-stats p { margin: 0; color: var(--grey); font-size: 13px; }
.tdk-stats b { display: block; margin-top: 2px; font: 700 20px/1.25 Sora, sans-serif; }
.tdk-stats b .tdb-soon { font-size: 14px; }
.tdk-stats small { color: var(--grey); font-size: 12px; }
.tdk-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tdk-rule { background: linear-gradient(170deg, var(--surface), var(--panel)); border: 1px solid rgba(45,212,191,.32); border-radius: 18px; padding: 18px 20px; min-height: 220px; display: flex; flex-direction: column; gap: 8px; }
.tdk-rule h3 { font-size: 15px; font-weight: 700; }
.tdk-rule .tdb-muted { margin: 0; }
.tdk-rule-v { margin: 6px 0 2px; font: 700 30px/1.1 Sora, sans-serif; color: var(--ramp-ice); }
.tdk-rule-v small { font: 600 13px/1.2 Sora, sans-serif; color: var(--grey); }
.tdk-rule-v .tdb-soon { font-size: 16px; }
.tdk-rule-note { margin: 4px 0 0; color: var(--grey); font-size: 13px; }
.tdk-rule.is-close { border: 2px solid var(--amber); box-shadow: 0 0 44px -14px rgba(245,165,36,.55); }
.tdk-rule.is-close .tdk-rule-v { color: var(--amber-text); }
.tdk-rule.is-breached { border: 2px solid var(--risk-light); }
.tdk-rule.is-breached .tdk-rule-v { color: var(--risk-light); }
.tdk-checks { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tdk-checks li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 8px; background: rgba(27,51,92,.75); font-size: 14px; }
.tdk-checks li b { color: var(--grey); font-weight: 600; }
.tdk-checks li.is-done b { color: #5EEAD4; font-weight: 800; }
.tdk-checks li.is-risk b { color: var(--risk-light); }
.tdk-right { display: flex; flex-direction: column; gap: 14px; }
.tdk-switchlist { list-style: none; margin: 8px 0 0; padding: 0; }
.tdk-switchlist li + li { border-top: 1px solid rgba(163,172,185,.18); }
.tdk-switchlist a { display: block; padding: 8px 0; color: #fff; text-decoration: none; font-size: 14px; }
.tdk-switchlist a[aria-current] b { color: #5EEAD4; }
.tdk-endnote { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: rgba(255,138,138,.08); color: #FFD3D3; }
.tdk .tdb-hero { padding-top: 0; }
.tdk .tdb-card { background: linear-gradient(160deg, var(--surface), var(--panel)); }

/* phones and small tablets: bottom menu, stacked table, one-column rule cards */
@media (max-width: 900px) {
  .tdk { grid-template-columns: minmax(0, 1fr); padding-bottom: 72px; }
  .tdk-side { display: none; }
  .tdk-mlogo { display: inline-flex; }
  .tdk-mlogo .tdb-mark { width: 30px; }
  .tdk-top { padding: 10px 14px; flex-wrap: wrap; }
  .tdk-top-left { order: 3; flex-basis: 100%; }
  .tdk-live { display: none; }
  .tdk-new { padding: 0 12px; }
  .tdk-panel { border-radius: 0; border-left: 0; padding: 20px 14px 24px; }
  .tdk-hero h1 { font-size: 24px; }
  .tdk-bottom { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; justify-content: space-around; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: #0A1730; border-top: 1px solid rgba(45,212,191,.3); }
  .tdk-bottom a { flex-direction: column; gap: 2px; padding: 6px 4px; font-size: 11px; border-radius: 8px; min-width: 60px; }
  .tdk-tablewrap { border: 0; overflow: visible; }
  .tdk-table thead { display: none; }
  .tdk-table, .tdk-table tbody, .tdk-table tr, .tdk-table th[scope=row], .tdk-table td { display: block; width: 100%; }
  .tdk-table tbody tr { margin-bottom: 12px; border: 1px solid rgba(45,212,191,.32); border-radius: 14px; padding: 6px 0; }
  .tdk-table th[scope=row], .tdk-table td { padding: 8px 16px; }
  .tdk-table td[data-label]::before { content: attr(data-label); display: block; color: var(--grey); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
  .tdk-table .tdb-bar { max-width: none; }
  .tdk-act { text-align: left !important; }
  .tdk-bottomcards, .tdk-acc, .tdk-rules { grid-template-columns: minmax(0, 1fr); }
  .tdk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tdk-rule { min-height: 0; }
  .tdk-menu { min-width: 0; width: calc(100vw - 28px); }
}
.tdb-platform { margin-top: 10px; }

/* fixes: button text beats the general link colour; no inherited table grid lines; eyebrow colour beats the h2 rule */
.tdb a.tdb-btn-primary, .tdb a.tdb-btn-primary:hover { color: var(--teal-ink); }
.tdb a.tdb-btn-secondary, .tdb a.tdb-btn-secondary:hover { color: #fff; }
.tdk-table th, .tdk-table td { border: 0 !important; }
.tdk-table tbody tr { border-top: 1px solid rgba(163,172,185,.14); }
.tdb h2.tdk-eyebrow { color: #5EEAD4; }

/* ---- design fixes (2 Nov) ---------------------------------------------------------------------------- */
/* Logo: the website header lockup exactly (measured on the home page): mark 32x36, 10px gap, "The Upside" Sora
   15.2px/700, "FUNDING" 9.6px/600 tracked .2em at 80%; mark 29x32 below 768px; the mark alone at 390px and below. */
.tdb .tdb-logo { gap: 10px; }
.tdb .tdb-mark, .tdk-side .tdb-mark, .tdk-mlogo .tdb-mark { width: 32px; height: 36px; filter: none; }
.tdb .tdb-words { gap: 3px; }
.tdb .tdb-words b { font: 700 15.2px/1 Sora, sans-serif; letter-spacing: normal; }
.tdb .tdb-words span { margin: 0; font: 600 9.6px/1 "Plus Jakarta Sans", sans-serif; letter-spacing: .2em; opacity: .8; }
@media (max-width: 767px) { .tdb .tdb-mark, .tdk-mlogo .tdb-mark { width: 29px; height: 32px; } .tdb .tdb-words b { font-size: 14px; } .tdb .tdb-words span { font-size: 9px; } }
@media (max-width: 390px) { .tdb .tdb-words { display: none; } }

/* Left nav and bottom menu: text only, white; teal on hover and when active. */
.tdk-nav a, .tdk-bottom a { color: #fff; }
.tdk-nav a:hover, .tdk-bottom a:hover, .tdk-nav a[aria-current], .tdk-bottom a[aria-current] { color: #5EEAD4; }
.tdk-nav a { padding: 10px 14px; }
@media (max-width: 900px) { .tdk-bottom a { justify-content: center; padding: 12px 6px; font-size: 13px; font-weight: 700; min-width: 0; flex: 1; text-align: center; } }

/* TUF-93: the primary button, links, cards and eyebrow lines now come from the shared assets/tuf-design.css. */

/* The details step: a focused setup page - the logo and the form only, at most 640px wide. */
.tdk-setup { min-height: 100vh; max-width: 688px; margin: 0 auto; padding: 24px 24px 48px; }
.tdk-setup-head { padding: 4px 0 28px; }
.tdk-setup-main { outline: none; }
.tdk-setup h1 { font-size: 30px; font-weight: 700; }
.tdk-setup .tdb-lead { margin-bottom: 18px; font-size: 16px; }
.tdk-setup .tdb-form { max-width: 640px; }
.tdk-signedas { margin: 0 0 18px; color: var(--grey); font-size: 14px; }
.tdk-signedas b { color: #fff; font-weight: 600; }
.tdb-checks { margin-top: 18px; padding-top: 6px; border-top: 1px solid rgba(163,172,185,.2); }
.tdb-check label small { display: block; margin-top: 2px; color: var(--grey); font-size: 12.5px; font-weight: 400; }
.tdb-req { color: #5EEAD4; }
.tdb-check + .tdb-err { margin-left: 30px; }
@media (max-width: 767px) { .tdk-setup { padding: 16px 16px 40px; } .tdk-setup h1 { font-size: 24px; } }
.tdb-check input { flex: 0 0 20px; }   /* every box the same size, however long its label wraps */

/* ---- round 3 (2 Nov) ----------------------------------------------------------------------------------- */
/* Section labels: the site's eyebrow - a 36x1 teal line fading in from the left, 14px gap, 14px/700 caps tracked
   .16em in the teal gradient (measured on the home page). */
.tdb .tdk-eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 8px; font: 700 14px/1.3 "Plus Jakarta Sans", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #5EEAD4; }
.tdb h2.tdk-eyebrow { margin: 28px 0 14px; color: #5EEAD4; }
.tdk-eyebrow-text { background: linear-gradient(135deg, #2DD4BF 0%, #2DD4BF 45%, #17B5A1 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* TUF-135: the Dashboard's card headings in the DASHBOARD eyebrow's teal (same size and weight as before) */
.tdb .tdh-teal.tdh-teal { background: linear-gradient(135deg, #2DD4BF 0%, #2DD4BF 45%, #17B5A1 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tdk-card > h2.tdk-eyebrow:first-child { margin-top: 0; }

/* Checkboxes: the checkout's teal checkbox on navy (never the browser's white square). */
.tdb .tdb-check input[type=checkbox] { -webkit-appearance: none; appearance: none; flex: 0 0 20px; width: 20px; height: 20px; margin: 1px 0 0; border-radius: 5px; border: 1.5px solid rgba(45,212,191,.6); background: #0A1730; cursor: pointer; display: grid; place-content: center; transition: background-color .12s, border-color .12s; }
.tdb .tdb-check input[type=checkbox]::before { content: ""; width: 11px; height: 11px; clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); background: #0A1730; transform: scale(0); transition: transform .12s; }
.tdb .tdb-check input[type=checkbox]:checked { background: #2DD4BF; border-color: #2DD4BF; }
.tdb .tdb-check input[type=checkbox]:checked::before { transform: scale(1); }
.tdb .tdb-check input[type=checkbox]:focus-visible { outline: 2px solid #5EEAD4; outline-offset: 2px; }
.tdb .tdb-check input[aria-invalid=true] { border-color: var(--risk-light); }
.tdb .tdb-check label a { color: #5EEAD4; font-weight: 700; }

/* Sidebar fits the VISIBLE viewport: below WordPress's admin bar (32px; 46px under 783px) and using 100dvh, with the
   nav scrolling on short screens so the Trade now box is always fully on screen. */
.tdk-side { top: var(--wp-admin--admin-bar--height, 0px); height: calc(100vh - var(--wp-admin--admin-bar--height, 0px)); height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px)); min-height: 0; overflow: hidden; }
.tdk-nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.tdk-trade { flex: none; margin-top: 0; }
.tdk { min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px)); }
@media (max-height: 640px) { .tdk-side { gap: 14px; padding-top: 14px; } .tdk-trade p { display: none; } }

/* small pieces */
.tdb-hint { margin: 6px 0 0; color: var(--grey); font-size: 12.5px; }
.tdk-howlist { margin: 0 0 12px; padding-left: 18px; color: #fff; }
.tdk-howlist li { margin: 6px 0; line-height: 1.5; }
.tdk-howlist b { color: #fff; }
.tdk-rulelinks { margin-top: 6px; }
.tdk-card .tdk-link { display: inline-block; margin-top: 8px; }

/* ---- round 4 (2 Nov): top-bar actions, sidebar profile block, phone "More" ------------------------------ */
/* Secondary action: navy fill, 1px teal border, teal text, no glow. */
.tdb .tdk-btn-outline { background: #0A1730; border: 1px solid #2DD4BF; color: #5EEAD4; box-shadow: none; border-radius: 5px; font-weight: 600; }
.tdb .tdk-btn-outline:hover { background: rgba(45,212,191,.1); color: #5EEAD4; }
.tdk-top-right .tdb-btn { min-height: 40px; padding: 0 18px; font-size: 14px; }
.tdk-top-right .tdk-new span { margin-right: 2px; }
/* Sidebar: logo, scrolling nav, then the profile block - always fully visible under the admin bar. */
.tdk-profile { position: relative; flex: none; }
.tdk-profile-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border-radius: 12px; border: 1px solid rgba(45,212,191,.32); background: #0E1D38; color: #fff; text-align: left; cursor: pointer; font: inherit; }
.tdk-profile-btn:hover { border-color: rgba(45,212,191,.6); }
.tdk-profile-btn i { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #2DD4BF; color: #0A1730; display: grid; place-items: center; font-style: normal; font-weight: 800; }
.tdk-profile-btn > span:not(.tdk-caret) { min-width: 0; display: flex; flex-direction: column; }
.tdk-profile-btn b { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tdk-profile-btn small { font-size: 12px; color: var(--grey); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tdk-caret { margin-left: auto; color: var(--grey); font-size: 11px; }
.tdk-profile-menu { top: auto; bottom: calc(100% + 8px); left: 0; right: 0; }
/* Picker highlight (from "+ New challenge" / "Start a challenge"). */
@keyframes tdk-pulse { 0% { box-shadow: 0 0 0 0 rgba(45,212,191,.7); border-color: #2DD4BF; } 100% { box-shadow: 0 0 0 18px rgba(45,212,191,0); } }
.tdb-new.is-highlight { animation: tdk-pulse 1.4s ease-out 2; border-color: #2DD4BF; }
@media (prefers-reduced-motion: reduce) { .tdb-new.is-highlight { animation: none; box-shadow: 0 0 0 2px #2DD4BF; } }
#tuf-dash [data-new] { scroll-margin-top: calc(24px + var(--wp-admin--admin-bar--height, 0px)); }
/* Phones: both top-bar buttons stay in the top bar (compact); Settings, Support and Sign out move to the bottom menu's "More". */
.tdk-morewrap { position: relative; display: flex; flex: 1; }
.tdk-more-btn { flex: 1; padding: 12px 6px; border: 0; border-radius: 8px; background: none; color: #fff; font: 700 13px/1 "Plus Jakarta Sans", sans-serif; cursor: pointer; }
.tdk-more-btn[aria-expanded=true], .tdk-more-btn[aria-current] { color: #5EEAD4; }
.tdk-more-menu { top: auto; bottom: calc(100% + 10px); right: 4px; left: auto; min-width: 210px; }
@media (max-width: 900px) {
  .tdk-top-right { flex-wrap: nowrap; gap: 8px; }
  .tdk-top-right .tdb-btn { min-height: 38px; padding: 0 12px; font-size: 13px; white-space: nowrap; }
}
@media (max-width: 360px) { .tdk-top-right .tdb-btn { padding: 0 9px; font-size: 12px; } }

/* Round 4 fix: the phone "More" menu's links lose the bottom-bar link style (centred, bold, 13px) so links and buttons
   match; the More button centres its label like the bar's links. */
.tdk-bottom .tdk-more-menu a, .tdk-bottom .tdk-more-menu button { display: block; flex: none; min-width: 0; width: 100%; text-align: left; justify-content: flex-start; padding: 11px 12px; border-radius: 8px; color: #fff; background: none; font: 600 15px/1.3 "Plus Jakarta Sans", sans-serif; }
.tdk-bottom .tdk-more-menu a:hover, .tdk-bottom .tdk-more-menu button:hover { color: #5EEAD4; background: rgba(45,212,191,.12); }
.tdk-bottom .tdk-more-menu a[aria-current] { color: #5EEAD4; background: rgba(45,212,191,.12); }
.tdk-more-btn { display: flex; align-items: center; justify-content: center; line-height: normal; }

/* ======================================================================================================== TUF-68
   Sign-in, create account and the details step: a split screen. Left: the brand panel (navy, faint teal glow, like
   the dashboard workspace). Right: the form - light (#F7F9FD) by default, dark on request. Both halves fill the
   visible viewport below WordPress's admin bar. Phones: the left panel gives way to a slim navy header. */
.tdb .tda { --ab: var(--wp-admin--admin-bar--height, 0px); display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100dvh - var(--ab)); }
.tda-brand { align-self: stretch; min-height: calc(100dvh - var(--ab)); display: flex; align-items: center; justify-content: center; padding: 56px clamp(32px, 6vw, 96px);
  background: radial-gradient(620px 420px at 18% 12%, rgba(45,212,191,.16), transparent 70%), radial-gradient(520px 380px at 90% 100%, rgba(45,212,191,.08), transparent 70%), linear-gradient(160deg, #0A1730 0%, #071127 55%, #050C1D 100%);
  border-right: 1px solid rgba(45,212,191,.18); }
.tda-brand-inner { max-width: 520px; width: 100%; position: sticky; top: calc(var(--ab) + 56px); }   /* the column fills a long form's height; its content stays in view */
.tdb .tda-headline { font: 700 clamp(34px, 3.4vw, 48px)/1.1 Sora, sans-serif; letter-spacing: -.03em; color: #fff; }
.tda-grad { background: linear-gradient(135deg, #9FF5E8 0%, #2DD4BF 48%, #17B5A1 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.tda-facts { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 18px; }
.tda-facts li { display: flex; align-items: center; gap: 16px; font-size: 17px; font-weight: 500; color: #E6EDF8; }
.tda-ficon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; color: #5EEAD4; background: rgba(45,212,191,.08); border: 1px solid rgba(45,212,191,.28); }
.tda-payouts { margin-top: 36px; padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(45,212,191,.22); background: rgba(14,29,60,.6); }
.tda-payouts-title { margin: 0 0 10px; font: 700 12px/1 Sora, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #9FB0C8; }
.tda-payouts ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tda-payouts li { display: flex; gap: 8px; align-items: baseline; padding: 6px 10px; border-radius: 8px; background: rgba(45,212,191,.08); font-size: 14px; }
.tda-payouts li b { color: #fff; } .tda-payouts li span { color: #9FB0C8; font-size: 12.5px; }
.tda-brand-fine { margin: 40px 0 0; font-size: 13px; color: #8A98B0; }

/* right panel: light by default */
.tda-pane { --ink: #0A1730; --sub: #4A5872; --bg: #F7F9FD; --field: #fff; --edge: #D3DBE8; --edge-hover: #AEBBD0; --link: #2554C7; --err: #B42318; --chk: #8D9AB0;
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 72px 32px 56px; background: var(--bg); color: var(--ink); }
.tda[data-theme=dark] .tda-pane { --ink: #fff; --sub: #A9B4C6; --bg: #0E1D3C; --field: #0A1730; --edge: rgba(185,212,255,.22); --edge-hover: rgba(185,212,255,.4); --link: #5EEAD4; --err: #FF9C9C; --chk: #6D7C97; }
.tda-inner { width: 100%; max-width: 420px; outline: none; }
.tda.is-wide .tda-inner { max-width: 500px; }
.tda-logo { display: flex; justify-content: center; margin-bottom: 32px; }
.tdb .tda-lockup, .tdb .tda-lockup:hover { display: inline-flex; align-items: center; gap: 12px; color: var(--ink, #fff); text-decoration: none; }
.tda-lockup .tdb-mark { width: 38px; filter: none; }
.tda[data-theme=dark] .tda-logo .tdb-mark, .tda-mhead .tdb-mark { filter: drop-shadow(0 0 10px rgba(45,212,191,.35)); }
.tda-words { display: flex; flex-direction: column; line-height: 1; }
.tda-words b { font: 700 18px/1 Sora, sans-serif; letter-spacing: -.02em; }
.tda-words span { margin-top: 3px; font: 600 11.5px/1 Sora, sans-serif; letter-spacing: .3em; opacity: .8; }
.tda-mhead { display: none; }
.tda-theme { position: absolute; top: 20px; right: 20px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--edge); background: var(--field); color: var(--ink); cursor: pointer; }
.tda-theme:hover { border-color: var(--edge-hover); }
.tda-sun, .tda[data-theme=dark] .tda-moon { display: none; }
.tda[data-theme=dark] .tda-sun { display: block; }
.tdb .tda-title { font: 700 28px/1.2 Sora, sans-serif; letter-spacing: -.02em; color: var(--ink); text-align: center; margin: 0 0 24px; outline: none; }
.tda-lead, .tda-signedas { margin: -12px 0 20px; text-align: center; color: var(--sub); font-size: 14.5px; }
.tda-signedas b { color: var(--ink); }

/* form */
.tda-form { display: grid; gap: 16px; }
.tda-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tda-field { min-width: 0; }
.tda-field > label, .tda-phone + * { font-size: 13.5px; }
.tda-field > label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--ink); }
.tda-opt { font-weight: 400; color: var(--sub); }
.tda-form input:not([type=checkbox]):not([type=hidden]), .tda-form select { width: 100%; height: 48px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--edge); background: var(--field); color: var(--ink);
  font: 400 15.5px/1.2 "Plus Jakarta Sans", system-ui, sans-serif; -webkit-appearance: none; appearance: none; transition: border-color .15s, box-shadow .15s; }
.tda-form input::placeholder { color: #8D9AB0; }
.tda-form input:hover, .tda-form select:hover { border-color: var(--edge-hover); }
.tda-form input:focus, .tda-form select:focus { outline: none; border-color: #2DD4BF; box-shadow: 0 0 0 3px rgba(45,212,191,.25); }
.tda-form [aria-invalid=true] { border-color: var(--err) !important; }
.tda-form select { padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238D9AB0' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.tda-phone { display: grid; grid-template-columns: 112px 1fr; gap: 8px; }
.tda-dob { position: relative; }
.tda-dob input:not(.tda-cal-native) { padding-right: 48px !important; }
.tda-cal { position: absolute; top: 4px; right: 4px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 6px; background: none; color: var(--sub); cursor: pointer; }
.tda-cal:hover { color: var(--ink); background: rgba(45,212,191,.1); }
.tda-form .tda-cal-native { position: absolute; right: 0; bottom: 0; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; opacity: 0; pointer-events: none; }
.tda-hint { margin: 6px 0 0; font-size: 12.5px; color: var(--sub); }
.tda-err { margin: 6px 0 0; font-size: 13px; color: var(--err); }
.tda-err:empty { display: none; }
.tda-checks { display: grid; gap: 12px; margin-top: 2px; }
.tda-check { display: flex; gap: 12px; align-items: flex-start; }
.tda-check input { flex: none; -webkit-appearance: none; appearance: none; width: 20px; height: 20px; margin: 1px 0 0; border: 1.5px solid var(--chk); border-radius: 4px; background: var(--field); cursor: pointer; display: grid; place-items: center; }
.tda-check input:checked { background: #2DD4BF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1' fill='none' stroke='%230A1730' stroke-width='2.2'/%3E%3C/svg%3E") center/12px no-repeat; border-color: #2DD4BF; }
.tda-check input:focus-visible { outline: 2px solid #2DD4BF; outline-offset: 2px; }
.tda-check label { font-size: 14px; line-height: 1.45; color: var(--ink); cursor: pointer; }
.tda-check label small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--sub); }
.tda-err-check { margin: -4px 0 0 32px; }
.tdb .tda a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.tdb .tda a:hover { color: var(--ink); }
.tdb .tda a.tda-lockup, .tdb .tda a.tda-lockup:hover { color: var(--ink); text-decoration: none; }   /* the wordmark is one colour: navy on light, white on navy */
.tdb .tda .tda-mhead a.tda-lockup { color: #fff; }
.tda-phone { grid-template-columns: 128px 1fr; }

/* buttons: 5px radius. The lead button is navy on light; on the dark panel it takes the site's teal action. */
.tda-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 50px; padding: 0 18px; border-radius: 5px; border: 1px solid transparent; cursor: pointer;
  font: 600 15.5px/1 "Plus Jakarta Sans", system-ui, sans-serif; transition: background-color .15s, border-color .15s, box-shadow .15s; }
.tda-btn-primary { background: #0A1730; color: #fff; }
.tda-btn-primary:hover { background: #14284C; }
.tda-btn-primary:disabled { opacity: .7; cursor: default; }
.tda[data-theme=dark] .tda-btn-primary { background: #2DD4BF; color: #0A1730; box-shadow: 0 10px 24px -10px rgba(45,212,191,.55); }
.tda[data-theme=dark] .tda-btn-primary:hover { background: #22C4AF; }
.tda-btn-google { background: #fff; color: #0A1730; border-color: #D3DBE8; }
.tda-btn-google:hover { border-color: #AEBBD0; background: #FBFCFE; }
.tda-google { margin: 0; }
.tda-google[hidden] { display: none; }
.tda-or { display: flex; align-items: center; gap: 14px; margin: 20px 0; color: var(--sub); font: 600 12px/1 "Plus Jakarta Sans", sans-serif; letter-spacing: .14em; }
.tda-or::before, .tda-or::after { content: ""; flex: 1; height: 1px; background: var(--edge); }
.tda-switch { margin: 24px 0 0; text-align: center; font-size: 14.5px; color: var(--sub); }
.tdb .tda .tda-switch a { font-weight: 600; }
.tda-fine { margin: 28px 0 0; text-align: center; font-size: 13px; color: var(--sub); }
.tdb .tda .tda-fine a { color: var(--sub); }
.tda-linkbtn { border: 0; background: none; padding: 0; color: var(--link); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.tda-sent { text-align: center; }
.tda-sent-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 16px; border-radius: 50%; color: #17B5A1; background: rgba(45,212,191,.12); }
.tda[data-theme=dark] .tda-sent-icon { color: #5EEAD4; }
.tda-sent p { margin: 0 0 10px; color: var(--ink); font-size: 15.5px; } .tda-sent .tda-muted { color: var(--sub); font-size: 14px; margin-bottom: 22px; }
.tdb .tda .tdb-boot { min-height: 30vh; color: var(--sub); }

/* tablets and phones: the form alone, under a slim navy header */
@media (max-width: 900px) {
  .tdb .tda { grid-template-columns: minmax(0, 1fr); }
  .tda-brand, .tda-logo { display: none; }
  .tda-pane { justify-content: flex-start; padding: 0 16px 40px; min-height: calc(100dvh - var(--ab)); }
  .tda-mhead { display: flex; align-items: center; height: 60px; margin: 0 -16px 28px; padding: 0 16px; width: calc(100% + 32px); background: #0A1730; border-bottom: 1px solid rgba(45,212,191,.22); }
  .tdb .tda-mhead .tda-lockup { color: #fff; }
  .tda-mhead .tdb-mark { width: 30px; }
  .tda-mhead .tda-words b { font-size: 15.5px; } .tda-mhead .tda-words span { font-size: 10.5px; margin-top: 2px; }
  .tda-theme { top: 10px; right: 16px; border-color: rgba(185,212,255,.3); background: #0A1730; color: #fff; }
  .tdb .tda-title { font-size: 24px; margin-bottom: 20px; }
}
@media (max-width: 480px) {
  .tda-row-dob { grid-template-columns: minmax(0, 1fr); }
  .tda-phone { grid-template-columns: 104px 1fr; }
}
@media (max-width: 359px) { .tda-mhead .tda-words { display: none; } }
@media (max-width: 480px) { .tda-phone { grid-template-columns: 104px 1fr; } }

/* ======================================================================================================== TUF-69
   Buy a challenge: picker, then Compare the rules and Questions in the main column; "Your order" on the right
   (sticky on desktop). Below 1100px one column: picker, order, compare, questions. */
.tdb-buy { display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "pick side" "compare side" "faq side"; gap: 28px 28px; align-items: start; }
.tdb-buy-pick { grid-area: pick; min-width: 0; } .tdb-buy-compare { grid-area: compare; min-width: 0; } .tdb-buy-faq { grid-area: faq; min-width: 0; }
.tdb-buy-side { grid-area: side; position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + 24px); }
.tdb-buy .tdb-new { margin: 0; }
.tdb-buy-compare .tdk-eyebrow, .tdb-buy-faq .tdk-eyebrow { margin-bottom: 14px; }
.tdb-order { padding: 22px; }
.tdb .tdb-order-title { font: 700 18px/1.2 Sora, sans-serif; margin: 0 0 14px; }
.tdb-order-list { margin: 0; display: grid; gap: 10px; }
.tdb-order-list > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.tdb-order-list dt { color: var(--muted); } .tdb-order-list dd { margin: 0; text-align: right; font-weight: 600; color: #fff; }
/* TUF-127b: the 95% profit split add-on - the same tick-box row as the pricing card */
.tdb .tdb-addon { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 14px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: transparent; font: inherit; font-size: 13.5px; text-align: left; color: rgba(255,255,255,.85); cursor: pointer; }
.tdb .tdb-addon[hidden] { display: none; }
.tdb .tdb-addon:hover { border-color: rgba(45,212,191,.45); }
.tdb .tdb-addon[aria-checked="true"] { border-color: rgba(45,212,191,.6); background: rgba(45,212,191,.08); }
.tdb .tdb-addon:focus-visible { outline: 2px solid #7FB8FF; outline-offset: 2px; }
.tdb .tdb-addon-box { display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; border: 1.5px solid rgba(185,212,255,.5); border-radius: 4px; font-size: 12px; font-weight: 800; line-height: 1; color: #0A1730; }
.tdb .tdb-addon[aria-checked="true"] .tdb-addon-box { border-color: #2DD4BF; background: #2DD4BF; }
.tdb .tdb-addon-label { flex: 1; }
.tdb .tdb-addon b { font-weight: 700; color: #fff; }
.tdb-order-list [data-o-disc] { color: #5EEAD4; }
.tdb-order-list .is-total { margin-top: 4px; padding-top: 12px; border-top: 1px solid rgba(45,212,191,.22); font-size: 16px; }
.tdb-order-list .is-total dt { color: #fff; font-weight: 600; } .tdb-order-list .is-total dd { font: 700 22px/1 Sora, sans-serif; }
.tdb-order-refund { margin: 14px 0 16px; font-size: 13.5px; color: #CFE0F5; }
.tdb-order .tdb-wide { width: 100%; min-height: 48px; }
.tdb-order-note { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
.tdb-order-link { margin: 10px 0 0; font-size: 14px; }
.tdb-order .tdb-err:empty { display: none; }

.tdb-compare-wrap { padding: 0; overflow-x: auto; }   /* TUF-139: the table fills the card, top to bottom */
.tdb-compare { width: 100%; margin: 0; border-collapse: separate; border-spacing: 0; font-size: 14px; }   /* TUF-139: no base-table bottom margin */
.tdb-compare th, .tdb-compare td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(185,212,255,.1); border-left: 1px solid transparent; border-right: 1px solid transparent; }
.tdb-compare thead th { font: 700 15px/1.2 Sora, sans-serif; color: #fff; border-top: 1px solid transparent; }
.tdb-compare thead th small { display: block; margin-top: 4px; font: 600 11px/1 "Plus Jakarta Sans", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #5EEAD4; }
.tdb-compare tbody th { color: var(--muted); font-weight: 500; width: 32%; }
.tdb-compare td { color: #fff; }
.tdb-compare-usd { color: var(--muted); }
.tdb-compare tr:last-child th, .tdb-compare tr:last-child td { border-bottom: 0; }
.tdb-compare .is-sel { border-left-color: #2DD4BF; border-right-color: #2DD4BF; background: rgba(45,212,191,.06); }
.tdb-compare thead .is-sel { border-top: 1px solid #2DD4BF; border-radius: 10px 10px 0 0; }
.tdb .tdb-compare tbody tr:last-child .is-sel { border-bottom: 1px solid #2DD4BF; border-radius: 0 0 10px 10px; }   /* TUF-139: flush with the card's bottom, corners as the top's */

.tdb-faq { display: grid; gap: 10px; }
.tdb-faq-item { border: 1px solid rgba(45,212,191,.22); border-radius: 12px; background: var(--card); }
.tdb-faq-item summary { list-style: none; cursor: pointer; padding: 15px 18px; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.tdb-faq-item summary::-webkit-details-marker { display: none; }
.tdb-faq-item summary::after { content: "+"; color: #5EEAD4; font-weight: 700; }
.tdb-faq-item[open] summary::after { content: "−"; }
.tdb-faq-item p { margin: 0; padding: 0 18px 16px; color: #CFE0F5; font-size: 14.5px; }

/* the hand-off screen (the public checkout's "Setting up your account…" / "Taking you to the trading platform…") */
html.tdb-handoff-on, html.tdb-handoff-on body { overflow: hidden; }
.tdb-handoff-layer { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 24px; background: radial-gradient(700px 400px at 50% 30%, rgba(45,212,191,.14), transparent 70%), #0A1730; color: #fff; font: 400 16px/1.55 "Plus Jakarta Sans", system-ui, sans-serif; }
.tdb-handoff-box { max-width: 460px; text-align: center; }
.tdb-handoff-box .tdb-mark { width: 52px; margin-bottom: 20px; animation: tdb-pulse-mark 1.6s ease-in-out infinite; }
@keyframes tdb-pulse-mark { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .tdb-handoff-box .tdb-mark { animation: none; } }
.tdb-handoff-box h1 { font: 700 26px/1.25 Sora, sans-serif; margin: 0 0 12px; color: #fff; }
.tdb-handoff-box p { margin: 0 0 8px; color: #CFE0F5; }
.tdb-handoff-next { color: #5EEAD4 !important; font-weight: 600; }
.tdb-handoff-link a { color: #B9D4FF; }

@media (max-width: 1100px) {
  .tdb-buy { grid-template-columns: minmax(0, 1fr); grid-template-areas: "pick" "side" "compare" "faq"; }
  .tdb-buy-side { position: static; }
}
@media (max-width: 480px) {
  .tdb-compare { font-size: 13px; }
  .tdb-compare th, .tdb-compare td { padding: 10px 10px; }
  .tdb-compare tbody th { width: 30%; }
}

/* TUF-68 tweak: the country-code field shows the flag and code; the open list has the full names */
.tda-dial { position: relative; }
.tda-dial-face { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 30px 0 14px; border-radius: 8px; border: 1px solid var(--edge); background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238D9AB0' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--ink); font: 400 15.5px/1 "Plus Jakarta Sans", system-ui, sans-serif; white-space: nowrap; overflow: hidden; pointer-events: none; }
.tda-form .tda-dial select { position: relative; opacity: 0; cursor: pointer; }
.tda-dial:hover .tda-dial-face { border-color: var(--edge-hover); }
.tda-dial:focus-within .tda-dial-face { border-color: #2DD4BF; box-shadow: 0 0 0 3px rgba(45,212,191,.25); }
.tda-dial select[aria-invalid=true] + .tda-dial-face, .tda-dial:has(select[aria-invalid=true]) .tda-dial-face { border-color: var(--err); }
.tda-phone { grid-template-columns: 112px 1fr; }
@media (max-width: 480px) { .tda-phone { grid-template-columns: 100px 1fr; } }

/* TUF-69 fixes: the discount row is code box + compact Apply button; the order card breathes above its button */
.tdb-promo .tdb-phone { display: grid; grid-template-columns: minmax(0, 260px) auto; gap: 10px; justify-content: start; }
.tdb-promo .tdb-phone .tdb-btn { width: auto; padding: 0 20px; }
.tdb-order-refund { margin-bottom: 18px; }
.tdb-was { font: 500 15px/1.2 "Plus Jakarta Sans", sans-serif; color: var(--muted); text-decoration: line-through; white-space: nowrap; }
.tdb-order-terms { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.tdb .tdb-order-terms a { color: #B9D4FF; }

/* ======================================================================================================== TUF-70
   Sign-in / create-account left panel: "product preview". The column fills the page; its content is pinned to the
   visible viewport (logo top, pills and small print bottom) so a long form scrolls past it. */
.tdb .tda-brand { display: block; position: relative; padding: 0; overflow: visible; align-self: stretch; min-height: calc(100dvh - var(--ab)); background: #06101F; border-right: 1px solid rgba(45,212,191,.16); }
.tda-brand .tda-brand-inner { position: sticky; top: var(--ab); height: calc(100dvh - var(--ab)); max-width: none; display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
  padding: 44px clamp(36px, 4.6vw, 72px) 36px; overflow: hidden; isolation: isolate;
  background: radial-gradient(640px 520px at 92% 96%, rgba(45,212,191,.20), transparent 70%), radial-gradient(420px 320px at 10% 0%, rgba(45,212,191,.06), transparent 70%), #06101F; }
.tda-brand .tda-brand-inner::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(45,212,191,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(45,212,191,.06) 1px, transparent 1px); background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 0%, transparent 75%); }
.tdb .tda-brand a.tda-lockup, .tdb .tda-brand a.tda-lockup:hover { color: #fff; }
.tda-brand .tda-lockup .tdb-mark { width: 40px; filter: drop-shadow(0 0 12px rgba(45,212,191,.35)); }
.tda-brand-mid { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: clamp(18px, 3.4vh, 36px); }
.tdb .tda-brand .tda-headline { font: 800 clamp(34px, 3.1vw, 46px)/1.06 Sora, sans-serif; letter-spacing: -.035em; color: #fff; margin: 0; }
.tda-preview { position: relative; width: min(100%, 470px); height: clamp(200px, 30vh, 270px); }
.tda-pcard { position: absolute; width: 78%; padding: clamp(14px, 2vh, 20px) 20px; border-radius: 16px; border: 1px solid rgba(45,212,191,.32); color: #fff;
  background: linear-gradient(160deg, #13284D 0%, #0D1E3D 60%, #0A1832 100%); box-shadow: 0 24px 48px -18px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.02) inset; font-size: 13.5px; }
.tda-pcard.is-a { left: 0; top: 0; transform: rotate(-2deg); animation: tda-float-a 9s ease-in-out infinite; }
.tda-pcard.is-b { right: 0; bottom: 34px; width: 70%; transform: rotate(2.5deg); animation: tda-float-b 11s ease-in-out infinite; z-index: 1; }
@keyframes tda-float-a { 50% { transform: rotate(-2deg) translateY(-6px); } }
@keyframes tda-float-b { 50% { transform: rotate(2.5deg) translateY(5px); } }
.tda-pcard-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tda-pcard-row b { font: 600 14px/1.2 Sora, sans-serif; }
.tda-pbadge { padding: 3px 10px; border-radius: 999px; font: 700 11.5px/1.4 "Plus Jakarta Sans", sans-serif; color: #0A1730; background: #2DD4BF; }
.tda-pbig { margin: clamp(6px, 1.2vh, 12px) 0 2px; font: 700 clamp(22px, 3vh, 28px)/1.1 Sora, sans-serif; color: #9FF5E8; letter-spacing: -.02em; }
.tda-pbig span { font: 500 14px/1 "Plus Jakarta Sans", sans-serif; color: #A9B4C6; letter-spacing: 0; }
.tda-pcard.is-b .tda-pbig { color: #fff; }
.tda-psub { margin: 0; color: #A9B4C6; font-size: 12.5px; }
.tda-pbar { margin-top: clamp(8px, 1.4vh, 14px); height: 6px; border-radius: 99px; background: rgba(185,212,255,.12); overflow: hidden; }
.tda-pbar i { display: block; height: 100%; border-radius: inherit; background: #2DD4BF; }
.tda-pbar.is-grad i { background: linear-gradient(90deg, #9FF5E8, #2DD4BF 48%, #17B5A1); }
.tda-plive { position: absolute; left: 0; bottom: 0; margin: 0; display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(45,212,191,.28); background: rgba(10,23,48,.75); color: #CFE0F5; font-size: 12.5px; }
.tda-plive i { width: 8px; height: 8px; border-radius: 50%; background: #2DD4BF; box-shadow: 0 0 0 0 rgba(45,212,191,.6); animation: tda-dot 2s ease-out infinite; }
@keyframes tda-dot { 70% { box-shadow: 0 0 0 8px rgba(45,212,191,0); } 100% { box-shadow: 0 0 0 0 rgba(45,212,191,0); } }
@media (prefers-reduced-motion: reduce) { .tda-pcard.is-a, .tda-pcard.is-b, .tda-plive i { animation: none; } }
.tda-brand-foot { flex: none; }
.tda-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tda-pills li { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(45,212,191,.26); background: rgba(13,30,61,.7); color: #E6EDF8; font-size: 13px; font-weight: 500; }
.tda-brand .tda-brand-fine { margin: 14px 0 0; font-size: 12px; color: #7F8DA6; }
.tda-brand .tda-payouts { margin-top: 14px; }
/* short screens: the preview shrinks before anything overlaps */
@media (max-height: 820px) { .tdb .tda-brand .tda-headline { font-size: clamp(30px, 2.8vw, 40px); } }

/* TUF-70 fix: the preview is drawn at one design size (460 x 300) and scaled as a whole on shorter screens, so the
   cards shrink together and card 2 only ever covers card 1's bar area, never its text. */
.tda-preview-wrap { --k: 1; width: calc(460px * var(--k)); height: calc(300px * var(--k)); max-width: 100%; }
.tda-preview-wrap .tda-preview { width: 460px; height: 300px; transform: scale(var(--k)); transform-origin: left top; }
.tda-preview-wrap .tda-pcard { padding: 18px 20px; }
.tda-preview-wrap .tda-pcard.is-a { left: 0; top: 0; width: 340px; }
.tda-preview-wrap .tda-pcard.is-b { left: 128px; right: auto; top: 136px; bottom: auto; width: 316px; }
.tda-preview-wrap .tda-pbig { margin: 10px 0 2px; font-size: 27px; }
.tda-preview-wrap .tda-pbar { margin-top: 12px; }
.tda-preview-wrap .tda-plive { bottom: 0; }
@media (max-width: 1360px) { .tda-preview-wrap { --k: .9; } }
@media (max-height: 860px) { .tda-preview-wrap { --k: .86; } }
@media (max-height: 800px) { .tda-preview-wrap { --k: .78; } }
@media (max-height: 740px) { .tda-preview-wrap { --k: .68; } }
@media (max-height: 660px) { .tda-preview-wrap { display: none; } }
.tdb-order-list > div[hidden] { display: none; }   /* TUF-70 fix: the discount row stays hidden without a code */

/* ======================================================================================================== TUF-71
   1. Logo: the site header's lockup at the site header's sizes (measured on the live header: mark 32x36, gap 10px,
      "The Upside" Sora 700 15.2px, "FUNDING" Plus Jakarta Sans 600 9.6px tracked 0.2em at 80%; below 768px mark 29x32,
      14px / 9px; at 390px and below the mark alone). Light panel: the header's light-page mark and navy words. */
.tdb .tda a.tda-lockup { display: inline-flex; align-items: center; gap: 10px; line-height: 1; text-decoration: none; }
.tda-lockup .tuf-logo-mark { display: inline-block; flex: none; width: 32px; height: 36px; }
.tda-lockup .tuf-logo-mark svg { display: block; width: 100%; height: 100%; filter: none; }
.tda-lockup .tuf-logo-mark-light { display: none; }
.tda[data-theme=light] .tda-logo .tuf-logo-mark { display: none; }
.tda[data-theme=light] .tda-logo .tuf-logo-mark-light { display: inline-block; }
.tda-lockup .tuf-logo-words { display: flex; flex-direction: column; gap: 3px; }
.tda-lockup .tuf-logo-name { font: 700 15.2px/1 Sora, sans-serif; letter-spacing: normal; }
.tda-lockup .tuf-logo-sub { font: 600 9.6px/1 "Plus Jakarta Sans", sans-serif; letter-spacing: .2em; opacity: .8; }
.tdb .tda-brand a.tda-lockup, .tdb .tda .tda-mhead a.tda-lockup { color: #fff; }
@media (max-width: 767px) {
  .tda-lockup .tuf-logo-mark { width: 29px; height: 32px; }
  .tda-lockup .tuf-logo-words { gap: 2px; }
  .tda-lockup .tuf-logo-name { font-size: 14px; } .tda-lockup .tuf-logo-sub { font-size: 9px; }
}
@media (max-width: 390px) { .tda-lockup .tuf-logo-words { display: none; } }

/* 2. Right panel colours (light and dark): the site's teal action, navy links with a teal underline, teal focus. */
.tda-pane { --link: #0A1730; --link-hover: #17B5A1; }
.tda[data-theme=dark] .tda-pane { --link: #FFFFFF; --link-hover: #5EEAD4; }
.tda-btn.tda-btn-primary, .tda[data-theme=dark] .tda-btn.tda-btn-primary {
  background: linear-gradient(135deg, #7FF0DF 0%, #2DD4BF 50%, #17B5A1 100%); color: #0A1730; font-weight: 700; border: 0;
  box-shadow: 0 10px 24px -10px rgba(45,212,191,.55); transition: box-shadow .15s, filter .15s, transform .15s; }
.tda-btn.tda-btn-primary:hover:not(:disabled), .tda[data-theme=dark] .tda-btn.tda-btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #7FF0DF 0%, #2DD4BF 50%, #17B5A1 100%); filter: brightness(1.06); transform: translateY(-1px);
  box-shadow: 0 16px 36px -10px rgba(45,212,191,.75), 0 0 26px rgba(45,212,191,.32); }
.tda-btn.tda-btn-primary:focus-visible { outline: none; box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 5px #2DD4BF, 0 10px 24px -10px rgba(45,212,191,.55); }
.tda[data-theme=dark] .tda-btn.tda-btn-primary:focus-visible { box-shadow: 0 0 0 3px #0E1D3C, 0 0 0 5px #5EEAD4; }
.tda-btn.tda-btn-primary:disabled { opacity: .6; cursor: default; transform: none; }
.tda-btn.tda-btn-primary:disabled::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(10,23,48,.3); border-top-color: #0A1730; animation: tdb-spin .8s linear infinite; }
@media (prefers-reduced-motion: reduce) { .tda-btn.tda-btn-primary:disabled::before { animation: none; } .tda-btn.tda-btn-primary:hover:not(:disabled) { transform: none; } }
/* links: navy (white on the dark panel) with a 2px teal underline; hover turns teal. Never the browser's blue. */
.tdb .tda .tda-pane a:not(.tda-lockup), .tdb .tda .tda-pane .tda-linkbtn, .tdb .tda .tda-fine a {
  color: var(--link); text-decoration: underline; text-decoration-color: #2DD4BF; text-decoration-thickness: 2px; text-underline-offset: 3px; font-weight: 600; }
.tdb .tda .tda-pane a:not(.tda-lockup):hover, .tdb .tda .tda-pane .tda-linkbtn:hover, .tdb .tda .tda-fine a:hover { color: var(--link-hover); }
.tdb .tda .tda-pane a:not(.tda-lockup):focus-visible, .tdb .tda .tda-pane .tda-linkbtn:focus-visible { outline: 2px solid #2DD4BF; outline-offset: 3px; border-radius: 3px; }
.tdb .tda .tda-check label a { font-weight: 500; }
/* Google: white with a grey border (Google's rules), teal focus ring */
.tda-btn-google:focus-visible { outline: none; border-color: #2DD4BF; box-shadow: 0 0 0 3px rgba(45,212,191,.35); }
.tda-theme:focus-visible { outline: none; border-color: #2DD4BF; box-shadow: 0 0 0 3px rgba(45,212,191,.35); }
/* placeholders dark enough to read (4.6:1 on white) */
.tda-form input::placeholder { color: #6B7890; }
.tda[data-theme=dark] .tda-form input::placeholder { color: #8D9AB0; }
.tdb .tda .tda-lockup .tuf-logo-mark svg.tdb-mark { width: 100%; height: 100%; filter: none; }   /* TUF-71: beats the older .tda-brand / .tda-mhead mark sizes */
/* TUF-71 fix: hover/focus must match the base input rule's specificity, or the border stays grey on focus */
.tda-form input:not([type=checkbox]):not([type=hidden]):hover, .tda-form select:hover { border-color: var(--edge-hover); }
.tda-form input:not([type=checkbox]):not([type=hidden]):focus, .tda-form select:focus { outline: none; border-color: #2DD4BF; box-shadow: 0 0 0 3px rgba(45,212,191,.25); }
.tda-form input[aria-invalid=true]:not([type=checkbox]) { border-color: var(--err); }
@media (max-width: 900px) { .tdb .tda .tda-brand { display: none; } }   /* TUF-71 fix: phones show the form under the slim header only (the TUF-70 panel rule outranked the TUF-68 one) */
.tda-form input::placeholder { color: #657189; }   /* TUF-71: 4.9:1 on white (AA) */
.tda[data-theme=dark] .tda-form input::placeholder { color: #8D9AB0; }

/* TUF-72: "Upside Gauges" heading above the four cards on Account overview */
.tdk-gauges { margin-top: 26px; }
.tdk-gauges .tdk-eyebrow { margin-bottom: 6px; }
.tdk-gauges-intro { margin: 0 0 16px; color: var(--muted); font-size: 14.5px; }
/* TUF-72: link hover on the light sign-in panel keeps navy text (AA) and thickens the teal underline to 3px. Dark panel unchanged. */
.tda[data-theme=light] .tda-pane { --link-hover: #0A1730; }
.tdb .tda[data-theme=light] .tda-pane a:not(.tda-lockup):hover, .tdb .tda[data-theme=light] .tda-pane .tda-linkbtn:hover, .tdb .tda[data-theme=light] .tda-fine a:hover { color: #0A1730; text-decoration-thickness: 3px; }

/* TUF-74: good-news gauge (teal) and the "+N more" link in Today's attention band */
.tdk-att.is-good { border: 2px solid #2DD4BF; box-shadow: 0 0 40px -14px rgba(45,212,191,.55); }
.tdk-att.is-good .tdk-att-v { color: #9FF5E8; }
.tdk-att-more { align-self: center; justify-self: start; padding: 10px 4px; font-weight: 700; color: #5EEAD4; text-decoration: none; }
.tdb .tdk-att-more:hover { color: #fff; text-decoration: underline; }

/* TUF-74: billing step inside "Your order" (card flow) and the payment result */
.tdb-billing { display: grid; gap: 6px; margin: 4px 0 0; }
.tdb-billing[hidden] { display: none; }
.tdb-billing-title { margin: 6px 0 0; font: 700 15px/1.3 Sora, sans-serif; color: #fff; }
.tdb-billing-sub { margin: 0 0 6px; font-size: 12.5px; }
.tdb-billing label { margin-top: 6px; font-size: 13px; font-weight: 600; color: #DCE6F5; }
.tdb-billing input { width: 100%; height: 44px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(185,212,255,.22); background: #0A1730; color: #fff; font: 400 15px/1.2 "Plus Jakarta Sans", sans-serif; }
.tdb-billing input:focus { outline: none; border-color: #2DD4BF; box-shadow: 0 0 0 3px rgba(45,212,191,.25); }
.tdb-billing input[aria-invalid=true] { border-color: #FF9C9C; }
.tdb-billing-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tdb-billing .tdb-err:empty { display: none; }
.tdb-billing-country { margin: 8px 0 10px; font-size: 13px; }
.tdb-billing [data-card-pay] { margin-top: 4px; }
.tdb-opt { font-weight: 400; color: var(--muted); }
.tdb-paybox { padding: 24px; max-width: 560px; }
.tdb-paybox .tdb-order-list { margin-bottom: 18px; }
.tdb-paybox > p + .tdb-actions { margin-top: 16px; }
.tdb-order [data-pay][hidden] { display: none; }   /* TUF-74: the card step replaces the button */

/* TUF-77: Buy a challenge, arrived from "Trading platform" without a trading account */
.tdb .tdb-notrade { margin: 10px 0 0; max-width: 640px; }

/* TUF-78: payout history table */
.tdb .tdb-table { width: 100%; border-collapse: collapse; margin: 10px 0 18px; font-size: 14px; }
.tdb .tdb-table th, .tdb .tdb-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid rgba(185, 212, 255, .14); }
.tdb .tdb-table th { font-weight: 600; opacity: .75; }
.tdb .tdb-table .tdb-num { text-align: right; font-variant-numeric: tabular-nums; }

/* TUF-79: "check your email" - the 6-digit code fallback, resend, and the spoiled-link notice */
.tdb .tda .tda-code { margin: 18px 0 6px; text-align: left; }
.tdb .tda .tda-code label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.tdb .tda .tda-code-row { display: flex; gap: 10px; }
.tdb .tda .tda-code-row input { flex: 1 1 auto; min-width: 0; font-size: 20px; letter-spacing: 6px; font-variant-numeric: tabular-nums; padding: 12px 14px; border-radius: 5px; border: 1px solid #C9D3E3; background: #FFFFFF; color: #0A1730; }
.tdb .tda[data-theme="dark"] .tda-code-row input { background: #0E1D3C; border-color: rgba(185, 212, 255, .25); color: #FFFFFF; }
.tdb .tda .tda-code-row input:focus { outline: none; border-color: #2DD4BF; box-shadow: 0 0 0 3px rgba(45, 212, 191, .25); }
.tdb .tda .tda-code-row .tda-btn { flex: 0 0 auto; width: auto; padding-left: 22px; padding-right: 22px; }
.tdb .tda .tda-resend { margin: 4px 0 10px; }
.tdb .tda .tda-resend .tda-linkbtn[disabled] { opacity: .6; cursor: default; text-decoration: none; }
.tdb .tda .tda-notice { border: 1px solid rgba(180, 35, 24, .35); background: rgba(180, 35, 24, .06); border-radius: 8px; padding: 14px 16px; margin: 0 0 18px; }
.tdb .tda .tda-notice p { margin: 0 0 10px; }
.tdb .tda .tda-notice .tda-btn { width: auto; }
@media (max-width: 420px) { .tdb .tda .tda-code-row { flex-direction: column; } }
.tdb .tda a.tda-btn-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; width: auto; padding-left: 26px; padding-right: 26px; }

/* TUF-80: hidden size chips (no TUF Config price) */
.tdb .tdb-chip[hidden] { display: none; }

/* TUF-80 Rulebook (option A): one comparison table. Rule column pinned; on phones the table scrolls sideways in its own box. */
.tdb .tdr-sizes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 16px; }
.tdb .tdr-sizes > span { font-size: 13px; font-weight: 600; color: var(--grey, #A9B4C6); margin-right: 4px; }
.tdb .tdr-sizes button { font: 600 14px/1 "Plus Jakarta Sans", sans-serif; padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(185, 212, 255, .25); background: transparent; color: #FFFFFF; cursor: pointer; }
.tdb .tdr-sizes button:hover { border-color: #2DD4BF; }
.tdb .tdr-sizes button[aria-checked="true"] { background: rgba(45, 212, 191, .14); border-color: #2DD4BF; color: #FFFFFF; }
.tdb .tdr-sizes button:focus-visible { outline: 2px solid #2DD4BF; outline-offset: 2px; }
.tdb .tdr-scroll { overflow-x: auto; border: 1px solid rgba(185, 212, 255, .16); border-radius: 14px; background: rgba(14, 29, 60, .55); -webkit-overflow-scrolling: touch; }
.tdb .tdr-scroll:focus-visible { outline: 2px solid #2DD4BF; outline-offset: 2px; }
.tdb .tdr { width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.tdb .tdr th, .tdb .tdr td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(185, 212, 255, .1); }
.tdb .tdr thead th { padding-top: 18px; border-bottom: 1px solid rgba(185, 212, 255, .2); }
.tdb .tdr thead th b { display: block; font: 700 16px/1.3 Sora, sans-serif; color: #FFFFFF; }
.tdb .tdr small { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.4; font-weight: 400; color: #A9B4C6; }
.tdb .tdr td b { display: block; font-weight: 700; color: #FFFFFF; }
.tdb .tdr .tdr-rule { position: sticky; left: 0; z-index: 1; width: 34%; min-width: 170px; background: #0E1D3C; }
.tdb .tdr .tdr-rule b { color: #FFFFFF; font-weight: 700; }
.tdb .tdr-group th { padding: 16px 16px 8px; font: 700 12px/1.2 "Plus Jakarta Sans", sans-serif; letter-spacing: .14em; text-transform: uppercase; border-bottom: 0; background: transparent; position: sticky; left: 0; }
.tdb .tdr-group.is-pass th, .tdb .tdr-group.is-funded th { color: #5EEAD4; }
.tdb .tdr-group.is-ends th { color: #FF8A8E; }
.tdb .tdr .is-mine { background: rgba(45, 212, 191, .07); }
.tdb .tdr thead th.is-mine { box-shadow: inset 0 2px 0 #2DD4BF; }
.tdb .tdr-mine { display: inline-block; margin-top: 8px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: #0A1730; background: #2DD4BF; }
.tdb .tdr tbody tr:last-child th, .tdb .tdr tbody tr:last-child td { border-bottom: 0; }
.tdb .tdr-links { display: flex; flex-wrap: wrap; gap: 22px; margin: 20px 0 0; }
.tdb .tdr-links a { color: #FFFFFF; text-decoration: underline; text-decoration-color: #2DD4BF; text-decoration-thickness: 2px; text-underline-offset: 4px; font-weight: 600; }
.tdb .tdr-links a:hover { text-decoration-thickness: 3px; }
@media (max-width: 600px) { .tdb .tdr { min-width: 520px; font-size: 13.5px; } .tdb .tdr th, .tdb .tdr td { padding: 12px; } .tdb .tdr .tdr-rule { min-width: 150px; } }
/* TUF-80 Rulebook: no theme grid lines; phones show one challenge at a time with tabs (reads better than sideways scrolling at 390px) */
.tdb .tdr th, .tdb .tdr td { border-left: 0; border-right: 0; border-top: 0; }
.tdb .tdr-tabs { display: none; }
@media (max-width: 600px) {
  .tdb .tdr-tabs { display: flex; gap: 6px; margin: 0 0 12px; padding: 4px; border-radius: 999px; background: rgba(14, 29, 60, .8); border: 1px solid rgba(185, 212, 255, .16); }
  .tdb .tdr-tabs button { flex: 1; font: 700 14px/1 "Plus Jakarta Sans", sans-serif; padding: 11px 10px; border: 0; border-radius: 999px; background: transparent; color: #A9B4C6; cursor: pointer; }
  .tdb .tdr-tabs button[aria-selected="true"] { background: #2DD4BF; color: #0A1730; }
  .tdb .tdr-tabs button:focus-visible { outline: 2px solid #5EEAD4; outline-offset: 2px; }
  .tdb .tdr { min-width: 0; }
  .tdb .tdr-scroll { overflow-x: visible; }
  .tdb .tdr [data-col] { display: none; }
  .tdb .tdr[data-show="0"] [data-col="0"], .tdb .tdr[data-show="1"] [data-col="1"], .tdb .tdr[data-show="2"] [data-col="2"], .tdb .tdr[data-show="3"] [data-col="3"] { display: table-cell; }
  .tdb .tdr .tdr-rule { position: static; width: 52%; min-width: 0; }
}

/* TUF-81: the Dashboard tab = Today + the account overview below it. The account heading is now an h2 (one h1 a page)
   styled exactly as the old page's h1. */
.tdk-acc-sec { margin-top: 36px; scroll-margin-top: 16px; }
.tdk-hero .tdk-acc-title { font-size: 30px; font-weight: 700; line-height: 1.15; }
@media (max-width: 900px) { .tdk-hero .tdk-acc-title { font-size: 24px; } }

/* TUF-81 Payouts: one layout for everyone (tiles, the path to the first payout, history, how payouts work). */
.tdb .tdp-where { margin: 6px 0 0; color: var(--grey); font-size: 13px; }
.tdb .tdp-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tdb .tdp-tile { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 16px 18px; border-radius: 14px; background: linear-gradient(160deg, var(--surface), var(--panel)); border: 1px solid rgba(185,212,255,.12); }
.tdb .tdp-tile p { margin: 0; color: var(--grey); font-size: 13px; }
.tdb .tdp-tile b { font: 700 28px/1.15 Sora, sans-serif; color: #fff; }
.tdb .tdp-tile.is-zero b { color: #8E99AC; }
.tdb .tdp-tile.is-ramp b { background: var(--accent-ramp, linear-gradient(135deg, #9FF5E8, #2DD4BF 48%, #17B5A1)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tdb .tdp-tile small { color: var(--grey); font-size: 12px; }
.tdb .tdp-tile .tdb-bar { margin-top: 8px; }
.tdb .tdp-path h2:not(.tdk-eyebrow) { margin: 2px 0 0; font-size: 22px; font-weight: 700; }
.tdb .tdp-path > .tdb-muted { margin: 6px 0 0; }
.tdb .tdp-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tdb .tdp-steps li { position: relative; padding: 16px; border-radius: 12px; border: 1px solid rgba(185,212,255,.14); background: rgba(10,23,48,.35); }
.tdb .tdp-steps li b { display: block; margin-top: 10px; font: 700 16px/1.3 Sora, sans-serif; color: #fff; }
.tdb .tdp-steps li p { margin: 6px 0 0; color: var(--grey); font-size: 13px; line-height: 1.5; }
.tdb .tdp-num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; font: 700 12px/1 "Plus Jakarta Sans", sans-serif; background: rgba(185,212,255,.14); color: #fff; }
.tdb .tdp-steps li.is-done { border-color: rgba(45,212,191,.45); }
.tdb .tdp-steps li.is-done .tdp-num { background: #2DD4BF; color: #0A1730; }
.tdb .tdp-steps li.is-now { border: 2px solid var(--amber); padding: 15px; box-shadow: 0 0 36px -14px rgba(245,165,36,.55); }
.tdb .tdp-steps li.is-now .tdp-num { background: var(--amber); color: #0A1730; }
.tdb .tdp-steps li.is-next b { color: rgba(255,255,255,.85); }
.tdb .tdp-path .tdb-actions { margin-top: 18px; }
.tdb .tdp-hist .tdb-row { align-items: baseline; }
.tdb .tdp-hist h2.tdk-eyebrow { margin: 0 0 8px; }
.tdb .tdp-hist .tdb-linkbtn { color: var(--grey); font-weight: 500; font-size: 13px; text-decoration: none; }
.tdb .tdp-hist .tdb-linkbtn:hover { color: #fff; text-decoration: underline; }
.tdb .tdp-none { margin: 0; padding: 14px 18px; border-radius: 12px; border: 1px dashed rgba(185,212,255,.18); color: var(--grey); }
.tdb .tdp-how { padding: 0; }
.tdb .tdp-how summary { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; cursor: pointer; list-style: none; font: 600 16px/1.3 Sora, sans-serif; color: #fff; }
.tdb .tdp-how summary::-webkit-details-marker { display: none; }
.tdb .tdp-how summary::after { content: "+"; font-size: 20px; color: var(--grey); }
.tdb .tdp-how[open] summary::after { content: "\2013"; }
.tdb .tdp-how > :not(summary) { margin-left: 22px; margin-right: 22px; }
.tdb .tdp-how > :last-child { margin-bottom: 18px; }
@media (max-width: 900px) {
  .tdb .tdp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tdb .tdp-tile b { font-size: 22px; }
  .tdb .tdp-steps { grid-template-columns: minmax(0, 1fr); }
  .tdb .tdp-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px 0; }
  .tdb .tdp-table td { width: auto; background: none; }
  .tdb .tdp-table td:last-child { grid-column: 1 / -1; }
}

/* TUF-82 Part A: Buy a challenge - challenge cards, size cards, the order card and the phone bottom bar. */
.tdb .tdb-new fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.tdb .tdb-new fieldset:last-child { margin-bottom: 0; }
.tdb .tdb-new legend { padding: 0; margin: 0 0 10px; font-size: 15px; font-weight: 700; color: #fff; }
.tdb .tdb-new legend span { font-weight: 400; color: var(--grey); }
.tdb .tdb-ccards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tdb .tdb-ccard { position: relative; display: block; padding: 16px 48px 16px 18px; border: 1px solid rgba(185,212,255,.2); border-radius: 12px; background: rgba(10,23,48,.45); cursor: pointer; }
.tdb .tdb-ccard b { display: block; font: 700 19px/1.25 Sora, sans-serif; color: #fff; }
.tdb .tdb-ccard small { display: block; margin-top: 4px; font-size: 13px; color: var(--grey); }
.tdb .tdb-ccard-tick { position: absolute; top: 16px; right: 16px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid rgba(185,212,255,.45); }
.tdb .tdb-ccard:has(input:checked) { border: 2px solid #2DD4BF; padding: 15px 47px 15px 17px; background: rgba(45,212,191,.09); }
.tdb .tdb-ccard:has(input:checked) .tdb-ccard-tick { top: 15px; right: 15px; border: 0; background: #2DD4BF; }
.tdb .tdb-ccard:has(input:checked) .tdb-ccard-tick::after { content: ""; position: absolute; left: 8px; top: 5px; width: 5px; height: 9px; border: solid #0A1730; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.tdb .tdb-scards { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.tdb .tdb-scard { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 12px 4px; border: 1px solid rgba(185,212,255,.2); border-radius: 10px; background: rgba(10,23,48,.45); cursor: pointer; text-align: center; }
.tdb .tdb-scard[hidden] { display: none; }
.tdb .tdb-scard b { font: 700 16px/1.2 Sora, sans-serif; color: #fff; }
.tdb .tdb-scard small { font-size: 13px; color: var(--grey); }
.tdb .tdb-scard:has(input:checked) { border: 2px solid #2DD4BF; padding: 11px 3px; background: rgba(45,212,191,.12); }
.tdb .tdb-scard:has(input:checked) small { color: #5EEAD4; }
.tdb .tdb-ccard:has(input:focus-visible), .tdb .tdb-scard:has(input:focus-visible) { outline: 2px solid #2DD4BF; outline-offset: 2px; }
.tdb .tdb-code { display: flex; gap: 8px; margin-top: 16px; }
.tdb .tdb-code input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 8px; border: 1px solid rgba(185,212,255,.22); background: rgba(10,23,48,.6); color: #fff; font: 600 15px "Plus Jakarta Sans", sans-serif; text-transform: uppercase; }
.tdb .tdb-code-btn { height: 44px; padding: 0 16px; border-radius: 8px; border: 1px solid rgba(45,212,191,.55); background: transparent; color: #5EEAD4; font-weight: 700; }
.tdb .tdb-code-btn.is-applied { background: rgba(45,212,191,.12); }
.tdb .tdb-code-msg { margin: 6px 0 0; font-size: 13px; color: var(--grey); }
.tdb .tdb-code-msg:empty { display: none; }
.tdb .tdb-order-disc { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 14.5px; color: var(--grey); }
.tdb .tdb-order-disc[hidden] { display: none; }
.tdb .tdb-order-disc b { color: #5EEAD4; font-weight: 700; }
.tdb .tdb-order-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(185,212,255,.16); }
.tdb .tdb-order-total span { font-size: 16px; font-weight: 700; color: #fff; }
.tdb .tdb-order-total b { font: 700 30px/1 Sora, sans-serif; color: #fff; }
.tdb .tdb-order-refund { display: inline-flex; align-items: center; gap: 6px; margin: 16px 0; padding: 6px 12px; border: 1px solid rgba(45,212,191,.4); border-radius: 999px; font-size: 13px; font-weight: 600; color: #5EEAD4; }
.tdb .tdb-order-refund[hidden] { display: none; }
.tdb .tdb-order-terms { margin: 14px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--grey); }
.tdb .tdb-buybar { display: none; }
@media (max-width: 900px) {
  .tdb-buy { grid-template-columns: minmax(0, 1fr); grid-template-areas: "pick" "side" "compare" "faq"; padding-bottom: 72px; }
  .tdb-buy-side { position: static; }
  .tdb .tdb-buybar { display: flex; position: fixed; left: 0; right: 0; bottom: calc(57px + env(safe-area-inset-bottom)); z-index: 9; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: #0E1D3C; border-top: 1px solid rgba(45,212,191,.3); }
  .tdb .tdb-buybar small { display: block; font-size: 12px; color: var(--grey); }
  .tdb .tdb-buybar b { font: 700 20px/1.1 Sora, sans-serif; color: #fff; }
  .tdb .tdb-buybar .tdb-btn { min-height: 44px; padding: 0 16px; }
}
@media (max-width: 600px) {
  .tdb .tdb-ccards { grid-template-columns: minmax(0, 1fr); }
  .tdb .tdb-scards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* TUF-82: Rulebook - one shade across the whole row (the rule column and the values alike); the trader's own
   challenge column keeps its teal tint on top. */
.tdb .tdr th, .tdb .tdr td, .tdb .tdr .tdr-rule, .tdb .tdr-group th { background-color: #0E1D3C; }
.tdb .tdr .is-mine { background-image: linear-gradient(rgba(45,212,191,.08), rgba(45,212,191,.08)); }

/* TUF-82 Part B: the Dashboard (gauges, tiles, recent trades; Pass check, Your accounts, Quick links on the right). */
.tdb .tdh { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; margin-top: 18px; }
.tdb .tdh-main, .tdb .tdh-aside { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tdb .tdh-switchwrap { position: relative; display: inline-block; margin-top: 14px; }
.tdb .tdh-switch { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 9px 14px; border-radius: 10px; border: 1px solid rgba(185,212,255,.22); background: rgba(10,23,48,.5); color: #fff; font: inherit; font-size: 14.5px; cursor: pointer; }
.tdb .tdh-switchwrap .tdh-switch { margin-top: 0; }
.tdb .tdh-switch.is-static { cursor: default; }
.tdb .tdh-switch span { color: var(--grey); }
.tdb .tdh-dot { width: 8px; height: 8px; border-radius: 50%; background: #2DD4BF; flex: none; }
.tdb .tdh-dot.is-pending, .tdb .tdh-dot.is-review { background: var(--amber); }
.tdb .tdh-dot.is-failed { background: #FF8A8E; }
.tdb .tdh-menu { position: absolute; left: 0; top: calc(100% + 6px); z-index: 20; min-width: 100%; }
.tdb .tdh-menu a { display: block; white-space: nowrap; }
.tdb .tdh-alert { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px 18px; border-radius: 14px; border: 1px solid rgba(45,212,191,.35); background: rgba(45,212,191,.08); }
.tdb .tdh-alert.is-warn { border-color: rgba(245,165,36,.5); background: rgba(245,165,36,.08); }
.tdb .tdh-alert.is-risk { border-color: rgba(255,138,142,.5); background: rgba(255,138,142,.08); }
.tdb .tdh-alert p { flex: 1; margin: 0; color: var(--grey); font-size: 14.5px; }
.tdb .tdh-alert p b { color: #fff; }
.tdb .tdh-alert a { font-weight: 700; white-space: nowrap; }
.tdb .tdh-alert-ico { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: #2DD4BF; color: #0A1730; font-weight: 800; flex: none; }
.tdb .tdh-alert.is-warn .tdh-alert-ico { background: var(--amber); }
.tdb .tdh-alert.is-risk .tdh-alert-ico { background: #FF8A8E; }
.tdb .tdh-x { background: none; border: 0; color: var(--grey); font-size: 22px; line-height: 1; cursor: pointer; padding: 0 2px; }
.tdb .tdh-pay { margin-top: 18px; }
.tdb .tdh-pay h2 { margin: 10px 0 6px; font-size: 22px; }
.tdb .tdh-pay-line { margin: 0; color: var(--grey); }
.tdb .tdh-pay-line b { color: #fff; }
.tdb .tdh-pill { display: inline-block; padding: 4px 10px; border-radius: 999px; background: rgba(245,165,36,.16); color: var(--amber-text); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tdb .tdh-others { margin: 10px 0 0; font-size: 13.5px; color: var(--grey); }
.tdb .tdh-unpaid { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 14px; border: 1px solid rgba(245,165,36,.4); background: rgba(245,165,36,.06); }
.tdb .tdh-unpaid p { flex: 1; margin: 0; color: var(--grey); } .tdb .tdh-unpaid p b { color: #fff; }
.tdb .tdh-gauges h2.tdk-eyebrow { margin: 0 0 4px; }
.tdb .tdh-intro { margin: 0 0 12px; color: var(--grey); font-size: 14px; }
.tdb .tdh-g { padding: 20px 22px; border-radius: 16px; border: 1px solid rgba(185,212,255,.14); background: linear-gradient(160deg, var(--surface), var(--panel)); }
.tdb .tdh-g-wide { border-color: rgba(45,212,191,.35); margin-bottom: 16px; }
.tdb .tdh-g.is-warn { border: 2px solid var(--amber); padding: 19px 21px; }
.tdb .tdh-g-k { margin: 0; font: 700 12.5px/1.2 "Plus Jakarta Sans", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #CFE0F5; }
.tdb .tdh-g-v { margin: 10px 0 12px; font: 700 34px/1.1 Sora, sans-serif; color: #fff; }
.tdb .tdh-g:not(.tdh-g-wide) .tdh-g-v { font-size: 28px; }
.tdb .tdh-g-v small { font: 400 16px "Plus Jakarta Sans", sans-serif; color: var(--grey); }
.tdb .tdh-g-foot { display: flex; justify-content: space-between; gap: 12px; margin: 10px 0 0; font-size: 13.5px; color: var(--grey); }
.tdb .tdh-g-foot b { color: #fff; }
.tdb .tdh-g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tdb .tdh-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tdb .tdh-tiles > div { padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(185,212,255,.12); background: rgba(14,29,60,.7); }
.tdb .tdh-tiles p { margin: 0; color: var(--grey); font-size: 13.5px; }
.tdb .tdh-tiles b { display: block; margin-top: 6px; font: 700 24px/1.2 Sora, sans-serif; color: #fff; }
.tdb .is-up { color: #5EEAD4 !important; } .tdb .is-down { color: #FF8A8E !important; }
.tdb .tdh-recent h2, .tdb .tdh-side h2 { margin: 0; font-size: 18px; }
.tdb .tdh-recent .tdb-row a, .tdb .tdh-link { font-weight: 700; text-decoration: underline; text-decoration-color: #2DD4BF; text-underline-offset: 4px; }
.tdb .tdh-table { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: 14.5px; }
.tdb .tdh-table th { padding: 8px 0; text-align: left; font-weight: 500; font-size: 13px; color: var(--grey); border-bottom: 1px solid rgba(185,212,255,.12); }
.tdb .tdh-table td { padding: 12px 0; border-bottom: 1px solid rgba(185,212,255,.08); color: #fff; }
.tdb .tdh-table .tdb-num { text-align: right; font-weight: 700; }
.tdb .tdh-side > .tdb-muted { margin: 6px 0 0; font-size: 13.5px; }
.tdb .tdh-pass ul { list-style: none; margin: 12px 0 14px; padding: 0; }
.tdb .tdh-pass li { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid rgba(185,212,255,.1); font-size: 14.5px; color: #fff; }
.tdb .tdh-pass li > span:nth-child(2) { flex: 1; }
.tdb .tdh-pass li b { font-weight: 600; color: var(--grey); }
.tdb .tdh-tick { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid rgba(185,212,255,.4); flex: none; position: relative; }
.tdb .tdh-pass li.is-done .tdh-tick { border: 0; background: #2DD4BF; }
.tdb .tdh-pass li.is-done .tdh-tick::after { content: ""; position: absolute; left: 7px; top: 4px; width: 4px; height: 8px; border: solid #0A1730; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.tdb .tdh-pass li.is-done b { color: #5EEAD4; }
.tdb .tdh-pass li.is-risk .tdh-tick { border-color: #FF8A8E; } .tdb .tdh-pass li.is-risk b { color: #FF8A8E; }
.tdb .tdh-accs { list-style: none; margin: 12px 0 4px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tdb .tdh-accs a { display: block; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(185,212,255,.14); background: rgba(10,23,48,.4); color: #fff; text-decoration: none; }
.tdb .tdh-accs a[aria-current] { border: 2px solid #2DD4BF; padding: 11px 15px; }
.tdb .tdh-accs b { display: block; } .tdb .tdh-accs span { font-size: 13px; color: var(--grey); }
.tdb .tdh-links { list-style: none; margin: 8px 0 0; padding: 0; }
.tdb .tdh-links a { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(185,212,255,.1); color: #fff; font-weight: 600; text-decoration: none; }
.tdb .tdh-links li:last-child a { border-bottom: 0; }
.tdb .tdh-links a span { color: #5EEAD4; }
.tdb .tdh-start { border-color: rgba(45,212,191,.35); padding: 28px 30px; }
.tdb .tdh-start h2 { margin: 4px 0 10px; font-size: 30px; }
.tdb .tdh-start p { max-width: 640px; color: #CFE0F5; }
.tdb .tdh-start .tdb-actions { align-items: center; gap: 18px; }
.tdb .tdh-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tdb .tdh-steps h3 { margin: 6px 0 8px; font-size: 18px; }
.tdb .tdh-steps p { margin: 0; color: var(--grey); font-size: 14px; }
.tdb .tdh-steps .tdh-step-n { color: #5EEAD4; font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 1100px) { .tdb .tdh { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) {
  .tdb .tdh-g2, .tdb .tdh-steps { grid-template-columns: minmax(0, 1fr); }
  .tdb .tdh-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tdb .tdh-g-v { font-size: 28px; }
  .tdb .tdh-alert, .tdb .tdh-unpaid { flex-wrap: wrap; }
  .tdb .tdh-table th:nth-child(4), .tdb .tdh-table td:nth-child(4) { display: none; }
}
.tdb .tdh-table th, .tdb .tdh-table td { border-left: 0; border-right: 0; border-top: 0; background: none; }

/* TUF-82 Part B fixes: the unpaid panel's button spacing, the side cards as a pair when there is no account yet, and a
   switcher that wraps cleanly on phones. */
.tdb .tdh-pay .tdb-actions { margin-top: 14px; }
.tdb .tdh-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.tdb .tdh-switch { flex-wrap: wrap; max-width: 100%; text-align: left; }
.tdb .tdh-switch span { white-space: nowrap; }
@media (max-width: 700px) { .tdb .tdh-pair { grid-template-columns: minmax(0, 1fr); } }

/* TUF-82 Part C: Accounts (tiles, Live and Past tables - cards on phones via .tdk-table - and the empty state). */
.tdb .tdc-head { align-items: flex-end; }
.tdb .tdc-head .tdk-btn-outline { white-space: nowrap; }
.tdb .tdh-unpaid { margin-top: 18px; }
.tdb .tdc-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 18px 0 8px; }
.tdb .tdc-tiles > div { padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(185,212,255,.12); background: rgba(14,29,60,.7); }
.tdb .tdc-tiles p { margin: 0; color: var(--grey); font-size: 13.5px; }
.tdb .tdc-tiles b { display: block; margin-top: 6px; font: 700 26px/1.2 Sora, sans-serif; color: #fff; }
.tdb .tdc-table th[scope=row] b { display: block; } .tdb .tdc-table th[scope=row] span { font-size: 13px; color: var(--grey); font-weight: 400; }
.tdb .tdc-table .tdb-bar { margin-top: 6px; max-width: 160px; }
.tdb .tdc-filter { display: inline-flex; border: 1px solid rgba(185,212,255,.18); border-radius: 10px; overflow: hidden; }
.tdb .tdc-filter button { padding: 8px 14px; background: none; border: 0; color: #CFE0F5; font: 600 14px "Plus Jakarta Sans", sans-serif; cursor: pointer; }
.tdb .tdc-filter button[aria-pressed="true"] { background: rgba(45,212,191,.14); color: #5EEAD4; }
.tdb .tdc-table[data-pastt="passed"] tr[data-past="ended"], .tdb .tdc-table[data-pastt="ended"] tr[data-past="passed"] { display: none; }
.tdb .tdc-none { margin: 0; }
.tdb .tdc-empty { margin-top: 18px; padding: 40px 28px; text-align: center; border-color: rgba(45,212,191,.35); }
.tdb .tdc-empty h2 { margin: 0 0 10px; font-size: 28px; }
.tdb .tdc-empty p { max-width: 600px; margin: 0 auto; color: #CFE0F5; }
.tdb .tdc-empty .tdb-actions { justify-content: center; align-items: center; gap: 18px; margin-top: 22px; }

/* TUF-82 Part D: Trade history (filters, five tiles, the table with pages, compact cards on phones, empty states). */
.tdb .tdt-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px 0 14px; }
.tdb .tdt-filters select { height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(185,212,255,.18); background: rgba(10,23,48,.5); color: #fff; font: 600 14px "Plus Jakarta Sans", sans-serif; }
.tdb .tdt-csv { margin-left: auto; }
.tdb .tdt-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.tdb .tdt-tiles > div { padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(185,212,255,.12); background: rgba(14,29,60,.7); }
.tdb .tdt-tiles p { margin: 0; color: var(--grey); font-size: 13.5px; }
.tdb .tdt-tiles b { display: block; margin-top: 6px; font: 700 26px/1.2 Sora, sans-serif; color: #fff; }
.tdb .tdt-table td, .tdb .tdt-table th { padding-right: 12px; }
.tdb .tdt-side { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12.5px; font-weight: 700; }
.tdb .tdt-side.is-buy { background: rgba(45,212,191,.14); color: #5EEAD4; } .tdb .tdt-side.is-sell { background: rgba(255,138,142,.14); color: #FF8A8E; }
.tdb .tdt-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; color: var(--grey); font-size: 14px; }
.tdb .tdt-pager p { margin: 0; }
.tdb .tdt-pager nav { display: flex; gap: 6px; }
.tdb .tdt-pager button { min-width: 38px; height: 36px; border-radius: 8px; border: 1px solid rgba(185,212,255,.18); background: none; color: #fff; font-weight: 600; cursor: pointer; }
.tdb .tdt-pager button[aria-current] { border-color: #2DD4BF; color: #5EEAD4; }
.tdb .tdt-pager button:disabled { opacity: .4; cursor: default; }
.tdb .tdt-ico { display: inline-flex; align-items: flex-end; gap: 4px; padding: 14px; border-radius: 14px; background: rgba(45,212,191,.12); border: 1px solid rgba(45,212,191,.35); margin-bottom: 14px; }
.tdb .tdt-ico i { width: 5px; border-radius: 2px; background: #2DD4BF; } .tdb .tdt-ico i:nth-child(1) { height: 10px; } .tdb .tdt-ico i:nth-child(2) { height: 18px; } .tdb .tdt-ico i:nth-child(3) { height: 13px; } .tdb .tdt-ico i:nth-child(4) { height: 24px; }
.tdb .tdt-already { margin-top: 16px; }
.tdb .tdt-already h2 { margin: 0 0 4px; font-size: 18px; }
@media (max-width: 1100px) { .tdb .tdt-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .tdb .tdt-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tdb .tdt-csv { margin-left: 0; }
  .tdb .tdt-table thead { display: none; }
  .tdb .tdt-table, .tdb .tdt-table tbody { display: block; }
  .tdb .tdt-table tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 0; border-bottom: 1px solid rgba(185,212,255,.1); }
  .tdb .tdt-table td { border: 0; padding: 0; font-size: 13.5px; }
  .tdb .tdt-table td[data-label="Closed"] { grid-column: 1; color: var(--grey); }
  .tdb .tdt-table td[data-label="Result"] { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 16px; }
  .tdb .tdt-table td[data-label="Symbol"] { grid-column: 1; }
  .tdb .tdt-table td[data-label="Side"], .tdb .tdt-table td[data-label="Volume"] { display: none; }
  .tdb .tdt-table td[data-label="Open price"], .tdb .tdt-table td[data-label="Close price"], .tdb .tdt-table td[data-label="Held for"] { grid-column: 1; color: var(--grey); font-size: 12.5px; }
  .tdb .tdt-table td[data-label="Open price"]::before { content: "Open "; } .tdb .tdt-table td[data-label="Close price"]::before { content: "Close "; } .tdb .tdt-table td[data-label="Held for"]::before { content: "Held "; }
  .tdb .tdt-pager { flex-direction: column; align-items: flex-start; }
}
.tdb .tdt-filters select { width: auto; min-width: 150px; }
.tdb .tdt-card .tdk-tablewrap { border: 0; background: none; }

/* TUF-92: Dashboard states as the mocks - Ready to trade (TUF-dashboard-ready.png). */
.tdb .tdh-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.tdb .tdh-head-row .tdh-switch, .tdb .tdh-head-row .tdh-switchwrap { margin-top: 0; }
.tdb .tdh-ready { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); margin-top: 22px; border: 1px solid rgba(45,212,191,.35); border-radius: 18px; background: linear-gradient(135deg, rgba(45,212,191,.10), rgba(14,29,60,.6) 45%); overflow: hidden; }
.tdb .tdh-ready-main { padding: 28px 30px; }
.tdb .tdh-rpill { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(45,212,191,.16); color: #5EEAD4; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.tdb .tdh-ready h2 { margin: 14px 0 10px; font-size: 28px; font-weight: 700; }
.tdb .tdh-ready-main > p { margin: 0; color: #CFE0F5; font-size: 16px; line-height: 1.6; }
.tdb .tdh-rsteps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tdb .tdh-rsteps li { padding: 12px 16px; border: 1px solid rgba(185,212,255,.14); border-radius: 12px; background: rgba(10,23,48,.45); }
.tdb .tdh-rsteps li.is-now { border-color: #2DD4BF; }
.tdb .tdh-rsteps b { display: block; font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #5EEAD4; }
.tdb .tdh-rsteps span { color: #CFE0F5; font-size: 14.5px; }
.tdb .tdh-ready-acc { padding: 28px 30px; border-left: 1px solid rgba(185,212,255,.12); }
.tdb .tdh-ready-acc dl { margin: 10px 0 0; }
.tdb .tdh-ready-acc dl > div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(185,212,255,.1); }
.tdb .tdh-ready-acc dl > div:last-child { border-bottom: 0; }
.tdb .tdh-ready-acc dt { color: var(--grey); } .tdb .tdh-ready-acc dd { margin: 0; font-weight: 700; color: #fff; }
.tdb .tdh-ghead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 6px 0 14px; }
.tdb .tdh-ghead h2 { margin: 0; font-size: 20px; }
.tdb .tdh-ghead p { margin: 0; color: var(--grey); font-size: 14px; }
.tdb .tdh-g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tdb .tdh-g3 .tdh-g-v { font-size: 30px; }
.tdb .tdh-gauges.is-ready + .tdh-recent { margin-top: 8px; }
.tdb .tdh-recent.is-ready .tdh-rhead h2 { font-size: 20px; }
.tdb .tdh-recent.is-ready .tdh-rhead a { font-weight: 700; text-decoration: underline; text-decoration-color: #2DD4BF; text-underline-offset: 4px; }
.tdb .tdh-notrades { display: flex; align-items: center; gap: 16px; margin-top: 12px; padding: 18px 26px; border: 1px dashed rgba(45,212,191,.35); border-radius: 14px; background: rgba(14,29,60,.5); }
.tdb .tdh-notrades .tdt-ico { margin: 0; padding: 10px; border-radius: 10px; }
.tdb .tdh-notrades p { margin: 0; color: var(--grey); } .tdb .tdh-notrades p b { color: #fff; }
.tdb .tdh-aside-ready { margin-top: 44px; }   /* Pass check lines up with the gauge cards, below the "Upside Gauges" heading */
@media (max-width: 1100px) { .tdb .tdh-aside-ready { margin-top: 0; } }
@media (max-width: 900px) {
  .tdb .tdh-ready { grid-template-columns: minmax(0, 1fr); }
  .tdb .tdh-ready-acc { border-left: 0; border-top: 1px solid rgba(185,212,255,.12); }
  .tdb .tdh-g3 { grid-template-columns: minmax(0, 1fr); }
  .tdb .tdh-ghead { flex-direction: column; gap: 4px; }
}
@media (max-width: 600px) { .tdb .tdh-rsteps { grid-template-columns: minmax(0, 1fr); } .tdb .tdh-ready-main, .tdb .tdh-ready-acc { padding: 22px 20px; } }
.tdb .tdh-g3 .tdh-g { padding: 20px 20px; }
.tdb .tdh-g3 .tdh-g-foot { font-size: 13px; } .tdb .tdh-g3 .tdh-g-foot span { white-space: nowrap; }
/* TUF-88: back from a failed or cancelled card payment */
.tdb .tdb-payfail { margin: 12px 0 0; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(255,138,142,.45); background: rgba(255,138,142,.08); color: #fff; font-weight: 600; }

/* TUF-98: space between the empty Dashboard's paragraph and its button; the Rulebook's leverage lines */
.tdb .tdh-start .tdb-actions { margin-top: 22px; }
.tdb .tdr td b { white-space: pre-line; }

/* ---- TUF-136: crypto checkout (Match2Pay) - "Pay with" on Buy a challenge, and the crypto payment states ---- */
.tdb .tdb-paywith { margin: 16px 0 14px; }
.tdb .tdb-paywith-title { margin: 0 0 10px; font-weight: 700; color: #fff; }
.tdb .tdb-pw-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tdb .tdb-pw { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 12px 36px 12px 14px; border: 1px solid rgba(185,212,255,.22); border-radius: 12px; background: transparent; font: inherit; text-align: left; color: #fff; cursor: pointer; }
.tdb .tdb-pw small { color: var(--muted); font-size: 12.5px; }
.tdb .tdb-pw i { position: absolute; top: 12px; right: 12px; width: 18px; height: 18px; border: 1.5px solid rgba(185,212,255,.45); border-radius: 50%; }
.tdb .tdb-pw[aria-checked="true"] { border-color: #2DD4BF; background: rgba(45,212,191,.08); }
.tdb .tdb-pw[aria-checked="true"] i { border-color: #2DD4BF; background: #2DD4BF radial-gradient(circle, #0A1730 0 3px, transparent 3.5px); }
.tdb .tdb-pw:focus-visible, .tdb .tdb-coins button:focus-visible { outline: 2px solid #7FB8FF; outline-offset: 2px; }
.tdb .tdb-coins { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tdb .tdb-coins[hidden] { display: none; }
.tdb .tdb-coins button { padding: 7px 12px; border: 1px solid rgba(185,212,255,.22); border-radius: 8px; background: transparent; font: 600 13px/1 "Plus Jakarta Sans", sans-serif; color: #fff; cursor: pointer; }
.tdb .tdb-coins button small { font-weight: 500; color: var(--muted); }
.tdb .tdb-coins button[aria-checked="true"] { border-color: #2DD4BF; color: #5EEAD4; background: rgba(45,212,191,.08); }
.tdb .tdb-crypto-note { margin: 10px 0 0; font-size: 12.5px; line-height: 1.5; }
.tdb .tdb-cr-pill { display: inline-block; margin-bottom: 8px; padding: 4px 10px; border-radius: 999px; font: 700 12px/1.2 "Plus Jakarta Sans", sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.tdb .tdb-cr-pill.is-warn { color: #F5C46B; background: rgba(245,165,36,.14); }
.tdb .tdb-cr-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; }
.tdb .tdb-cr-steps li { display: flex; gap: 12px; align-items: flex-start; }
.tdb .tdb-cr-steps li i { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid rgba(185,212,255,.35); border-radius: 50%; font-style: normal; font-weight: 800; font-size: 12px; color: #0A1730; }
.tdb .tdb-cr-steps li.is-done i { border-color: #2DD4BF; background: #2DD4BF; }
.tdb .tdb-cr-steps li.is-now i { border-color: #2DD4BF; background: radial-gradient(circle, #2DD4BF 0 4px, transparent 4.5px); box-shadow: 0 0 0 4px rgba(45,212,191,.15); }
.tdb .tdb-cr-steps b { display: block; color: #fff; }
.tdb .tdb-cr-steps small { color: var(--muted); }
.tdb .tdb-cr-order { margin: 0; padding: 14px 16px; border: 1px solid rgba(185,212,255,.14); border-radius: 12px; display: grid; gap: 8px; }
.tdb .tdb-cr-order > div { display: flex; justify-content: space-between; gap: 12px; }
.tdb .tdb-cr-order dt { color: var(--muted); } .tdb .tdb-cr-order dd { margin: 0; font-weight: 600; color: #fff; text-align: right; }
.tdb .tdb-cr-foot { margin-top: 10px; font-size: 12.5px; }
.tdb .tdb-cr-bar { height: 6px; border-radius: 3px; background: rgba(185,212,255,.14); overflow: hidden; }
.tdb .tdb-cr-bar span { display: block; height: 100%; background: #F5A524; }
.tdb .tdb-cr-barl { display: flex; justify-content: space-between; margin: 6px 0 14px; font-size: 13px; color: var(--muted); }

/* TUF-163: the account view, finance style (TUF-dashboard-v6-5px.png). Flat navy panels with 5px corners and 1px dividers
   (no cards inside cards); badges, pills and trading-day squares 3px; section headings outside the panels. Compact type:
   9px labels, 17px figures, 22px balance, 11px rows; phones one notch up. Tabular figures throughout. */
.tdb .tdv { --vp: #0E1F3D; --vline: rgba(255,255,255,.07); --vgrey: #8F9BB0; --vred: #FF8A8E; --vamber: #F5A524;
  display: flex; flex-direction: column; margin-top: 18px; font-variant-numeric: tabular-nums; font-size: 11px; line-height: 1.5; }
.tdb .tdv-panel { min-width: 0; background: var(--vp); border: 1px solid var(--vline); border-radius: 5px; }
.tdb .tdv h2, .tdb .tdv h3 { letter-spacing: 0; }
.tdb .tdv-k, .tdb .tdv-sechead h3, .tdb .tdv-table th { margin: 0; font: 700 9px/1.4 "Plus Jakarta Sans", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--vgrey); }
.tdb .tdv-fig { margin: 8px 0 0; font: 700 17px/1.2 Sora, sans-serif; letter-spacing: -.01em; color: #fff; }
.tdb .tdv-sub { margin: 3px 0 0; font-size: 11px; color: var(--vgrey); }
.tdb .tdv-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 3px; font: 800 9px/1.3 "Plus Jakarta Sans", sans-serif; letter-spacing: .08em; white-space: nowrap; vertical-align: middle; }
.tdb .tdv-badge.is-live, .tdb .tdv-badge.is-ok { background: rgba(45,212,191,.14); color: #5EEAD4; }
.tdb .tdv-badge.is-muted { background: rgba(255,255,255,.07); color: #CFD6E0; }
.tdb .tdv-badge.is-warn { background: rgba(245,165,36,.16); color: var(--amber-text); }
.tdb .tdv-badge.is-risk { background: rgba(255,138,142,.14); color: var(--vred); }
.tdb .tdv-side { display: inline-block; padding: 2px 6px; border-radius: 3px; font: 800 9px/1.3 "Plus Jakarta Sans", sans-serif; letter-spacing: .06em; }
.tdb .tdv-side.is-buy { background: rgba(45,212,191,.14); color: #5EEAD4; }
.tdb .tdv-side.is-sell { background: rgba(255,138,142,.14); color: var(--vred); }
.tdb .tdv .is-up { color: #5EEAD4 !important; } .tdb .tdv .is-down { color: var(--vred) !important; }
/* header + tabs */
.tdb .tdv-head { display: flex; align-items: center; gap: 18px; padding: 14px 18px; }
.tdb .tdv-tag { flex: none; display: flex; flex-direction: column; gap: 1px; padding: 8px 14px; border-radius: 5px; border: 1px solid rgba(45,212,191,.45); }
.tdb .tdv-tag span { font-size: 10px; color: #CFE0F5; }
.tdb .tdv-tag b { font: 700 17px/1.2 Sora, sans-serif; color: #fff; }
.tdb .tdv-headmain { flex: 1; min-width: 0; }
.tdb .tdv-headmain h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.tdb .tdv-headmain p { margin: 3px 0 0; color: var(--vgrey); font-size: 11px; }
.tdb .tdv-trade { flex: none; min-height: 36px; padding: 0 18px; font-size: 13px; border-radius: 5px; }
.tdb .tdv-tabs { display: flex; gap: 24px; margin: 14px 0 0; border-bottom: 1px solid var(--vline); }
.tdb .tdv-tabs a { padding: 8px 0 9px; margin-bottom: -1px; color: var(--vgrey); font-size: 12px; font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; }
.tdb .tdv-tabs a:hover { color: #fff; }
.tdb .tdv-tabs a[aria-current] { color: #fff; border-bottom-color: #2DD4BF; }
/* balance + equity: one panel, split */
.tdb .tdv-be { display: grid; grid-template-columns: minmax(0, 30fr) minmax(0, 70fr); margin-top: 16px; }
.tdb .tdv-bal, .tdb .tdv-eq { padding: 18px; }
.tdb .tdv-eq { border-left: 1px solid var(--vline); display: flex; flex-direction: column; }
.tdb .tdv-bignum { margin: 6px 0 10px; font: 700 22px/1.2 Sora, sans-serif; letter-spacing: -.01em; color: #fff; }
.tdb .tdv-bal dl { margin: 0; }
.tdb .tdv-bal dl div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--vline); }
.tdb .tdv-bal dt { color: #CFD6E0; } .tdb .tdv-bal dd { margin: 0; font-weight: 700; color: #fff; }
.tdb .tdv-eqhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 14px; }
.tdb .tdv-eqmeta { margin: 0; color: var(--vgrey); }
.tdb .tdv-range button { padding: 0 0 0 6px; border: 0; background: none; color: inherit; font: 700 11px/1 "Plus Jakarta Sans", sans-serif; opacity: .5; cursor: not-allowed; }
.tdb .tdv-eqempty { flex: 1; display: grid; place-items: center; min-height: 190px; margin-top: 12px; padding: 18px; border: 1px dashed rgba(255,255,255,.12); border-radius: 5px; text-align: center; }
.tdb .tdv-eqempty p { margin: 0; } .tdb .tdv-eqempty b { display: block; font-size: 13px; color: #fff; } .tdb .tdv-eqempty span { display: block; margin-top: 3px; color: var(--vgrey); }
/* section headings outside the panels */
.tdb .tdv-shead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 22px 0 8px; }
.tdb .tdv-shead h2 { font-size: 14px; font-weight: 700; }
.tdb .tdv-shead p { margin: 0; color: var(--vgrey); font-size: 11px; text-align: right; }
.tdb .tdv-shead a { color: #5EEAD4; font-size: 11px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.tdb .tdv-shead a:hover { text-decoration: underline; }
/* objectives / rules / stats: one panel split into sections by 1px dividers */
.tdb .tdv-split { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); }
.tdb .tdv-sec { min-width: 0; padding: 16px 18px; }
.tdb .tdv-sec + .tdv-sec { border-left: 1px solid var(--vline); }
.tdb .tdv-sechead { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 20px; }
.tdb .tdv-sechead h3 { display: flex; align-items: center; gap: 5px; }
.tdb .tdv-sechead > span:not(.tdv-badge) { color: var(--vgrey); font-size: 11px; white-space: nowrap; }
.tdb .tdv-pt { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.tdb .tdv-pt .tdv-fig { margin-top: 0; }
.tdb .tdv-gauge { position: relative; flex: none; width: 96px; }
.tdb .tdv-gauge svg { display: block; width: 100%; overflow: visible; }
.tdb .tdv-gtrack, .tdb .tdv-gfill { fill: none; stroke-width: 10; stroke-linecap: round; }
.tdb .tdv-gtrack { stroke: rgba(255,255,255,.08); } .tdb .tdv-gfill { stroke: url(#tdvg); }
.tdb .tdv-gauge p { position: absolute; left: 0; right: 0; bottom: -2px; margin: 0; text-align: center; }
.tdb .tdv-gauge b { display: block; font: 700 15px/1.1 Sora, sans-serif; color: #fff; }
.tdb .tdv-gauge span { font-size: 8px; letter-spacing: .08em; color: var(--vgrey); }
.tdb .tdv-lbar { height: 5px; margin-top: 12px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.tdb .tdv-lbar span { display: block; height: 100%; border-radius: inherit; background: #2DD4BF; }
.tdb .tdv-lbar.is-warn span { background: var(--vamber); } .tdb .tdv-lbar.is-risk span { background: var(--vred); }
.tdb .tdv-lfoot { display: flex; justify-content: space-between; margin: 6px 0 0; color: var(--vgrey); }
.tdb .tdv-lfoot b { font-size: 10px; letter-spacing: .06em; }
.tdb .tdv-lfoot .is-ok { color: #5EEAD4; } .tdb .tdv-lfoot .is-warn { color: var(--vamber); } .tdb .tdv-lfoot .is-risk { color: var(--vred); }
.tdb .tdv-days { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.tdb .tdv-days li { position: relative; width: 20px; height: 20px; border-radius: 3px; border: 1px dashed rgba(255,255,255,.28); }
.tdb .tdv-days li.is-up { border: 0; background: #2DD4BF; }
.tdb .tdv-days li.is-up::after { content: ""; position: absolute; left: 7px; top: 4px; width: 4px; height: 8px; border: solid #0A1730; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.tdb .tdv-days li.is-down { border: 0; background: var(--vred); }
.tdb .tdv-days li.is-down::before, .tdb .tdv-days li.is-down::after { content: ""; position: absolute; left: 9px; top: 4px; width: 2px; height: 12px; border-radius: 1px; background: #0A1730; transform: rotate(45deg); }
.tdb .tdv-days li.is-down::after { transform: rotate(-45deg); }
.tdb .tdv-days li.is-done { border: 1px solid rgba(185,212,255,.5); background: rgba(185,212,255,.14); }
/* tables */
.tdb .tdv-tpanel { overflow: hidden; }
.tdb .tdv-tscroll { overflow-x: auto; }
.tdb .tdv-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.tdb .tdv-table th { padding: 10px 18px; text-align: left; border-bottom: 1px solid var(--vline); white-space: nowrap; }
.tdb .tdv-table td { padding: 9px 18px; color: #E4E9F1; border-bottom: 1px solid var(--vline); white-space: nowrap; }
.tdb .tdv-table tbody tr:last-child td, .tdb .tdv-table tbody tr:last-child th { border-bottom: 0; }
.tdb .tdv-table td b { color: #fff; }
.tdb .tdv-table td.is-up b, .tdb .tdv-table td.is-down b { color: inherit; }
.tdb .tdv .tdv-table, .tdb .tdv .tdv-table th, .tdb .tdv .tdv-table td { border-left: 0; border-right: 0; }
.tdb .tdv .tdv-table { border: 0; margin: 0; }
.tdb .tdv .tdv-table th, .tdb .tdv .tdv-table td { background: none; }
.tdb .tdv-table .tdb-num { text-align: right; }
.tdb .tdv-none { margin: 0; padding: 22px 18px; color: var(--vgrey); text-align: center; }
/* History tab */
.tdb .tdv-open { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 16px; padding: 12px 18px; }
.tdb .tdv-open h2 { font-size: 13px; font-weight: 700; }
.tdb .tdv-open ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tdb .tdv-open li { display: flex; align-items: center; gap: 8px; padding: 5px 9px; border-radius: 3px; border: 1px solid var(--vline); background: rgba(255,255,255,.02); }
.tdb .tdv-open li span { color: #fff; font-weight: 700; }
.tdb .tdv-open p { margin: 0; color: var(--vgrey); }
.tdb .tdv-stats { margin-top: 12px; }
.tdb .tdv-stats .tdv-sec { padding: 14px 18px; }
.tdb .tdv-htable { margin-top: 0; }
.tdb .tdv-mlist { display: none; }
.tdb .tdv-htable .tdv-day { vertical-align: top; padding-top: 11px; text-align: left; border-bottom: 1px solid var(--vline); letter-spacing: 0; text-transform: none; font: 400 11px/1.4 "Plus Jakarta Sans", sans-serif; color: var(--vgrey); }
.tdb .tdv-htable .tdv-day b { display: block; color: #fff; font-size: 12px; }
.tdb .tdv-htable tr.is-first td { border-top: 1px solid var(--vline); }
.tdb .tdv-pc { display: inline-block; margin-left: 6px; padding: 1px 5px; border-radius: 3px; border: 1px solid currentColor; font-size: 9.5px; font-weight: 600; }
.tdb .tdv-more { display: block; width: 100%; padding: 12px; border: 0; border-top: 1px solid var(--vline); background: none; color: #CFD6E0; font: 600 11px "Plus Jakarta Sans", sans-serif; cursor: pointer; }
.tdb .tdv-more:hover { color: #fff; }
.tdb .tdv [data-hist] > .tdv-panel:last-child { margin-top: 12px; }
/* TUF-165: History filters - one compact row above the closed trades; a single "Filter" button on phones */
.tdb .tdv-filters { margin-top: 12px; }
.tdb .tdv-fbtn { display: none; }
.tdb .tdv-frow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 10px; background: var(--vp); border: 1px solid var(--vline); border-radius: 5px; }
.tdb .tdv-seg { display: inline-flex; border: 1px solid var(--vline); border-radius: 5px; overflow: hidden; }
.tdb .tdv-seg button { padding: 6px 11px; border: 0; background: none; color: var(--vgrey); font: 700 11px/1 "Plus Jakarta Sans", sans-serif; cursor: pointer; }
.tdb .tdv-seg button + button { border-left: 1px solid var(--vline); }
.tdb .tdv-seg button[aria-pressed=true] { background: rgba(45,212,191,.14); color: #5EEAD4; }
.tdb .tdv-frow select { width: auto; height: 27px; padding: 0 26px 0 9px; border: 1px solid var(--vline); border-radius: 5px; background: #0A1730; color: #fff; font: 600 11px "Plus Jakarta Sans", sans-serif; }
.tdb .tdv-fcount { margin-left: auto; color: var(--vgrey); font-size: 11px; }
.tdb .tdv-csv { height: 27px; padding: 0 12px; border: 1px solid rgba(45,212,191,.5); border-radius: 5px; background: none; color: #5EEAD4; font: 700 11px "Plus Jakarta Sans", sans-serif; cursor: pointer; }
.tdb .tdv-csv:hover { background: rgba(45,212,191,.1); } .tdb .tdv-csv[disabled] { opacity: .45; cursor: default; }
.tdb .tdv-filters + .tdv-panel { margin-top: 8px !important; }
@media (max-width: 900px) {
  .tdb .tdv-fbtn { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 14px; border: 1px solid var(--vline); border-radius: 5px; background: var(--vp); color: #fff; font: 700 12px "Plus Jakarta Sans", sans-serif; cursor: pointer; }
  .tdb .tdv-fbtn span { color: #5EEAD4; }
  .tdb .tdv-frow { display: none; margin-top: 8px; }
  .tdb .tdv-filters.is-open .tdv-frow { display: flex; }
  .tdb .tdv-fcount { margin-left: 0; flex: 1; }
}
/* the ⓘ tooltip: hover or keyboard focus shows one line; a tap opens it on phones */
.tdb .tdv-tip { position: relative; display: inline-flex; }
.tdb .tdv-i { width: 13px; height: 13px; padding: 0; border-radius: 50%; border: 1px solid rgba(207,214,224,.55); background: none; color: #CFD6E0; font: 700 8px/1 Georgia, serif; font-style: italic; letter-spacing: 0; text-transform: none; cursor: help; }
.tdb .tdv-i:hover, .tdb .tdv-i:focus-visible { border-color: #5EEAD4; color: #5EEAD4; }
.tdb .tdv-tiptext { position: absolute; left: 50%; bottom: calc(100% + 7px); z-index: 30; width: max-content; max-width: 240px; padding: 8px 10px; border-radius: 5px; border: 1px solid var(--line); background: var(--elev); box-shadow: 0 14px 30px -14px rgba(0,0,0,.7); color: #fff; font: 500 11.5px/1.45 "Plus Jakarta Sans", sans-serif; letter-spacing: 0; text-transform: none; white-space: normal; transform: translateX(-50%); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s; }
.tdb .tdv-tip:hover .tdv-tiptext, .tdb .tdv-tip:focus-within .tdv-tiptext, .tdb .tdv-tip.is-open .tdv-tiptext { opacity: 1; visibility: visible; }
@media (max-width: 1180px) { .tdb .tdv-split:not(.tdv-stats) { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tdb .tdv-split:not(.tdv-stats) .tdv-sec:nth-child(odd) { border-left: 0; } .tdb .tdv-split:not(.tdv-stats) .tdv-sec:nth-child(n+3) { border-top: 1px solid var(--vline); }
  .tdb .tdv-rules { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); } .tdb .tdv-rules .tdv-sec { border-top: 0 !important; } .tdb .tdv-rules .tdv-sec + .tdv-sec { border-left: 1px solid var(--vline); }
  .tdb .tdv-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tdb .tdv-stats .tdv-sec:nth-child(4) { border-left: 0; } .tdb .tdv-stats .tdv-sec:nth-child(n+4) { border-top: 1px solid var(--vline); } }
/* phones: one column, sections stacked with dividers, type one notch up (figures 18px, body 12px) */
@media (max-width: 900px) {
  .tdb .tdv { font-size: 12px; }
  .tdb .tdv-head { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .tdb .tdv-tag { align-self: flex-start; }
  .tdb .tdv-headmain p, .tdb .tdv-sub, .tdb .tdv-shead p, .tdb .tdv-shead a, .tdb .tdv-table, .tdb .tdv-eqmeta { font-size: 12px; }
  .tdb .tdv-trade { width: 100%; min-height: 44px; }
  .tdb .tdv-fig { font-size: 18px; }
  .tdb .tdv-be, .tdb .tdv-split, .tdb .tdv-rules, .tdb .tdv-stats { grid-template-columns: minmax(0, 1fr) !important; }
  .tdb .tdv-eq { border-left: 0; border-top: 1px solid var(--vline); }
  .tdb .tdv-split .tdv-sec { border-left: 0 !important; }
  .tdb .tdv-split .tdv-sec + .tdv-sec { border-top: 1px solid var(--vline) !important; }
  .tdb .tdv-sec, .tdb .tdv-bal, .tdb .tdv-eq { padding: 14px; }
  .tdb .tdv-eqempty { min-height: 150px; }
  .tdb .tdv-hwide { display: none; }
  .tdb .tdv-mlist { display: block; margin: 0; padding: 0; list-style: none; }
  .tdb .tdv-mlist li { border-bottom: 1px solid var(--vline); }
  .tdb .tdv-mday { display: flex; justify-content: space-between; padding: 10px 14px 6px; color: var(--vgrey); }
  .tdb .tdv-mday b { color: #fff; }
  .tdb .tdv-mlist summary { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; list-style: none; }
  .tdb .tdv-mlist summary::-webkit-details-marker { display: none; }
  .tdb .tdv-mlist summary span { color: #E4E9F1; }
  .tdb .tdv-mlist dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; margin: 0; padding: 0 14px 12px; }
  .tdb .tdv-mlist dl div { display: flex; justify-content: space-between; } .tdb .tdv-mlist dt { color: var(--vgrey); } .tdb .tdv-mlist dd { margin: 0; color: #fff; }
  .tdb .tdv-open { padding: 12px 14px; }
  .tdb .tdv-tiptext { left: 0; transform: none; max-width: 220px; }
}
@media (prefers-reduced-motion: reduce) { .tdb .tdv-tiptext { transition: none; } }

/* TUF-166: phones - the top bar (logo, Trading platform, menu) replaces the bottom tab bar; the menu opens a full-screen
   drawer (TUF-dashboard-mobile-set.png). Desktop: the sidebar as before; the menu button and drawer never show. */
.tdk-burger, .tdk-drawer { display: none; }
@media (max-width: 900px) {
  .tdk { padding-bottom: 0; }
  .tdk-top { position: sticky; top: 0; z-index: 41; flex-wrap: nowrap; background: #0A1730; border-bottom: 1px solid rgba(255,255,255,.07); }
  .tdk-top-left { display: none; }
  .tdk-panel { padding-bottom: 96px; }   /* nothing sits under the chat bubble */
  .tdk-burger { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 38px; padding: 0; border: 1px solid rgba(255,255,255,.14); border-radius: 5px; background: none; color: #fff; cursor: pointer; }
  .tdk-bico { position: relative; width: 18px; height: 14px; }
  .tdk-bico i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 1px; background: currentColor; transition: transform .2s, opacity .2s; }
  .tdk-bico i:nth-child(1) { top: 0; } .tdk-bico i:nth-child(2) { top: 6px; } .tdk-bico i:nth-child(3) { top: 12px; }
  .tdk-burger[aria-expanded=true] .tdk-bico i:nth-child(1) { top: 6px; transform: rotate(45deg); }
  .tdk-burger[aria-expanded=true] .tdk-bico i:nth-child(2) { opacity: 0; }
  .tdk-burger[aria-expanded=true] .tdk-bico i:nth-child(3) { top: 6px; transform: rotate(-45deg); }
  .tdk-drawer:not([hidden]) { display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 40; padding-top: 59px; background: #0A1730; overflow-y: auto; }
  .tdk-dnav { display: flex; flex-direction: column; }
  .tdk-dnav a { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid rgba(255,255,255,.07); border-left: 3px solid transparent; color: #fff; font: 600 16px/1.2 "Plus Jakarta Sans", sans-serif; text-decoration: none; }
  .tdk-dnav a span { color: #8F9BB0; font-size: 18px; }
  .tdk-dnav a[aria-current] { border-left-color: #2DD4BF; background: rgba(45,212,191,.08); color: #5EEAD4; }
  .tdk-dfoot { margin-top: auto; padding: 18px 20px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.07); }
  .tdk-duser { display: flex; align-items: center; gap: 12px; }
  .tdk-duser i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 5px; background: #2DD4BF; color: #0A1730; font: 800 15px/1 Sora, sans-serif; font-style: normal; flex: none; }
  .tdk-duser span { min-width: 0; } .tdk-duser b { display: block; color: #fff; font-size: 14px; } .tdk-duser small { display: block; color: #8F9BB0; font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
  .tdk-dbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
  .tdk-dbtns a, .tdk-dbtns button { display: flex; align-items: center; justify-content: center; height: 42px; border: 1px solid rgba(255,255,255,.18); border-radius: 5px; background: none; color: #fff; font: 700 14px "Plus Jakarta Sans", sans-serif; text-decoration: none; cursor: pointer; }
  html.tdk-noscroll, html.tdk-noscroll body { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .tdk-bico i { transition: none; } }

/* TUF-166: Accounts, Payouts and Rulebook in the TUF-163 finance style (flat panels, 1px dividers, 5px corners, 3px chips) */
.tdb .tdv-phead { margin-bottom: 0; }
.tdb .tdv-phead h1 { font-size: 22px; }
.tdb .tdv-phead .tdb-muted { margin: 4px 0 0; font-size: 12px; }
.tdb .tdv-where { margin: 4px 0 0; color: #5EEAD4; font-size: 12px; }
.tdb .tdv-page { margin-top: 16px; }
.tdb .tdv-badge.is-solid { background: #2DD4BF; color: #0A1730; }
.tdb .tdv-grid2 .tdv-sec { padding: 14px 18px; }
.tdb .tdv-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tdb .tdv-chips button { padding: 5px 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 3px; background: none; color: #CFD6E0; font: 700 11px/1.2 "Plus Jakarta Sans", sans-serif; cursor: pointer; font-variant-numeric: tabular-nums; }
.tdb .tdv-chips button[aria-pressed=true], .tdb .tdv-chips button[aria-checked=true] { border-color: #2DD4BF; background: rgba(45,212,191,.12); color: #5EEAD4; }
.tdb .tdv-alist { margin: 10px 0 0; padding: 0; list-style: none; }
.tdb .tdv-arow { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 2.2fr) auto; align-items: center; gap: 8px 18px; padding: 14px 18px; }
.tdb .tdv-arow + .tdv-arow { border-top: 1px solid var(--vline); }
.tdb .tdv-aname p { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.tdb .tdv-aname b { color: #fff; font: 700 13px/1.3 Sora, sans-serif; }
.tdb .tdv-aname > span { display: block; margin-top: 2px; color: var(--vgrey); }
.tdb .tdv-astats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.tdb .tdv-astats dt { font: 700 9px/1.4 "Plus Jakarta Sans", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--vgrey); }
.tdb .tdv-astats dd { margin: 2px 0 0; color: #fff; font-weight: 700; font-size: 12px; }
.tdb .tdv-openlink { display: inline-flex; align-items: center; gap: 4px; justify-self: end; color: #5EEAD4; font-weight: 700; text-decoration: none; white-space: nowrap; }
.tdb .tdv-openlink span { display: inline; margin: 0; }
.tdb .tdv-openlink:hover { text-decoration: underline; }
.tdb .tdv-abar { grid-column: 1 / -1; height: 3px; margin-top: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.tdb .tdv-abar span { display: block; height: 100%; background: #2DD4BF; }
.tdb .tdv-alist .tdv-none { list-style: none; }
.tdb .tdv-more-link, .tdb .tdv-link { display: inline-block; margin-top: 12px; color: #5EEAD4; font-weight: 700; text-decoration: none; }
.tdb .tdv-more-link:hover, .tdb .tdv-link:hover { text-decoration: underline; }
.tdb .tdv-emptyp { padding: 24px; } .tdb .tdv-emptyp h2 { font-size: 16px; } .tdb .tdv-emptyp p { margin: 6px 0 0; color: var(--vgrey); max-width: 560px; }
.tdb .tdv-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 14px; }
.tdb .tdv-acts .tdb-btn { min-height: 38px; font-size: 13px; }
.tdb .tdv-acts .tdv-link { margin-top: 0; }
.tdb .tdv-linkbtn { border: 0; background: none; padding: 0; color: #5EEAD4; font: 700 11px "Plus Jakarta Sans", sans-serif; cursor: pointer; }
.tdb .tdv-linkbtn:hover { text-decoration: underline; }
/* Payouts: the checklist */
.tdb .tdv-steps { margin: 0; padding: 0; list-style: none; }
.tdb .tdv-steps li { display: flex; gap: 12px; padding: 12px 18px; }
.tdb .tdv-steps li + li { border-top: 1px solid var(--vline); }
.tdb .tdv-steps li.is-now { background: rgba(245,165,36,.06); }
.tdb .tdv-steps b { color: #fff; font-size: 12px; } .tdb .tdv-steps p { margin: 2px 0 0; color: var(--vgrey); }
.tdb .tdv-stepm { position: relative; flex: none; display: grid; place-items: center; width: 18px; height: 18px; margin-top: 1px; border-radius: 3px; border: 1px solid rgba(255,255,255,.3); color: #CFD6E0; font: 800 10px/1 "Plus Jakarta Sans", sans-serif; }
.tdb .tdv-steps li.is-done .tdv-stepm { border: 0; background: #2DD4BF; }
.tdb .tdv-steps li.is-done .tdv-stepm::after { content: ""; width: 4px; height: 8px; margin-top: -2px; border: solid #0A1730; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.tdb .tdv-steps li.is-now .tdv-stepm { border: 0; background: var(--vamber); color: #0A1730; }
.tdb .tdv-how { margin-top: 16px; }
.tdb .tdv-how summary { display: flex; justify-content: space-between; align-items: center; padding: 13px 18px; color: #fff; font-weight: 700; font-size: 12px; cursor: pointer; list-style: none; }
.tdb .tdv-how summary::-webkit-details-marker { display: none; }
.tdb .tdv-how summary span::before { content: "+"; color: var(--vgrey); font-size: 15px; }
.tdb .tdv-how[open] summary span::before { content: "−"; }
.tdb .tdv-how .tdk-howlist, .tdb .tdv-how > p { margin: 0; padding: 0 18px 14px 36px; color: #CFD6E0; }
.tdb .tdv-how > p { padding-left: 18px; }
/* Rulebook: the toggle, square size chips, one flat list */
.tdb .tdv-seg2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); max-width: 420px; border: 1px solid rgba(255,255,255,.12); border-radius: 5px; overflow: hidden; }
.tdb .tdv-seg2 button { padding: 9px 12px; border: 0; background: none; color: #CFD6E0; font: 700 13px/1 "Plus Jakarta Sans", sans-serif; cursor: pointer; }
.tdb .tdv-seg2 button + button { border-left: 1px solid rgba(255,255,255,.12); }
.tdb .tdv-seg2 button[aria-checked=true] { background: #2DD4BF; color: #0A1730; }
.tdb .tdv-sizes { margin-top: 10px; }
.tdb .tdv-rlist { margin-top: 14px; }
.tdb .tdv-rgroup { margin: 0; padding: 9px 18px; font: 800 9px/1.3 "Plus Jakarta Sans", sans-serif; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid var(--vline); background: rgba(255,255,255,.02); }
.tdb .tdv-rgroup + .tdv-rrow { border-top: 0; }
.tdb .tdv-rgroup:not(:first-child) { border-top: 1px solid var(--vline); }
.tdb .tdv-rgroup.is-pass, .tdb .tdv-rgroup.is-funded { color: #5EEAD4; } .tdb .tdv-rgroup.is-ends { color: var(--vred); }
.tdb .tdv-rrow { display: flex; justify-content: space-between; gap: 16px; padding: 11px 18px; }
.tdb .tdv-rrow + .tdv-rrow { border-top: 1px solid var(--vline); }
.tdb .tdv-rrow b { color: #fff; font-size: 12px; } .tdb .tdv-rrow span { display: block; color: var(--vgrey); }
.tdb .tdv-rval { text-align: right; } .tdb .tdv-rval b { font-weight: 700; }
@media (max-width: 1180px) { .tdb .tdv-arow { grid-template-columns: minmax(0, 1fr) auto; } .tdb .tdv-astats { grid-column: 1 / -1; grid-row: 2; } }
@media (max-width: 900px) {
  .tdb .tdv-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .tdb .tdv-grid2 .tdv-sec { border-top: 0 !important; border-left: 0 !important; }
  .tdb .tdv-grid2 .tdv-sec:nth-child(even) { border-left: 1px solid var(--vline) !important; }
  .tdb .tdv-grid2 .tdv-sec:nth-child(n+3) { border-top: 1px solid var(--vline) !important; }
  .tdb .tdv-arow { padding: 14px; } .tdb .tdv-steps li, .tdb .tdv-rrow { padding-left: 14px; padding-right: 14px; } .tdb .tdv-rgroup { padding-left: 14px; }
  .tdb .tdv-astats dd, .tdb .tdv-rrow b, .tdb .tdv-steps b { font-size: 13px; }
  .tdb .tdv-astats dt { letter-spacing: .06em; }
  .tdb .tdv-seg2 { max-width: none; }
}

/* TUF-168: FundedNext-style account view (TUF-dashboard-fn-layout / -calendar / -history.png) - same navy panels, 5px corners,
   3px badges, compact type and tabular figures as TUF-163. */
.tdb .tdv-fn { margin-top: 4px; }
.tdb .tdv-crumbs { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; color: var(--vgrey); font-size: 12px; }
.tdb .tdv-crumbs a { color: #fff; font-weight: 600; text-decoration: none; } .tdb .tdv-crumbs a:hover { color: #5EEAD4; }
.tdb .tdv-head2 { background: linear-gradient(135deg, #13294F 0%, #0E1F3D 60%); }
.tdb .tdv-headtop { display: flex; align-items: stretch; gap: 22px; padding: 20px 24px; }
.tdb .tdv-tag2 { flex: none; display: flex; flex-direction: column; border: 1px solid rgba(45,212,191,.5); border-radius: 5px; min-width: 150px; }
.tdb .tdv-tag2 > div { padding: 10px 14px; } .tdb .tdv-tag2 span { display: block; font-size: 11px; color: #CFE0F5; } .tdb .tdv-tag2 b { display: block; margin-top: 2px; font: 700 22px/1.15 Sora, sans-serif; color: #fff; }
.tdb .tdv-tag2 p { margin: auto 0 0; padding: 6px 14px; border-top: 1px solid rgba(45,212,191,.35); color: #5EEAD4; font: 800 9px/1.3 "Plus Jakarta Sans", sans-serif; letter-spacing: .16em; }
.tdb .tdv-headmain { flex: 1; min-width: 0; padding-top: 2px; }
.tdb .tdv-acctwrap { position: relative; display: inline-flex; align-items: center; gap: 10px; }
.tdb h2.tdv-acct.is-static { cursor: default; }
/* TUF-191: the switcher - a chevron button beside the account number, and its menu */
.tdb .tdv-accbtn { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid rgba(255,255,255,.16); border-radius: 5px; background: rgba(255,255,255,.03); color: #CFD6E0; cursor: pointer; box-shadow: none; }
.tdb .tdv-accbtn svg { transition: transform .15s ease; }
.tdb .tdv-accbtn:hover, .tdb .tdv-acctwrap.is-open .tdv-accbtn, .tdb .tdv-acct:hover + .tdv-accbtn { border-color: #2DD4BF; color: #2DD4BF; }
.tdb .tdv-acctwrap.is-open .tdv-accbtn svg { transform: rotate(180deg); }
.tdb .tdv-accbtn:focus-visible, .tdb .tdv-acct:focus-visible { outline: 2px solid #5EEAD4; outline-offset: 2px; }
.tdb .tdv-acctmenu { position: absolute; left: 0; top: calc(100% + 8px); z-index: 40; width: 300px; padding: 6px 0 0; background: #0F1E3D; border: 1px solid rgba(255,255,255,.1); border-radius: 5px; box-shadow: 0 24px 48px -16px rgba(0,0,0,.65); }
.tdb .tdv-acctmenu[hidden] { display: none; }
.tdb .tdv-amhead { margin: 0; padding: 8px 16px 6px; color: #8F9BB0; font: 700 11px/1 "Plus Jakarta Sans", sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.tdb .tdv-acctmenu a[role=menuitem] { display: flex; align-items: center; gap: 6px; padding: 11px 16px; border-left: 3px solid transparent; color: #fff; text-decoration: none; font-size: 13px; }
.tdb .tdv-acctmenu .tdv-amsub { flex: 1; min-width: 0; color: #8F9BB0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tdb .tdv-acctmenu a[role=menuitem] .tdv-badge { flex: none; }
.tdb .tdv-acctmenu a[role=menuitem]:hover, .tdb .tdv-acctmenu a[role=menuitem]:focus-visible { background: rgba(255,255,255,.04); outline: none; }
.tdb .tdv-acctmenu a[aria-current] { border-left-color: #2DD4BF; background: rgba(45,212,191,.08); }
.tdb .tdv-acctmenu a.tdv-amall { margin-top: 4px; padding: 13px 16px 14px; border-top: 1px solid rgba(255,255,255,.08); color: #2DD4BF; font-weight: 700; }
@media (max-width: 640px) {
  .tdb .tdv-head2 { position: relative; }
  .tdb .tdv-acctwrap { position: static; }
  .tdb .tdv-acctmenu { left: 0; right: 0; width: auto; top: calc(100% + 6px); }   /* full width, under the account header */
}
.tdb .tdv-acct { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; font: inherit; }
.tdb .tdv-acct h2, .tdb h2.tdv-acct { margin: 0; font-size: 18px; font-weight: 700; }
.tdb .tdv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 8px 0 0; color: #CFD6E0; font-size: 12px; }
.tdb .tdv-headright { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 12px; }
.tdb .tdv-trade2 { min-height: 36px; padding: 0 18px; font-size: 13px; border-radius: 5px; white-space: nowrap; }
.tdb .tdv-started { margin: 0; color: var(--vgrey); font-size: 11px; white-space: nowrap; }
.tdb .tdv-tabs2 { display: flex; gap: 28px; padding: 0 24px; border-top: 1px solid var(--vline); overflow-x: auto; scrollbar-width: none; }
.tdb .tdv-tabs2::-webkit-scrollbar { display: none; }
.tdb .tdv-tabs2 a { padding: 12px 0 10px; color: var(--vgrey); font-size: 13px; font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.tdb .tdv-tabs2 a:hover { color: #fff; } .tdb .tdv-tabs2 a[aria-current] { color: #5EEAD4; border-bottom-color: #2DD4BF; }
/* one Trading platform button per screen: the header's on desktop, the top bar's on phones */
@media (min-width: 901px) { .tdk:has(.tdv-fn) .tdk-top .tdk-tradebtn { display: none; } }
/* Overview: main column and a 330px balance panel */
.tdb .tdv-ov { display: grid; grid-template-columns: minmax(0, 1fr) 330px; grid-template-areas: "main bal" "rest bal"; gap: 0 22px; align-items: start; margin-top: 18px; }
.tdb .tdv-ovmain { grid-area: main; min-width: 0; } .tdb .tdv-balp { grid-area: bal; align-self: start; margin-top: 40px; } .tdb .tdv-ovrest { grid-area: rest; min-width: 0; }
.tdb .tdv-objbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.tdb .tdv-objbar p { margin: 0; color: var(--vgrey); font-size: 12px; }
.tdb .tdv-count { display: inline-block; margin-left: 6px; padding: 3px 8px; border-radius: 5px; background: rgba(45,212,191,.1); color: #5EEAD4; font-weight: 700; }
.tdb .tdv-refresh { flex: none; white-space: nowrap; height: 30px; padding: 0 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 5px; background: none; color: #fff; font: 700 12px "Plus Jakarta Sans", sans-serif; cursor: pointer; }
.tdb .tdv-refresh:hover { border-color: #2DD4BF; } .tdb .tdv-refresh[disabled] { opacity: .5; cursor: progress; }
.tdb .tdv-ogrid { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); }
.tdb .tdv-ocell { display: flex; flex-direction: column; min-width: 0; padding: 16px 18px; }
.tdb .tdv-ocell + .tdv-ocell { border-left: 1px solid var(--vline); }
.tdb .tdv-ocell h3 { display: flex; align-items: center; gap: 5px; margin: 0; color: #CFD6E0; font: 600 12px/1.3 "Plus Jakarta Sans", sans-serif; letter-spacing: 0; }
.tdb .tdv-obig { margin: 6px 0 0; font: 700 17px/1.2 Sora, sans-serif; color: #fff; }
.tdb .tdv-omid { display: flex; align-items: flex-end; min-height: 70px; padding: 12px 0 10px; }
.tdb .tdv-ofoot { margin: auto 0 0; color: var(--vgrey); font-size: 11px; } .tdb .tdv-ofoot b { color: #fff; }
.tdb .tdv-ostate { margin-left: 4px; font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.tdb .tdv-ostate.is-ok { color: #5EEAD4; } .tdb .tdv-ostate.is-warn { color: var(--vamber); } .tdb .tdv-ostate.is-risk { color: var(--vred); }
.tdb .tdv-pt2 { display: flex; align-items: flex-end; gap: 12px; }
.tdb .tdv-pt2 .tdv-gauge { width: 84px; } .tdb .tdv-pt2 > p { margin: 0 0 2px; } .tdb .tdv-pt2 > p b { display: block; font: 700 15px/1.1 Sora, sans-serif; color: #fff; } .tdb .tdv-pt2 > p span { color: var(--vgrey); font-size: 11px; }
.tdb .tdv-dots2 { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tdb .tdv-dots2 li { position: relative; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.18); }
.tdb .tdv-dots2 li.is-empty { width: 8px; height: 8px; margin: 5px; border: 0; background: rgba(255,255,255,.2); }
.tdb .tdv-dots2 li.is-up { border-color: #2DD4BF; } .tdb .tdv-dots2 li.is-up::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #5EEAD4; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.tdb .tdv-dots2 li.is-down { border-color: var(--vred); } .tdb .tdv-dots2 li.is-down::before, .tdb .tdv-dots2 li.is-down::after { content: ""; position: absolute; left: 7px; top: 3px; width: 1.5px; height: 9px; background: var(--vred); transform: rotate(45deg); } .tdb .tdv-dots2 li.is-down::after { transform: rotate(-45deg); }
.tdb .tdv-dots2 li.is-done { border-color: rgba(185,212,255,.6); background: rgba(185,212,255,.15); }
.tdb .tdv-segbar { display: flex; gap: 2px; width: 100%; height: 30px; }
.tdb .tdv-segbar i { flex: 1; border-radius: 1px; background: rgba(255,255,255,.1); }
.tdb .tdv-segbar.is-ok i.is-on { background: #2DD4BF; } .tdb .tdv-segbar.is-warn i.is-on { background: var(--vamber); } .tdb .tdv-segbar.is-risk i.is-on { background: var(--vred); }
.tdb .tdv-rchead { display: flex; justify-content: space-between; align-items: baseline; margin: 20px 0 8px; }
.tdb .tdv-rchead h2 { color: var(--vgrey); font: 500 12px "Plus Jakarta Sans", sans-serif; }
.tdb .tdv-rcs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tdb .tdv-rc { padding: 14px 18px; }
.tdb .tdv-rc h3 { display: flex; align-items: center; gap: 5px; margin: 0; color: #CFD6E0; font: 600 12px/1.3 "Plus Jakarta Sans", sans-serif; letter-spacing: 0; }
.tdb .tdv-rcfig { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; } .tdb .tdv-rcfig b { font: 700 17px/1.2 Sora, sans-serif; color: #fff; }
.tdb .tdv-rcdetail { display: none; margin: 6px 0 0; color: var(--vgrey); font-size: 11px; }
.tdb .tdv-rcs.is-open .tdv-rcdetail { display: block; }
.tdb .tdv-status { margin-top: 16px; padding: 18px; }
.tdb .tdv-sthead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tdb .tdv-sthead h2 { font-size: 14px; } .tdb .tdv-sthead p { margin: 2px 0 0; color: var(--vgrey); font-size: 11px; }
.tdb .tdv-rangesel { width: auto; flex: none; height: 30px; padding: 0 26px 0 10px; border: 0; border-radius: 5px; background: rgba(45,212,191,.12); color: #5EEAD4; font: 700 12px "Plus Jakarta Sans", sans-serif; }
.tdb .tdv-balp { padding: 14px; }
.tdb .tdv-balbox { padding: 22px 16px 16px; border: 1px solid var(--vline); border-radius: 5px; background: rgba(45,212,191,.05); text-align: center; }
.tdb .tdv-balbox p { margin: 0; color: #CFD6E0; font-size: 12px; } .tdb .tdv-balbox b { display: block; margin: 4px 0 10px; font: 700 22px/1.2 Sora, sans-serif; color: #fff; }
.tdb .tdv-balp dl { margin: 6px 0 0; } .tdb .tdv-balp dl div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--vline); }
.tdb .tdv-balp dl div:last-child { border-bottom: 0; } .tdb .tdv-balp dt { color: #CFD6E0; } .tdb .tdv-balp dd { margin: 0; color: #fff; font-weight: 700; }
/* Calendar */
.tdb .tdv-calhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 20px 0 10px; }
.tdb .tdv-calhead h2 { font-size: 15px; } .tdb .tdv-calhead p { margin: 2px 0 0; color: var(--vgrey); font-size: 12px; }
.tdb .tdv-calnav { display: flex; gap: 6px; }
.tdb .tdv-calnav button { min-width: 32px; height: 30px; padding: 0 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 5px; background: var(--vp); color: #fff; font: 700 12px "Plus Jakarta Sans", sans-serif; cursor: pointer; }
.tdb .tdv-calnav button:hover { border-color: #2DD4BF; }
.tdb .tdv-calnote { margin: 12px 0 0; color: var(--vgrey); }
.tdb .tdv-calwrap { margin-top: 12px; border: 1px solid var(--vline); border-radius: 5px; overflow: hidden; background: var(--vp); }
.tdb .tdv-cal { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 0; border: 0; }
.tdb .tdv-cal th, .tdb .tdv-cal td { border: 0; border-left: 1px solid var(--vline); border-top: 1px solid var(--vline); background: none; }
.tdb .tdv-cal thead th { padding: 9px 12px; border-top: 0; text-align: left; color: var(--vgrey); font: 700 9px/1.3 "Plus Jakarta Sans", sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.tdb .tdv-cal th:first-child, .tdb .tdv-cal td:first-child { border-left: 0; }
.tdb .tdv-cal thead th:last-child { width: 14%; }
.tdb .tdv-cday, .tdb .tdv-cweek { height: 78px; padding: 9px 12px; vertical-align: top; text-align: left; }
.tdb .tdv-cday.is-wkend { background: rgba(0,0,0,.14); }
.tdb .tdv-cday.is-out { opacity: .35; }
.tdb .tdv-cday.is-up { background: rgba(45,212,191,.08); box-shadow: inset 0 2px 0 #2DD4BF; }
.tdb .tdv-cday.is-down { background: rgba(255,138,142,.08); box-shadow: inset 0 2px 0 var(--vred); }
.tdb .tdv-cday.is-today { box-shadow: inset 0 0 0 1px #2DD4BF; }
.tdb .tdv-cday.is-today.is-up { box-shadow: inset 0 0 0 1px #2DD4BF, inset 0 3px 0 #2DD4BF; }
.tdb .tdv-cdate { display: block; color: #CFD6E0; font-size: 11px; font-weight: 600; }
.tdb .tdv-cday b, .tdb .tdv-cweek b { display: block; margin-top: 8px; font: 700 13px/1.2 Sora, sans-serif; color: #fff; }
.tdb .tdv-cday small, .tdb .tdv-cweek small { display: block; margin-top: 2px; color: var(--vgrey); font-size: 10.5px; }
.tdb .tdv-cweek { background: rgba(255,255,255,.025); font-weight: 400; } .tdb .tdv-cweek span { color: #CFD6E0; font-size: 11px; font-weight: 600; }
.tdb .tdv-calist { display: none; }
.tdb .tdv-calegend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 10px; color: var(--vgrey); font-size: 11px; }
.tdb .tdv-calegend ul { display: flex; gap: 16px; margin: 0; padding: 0; list-style: none; }
.tdb .tdv-calegend li { display: flex; align-items: center; gap: 6px; } .tdb .tdv-calegend li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: rgba(255,255,255,.12); }
.tdb .tdv-calegend li.is-up::before { background: #2DD4BF; } .tdb .tdv-calegend li.is-down::before { background: var(--vred); }
.tdb .tdv-calegend p { margin: 0; }
/* History: running trades, the heading row with the filters on the right, Duration */
.tdb .tdv-viewall { margin-left: auto; height: 28px; padding: 0 12px; border: 0; border-radius: 5px; background: rgba(45,212,191,.12); color: #5EEAD4; font: 700 11px "Plus Jakarta Sans", sans-serif; cursor: pointer; }
.tdb .tdv-hhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px 16px; margin: 20px 0 10px; }
.tdb .tdv-hhead h2 { font-size: 15px; } .tdb .tdv-hhead p { margin: 2px 0 0; color: var(--vgrey); font-size: 12px; }
.tdb .tdv-hhead .tdv-filters { margin-top: 0; } .tdb .tdv-hhead .tdv-frow { padding: 0; border: 0; background: none; }
.tdb .tdv-hhead .tdv-fcount { margin-left: 0; }
.tdb .tdv-fn .tdv-stats { margin-top: 0; }
.tdb .tdv-fn [data-hist] > .tdv-panel:last-child { margin-top: 12px; }
@media (max-width: 1180px) { .tdb .tdv-ogrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tdb .tdv-ocell:nth-child(odd) { border-left: 0; } .tdb .tdv-ocell:nth-child(n+3) { border-top: 1px solid var(--vline); } }
@media (max-width: 1100px) { .tdb .tdv-ov { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "bal" "rest"; } .tdb .tdv-balp { margin-top: 16px; } }
/* phones: one column; the header stacks; the Trading platform button stays in the top bar */
@media (max-width: 900px) {
  .tdb .tdv-headtop { flex-direction: column; gap: 14px; padding: 16px 14px; }
  .tdb .tdv-tag2 { align-self: flex-start; }
  .tdb .tdv-headright { flex-direction: row; align-items: center; }
  .tdb .tdv-trade2 { display: none; }
  .tdb .tdv-tabs2 { padding: 0 14px; gap: 22px; }
  .tdb .tdv-ogrid, .tdb .tdv-rcs { grid-template-columns: minmax(0, 1fr) !important; }
  .tdb .tdv-ocell { border-left: 0 !important; } .tdb .tdv-ocell + .tdv-ocell { border-top: 1px solid var(--vline) !important; }
  .tdb .tdv-rcs { gap: 0; border: 1px solid var(--vline); border-radius: 5px; overflow: hidden; }
  .tdb .tdv-rc { border: 0; border-radius: 0; } .tdb .tdv-rc + .tdv-rc { border-top: 1px solid var(--vline); }
  .tdb .tdv-obig, .tdb .tdv-rcfig b { font-size: 18px; } .tdb .tdv-ofoot, .tdb .tdv-objbar p { font-size: 12px; }
  .tdb .tdv-calwrap { display: none; }
  .tdb .tdv-calist { display: block; margin: 12px 0 0; padding: 0; list-style: none; }
  .tdb .tdv-calist li { display: grid; grid-template-columns: 1fr auto 70px; align-items: center; gap: 10px; padding: 12px 14px; }
  .tdb .tdv-calist li + li { border-top: 1px solid var(--vline); } .tdb .tdv-calist small { color: var(--vgrey); text-align: right; }
  .tdb .tdv-calhead { align-items: flex-start; flex-direction: column; }
  .tdb .tdv-hhead { align-items: flex-start; }
}

/* TUF-169: the sidebar (TUF-dashboard-sidebar.png) - logo, MENU with « / », line-icon items, Help & support and More groups,
   the Discord card; « minimises it to a 68px icon rail (labels as tooltips, groups as flyouts). Desktop only. */
.tdk { transition: grid-template-columns .25s ease; }
.tdk.is-min { grid-template-columns: 68px minmax(0, 1fr); }
.tdk-side { gap: 0; overflow: visible; z-index: 45; }   /* above the panel, so rail tooltips and flyouts show */
.tdk-menuhead { display: flex; justify-content: space-between; align-items: center; margin: 22px 0 8px; padding: 0 12px; }
.tdk-menuhead span { color: #8F9BB0; font: 700 10px/1 "Plus Jakarta Sans", sans-serif; letter-spacing: .16em; }
.tdk-collapse { width: 26px; height: 26px; padding: 0; border: 0; border-radius: 5px; background: none; color: #CFD6E0; font: 700 15px/1 "Plus Jakarta Sans", sans-serif; cursor: pointer; }
.tdk-collapse:hover { background: rgba(45,212,191,.1); color: #5EEAD4; }
.tdk-nav { gap: 2px; flex: 0 1 auto; }
.tdk .tdk-nav a, .tdk-gbtn { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 5px; color: #E4E9F1; font: 600 14px/1.2 "Plus Jakarta Sans", sans-serif; text-decoration: none; }
.tdk-nav a svg, .tdk-gbtn svg { flex: none; width: 18px; height: 18px; color: #A9B4C6; }
.tdk .tdk-nav a:hover, .tdk-gbtn:hover { background: rgba(45,212,191,.06); color: #fff; }
.tdk .tdk-nav a[aria-current] { background: rgba(45,212,191,.12); color: #5EEAD4; }
.tdk .tdk-nav a[aria-current] svg { color: #5EEAD4; }
.tdk-groups { display: flex; flex-direction: column; gap: 2px; margin-top: 22px; }
.tdk-grp { position: relative; }
.tdk-gbtn { width: 100%; border: 0; background: none; cursor: pointer; text-align: left; }
.tdk-gbtn .tdk-lbl { flex: 1; }
.tdk-gcaret { color: #8F9BB0; font-size: 10px; transition: transform .2s; }
.tdk-grp.is-open .tdk-gcaret { transform: rotate(180deg); }
.tdk-gsub { display: flex; flex-direction: column; padding: 2px 0 6px 42px; }
.tdk-gsub a, .tdk-gsub button { padding: 7px 0; border: 0; background: none; color: #A9B4C6; font: 600 13px/1.2 "Plus Jakarta Sans", sans-serif; text-align: left; text-decoration: none; cursor: pointer; }
.tdk-gsub a:hover, .tdk-gsub button:hover { color: #5EEAD4; }
.tdk-gtitle { display: none; }
.tdk-gsub[hidden] { display: none !important; }
.tdk-discord { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: auto; padding: 12px 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 5px; color: #fff; text-decoration: none; }
.tdk-discord:hover { border-color: rgba(88,101,242,.7); }
.tdk-dico { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 5px; background: #5865F2; color: #fff; flex: none; }
.tdk-dtext { flex: 1; min-width: 0; } .tdk-dtext b { display: block; font-size: 14px; } .tdk-dtext small { display: block; margin-top: 4px; color: #A9B4C6; font-size: 12px; line-height: 1.4; }
/* the user: a small square avatar top right, next to Trading platform */
.tdk-me2 { position: relative; flex: none; }
.tdk-avatar { width: 38px; height: 38px; padding: 0; border: 0; border-radius: 5px; background: #2DD4BF; color: #0A1730; font: 800 15px/1 Sora, sans-serif; cursor: pointer; }
.tdk-avatar:hover { background: #22C4AF; }
.tdk-me2menu { right: 0; left: auto; top: calc(100% + 8px); min-width: 230px; z-index: 50; }
.tdk-me2who { margin: 0 0 4px; padding: 8px 12px 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
.tdk-me2who b { display: block; color: #fff; font-size: 14px; } .tdk-me2who small { display: block; color: #A9B4C6; font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
/* the rail */
.tdk.is-min .tdk-side { padding-left: 10px; padding-right: 10px; align-items: center; }
.tdk.is-min .tdb-words, .tdk.is-min .tdk-menuhead span, .tdk.is-min .tdk-gcaret, .tdk.is-min .tdk-dtext { display: none; }
.tdk.is-min .tdk-side .tdb-logo { justify-content: center; }
.tdk.is-min .tdk-menuhead { justify-content: center; padding: 0; }
.tdk.is-min .tdk-nav, .tdk.is-min .tdk-groups { width: 100%; overflow: visible; }
.tdk.is-min .tdk-nav a, .tdk.is-min .tdk-gbtn { justify-content: center; padding: 11px 0; }
.tdk.is-min .tdk-lbl { position: absolute; left: calc(100% + 12px); top: 50%; z-index: 60; padding: 6px 10px; border: 1px solid rgba(45,212,191,.32); border-radius: 5px; background: #1B335C; color: #fff; font-size: 13px; white-space: nowrap; transform: translateY(-50%); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .12s; }
.tdk.is-min .tdk-nav a:hover .tdk-lbl, .tdk.is-min .tdk-nav a:focus-visible .tdk-lbl, .tdk.is-min .tdk-gbtn:hover .tdk-lbl, .tdk.is-min .tdk-gbtn:focus-visible .tdk-lbl { opacity: 1; visibility: visible; }
.tdk.is-min .tdk-grp.is-open .tdk-gbtn .tdk-lbl { opacity: 0; visibility: hidden; }
.tdk.is-min .tdk-gsub { position: absolute; left: calc(100% + 10px); top: 0; z-index: 60; min-width: 190px; padding: 6px; border: 1px solid rgba(45,212,191,.32); border-radius: 5px; background: #1B335C; box-shadow: 0 14px 30px -14px rgba(0,0,0,.7); }
.tdk.is-min .tdk-gsub a, .tdk.is-min .tdk-gsub button { padding: 8px 10px; border-radius: 5px; color: #fff; }
.tdk.is-min .tdk-gsub a:hover, .tdk.is-min .tdk-gsub button:hover { background: rgba(45,212,191,.12); }
.tdk.is-min .tdk-gtitle { display: block; margin: 0; padding: 6px 10px 4px; color: #8F9BB0; font: 700 10px/1.2 "Plus Jakarta Sans", sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.tdk.is-min .tdk-discord { justify-content: center; padding: 0; border: 0; }
.tdk.is-min .tdk-dico { width: 40px; height: 40px; }
/* the drawer keeps its list (TUF-166) with the Help & support links under a small heading */
.tdk-dgroup { display: none; }
@media (max-width: 900px) {
  .tdk.is-min { grid-template-columns: minmax(0, 1fr); }
  .tdk-me2 { display: none; }
  .tdk-dgroup { display: block; margin: 0; padding: 14px 20px 6px; color: #8F9BB0; font: 700 10px/1.2 "Plus Jakarta Sans", sans-serif; letter-spacing: .16em; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,.07); }
}
@media (prefers-reduced-motion: reduce) { .tdk, .tdk-gcaret, .tdk.is-min .tdk-lbl { transition: none; } }

/* TUF-170: Buy a challenge in the dashboard style (TUF-dashboard-buy-challenge.png) - flat navy panels, 1px dividers, 5px corners,
   3px badges, compact type, tabular figures. Restyle only: the checkout logic is untouched. */
.tdb .tdb-buyhead { margin-bottom: 14px; } .tdb .tdb-buyhead h1 { font-size: 22px; } .tdb .tdb-buyhead .tdb-muted { margin: 4px 0 0; font-size: 12px; }
.tdb .tdb-buy2 { --bp: #0E1F3D; --bl: rgba(255,255,255,.07); --bg: #8F9BB0; gap: 22px 22px; grid-template-columns: minmax(0, 1fr) 330px; font-variant-numeric: tabular-nums; }
.tdb .tdb-buy2 .tdb-new { padding: 0; border: 0; background: none; box-shadow: none; }
.tdb .tdb-buy2 .tdb-new fieldset { margin: 0 0 20px; }
.tdb .tdb-buy2 .tdb-new legend { display: flex; justify-content: space-between; align-items: baseline; width: 100%; margin: 0 0 8px; color: #fff; font: 700 14px/1.2 Sora, sans-serif; }
.tdb .tdb-buy2 .tdb-new legend small { color: var(--bg); font: 400 12px "Plus Jakarta Sans", sans-serif; }
.tdb .tdb-buy2 .tdb-ccards { gap: 0; border: 1px solid var(--bl); border-radius: 5px; background: var(--bp); overflow: hidden; }
.tdb .tdb-buy2 .tdb-ccard, .tdb .tdb-buy2 .tdb-ccard:has(input:checked) { padding: 14px 44px 14px 18px; border: 0; border-radius: 0; background: none; cursor: pointer; }
.tdb .tdb-buy2 .tdb-ccard + .tdb-ccard { border-left: 1px solid var(--bl); }
.tdb .tdb-buy2 .tdb-ccard b { font-size: 16px; } .tdb .tdb-buy2 .tdb-ccard small { margin-top: 2px; font-size: 12px; color: var(--bg); }
.tdb .tdb-buy2 .tdb-ccard-tick, .tdb .tdb-buy2 .tdb-ccard:has(input:checked) .tdb-ccard-tick { top: 16px; right: 18px; width: 16px; height: 16px; border: 1.5px solid rgba(255,255,255,.3); background: none; }
.tdb .tdb-buy2 .tdb-ccard:has(input:checked) { background: rgba(45,212,191,.06); box-shadow: inset 0 2px 0 #2DD4BF; }
.tdb .tdb-buy2 .tdb-ccard:has(input:checked) .tdb-ccard-tick { border-color: #2DD4BF; }
.tdb .tdb-buy2 .tdb-ccard:has(input:checked) .tdb-ccard-tick::after { left: 3px; top: 3px; width: 7px; height: 7px; border: 0; border-radius: 50%; background: #2DD4BF; transform: none; }
.tdb .tdb-buy2 .tdb-scards { display: flex; gap: 0; border: 1px solid var(--bl); border-radius: 5px; background: var(--bp); overflow: hidden; }
.tdb .tdb-buy2 .tdb-scard, .tdb .tdb-buy2 .tdb-scard:has(input:checked) { flex: 1 1 0; gap: 3px; padding: 14px 4px; border: 0; border-radius: 0; background: none; cursor: pointer; }
.tdb .tdb-buy2 .tdb-scard + .tdb-scard { border-left: 1px solid var(--bl); }
.tdb .tdb-buy2 .tdb-scard[hidden] { display: none; }
.tdb .tdb-buy2 .tdb-scard b { font-size: 15px; } .tdb .tdb-buy2 .tdb-scard small { font-size: 12px; color: var(--bg); }
.tdb .tdb-buy2 .tdb-scard:has(input:checked) { background: rgba(45,212,191,.06); box-shadow: inset 0 2px 0 #2DD4BF; }
.tdb .tdb-buy2 .tdb-scard:has(input:checked) small { color: #5EEAD4; }
.tdb .tdb-buy2 .tdb-ccard:has(input:focus-visible), .tdb .tdb-buy2 .tdb-scard:has(input:focus-visible) { outline: 2px solid #2DD4BF; outline-offset: -2px; }
.tdb .tdb-buy2 .tdb-bhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 8px; }
.tdb .tdb-buy2 .tdb-bhead h2 { font-size: 14px; } .tdb .tdb-buy2 .tdb-bhead a { color: #5EEAD4; font-size: 12px; font-weight: 700; text-decoration: none; } .tdb .tdb-buy2 .tdb-bhead a:hover { text-decoration: underline; }
/* Compare the rules */
.tdb .tdb-buy2 .tdb-compare-wrap { padding: 0; border: 1px solid var(--bl); border-radius: 5px; background: var(--bp); box-shadow: none; }
.tdb .tdb-buy2 .tdb-compare { font-size: 12px; }
.tdb .tdb-buy2 .tdb-compare th, .tdb .tdb-buy2 .tdb-compare td { padding: 9px 18px; border: 0; border-bottom: 1px solid var(--bl); border-radius: 0 !important; background: none; vertical-align: middle; }
.tdb .tdb-buy2 .tdb-compare thead th { color: var(--bg); font: 700 9px/1.3 "Plus Jakarta Sans", sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.tdb .tdb-buy2 .tdb-compare thead th.is-sel { color: #5EEAD4; }
.tdb .tdb-buy2 .tdb-compare tbody th { width: 30%; color: #CFD6E0; font-weight: 500; }
.tdb .tdb-buy2 .tdb-compare td { color: #fff; }
.tdb .tdb-buy2 .tdb-compare .is-sel { background: rgba(45,212,191,.05); }
.tdb .tdb-buy2 .tdb-compare-usd { margin-left: 3px; color: var(--bg); font-size: 10.5px; }
.tdb .tdb-buy2 .tdb-cgroup th { padding: 8px 18px; background: rgba(255,255,255,.02); font: 800 9px/1.3 "Plus Jakarta Sans", sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.tdb .tdb-buy2 .tdb-cgroup.is-pass th, .tdb .tdb-buy2 .tdb-cgroup.is-funded th { color: #5EEAD4; } .tdb .tdb-buy2 .tdb-cgroup.is-ends th { color: #FF8A8E; }
.tdb .tdb-buy2 .tdb-compare tbody tr:last-child th, .tdb .tdb-buy2 .tdb-compare tbody tr:last-child td { border-bottom: 0; }
/* Questions: one panel with dividers */
.tdb .tdb-buy2 .tdb-faq { gap: 0; border: 1px solid var(--bl); border-radius: 5px; background: var(--bp); overflow: hidden; }
.tdb .tdb-buy2 .tdb-faq-item { border: 0; border-radius: 0; background: none; } .tdb .tdb-buy2 .tdb-faq-item + .tdb-faq-item { border-top: 1px solid var(--bl); }
.tdb .tdb-buy2 .tdb-faq-item summary { padding: 13px 18px; font-size: 13px; } .tdb .tdb-buy2 .tdb-faq-item summary::after { color: var(--bg); font-weight: 400; }
.tdb .tdb-buy2 .tdb-faq-item p { padding: 0 18px 14px; font-size: 12.5px; }
/* Your order */
.tdb .tdb-buy2 .tdb-order { padding: 18px; border: 1px solid var(--bl); border-radius: 5px; background: var(--bp); box-shadow: none; }
.tdb .tdb-buy2 .tdb-order-title { margin: 0 0 6px; color: var(--bg); font: 800 9px/1.3 "Plus Jakarta Sans", sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.tdb .tdb-buy2 .tdb-order-list { gap: 0; } .tdb .tdb-buy2 .tdb-order-list > div { padding: 9px 0; border-bottom: 1px solid var(--bl); font-size: 12.5px; }
.tdb .tdb-buy2 .tdb-order-list dt { color: #CFD6E0; } .tdb .tdb-buy2 .tdb-order-list dd { font-weight: 700; }
.tdb .tdb-buy2 .tdb-addon { margin-top: 14px; padding: 11px 12px; border-radius: 5px; font-size: 12.5px; }
.tdb .tdb-buy2 .tdb-addon-box { border-radius: 3px; }
.tdb .tdb-buy2 .tdb-code { margin-top: 10px; }
.tdb .tdb-buy2 .tdb-code input { height: 38px; border-radius: 5px; border-color: rgba(255,255,255,.12); background: #0A1730; font-size: 12.5px; }
.tdb .tdb-buy2 .tdb-code-btn { height: 38px; border-radius: 5px; font-size: 12.5px; }
.tdb .tdb-buy2 .tdb-order-disc { margin-top: 10px; font-size: 12.5px; }
.tdb .tdb-buy2 .tdb-order-total { margin-top: 14px; padding-top: 14px; border-top-color: var(--bl); }
.tdb .tdb-buy2 .tdb-order-total span { font-size: 13px; } .tdb .tdb-buy2 .tdb-order-total b { font-size: 26px; }
.tdb .tdb-buy2 .tdb-order-refund { margin: 6px 0 14px; color: #5EEAD4; font-size: 12px; }
.tdb .tdb-buy2 .tdb-paywith { margin: 0 0 12px; }
.tdb .tdb-buy2 .tdb-paywith-title { margin: 0 0 8px; color: var(--bg); font: 800 9px/1.3 "Plus Jakarta Sans", sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.tdb .tdb-buy2 .tdb-pw-opts { gap: 0; border: 1px solid rgba(255,255,255,.12); border-radius: 5px; overflow: hidden; }
.tdb .tdb-buy2 .tdb-pw { padding: 11px 12px; border: 0; border-radius: 0; background: none; box-shadow: none; text-align: left; }
.tdb .tdb-buy2 .tdb-pw + .tdb-pw { border-left: 1px solid rgba(255,255,255,.12); }
.tdb .tdb-buy2 .tdb-pw b { font-size: 13px; } .tdb .tdb-buy2 .tdb-pw small { font-size: 11px; color: var(--bg); } .tdb .tdb-buy2 .tdb-pw i { display: none; }
.tdb .tdb-buy2 .tdb-pw[aria-checked=true] { background: rgba(45,212,191,.06); box-shadow: inset 0 2px 0 #2DD4BF; }
.tdb .tdb-buy2 .tdb-coins button { border-radius: 3px; }
.tdb .tdb-buy2 .tdb-order [data-pay] { min-height: 44px; border-radius: 5px; box-shadow: none; font-size: 14px; }
.tdb .tdb-buy2 .tdb-order-terms, .tdb .tdb-buy2 .tdb-order-note { font-size: 11px; }
@media (max-width: 1100px) { .tdb .tdb-buy2 { grid-template-columns: minmax(0, 1fr); } }
/* phones: challenge, size (3 x 2), order, compare, questions; the total and Continue stay visible in the bar */
@media (max-width: 900px) {
  .tdb .tdb-buy2 .tdb-ccards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tdb .tdb-buy2 .tdb-scards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tdb .tdb-buy2 .tdb-scard { border-left: 1px solid var(--bl); border-top: 1px solid var(--bl); }
  .tdb .tdb-buy2 .tdb-compare th, .tdb .tdb-buy2 .tdb-compare td { padding: 9px 10px; }
  .tdb .tdb-buy2 { padding-bottom: 70px; }
  .tdb .tdb-buybar { bottom: 0; padding-bottom: calc(10px + env(safe-area-inset-bottom)); background: #0A1730; border-top: 1px solid rgba(255,255,255,.08); box-shadow: none; }
  .tdb .tdb-buybar .tdb-btn { border-radius: 5px; box-shadow: none; }
}
/* TUF-170: phones - the chat bubble sits above the Buy page's total bar (the bar appears after Intercom has booted) */
@media (max-width: 900px) {
  body:has(.tdb-buybar) .intercom-lightweight-app-launcher, body:has(.tdb-buybar) .intercom-launcher-frame,
  body:has(.tdb-buybar) iframe[name="intercom-launcher-frame"] { bottom: calc(84px + env(safe-area-inset-bottom)) !important; }
}

/* TUF-171: the Account status range - a compact segmented toggle (7D / 30D / All); greyed out until the chart has data */
.tdb .tdv-rangeseg { display: inline-flex; flex: none; height: 28px; border: 1px solid rgba(255,255,255,.1); border-radius: 5px; overflow: hidden; }
.tdb .tdv-rangeseg button { min-width: 38px; height: 100%; padding: 0 10px; border: 0; border-radius: 0; background: none; box-shadow: none; outline: none; color: #8F9BB0; font: 700 11.5px/1 "Plus Jakarta Sans", sans-serif; cursor: pointer; }
.tdb .tdv-rangeseg button + button { border-left: 1px solid rgba(255,255,255,.1); }
.tdb .tdv-rangeseg button[aria-checked=true] { background: rgba(45,212,191,.12); color: #5EEAD4; }
.tdb .tdv-rangeseg button:hover:not(:disabled) { color: #fff; }
.tdb .tdv-rangeseg button:focus { outline: none; box-shadow: none; }
.tdb .tdv-rangeseg button:focus-visible { outline: 1px solid rgba(94,234,212,.6); outline-offset: -2px; }
.tdb .tdv-rangeseg button:disabled { cursor: default; opacity: .5; }

/* TUF-173: Transactions, breached accounts, News trading, the notifications bell (TUF-add-*.png) - same flat style */
.tdb .tdv-breach { margin: 12px 0 0; padding: 10px 14px; border: 1px solid rgba(255,138,142,.45); border-radius: 5px; background: rgba(255,138,142,.07); color: #FFC2C4; font-size: 12px; line-height: 1.5; }
.tdb .tdv-breach b { color: #FF8A8E; } .tdb .tdv-breach a { margin-left: 4px; color: #5EEAD4; font-weight: 700; text-decoration: none; white-space: nowrap; } .tdb .tdv-breach a:hover { text-decoration: underline; }
.tdb .tdv-fn > .tdv-breach { margin-top: 14px; }
.tdb .tdv-btn2 { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 5px; background: var(--vp, #0E1F3D); color: #fff; font: 700 12px/1 "Plus Jakarta Sans", sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap; }
.tdb .tdv-btn2:hover { border-color: #2DD4BF; } .tdb .tdv-btn2[disabled] { opacity: .45; cursor: default; }
/* Accounts table */
.tdb .tdv-abar2 { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.tdb .tdv-abar2 .tdv-chips { margin-top: 0; }
.tdb .tdv-abar2 + .tdv-panel { margin-top: 12px; }
.tdb .tdv-atable th[scope=row] p { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.tdb .tdv-atable th[scope=row] b { color: #fff; font: 700 13px/1.3 Sora, sans-serif; letter-spacing: 0; text-transform: none; }
.tdb .tdv-atable th[scope=row] > span { display: block; margin-top: 2px; color: var(--vgrey); font: 400 11px "Plus Jakarta Sans", sans-serif; letter-spacing: 0; text-transform: none; }
.tdb .tdv-atable tbody th { padding: 11px 18px; text-align: left; border-bottom: 1px solid var(--vline); background: none; }
.tdb .tdv-atable td small { display: block; color: var(--vgrey); font-size: 10.5px; }
.tdb .tdv-atable .tdv-abar { display: block; width: 100%; max-width: 180px; margin-top: 5px; }
.tdb .tdv-lw { display: inline !important; margin-left: 3px; font-size: 9.5px !important; font-weight: 800; letter-spacing: .04em; }
.tdb .tdv-lw.is-ok { color: #5EEAD4 !important; } .tdb .tdv-lw.is-warn { color: var(--vamber) !important; } .tdb .tdv-lw.is-risk { color: var(--vred) !important; }
.tdb .tdv-atable .tdv-acol { text-align: right; }
.tdb .tdv-arow2.is-breached td, .tdb .tdv-arow2.is-breached th > span { opacity: .55; }
.tdb .tdv-arow2.is-breached td.tdv-acol { opacity: 1; }
.tdb .tdv-arow2.is-breached td, .tdb .tdv-arow2.is-breached th { border-bottom: 0 !important; }
.tdb .tdv-brow td { padding: 0 18px 12px !important; white-space: normal !important; }
.tdb .tdv-brow .tdv-breach { margin: 0; }
.tdb .tdv-table tr[hidden] { display: none; }
/* Transactions */
.tdb .tdv-txbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.tdb .tdv-txbar .tdv-chips { margin-top: 0; }
.tdb .tdv-txtools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tdb .tdv-txtools input[type=search] { width: 170px; height: 32px; padding: 0 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 5px; background: var(--vp, #0E1F3D); color: #fff; font: 600 12px "Plus Jakarta Sans", sans-serif; }
.tdb .tdv-txgrid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; margin-top: 12px; }
.tdb .tdv-txtable tbody tr { cursor: pointer; } .tdb .tdv-txtable tbody tr:hover td { background: rgba(255,255,255,.02); }
.tdb .tdv-txtable tbody tr.is-sel td { background: rgba(45,212,191,.06); }
.tdb .tdv-txtable tbody tr:focus-visible { outline: 1px solid #5EEAD4; outline-offset: -1px; }
.tdb .tdv-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; }
.tdb .tdv-txdetail { position: sticky; top: 16px; padding: 18px; }
.tdb .tdv-txbig { margin: 4px 0 8px; font: 700 22px/1.2 Sora, sans-serif; color: #fff; }
.tdb .tdv-txdetail dl { margin: 0; } .tdb .tdv-txdetail dl div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--vline); font-size: 12px; }
.tdb .tdv-txdetail dt { color: #CFD6E0; } .tdb .tdv-txdetail dd { margin: 0; color: #fff; font-weight: 700; text-align: right; }
.tdb .tdv-txdl { width: 100%; min-height: 40px; margin-top: 12px; border-radius: 5px; box-shadow: none; font-size: 13px; }
.tdb .tdv-txnote { margin: 10px 0 0; color: var(--vgrey); font-size: 11px; } .tdb .tdv-txnote a { color: #5EEAD4; }
/* News trading */
.tdb .tdv-nbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin: 14px 0 12px; }
.tdb .tdv-nbar .tdv-chips { margin-top: 0; }
.tdb .tdv-tzsel select { width: auto; height: 32px; padding: 0 28px 0 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 5px; background: var(--vp, #0E1F3D); color: #fff; font: 700 12px "Plus Jakarta Sans", sans-serif; }
.tdb .tdv-imp { display: inline-flex; align-items: center; gap: 6px; } .tdb .tdv-imp::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #8F9BB0; }
.tdb .tdv-imp.is-high::before { background: var(--vred); } .tdb .tdv-imp.is-med::before { background: var(--vamber); }
.tdb .tdv-muted2 { color: var(--vgrey); }
.tdb .tdv-ntable td { white-space: normal; }
.tdb .tdv-nnote { margin: 10px 0 0; color: var(--vgrey); font-size: 11px; }
.tdb .tdv-rclink { color: inherit; text-decoration: none; } .tdb .tdv-rclink:hover { color: #5EEAD4; text-decoration: underline; }
.tdb .tdv-rcdetail a { color: #5EEAD4; } .tdb .tdv-newslist { display: block; margin-top: 4px; color: #FFD8A0; }
/* the bell */
.tdk-bellwrap { position: relative; flex: none; }
.tdk-bell { position: relative; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid rgba(255,255,255,.14); border-radius: 5px; background: none; color: #fff; cursor: pointer; }
.tdk-bell:hover, .tdk-bell[aria-expanded=true] { border-color: #2DD4BF; }
.tdk-bellcount { position: absolute; top: -6px; right: -6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #FF8A8E; color: #0A1730; font: 800 10px/17px "Plus Jakarta Sans", sans-serif; text-align: center; }
.tdk-bellcount[hidden] { display: none; }
.tdk-bellpanel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 360px; max-height: 70vh; overflow-y: auto; padding: 10px; border: 1px solid rgba(45,212,191,.32); border-radius: 5px; background: #12264A; box-shadow: 0 20px 40px -20px rgba(0,0,0,.7); }
.tdk-bellpanel[hidden] { display: none; }
.tdk-bellhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 2px 4px 8px; border-bottom: 1px solid rgba(255,255,255,.08); }
.tdk-bellhead .tdv-chips { margin: 0; }
.tdk-belllist { margin: 0; padding: 0; list-style: none; }
.tdk-belllist li { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid rgba(255,255,255,.06); }
.tdk-belllist li:last-child { border-bottom: 0; }
.tdk-belllist li.is-new { background: rgba(45,212,191,.05); }
.tdk-belllist p { margin: 0; color: #fff; font-size: 12.5px; line-height: 1.35; } .tdk-belllist small { color: #8F9BB0; font-size: 11px; }
.tdk-belllist a { color: #5EEAD4; font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; } .tdk-belllist a:hover { text-decoration: underline; }
.tdk-bico2 { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 5px; background: rgba(255,255,255,.08); color: #CFD6E0; font-weight: 800; font-size: 13px; }
.tdk-bico2.is-ok { background: rgba(45,212,191,.14); color: #5EEAD4; } .tdk-bico2.is-risk { background: rgba(255,138,142,.14); color: #FF8A8E; } .tdk-bico2.is-warn { background: rgba(245,165,36,.16); color: #F5C46B; }
.tdk-bellnone { margin: 0; padding: 24px 8px; color: #8F9BB0; text-align: center; font-size: 12.5px; }
.tdk-bellpanel .tdv-chips button { padding: 4px 9px; border: 1px solid rgba(255,255,255,.12); border-radius: 3px; background: none; color: #CFD6E0; font: 700 11px "Plus Jakarta Sans", sans-serif; cursor: pointer; }
.tdk-bellpanel .tdv-chips button[aria-pressed=true] { border-color: #2DD4BF; background: rgba(45,212,191,.12); color: #5EEAD4; }
.tdk-bellpanel .tdv-linkbtn { border: 0; background: none; color: #5EEAD4; font: 700 11px "Plus Jakarta Sans", sans-serif; cursor: pointer; }
@media (max-width: 1100px) { .tdb .tdv-txgrid { grid-template-columns: minmax(0, 1fr); } .tdb .tdv-txdetail { position: static; } }
/* phones: tables become stacked rows */
@media (max-width: 900px) {
  .tdb .tdv-atable thead, .tdb .tdv-txtable thead, .tdb .tdv-ntable thead { display: none; }
  .tdb .tdv-atable, .tdb .tdv-atable tbody, .tdb .tdv-atable tr, .tdb .tdv-atable th, .tdb .tdv-atable td,
  .tdb .tdv-txtable, .tdb .tdv-txtable tbody, .tdb .tdv-txtable tr, .tdb .tdv-txtable td,
  .tdb .tdv-ntable, .tdb .tdv-ntable tbody, .tdb .tdv-ntable tr, .tdb .tdv-ntable td { display: block; width: 100%; }
  .tdb .tdv-atable tr, .tdb .tdv-txtable tr, .tdb .tdv-ntable tr { padding: 10px 14px; border-bottom: 1px solid var(--vline); }
  .tdb .tdv-atable tr.tdv-brow { padding-top: 0; }
  .tdb .tdv-atable tr.is-breached { border-bottom: 0; }
  .tdb .tdv-atable th, .tdb .tdv-atable td, .tdb .tdv-txtable td, .tdb .tdv-ntable td { padding: 3px 0 !important; border: 0 !important; white-space: normal; }
  .tdb .tdv-atable td[data-label], .tdb .tdv-txtable td[data-label], .tdb .tdv-ntable td[data-label] { display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .tdb .tdv-atable td[data-label]::before, .tdb .tdv-txtable td[data-label]::before, .tdb .tdv-ntable td[data-label]::before { content: attr(data-label); color: var(--vgrey); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-align: left; }
  .tdb .tdv-atable td[data-label] > *, .tdb .tdv-atable .tdv-abar { margin-left: auto; }
  .tdb .tdv-atable .tdv-acol { text-align: left; padding-top: 6px !important; }
  .tdb .tdv-brow td { padding: 0 !important; }
  .tdb .tdv-txtools { width: 100%; } .tdb .tdv-txtools input[type=search] { flex: 1; width: auto; }
  .tdk-bellpanel { position: fixed; left: 8px; right: 8px; top: 62px; width: auto; }
  .tdk-bell { width: 38px; height: 38px; }
}

/* TUF-175: Certificates (TUF-certificates-empty.png) - banner with two sample certificates, category tabs, empty state */
.tdb .tdc-page { gap: 0; }
.tdb .tdc-banner { position: relative; display: flex; align-items: center; min-height: 210px; overflow: hidden; border-radius: 5px 5px 0 0; background: radial-gradient(500px 220px at 78% 60%, rgba(45,212,191,.16), transparent 70%), linear-gradient(120deg, #13294F, #0E1F3D 65%); }
.tdb .tdc-btext { position: relative; z-index: 2; max-width: 560px; padding: 28px 32px; }
.tdb .tdc-eyebrow { margin: 0; color: #5EEAD4; font: 800 10px/1.3 "Plus Jakarta Sans", sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.tdb .tdc-btext h2 { margin: 6px 0 0; font-size: 24px; } .tdb .tdc-btext p:not(.tdc-eyebrow) { margin: 6px 0 0; color: #CFD6E0; font-size: 13px; }
.tdb .tdc-btext a { display: inline-block; margin-top: 14px; color: #5EEAD4; font-weight: 700; font-size: 13px; text-decoration: none; } .tdb .tdc-btext a:hover { text-decoration: underline; }
.tdb .tdc-samples { position: absolute; right: 4%; top: 0; bottom: 0; width: 470px; }
.tdb .tdc-cert { position: absolute; width: 250px; padding: 16px 18px 18px; border-radius: 5px; background: #F7F9FC; box-shadow: 0 18px 40px -16px rgba(0,0,0,.6), 0 0 60px -10px rgba(45,212,191,.45); color: #0A1730; }
.tdb .tdc-cert.is-back { left: 0; top: 70px; transform: rotate(-7deg); background: #C9D1DD; opacity: .9; }
.tdb .tdc-cert.is-front { right: 0; top: 26px; transform: rotate(4deg); }
.tdb .tdc-cert p { margin: 0; }
.tdb .tdc-cert-brand { color: #17B5A1; font: 800 8px/1.3 "Plus Jakarta Sans", sans-serif; letter-spacing: .2em; }
.tdb .tdc-cert-title { margin-top: 6px !important; font: 700 15px/1.2 Sora, sans-serif; } .tdb .tdc-cert-to { margin-top: 4px !important; color: #5B6577; font-size: 9px; }
.tdb .tdc-cert-name { margin-top: 2px !important; font: 700 13px/1.2 Sora, sans-serif; } .tdb .tdc-cert-res { margin-top: 8px !important; color: #5B6577; font-size: 9.5px; }
.tdb .tdc-cert-mark { position: absolute; right: 14px; bottom: 12px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #2DD4BF; }
.tdb .tdc-cert-mark svg { width: 13px; height: 15px; }
.tdb .tdc-cert-mark svg path { fill: #0A1730; }
.tdb .tdc-tabs { display: flex; gap: 22px; padding: 0 20px; border-top: 0; border-radius: 0 0 5px 5px; overflow-x: auto; scrollbar-width: none; }
.tdb .tdc-tabs::-webkit-scrollbar { display: none; }
.tdb .tdc-tabs button { display: inline-flex; align-items: center; gap: 7px; padding: 12px 0 10px; border: 0; border-bottom: 2px solid transparent; background: none; color: #8F9BB0; font: 600 13px "Plus Jakarta Sans", sans-serif; white-space: nowrap; cursor: pointer; }
.tdb .tdc-tabs button span { padding: 1px 6px; border-radius: 3px; background: rgba(255,255,255,.08); color: #CFD6E0; font-size: 10.5px; font-weight: 700; }
.tdb .tdc-tabs button[aria-pressed=true] { color: #5EEAD4; border-bottom-color: #2DD4BF; }
.tdb .tdc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin: 22px 0 10px; }
.tdb .tdc-head h2 { font-size: 15px; }
.tdb .tdc-tools { display: flex; gap: 8px; }
.tdb .tdc-tools input, .tdb .tdc-tools select { width: auto; height: 32px; padding: 0 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 5px; background: var(--vp, #0E1F3D); color: #fff; font: 600 12px "Plus Jakarta Sans", sans-serif; }
.tdb .tdc-tools input { width: 220px; } .tdb .tdc-tools select { padding-right: 26px; }
.tdb .tdc-empty { display: flex; flex-direction: column; align-items: center; padding: 44px 20px 48px; text-align: center; }
.tdb .tdc-empty h3 { margin: 16px 0 0; font: 700 15px/1.3 Sora, sans-serif; color: #fff; letter-spacing: 0; }
.tdb .tdc-empty p { max-width: 460px; margin: 6px 0 0; color: #A9B4C6; font-size: 12.5px; }
.tdb .tdc-empty .tdb-btn { min-height: 38px; margin-top: 16px; border-radius: 5px; box-shadow: none; font-size: 13px; }
.tdb .tdc-ill { position: relative; display: block; width: 110px; height: 70px; }
.tdb .tdc-ill i { position: absolute; width: 84px; height: 22px; border: 1px solid rgba(185,212,255,.25); border-radius: 3px; background: #1B335C; }
.tdb .tdc-ill i::after { content: ""; position: absolute; left: 22px; top: 9px; width: 40px; height: 3px; border-radius: 2px; background: rgba(185,212,255,.3); }
.tdb .tdc-ill i:nth-child(1) { left: 0; top: 0; } .tdb .tdc-ill i:nth-child(2) { left: 9px; top: 15px; } .tdb .tdc-ill i:nth-child(3) { left: 18px; top: 30px; }
.tdb .tdc-ill b { position: absolute; right: 0; bottom: 0; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #2DD4BF; color: #0A1730; font-size: 15px; line-height: 1; }
.tdb #certificates { margin-top: 16px; scroll-margin-top: 80px; }
@media (max-width: 1100px) { .tdb .tdc-samples { width: 360px; right: -40px; } }
@media (max-width: 900px) {
  .tdb .tdc-samples { display: none; }
  .tdb .tdc-banner { min-height: 0; } .tdb .tdc-btext { padding: 20px 16px; } .tdb .tdc-btext h2 { font-size: 20px; }
  .tdb .tdc-tabs { padding: 0 14px; gap: 18px; }
  .tdb .tdc-tools { width: 100%; } .tdb .tdc-tools input { flex: 1; width: auto; }
}

/* TUF-177: Rulebook - 1-Step and 2-Step side by side (TUF-rulebook-v4-both.png) */
.tdb .tdr2-page { max-width: 1000px; }
.tdb .tdr2-sizes { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tdb .tdr2-sizes > span { color: #CFD6E0; font-size: 12px; }
.tdb .tdr2-sizes .tdv-chips { margin: 0; }
.tdb .tdr2-sizes .tdv-chips button { padding: 6px 12px; font-size: 12px; }
.tdb .tdr2-switch { display: none; }
.tdb .tdr2-wrap { margin-top: 14px; overflow: hidden; }
.tdb .tdr2 { width: 100%; margin: 0; border: 0; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.tdb .tdr2 th, .tdb .tdr2 td { padding: 11px 18px; border: 0; border-bottom: 1px solid var(--vline); background: none; text-align: left; vertical-align: top; }
.tdb .tdr2 .tdr2-label { width: 300px; }
.tdb .tdr2 thead th { padding: 14px 18px; }
.tdb .tdr2 thead th b { display: block; color: #fff; font: 700 13px/1.2 Sora, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.tdb .tdr2 thead th span { display: block; margin-top: 3px; color: var(--vgrey); font: 600 10px/1.4 "Plus Jakarta Sans", sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.tdb .tdr2 .is-mine { background: rgba(45,212,191,.05); }
.tdb .tdr2 thead th.is-mine { box-shadow: inset 0 2px 0 #2DD4BF; }
.tdb .tdr2-mine { display: inline-block; margin-left: 6px; padding: 2px 6px; border-radius: 3px; background: rgba(45,212,191,.14); color: #5EEAD4; font-style: normal; font-weight: 800; letter-spacing: .08em; }
.tdb .tdr2-group th { padding: 9px 18px; background: rgba(255,255,255,.02); font: 800 9.5px/1.3 "Plus Jakarta Sans", sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.tdb .tdr2-group.is-pass th, .tdb .tdr2-group.is-funded th { color: #5EEAD4; } .tdb .tdr2-group.is-ends th { color: var(--vred); }
.tdb .tdr2 tbody th.tdr2-label b { display: block; color: #E4E9F1; font: 600 13px/1.3 "Plus Jakarta Sans", sans-serif; letter-spacing: 0; text-transform: none; }
.tdb .tdr2 tbody th.tdr2-label span { display: block; margin-top: 2px; color: var(--vgrey); font: 400 11.5px/1.4 "Plus Jakarta Sans", sans-serif; letter-spacing: 0; text-transform: none; }
.tdb .tdr2 td > b { display: block; color: #fff; font-size: 13px; font-weight: 700; }
.tdb .tdr2 td > span { display: block; margin-top: 2px; color: var(--vgrey); font-size: 11.5px; }
.tdb .tdr2 tbody tr:last-child th, .tdb .tdr2 tbody tr:last-child td { border-bottom: 0; }
.tdb .tdr2-lev { display: grid; grid-template-columns: auto 1fr; gap: 3px 14px; margin: 0; font-weight: 400; }
.tdb .tdr2-lev div { display: contents; } .tdb .tdr2-lev dt { color: #fff; font-weight: 700; } .tdb .tdr2-lev dd { margin: 0; color: #CFD6E0; font-weight: 400; }
/* phones: one challenge at a time, label above value */
@media (max-width: 700px) {
  .tdb .tdr2-switch { display: inline-flex; margin-top: 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 5px; overflow: hidden; }
  .tdb .tdr2-switch button { height: 30px; padding: 0 14px; border: 0; background: none; color: #CFD6E0; font: 700 12px "Plus Jakarta Sans", sans-serif; cursor: pointer; }
  .tdb .tdr2-switch button + button { border-left: 1px solid rgba(255,255,255,.12); }
  .tdb .tdr2-switch button[aria-checked=true] { background: rgba(45,212,191,.12); color: #5EEAD4; }
  .tdb .tdr2-wrap { margin-top: 10px; }
  .tdb .tdr2, .tdb .tdr2 thead, .tdb .tdr2 tbody, .tdb .tdr2 tr, .tdb .tdr2 th, .tdb .tdr2 td { display: block; width: 100% !important; }
  .tdb .tdr2 thead th.tdr2-label { display: none; }
  .tdb .tdr2[data-show="0"] [data-col="1"], .tdb .tdr2[data-show="1"] [data-col="0"] { display: none; }
  .tdb .tdr2 tbody tr:not(.tdr2-group) { padding: 10px 14px; border-bottom: 1px solid var(--vline); }
  .tdb .tdr2 tbody tr:not(.tdr2-group) th, .tdb .tdr2 tbody tr:not(.tdr2-group) td { padding: 0; border: 0; background: none; }
  .tdb .tdr2 tbody td { margin-top: 5px; }
  .tdb .tdr2 thead th { padding: 12px 14px; }
  .tdb .tdr2-group th { padding: 9px 14px; }
}

/* TUF-178: Accounts - the landing list: cards (default) with the right rail, or a table; same flat style */
.tdb .tdv-abar3 { margin-top: 14px; }
.tdb .tdv-atools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tdb .tdv-atools select { width: auto; height: 32px; padding: 0 26px 0 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 5px; background: var(--vp, #0E1F3D); color: #fff; font: 700 12px "Plus Jakarta Sans", sans-serif; }
.tdb .tdv-vtoggle { display: inline-flex; border: 1px solid rgba(255,255,255,.14); border-radius: 5px; overflow: hidden; }
.tdb .tdv-vtoggle button { display: grid; place-items: center; width: 34px; height: 30px; padding: 0; border: 0; background: var(--vp, #0E1F3D); color: #8F9BB0; cursor: pointer; }
.tdb .tdv-vtoggle button + button { border-left: 1px solid rgba(255,255,255,.14); }
.tdb .tdv-vtoggle button[aria-checked=true] { background: rgba(45,212,191,.14); color: #5EEAD4; }
.tdb .tdv-alay { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 12px; }
.tdb .tdv-alay.has-rail { grid-template-columns: minmax(0, 1fr) 300px; }
.tdb .tdv-cards { display: flex; flex-direction: column; gap: 12px; }
.tdb .tdv-acard { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px 22px; align-items: start; padding: 20px 22px; }
.tdb .tdv-ctag { display: flex; flex-direction: column; min-width: 150px; border: 1px solid rgba(45,212,191,.45); border-radius: 5px; }
.tdb .tdv-ctag > div { padding: 10px 14px; } .tdb .tdv-ctag span { display: block; font-size: 11px; color: #CFE0F5; } .tdb .tdv-ctag b { display: block; margin-top: 2px; font: 700 20px/1.15 Sora, sans-serif; color: #fff; }
.tdb .tdv-ctag p { margin: 0; padding: 6px 14px; border-top: 1px solid rgba(45,212,191,.35); color: #5EEAD4; font: 800 9px/1.3 "Plus Jakarta Sans", sans-serif; letter-spacing: .16em; }
.tdb .tdv-ctag.is-funded { background: rgba(45,212,191,.1); }
.tdb .tdv-ctag.is-breached { border-color: rgba(255,138,142,.5); background: rgba(255,138,142,.05); } .tdb .tdv-ctag.is-breached p { color: var(--vred); border-top-color: rgba(255,138,142,.35); }
.tdb .tdv-k2 { margin: 2px 0 0; color: #CFD6E0; font-size: 12px; }
.tdb .tdv-cbal { margin: 2px 0 8px; font: 700 24px/1.2 Sora, sans-serif; color: #fff; }
.tdb .tdv-acard.is-breached .tdv-cbal { color: #A9B4C6; }
.tdb .tdv-cchips { display: flex; flex-wrap: wrap; gap: 6px; }
.tdb .tdv-cchip { padding: 3px 8px; border-radius: 3px; background: rgba(255,255,255,.06); color: #E4E9F1; font-size: 11.5px; font-weight: 600; }
.tdb .tdv-cchip.is-up { background: rgba(45,212,191,.12); color: #5EEAD4; } .tdb .tdv-cchip.is-down, .tdb .tdv-cchip.is-risk { background: rgba(255,138,142,.12); color: var(--vred); }
.tdb .tdv-copen { min-height: 34px; padding: 0 16px; border-radius: 5px; box-shadow: none; font-size: 13px; }
.tdb .tdv-cview { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 5px; color: #fff; font-weight: 700; font-size: 13px; text-decoration: none; }
.tdb .tdv-cview:hover { border-color: #2DD4BF; }
.tdb .tdv-cstrip { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 18px; padding-top: 14px; border-top: 1px solid var(--vline); }
.tdb .tdv-cfig { margin: 4px 0 6px; color: #fff; font: 700 14px/1.2 Sora, sans-serif; }
.tdb .tdv-cw { font-size: 11px; font-weight: 800; letter-spacing: .04em; } .tdb .tdv-cw.is-ok { color: #5EEAD4; } .tdb .tdv-cw.is-warn { color: var(--vamber); } .tdb .tdv-cw.is-risk { color: var(--vred); }
.tdb .tdv-cbar { display: block; height: 4px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.tdb .tdv-cbar span { display: block; height: 100%; background: #2DD4BF; } .tdb .tdv-cbar.is-warn span { background: var(--vamber); } .tdb .tdv-cbar.is-risk span { background: var(--vred); }
/* the rail */
.tdb .tdv-rail { display: flex; flex-direction: column; gap: 12px; }
.tdb .tdv-rail h3 { margin: 0; font: 700 14px/1.3 Sora, sans-serif; color: #fff; letter-spacing: 0; }
.tdb .tdv-rpromo { padding: 16px 18px; background: linear-gradient(135deg, #14335A, #0E1F3D 70%); }
.tdb .tdv-rpromo h3 { margin-top: 4px; font-size: 16px; } .tdb .tdv-rpromo > p:not(.tdc-eyebrow) { margin: 4px 0 0; color: #CFD6E0; font-size: 12px; }
.tdb .tdv-rcode { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.tdb .tdv-codebtn { padding: 6px 10px; border: 1px dashed rgba(45,212,191,.7); border-radius: 3px; background: none; color: #5EEAD4; font: 800 12px "Plus Jakarta Sans", sans-serif; letter-spacing: .04em; cursor: pointer; }
.tdb .tdv-rcode a, .tdb .tdv-rhead a { color: #5EEAD4; font-weight: 700; font-size: 12px; text-decoration: none; }
.tdb .tdv-rnews, .tdb .tdv-rlinks { padding: 16px 18px; }
.tdb .tdv-rhead { display: flex; justify-content: space-between; align-items: baseline; }
.tdb .tdv-rdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin: 12px 0 8px; padding: 0; list-style: none; text-align: center; }
.tdb .tdv-rdays span { display: block; color: #8F9BB0; font-size: 9px; font-weight: 700; letter-spacing: .06em; }
.tdb .tdv-rdays b { display: grid; place-items: center; width: 26px; height: 26px; margin: 3px auto; border-radius: 50%; color: #fff; font-size: 12.5px; }
.tdb .tdv-rdays .is-today b { background: #2DD4BF; color: #0A1730; }
.tdb .tdv-rdays i { display: flex; justify-content: center; gap: 2px; height: 5px; }
.tdb .tdv-rdays em, .tdb .tdv-revents em { display: inline-block; width: 5px; height: 5px; border-radius: 50%; }
.tdb .tdv-rdays em.is-high, .tdb .tdv-revents em.is-high { background: var(--vred); } .tdb .tdv-rdays em.is-med { background: var(--vamber); }
.tdb .tdv-revents { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--vline); }
.tdb .tdv-revents li { display: grid; grid-template-columns: 44px 8px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--vline); font-size: 12px; }
.tdb .tdv-revents span { color: #8F9BB0; } .tdb .tdv-revents b { overflow: hidden; color: #fff; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.tdb .tdv-revents i { padding: 1px 5px; border-radius: 3px; background: rgba(255,255,255,.08); color: #CFD6E0; font-size: 10px; font-style: normal; font-weight: 800; }
.tdb .tdv-rnote { margin: 8px 0 0; color: #8F9BB0; font-size: 11px; }
.tdb .tdv-rlinks ul { margin: 8px 0 0; padding: 0; list-style: none; }
.tdb .tdv-rlinks a { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--vline); color: #E4E9F1; font-size: 13px; text-decoration: none; }
.tdb .tdv-rlinks li:last-child a { border-bottom: 0; } .tdb .tdv-rlinks a span { color: #5EEAD4; } .tdb .tdv-rlinks a:hover { color: #5EEAD4; }
@media (max-width: 1200px) { .tdb .tdv-alay.has-rail { grid-template-columns: minmax(0, 1fr); } .tdb .tdv-rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
/* phones: one column, cards only, the objectives strip 2 x 2, no rail */
@media (max-width: 900px) {
  .tdb .tdv-vtoggle, .tdb .tdv-rail { display: none; }
  .tdb .tdv-acard { grid-template-columns: minmax(0, 1fr) auto; padding: 16px 14px; }
  .tdb .tdv-ctag { grid-column: 1; min-width: 0; align-self: start; }
  .tdb .tdv-cact { grid-column: 2; grid-row: 1; }
  .tdb .tdv-cmain { grid-column: 1 / -1; }
  .tdb .tdv-cstrip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}

/* TUF-179: header - the bell without a box; the profile pill (avatar + ▾, the first name slides out on hover/focus/open) */
.tdk-bell { border: 0; background: none; width: 34px; }
.tdk-bell:hover, .tdk-bell[aria-expanded=true] { background: rgba(255,255,255,.05); border: 0; }
.tdk-pill { display: inline-flex; align-items: center; gap: 0; height: 36px; padding: 0 9px 0 3px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(255,255,255,.03); color: #fff; cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.tdk-av { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(145deg, #1B335C, #0A1730); box-shadow: inset 0 0 0 1px rgba(94,234,212,.55); color: #fff; font: 700 13px/1 Sora, sans-serif; font-style: normal; }
.tdk-av.is-lg { width: 44px; height: 44px; font-size: 17px; }
.tdk-pname { max-width: 0; overflow: hidden; opacity: 0; white-space: nowrap; font: 700 13px/1 "Plus Jakarta Sans", sans-serif; transition: max-width .2s ease, opacity .2s ease, margin .2s ease; }
.tdk-pcaret { margin-left: 6px; color: #8F9BB0; font-size: 10px; }
@media (hover: hover) {
  .tdk-pill:hover, .tdk-pill:focus-visible, .tdk-pill[aria-expanded=true] { border-color: rgba(94,234,212,.4); background: rgba(45,212,191,.06); }
  .tdk-pill:hover .tdk-pname, .tdk-pill:focus-visible .tdk-pname, .tdk-pill[aria-expanded=true] .tdk-pname { max-width: 140px; opacity: 1; margin-left: 9px; }
}
.tdk-pill[aria-expanded=true] { border-color: rgba(94,234,212,.4); }
.tdk-me2menu { width: 280px; min-width: 0; padding: 6px; border: 1px solid rgba(255,255,255,.08); border-radius: 5px; background: #12264A; box-shadow: 0 20px 44px -18px rgba(0,0,0,.75); }
.tdk-me2menu .tdk-me2who { display: flex; align-items: center; gap: 12px; margin: 0; padding: 10px 10px 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
.tdk-me2who p { margin: 0; min-width: 0; } .tdk-me2who b { display: block; color: #fff; font-size: 14px; } .tdk-me2who small { display: block; overflow: hidden; color: #A9B4C6; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.tdk-me2menu a, .tdk-me2menu button { display: flex !important; align-items: center; gap: 10px; width: 100%; padding: 9px 10px !important; border-radius: 5px; color: #E4E9F1; font: 600 13.5px "Plus Jakarta Sans", sans-serif; }
.tdk-me2menu a svg, .tdk-me2menu button svg { color: #8F9BB0; flex: none; }
.tdk-me2menu a span, .tdk-me2menu button span { flex: 1; text-align: left; }
.tdk-me2menu em { color: #8F9BB0; font-style: normal; font-size: 12px; }
.tdk-me2menu a:hover, .tdk-me2menu button:hover { background: rgba(255,255,255,.05) !important; }
.tdk-me2menu hr { margin: 6px 0; border: 0; border-top: 1px solid rgba(255,255,255,.08); }
.tdk-me2menu .is-out, .tdk-me2menu .is-out svg { color: #F0717C; }
@media (max-width: 900px) { .tdk-me2 { display: block; } .tdk-me2menu { position: fixed; right: 8px; left: auto; top: 58px; } }

/* TUF-179: Certificates - real certificates in the banner and the grid */
.tdb .tdc-samples { width: 520px; }
.tdb .tdc-real { position: absolute; width: 300px; overflow: hidden; border: 1px solid rgba(45,212,191,.55); border-radius: 4px; box-shadow: 0 18px 44px -14px rgba(0,0,0,.65), 0 0 60px -12px rgba(45,212,191,.5); }
.tdb .tdc-real.is-back { left: 0; top: 64px; transform: rotate(-6deg); opacity: .85; }
.tdb .tdc-real.is-front { right: 0; top: 22px; transform: rotate(3deg); }
.tdb .tdc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tdb .tdc-card { overflow: hidden; }
.tdb .tdc-prev { position: relative; overflow: hidden; border-bottom: 1px solid var(--vline); }
.tdb .tdc-info { padding: 14px 16px 16px; }
.tdb .tdc-irow { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.tdb .tdc-irow h3 { margin: 0; font: 700 14px/1.3 Sora, sans-serif; color: #fff; letter-spacing: 0; } .tdb .tdc-irow span { color: #A9B4C6; font-size: 12px; white-space: nowrap; }
.tdb .tdc-info > p { margin: 4px 0 0; color: #A9B4C6; font-size: 12px; }
.tdb .tdc-btns { display: flex; gap: 8px; margin-top: 12px; }
.tdb .tdc-btns .tdb-btn { min-height: 34px; padding: 0 16px; border-radius: 5px; box-shadow: none; font-size: 13px; }
.tdb .tdc-btns .tdv-btn2 { height: 34px; }
.tdb .tdc-info .tdc-msg { color: #FF8A8E; } .tdb .tdc-msg:empty { display: none; }
@media (max-width: 1250px) { .tdb .tdc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tdb .tdc-samples { width: 420px; } .tdb .tdc-real { width: 240px; } }
@media (max-width: 700px) { .tdb .tdc-grid { grid-template-columns: minmax(0, 1fr); } }

/* TUF-181: sort toggle - one button, same style as the other toolbar buttons */
.tdb .tdv-sortbtn { gap: 7px; }
.tdb .tdv-sortbtn svg { color: #A9B4C6; }

/* TUF-181: colours - green / amber / red for P&L, progress and risk; teal only for actions, selection and the brand.
   The tokens below are the only place these values live. */
.tdb { --gain: #4ADE80; --gain-tint: rgba(74,222,128,.13); --caution: #F5B041; --caution-tint: rgba(245,176,65,.15); --loss: #F0717C; --loss-tint: rgba(240,113,124,.13); }
.tdb .tdv { --vred: var(--loss); --vamber: var(--caution); }
/* P&L figures and chips: green up, red down */
.tdb .is-up, .tdb .tdv .is-up { color: var(--gain) !important; }
.tdb .is-down, .tdb .tdv .is-down { color: var(--loss) !important; }
.tdb .tdv-cchip.is-up { background: var(--gain-tint); color: var(--gain); }
.tdb .tdv-cchip.is-down, .tdb .tdv-cchip.is-risk { background: var(--loss-tint); color: var(--loss); }
/* SAFE / CAUTION / AT RISK and their bars */
.tdb .tdv-lbar span, .tdb .tdv-cbar span, .tdb .tdv-abar span { background: var(--gain); }
.tdb .tdv-lbar.is-warn span, .tdb .tdv-cbar.is-warn span { background: var(--caution); }
.tdb .tdv-lbar.is-risk span, .tdb .tdv-cbar.is-risk span { background: var(--loss); }
.tdb .tdv-lfoot .is-ok, .tdb .tdv-ostate.is-ok, .tdb .tdv-cw.is-ok, .tdb .tdv-lw.is-ok { color: var(--gain) !important; }
.tdb .tdv-lfoot .is-warn, .tdb .tdv-ostate.is-warn, .tdb .tdv-cw.is-warn, .tdb .tdv-lw.is-warn { color: var(--caution) !important; }
.tdb .tdv-lfoot .is-risk, .tdb .tdv-ostate.is-risk, .tdb .tdv-cw.is-risk, .tdb .tdv-lw.is-risk { color: var(--loss) !important; }
.tdb .tdv-segbar.is-ok i.is-on { background: var(--gain); } .tdb .tdv-segbar.is-warn i.is-on { background: var(--caution); } .tdb .tdv-segbar.is-risk i.is-on { background: var(--loss); }
/* trading days: green tick, red cross */
.tdb .tdv-days li.is-up { background: var(--gain); } .tdb .tdv-days li.is-down { background: var(--loss); }
.tdb .tdv-dots2 li.is-up { border-color: var(--gain); } .tdb .tdv-dots2 li.is-up::after { border-color: var(--gain); }
.tdb .tdv-dots2 li.is-down { border-color: var(--loss); } .tdb .tdv-dots2 li.is-down::before, .tdb .tdv-dots2 li.is-down::after { background: var(--loss); }
/* status badges: green for good states (ACTIVE, CLEAN, PAID), amber caution, red breach; FUNDED keeps the teal tag */
.tdb .tdv-badge.is-live, .tdb .tdv-badge.is-ok { background: var(--gain-tint); color: var(--gain); }
.tdb .tdv-badge.is-warn { background: var(--caution-tint); color: var(--caution); }
.tdb .tdv-badge.is-risk { background: var(--loss-tint); color: var(--loss); }
.tdb .tdv-side.is-buy { background: var(--gain-tint); color: var(--gain); } .tdb .tdv-side.is-sell { background: var(--loss-tint); color: var(--loss); }
/* calendar: green profitable day, red losing day */
.tdb .tdv-cday.is-up { background: var(--gain-tint); box-shadow: inset 0 2px 0 var(--gain); }
.tdb .tdv-cday.is-down { background: var(--loss-tint); box-shadow: inset 0 2px 0 var(--loss); }
.tdb .tdv-cday.is-today.is-up { box-shadow: inset 0 0 0 1px #2DD4BF, inset 0 3px 0 var(--gain); }
.tdb .tdv-calegend li.is-up::before { background: var(--gain); } .tdb .tdv-calegend li.is-down::before { background: var(--loss); }
/* payouts checklist: done green, current amber */
.tdb .tdv-steps li.is-done .tdv-stepm { background: var(--gain); } .tdb .tdv-steps li.is-now .tdv-stepm { background: var(--caution); } .tdb .tdv-steps li.is-now { background: var(--caution-tint); }
/* breaches and news impact */
.tdb .tdv-breach { border-color: var(--loss); background: var(--loss-tint); color: #FFD3D7; } .tdb .tdv-breach b { color: var(--loss); }
.tdb .tdv-ctag.is-breached { border-color: var(--loss); background: var(--loss-tint); } .tdb .tdv-ctag.is-breached p { color: var(--loss); border-top-color: var(--loss-tint); }
.tdb .tdv-imp.is-high::before, .tdb .tdv-rdays em.is-high, .tdb .tdv-revents em.is-high { background: var(--loss); }
.tdb .tdv-imp.is-med::before, .tdb .tdv-rdays em.is-med { background: var(--caution); }
.tdk-bico2.is-ok { background: var(--gain-tint); color: var(--gain); } .tdk-bico2.is-risk { background: var(--loss-tint); color: var(--loss); } .tdk-bico2.is-warn { background: var(--caution-tint); color: var(--caution); }
.tdk-bellcount { background: var(--loss); }

/* TUF-180: account status colours and the table's View button */
.tdb { --info: #60A5FA; --info-tint: rgba(96,165,250,.13); }
.tdb .tdv-badge.is-info { background: var(--info-tint); color: var(--info); }
.tdb .tdv-badge.is-gain { background: var(--gain-tint); color: var(--gain); }
.tdb .tdv-badge.is-funded { background: var(--gain-tint); color: var(--gain); box-shadow: inset 0 0 0 1px rgba(74,222,128,.3); }
.tdb .tdv-ctag.is-funded { background: var(--gain-tint); border-color: rgba(74,222,128,.55); }
.tdb .tdv-ctag.is-funded p { color: var(--gain); border-top-color: rgba(74,222,128,.35); }
.tdb .tdv-vbtn { display: inline-flex; align-items: center; justify-content: center; height: 30px; padding: 0 16px; border-radius: 5px; font: 700 12px/1 "Plus Jakarta Sans", sans-serif; text-decoration: none; white-space: nowrap; }
.tdb .tdv-vbtn.is-solid { background: #2DD4BF; color: #0A1730; } .tdb .tdv-vbtn.is-solid:hover { background: #22C4AF; }
.tdb .tdv-vbtn.is-outline { border: 1px solid rgba(255,255,255,.22); color: #fff; } .tdb .tdv-vbtn.is-outline:hover { border-color: #2DD4BF; }
.tdb .tdv-arow2.is-breached td.tdv-acol { opacity: 1; }
@media (max-width: 900px) { .tdb .tdv-atable .tdv-acol { text-align: left; } }

/* TUF-180: flat buttons across the dashboard (and its sign-in pages) - solid teal with navy text, or flat outline; no glow,
   gradient, lift or brightness filter. Hover is a slightly lighter teal. Keyboard focus keeps a plain outline. */
.tdb { --btn-teal: #2DD4BF; --btn-teal-hover: #4FDDCB; --btn-ink: #0A1730; }
.tdb .tdb-btn-primary, .tdb .tuf-btn-primary, .tdb a.tuf-btn-primary, .tdb .tdv-vbtn.is-solid, .tdb .tdv-copen, .tdb .tdv-txdl,
.tdb .tda-btn.tda-btn-primary, .tdb .tda[data-theme=dark] .tda-btn.tda-btn-primary, .tda .tda-btn.tda-btn-primary {
  background: var(--btn-teal) !important; background-image: none !important; box-shadow: none !important; filter: none !important; transform: none !important; color: var(--btn-ink) !important; border: 0; }
.tdb .tdb-btn-primary:hover, .tdb .tuf-btn-primary:hover, .tdb a.tuf-btn-primary:hover, .tdb .tdv-vbtn.is-solid:hover, .tdb .tdv-copen:hover, .tdb .tdv-txdl:hover,
.tdb .tda-btn.tda-btn-primary:hover:not(:disabled), .tda .tda-btn.tda-btn-primary:hover:not(:disabled) { background: var(--btn-teal-hover) !important; box-shadow: none !important; filter: none !important; transform: none !important; }
.tdb .tdb-btn-primary:active, .tdb .tuf-btn-primary:active { box-shadow: none !important; transform: none !important; }
.tdb .tdb-btn, .tdb .tdv-btn2, .tdb .tdv-cview, .tdb .tdv-vbtn, .tdb .tdk-btn-outline, .tdb .tdb-code-btn, .tdb .tdk-dbtns a, .tdb .tdk-dbtns button { box-shadow: none !important; background-image: none !important; filter: none !important; transform: none !important; }
.tdb .tdb-btn-primary:focus-visible, .tdb .tuf-btn-primary:focus-visible, .tdb .tdv-vbtn:focus-visible, .tdb .tdv-btn2:focus-visible, .tda .tda-btn.tda-btn-primary:focus-visible { outline: 2px solid #9FF5E8; outline-offset: 2px; box-shadow: none !important; }
.tdb .tda-btn.tda-btn-primary:disabled::before, .tda .tda-btn.tda-btn-primary::before, .tda .tda-btn.tda-btn-primary::after { box-shadow: none; }
/* TUF-183: the date range picker - presets left, a one-month calendar right; a bottom sheet on phones */
.tdb .tdv-dp { position: relative; display: inline-flex; align-items: center; }
.tdb .tdv-dpbtn { gap: 7px; }
.tdb .tdv-dpbtn svg { flex: none; color: #CFD6E0; }
.tdb .tdv-dp.is-on .tdv-dpbtn { padding-right: 32px; border-color: #2DD4BF; }
.tdb .tdv-dpx { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; padding: 0; border: 0; border-radius: 5px; background: none; color: #CFD6E0; font: 700 11px/1 "Plus Jakarta Sans", sans-serif; cursor: pointer; }
.tdb .tdv-dpx:hover { color: #fff; background: rgba(255,255,255,.08); }
.tdb .tdv-dpback { display: none; }
.tdb .tdv-dppop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 560px; max-width: calc(100vw - 32px); background: #0F1E3D; border: 1px solid rgba(255,255,255,.1); border-radius: 5px; box-shadow: 0 24px 48px -16px rgba(0,0,0,.65); color: #fff; font-family: "Plus Jakarta Sans", sans-serif; text-align: left; }
.tdb .tdv-dpbody { display: grid; grid-template-columns: 150px minmax(0, 1fr); }
.tdb .tdv-dppre { margin: 0; padding: 12px 0; list-style: none; border-right: 1px solid rgba(255,255,255,.08); }
.tdb .tdv-dppre button { display: block; width: 100%; padding: 9px 16px; border: 0; border-left: 3px solid transparent; background: none; color: #CFD6E0; font: 600 13px/1.2 "Plus Jakarta Sans", sans-serif; text-align: left; cursor: pointer; }
.tdb .tdv-dppre button:hover { color: #fff; background: rgba(255,255,255,.04); }
.tdb .tdv-dppre button[aria-selected=true] { border-left-color: #2DD4BF; background: rgba(45,212,191,.1); color: #2DD4BF; }
.tdb .tdv-dpcal { padding: 14px 16px 12px; }
.tdb .tdv-dpnav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.tdb .tdv-dpnav b { font: 700 14px/1 Sora, sans-serif; }
.tdb .tdv-dpnav button { width: 28px; height: 28px; padding: 0; border: 1px solid rgba(255,255,255,.14); border-radius: 5px; background: none; color: #fff; font: 700 15px/1 "Plus Jakarta Sans", sans-serif; cursor: pointer; }
.tdb .tdv-dpnav button:disabled { opacity: .3; cursor: default; }
.tdb .tdv-dpgrid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 3px; }
.tdb .tdv-dpwd { padding: 4px 0 6px; color: #8F9BB0; font: 700 10px/1 "Plus Jakarta Sans", sans-serif; letter-spacing: .08em; text-transform: uppercase; text-align: center; }
.tdb .tdv-dpgrid button { height: 32px; padding: 0; border: 1px solid transparent; border-radius: 0; background: none; color: #fff; font: 700 12px/1 "Plus Jakarta Sans", sans-serif; cursor: pointer; }
.tdb .tdv-dpgrid button:hover:not(:disabled):not(.is-end) { background: rgba(255,255,255,.06); }
.tdb .tdv-dpgrid button.is-out { color: #8F9BB0; opacity: .7; }
.tdb .tdv-dpgrid button:disabled { color: #8F9BB0; opacity: .35; cursor: default; }
.tdb .tdv-dpgrid button.is-mid { background: rgba(45,212,191,.14); }
.tdb .tdv-dpgrid button.is-today { border-color: #2DD4BF; border-radius: 5px; }
.tdb .tdv-dpgrid button.is-end { background: #2DD4BF; color: #0A1730; border-radius: 5px; }
.tdb .tdv-dpgrid button:focus-visible { outline: 2px solid #5EEAD4; outline-offset: -2px; }
.tdb .tdv-dpfoot { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.08); }
.tdb .tdv-dpfoot p { flex: 1; margin: 0; color: #8F9BB0; font-size: 12px; }
.tdb .tdv-dpfoot p b { color: #fff; }
.tdb .tdv-dpclear { padding: 8px 10px; border: 0; background: none; color: #CFD6E0; font: 700 12px/1 "Plus Jakarta Sans", sans-serif; cursor: pointer; }
.tdb .tdv-dpclear:hover { color: #fff; }
.tdb .tdv-dpapply { height: 34px; padding: 0 18px; border: 0; border-radius: 5px; background: var(--btn-teal, #2DD4BF); color: var(--btn-ink, #0A1730); font: 700 13px/1 "Plus Jakarta Sans", sans-serif; cursor: pointer; box-shadow: none; }
.tdb .tdv-dpapply:hover { background: var(--btn-teal-hover, #4FDDCB); }
@media (max-width: 640px) {
  .tdb .tdv-dpback { display: block; position: fixed; inset: 0; z-index: 90; background: rgba(4,10,24,.6); }
  .tdb .tdv-dppop { position: fixed; left: 0; right: 0; top: auto; bottom: 0; z-index: 91; width: 100%; max-width: none; max-height: 92vh; overflow-y: auto; border-radius: 5px 5px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .tdb .tdv-dpbody { display: block; }
  .tdb .tdv-dppre { display: flex; gap: 8px; padding: 14px 16px; overflow-x: auto; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); scrollbar-width: none; }
  .tdb .tdv-dppre::-webkit-scrollbar { display: none; }
  .tdb .tdv-dppre button { width: auto; white-space: nowrap; padding: 8px 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 5px; }
  .tdb .tdv-dppre button[aria-selected=true] { border-color: #2DD4BF; }
  .tdb .tdv-dpgrid button { height: 40px; }
  .tdb .tdv-dpfoot { flex-wrap: wrap; }
  .tdb .tdv-dpfoot p { flex-basis: 100%; }
  .tdb .tdv-dpapply { flex: 1; height: 42px; }
}
body:has(.tdv-dppop) .intercom-lightweight-app-launcher { display: none !important; }   /* TUF-183: the phone sheet's Apply button stays clear */
/* TUF-187: the Platform button couldn't sign in - a short message with a retry */
.tdb .tdk-ptoast { position: fixed; right: 20px; bottom: 20px; z-index: 95; display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 40px); padding: 12px 12px 12px 16px; background: #0F1E3D; border: 1px solid rgba(240,113,124,.45); border-radius: 5px; box-shadow: 0 18px 40px -16px rgba(0,0,0,.7); color: #fff; font: 500 13px/1.4 "Plus Jakarta Sans", sans-serif; }
.tdb .tdk-ptoast p { margin: 0; color: #CFD6E0; }
.tdb .tdk-ptoast p b { color: #fff; }
.tdb .tdk-ptoast .tdb-btn { flex: none; height: 34px; padding: 0 14px; font-size: 13px; }
.tdb .tdk-ptx { flex: none; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 5px; background: none; color: #CFD6E0; cursor: pointer; }
.tdb .tdk-ptx:hover { color: #fff; background: rgba(255,255,255,.08); }
@media (max-width: 640px) { .tdb .tdk-ptoast { left: 12px; right: 12px; bottom: 12px; flex-wrap: wrap; } .tdb .tdk-ptoast p { flex-basis: calc(100% - 40px); } }
body:has(.tdk-ptoast) .intercom-lightweight-app-launcher { display: none !important; }
/* TUF-190: the equity chart and the trading-data error line */
.tdb .tdv-eqchart { margin-top: 12px; min-height: 150px; }
.tdb .tdv-eqsvg { display: block; width: 100%; height: auto; overflow: visible; }
.tdb .tdv-eqline { fill: none; stroke: #2DD4BF; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.tdb .tdv-eqarea { fill: rgba(45,212,191,.08); stroke: none; }
.tdb .tdv-eqdot { fill: #2DD4BF; stroke: #0E1F3D; stroke-width: 2; }
.tdb line.tdv-eqtarget { stroke: var(--gain, #4ADE80); stroke-dasharray: 4 4; stroke-width: 1; vector-effect: non-scaling-stroke; }
.tdb line.tdv-eqfloor { stroke: var(--loss, #F0717C); stroke-dasharray: 4 4; stroke-width: 1; vector-effect: non-scaling-stroke; }
.tdb text.tdv-eqtarget { fill: var(--gain, #4ADE80); font: 700 10px "Plus Jakarta Sans", sans-serif; }
.tdb text.tdv-eqfloor { fill: var(--loss, #F0717C); font: 700 10px "Plus Jakarta Sans", sans-serif; }
.tdb .tdv-eqtick { fill: #8F9BB0; font: 600 10px "Plus Jakarta Sans", sans-serif; }
.tdb .tdv-loaderr { margin: 0 0 10px; padding: 8px 12px; border: 1px solid rgba(245,176,65,.35); border-radius: 5px; background: rgba(245,176,65,.08); color: #F5D9A8; font-size: 12px; }
.tdb .tdv-loaderr .tdv-linkbtn { margin-left: 4px; color: #fff; text-decoration: underline; }
.tdb .tdv-panel > .tdv-loaderr { margin: 12px; }
/* TUF-192: Profile & settings */
.tdb .tdk-av.has-photo { overflow: hidden; padding: 0; } .tdb .tdk-av.has-photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.tdb .tdp-page { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.tdb .tdp-nav { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 4px; }
.tdb .tdp-nav a { display: block; padding: 10px 14px; border-left: 3px solid transparent; border-radius: 5px; color: #CFD6E0; font: 700 14px/1.2 "Plus Jakarta Sans", sans-serif; text-decoration: none; }
.tdb .tdp-nav a:hover { color: #fff; background: rgba(255,255,255,.03); }
.tdb .tdp-nav a[aria-current] { border-left-color: #2DD4BF; background: rgba(45,212,191,.1); color: #2DD4BF; }
.tdb .tdp-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.tdb .tdp-sec { padding: 26px 28px; scroll-margin-top: 84px; }
.tdb .tdp-sec h2 { margin: 0; font-size: 17px; }
.tdb .tdp-lead { margin: 4px 0 18px; color: #8F9BB0; font-size: 13px; }
.tdb .tdp-photo { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; }
.tdb .tdp-av { flex: none; display: grid; place-items: center; width: 84px; height: 84px; border: 2px solid rgba(45,212,191,.55); border-radius: 50%; background: linear-gradient(135deg, #1B3A66, #10284A); overflow: hidden; }
.tdb .tdp-av b { color: #fff; font: 800 30px/1 Sora, sans-serif; } .tdb .tdp-av img { width: 100%; height: 100%; object-fit: cover; }
.tdb .tdp-pbtns { display: flex; align-items: center; gap: 14px; }
.tdb .tdp-upload { cursor: pointer; height: 36px; padding: 0 16px; font-size: 13px; }
.tdb .tdp-upload:focus-within { outline: 2px solid #5EEAD4; outline-offset: 2px; }
.tdb .tdp-text { padding: 8px 4px; border: 0; background: none; color: #8F9BB0; font: 700 13px "Plus Jakarta Sans", sans-serif; cursor: pointer; }
.tdb .tdp-text:hover { color: #fff; }
.tdb .tdp-link { padding: 0; border: 0; background: none; color: #2DD4BF; font: inherit; cursor: pointer; text-decoration: none; } .tdb .tdp-link:hover { text-decoration: underline; }
.tdb .tdp-hint { margin: 6px 0 0; color: #8F9BB0; font-size: 12px; } .tdb .tdp-hint.is-err { color: var(--loss, #F0717C); }
.tdb .tdp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.tdb .tdp-f.is-wide { grid-column: 1 / -1; max-width: calc(50% - 10px); }
.tdb .tdp-f label { display: block; margin-bottom: 6px; color: #8F9BB0; font: 700 11px/1 "Plus Jakarta Sans", sans-serif; letter-spacing: .09em; text-transform: uppercase; }
.tdb .tdp-f input, .tdb .tdp-f select, .tdb .tdp-inline input { width: 100%; height: 44px; padding: 0 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 5px; background: #13274A; color: #fff; font: 500 14px "Plus Jakarta Sans", sans-serif; color-scheme: dark; }
.tdb .tdp-f input:focus, .tdb .tdp-f select:focus, .tdb .tdp-inline input:focus { outline: none; border-color: #2DD4BF; }
.tdb .tdp-f input[readonly] { color: #8F9BB0; cursor: default; }
.tdb .tdp-lock { position: relative; } .tdb .tdp-lock span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 13px; }
.tdb .tdp-err { margin: 6px 0 0; color: var(--loss, #F0717C); font-size: 12px; } .tdb .tdp-err:empty { display: none; }
.tdb .tdp-legal { margin-top: 18px; }
.tdb .tdp-acts { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-top: 18px; }
.tdb .tdp-acts .tdb-btn { height: 40px; padding: 0 18px; }
.tdb .tdp-saved { margin: 0 auto 0 0; color: #5EEAD4; font-size: 13px; font-weight: 700; } .tdb .tdp-saved:empty { display: none; }
.tdb .tdp-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.07); }
.tdb .tdp-row b { display: block; color: #fff; font-size: 14px; font-weight: 600; } .tdb .tdp-row span { display: block; margin-top: 2px; color: #8F9BB0; font-size: 12.5px; }
.tdb .tdp-row .tdv-btn2 { flex: none; height: 36px; }
.tdb .tdp-rowhint { margin: -8px 0 10px; }
.tdb .tdp-inline { margin: 0 0 14px; padding: 16px; border: 1px solid rgba(255,255,255,.08); border-radius: 5px; background: rgba(255,255,255,.02); }
.tdb .tdp-inline label { display: block; margin: 10px 0 6px; color: #8F9BB0; font-size: 12px; font-weight: 700; } .tdb .tdp-inline label:first-child { margin-top: 0; }
.tdb .tdp-inline input { max-width: 340px; }
.tdb .tdp-inline p { margin: 0 0 10px; color: #CFD6E0; font-size: 13px; }
.tdb .tdp-qr { display: block; width: 180px; height: 180px; margin: 6px 0 10px; padding: 8px; border-radius: 5px; background: #fff; }
.tdb .tdp-inline code { color: #fff; font-size: 12px; word-break: break-all; }
.tdb .tdp-switch { position: relative; flex: none; width: 46px; height: 26px; padding: 0; border: 0; border-radius: 13px; background: rgba(255,255,255,.14); cursor: pointer; transition: background .15s; }
.tdb .tdp-switch i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #CFD6E0; transition: transform .15s, background .15s; }
.tdb .tdp-switch[aria-checked=true] { background: #2DD4BF; } .tdb .tdp-switch[aria-checked=true] i { transform: translateX(20px); background: #0A1730; }
.tdb .tdp-switch:focus-visible { outline: 2px solid #5EEAD4; outline-offset: 2px; }
.tdb [data-nsaved] { margin: 8px 0 0; }
@media (max-width: 900px) {
  .tdb .tdp-page { grid-template-columns: 1fr; gap: 14px; }
  .tdb .tdp-nav { position: static; flex-direction: row; overflow-x: auto; gap: 6px; }
  .tdb .tdp-nav a { white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; border-radius: 5px 5px 0 0; padding: 9px 12px; }
  .tdb .tdp-nav a[aria-current] { border-bottom-color: #2DD4BF; }
}
@media (max-width: 640px) {
  .tdb .tdp-sec { padding: 20px 16px; }
  .tdb .tdp-grid { grid-template-columns: 1fr; } .tdb .tdp-f.is-wide { max-width: none; }
  .tdb .tdp-photo { gap: 14px; } .tdb .tdp-av { width: 68px; height: 68px; }
  .tdb .tdp-acts { flex-wrap: wrap; } .tdb .tdp-acts .tdb-btn { flex: 1; }
  .tdb .tdp-row { align-items: flex-start; }
}
/* TUF-196: production checkout not open yet */
.tdb .tdb-soon { margin-top: 12px; padding: 14px 16px; border: 1px solid rgba(45,212,191,.35); border-radius: 5px; background: rgba(45,212,191,.08); text-align: center; }
.tdb .tdb-soon b { display: block; color: #fff; font-size: 15px; } .tdb .tdb-soon span { display: block; margin-top: 4px; color: #8F9BB0; font-size: 12.5px; }
/* TUF-199: Accounts with no accounts - the welcome page */
.tdb .tdw-top { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.tdb .tdw-pick, .tdb .tdw-how { padding: 26px 28px; }
.tdb .tdw .tdc-eyebrow { margin: 0 0 14px; }
.tdb .tdw-seg { display: inline-flex; padding: 3px; border: 1px solid rgba(255,255,255,.12); border-radius: 5px; }
.tdb .tdw-seg button { padding: 8px 18px; border: 0; border-radius: 4px; background: none; color: #CFD6E0; font: 700 14px/1 "Plus Jakarta Sans", sans-serif; cursor: pointer; }
.tdb .tdw-seg button[aria-checked=true] { background: #2DD4BF; color: #0A1730; }
.tdb .tdw-sizes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tdb .tdw-sizes button { min-width: 64px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 5px; background: none; color: #fff; font: 700 14px/1 "Plus Jakarta Sans", sans-serif; cursor: pointer; }
.tdb .tdw-sizes button:hover { border-color: rgba(255,255,255,.3); }
.tdb .tdw-sizes button[aria-checked=true] { border-color: #fff; background: #fff; color: #0A1730; }
.tdb .tdw-seg button:focus-visible, .tdb .tdw-sizes button:focus-visible { outline: 2px solid #5EEAD4; outline-offset: 2px; }
.tdb .tdw-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 22px 0 18px; }
.tdb .tdw-price b { color: #fff; font: 800 44px/1 Sora, sans-serif; letter-spacing: -.01em; }
.tdb .tdw-price s { color: #8F9BB0; font-size: 16px; } .tdb .tdw-price span { color: #CFD6E0; font-size: 15px; }
.tdb .tdw-rules { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 20px; border: 1px solid rgba(255,255,255,.08); border-radius: 5px; }
.tdb .tdw-rules div { padding: 12px 16px; } .tdb .tdw-rules div + div { border-left: 1px solid rgba(255,255,255,.08); }
.tdb .tdw-rules dt { color: #8F9BB0; font-size: 12px; } .tdb .tdw-rules dd { margin: 4px 0 0; color: #fff; font-weight: 700; font-size: 15px; }
.tdb .tdw-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.tdb .tdw-acts .tdb-btn { height: 46px; padding: 0 22px; box-shadow: none; }
.tdb .tdw-cmp { height: 46px; padding: 0 20px; font-size: 14px; }
.tdb .tdw-code { margin: 0 0 0 auto; color: #8F9BB0; font-size: 13px; } .tdb .tdw-code b { margin-left: 6px; padding: 5px 9px; border: 1px dashed rgba(45,212,191,.6); border-radius: 5px; color: #2DD4BF; letter-spacing: .03em; }
.tdb .tdw-how ol { margin: 0; padding: 0; list-style: none; }
.tdb .tdw-how li { display: flex; gap: 16px; padding: 16px 0; } .tdb .tdw-how li + li { border-top: 1px solid rgba(255,255,255,.08); } .tdb .tdw-how li:first-child { padding-top: 4px; }
.tdb .tdw-n { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border: 1.5px solid #2DD4BF; border-radius: 50%; color: #2DD4BF; font: 700 13px/1 "Plus Jakarta Sans", sans-serif; }
.tdb .tdw-how b { color: #fff; font-size: 15px; } .tdb .tdw-how p { margin: 4px 0 0; color: #8F9BB0; font-size: 13.5px; line-height: 1.5; }
.tdb .tdw-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.tdb .tdw-link { display: block; padding: 24px 28px; color: inherit; text-decoration: none; }
.tdb .tdw-link:hover { border-color: rgba(45,212,191,.4); }
.tdb .tdw-link h3 { margin: 0; color: #fff; font: 800 21px/1.2 Sora, sans-serif; } .tdb .tdw-link p:last-child { margin: 8px 0 0; color: #8F9BB0; font-size: 13.5px; }
.tdb .tdw-link .tdc-eyebrow { margin-bottom: 8px; }
@media (max-width: 1100px) { .tdb .tdw-top { grid-template-columns: 1fr; } .tdb .tdw-links { grid-template-columns: 1fr; gap: 12px; } }
@media (max-width: 640px) {
  .tdb .tdw-pick, .tdb .tdw-how { padding: 20px 16px; } .tdb .tdw-link { padding: 18px 16px; }
  .tdb .tdw-price b { font-size: 36px; }
  .tdb .tdw-rules { grid-template-columns: 1fr 1fr; } .tdb .tdw-rules div:nth-child(3) { border-left: 0; } .tdb .tdw-rules div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.08); }
  .tdb .tdw-acts .tdb-btn, .tdb .tdw-cmp { flex: 1 1 100%; justify-content: center; } .tdb .tdw-code { margin: 0; }
}
