.journal-header {
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  padding:clamp(28px,4vw,54px) 0 clamp(22px,2.6vw,38px);
}
.journal-header h1 { margin:0; color:var(--ink); font-size:clamp(30px,3.8vw,54px); line-height:1.04; font-weight:540; letter-spacing:-.064em; }
.journal-header .primary { min-height:40px; }
.journal-workspace { display:grid; grid-template-columns:clamp(190px,18vw,238px) minmax(0,1fr); gap:clamp(24px,3vw,46px); align-items:start; }
.journal-nav { position:sticky; top:88px; display:grid; gap:26px; padding-top:7px; }
.journal-group { display:grid; gap:3px; }
.journal-group h2 { margin:0 0 6px 12px; color:var(--dim); font:540 11px/1.4 Inter,sans-serif; letter-spacing:.08em; text-transform:uppercase; }
.journal-group a { position:relative; display:flex; align-items:center; gap:10px; min-height:41px; padding:9px 12px; color:#b8bec0; border-radius:5px; font-size:14px; line-height:1.33; text-decoration:none; }
.journal-group a svg { flex:none; color:#99a2a6; }
.journal-group a:hover, .journal-switch a:hover { color:var(--ink); background:var(--panel-high); }
.journal-group a[aria-current="page"] { background:#292321; color:#ffe0d1; font-weight:570; }
.journal-group a[aria-current="page"]::before { content:""; position:absolute; left:0; top:11px; bottom:11px; width:2px; border-radius:2px; background:var(--copper); }
.journal-group a[aria-current="page"] svg { color:var(--copper); }
.journal-sheet { min-width:0; }
.journal-sheet > [tabindex="-1"]:focus { outline:none; }
.journal-sheet > [tabindex="-1"]:focus-visible h2:first-of-type { text-decoration:underline; text-decoration-color:var(--copper); text-decoration-thickness:1px; text-underline-offset:.24em; }
.journal-sheet > .panel,.journal-sheet [data-ops-runs] > .panel { margin:0; border-radius:9px; }
.journal-sheet > * + * { margin-block-start:18px; }
.journal-sheet > .panel > .section-title { padding:clamp(17px,2vw,26px); min-height:72px; }
.journal-sheet .section-title h2 { margin:0; font-size:clamp(18px,1.8vw,25px); letter-spacing:-.045em; font-weight:560; }
.journal-sheet .section-title h2 > svg { display:none; }
.journal-sheet .section-title p { margin:7px 0 0; font-size:12px; line-height:1.5; color:var(--muted); }
.journal-count { font:500 13px/1.25 var(--mono); color:var(--muted); border:1px solid var(--line); border-radius:5px; background:var(--panel-high); padding:2px 6px; letter-spacing:0; }
.journal-switch { display:flex; gap:19px; padding-inline:clamp(17px,2vw,26px); border-bottom:1px solid var(--line); }
.journal-switch a { padding:13px 1px 11px; color:var(--muted); border-bottom:2px solid transparent; font-weight:540; text-decoration:none; }
.journal-switch a[aria-current="page"] { color:var(--ink); border-color:var(--copper); }
.journal-asof { display:block; padding:11px 20px; border-top:1px solid var(--faint); color:var(--dim); font:11px/1.5 var(--mono); }
.journal-empty { padding:clamp(26px,5vw,65px) 20px; display:grid; justify-items:center; gap:12px; color:var(--dim); text-align:center; }
.journal-empty svg { color:var(--muted); }
.journal-empty p { margin:0; color:var(--muted); font-size:14px; line-height:1.5; }
.journal-sheet .account-journal-part { padding:0; border:0; }
.journal-sheet .guard-section { margin-top:0; padding:16px clamp(16px,2vw,26px); }
.journal-sheet .guard-section > h3 { margin-bottom:15px; font-weight:550; }
.journal-sheet .activity-empty { min-height:105px; margin:0; padding:20px clamp(17px,2vw,26px); }
.journal-sheet .trade-table thead th { background:#171b1e; }
.journal-sheet .trade-table { font-size:13px; }
.journal-sheet .trade-table thead th { font-size:11px; }
.journal-sheet .trade-table .gain { color:var(--teal); }
.journal-sheet .trade-table .loss { color:var(--rust); }
.journal-sheet .trade-table td,.journal-sheet .trade-table tbody th { padding-block:15px; }
.journal-sheet .trade-table td { font-variant-numeric:tabular-nums; }
.journal-sheet .trade-table tr:hover td,.journal-sheet .trade-table tr:hover th[scope=row] { background:var(--panel-high); }
@media(max-width:780px) {
  .journal-workspace { grid-template-columns:minmax(0,1fr); gap:18px; }
  .journal-nav { position:static; padding:0 0 14px; border-bottom:1px solid var(--line); gap:12px; }
  .journal-group { display:flex; flex-wrap:wrap; align-items:center; gap:4px; }
  .journal-group h2 { width:100%; margin:0 0 2px; font-size:10px; }
  .journal-group a { min-height:36px; padding:6px 9px; font-size:12px; gap:6px; }
  .journal-group a svg { width:14px; height:14px; }
  .journal-group a[aria-current="page"]::before { top:8px; bottom:8px; }
}
@media(max-width:490px) {
  .journal-header { gap:10px; padding:22px 0; flex-wrap:wrap; }
  .journal-header h1 { font-size:30px; }
  .journal-header .primary { padding:7px 10px; min-height:34px; font-size:12px; }
  .journal-sheet .section-title > .link { font-size:12px; }
  .journal-sheet .activity-empty { flex-wrap:wrap; }
  .journal-sheet .activity-empty .soft { margin-left:0; }
  .journal-sheet .trade-table td,.journal-sheet .trade-table tbody th { padding-block:5px; }
}
