

.tk-pre { flex-grow: 1; min-height: 0; overflow: auto; }
.tk-shot, .tk-scroll { flex-grow: 1; min-height: 0; overflow: auto; border: 1px solid var(--line); border-radius: 4px; background: var(--panel-2); }
.tk-shot img { display: block; width: 100%; height: auto; }
.tk-scroll { background: var(--panel); }
.tk-scroll .tbl td, .tk-scroll .tbl th { height: 34px; }
.tk-strip { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 4px; background: var(--panel-2); border: 1px solid var(--line-2); font-size: 13px; flex-shrink: 0; }
.tk-strip .i { color: var(--muted); }

/* Links of a result: the words, the address under them, Copy on the right. */
.tk-links-h { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 8px 0 14px; font-size: 12px; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--line-2); position: sticky; top: 0; background: var(--panel); z-index: 1; }
.tk-link { display: flex; align-items: center; gap: 8px; padding: 0 8px 0 14px; min-height: 46px; border-bottom: 1px solid var(--line-2); transition: background-color 80ms; }
.tk-link:hover { background: var(--hover); }
.tk-link-a { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; padding: 6px 0; color: var(--text); font-size: 13px; }
.tk-link-a:hover { text-decoration: none; }
.tk-link-a:hover .tk-link-u { text-decoration: underline; }
.tk-link-u { font-size: 11.5px; color: var(--link); }
.tk-link .btn { opacity: 0; }
.tk-link:hover .btn, .tk-link .btn:focus-visible { opacity: 1; }

/* ---------- All tasks ---------- */
.tk-list { width: 440px; flex-shrink: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); min-height: 0; position: relative; }
/* Segment counts read like the mockup's "sub num": the label's size and weight. */
.tk-list .seg .n { font-size: 12.5px; font-weight: inherit; font-variant-numeric: tabular-nums; }

.tk-list .selbar { bottom: 52px; }

.tk-prev { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.tk-pv { flex-grow: 1; min-height: 0; display: flex; flex-direction: column; }
.tk-pv-top { padding: 16px 22px 0; display: flex; flex-direction: column; gap: 14px; flex-shrink: 0; }
.tk-pv-b { flex-grow: 1; min-height: 0; overflow: auto; padding: 14px 22px; display: flex; flex-direction: column; gap: 10px; }

.tk-facts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; padding: 12px 14px; border-radius: 4px; background: var(--panel-2); border: 1px solid var(--line-2); }
.tk-ptabs { gap: 18px; margin: 14px 22px 0; align-items: center; }
.tk-ptabs .tab { height: auto; padding-bottom: 9px; gap: 4px; }
.tk-ptabs .tab .n { font-size: 12px; }
.tk-ptabs .btn { margin-bottom: 6px; }

.tk-att { display: flex; flex-direction: column; gap: 10px; padding: 10px 12px; border-radius: 4px; border: 1px solid var(--line); flex-shrink: 0; }
.tk-att-h { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: start; font-size: 13px; line-height: 1.5; }
.tk-wf { display: flex; flex-direction: column; gap: 3px; padding-left: 32px; }
.tk-wf-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 70px; gap: 10px; align-items: center; height: 19px; }
.tk-wf-track { position: relative; height: 8px; background: var(--track); border-radius: 3px; }
.tk-wf-track i { position: absolute; top: 0; height: 8px; border-radius: 2px; }

/* ---------- Scheduled ---------- */
.tk-grp { padding: 12px 16px 6px; }
.tr + .tk-grp { padding-top: 14px; }
.tr.tk-srow { padding: 0 16px; height: 56px; gap: 12px; }
.tk-squares { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 3px; }
.tk-sq { height: 26px; border-radius: 3px; opacity: .85; transition: opacity 80ms; }
a.tk-sq:hover { opacity: 1; }
.tk-sq.off { background: var(--track); opacity: 1; }
.tk-run-row { display: grid; grid-template-columns: 8px 60px minmax(0, 1fr) 70px 64px; gap: 12px; align-items: center; height: 38px; border-top: 1px solid var(--line-2); font-size: 13px; }

@media (max-width: 1100px) {
  .tk-list { width: 360px; }
  .tk-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* a narrow window: a slimmer list beside the schedule, then the list above it */
@container split (width < 900px) {
  .split > .tk-list { width: 300px; }
}
@container content (width < 640px) {
  .split:has(> .tk-list) { flex-direction: column; }
  .split > .tk-list { width: auto; max-height: 40%; flex-shrink: 0; border-right: 0; border-bottom: 1px solid var(--line); }
}
