/* Sprout — Today: rings, the plan, Top 3, habits, focus bar, the month grid and progress. */
:root { --ring-plan: var(--accent); --ring-focus: #2f78b7; --ring-habits: #c98a16; }
[data-theme="dark"] { --ring-plan: #4fae76; --ring-focus: #5aa2e0; --ring-habits: #e0a83a; }

/* Rings */
.td-rings { display: block; transform: rotate(-90deg); }
.td-rings circle { fill: none; stroke-width: 11; stroke-linecap: round; }
.ring-track { opacity: .16; }
.ring-plan { stroke: var(--ring-plan); }
.ring-focus { stroke: var(--ring-focus); }
.ring-habits { stroke: var(--ring-habits); }
.ring-fill { animation: ring-draw var(--dur-4) var(--ease-out) both; animation-duration: 900ms; transition: stroke-dashoffset var(--dur-4) var(--ease-out); }
@keyframes ring-draw { from { stroke-dashoffset: var(--c); } to { stroke-dashoffset: var(--off); } }
.nav-rings { width: 20px; height: 20px; display: inline-grid; place-items: center; flex: none; }
.nav-rings .td-rings circle { stroke-width: 14; }
.nav-rings .ring-fill { animation: none; }

.td-hero { display: grid; grid-template-columns: auto minmax(180px, 1fr) minmax(220px, 1.2fr); gap: 32px; align-items: center; margin-bottom: 20px; }
.td-ring-wrap { position: relative; display: grid; place-items: center; }
.td-perfect { position: absolute; bottom: -8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 4px 8px; border-radius: 999px; }
.td-legend { list-style: none; padding: 0; display: grid; gap: 12px; }
.td-legend li { display: grid; grid-template-columns: 12px auto 1fr; align-items: center; gap: 12px; font-size: 14px; }
.td-legend b { font-weight: 600; text-align: right; white-space: nowrap; }
.td-legend .dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.td-legend .dot.ring-plan { color: var(--ring-plan); }
.td-legend .dot.ring-focus { color: var(--ring-focus); }
.td-legend .dot.ring-habits { color: var(--ring-habits); }
.td-level .kbar { margin: 12px 0 8px; }
.td-xp { font-size: 16px; color: var(--muted); }
.td-xp b { font-size: 28px; font-weight: 700; letter-spacing: -.02em; color: var(--text); }
.td-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.td-pill { font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--surface-2); color: var(--text); }
.td-pill.done { background: var(--accent-soft); color: var(--accent); }

.td-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; align-items: start; }
.td-grid.two { margin-top: 20px; }
.td-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 20px; }
.td-lead { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.td-warn { color: var(--warn); font-size: 14px; margin: 4px 0 12px; }

/* Lists of things to do */
.td-list { list-style: none; padding: 0; display: grid; gap: 4px; }
.td-list li { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.td-list li:last-child { border-bottom: 0; }
.td-list li > div:not(.td-acts) { flex: 1; min-width: 0; }
.td-list strong { display: block; font-weight: 600; overflow-wrap: anywhere; }
.td-list small { color: var(--muted); font-size: 13px; }
.td-list li.is-done strong { color: var(--muted); text-decoration: line-through; }
.td-acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.td-check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--hatch); background: none; cursor: pointer; flex: none; position: relative; transition: background var(--dur-2) ease, border-color var(--dur-2) ease, transform var(--dur-1) ease; }
.td-check:active { transform: scale(.9); }
.td-check[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.td-check[aria-pressed="true"]::after { content: ''; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.td-frog { color: var(--accent); font-weight: 700; }
.td-steps { list-style: none; padding: 0; display: flex; gap: 12px; font-size: 13px; color: var(--muted); }
.td-steps li.on { color: var(--text); font-weight: 700; }
.td-add { display: flex; gap: 8px; margin-top: 16px; }
.td-add .input { flex: 1; min-width: 0; }
.td-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.td-foot .btn[disabled] { opacity: .45; cursor: not-allowed; }
.td-more summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; }
.td-more summary::-webkit-details-marker { display: none; }
.td-more summary h3 { font-size: 18px; font-weight: 600; }
.td-more[open] summary { margin-bottom: 12px; }

/* Habits today */
.hb-list { list-style: none; padding: 0; display: grid; gap: 4px; }
.hb-row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-start; justify-content: space-between; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.hb-row:last-child { border-bottom: 0; }
.hb-main { flex: 1 1 190px; display: grid; gap: 4px; min-width: 0; }
.hb-main strong { font-weight: 600; }
.hb-main small, .hb-meta { color: var(--muted); font-size: 13px; }
.hb-hint { display: block; margin-top: 2px; padding-left: 8px; border-left: 2px solid var(--warn); color: var(--warn); font-size: 13px; }
.hb-chain { display: flex; gap: 4px; margin-top: 4px; }
.hb-chain i { width: 9px; height: 9px; border-radius: 3px; background: var(--surface-2); border: 1px solid var(--line); }
.hb-chain i.done { background: var(--ring-habits); border-color: transparent; }
.hb-chain i.tiny { background: color-mix(in srgb, var(--ring-habits) 45%, transparent); border-color: transparent; }
.hb-chain i.rest { background: none; border-style: dashed; }
.hb-chain i.miss { background: color-mix(in srgb, var(--danger) 18%, transparent); border-color: transparent; }
.hb-chain i.open { border-color: var(--ring-habits); }
.hb-chain i.pre { opacity: .35; }
.hb-side { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; flex: 0 1 auto; }
.hb-amount { display: flex; align-items: center; gap: 8px; flex: none; }
.hb-amount input { width: 56px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 8px 8px; font: inherit; font-size: 13px; text-align: right; min-height: 34px; }
.hb-unit { color: var(--muted); font-size: 13px; white-space: nowrap; }
.hb-acts { display: flex; gap: 4px; flex: none; }
.hb-btn { border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 999px; cursor: pointer; min-height: 34px; transition: background var(--dur-2) ease, color var(--dur-2) ease, transform var(--dur-1) ease; }
.hb-btn:hover { color: var(--text); }
.hb-btn:active { transform: scale(.96); }
.hb-btn.hb-done[aria-pressed="true"] { background: var(--ring-habits); border-color: var(--ring-habits); color: #fff; }
.hb-btn.hb-tiny[aria-pressed="true"] { background: color-mix(in srgb, var(--ring-habits) 22%, transparent); color: var(--text); }
.hb-btn.hb-rest[aria-pressed="true"] { background: var(--surface-2); color: var(--text); }

/* Focus bar */
.td-focusbar { position: sticky; bottom: 16px; z-index: 5; margin-top: 20px; display: flex; align-items: center; gap: 16px; padding: 12px 16px 12px 20px; border-radius: 999px; background: var(--hero); color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.td-focusbar strong { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.td-focus-phase { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.td-clock { font-variant-numeric: tabular-nums; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.td-focusbar .icon-btn { color: #fff; background: rgba(255, 255, 255, .14); width: 40px; height: 40px; }
.td-focusbar .icon-btn svg { width: 16px; height: 16px; }

/* Habits tab: the month grid */
.td-month { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.td-month h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; min-width: 180px; text-align: center; }
.td-top { list-style: none; padding: 0; display: grid; gap: 8px; margin-top: 8px; }
.td-top li { display: flex; justify-content: space-between; font-size: 14px; }
.td-top b.good { color: var(--accent); }
[data-theme="dark"] .td-top b.good { color: var(--accent-2); }
.td-top b.low { color: var(--warn); }
.hb-grid-card { margin-bottom: 20px; }
.hb-scroll { overflow-x: auto; max-width: 100%; }
.hb-grid { border-collapse: separate; border-spacing: 2px; font-size: 13px; }
.hb-grid th, .hb-grid td { text-align: center; padding: 0; }
.hb-grid thead th { color: var(--muted); font-weight: 600; padding: 4px 2px; min-width: 26px; white-space: nowrap; }
.hb-grid thead th small { display: block; font-size: 10px; opacity: .7; }
.hb-grid.weekly thead th { min-width: 48px; }
.hb-grid thead th.today { color: var(--accent); }
.hb-grid th[scope="row"] { text-align: left; position: sticky; left: 0; background: var(--surface); z-index: 1; padding-right: 12px; }
.hb-name { border: 0; background: none; font: inherit; font-weight: 600; color: var(--text); cursor: pointer; padding: 4px 0; white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.hb-name:hover { color: var(--accent); }
.hb-cell { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: #fff; font: inherit; font-weight: 700; cursor: pointer; transition: background var(--dur-2) ease, transform var(--dur-1) ease; }
.hb-grid.weekly .hb-cell { width: 44px; }
.hb-cell:active { transform: scale(.9); }
.hb-cell[disabled] { opacity: .35; cursor: default; }
.hb-cell.done { background: var(--ring-habits); border-color: transparent; }
.hb-cell.tiny { background: color-mix(in srgb, var(--ring-habits) 40%, transparent); border-color: transparent; color: var(--text); }
.hb-cell.rest { background: none; border-style: dashed; color: var(--muted); }
.hb-cell.miss { background: color-mix(in srgb, var(--danger) 12%, var(--surface-2)); border-color: color-mix(in srgb, var(--danger) 25%, var(--line)); }
.hb-grid .num { color: var(--muted); padding: 0 8px; font-variant-numeric: tabular-nums; }
.hb-grid .num b { color: var(--text); }
.hb-grid tfoot th, .hb-grid tfoot td { padding-top: 8px; color: var(--muted); font-weight: 600; }
.td-weeks { list-style: none; padding: 0; display: grid; gap: 12px; }
.td-weeks li { display: grid; grid-template-columns: 70px 1fr 60px; align-items: center; gap: 12px; font-size: 14px; }
.td-weeks b { text-align: right; font-variant-numeric: tabular-nums; }

/* Progress */
.td-medals { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.td-medals li { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; background: var(--surface-2); opacity: .55; }
.td-medals li.won { opacity: 1; background: var(--accent-soft); }
.td-medals strong { display: block; font-size: 13px; font-weight: 600; }
.td-medals small { color: var(--muted); font-size: 13px; }
.td-medal { width: 30px; height: 30px; border-radius: 50%; flex: none; background: var(--hatch); box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .35); }
.td-medals li.won .td-medal { background: linear-gradient(145deg, #e9c46a, #c98a16); }
.td-review { list-style: none; padding: 0; display: grid; gap: 2px; }
.td-review li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.td-review li:last-child { border-bottom: 0; }
.td-review small { display: block; color: var(--muted); font-size: 13px; }
.td-review b { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.td-prefs { margin-bottom: 12px; }
.td-import-row { display: flex !important; gap: 12px; align-items: flex-start; }
.td-import-row small { display: block; }

@media (max-width: 760px) {
  .td-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 20px; }
  .td-legend, .td-level { width: 100%; text-align: left; }
  .td-grid { grid-template-columns: 1fr; }
  .hb-row { flex-direction: column; }
  .td-list li { flex-wrap: wrap; }
  .td-steps { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ring-fill { animation: none; transition: none; } }

/* A row keeps room for its title: the actions move under it when the card is narrow, never squeeze it to one letter */
.td-list li { flex-wrap: wrap; row-gap: var(--sp-3); }
.td-list li > div:not(.td-acts) { flex: 1 1 160px; }
.td-list strong { overflow-wrap: break-word; }
.td-acts { flex: 1 1 auto; }
.td-plan .card-head, .td-card-head { flex-wrap: wrap; row-gap: var(--sp-2); }
.td-steps { flex-wrap: wrap; row-gap: var(--sp-1); }
.td-steps li { white-space: nowrap; }

/* ---------- Timeline (Today › Timeline) ---------- */
.tl-strip { display: grid; grid-template-columns: 32px repeat(7, minmax(0, 1fr)) 32px; gap: var(--sp-2); align-items: center; margin-bottom: var(--sp-4); }
.tl-step { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: var(--r-pill); background: none; color: var(--muted); cursor: pointer; }
.tl-step svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.tl-daybtn { display: grid; justify-items: center; gap: var(--sp-1); min-width: 0; padding: var(--sp-3) 0 var(--sp-2); border: 0; border-radius: var(--r-lg); background: var(--accent-soft); color: var(--text); cursor: pointer; font: inherit;
  transition: background var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out), transform var(--dur-1) var(--ease-out); }
.tl-daybtn:active { transform: scale(.96); }
.tl-daybtn span { font-size: 13px; color: var(--muted); }
.tl-daybtn b { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tl-daybtn.is-today:not([aria-pressed="true"]) b { color: var(--accent); }
.tl-daybtn[aria-pressed="true"] { background: var(--hero); color: #fff; box-shadow: 0 8px 18px -10px var(--accent); }
.tl-daybtn[aria-pressed="true"] span { color: rgba(255, 255, 255, .85); }
.tl-daydot { width: 6px; height: 6px; border-radius: 50%; background: transparent; }
.tl-daydot.full { background: var(--accent); }
.tl-daydot.some { background: var(--ring-habits); }
.tl-daydot.none { background: var(--hatch); }
.tl-daybtn[aria-pressed="true"] .tl-daydot:is(.full, .some, .none) { background: #fff; }
@media (hover: hover) and (pointer: fine) { .tl-daybtn:not([aria-pressed="true"]):hover { background: color-mix(in srgb, var(--accent) 18%, transparent); } .tl-step:hover { background: var(--surface-2); } }

.tl-overdue { display: block; margin-bottom: var(--sp-4); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); background: color-mix(in srgb, var(--warn) 12%, transparent); color: var(--text); font-weight: 600; font-size: 14px; text-decoration: none; }
.tl-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: var(--sp-5); align-items: start; }
.tl-grid > div > .card + .card { margin-top: var(--sp-5); }
.tl-day .card-head h3 { font-size: 20px; }

.tl-score { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-6); align-items: end; margin-bottom: var(--sp-5); }
.tl-score-head { margin: var(--sp-1) 0 var(--sp-3); font-size: 18px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.tl-score .kbar { margin-bottom: var(--sp-2); }
.tl-score-lv { text-align: right; }

/* The rail: time on the left, a line with a node, the card on the right */
.tl-list { list-style: none; margin: 0; padding: 0; }
.tl-row, .tl-gap, .tl-hour { display: grid; grid-template-columns: 76px 24px minmax(0, 1fr); gap: 0 var(--sp-3); align-items: center; }
.tl-row { padding: var(--sp-2) 0; }
.tl-gap { padding: var(--sp-2) 0; }
.tl-at { display: grid; justify-items: end; line-height: 1.25; font-variant-numeric: tabular-nums; color: var(--muted); }
.tl-at b { font-size: 17px; font-weight: 600; color: var(--muted); }
.tl-at span { font-size: 13px; }
.tl-row.is-next .tl-at b, .tl-row.is-next .tl-at span { color: var(--text); font-weight: 700; }
.tl-range { display: grid; justify-items: end; font-size: 12px; line-height: 1.35; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-range span { opacity: .8; }
.tl-rail { position: relative; align-self: stretch; display: grid; place-items: center; min-height: 40px; }
.tl-rail::before { content: ''; position: absolute; top: calc(-1 * var(--sp-2)); bottom: calc(-1 * var(--sp-2)); left: 50%; width: 2px; transform: translateX(-50%); background: var(--line); }
.tl-list > li:first-child .tl-rail::before { top: 50%; }
.tl-list > li:last-child .tl-rail::before { bottom: 50%; }
.tl-rail i { position: relative; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 2px solid var(--hatch); }
.tl-rail i svg { width: 12px; height: 12px; fill: none; stroke: var(--muted); stroke-width: 2.4; }
.tl-row .tl-rail i { width: 18px; height: 18px; }
.tl-row.is-done .tl-rail i { background: var(--hatch); border-color: var(--hatch); }
.tl-row.is-next .tl-rail i { width: 24px; height: 24px; border: 3px solid var(--accent); }
.tl-row.is-next .tl-rail i::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

/* Cards */
.tl-card { min-width: 0; padding: var(--sp-4); border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid transparent; transition: background var(--dur-2) var(--ease-out), opacity var(--dur-2) var(--ease-out); }
.tl-card-top { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; }
.tl-card-top strong { flex: 1; min-width: 0; font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.tl-ico { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--r-md); background: var(--surface); }
.tl-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tl-habit .tl-ico { color: var(--ring-habits); }
.tl-task .tl-ico, .tl-reminder .tl-ico { color: var(--ring-focus); }
.tl-workout .tl-ico { color: var(--danger); }
.tl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) 0; margin: var(--sp-3) 0 0; font-size: 13px; color: var(--muted); }
.tl-meta span { display: inline-flex; align-items: center; gap: var(--sp-1); }
.tl-meta span + span::before { content: ''; width: 1px; height: 12px; margin: 0 var(--sp-2); background: var(--line); }
.tl-meta svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.tl-left { color: var(--accent); font-weight: 700; }
.tl-card.is-done { opacity: .62; }
.tl-card.is-done strong { color: var(--muted); }
.tl-card.is-done .td-check[aria-pressed="true"] { background: var(--hatch); border-color: var(--hatch); }
.tl-card.is-next { background: color-mix(in srgb, var(--danger) 8%, var(--surface)); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.tl-card.is-next .tl-ico { color: var(--danger); }
.tl-card.is-next .tl-meta > span:first-child { color: var(--danger); }
.tl-badge { font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent); }

/* Folded empty hours */
.tl-gappill { display: flex; align-items: center; gap: var(--sp-2); width: 100%; min-width: 0; min-height: 44px; padding: var(--sp-2) var(--sp-4); border: 0; border-radius: var(--r-md); background: var(--surface-2); color: var(--text); font: inherit; font-size: 15px; font-weight: 600; text-align: left; cursor: pointer; }
.tl-gappill > span:nth-child(2) { flex: 1; min-width: 0; }
.tl-gappill b { color: var(--accent); font-weight: 700; }
.tl-zz { font-size: 12px; font-weight: 800; letter-spacing: -.02em; color: var(--ring-focus); }
.tl-gap .tl-rail i { width: 20px; height: 20px; border-width: 1.5px; }
.tl-hour { min-height: 40px; }
.tl-hour .tl-rail::before { background: repeating-linear-gradient(to bottom, var(--line) 0 4px, transparent 4px 8px); }
.tl-hour .tl-at span { font-size: 12px; }
.tl-free { font-size: 13px; color: var(--muted); }

/* Now: a pill on the left, a dotted line across */
.tl-now { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0; padding: var(--sp-2) 0; }
.tl-nowpill { justify-self: start; padding: var(--sp-1) var(--sp-2); border-radius: var(--r-sm); background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; line-height: 1.3; text-align: center; white-space: nowrap; }
.tl-nowline { display: flex; align-items: center; gap: 0; }
.tl-nowline i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.tl-nowline::after { content: ''; flex: 1; border-top: 2px dotted var(--accent); }

/* Any time and This week */
.tl-flat { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.tl-anyrow { display: grid; gap: var(--sp-2); }
.tl-settime-wrap { display: flex; align-items: center; justify-content: flex-end; gap: var(--sp-2); font-size: 13px; color: var(--muted); }
.tl-settime { width: 120px; min-height: 36px; padding: 4px 8px; font-size: 14px; }

.tl-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
.tl-stat { display: grid; gap: 2px; min-width: 0; }
.tl-stat b { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tl-hl { list-style: none; margin: var(--sp-5) 0 0; padding: var(--sp-4) 0 0; border-top: 1px solid var(--line); display: grid; gap: var(--sp-3); }
.tl-hl li { display: grid; gap: 2px; }
.tl-hl b { overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .tl-grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
  .tl-grid > div > .card + .card { margin-top: var(--sp-4); }
  .tl-score { grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); margin-bottom: var(--sp-4); }
  .tl-score-lv { text-align: left; }
}
@media (max-width: 520px) {
  .tl-strip { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--sp-1); }
  .tl-step { display: none; }
  .tl-daybtn b { font-size: 17px; }
  .tl-row, .tl-gap, .tl-hour { grid-template-columns: 58px 20px minmax(0, 1fr); gap: 0 var(--sp-2); }
  .tl-at b { font-size: 15px; }
  .tl-range { font-size: 11px; }
  .tl-card { padding: var(--sp-3); }
  .tl-card-top strong { font-size: 16px; }
  .tl-ico { width: 32px; height: 32px; }
  .tl-gappill { font-size: 14px; padding: var(--sp-2) var(--sp-3); }
  .tl-hid { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tl-daybtn, .tl-card { transition: none; } }
