/* ATD-188: the Trade Journal Pro look for the Journal & Review pages built on the shell layout
   (<body class="jw" data-nav-shell>): Rules Replay, Thesis Builder / Decision history, Data Quality.
   Trade Journal Pro is the source of truth: the same title bar (icon tile, title, mono kicker, Chicago clock,
   a link back), the same #eef3f6 page, white cards with the same border and shadow, mono KPI labels and
   values, the same buttons. On phones the slim platform header (js/phone-header.js) replaces the title bar,
   as on the Journal. */
body.jw{
  --jw-ink:#172733; --jw-muted:#526571; --jw-line:#d7e0e5; --jw-brand:#175f8f; --jw-bg:#eef3f6;
  --jw-mono:'JetBrains Mono','SF Mono',ui-monospace,Menlo,monospace;
  background:var(--jw-bg)!important;color:var(--jw-ink);
  font-family:'Plus Jakarta Sans','Segoe UI',system-ui,-apple-system,Arial,sans-serif;
}
/* title bar — copied from trade-journal-pro.html's workspace-bar */
body.jw .workspace-bar{min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid #d9e2e7;margin:0 -30px 20px;padding:0 30px;background:rgba(255,255,255,.94);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);box-shadow:0 5px 18px rgba(38,57,70,.035);position:sticky;top:0;z-index:40;box-sizing:border-box}
body.jw .workspace-heading{display:flex;align-items:center;gap:13px;min-width:0}
body.jw .workspace-mark{width:40px;height:40px;border-radius:11px;display:grid;place-items:center;background:#eaf3f7;border:1px solid #d4e5ec;color:#175f8f;font-size:19px;flex:0 0 auto}
body.jw .workspace-title{margin:0;font-size:16px;font-weight:800;letter-spacing:-.025em;color:var(--jw-ink);line-height:1.25}
body.jw .workspace-kicker{font:600 8.5px var(--jw-mono);color:#526d7c;text-transform:uppercase;letter-spacing:.13em;margin-top:2px}
body.jw .workspace-actions{display:flex;align-items:center;gap:9px}
body.jw .session-pill{display:flex;align-items:center;gap:9px;padding:8px 11px;border:1px solid #d8e2e7;border-radius:9px;background:#f8fafb;color:var(--jw-muted);font:600 10px var(--jw-mono);white-space:nowrap}
body.jw .session-dot{width:7px;height:7px;border-radius:50%;background:#087a59;box-shadow:0 0 0 4px rgba(8,122,89,.1)}
body.jw .workspace-link{display:inline-flex;align-items:center;min-height:36px;padding:0 12px;border:1px solid #d8e2e7;border-radius:9px;background:#f8fafb;color:#294757;font-size:11px;font-weight:800;text-decoration:none;white-space:nowrap}
body.jw .workspace-link:hover{border-color:#9fcddd;color:#175f8f}

/* page and cards */
body.jw main{max-width:1480px!important;margin:0 auto!important;padding:0 30px 44px!important;box-sizing:border-box}
body.jw .lead{color:var(--jw-muted);font-size:14.5px;max-width:860px;margin:0 0 4px}
body.jw .card{background:#fff;border:1px solid var(--jw-line)!important;border-radius:12px;box-shadow:0 7px 22px rgba(35,61,77,.055);padding:18px;margin-top:16px;margin-bottom:0}
body.jw .card h2{font-size:17px;font-weight:800;color:var(--jw-ink);letter-spacing:-.01em}
body.jw .card .sub{color:var(--jw-muted)}
/* KPI tiles, as the Journal's summary */
body.jw .kpi{background:#f8fafc;border:1px solid var(--jw-line);border-radius:7px;padding:11px 12px;box-shadow:0 7px 22px rgba(35,61,77,.055)}
body.jw .kpi .k{font:600 8px var(--jw-mono);letter-spacing:.07em;text-transform:uppercase;color:#5d707b;margin-bottom:4px}
body.jw .kpi .v{font-family:var(--jw-mono);font-size:18px;font-weight:700;line-height:1.25}
body.jw .kpi .v.ok{color:#067647}body.jw .kpi .v.warn{color:#b45309}body.jw .kpi .v.crit{color:#b42318}
/* buttons, as the Journal's */
body.jw button.primary,body.jw .btn.primary{background:var(--jw-brand)!important;border-color:var(--jw-brand)!important;color:#fff!important;box-shadow:0 6px 15px rgba(23,95,143,.17)}
body.jw button.primary:hover,body.jw .btn.primary:hover{background:#104f79!important}

/* ATD-190: the Journal's type scale (measured on trade-journal-pro.html): Plus Jakarta Sans throughout (some
   controls fell back to Arial), 13px base, card headings 14px/800, buttons 12.5px/750, inputs and labels small on
   desktop and 16px on phones (as the Journal, so iPhones don't zoom). Paragraphs stay at the 13px base: the
   Journal's 10-11px grey sub-text suits one-line captions under numbers, not the explanations on these pages. */
body.jw{font-size:13px;line-height:1.45}
body.jw button,body.jw input,body.jw select,body.jw textarea{font-family:inherit}
body.jw main .card h2,body.jw main .card h3.card-title{font-size:14px!important;font-weight:800;line-height:1.3}
body.jw main p,body.jw main li,body.jw .lead,body.jw .card .sub,body.jw .status,body.jw .muted,body.jw .disclaimer{font-size:13px}
body.jw main label,body.jw main label.f{font-size:12px}
body.jw main input:not([type=checkbox]):not([type=radio]),body.jw main select,body.jw main textarea{font-size:12.5px}
body.jw main button,body.jw main .btn{font-size:12.5px!important;font-weight:750}
body.jw .kpi .v{font-size:18px}
/* the pages' own 14-15px text blocks, to the same 13px base (tables 12.5px, as the Journal's are smaller still) */
body.jw .honest,body.jw .rule .bd,body.jw .empty,body.jw .exitlines p,body.jw .upsell,body.jw .sc p,body.jw .sc .if,body.jw .entry .why,
body.jw .fgroup dl,body.jw .issue .desc,body.jw .issue .fix,body.jw .legend,body.jw .empty-state,body.jw main ol,body.jw .histbar{font-size:13px}
body.jw .cmp,body.jw table.cmp,body.jw table.list,body.jw .issue table{font-size:12.5px}
body.jw .h3,body.jw .sc h3,body.jw .issue h3,body.jw .fgroup h3{font-size:13.5px}
body.jw .co{font-size:15px}
@media(max-width:768px){
  body.jw main input:not([type=checkbox]):not([type=radio]),body.jw main select,body.jw main textarea{font-size:16px}
  body.jw .kpi .k{font-size:9.5px}
}
@media(max-width:1024px){ body.jw main{padding:0 22px 40px!important} body.jw .workspace-bar{padding:0 22px;margin-left:-22px;margin-right:-22px} }
@media(max-width:768px){
  body.jw main{padding:0 16px 30px!important}
  body.jw .workspace-bar{position:relative;top:auto;min-height:auto;margin:0 -16px 14px;padding:15px 16px}
  body.jw .workspace-mark,body.jw .workspace-actions .workspace-link{display:none}
  body.jw .workspace-title{font-size:15px}
  body.jw.anv-ph main{padding-top:12px!important}
  body.jw .kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  body.jw .kpi .v{font-size:clamp(15px,4.6vw,19px)}
}
@media(max-width:480px){ body.jw .session-pill span:last-child{display:none} }
@media print{ body.jw .workspace-bar{position:static;box-shadow:none} }
