/* Test D shell (ui 3, 5 Nov 2026): the app's own font and tokens, the phone column, the bottom nav, the Note
   markers and the version footer. Every page includes this and shell.js. Static mockup, no app connection. */
@font-face { font-family: 'Manrope'; src: url('../assets/fonts/Manrope-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('../assets/fonts/Manrope-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('../assets/fonts/Manrope-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('../assets/fonts/Manrope-ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; }
:root {
  --td-font: 'Manrope', system-ui, sans-serif;
  --td-ink: #11102a;
  --td-ink-2: #545872;
  --td-ground: #f3f4fa;
  --td-card: #fff;
  --td-line: #e8eaf3;
  --td-radius: 20px;
  --td-gain: #12a150;
  --td-loss: #e5484d;
  --td-brand: #2f74f2;
  --td-gold: #ffd54a;
  --td-nav-h: 74px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: #dfe3ee; }
body {
  margin: 0 auto;
  max-width: 430px;
  min-height: 100vh;
  background: var(--td-ground);
  color: var(--td-ink);
  font: 500 15px/1.4 var(--td-font);
  -webkit-text-size-adjust: 100%;
  text-wrap: pretty;
  padding-bottom: calc(var(--td-nav-h) + 28px);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
.td-page { padding: 16px 16px 0; }
.td-card { background: var(--td-card); border-radius: var(--td-radius); }

/* the round back button (a page reached from another) */
.td-back {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: var(--td-ink); text-decoration: none;
  box-shadow: 0 1px 0 rgb(16 18 58 / 6%);
}
.td-back svg { width: 22px; height: 22px; }

/* the pill buttons */
.td-pill {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 99px;
  background: #fff; color: var(--td-ink); text-decoration: none;
  font: 700 15px/1 var(--td-font);
}
.td-pill::after {
  content: ''; width: 7px; height: 7px; margin-left: 2px;
  border-top: 2.4px solid currentColor; border-right: 2.4px solid currentColor; transform: rotate(45deg);
}
.td-pill.dark { background: #0b0b12; color: #fff; }

/* ---- the bottom nav (shell.js fills <nav data-shell data-tab="…">) */
nav[data-shell] {
  position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%);
  z-index: 50; width: calc(min(100vw, 430px) - 24px);
  height: var(--td-nav-h); padding: 0 6px;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  border-radius: 28px; background: #0d0d16;
}
nav[data-shell] a {
  display: grid; justify-items: center; gap: 4px; padding: 8px 0;
  color: #c9cbd8; text-decoration: none; font: 600 12px/1 var(--td-font);
  min-height: 56px; align-content: center;
}
nav[data-shell] a svg { width: 26px; height: 26px; }
nav[data-shell] a[aria-current='page'] { color: #2bd47d; }

/* ---- the Note markers: what we changed from the draft and why; one toggle shows or hides them all */
.td-note {
  display: none; position: relative; margin: 8px 0; padding: 10px 12px 10px 34px;
  border-radius: 12px; background: #fff7d6; border: 1.5px dashed #e0b400;
  font: 600 12.5px/1.4 var(--td-font); color: #5a4300;
}
.td-note::before {
  content: 'Note'; position: absolute; left: 8px; top: 9px;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font: 800 10px/1 var(--td-font); letter-spacing: 0.5px; color: #a07c00;
}
body.td-notes-on .td-note { display: block; }
.td-notes-toggle {
  position: fixed; right: max(12px, calc(50vw - 215px + 12px)); bottom: calc(var(--td-nav-h) + 24px);
  z-index: 60; min-height: 40px; padding: 0 14px; border: 0; border-radius: 99px;
  background: #fff7d6; color: #5a4300; box-shadow: 0 0 0 1.5px #e0b400;
  font: 800 13px/1 var(--td-font); cursor: pointer;
}

/* ---- the version footer */
footer[data-version] {
  margin: 24px 16px 0; text-align: center;
  font: 600 11px/1.4 var(--td-font); color: #8a8ea6;
}
