:root { --bg: #fbfbfa; --fg: #1f2328; --muted: #66707c; --line: #e5e8eb; --tint: #f1f3f5; --accent: #7fb3d0; --ok: #2f7d4f; --ok-tint: #e5f3ea; --active: #3a5a7a; --active-tint: #e8eef5; --bad: #8a3b2e; --bad-tint: #f7e8e4; --warn: #7a5a12; --warn-tint: #f8efd9; --radius: 10px; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font: 14px/1.45 -apple-system, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif; }
.tk { max-width: 1240px; margin: 0 auto; padding: 20px max(16px, env(safe-area-inset-left, 0px)) 40px; display: grid; gap: 18px; }
h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 28px; margin: 0; }
h2 { font-size: 16px; font-weight: 600; margin: 0; }
p { margin: 0; }
.tk-head { display: grid; gap: 10px; }
.tk-title { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.tk-asof, .tk-muted, .tk-note { color: var(--muted); font-size: 12px; }
.tk-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-tabs a { color: var(--muted); text-decoration: none; background: var(--tint); border-radius: 999px; padding: 3px 12px; line-height: 1.7; font-size: 13px; }
.tk-tabs a.is-on, .tk-tabs a:hover { color: var(--fg); background: var(--active-tint); }
main { display: grid; gap: 16px; }
.tk-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr)); gap: 12px; }
.tk-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; display: grid; gap: 2px; align-content: start; }
.tk-label { font-size: 12px; color: var(--muted); }
.tk-big { font-family: Georgia, serif; font-size: 28px; font-variant-numeric: tabular-nums; line-height: 1.15; }
.tk-sub { font-size: 12px; color: var(--muted); }
.tk-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 10px; min-width: 0; align-content: start; }
.tk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: 12px; }
.tk-scroll { overflow-x: auto; }
.tk-tools { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 12px; color: var(--muted); }
.tk-tools label { display: inline-flex; align-items: center; gap: 6px; }
select, input[type=text], textarea { font: inherit; color: var(--fg); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 3px 8px; }
textarea { width: 100%; resize: vertical; }
table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; padding: 4px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 5px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
td.nowrap { white-space: nowrap; }
td.kind { white-space: nowrap; color: var(--muted); font-size: 12px; }
td.saved { font-size: 12px; color: var(--muted); max-width: 18rem; }
.pill { display: inline-block; border-radius: 999px; padding: 1px 10px; font-size: 12px; white-space: nowrap; color: var(--muted); background: var(--tint); }
.pill.is-live { color: var(--ok); background: var(--ok-tint); }
.pill.is-active { color: var(--active); background: var(--active-tint); }
.pill.is-block { color: var(--bad); background: var(--bad-tint); }
.pill.is-warn { color: var(--warn); background: var(--warn-tint); }
.bar { position: relative; height: 8px; border-radius: 999px; background: var(--tint); overflow: hidden; min-width: 6rem; }
.bar i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--accent); }
.prog { display: grid; grid-template-columns: minmax(7rem, 14rem) 1fr 4rem; gap: 10px; align-items: center; font-size: 13px; }
.prog .pct { text-align: right; color: var(--muted); font-size: 12px; }
.btn { font: inherit; font-size: 12px; color: var(--fg); background: var(--tint); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--active-tint); }
.btn:disabled { opacity: .5; cursor: default; }
.ans { display: flex; gap: 6px; align-items: center; min-width: 14rem; }
.ans input { flex: 1; min-width: 0; }
.msg { display: grid; gap: 6px; }
.msg-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 12px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 8px; text-decoration: none; color: inherit; }
.pcard:hover { border-color: var(--accent); }
.pcard h2 { font-size: 18px; }
.pcard .counts { display: flex; gap: 8px; flex-wrap: wrap; }
.tk-foot details { color: var(--muted); font-size: 12px; }
.tk-foot summary { cursor: pointer; color: var(--fg); font-weight: 600; }
.empty { color: var(--muted); font-size: 13px; }
@media (max-width: 640px) { .prog { grid-template-columns: 1fr 4rem; } .prog .bar { grid-column: 1 / -1; } }
