.journey-calendar{display:block!important;margin-top:18px}
.journey-card{--journey-color:#327a4b;background:#fff;border:1px solid #e6e6e9;border-radius:22px;box-shadow:0 14px 40px rgba(20,20,22,.06);padding:26px;overflow:hidden}
.journey-card:has([data-journey-filter="Run"].active){--journey-color:var(--run,#ef7d32)}
.journey-card:has([data-journey-filter="Bike"].active){--journey-color:var(--bike,#3d7fbe)}
.journey-card:has([data-journey-filter="Swim"].active){--journey-color:var(--swim,#31a5c8)}
.journey-card:has([data-journey-filter="Strength"].active){--journey-color:var(--strength,#7457a8)}
.journey-head,.journey-controls{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}
.journey-head>div:first-child>span,.journey-status small{display:block;color:#6e6e73;font-size:11px;font-weight:800;letter-spacing:.1em}
.journey-head h2{font-size:30px;line-height:1.05;margin:7px 0 8px;color:#1d1d1f}
.journey-head p{margin:0;color:#6e6e73;font-size:14px}
.journey-status{min-width:240px;padding:14px 16px;background:#f5f5f7;border-radius:14px}
.journey-status strong,.journey-status span{display:block}.journey-status strong{margin:6px 0 3px;font-size:14px}.journey-status span{color:#6e6e73;font-size:12px}
.journey-controls{align-items:center;margin:24px 0 18px;padding-top:18px;border-top:1px solid #ececef}
.journey-controls .progression-switch{display:flex;gap:4px;padding:3px;background:#f2f2f4;border-radius:10px}
.journey-controls .progression-switch button{border:0;background:transparent;border-radius:8px;color:#6e6e73;font-size:12px;font-weight:750;padding:7px 11px;cursor:pointer}
.journey-controls .progression-switch button.active{background:#fff;color:#1d1d1f;box-shadow:0 1px 5px rgba(0,0,0,.1)}
.journey-legend{display:flex;gap:16px;color:#6e6e73;font-size:11px;font-weight:700}
.journey-legend span{display:flex;align-items:center;gap:6px}.journey-legend i{width:9px;height:9px;border-radius:3px;background:#d7ded9}.journey-legend i.done{background:var(--journey-color)}.journey-legend i.now{border:1.5px solid #111;background:transparent}
.journey-scroll{overflow-x:auto;padding:8px 2px 12px}.journey-track{min-width:1120px}
.journey-years,.journey-months,.journey-races,.journey-phases,.journey-bars,.journey-today{display:grid;grid-template-columns:repeat(var(--journey-weeks),minmax(8px,1fr));column-gap:2px}
.journey-years span{text-align:left;color:#1d1d1f;font-size:12px;font-weight:800;letter-spacing:.08em;border-bottom:1px solid #d7d7da;padding:0 0 5px 2px}
.journey-months span{text-align:center;color:#88888d;font-size:9px;font-weight:800;letter-spacing:.06em;padding:7px 0 9px}
.journey-races,.journey-phases{margin-bottom:5px}.journey-races button,.journey-phases button{border:0;background:transparent;min-width:0;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.journey-races button{text-align:center;color:#1d1d1f;font-size:11px;font-weight:800;padding:6px 4px}.journey-races button>span{display:block}.journey-races button:hover{color:#327a4b}
.journey-race-distances{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:5px;color:#747479;font-size:8px;font-weight:750;white-space:nowrap}.journey-race-distances b{display:inline-flex;align-items:center;gap:3px;font:inherit}.journey-race-distances i{width:6px;height:6px;border-radius:2px;background:var(--sport)}
.journey-phases button{border-radius:7px;background:#f3f3f5;color:#65656a;font-size:9px;font-weight:750;padding:6px 3px}.journey-phases button:hover{background:#e8eee9;color:#285f3c}
.journey-chart-shell{display:grid;grid-template-columns:42px 1fr;gap:8px;margin-top:14px}
.journey-y-axis{height:236px;margin-top:28px;display:flex;flex-direction:column;justify-content:space-between;position:relative;color:#85858a;font-size:10px;text-align:right;padding-right:3px}
.journey-y-axis span{transform:translateY(-50%)}.journey-y-axis small{position:absolute;left:-7px;top:50%;transform:rotate(-90deg) translateX(50%);transform-origin:center;font-size:9px;font-weight:800;letter-spacing:.12em}
.journey-plot{height:264px;position:relative;padding-top:28px}
.journey-grid{position:absolute;inset:28px 0 0;display:flex;flex-direction:column;justify-content:space-between;pointer-events:none}
.journey-grid i{display:block;border-top:1px solid #ececef}.journey-grid i.zero{border-color:#a9a9ae}
.journey-bars,.journey-build-dividers{position:absolute;inset:28px 0 0;align-items:stretch}
.journey-build-dividers{display:grid;grid-template-columns:repeat(var(--journey-weeks),minmax(8px,1fr));column-gap:2px;pointer-events:none;z-index:3}
.journey-build-dividers i{grid-row:1;border-left:1px solid #b8b8bd;transform:translateX(-1px)}
.journey-week{grid-row:1;position:relative;min-width:0}
.journey-week-bar{position:absolute;inset:0;border:0;background:transparent;padding:0 1px;cursor:pointer;display:flex;align-items:flex-end;width:100%;z-index:2}
.journey-week-bar>.journey-stack{display:flex;flex-direction:column;position:relative;width:100%;min-height:0;border-radius:4px 4px 0 0;overflow:hidden;transition:height .32s cubic-bezier(.2,.8,.2,1)}
.journey-sport-segment{display:block;position:relative;width:100%;flex:none;background:color-mix(in srgb,var(--sport) 28%,white)}
.journey-sport-segment>em{position:absolute;inset:auto 0 0;background:linear-gradient(to top,color-mix(in srgb,var(--sport) 82%,black),var(--sport));min-height:0}
.journey-week.current .journey-week-bar>.journey-stack{outline:1.5px solid #171719;outline-offset:1px}.journey-week-bar:hover>.journey-stack{filter:saturate(1.15);transform:translateY(-1px)}
.journey-race-marker{position:absolute;z-index:5;top:-29px;left:50%;transform:translateX(-50%);border:0;background:#fff;padding:0;cursor:pointer;width:24px;height:24px;display:grid;place-items:center}
.journey-race-marker img,.journey-race-marker svg,.journey-race-marker .program-race-marker{max-width:23px!important;max-height:23px!important}
.journey-race-marker:after{content:"";position:absolute;top:24px;left:50%;height:241px;border-left:1px solid #b8b8bd;pointer-events:none;transform:translateX(-50%)}
.journey-today{position:absolute;inset:18px 0 0;pointer-events:none;z-index:1}.journey-today:before{content:"";position:absolute;top:0;bottom:0;left:var(--today-position);border-left:1.5px solid #111;transform:translateX(-50%)}.journey-today span{position:absolute;top:-18px;left:var(--today-position);font-size:8px;font-weight:900;transform:translateX(-50%)}
.journey-control-groups{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.journey-extra-switches{display:flex;align-items:center;gap:5px}.journey-extra-switches>span{color:#8a8a8f;font-size:9px;font-weight:850;letter-spacing:.09em}.journey-extra-switches button{border:1px solid #dedee2;border-radius:9px;background:#fff;color:#68686d;font-size:11px;font-weight:750;padding:7px 10px;cursor:pointer}.journey-extra-switches button.active{border-color:#1d1d1f;background:#1d1d1f;color:#fff}
.journey-week [data-fast-tooltip]{z-index:4}.journey-week [data-fast-tooltip]:hover{z-index:60}
.journey-week-bar[data-fast-tooltip]::after{top:8px;bottom:auto;max-width:290px}
.journey-week-bar[data-fast-tooltip].tooltip-left::after{left:3px;right:auto;transform:translate(0,3px)}
.journey-week-bar[data-fast-tooltip].tooltip-left:hover::after,.journey-week-bar[data-fast-tooltip].tooltip-left:focus-visible::after{transform:translate(0,0)}
.journey-week-bar[data-fast-tooltip].tooltip-right::after{right:3px;left:auto;transform:translate(0,3px)}
.journey-week-bar[data-fast-tooltip].tooltip-right:hover::after,.journey-week-bar[data-fast-tooltip].tooltip-right:focus-visible::after{transform:translate(0,0)}
@media(max-width:900px){.journey-card{padding:18px 14px;border-radius:17px}.journey-head{display:block}.journey-status{margin-top:16px;min-width:0}.journey-controls{align-items:flex-start;flex-direction:column}.journey-legend{flex-wrap:wrap}.journey-track{min-width:1080px}}

#journey-view .calendar-page-head{padding-bottom:4px}#journey-view .journey-calendar{margin-top:18px}
@media(max-width:760px){.topbar nav{justify-content:flex-start;overflow-x:auto;scrollbar-width:none}.topbar nav::-webkit-scrollbar{display:none}.topbar nav .nav-btn{flex:0 0 auto}}

/* Month brackets share the weekly bar columns and the plot's axis offset. */
.journey-month-brackets{display:grid;grid-template-columns:repeat(var(--journey-weeks),minmax(8px,1fr));column-gap:2px;margin:12px 0 0 50px}
.journey-month-brackets>span{position:relative;min-width:0;padding:10px 0 0;border-top:1px solid var(--line);color:var(--muted);font-size:12px;font-weight:700;line-height:1.4;text-align:center}
.journey-month-brackets>span:before,.journey-month-brackets>span:after{content:"";position:absolute;top:-6px;height:6px;border-left:1px solid var(--line)}
.journey-month-brackets>span:before{left:0}.journey-month-brackets>span:after{right:0}

.journey-race-marker>.program-race-marker{position:static!important;inset:auto!important;display:grid;place-items:center;width:22px!important;height:22px!important;margin:0!important;transform:none!important}
.journey-race-marker .discipline-icon{width:22px!important;height:22px!important;margin:0!important}
.journey-race-marker img{width:22px!important;height:22px!important;object-fit:contain}
