/* time.log page */
.tl-range { margin-left: auto; flex: none; border-color: var(--ink); }
.title .tl-range button { flex: none; width: auto; height: 22px; padding: 0 10px; font-size: 12px; white-space: nowrap; border: none; border-right: var(--b); }
.title .tl-range button:last-child { border-right: none; }
.tl-cols { display: grid; grid-template-columns: minmax(250px, 340px) minmax(0, 1fr); gap: 16px; align-items: start; }
.tl-list { display: flex; flex-direction: column; gap: 8px; }
.tl-row { display: flex; flex-direction: column; gap: 3px; text-align: left; border: var(--b); background: var(--field); padding: 8px 10px; }
.tl-row:hover { background: var(--hover); }
.tl-row[aria-pressed="true"] { background: var(--surface); box-shadow: var(--sh); outline: 3px solid var(--accent); outline-offset: -1px; }
.tl-row-top { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.tl-row-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-row-mid { display: flex; align-items: flex-end; gap: 6px; }
.tl-avg { font-family: var(--display); font-size: 24px; line-height: 1; }
.tl-row-mid .mut { font-size: 12px; flex: 1; }
.tl-row-bot { font-size: 11px; }
.tl-spark { display: flex; align-items: flex-end; gap: 2px; height: 24px; width: 72px; flex: none; }
.tl-spark i { flex: 1; background: var(--accent-2); border: 1px solid var(--outline); }
.tl-trend { font-size: 11px; font-weight: 700; border: 1px solid var(--outline); padding: 0 5px; white-space: nowrap; }
.tl-trend.fast { background: color-mix(in srgb, var(--heat) 30%, var(--field)); }
.tl-trend.slow { background: var(--soil); }

.tl-detail { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tl-dhead { display: flex; align-items: center; gap: 10px; }
.tl-dhead h3 { margin: 0; font-family: var(--display); font-size: 28px; flex: 1; }
.tl-detail .hb-tiles { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.tl-empty { margin: 0; }

.tl-vars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tl-vars li { display: grid; grid-template-columns: 14px minmax(70px, 120px) 1fr auto; gap: 8px; align-items: center; font-size: 13px; }
.tl-sw { width: 14px; height: 14px; border: var(--line) solid var(--outline); }
.tl-vn { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-vbar { height: 14px; border: var(--line) solid var(--outline); background: var(--surface); padding: 1px; }
.tl-vbar i { display: block; height: 100%; }
.tl-vv { white-space: nowrap; }

.tl-chart { position: relative; display: flex; align-items: flex-end; gap: 3px; height: 150px; padding-top: 12px; border-bottom: var(--line) solid var(--outline); }
.tl-chart i { flex: 1; max-width: 26px; border: var(--line) solid var(--outline); border-bottom: none; min-height: 2px; display: block; }
.tl-avgline { position: absolute; left: 0; right: 0; height: 0; border-top: 3px dashed var(--ink); pointer-events: none; z-index: 1; }
.tl-avgline span { position: absolute; right: 0; top: -18px; font-size: 10px; background: var(--field); padding: 0 4px; border: 1px solid var(--outline); }
.tl-sessions { max-height: 360px; overflow-y: auto; }

@media (max-width: 860px) {
  .tl-cols { grid-template-columns: 1fr; }
  .tl-range { margin-left: 0; }
}

/* routines.exe */
.rt2-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; }
.rt2-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.rt2-card { border: var(--b); background: var(--field); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.rt2-card.on { background: var(--surface); box-shadow: var(--sh); }
.rt2-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rt2-meta, .rt2-why { margin: 0; font-size: 12px; }
.rt2-plan { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; font-size: 13px; }
.rt2-plan b { font-family: var(--display); font-size: 26px; }
.rt2-plan label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--mute); }
.rt2-plan input { height: 30px; border: var(--b); background: var(--surface); padding: 0 6px; font-size: 13px; }
.rt2-run { width: 100%; height: 38px; }
.rt2-run:disabled { opacity: .5; }

.rt2-runner { border: var(--b); background: var(--surface); box-shadow: var(--sh); padding: 12px; display: flex; flex-direction: column; gap: 8px; max-width: 520px; margin: 0 auto 4px; width: 100%; }
.rt2-rhead { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: 13px; }
.rt2-total { margin-left: auto; }
.rt2-steps { display: flex; gap: 4px; }
.rt2-dot { flex: 1; height: 10px; border: var(--line) solid var(--outline); background: var(--field); }
.rt2-dot.done { background: var(--heat); }
.rt2-dot.skip { background: repeating-linear-gradient(45deg, var(--field) 0 3px, var(--rule) 3px 5px); }
.rt2-dot.now { background: var(--accent); }
.rt2-now { font-family: var(--display); font-size: 30px; text-align: center; line-height: 1.1; }
.rt2-pace, .rt2-next { margin: 0; text-align: center; font-size: 13px; }
.rt2-small { display: flex; justify-content: center; gap: 10px; }
.rt2-detail h4 .mut { text-transform: none; letter-spacing: 0; font-weight: 400; }
.rt2-stepstats li { grid-template-columns: 18px minmax(90px, 160px) 1fr auto; }
.rt2-n { font-weight: 700; font-size: 12px; color: var(--mute); }
.rt2-h { margin: 12px 0 4px; }
.rt2-dlg textarea { border: var(--b); background: var(--field); padding: 8px 10px; font-size: 15px; font-family: inherit; resize: vertical; }
[data-routines] { display: flex; flex-direction: column; gap: 12px; }
