/* The timeline (issue #497): one 1360 px frame, three columns — me (260) |
   the stream | around me (320) — and one column on a phone. The design:
   docs/design/2026-10-19-web-redesign/index.html, the Timeline screen. */
:root { --panel2: #23262b; --live: #ff4d4d; }
.tl-wrap { max-width: 1360px; }
.tl { display: grid; grid-template-columns: 260px minmax(0, 1fr) 320px; gap: 24px; padding: 8px 0 56px; align-items: start; font-size: 14.5px; line-height: 1.5; }
.tl-side { display: grid; gap: 16px; position: sticky; top: 16px; min-width: 0; }
.tl-stream, .tl-feed { display: grid; gap: 18px; min-width: 0; }
@container page (max-width: 1180px) { .tl { grid-template-columns: minmax(0, 1fr) 300px; } .tl-left { display: none; } }
@container page (max-width: 820px) { .tl { grid-template-columns: minmax(0, 1fr); } .tl-side { position: static; } .tl-right { order: 3; } }

.tl-num { font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .01em; font-size: 28px; line-height: 1; }
.tl-num.big { font-size: 34px; }
.tl-u { font-family: var(--body); font-size: .5em; color: var(--mute); margin-left: 2px; font-weight: 500; }
.tl-lbl { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--mute); }
.tl-mute { color: var(--mute); font-size: 13px; }
.tl-link { font-size: 13px; color: var(--accent); }
.tl-of { color: var(--mute); font-size: 15px; font-weight: 600; }
/* The week's key sessions done or not (#664). */
.tl-job { font-size: 14px; font-weight: 600; margin: 2px 0 4px; }
.tl-stream > .err:empty { display: none; }

.tl-box { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 10px; min-width: 0; }
.tl-box h2 { font: 700 18px/1.1 var(--display); text-transform: uppercase; margin: 0; letter-spacing: .02em; }
/* Where his plan stands, first on the page (#704): the invitation, or the talk making it. */
#planNow:empty { display: none; }
/* Crew's one slim line while he has no plan (#772): a tenth of the screen, never a card. */
.tl-plan-slim { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--panel); border-left: 3px solid var(--accent); border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; color: var(--ink); font-weight: 600; text-decoration: none; }
.tl-plan-slim span { color: var(--accent); font-size: 18px; }
.tl-plan-slim small { display: block; font-weight: 400; margin-top: 2px; } /* plans in the subscription (#1443) */
/* Where his plan stands, one line at the top of My plan (#772). */
.tl-plan-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; background: var(--panel); border-left: 3px solid var(--accent); border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; }
.tl-plan-line > span { flex: 1 1 240px; }
.tl-plan-line small { flex-basis: 100%; }
/* What is ahead, on My plan (#772): the boxes side by side where there is room. */
.p-ahead { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-bottom: 18px; }
.tl-plan-no { background: none; border: 0; color: var(--mute); font: 600 14px/1 var(--body); cursor: pointer; padding: 6px 0; }
.tl-plan-no:hover { color: var(--ink); }
.tl-prog { height: 8px; border-radius: 99px; background: var(--panel2); overflow: hidden; }
.tl-prog span { display: block; height: 100%; background: var(--accent); }
.tl-weekbar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; align-items: end; height: 64px; }
.tl-weekbar i { display: block; background: var(--panel2); border-radius: 4px; }
.tl-weekbar i.done { background: var(--m-distance); }
.tl-weekbar i.plan { background: none; border: 1.5px dashed #4a5260; }
.tl-weekbar i.today { outline: 2px solid var(--accent); outline-offset: 2px; }
.tl-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; text-align: center; font-size: 11px; color: var(--mute); }

.tl-head { display: flex; align-items: baseline; gap: 10px; }
.tl-head h2 { font: 800 24px/1 var(--display); text-transform: uppercase; margin: 0; }
.tl-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--live); display: inline-block; animation: tl-pulse 1.6s infinite; align-self: center; }
@keyframes tl-pulse { 0% { box-shadow: 0 0 0 0 var(--live); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .tl-dot { animation: none; } }
#liveWrap { display: grid; gap: 12px; }
#liveWrap[hidden] { display: none; }
.tl-livegrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.tl-live { background: linear-gradient(180deg, #241517, var(--panel)); border: 1px solid #5a2a2a; border-radius: 14px; overflow: hidden; display: grid; min-width: 0; }
.tl-live-body { padding: 12px 14px 14px; display: grid; gap: 10px; }
.tl-liverow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.tl-liverow .tl-num { font-size: 26px; }
.tl-watchrow { display: flex; gap: 10px; align-items: center; }
.tl-watch { background: var(--live); color: #fff; border-radius: 99px; padding: 7px 14px; font: 600 13px var(--body); text-decoration: none; }
.tl-watch:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.tl-who { display: flex; gap: 10px; align-items: center; min-width: 0; }
.tl-who-text { min-width: 0; }
.tl-face { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.tl-face.s { width: 26px; height: 26px; font-size: 10px; }
.tl-face.xs { width: 22px; height: 22px; font-size: 9px; border: 2px solid var(--panel); margin-left: -6px; }
.tl-face.xs:first-child { margin-left: 0; }
.tl-initials { display: inline-grid; place-items: center; background: #2c3a1a; color: var(--accent); font: 700 13px/1 var(--display); }
.tl-n { font-weight: 600; overflow-wrap: anywhere; }
.tl-m { color: var(--mute); font-size: 12.5px; overflow-wrap: anywhere; }
.tl-test { background: #3a3320; color: #f2d77a; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; padding: 1px 6px; border-radius: 4px; margin-left: 6px; vertical-align: 2px; font-weight: 600; white-space: nowrap; }

.tl-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; display: grid; gap: 12px; padding: 16px 16px 12px; min-width: 0; }
.tl-title { font: 700 26px/1.05 var(--display); margin: 2px 0 0; text-transform: uppercase; letter-spacing: .01em; text-wrap: balance; overflow-wrap: anywhere; }
.tl-title a { color: inherit; text-decoration: none; }
.tl-title a:hover { color: var(--accent); }
.tl-kind { font: 600 11px/1 var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--mute); border: 1px solid var(--line); border-radius: 4px; padding: 3px 6px; margin-left: 10px; vertical-align: 5px; }
.tl-desc { margin: 0; color: #d6d8dc; white-space: pre-line; overflow-wrap: anywhere; }
.tl-stats { display: flex; gap: 8px 22px; flex-wrap: wrap; }
.tl-drive { margin: 0; color: var(--mute); font-size: 13px; }
/* The rest around the work, and the whole (#1766): one grey line under a card's numbers. */
.tl-aside { margin: 0; color: var(--mute); font-size: 13px; }
/* The map, then every photo and video, sideways one at a time (#970); the next one always peeks in. */
.tl-media { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.tl-media::-webkit-scrollbar { display: none; }
.tl-media > * { flex: none; width: 100%; scroll-snap-align: start; border-radius: 12px; overflow: hidden; }
.tl-media > .wide { width: 84%; }
.tl-media > .upright { width: 58%; }
.tl-map { height: 230px; width: 100%; background: #15191c; }
.tl-map.tl-now { height: 150px; }
.tl-map .dark-tiles { filter: invert(1) hue-rotate(180deg) brightness(.9) contrast(.9) saturate(.4); }
.tl-map .leaflet-container, .tl-map.leaflet-container { background: #15191c; }
.tl-photo { position: relative; padding: 0; border: 0; background: none; cursor: zoom-in; display: block; min-width: 0; }
.tl-photo img, .tl-photo video { height: 230px; width: 100%; object-fit: cover; display: block; background: #15191c; }
.tl-play { position: absolute; left: 10px; bottom: 10px; background: rgba(0,0,0,.55); color: var(--ink); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; pointer-events: none; }
.tl-photo.on .tl-play { display: none; }
.tl-photo:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.tl-notable { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--accent); }
.tl-notable::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.tl-social { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 10px; font-size: 13px; color: var(--mute); flex-wrap: wrap; }
/* The faces and the count, a link to who gave the kudos (#1030). */
.tl-kudos-who { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; border: 0; min-height: 32px; }
.tl-kudos-who:hover span { color: var(--ink); text-decoration: underline; }
.tl-pile { display: flex; }
.tl-pile:empty { display: none; }
.tl-act { margin-left: auto; display: flex; gap: 6px; }
.tl-act button { background: var(--panel2); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; font: 500 13px var(--body); cursor: pointer; }
.tl-act button.on { color: var(--accent); border-color: var(--accent); }
/* Delete on my own workout (#710): quiet until pointed at, the app's red then. */
.tl-act button.tl-delete { background: none; color: var(--mute); }
.tl-act button.tl-delete:hover, .tl-act button.tl-delete:focus-visible { color: var(--danger); border-color: var(--danger); }
.tl-gone { color: var(--mute); font-size: 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tl-gone button { background: var(--panel2); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 6px 14px; font: 600 13px var(--body); cursor: pointer; }
.tl-act button:focus-visible, .tl-say button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tl-comments { display: grid; gap: 8px; font-size: 13.5px; }
.tl-c { display: flex; gap: 8px; align-items: flex-start; overflow-wrap: anywhere; }
.tl-c b { font-weight: 600; }
/* A comment's like (#619): his button, or the mark everyone else sees, at the end of the line. */
.tl-c .like, .tl-liked { margin-left: auto; flex: none; }
.tl-liked { color: var(--accent); font-size: 12px; white-space: nowrap; }
.tl-say { display: flex; gap: 8px; }
.tl-say input { flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); padding: 8px 10px; font: 400 14px var(--body); }
.tl-say input:focus { outline: none; border-color: var(--accent); }
.tl-say button { background: var(--panel2); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 6px 14px; font: 600 13px var(--body); cursor: pointer; }
.tl-err { margin: 0; color: var(--danger); font-size: 13px; }
.tl-err:empty { display: none; }
.tl-more { justify-self: center; }
.tl-empty { color: var(--mute); }

.tl-race { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.tl-big { font-size: 48px; line-height: .9; color: var(--accent); }
.tl-list { display: grid; gap: 10px; }
.tl-row { display: flex; gap: 10px; align-items: center; font-size: 13.5px; min-width: 0; }
.tl-row.spread { justify-content: space-between; }
.tl-row .tl-num { font-size: 18px; }

@container page (max-width: 640px) {
  .tl-photo img, .tl-photo video, .tl-map { height: 190px; }
}

/* A runner's profile and their two lists (issue #552, runner.html). */
.tl-plink { color: inherit; text-decoration: none; border: 0; }
.tl-plink:hover b, .tl-n .tl-plink:hover { text-decoration: underline; }
.rn { max-width: 720px; margin: 0 auto; padding: 8px 0 56px; display: grid; gap: 18px; font-size: 14.5px; line-height: 1.5; }
.rn > p { margin: 0; }
.rn .err:empty { display: none; }
.rn-head { display: grid; justify-items: center; gap: 8px; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px 16px; }
.tl-face.xl { width: 96px; height: 96px; font-size: 32px; }
.rn-face { padding: 0; border: 0; background: none; border-radius: 50%; cursor: zoom-in; }
.rn-face:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.rn-name { font: 800 30px/1.1 var(--display); text-transform: uppercase; margin: 6px 0 0; }
.rn-counts { display: flex; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 6px; }
.rn-counts a { display: grid; justify-items: center; gap: 4px; padding: 10px 28px; color: var(--ink); border: 0; text-decoration: none; }
.rn-counts a + a { border-left: 1px solid var(--line); }
.rn-counts a:hover { background: var(--panel2); }
.rn-follow { font: 700 15px/1 var(--body); padding: 13px 28px; border-radius: 999px; border: 0; cursor: pointer; background: var(--accent); color: var(--on-light); margin-top: 6px; }
.rn-follow.on { background: var(--panel2); color: var(--ink); }
.rn-follow.s { padding: 9px 16px; font-size: 13.5px; margin: 0; }
.rn-follow:disabled { opacity: .6; cursor: default; }
.rn-follow-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 6px; }
.rn-follow-row .rn-follow { margin-top: 0; }
/* The bell beside Following (#1001): muted, crossed out and «Muted». */
.rn-bell { display: inline-flex; align-items: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 13px; justify-content: center; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; font: 600 14px/1 var(--body); }
.rn-bell.muted { background: var(--panel2); color: var(--mute); }
.rn-bell:disabled { opacity: .6; cursor: default; }
.rn-note { text-align: center; }
.rn-closed { max-width: 420px; }
.rn-people { display: grid; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.rn-person { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.rn-person + .rn-person { border-top: 1px solid var(--line); }
.rn-who { display: flex; align-items: center; gap: 12px; color: var(--ink); border: 0; text-decoration: none; min-width: 0; }
.rn-who b { font-weight: 600; }
.rn-back { display: block; }
.rn-more { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 4px 4px 0; text-decoration: none; border: 0; }
.rn-more b { color: var(--accent); font-weight: 600; font-size: 15px; white-space: nowrap; }
/* Finding a runner, a private profile, follow requests (issue #580). */
.rn-find { display: grid; gap: 8px; margin-bottom: 14px; }
.rn-q { font: 400 15px/1.2 var(--body); color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; box-sizing: border-box; }
.rn-q:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.rn-find .err { margin: 0; }
.rn-sugg { margin: 4px 0 6px; }
.rn-who > span { min-width: 0; }
.rn-who b { overflow-wrap: anywhere; }
.rn-acts { display: flex; gap: 8px; flex: none; }
.rn-follow.rn-quiet { background: transparent; color: var(--mute); border: 1px solid var(--line); }
.rn-card { display: grid; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.rn-card p { margin: 0; }
.rn-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rn-flat { background: none; border: 0; border-radius: 0; }
.rn-flat .rn-person { padding: 10px 0; }
.rn-switch { flex: none; width: 46px; height: 28px; border-radius: 999px; border: 0; background: var(--line); position: relative; cursor: pointer; padding: 0; transition: background .2s; }
.rn-switch span { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); transition: transform .2s; }
.rn-switch.on { background: var(--accent); }
.rn-switch.on span { transform: translateX(18px); background: #101215; }
.rn-switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@container page (max-width: 480px) {
  .rn-person { flex-wrap: wrap; }
  .rn-acts { margin-left: auto; }
}
/* The chance of the marathon goal under the countdown (issue #550). */
.tl-fc { font-size: 13px; color: var(--mute); text-decoration: none; }
.tl-fc b { color: var(--accent); font-weight: 600; }
.tl-fc:hover { text-decoration: underline; }
/* A click anywhere on a card opens the workout (#662, #798). */
.tl-card { cursor: pointer; }
.tl-card .tl-say, .tl-card.tl-gone { cursor: auto; }
/* People you may know, scrolled sideways, and See all (issue #712, people-view.js). */
.tl-face.l { width: 64px; height: 64px; font-size: 22px; }
.pp-strip { display: grid; gap: 8px; margin: 0 0 18px; min-width: 0; }
.pp-head { display: flex; align-items: center; justify-content: space-between; }
.pp-headr { display: flex; align-items: center; }
.pp-headr a { font-weight: 600; font-size: 14px; text-decoration: none; padding: 12px 8px; }
.pp-hide, .pp-x, .pp-x2, .pp-ring { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; background: transparent; color: var(--mute); cursor: pointer; flex: none; }
.pp-hide:hover, .pp-x:hover, .pp-x2:hover, .pp-ring:hover { color: var(--ink); }
.pp-ring { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); }
.pp-row { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 4px; scrollbar-width: none; }
.pp-row::-webkit-scrollbar { display: none; }
.pp-card { position: relative; flex: 0 0 140px; box-sizing: border-box; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 16px 12px 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; scroll-snap-align: start; }
.pp-card .pp-x { position: absolute; top: 0; right: 0; }
.pp-who { display: grid; justify-items: center; gap: 6px; color: var(--ink); text-decoration: none; border: 0; text-align: center; }
.pp-who b { font-size: 14px; font-weight: 600; line-height: 18px; max-height: 36px; overflow: hidden; overflow-wrap: anywhere; }
.pp-who .tl-mute { font-size: 12px; line-height: 15px; max-height: 30px; overflow: hidden; }
.pp-card .rn-follow { width: 100%; margin-top: auto; padding: 11px 6px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-more { flex: 0 0 120px; box-sizing: border-box; border: 1px dashed var(--line); border-radius: 18px; display: grid; justify-items: center; align-content: center; gap: 8px; text-decoration: none; color: var(--ink); text-align: center; padding: 8px; scroll-snap-align: start; }
.pp-more b { font-size: 14px; font-weight: 600; }
.pp-more .tl-mute { font-size: 12px; }
.pp-arrow { width: 48px; height: 48px; border-radius: 50%; background: var(--panel2); display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 24px; font-weight: 700; }
.tl-feed > #people { margin: 0; }
.pp-hidden { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin: 0 0 14px; text-decoration: none; }
.pp-hidden b { font-size: 14px; font-weight: 600; white-space: nowrap; }
.pp-counts { display: flex; gap: 8px; }
.pp-counts a { flex: 1; display: grid; gap: 2px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; color: var(--ink); text-decoration: none; }
.pp-counts a:hover { background: var(--panel2); }
.pp-sec { margin: 6px 0 -8px; font-weight: 400; }
.pp-foot { text-align: center; }
.pp-show { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; }
.pp-note { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 4px; background: var(--panel2); border: 1px solid var(--line); border-radius: 14px; padding: 0 4px 0 16px; font-size: 14px; color: var(--ink); max-width: calc(100vw - 32px); box-sizing: border-box; }
.pp-note button { height: 44px; padding: 0 12px; border: 0; background: transparent; color: var(--accent); font: 700 14px/1 var(--body); cursor: pointer; }

