/* trials.css — Aviance Hub · Trials section.
   Loaded by index.html next to trials.js. Every colour and every font size
   comes from the shell's tokens in index.html (:root and body.dark):
     font   one family for everything: --font (the system UI font). No second
            family, no capitals-only labels, no letter-spacing, weights 400/600.
     type   --fs-min 13 · --fs-small 14 · --fs-base 15 · --fs-strong 16 ·
            --fs-h3 18 · --fs-h2 22 · --fs-num 18 · --fs-num-lg 24 (px)
     colour --text --muted --muted-2 · --green/--amber/--red/--blue (text)
            and --green-bg/--amber-bg/--red-bg/--blue-bg (pill fills)
     charts --c1 --c2 --c3 (series) · --c-none (zero/unchecked) · --grid ·
            --g-a --g-b --g-c (lead grades, an ordered blue ramp)
   Readability floor (see README): nothing under 13px; every text/background
   pair ≥ 4.5:1 and every chart mark ≥ 3:1 in light and dark.
   Everything here is prefixed tk- so it cannot collide with the shell. */

/* ── small bits ─────────────────────────────────────────────────────────── */
.tk-dot{display:inline-block;width:10px;height:10px;flex:none;background:var(--muted-2)}
.tk-dot.green{background:var(--green)}
.tk-dot.amber{background:var(--amber)}
.tk-dot.red{background:var(--red)}
.tk-dot.grey{background:var(--muted-2)}
.tk-muted{color:var(--muted)}
.tk-small{font-size:var(--fs-small)}
.tk-red{color:var(--red)}
.tk-amber{color:var(--amber)}
.tk-linkish{cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.tk-break{overflow-wrap:anywhere;word-break:break-word}
.tk-gap{margin-top:12px}
.tk-gap-s{margin-top:6px}
.tk-gap-b{margin-bottom:16px}
.tk-pad{padding:16px 18px}
.tk-maxw{max-width:380px}
.tk-flush{margin:0;padding-left:18px}
.tk-updated{font-size:var(--fs-min);color:var(--muted-2);white-space:nowrap}
.tk-help{font-size:var(--fs-small);color:var(--muted);margin:8px 0 0;line-height:1.5}
.tk-note{font-size:var(--fs-small);color:var(--amber);padding:11px 14px;border:1px solid var(--amber);margin-bottom:14px;line-height:1.55}
.tk-note.red{color:var(--red);border-color:var(--red)}
.tk-loading{padding:40px 20px;text-align:center;font-size:var(--fs-base);color:var(--muted)}
.tk-err{padding:24px 26px;border-color:var(--red)}
.tk-err b{font-size:var(--fs-h3);font-weight:600;display:block;margin-bottom:8px}
.tk-err p{font-size:var(--fs-small);color:var(--muted);line-height:1.6;margin-bottom:16px;overflow-wrap:anywhere}
.tk-section{margin:28px 0 13px}
.tk-section:first-child{margin-top:0}
.tk-inline{display:flex;gap:9px;flex-wrap:wrap;align-items:center}
.tk-inline input,.tk-inline select,.tk-inline textarea{background:var(--surface);border:1px solid var(--border);padding:9px 11px;color:var(--text);font-size:var(--fs-base);outline:none;min-width:0}
.tk-inline input:focus,.tk-inline select:focus,.tk-inline textarea:focus{border-color:var(--text)}
.tk-inline .btn{padding:9px 13px}
.tk-kv{display:grid;grid-template-columns:180px 1fr;gap:10px 14px;font-size:var(--fs-base);align-items:baseline;line-height:1.5}
.tk-kv small{font-size:var(--fs-small);color:var(--muted)}
@media(max-width:560px){.tk-kv{grid-template-columns:1fr;gap:2px 0}.tk-kv small{margin-top:10px}}

/* status pills (system cards, checks) — the word always says the status; the fill only helps */
.pill.tk-st.ok{background:var(--green-bg);color:var(--green)}
.pill.tk-st.working{background:var(--text);color:var(--bg)}
.pill.tk-st.waiting{background:var(--amber-bg);color:var(--amber)}
.pill.tk-st.blocked{background:var(--red-bg);color:var(--red)}
.pill.tk-st.off{background:var(--surface-2);color:var(--muted-2);box-shadow:inset 0 0 0 1px var(--border-soft)}
.pill.tk-st.unknown{background:var(--blue-bg);color:var(--blue)}

/* ── machine bar ────────────────────────────────────────────────────────── */
.tk-bar{display:flex;flex-wrap:wrap;align-items:stretch;margin-bottom:16px}
.tk-stat{display:flex;align-items:center;gap:10px;padding:13px 16px;border-right:1px solid var(--border-soft);min-width:0}
.tk-stat small{display:block;font-size:var(--fs-min);color:var(--muted)}
.tk-stat b{display:block;font-size:var(--fs-num);font-weight:600;margin-top:2px;white-space:nowrap}
.tk-stat b span{color:var(--muted-2);font-weight:400}
.tk-bar .tk-right{margin-left:auto;display:flex;align-items:center;gap:10px;padding:10px 14px;flex-wrap:wrap}
.tk-setupline{font-size:var(--fs-small);color:var(--amber);padding:10px 16px;border-top:1px solid var(--border-soft);width:100%;flex-basis:100%;line-height:1.5}
@media(max-width:860px){.tk-stat{padding:11px 13px}.tk-bar .tk-right{margin-left:0;width:100%;border-top:1px solid var(--border-soft)}}
@media(max-width:560px){.tk-stat{flex:1 1 40%;align-items:flex-start}.tk-stat-wide{flex-basis:100%}.tk-stat b{white-space:normal}}

/* ── to-do list ─────────────────────────────────────────────────────────── */
.tk-todos{padding:2px 0}
.tk-todo{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;padding:15px 16px;border-bottom:1px solid var(--border-soft)}
.tk-todo:last-child{border-bottom:none}
.tk-todo.urgent{background:var(--urgent-row)}
.tk-todo .tk-todo-main{min-width:0}
.tk-todo b{font-size:var(--fs-strong);font-weight:600;display:block;line-height:1.4}
.tk-todo small{font-size:var(--fs-small);color:var(--muted);display:block;margin-top:5px;line-height:1.5}
.tk-todo .tk-client{color:var(--text);font-weight:600;cursor:pointer}
.tk-todo .tk-client:hover{text-decoration:underline}
.tk-todo .tk-since{font-size:var(--fs-min);color:var(--muted-2)}
.tk-todo-empty{padding:18px 16px;font-size:var(--fs-base);color:var(--muted)}
@media(max-width:560px){.tk-todo{grid-template-columns:auto 1fr;gap:10px 12px}.tk-todo .tk-todo-act{grid-column:2}}

/* ── the Trials list (the screen the owner lands on) ─────────────────────
   One big tap target per trial client. Groups: "Needs you" (red), "In progress", a folded "Done / not
   taken". A row that needs the owner: red left edge + a red "You need to…" line. The journey: five
   small squares (✓ done, filled = now, empty = still to come) + "Step 2 of 5 — Onboarding call". */
.tk-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.tk-group{font-size:var(--fs-h3);font-weight:600;margin:32px 0 12px;line-height:1.3}
.tk-group:first-child{margin-top:4px}
.tk-group.red{color:var(--red)}
.tk-people{display:flex;flex-direction:column;gap:12px}
.tk-person{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;width:100%;min-height:64px;padding:18px 20px;text-align:left;background:var(--surface);color:var(--text);border:1px solid var(--border-soft);border-left:5px solid var(--border-soft);font:inherit;cursor:pointer;transition:border-color .12s,background .12s}
.tk-person:hover{border-color:var(--muted-2);background:var(--surface-2)}
.tk-person:focus-visible{outline:2px solid var(--text);outline-offset:2px}
.tk-person.needs{border-left-color:var(--red)}
.tk-person.needs:hover{border-left-color:var(--red)}
.tk-person-main{display:flex;flex-direction:column;gap:6px;min-width:0}
.tk-person-top{display:flex;align-items:baseline;gap:4px 12px;flex-wrap:wrap}
.tk-person-co{font-size:var(--fs-h3);font-weight:600;line-height:1.3;overflow-wrap:anywhere}
.tk-person-name{font-size:var(--fs-base);color:var(--muted);line-height:1.4;overflow-wrap:anywhere}
.tk-person-where{display:flex;align-items:center;gap:6px 12px;flex-wrap:wrap}
.tk-person-step{font-size:var(--fs-small);font-weight:600;line-height:1.4}
.tk-person-say{font-size:var(--fs-base);line-height:1.5;overflow-wrap:anywhere}
.tk-person-you{font-size:var(--fs-base);font-weight:600;color:var(--red);line-height:1.5;overflow-wrap:anywhere}
.tk-person-next{font-size:var(--fs-small);color:var(--muted);line-height:1.5;overflow-wrap:anywhere}
.tk-person-go{font-size:var(--fs-num-lg);color:var(--muted-2);line-height:1}
.tk-bar5{display:inline-flex;gap:3px;flex:none}
.tk-b5{display:grid;place-items:center;width:22px;height:22px;font-size:var(--fs-min);font-weight:600;line-height:1;border:1px solid var(--border-soft);color:var(--muted-2);background:var(--surface)}
.tk-b5.done{background:var(--green-bg);border-color:var(--green-bg);color:var(--green)}
.tk-b5.now{background:var(--text);border-color:var(--text);color:var(--bg)}
.tk-allclear{font-size:var(--fs-base);color:var(--green);background:var(--green-bg);padding:14px 16px;margin:4px 0 8px;line-height:1.5}
.tk-done{margin-top:32px;border-top:1px solid var(--border-soft)}
.tk-done>summary{display:flex;align-items:center;gap:10px;min-height:52px;padding:12px 0;cursor:pointer;list-style:none}
.tk-done>summary::-webkit-details-marker{display:none}
.tk-done>summary:focus-visible{outline:2px solid var(--text)}
.tk-done-title{font-size:var(--fs-h3);font-weight:600}
.tk-done-title::before{content:'▸ ';color:var(--muted)}
.tk-done[open] .tk-done-title::before{content:'▾ '}
.tk-done-count{font-size:var(--fs-min);font-weight:600;color:var(--muted);background:var(--surface-2);padding:3px 9px}
.tk-done .tk-person{background:var(--surface)}
.tk-add{margin-top:32px;padding-top:16px;border-top:1px solid var(--border-soft)}
.tk-textbtn{background:none;border:none;padding:0;min-height:44px;color:var(--text);font:inherit;font-size:var(--fs-small);text-decoration:underline;text-underline-offset:2px;cursor:pointer}
.tk-textbtn:hover{color:var(--muted)}
.tk-textbtn:focus-visible{outline:2px solid var(--text)}
@media(max-width:560px){.tk-person{padding:16px 14px;gap:8px}.tk-add .btn{width:100%;justify-content:center}}

/* ── board (stage columns) ──────────────────────────────────────────────── */
.tk-board{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(280px,1fr);gap:12px;overflow-x:auto;padding-bottom:10px;-webkit-overflow-scrolling:touch}
.tk-col{background:var(--bg);border:1px solid var(--border-soft);padding:12px;min-height:160px}
.tk-col-head{display:flex;align-items:center;gap:8px;margin-bottom:12px;padding:2px 4px}
.tk-col-head b{font-size:var(--fs-base);font-weight:600}
.tk-col-head .ct{font-size:var(--fs-min);color:var(--muted);background:var(--surface-2);padding:1px 8px;margin-left:auto}
.tk-empty-col{font-size:var(--fs-small);color:var(--muted-2);padding:8px 4px}
.tk-card{background:var(--surface);border:1px solid var(--border);padding:14px;margin-bottom:10px;cursor:pointer;transition:border-color .12s}
.tk-card:hover{border-color:var(--text)}
.tk-card.review{border-left:4px solid var(--red)}
.tk-card-top{display:flex;align-items:center;gap:8px}
.tk-card-top b{font-size:var(--fs-strong);font-weight:600;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tk-card .tk-state{display:block;font-size:var(--fs-small);color:var(--muted);margin-top:4px;line-height:1.4}
.tk-new{display:inline-block;font-size:var(--fs-min);font-weight:600;background:var(--text);color:var(--bg);padding:3px 8px;margin-top:8px}
.tk-five{display:flex;justify-content:space-between;gap:6px;margin-top:12px;padding-top:10px;border-top:1px solid var(--border-soft)}
.tk-five>div{min-width:0}
.tk-five b{display:block;font-size:var(--fs-num);font-weight:600;line-height:1.2}
.tk-five small{display:block;font-size:var(--fs-min);color:var(--muted);margin-top:2px;white-space:nowrap}
.tk-card-spark{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:10px;padding-top:10px;border-top:1px solid var(--border-soft)}
.tk-card-spark small{display:block;font-size:var(--fs-min);color:var(--muted)}
.tk-card-spark b{display:block;font-size:var(--fs-strong);font-weight:600;line-height:1.3}
.tk-card-spark-empty{font-size:var(--fs-min);color:var(--muted-2);margin-top:10px;padding-top:10px;border-top:1px solid var(--border-soft)}
.tk-card-meta{display:flex;align-items:center;gap:8px;margin-top:10px}
.tk-card-todo{margin-top:10px;font-size:var(--fs-small);line-height:1.45}
.tk-card-todo.urgent{color:var(--red);font-weight:600}
.tk-card-next{margin-top:7px;font-size:var(--fs-min);color:var(--muted-2);line-height:1.45}

/* queue + "also on the machine" */
.tk-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.tk-mini{padding:15px 16px;cursor:default}
.tk-mini.click{cursor:pointer}
.tk-mini.click:hover{border-color:var(--text)}
.tk-mini b{font-size:var(--fs-strong);font-weight:600;display:block}
.tk-mini small{display:block;font-size:var(--fs-small);color:var(--muted);margin-top:3px;line-height:1.5}
.tk-mini .tk-acts{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}
.tk-mini .tk-five{margin-top:10px}

/* ── trial detail: header, tabs ─────────────────────────────────────────── */
.tk-head{padding:20px 22px;display:flex;gap:14px 18px;flex-wrap:wrap;align-items:flex-start;margin-bottom:18px}
.tk-head .tk-head-main{min-width:0;flex:1 1 320px}
.tk-head h2{font-size:var(--fs-h2);font-weight:600;line-height:1.2;display:flex;align-items:center;gap:10px}
.tk-head .tk-pills{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px;align-items:center}
.tk-head .tk-meta{font-size:var(--fs-base);color:var(--muted);margin-top:10px;line-height:1.6}
.tk-head .tk-btns{display:flex;gap:8px;flex-wrap:wrap;align-items:flex-start}
.tk-head-stamp{flex-basis:100%}
.tk-reasons{font-size:var(--fs-small);color:var(--amber);margin-top:9px;line-height:1.55}
.tk-dates{display:flex;gap:10px 26px;margin-top:13px;flex-wrap:wrap}
.tk-dates small{display:block;font-size:var(--fs-min);color:var(--muted)}
.tk-dates b{display:block;font-size:var(--fs-strong);font-weight:600;margin-top:2px}
.tk-tabs{margin:4px 0 18px;overflow-x:auto;-webkit-overflow-scrolling:touch}
.tk-tabs .seg{display:inline-flex}
.tk-pills{display:flex;gap:8px;flex-wrap:wrap}

/* ── one trial: the three questions at the top ─────────────────────────────
   Where are they? (the big journey + the plain sentence) · What happens next? · What do you need to do?
   (one big button). A trial that needs the owner gets the red left edge, like its row on the list. */
.tk-top{padding:22px 24px 26px;margin-bottom:24px;border-left:5px solid var(--border-soft)}
.tk-top.needs{border-left-color:var(--red)}
.tk-top-who{font-size:var(--fs-base);color:var(--muted);line-height:1.6;overflow-wrap:anywhere}
.tk-top-who b{color:var(--text)}
.tk-q{margin-top:22px}
.tk-q-title{font-size:var(--fs-small);font-weight:600;color:var(--muted);line-height:1.4;margin-bottom:8px}
.tk-q-big{font-size:var(--fs-h3);font-weight:600;line-height:1.45;margin-top:12px;overflow-wrap:anywhere}
.tk-q-day{font-size:var(--fs-base);margin-top:4px}
.tk-q-text{font-size:var(--fs-strong);line-height:1.5;overflow-wrap:anywhere}
.tk-q-say{font-size:var(--fs-strong);line-height:1.5;margin-bottom:12px;overflow-wrap:anywhere}
.tk-q-you .tk-q-say{font-weight:600}
.tk-top.needs .tk-q-you .tk-q-say{color:var(--red)}
.tk-q-none{font-size:var(--fs-strong);line-height:1.5;color:var(--green);background:var(--green-bg);padding:12px 14px}
/* what the owner must read before the big button (the angry or legal reply itself) */
.tk-q-quote{margin:0 0 14px;padding:12px 14px;border-left:3px solid var(--border);background:var(--surface-2)}
.tk-q-quote p{font-size:var(--fs-strong);line-height:1.5;overflow-wrap:anywhere}
.tk-q-quote footer{font-size:var(--fs-small);color:var(--muted);line-height:1.5;margin-top:6px;overflow-wrap:anywhere}
.btn.tk-primary{min-height:52px;padding:14px 22px;font-size:var(--fs-strong);white-space:normal;text-align:left;line-height:1.3}
.tk-journey{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;list-style:none;margin:0;padding:0}
.tk-journey li{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0;padding-top:10px;border-top:4px solid var(--border-soft)}
.tk-journey li.done{border-top-color:var(--green)}
.tk-journey li.now{border-top-color:var(--text)}
.tk-j-dot{display:grid;place-items:center;width:30px;height:30px;font-size:var(--fs-small);font-weight:600;border:1px solid var(--border-soft);color:var(--muted-2);background:var(--surface)}
.tk-journey .done .tk-j-dot{background:var(--green-bg);border-color:var(--green-bg);color:var(--green)}
.tk-journey .now .tk-j-dot{background:var(--text);border-color:var(--text);color:var(--bg)}
.tk-j-name{font-size:var(--fs-min);line-height:1.3;color:var(--muted);overflow-wrap:anywhere}
.tk-journey .now .tk-j-name{font-size:var(--fs-small);font-weight:600;color:var(--text)}
.tk-journey .done .tk-j-name{color:var(--text)}
.tk-journey-not{margin:0}
.tk-jcap{display:none;font-size:var(--fs-base);font-weight:600;margin-bottom:10px}
@media(max-width:560px){.tk-top{padding:18px 16px 22px}.btn.tk-primary{width:100%;justify-content:center;text-align:center}.tk-journey{gap:4px}.tk-j-dot{width:28px;height:28px}
  .tk-jcap{display:block}
  .tk-j-name{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}}
.tk-head .tk-meta{font-size:var(--fs-base);color:var(--muted);margin-top:10px;line-height:1.6}
@media(max-width:560px){.tk-head{padding:16px 14px}.tk-head .tk-btns{width:100%}.tk-head .tk-btns .btn{flex:1 1 auto;justify-content:center}}
.tk-facts{padding:4px 0 16px;margin-bottom:12px;border-bottom:1px solid var(--border-soft)}
.tk-facts .tk-pills{align-items:center}
/* the application once decided: one folded line on the trial page */
.tk-appbox{margin-bottom:24px;border:1px solid var(--border-soft);background:var(--surface)}
.tk-appbox>summary{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;min-height:52px;padding:12px 18px;cursor:pointer;list-style:none}
.tk-appbox>summary::-webkit-details-marker{display:none}
.tk-appbox>summary:focus-visible{outline:2px solid var(--text)}
.tk-appbox-title{font-size:var(--fs-h3);font-weight:600}
.tk-appbox-title::before{content:'▸ ';color:var(--muted)}
.tk-appbox[open] .tk-appbox-title::before{content:'▾ '}
.tk-appbox .tk-app{border:none;border-top:1px solid var(--border-soft)}
.tk-appbox .tk-oc{border:none;border-top:1px solid var(--border-soft);margin:0}

/* "Behind the scenes" on a trial: the technical tabs, collapsed by default */
.tk-behind{margin-top:24px;border:1px solid var(--border-soft);background:var(--surface)}
.tk-behind>summary{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;min-height:52px;padding:14px 18px;cursor:pointer;list-style:none}
.tk-behind>summary::-webkit-details-marker{display:none}
.tk-behind-title{font-size:var(--fs-h3);font-weight:600}
.tk-behind-title::before{content:'▸ ';color:var(--muted)}
.tk-behind[open] .tk-behind-title::before{content:'▾ '}
.tk-behind-sub{font-size:var(--fs-small);font-weight:400;color:var(--muted)}
.tk-behind-body{padding:4px 18px 18px}
@media(max-width:560px){.tk-behind>summary{padding:12px 14px}.tk-behind-body{padding:4px 12px 14px}}

/* onboarding call card: steps, "Book by", the owner's buttons (the emails live under Messages) */
.tk-oc{padding:20px 22px;margin-bottom:18px}
.tk-oc h3{font-size:var(--fs-h3);font-weight:600}
.tk-oc h4{font-size:var(--fs-strong);font-weight:600;margin:24px 0 10px}
.tk-oc-say{font-size:var(--fs-strong);line-height:1.5;margin-top:8px;overflow-wrap:anywhere}
.tk-oc-when,.tk-oc-due{font-size:var(--fs-base);line-height:1.5;margin-top:8px}
.tk-oc-due.late{color:var(--red);font-weight:600}
.tk-oc-us{color:var(--muted)}
.tk-oc-steps{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:8px}
.tk-oc-steps li{display:grid;grid-template-columns:28px 1fr auto;gap:10px;align-items:center;font-size:var(--fs-base);line-height:1.4;color:var(--muted-2)}
.tk-oc-steps li.done{color:var(--text)}
.tk-oc-tick{width:26px;height:26px;display:grid;place-items:center;border:1px solid var(--border-soft);font-size:var(--fs-small);font-weight:600}
.tk-oc-steps li.done .tk-oc-tick{background:var(--green-bg);border-color:var(--green);color:var(--green)}
.tk-oc-at{font-size:var(--fs-small);color:var(--muted);white-space:nowrap}
.tk-oc-facts{font-size:var(--fs-small);color:var(--muted);line-height:1.65;margin-top:14px;overflow-wrap:anywhere}
.tk-oc-facts a{color:var(--text)}
.tk-oc-msgs{font-size:var(--fs-base);line-height:1.5;margin-top:12px}
/* the launch call: where their OK stands (green once it is in, amber when the call is done without it) and the one-line hint */
.tk-oc-ok{margin-top:12px;overflow-wrap:anywhere}
.tk-oc-hint{font-size:var(--fs-base);line-height:1.5;margin-top:10px;color:var(--muted-2);overflow-wrap:anywhere}
.tk-oc-book label{display:block;font-size:var(--fs-small);font-weight:600;margin-bottom:7px}
/* 16px in the boxes: iPhone Safari zooms the page into anything smaller */
.tk-oc-book input{flex:1 1 220px;min-width:0;min-height:46px;padding:10px 12px;background:var(--surface);color:var(--text);border:1px solid var(--border);font:inherit;font-size:var(--fs-strong);outline:none}
.tk-oc-book input:focus{border-color:var(--text)}
.tk-oc .btn{min-height:46px;padding:11px 18px;font-size:var(--fs-base)}
.tk-oc-book-row{display:flex;flex-wrap:wrap;gap:10px}
.tk-oc-acts{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
@media(max-width:560px){.tk-oc{padding:16px 14px}.tk-oc-steps li{grid-template-columns:28px 1fr}.tk-oc-at{grid-column:2}.tk-oc-acts .btn,.tk-oc-book .btn{flex:1 1 100%;justify-content:center}}

/* ── Messages (messages.js): the conversation as a chat — theirs on the left (grey), ours on the right
   (outlined), the reply bot's dashed, automatic emails folded to one centred line — then the reply box
   and the reply-bot switch. The chat scrolls inside its own box, so the newest email can sit in view. ── */
.tk-msgs{padding:20px 22px;margin-bottom:18px;scroll-margin-top:12px}
.tk-msgs-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;margin-bottom:12px}
.tk-msgs-head h3{font-size:var(--fs-h3);font-weight:600}
.tk-msgs-sub{font-size:var(--fs-small);color:var(--muted);line-height:1.45}
.tk-chat{display:flex;flex-direction:column;gap:10px;max-height:min(70vh,560px);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:12px;border:1px solid var(--border-soft);background:var(--surface)}
.tk-chat:focus-visible{outline:2px solid var(--text);outline-offset:2px}
.tk-chat-empty{font-size:var(--fs-base);color:var(--muted);line-height:1.5}
.tk-cm{max-width:86%;min-width:0;padding:10px 14px;flex:none}
.tk-cm.in{align-self:flex-start;background:var(--surface-2);border-left:4px solid var(--muted-2)}
.tk-cm.out{align-self:flex-end;background:var(--surface);border:1px solid var(--border)}
.tk-cm.out.auto{border-style:dashed}
.tk-cm-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;font-size:var(--fs-small);line-height:1.45}
.tk-cm-who{min-width:0}
.tk-cm-rule{color:var(--muted)}
.tk-cm-at{color:var(--muted)}
.tk-cm-at small{font-size:var(--fs-min)}
.tk-cm-subj{font-size:var(--fs-small);color:var(--muted);margin-top:2px;overflow-wrap:anywhere}
.tk-cm-text{font-size:var(--fs-base);line-height:1.55;margin-top:6px;white-space:pre-wrap;overflow-wrap:anywhere}
.tk-cm-sys{align-self:stretch;flex:none;font-size:var(--fs-small);color:var(--muted)}
.tk-cm-sys>summary{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:2px 10px;min-height:44px;padding:4px 8px;cursor:pointer;list-style:none;text-align:center;line-height:1.45}
.tk-cm-sys>summary::-webkit-details-marker{display:none}
.tk-cm-sys>summary:focus-visible{outline:2px solid var(--text);outline-offset:-2px}
.tk-cm-sys-t{color:var(--text);overflow-wrap:anywhere}
.tk-cm-show{color:var(--text);text-decoration:underline;text-underline-offset:2px}
.tk-cm-sys[open] .tk-cm-open,.tk-cm-sys:not([open]) .tk-cm-close{display:none}
.tk-cm-sys .tk-cm-text{max-width:86%;margin:4px auto 8px;padding:10px 14px;border:1px dashed var(--border-soft);color:var(--text);text-align:left}
/* how one of our emails went, under it (HUB-API "Delivery monitoring"): grey; a bounce red (needs you); an important
   email not opened after two working days amber (waiting). On a folded automatic email: its own line in the summary. */
.tk-cm-st{display:block;font-size:var(--fs-small);line-height:1.45;color:var(--muted);margin-top:6px;overflow-wrap:anywhere}
.tk-cm-st.bounced{color:var(--red);font-weight:600}
.tk-cm-st.unopened{color:var(--amber);font-weight:600}
.tk-cm-sys>summary .tk-cm-st{flex-basis:100%;margin-top:0}
.tk-msgs-wait{font-size:var(--fs-base);font-weight:600;color:var(--red);line-height:1.5;margin-top:12px}
.tk-msgs-reply{margin-top:14px}
.tk-msgs-reply label{display:block;font-size:var(--fs-small);font-weight:600;margin-bottom:7px}
.tk-msgs-reply textarea{display:block;width:100%;min-height:112px;padding:11px 12px;background:var(--surface);color:var(--text);border:1px solid var(--border);font:inherit;font-size:var(--fs-strong);line-height:1.55;resize:vertical;outline:none}
.tk-msgs-reply textarea:focus{border-color:var(--text);box-shadow:0 0 0 1px var(--text)}
.tk-msgs-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px}
.tk-msgs-count{font-size:var(--fs-small);color:var(--muted)}
.tk-msgs-count.over{color:var(--red);font-weight:600}
.tk-msgs-foot .btn{min-height:46px;padding:11px 18px}
.tk-msgs-from{font-size:var(--fs-small);color:var(--muted);line-height:1.5;margin-top:6px;overflow-wrap:anywhere}
.tk-msgs-cant{font-size:var(--fs-base);line-height:1.5;margin-top:14px;padding:10px 12px;background:var(--amber-bg);color:var(--text)}
.tk-bot{margin-top:18px;padding-top:12px;border-top:1px solid var(--border-soft)}
.tk-switch{display:inline-flex;align-items:center;gap:12px;min-height:44px;padding:4px 0;background:none;border:none;color:var(--text);font:inherit;font-size:var(--fs-base);text-align:left;cursor:pointer}
.tk-switch:focus-visible{outline:2px solid var(--text);outline-offset:2px}
.tk-switch-track{position:relative;flex:none;width:50px;height:28px;border:1px solid var(--border);background:var(--surface-3)}
.tk-switch-knob{position:absolute;top:3px;left:3px;width:20px;height:20px;background:var(--muted-2)}
.tk-switch.on .tk-switch-track{background:var(--green);border-color:var(--green)}
.tk-switch.on .tk-switch-knob{left:25px;background:var(--bg)}
.tk-bot-note{font-size:var(--fs-small);color:var(--muted);line-height:1.5;margin-top:2px}
@media(max-width:560px){.tk-msgs{padding:16px 14px}.tk-chat{padding:8px;max-height:65vh}.tk-cm{max-width:94%}.tk-cm-sys .tk-cm-text{max-width:100%}
  /* an automatic email on a phone: its subject and "show" on one line, the time under it — two lines, not four */
  .tk-cm-sys>summary{display:grid;grid-template-columns:minmax(0,1fr) auto;justify-content:stretch;text-align:left;gap:2px 12px;padding:6px 8px}.tk-cm-sys>summary .tk-cm-at,.tk-cm-sys>summary .tk-cm-st{grid-column:1/-1}}
/* no emails yet: Messages is one folded line */
.tk-msgs-fold>summary{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;min-height:44px;cursor:pointer;list-style:none}
.tk-msgs-fold>summary::-webkit-details-marker{display:none}
.tk-msgs-fold>summary:focus-visible{outline:2px solid var(--text)}
.tk-msgs-foldt{font-size:var(--fs-h3);font-weight:600}
.tk-msgs-foldt::before{content:'▸ ';color:var(--muted)}
.tk-msgs-fold[open] .tk-msgs-foldt::before{content:'▾ '}
.tk-msgs-fold[open]>summary{margin-bottom:12px}
.tk-msgs.tk-msgs-none{padding-top:8px;padding-bottom:8px}

/* Overview */
.tk-strip{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:8px}
.tk-strip-item{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:10px 12px;border:1px solid var(--border-soft);border-left:4px solid var(--muted-2);background:var(--surface);color:var(--text);font:inherit;text-align:left;cursor:pointer;min-width:0}
.tk-strip-item:hover{border-color:var(--text)}
.tk-strip-item b{font-size:var(--fs-small);font-weight:600;line-height:1.3}
.tk-strip-item small{font-size:var(--fs-min);color:var(--muted)}
.tk-strip-item.ok{border-left-color:var(--green)}
.tk-strip-item.working{border-left-color:var(--text)}
.tk-strip-item.waiting{border-left-color:var(--amber);background:var(--amber-bg)}
.tk-strip-item.blocked{border-left-color:var(--red);background:var(--red-bg)}
.tk-strip-item.off{border-left-color:var(--border-soft)}
.tk-strip-item.off b{color:var(--muted)}
.tk-keys{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px}
.tk-key{display:block;text-align:left;padding:14px 16px 12px;cursor:pointer;font:inherit;color:var(--text);background:var(--surface);min-width:0}
.tk-key:hover{border-color:var(--text)}
.tk-key small{display:block;font-size:var(--fs-small);color:var(--muted)}
.tk-key b{display:block;font-size:28px;font-weight:600;margin-top:4px;line-height:1.15}
.tk-key-sub{display:block;font-size:var(--fs-min);color:var(--muted);margin-top:3px;min-height:1.5em}
.tk-spark{display:block;position:relative;width:100%;height:32px;margin-top:8px}
.tk-spark svg{display:block;width:100%;height:100%}
.tk-spark-none{display:block;font-size:var(--fs-min);color:var(--muted-2);margin-top:8px;min-height:32px}

/* Systems tab */
.tk-sys{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:10px}
.tk-sys-card{padding:14px 15px;border-left:4px solid var(--muted-2)}
.tk-sys-card.ok{border-left-color:var(--green)}
.tk-sys-card.working{border-left-color:var(--text)}
.tk-sys-card.waiting{border-left-color:var(--amber)}
.tk-sys-card.blocked{border-left-color:var(--red)}
.tk-sys-card.off{border-left-color:var(--border-soft);color:var(--muted)}
.tk-sys-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.tk-sys-top b{font-size:var(--fs-base);font-weight:600}
.tk-sys-line{font-size:var(--fs-small);line-height:1.5;margin-top:8px}
.tk-sys-detail{margin:8px 0 0;padding:0 0 0 18px;font-size:var(--fs-min);color:var(--muted);line-height:1.6}

/* ── charts (hand-rolled SVG; text lives in HTML so it never shrinks) ───── */
.tk-chart{margin:0}
.tk-chart-card{padding:18px 20px;margin-top:12px}
.tk-chart-card h4{font-size:var(--fs-strong);font-weight:600;margin:0 0 12px}
.tk-chart-card h4:not(:first-child){margin-top:26px}
.tk-chart-body{display:grid;grid-template-columns:auto 1fr;column-gap:10px}
.tk-chart-y{position:relative;min-width:42px;font-size:var(--fs-min);color:var(--muted);font-variant-numeric:tabular-nums}
.tk-chart-y span{position:absolute;right:0;transform:translateY(-50%);line-height:1;white-space:nowrap}
.tk-chart-plot{position:relative;outline:none;cursor:crosshair;touch-action:pan-y}
.tk-chart-plot:focus-visible{box-shadow:0 0 0 2px var(--text)}
.tk-chart-plot svg{display:block;width:100%;height:100%;overflow:visible}
.tk-chart-x{display:flex;justify-content:space-between;gap:8px;font-size:var(--fs-min);color:var(--muted);margin-top:6px;font-variant-numeric:tabular-nums}
.tk-gridline{stroke:var(--grid);stroke-width:1}
.tk-refline{stroke:var(--muted-2);stroke-width:1;stroke-dasharray:5 4}
.tk-line{fill:none;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.tk-zero{fill:var(--c-none)}
.tk-pt{position:absolute;width:10px;height:10px;margin:-5px 0 0 -5px;border-radius:50%!important;box-shadow:0 0 0 2px var(--surface);pointer-events:none}
.tk-pt-s{width:7px;height:7px;margin:-3.5px 0 0 -3.5px;box-shadow:none}
/* threshold labels sit on the left (recent data is on the right) with a halo, never a box that hides a point */
.tk-ref{position:absolute;left:4px;transform:translateY(-115%);font-size:var(--fs-min);color:var(--muted);pointer-events:none;line-height:1.3;white-space:nowrap;text-shadow:0 0 3px var(--surface),0 0 3px var(--surface),0 0 3px var(--surface)}
.tk-cursor{position:absolute;top:0;bottom:0;width:1px;background:var(--muted);display:none;pointer-events:none}
.tk-tip{position:absolute;top:4px;z-index:5;display:none;pointer-events:none;background:var(--surface);border:1px solid var(--border);padding:9px 11px;font-size:var(--fs-small);line-height:1.5;min-width:190px;max-width:290px;box-shadow:0 6px 18px rgba(0,0,0,.14)}
.tk-tip-day{font-weight:600;margin-bottom:3px}
.tk-tip-row{display:flex;align-items:center;gap:6px}
.tk-tip-row{align-items:baseline}
.tk-tip-row b{font-weight:600;white-space:nowrap}
.tk-tip-note{color:var(--muted);margin-top:4px;font-size:var(--fs-min)}
.tk-legend{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:var(--fs-small);color:var(--muted);margin-bottom:10px}
.tk-legend span{display:inline-flex;align-items:center;gap:7px}
.tk-legend i{display:inline-block;flex:none}
.tk-key-bar{width:12px;height:12px}
.tk-key-line{display:inline-block;width:16px;height:2px;flex:none}
.tk-key-dot{width:10px;height:10px;clip-path:circle(50%)}
.tk-sm-row{margin-top:14px}
.tk-sm-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:6px}
.tk-sm-head b{font-size:var(--fs-base);font-weight:600}
.tk-sm-head span{font-size:var(--fs-min);color:var(--muted)}
.tk-multi{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px}
.tk-mini-chart{padding:14px 16px}
.tk-mini-chart>b{font-size:var(--fs-base);font-weight:600;display:block}
.tk-mini-facts{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:var(--fs-min);color:var(--muted);margin:6px 0 12px}
.tk-mini-facts b{color:var(--text);font-weight:600}
.tk-chart-empty{padding:22px 20px;font-size:var(--fs-base);color:var(--muted);margin-top:12px}
.tk-range{margin-bottom:6px}
.tk-growth{transition:opacity .2s}
.tk-dim{opacity:.55}
.tk-tv{margin-top:14px;font-size:var(--fs-small)}
.tk-tv summary{cursor:pointer;font-weight:600;padding:6px 0}
.tk-tv .tk-table{margin-top:6px}

/* ── tables, stats, lists ───────────────────────────────────────────────── */
.tk-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.tk-table{width:100%;border-collapse:collapse;font-size:var(--fs-small)}
.tk-table th{text-align:left;font-size:var(--fs-min);color:var(--muted);font-weight:600;padding:11px 14px;border-bottom:1px solid var(--border-soft);white-space:nowrap}
.tk-table td{padding:11px 14px;border-bottom:1px solid var(--border-soft);vertical-align:top;line-height:1.5}
.tk-table tr:last-child td{border-bottom:none}
.tk-table td.num{font-variant-numeric:tabular-nums;white-space:nowrap}
.tk-table td.wrap{overflow-wrap:break-word}
.tk-table .btn{padding:6px 10px}
.tk-table input[type=checkbox]{width:18px;height:18px;accent-color:var(--text)}
.tk-stats{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.tk-stat-tile{padding:14px 15px}
.tk-stat-tile small{display:block;font-size:var(--fs-min);color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tk-stat-tile b{display:block;font-size:var(--fs-num-lg);font-weight:600;margin-top:6px}
.tk-timeline{font-size:var(--fs-small)}
.tk-ev{display:grid;grid-template-columns:150px 120px 1fr;gap:12px;padding:9px 14px;border-bottom:1px solid var(--border-soft);line-height:1.5}
.tk-ev:last-child{border-bottom:none}
.tk-ev .t{color:var(--muted-2);white-space:nowrap;font-variant-numeric:tabular-nums}
.tk-ev .s{color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tk-ev .e b{font-weight:600}
.tk-ev .e span{color:var(--muted);overflow-wrap:anywhere}
@media(max-width:640px){.tk-ev{grid-template-columns:1fr;gap:2px}}
.tk-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:11px;align-items:end;padding:16px}
.tk-form .field{margin-bottom:0}
.tk-form .btn{height:42px;justify-content:center}
.tk-span2{grid-column:span 2}
@media(max-width:560px){.tk-span2{grid-column:auto}}
.tk-links .tk-link{display:grid;grid-template-columns:130px 1fr auto;gap:10px;align-items:center;padding:9px 16px;border-bottom:1px solid var(--border-soft)}
.tk-links .tk-link:last-child{border-bottom:none}
.tk-links .tk-link small{font-size:var(--fs-small);color:var(--muted)}
.tk-links .tk-link input{font-size:var(--fs-min);width:100%;background:var(--surface);border:1px solid var(--border-soft);padding:8px 10px;color:var(--text);outline:none}
.tk-links .btn{padding:6px 10px}
@media(max-width:560px){.tk-links .tk-link{grid-template-columns:1fr auto}.tk-links .tk-link small{grid-column:1/-1}}
.tk-list-row{display:grid;grid-template-columns:1fr auto;gap:14px;align-items:center;padding:13px 16px;border-bottom:1px solid var(--border-soft)}
.tk-list-row:last-child{border-bottom:none}
.tk-list-row b{font-size:var(--fs-base);font-weight:600;display:block;line-height:1.45}
.tk-list-row small{font-size:var(--fs-small);color:var(--muted);display:block;margin-top:4px;line-height:1.5}
.tk-list-row.done b{color:var(--muted);text-decoration:line-through}
.tk-list-row .btn{padding:6px 10px}
.tk-reply-email{font-size:var(--fs-small);font-weight:600}
.tk-plain{list-style:none;margin:0;padding:0}
.tk-plain li{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:8px 0;border-bottom:1px solid var(--border-soft);font-size:var(--fs-base)}
.tk-plain li:last-child{border-bottom:none}
.tk-plain li b{font-weight:600;font-variant-numeric:tabular-nums}
.tk-two{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}
@media(max-width:760px){.tk-two{grid-template-columns:1fr}}

/* ── Leads tab ──────────────────────────────────────────────────────────── */
.tk-lead-head{display:flex;gap:10px 30px;flex-wrap:wrap;margin-bottom:14px}
.tk-lead-head small{display:block;font-size:var(--fs-small);color:var(--muted)}
.tk-lead-head b{display:block;font-size:28px;font-weight:600;line-height:1.15}
.tk-lead-head .tk-muted{font-size:var(--fs-min)}
.tk-gradebar{display:flex;gap:2px;height:22px;background:var(--surface)}
.tk-gradebar span{min-width:3px}
.tk-hbar{display:grid;grid-template-columns:minmax(140px,1.3fr) 2fr auto;gap:12px;align-items:center;padding:7px 0;font-size:var(--fs-small)}
.tk-hbar-track{height:10px;background:var(--surface-2)}
.tk-hbar-track i{display:block;height:100%;background:var(--c3)}
.tk-hbar b{font-weight:600;font-variant-numeric:tabular-nums;min-width:3ch;text-align:right}
@media(max-width:560px){.tk-hbar{grid-template-columns:1fr auto}.tk-hbar-label{grid-column:1/-1}}

/* ── Deliverability tab ─────────────────────────────────────────────────── */
.tk-meter-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.tk-big{font-size:26px;font-weight:600}
.tk-meter{position:relative;height:12px;background:var(--surface-2);margin:6px 0 8px}
.tk-meter-fill{position:absolute;left:0;top:0;bottom:0;display:block}
.tk-meter-fill.green{background:var(--green)}
.tk-meter-fill.amber{background:var(--amber)}
.tk-meter-fill.red{background:var(--red)}
.tk-meter-mark{position:absolute;top:-5px;bottom:-5px;width:2px;background:var(--text);display:block}

/* ── application review ─────────────────────────────────────────────────── */
.tk-app{padding:20px 22px}
.tk-app.pending{border:1px solid var(--border-soft);border-left:5px solid var(--red)}
.tk-app-who{font-size:var(--fs-base);line-height:1.6}
.tk-app-who .tk-muted{font-size:var(--fs-small)}
.tk-app h4{font-size:var(--fs-strong);font-weight:600;margin:22px 0 10px}
.tk-fit-summary{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:var(--fs-base);font-weight:600}
.tk-fit{margin-top:10px;border:1px solid var(--border-soft)}
.tk-fit-line{display:grid;grid-template-columns:100px 1fr;gap:12px;align-items:baseline;padding:10px 14px;border-bottom:1px solid var(--border-soft);line-height:1.5}
.tk-fit-line:last-child{border-bottom:none}
.tk-fit-line b{font-size:var(--fs-base);font-weight:600;display:block}
.tk-fit-line small{font-size:var(--fs-small);color:var(--muted);display:block;margin-top:2px}
.tk-research-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:22px 0 10px}
.tk-research-head h4{margin:0}
.tk-btn-s{padding:6px 11px}
.tk-buy{margin-top:8px;padding:7px 11px}
.pill.tk-promo{white-space:normal;text-align:left}
@media(min-width:701px){.tk-offers{min-width:820px}.tk-offers td[data-label="Why"]{min-width:150px}.tk-offers td[data-label="Other registrars"]{min-width:220px}.tk-offers td[data-label="Best price"]{min-width:160px}}
.tk-gate-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:6px 0;font-size:var(--fs-small)}
.tk-gate-row b{font-weight:600}
.tk-research-summary{font-size:var(--fs-base);line-height:1.6;margin:0 0 12px}
.tk-research-pending{font-size:var(--fs-base);color:var(--muted)}
.tk-flags{display:flex;flex-direction:column;gap:8px;margin-bottom:14px}
.tk-flag{display:flex;gap:10px;align-items:baseline;font-size:var(--fs-base);line-height:1.5}
.tk-about,.tk-market{margin-top:14px}
.tk-about h5,.tk-market h5{font-size:var(--fs-base);font-weight:600;margin:0 0 8px}
.tk-market p{margin:0;font-size:var(--fs-base);line-height:1.55}
.tk-answers{margin:0}
.tk-answers dt{font-size:var(--fs-small);font-weight:600;color:var(--muted);margin-top:14px;line-height:1.45}
.tk-answers dt:first-child{margin-top:0}
.tk-answers dd{margin:4px 0 0;font-size:var(--fs-base);line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
.tk-app-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px;padding-top:18px;border-top:1px solid var(--border-soft)}
.tk-app-actions .btn{padding:13px 18px;font-size:var(--fs-base)}
.tk-app-decided{margin-top:18px;padding:12px 14px;background:var(--surface-2);font-size:var(--fs-base);line-height:1.55}
@media(max-width:560px){.tk-fit-line{grid-template-columns:1fr;gap:6px}.tk-app-actions .btn{width:100%;justify-content:center}}
/* fit score */
.tk-score{border:1px solid var(--border-soft);padding:16px 18px}
.tk-score-head{display:flex;gap:18px;align-items:flex-start}
.tk-score-num{flex:none;min-width:86px;padding:10px 12px;text-align:center;background:var(--surface-2)}
.tk-score-num b{display:block;font-size:var(--fs-num-lg);font-weight:600;line-height:1.1}
.tk-score-num small{font-size:var(--fs-small);color:var(--muted)}
.tk-score-num.green b{color:var(--green)}.tk-score-num.amber b{color:var(--amber)}.tk-score-num.red b{color:var(--red)}
.tk-score-words p{margin:8px 0 0;font-size:var(--fs-base);line-height:1.55}
.tk-score-conf{margin-top:14px}
.tk-score-conf small{font-size:var(--fs-small);color:var(--muted)}
.tk-meter-fill.grey{background:var(--muted-2)}.tk-meter-fill.green{background:var(--green)}.tk-meter-fill.amber{background:var(--amber)}
.tk-score-breakers,.tk-score-qs{margin-top:14px}
.tk-score-breakers h5,.tk-score-qs h5{font-size:var(--fs-base);font-weight:600;margin:0 0 8px}
.tk-score-breakers .tk-flag{margin-bottom:8px}
.tk-score-parts{margin-top:10px;border-top:1px solid var(--border-soft)}
.tk-score-part{border-bottom:1px solid var(--border-soft)}
.tk-score-part summary{cursor:pointer;display:grid;grid-template-columns:1fr auto;gap:2px 12px;align-items:baseline;padding:10px 0 4px;list-style:none}
.tk-score-part summary::-webkit-details-marker{display:none}
.tk-score-part summary .tk-meter{grid-column:1 / -1;margin:4px 0 6px;height:8px}
.tk-score-label{font-size:var(--fs-base);font-weight:600}
.tk-score-label::before{content:'▸ ';color:var(--muted)}
.tk-score-part[open] .tk-score-label::before{content:'▾ '}
.tk-score-pts{font-size:var(--fs-small)}
.tk-score-items{border:1px solid var(--border-soft);margin:4px 0 12px}
.tk-score-qs ul{margin:0;padding-left:20px}
.tk-score-qs li{font-size:var(--fs-base);line-height:1.6}
@media(max-width:560px){.tk-score-head{flex-direction:column;gap:10px}}

/* ── alerts view ────────────────────────────────────────────────────────── */
.tk-alert{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;padding:14px 16px;border-bottom:1px solid var(--border-soft)}
.tk-alert:last-child{border-bottom:none}
.tk-alert.acked{background:var(--surface-2)}
.tk-alert.acked b{color:var(--muted)}
.tk-alert b{font-size:var(--fs-strong);font-weight:600;display:block;line-height:1.4}
.tk-alert small{font-size:var(--fs-small);color:var(--muted);display:block;margin-top:5px;line-height:1.5}
.tk-alert .tk-client,.tk-todo .tk-client{background:none;border:none;padding:0;font:inherit;color:var(--text);font-weight:600;cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.tk-alerts{border-top:1px solid var(--border-soft)}

/* ── Settings: one short list of named sections, each folds open ─────────── */
.tk-sets{display:flex;flex-direction:column;gap:12px}
.tk-set{border:1px solid var(--border-soft);background:var(--surface);scroll-margin-top:12px}
.tk-set>summary{display:flex;align-items:center;gap:10px 14px;min-height:68px;padding:14px 18px;cursor:pointer;list-style:none}
.tk-set>summary::-webkit-details-marker{display:none}
.tk-set>summary:focus-visible{outline:2px solid var(--text);outline-offset:-2px}
.tk-set>summary .pill{margin-left:auto;flex:none}
.tk-set-head{display:flex;flex-direction:column;gap:2px;min-width:0}
.tk-set-title{font-size:var(--fs-h3);font-weight:600;line-height:1.3}
.tk-set-title::before{content:'▸ ';color:var(--muted)}
.tk-set[open] .tk-set-title::before{content:'▾ '}
.tk-set-sub{font-size:var(--fs-small);font-weight:400;color:var(--muted);line-height:1.45}
.tk-set-body{padding:6px 18px 20px;border-top:1px solid var(--border-soft)}
.tk-set-body>.toolbar{margin:12px 0}
.tk-set-text{font-size:var(--fs-base);line-height:1.55;margin:14px 0}
.tk-set-links{display:flex;flex-wrap:wrap;gap:10px}
.tk-set .tk-kv{margin-top:14px}
.tk-status{font-size:var(--fs-strong);font-weight:600;line-height:1.5;padding:12px 14px;margin-top:14px}
.tk-status.green{color:var(--green);background:var(--green-bg)}
.tk-status.amber{color:var(--amber);background:var(--amber-bg)}
.tk-status.red{color:var(--red);background:var(--red-bg)}
.tk-status.grey{background:var(--surface-2);color:var(--text)}
.tk-set-h4{font-size:var(--fs-strong);font-weight:600;margin:20px 0 8px}
/* Settings › Google Meet: the status, the buttons, the numbered set-up steps with the address to copy and the two boxes */
.tk-gm-acts{margin-top:14px}
.tk-gm-steps{margin:16px 0 0;padding-left:26px;font-size:var(--fs-base);line-height:1.6}
.tk-gm-steps li{margin:0 0 16px;padding-left:4px;overflow-wrap:anywhere}
.tk-gm-steps a{color:var(--text)}
.tk-gm-copy{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.tk-gm-uri{flex:1 1 260px;min-width:0;min-height:44px;padding:10px 12px;background:var(--surface-2);color:var(--text);border:1px solid var(--border);font:inherit;font-size:var(--fs-base);outline:none}
.tk-gm-uri:focus{border-color:var(--text);box-shadow:0 0 0 1px var(--text)}
.tk-gm-saved{display:block;color:var(--green);font-weight:600;margin-top:4px}
.tk-gm-lock{font-size:var(--fs-base);line-height:1.5;margin-top:8px;padding:8px 12px;background:var(--amber-bg);color:var(--text)}
.tk-gm-form{max-width:520px;margin-top:10px}
.tk-gm-form .field label{font-size:var(--fs-small)}
.tk-gm-more{margin-top:18px;border-top:1px solid var(--border-soft)}
.tk-gm-more>summary{display:flex;align-items:center;min-height:48px;padding:6px 0;cursor:pointer;list-style:none;font-size:var(--fs-base);font-weight:600}
.tk-gm-more>summary::-webkit-details-marker{display:none}
.tk-gm-more>summary::before{content:'▸ ';color:var(--muted);white-space:pre}
.tk-gm-more[open]>summary::before{content:'▾ '}
.tk-gm-more>summary:focus-visible{outline:2px solid var(--text)}
/* Settings › Reply bot */
.tk-bot-rules{margin:0;padding-left:22px;font-size:var(--fs-base);line-height:1.55}
.tk-bot-rules li{margin-bottom:8px}
@media(max-width:560px){.tk-gm-copy .btn,.tk-gm-form .btn,.tk-gm-acts .btn{flex:1 1 100%;width:100%;justify-content:center}.tk-gm-steps{padding-left:22px}}
@media(max-width:560px){.tk-set>summary{padding:12px 14px}.tk-set-body{padding:4px 14px 18px}.tk-set-links .btn{flex:1 1 100%;justify-content:center}}
@media(max-width:560px){.tk-alert{grid-template-columns:auto 1fr}.tk-alert .tk-alert-act{grid-column:2}}

/* ── Inboxes & domain (autobuy.js) ─────────────────────────────────────────
   The owner buys on CheapInboxes; we set up the rest. The hint under the big button, the "what to buy" panel,
   the card while it is set up, and Settings › Inboxes & domains. */
.tk-q-hint{font-size:var(--fs-base);line-height:1.5;color:var(--muted);margin-top:12px;overflow-wrap:anywhere}
.tk-q-hint .tk-textbtn{font-size:var(--fs-base);color:var(--text)}
.tk-ab{padding:20px 22px;margin-bottom:18px}
.tk-ab h3{font-size:var(--fs-h3);font-weight:600}
.tk-ab h4{font-size:var(--fs-strong);font-weight:600;margin:22px 0 10px}
.tk-ab-say{font-size:var(--fs-strong);font-weight:600;line-height:1.5;margin-top:8px;overflow-wrap:anywhere}
.tk-ab .btn{min-height:46px;padding:11px 18px;font-size:var(--fs-base)}
.tk-ab-acts{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.tk-ab-steps li.now{color:var(--text);font-weight:600}
.tk-ab-steps li.now .tk-oc-tick{border:2px solid var(--text)}
.tk-ab-steps li.stuck{color:var(--red);font-weight:600}
.tk-ab-steps li.stuck .tk-oc-tick{border-color:var(--red);background:var(--red-bg);color:var(--red)}
.tk-ab-boxes{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.tk-ab-boxes li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px;min-width:0;padding:10px 12px;background:var(--surface-2);font-size:var(--fs-base);line-height:1.4}
.tk-ab-undo{font-size:var(--fs-base);color:var(--muted);margin-top:14px}
.tk-ab-undo .tk-textbtn{font-size:var(--fs-base)}
.tk-abb h4{font-size:var(--fs-strong);font-weight:600;margin:22px 0 8px}
.tk-abb h4:first-child{margin-top:0}
.tk-abb-text{font-size:var(--fs-base);line-height:1.55;margin:10px 0;overflow-wrap:anywhere}
.tk-abb-kv{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:6px 12px;align-items:center;padding:8px 12px;background:var(--surface-2)}
.tk-abb-kv small{font-size:var(--fs-small);color:var(--muted)}
.tk-abb-kv b{font-size:var(--fs-strong);min-width:0;overflow-wrap:anywhere}
.btn.tk-abb-copy{min-height:44px;padding:8px 14px}
.tk-abb-box{margin-top:12px}
.tk-abb-boxh{font-size:var(--fs-small);font-weight:600;color:var(--muted);margin-bottom:6px}
.tk-abb-alts{margin-top:12px;border-top:1px solid var(--border-soft)}
.tk-abb-alts>summary{display:flex;align-items:center;min-height:48px;padding:6px 0;cursor:pointer;list-style:none;font-size:var(--fs-base);font-weight:600}
.tk-abb-alts>summary::-webkit-details-marker{display:none}
.tk-abb-alts>summary::before{content:'▸ ';color:var(--muted);white-space:pre}
.tk-abb-alts[open]>summary::before{content:'▾ '}
.tk-abb-alts>summary:focus-visible{outline:2px solid var(--text)}
.tk-abb-alts ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.tk-abb-alts li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;font-size:var(--fs-base);line-height:1.4}
.tk-abb-open{margin-top:4px}
.tk-abb-after{font-size:var(--fs-strong);font-weight:600;line-height:1.5;margin-top:16px;padding:12px 14px;background:var(--green-bg);color:var(--text)}
.tk-abb .tk-textbtn{font-size:var(--fs-base);margin-top:4px}
.tk-ab-warn{font-size:var(--fs-base);line-height:1.5;margin:14px 0;padding:10px 12px;background:var(--amber-bg);color:var(--text)}
.tk-ab-un{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.tk-ab-un li{padding:12px 14px;border:1px solid var(--border-soft);font-size:var(--fs-base);line-height:1.5;overflow-wrap:anywhere}
.tk-ab-facts{color:var(--muted)}
.tk-ab-pick{margin-top:10px}
.tk-ab-pick label{display:block;font-size:var(--fs-small);font-weight:600;margin-bottom:6px}
.tk-ab-pickrow{display:flex;flex-wrap:wrap;gap:10px}
.tk-ab-pickrow select{flex:1 1 200px;min-width:0;min-height:46px;padding:8px 12px;background:var(--surface);color:var(--text);border:1px solid var(--border);font:inherit;font-size:var(--fs-strong)}
.tk-ab-pickrow select:focus{outline:2px solid var(--text);outline-offset:1px}
.tk-ab-none{font-size:var(--fs-base);color:var(--muted);margin-top:6px}
@media(max-width:560px){.tk-ab{padding:16px 14px}.modal-body.tk-abb{padding:16px 14px}.tk-ab-acts .btn,.tk-ab-pickrow .btn,.tk-abb-open,.tk-abb-alts li .btn{flex:1 1 100%;width:100%;justify-content:center}.tk-abb-kv{grid-template-columns:minmax(0,1fr) auto}.tk-abb-kv small{grid-column:1/-1;margin-top:4px}}

/* ── Warm-up (warmup.js) ───────────────────────────────────────────────────
   Settings › Warm-up (the circle meter, why helpers exist, the helpers, Add a helper) and the "Warm-up" card on a trial.
   Phone first: every button 44 px or taller, 16 px in the boxes (no iPhone zoom), long addresses wrap. */
.tk-wu-meter{margin-top:14px;padding:14px 16px}
.tk-wu-meter.green{background:var(--green-bg);color:var(--green)}
.tk-wu-meter.amber{background:var(--amber-bg);color:var(--amber)}
.tk-wu-count{font-size:var(--fs-strong);font-weight:600;line-height:1.45;overflow-wrap:anywhere}
.tk-wu-slots{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.tk-wu-slot{width:22px;height:22px;border:2px solid currentColor}
.tk-wu-slot.on{background:currentColor}
.tk-wu-who{font-size:var(--fs-base);line-height:1.5;margin-top:10px;color:var(--text)}
.tk-wu-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.tk-wu-list li{padding:12px 14px;border:1px solid var(--border-soft);min-width:0}
.tk-wu-addr{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;font-size:var(--fs-base);line-height:1.45;min-width:0}
.tk-wu-addr b{font-size:var(--fs-strong);min-width:0}
.tk-wu-kind{color:var(--muted)}
.tk-wu-health{font-size:var(--fs-base);font-weight:600;line-height:1.5;margin-top:4px;overflow-wrap:anywhere}
.tk-wu-health.green{color:var(--green)}
.tk-wu-health.red{color:var(--red)}
.tk-wu-health.blue,.tk-wu-health.grey{color:var(--muted)}
.tk-wu-acts{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
.tk-wu-provs{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}
.btn.tk-wu-prov{min-height:56px;padding:12px 14px;font-size:var(--fs-strong);white-space:normal;text-align:center;justify-content:center}
.tk-wu-picked{display:flex;flex-wrap:wrap;align-items:center;gap:0 10px;font-size:var(--fs-strong);line-height:1.4}
.tk-wu-picked .tk-textbtn{font-size:var(--fs-base)}
.tk-wu-note{font-size:var(--fs-base);line-height:1.5;margin-top:4px;padding:10px 12px;background:var(--surface-2);color:var(--text);overflow-wrap:anywhere}
.tk-wu-form{max-width:520px;margin-top:16px}
.tk-wu-form .field label{font-size:var(--fs-small)}
.tk-wu-form .field input{min-height:46px;font-size:var(--fs-base)}
.btn.tk-wu-go{min-height:48px;padding:12px 20px}
.tk-wu-msg:empty{display:none}
.tk-wu{padding:20px 22px;margin-bottom:18px}
.tk-wu h3{font-size:var(--fs-h3);font-weight:600}
.tk-wu h4{font-size:var(--fs-strong);font-weight:600;margin:20px 0 10px}
.tk-wu-say{font-size:var(--fs-strong);font-weight:600;line-height:1.5;margin-top:8px;overflow-wrap:anywhere}
.tk-wu-text{font-size:var(--fs-base);line-height:1.5;margin-top:10px;overflow-wrap:anywhere}
.tk-wu-prog{margin-top:14px}
.tk-wu-bar{height:14px;background:var(--surface-3);border:1px solid var(--border-soft);overflow:hidden}
.tk-wu-bar>span{display:block;height:100%;background:var(--green)}
.tk-wu-day{font-size:var(--fs-base);margin-top:6px}
.tk-wu-rate{font-size:var(--fs-base);line-height:1.5;margin-top:8px}
.tk-wu-rate b{font-size:var(--fs-strong)}
.tk-wu-ready{font-size:var(--fs-base);line-height:1.5;margin-top:12px;padding:10px 12px;background:var(--green-bg);color:var(--text)}
.tk-wu-boxes{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.tk-wu-boxes li{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;min-width:0;padding:10px 12px;background:var(--surface-2);font-size:var(--fs-base);line-height:1.4}
.tk-wu-boxes .tk-break{flex:1 1 220px;min-width:0}
.tk-wu-ibx{color:var(--muted)}
.tk-wu .btn{min-height:46px;padding:11px 18px;font-size:var(--fs-base)}
@media(max-width:560px){.tk-wu{padding:16px 14px}.tk-wu .tk-wu-acts .btn,.btn.tk-wu-go{flex:1 1 100%;width:100%;justify-content:center}.tk-wu-list .tk-wu-acts .btn{flex:1 1 0;justify-content:center}.tk-wu-provs{grid-template-columns:1fr 1fr}.tk-wu-meter{padding:12px 14px}}

/* ── Buy & paste ────────────────────────────────────────────────────────── */
.tk-totals{display:flex;flex-wrap:wrap;gap:6px 16px;align-items:baseline;padding:14px 18px;font-size:var(--fs-base)}
.tk-offers td{vertical-align:middle}
.tk-offer.chosen td{background:var(--green-bg)}
/* phones: each domain becomes a small card with labelled lines instead of a squeezed table */
@media(max-width:700px){
  .tk-offers,.tk-offers tbody{display:block}
  .tk-offers tr:first-child{display:none}
  .tk-offers tr.tk-offer{display:grid;gap:8px;padding:14px 16px;border-bottom:1px solid var(--border-soft)}
  .tk-offers tr.tk-offer:last-child{border-bottom:none}
  .tk-offers td{display:block;padding:0;border:none}
  .tk-offers td[data-label]::before{content:attr(data-label);display:block;font-size:var(--fs-min);color:var(--muted);margin-bottom:2px}
  .tk-offers td .btn{width:100%;justify-content:center}
}
/* other wide tables scroll sideways on a phone rather than squeezing words */
@media(max-width:700px){.tk-scroll>.tk-table:not(.tk-offers){min-width:600px}}
.tk-price{padding:2px 0;line-height:1.55}
.tk-inbox-head{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.tk-inbox-head b{font-size:var(--fs-strong);font-weight:600}
.tk-steps{margin:14px 0 0;padding-left:24px;font-size:var(--fs-base);line-height:1.55}
.tk-steps li{margin:8px 0}
.tk-steps label{display:flex;gap:9px;align-items:baseline;cursor:pointer}
.tk-steps input{width:17px;height:17px;flex:none;accent-color:var(--text)}
.tk-pc-row{display:grid;grid-template-columns:1.3fr 1fr 1fr auto;gap:9px;margin-bottom:9px;align-items:center}
.tk-pc-row input{width:100%;background:var(--surface);border:1px solid var(--border);padding:10px 11px;color:var(--text);font-size:var(--fs-base);outline:none}
.tk-pc-row input:focus{border-color:var(--text)}
.tk-pc-row .li-del{height:40px;width:36px}
@media(max-width:700px){.tk-pc-row{grid-template-columns:1fr 1fr}.tk-pc-row input:first-child{grid-column:1/-1}}
.tk-check{display:flex;align-items:center;gap:10px;font-size:var(--fs-base);margin:16px 0;line-height:1.45}
.tk-check input{width:18px;height:18px;accent-color:var(--text);flex:none}
.tk-shop{padding:18px 20px}
.tk-shop .tk-total{font-size:var(--fs-num-lg);font-weight:600}
fieldset.tk-fs{border:none;padding:0;margin:0;min-width:0}
fieldset.tk-fs:disabled{opacity:.6}

/* ── modal bits ─────────────────────────────────────────────────────────── */
.tk-modal-errs{font-size:var(--fs-small);color:var(--red);line-height:1.6;margin-top:6px}
.tk-modal-errs:empty{display:none}

/* ===================== Phone alerts panel (push.js) ===================== */
.pa-ic{width:40px;height:40px;background:var(--surface-2);color:var(--text)}
.pa-ic svg{width:20px;height:20px;stroke-width:2}
.pa-body{display:flex;flex-direction:column;gap:12px}
.pa-lead{font-size:var(--fs-strong);font-weight:600;line-height:1.45}
.pa-small{font-size:var(--fs-small);color:var(--muted);line-height:1.55}
.pa-note{font-size:var(--fs-small);color:var(--amber);background:var(--amber-bg);padding:9px 11px;line-height:1.5}
.pa-err{font-size:var(--fs-small);color:var(--red);background:var(--red-bg);padding:9px 11px;line-height:1.5;overflow-wrap:anywhere}
.pa-state{display:flex;align-items:center;gap:8px}
.pa-state .pill{font-size:var(--fs-small)}
.pa-steps{list-style:none;counter-reset:pa;display:flex;flex-direction:column;gap:10px}
.pa-steps li{counter-increment:pa;display:grid;grid-template-columns:28px 1fr;gap:10px;font-size:var(--fs-base);line-height:1.5}
.pa-steps li::before{content:counter(pa);width:28px;height:28px;display:grid;place-items:center;border:1px solid var(--border);font-weight:600;font-size:var(--fs-small)}

/* ===================== Inquiries (inquiries.js) ===================== */
.iq-toolbar .iq-refresh{margin-left:auto}
.seg.iq-filters{flex-wrap:wrap}
.iq-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:12px}
.card.iq-card{padding:16px 18px;cursor:pointer;display:flex;flex-direction:column;gap:8px;min-width:0}
.card.iq-card:hover,.card.iq-strip:hover{background:var(--surface-2)}
.iq-card:focus-visible,.iq-strip:focus-visible{outline:2px solid var(--text);outline-offset:2px}
.card.iq-new{border-left:4px solid var(--red)}
.iq-card-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.iq-company{font-size:var(--fs-h3);font-weight:600;line-height:1.3;margin-right:auto;min-width:0;overflow-wrap:anywhere}
.iq-who{font-size:var(--fs-base);line-height:1.5}
.iq-call{font-size:var(--fs-small);line-height:1.5}
.iq-call-big{font-size:var(--fs-base);margin-top:2px}
.iq-rel{color:var(--muted)}
.iq-rel.soon{color:var(--amber);font-weight:600}
.iq-sells{font-size:var(--fs-small);color:var(--muted);line-height:1.55}
.iq-trial-tag{font-size:var(--fs-min);font-weight:600;color:var(--green)}
.iq-head{display:flex;flex-direction:column;gap:8px}
.iq-head-act{margin-top:6px}
.iq-pre{white-space:pre-wrap;overflow-wrap:anywhere}
.iq-moves .field{margin-bottom:12px}
.iq-trial{margin-top:16px;padding-top:14px;border-top:1px solid var(--border-soft);display:flex;flex-direction:column;gap:10px}
.iq-trial-done{font-size:var(--fs-base);color:var(--green);background:var(--green-bg);padding:10px 12px;line-height:1.5}
.iq-notes{list-style:none;display:flex;flex-direction:column;gap:10px;margin-bottom:14px}
.iq-notes li{display:grid;grid-template-columns:140px 1fr;gap:12px;font-size:var(--fs-base);line-height:1.5;padding-bottom:10px;border-bottom:1px solid var(--border-soft)}
.iq-note-at{font-size:var(--fs-small);color:var(--muted)}
.iq-add-note{margin-top:14px}
.iq-add-note textarea{min-height:64px}
a.btn{text-decoration:none}
.card.iq-strip{display:flex;align-items:center;gap:14px;padding:14px 16px;margin-top:16px;cursor:pointer}
.iq-strip-ic svg{width:22px;height:22px;display:block;stroke-width:2}
.iq-strip-main{min-width:0;flex:1}
.iq-strip-main b{display:block;font-size:var(--fs-strong);line-height:1.4}
.iq-strip-main small{display:block;font-size:var(--fs-small);color:var(--muted);margin-top:3px}
@media(max-width:560px){.iq-list{grid-template-columns:1fr}.iq-notes li{grid-template-columns:1fr;gap:2px}.card.iq-strip{flex-wrap:wrap}.iq-strip-go{width:100%;justify-content:center}.iq-toolbar .iq-refresh{margin-left:0}}

/* full company file (research v3) */
.tk-file{margin-top:16px;border:1px solid var(--border-soft);padding:12px 16px}
.tk-file-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:6px}
.tk-file-head h5{font-size:var(--fs-strong);font-weight:600;margin:0}
.tk-file-head .tk-muted{font-size:var(--fs-small)}
.tk-file-group{border-top:1px solid var(--border-soft)}
.tk-file-group summary{cursor:pointer;display:flex;justify-content:space-between;gap:10px;padding:10px 0;list-style:none}
.tk-file-group summary::-webkit-details-marker{display:none}
.tk-file-title{font-size:var(--fs-base);font-weight:600}
.tk-file-title::before{content:'▸ ';color:var(--muted)}
.tk-file-group[open] .tk-file-title::before{content:'▾ '}
.tk-file-count{font-size:var(--fs-small);color:var(--muted)}
.tk-file-body{padding:0 0 12px}
.tk-file-note{font-size:var(--fs-base);line-height:1.55;margin:0 0 10px;overflow-wrap:anywhere}
.tk-file-list{margin:4px 0 0;padding-left:20px}
.tk-file-list li{font-size:var(--fs-base);line-height:1.55;margin-bottom:6px;overflow-wrap:anywhere}
.tk-file-list .tk-muted{font-size:var(--fs-small)}
/* research v4 in the file: the pills under a headline / the kinds of customers, the search each list came from */
.tk-file-pills{margin:6px 0 4px}
.tk-file-sub{display:block;font-size:var(--fs-small);color:var(--muted);line-height:1.5}
.tk-file-cap{font-size:var(--fs-small);color:var(--muted);line-height:1.5;margin:0 0 8px;overflow-wrap:anywhere}

/* "Before the call" — the research brief (renderBrief), at the top of "What we found" and of the launch-call card:
   one readable paragraph, a small mark after each sentence (a numbered link to the page, or the record's name),
   every source once under it, folded. Tokens only — nothing under the 13 px floor. */
.tk-brief{border:1px solid var(--border-soft);background:var(--surface-2);padding:14px 16px;margin:0 0 14px}
.tk-brief .tk-brief-title{font-size:var(--fs-strong);font-weight:600;margin:0 0 8px}
.tk-brief-text{font-size:var(--fs-base);line-height:1.7;margin:0;overflow-wrap:anywhere}
.tk-brief-marks{margin-left:2px}
.tk-brief-mark{display:inline-block;vertical-align:super;font-size:var(--fs-min);line-height:1.25;padding:1px 6px;margin:0 0 0 3px;border:1px solid var(--border);background:var(--surface);color:var(--muted);text-decoration:none;white-space:normal;overflow-wrap:anywhere}
a.tk-brief-mark{min-width:24px;text-align:center;color:var(--text);font-weight:600}
a.tk-brief-mark:hover,a.tk-brief-mark:focus-visible{background:var(--text);color:var(--bg)}
.tk-brief-src{margin-top:10px;border-top:1px solid var(--border-soft)}
.tk-brief-src>summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-height:44px;font-size:var(--fs-small);font-weight:600}
.tk-brief-src>summary::-webkit-details-marker{display:none}
.tk-brief-src>summary::before{content:'▸';color:var(--muted)}
.tk-brief-src[open]>summary::before{content:'▾'}
.tk-brief-count{font-weight:400;font-size:var(--fs-small);color:var(--muted)}
.tk-brief-src ul{list-style:none;margin:0;padding:0}
.tk-brief-src li{display:flex;gap:10px;align-items:baseline;font-size:var(--fs-small);line-height:1.5;margin:0 0 8px;min-width:0}
.tk-brief-src li>span:last-child{min-width:0;overflow-wrap:anywhere}
.tk-brief-n{flex:none;min-width:24px;text-align:center;font-size:var(--fs-min);color:var(--muted);border:1px solid var(--border);background:var(--surface)}
.tk-brief-n-t{border-color:transparent;background:none}
.tk-oc .tk-brief{margin:12px 0 4px}
/* after the call: the same card, one closed line */
.tk-brief-fold{padding:0 16px}
.tk-brief-fold[open]{padding-bottom:14px}
.tk-brief.tk-brief-fold>.tk-brief-title{cursor:pointer;list-style:none;display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-height:48px;margin:0}
.tk-brief-fold>summary::-webkit-details-marker{display:none}
.tk-brief-fold>summary::before{content:'▸';color:var(--muted)}
.tk-brief-fold[open]>summary::before{content:'▾'}
@media(max-width:560px){.tk-brief{padding:12px}.tk-brief-text{line-height:1.65}}

/* ── Keys and Your details (keys.js) ───────────────────────────────────────
   Settings › Keys (one card per key: the status in words, the steps, a password box, Test and save / Test / Forget)
   and Settings › Your details (eight plain boxes, each with its own Save). Phone first: every button 44 px or taller,
   16 px in the boxes (no iPhone zoom), nothing wider than the screen, long words wrap. */
.tk-ky-cards{display:grid;gap:12px;margin-top:14px}
.tk-ky-card{padding:14px 16px;border:1px solid var(--border-soft);min-width:0}
.tk-ky-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.tk-ky-head h4{font-size:var(--fs-strong);font-weight:600;margin:0}
.tk-ky-pill{white-space:normal;text-align:left;line-height:1.35;max-width:100%}
.tk-ky-why{font-size:var(--fs-base);line-height:1.5;margin-top:6px;overflow-wrap:anywhere}
.tk-ky-free{font-size:var(--fs-small);color:var(--muted);line-height:1.5;margin-top:4px;overflow-wrap:anywhere}
.tk-ky-tested{font-size:var(--fs-small);color:var(--muted);margin-top:6px}
.tk-ky-env{font-size:var(--fs-base);line-height:1.5;margin-top:10px;padding:10px 12px;background:var(--surface-2);color:var(--text)}
.tk-ky-h5{font-size:var(--fs-base);font-weight:600;margin:14px 0 0}
.tk-ky-steps{margin-top:8px}
.tk-ky-steps li{margin-bottom:10px}
.tk-ky-note{font-size:var(--fs-small);color:var(--muted);line-height:1.5;margin-top:4px}
.btn.tk-ky-open{margin-top:8px}
.tk-ky-how{margin-top:10px;border-top:1px solid var(--border-soft)}
.tk-ky-how>summary{display:flex;align-items:center;min-height:48px;padding:6px 0;cursor:pointer;list-style:none;font-size:var(--fs-base);font-weight:600}
.tk-ky-how>summary::-webkit-details-marker{display:none}
.tk-ky-how>summary::before{content:'▸ ';color:var(--muted);white-space:pre}
.tk-ky-how[open]>summary::before{content:'▾ '}
.tk-ky-how>summary:focus-visible{outline:2px solid var(--text)}
.tk-ky-form{max-width:520px;margin-top:12px}
.tk-ky-form .field{margin-bottom:10px}
.tk-ky-form .field label{font-size:var(--fs-small)}
.tk-ky-form .field input{min-height:46px;font-size:var(--fs-base)}
.tk-ky-form .btn{min-height:46px}
.tk-ky-acts{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
.tk-ky-acts .btn{min-height:46px}
.tk-ky-msg:empty{display:none}
.tk-ky-msg .tk-status{margin-top:10px}
.tk-ky-wait{font-size:var(--fs-base);color:var(--muted);margin-top:10px}
.tk-ky-repo{margin-top:16px;padding-top:12px;border-top:1px solid var(--border-soft)}
.tk-ky-opt{margin-top:14px;border-top:1px solid var(--border-soft)}
.tk-ky-opt>summary{display:flex;align-items:center;min-height:48px;padding:6px 0;cursor:pointer;list-style:none;font-size:var(--fs-base);font-weight:600}
.tk-ky-opt>summary::-webkit-details-marker{display:none}
.tk-ky-opt>summary::before{content:'▸ ';color:var(--muted);white-space:pre}
.tk-ky-opt[open]>summary::before{content:'▾ '}
.tk-ky-opt>summary:focus-visible{outline:2px solid var(--text)}
.tk-yd-form{display:grid;gap:14px;margin-top:14px;max-width:680px}
.tk-yd-field{padding:12px 14px;border:1px solid var(--border-soft);min-width:0}
.tk-yd-field.need{border-color:var(--amber);background:var(--amber-bg)}
.tk-yd-field label{display:block;font-size:var(--fs-strong);font-weight:600;line-height:1.4}
.tk-yd-req{display:inline-block;margin-left:8px;font-size:var(--fs-min);font-weight:600;color:var(--green)}
.tk-yd-req.need{color:var(--amber)}
.tk-yd-help{font-size:var(--fs-small);color:var(--muted);line-height:1.5;margin-top:4px;overflow-wrap:anywhere}
.tk-yd-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
.tk-yd-row input,.tk-yd-row textarea{flex:1 1 240px;min-width:0;min-height:46px;padding:10px 12px;background:var(--surface);color:var(--text);border:1px solid var(--border);font:inherit;font-size:var(--fs-base);outline:none}
.tk-yd-row textarea{min-height:88px;resize:vertical}
.tk-yd-row input:focus,.tk-yd-row textarea:focus{border-color:var(--text);box-shadow:0 0 0 1px var(--text)}
.tk-yd-row .btn{min-height:46px}
.tk-yd-field .tk-textbtn{font-size:var(--fs-base);margin-top:4px}
.tk-yd-msg{font-size:var(--fs-base);line-height:1.5;margin-top:8px;overflow-wrap:anywhere}
.tk-yd-msg:empty{display:none}
.tk-yd-msg.green{color:var(--green);font-weight:600}
.tk-yd-msg.red{color:var(--red);font-weight:600}
@media(max-width:560px){.tk-ky-card,.tk-yd-field{padding:12px}.tk-ky-form .btn,.tk-ky-acts .btn,.btn.tk-ky-open,.tk-yd-row .btn{flex:1 1 100%;width:100%;justify-content:center}}

/* My stats: everything you've sent */
.tk-myout{display:grid;gap:12px;margin-bottom:22px}
.tk-myout .tk-key{cursor:default}
.tk-myout details.card summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tk-myout h4{margin:0 0 8px}

/* Applications waiting for you: name, match %, Word document, yes / no */
.tk-apps{display:grid;gap:10px;margin-bottom:18px}
.tk-app-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:12px 14px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}
.tk-app-open{flex:1 1 260px;display:flex;flex-wrap:wrap;align-items:center;gap:10px;min-height:44px;background:none;border:0;padding:0;font:inherit;color:var(--text);text-align:left;cursor:pointer}
.tk-app-name{font-weight:600;display:inline-flex;align-items:center;gap:8px}
.tk-app-plan{font-size:13px;font-weight:600;padding:2px 8px;border-radius:999px;background:var(--surface-2,rgba(127,127,127,.12))}
.tk-app-match{font-weight:600}
.tk-app-doc{font-size:13px;color:var(--accent,#2563eb);text-decoration:underline}
.tk-app-btns{display:flex;flex-wrap:wrap;gap:8px}

.tk-replies{display:grid;gap:10px}
.tk-reply{border:1px solid var(--border);border-radius:10px;padding:10px 12px;display:grid;gap:6px}
.tk-reply-head{display:flex;flex-wrap:wrap;gap:8px;align-items:baseline}
.tk-reply-text{white-space:pre-wrap;overflow-wrap:anywhere}

/* Where everyone is: one tile per stage */
.tk-stages{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:8px;margin:0 0 18px}
.tk-stage{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:2px;height:auto;min-height:60px;padding:8px 12px;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--text);font:inherit;text-align:left;cursor:pointer}
.tk-stage b{font-size:22px;font-weight:600;line-height:1.1}
.tk-stage span{font-size:13px;line-height:1.25}
.tk-stage.zero{opacity:.55}
@media(max-width:560px){.tk-stages{grid-template-columns:repeat(3,1fr);gap:6px}.tk-stage{min-height:52px;padding:6px 8px}.tk-stage b{font-size:18px}}
.tk-stage.on{border-color:var(--text);box-shadow:inset 0 0 0 1px var(--text)}
.tk-stage-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.tk-going-note{margin:14px 0;color:var(--muted,#555)}

/* The test run: a small "Test" tag beside a made-up client's name */
.pill.tk-test{display:inline-flex;align-items:center;font-size:13px;font-weight:600;line-height:1.3;padding:1px 8px;margin-left:6px;vertical-align:middle;background:var(--blue-bg);color:var(--blue)}
.tk-person-top .pill.tk-test,.tk-app-name .pill.tk-test,.tk-top-test .pill.tk-test{margin-left:0}
.tk-top-test{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 10px}
#ptitle .pill.tk-test{font-size:13px}

/* Money (the owner only): a client's Stats, and the Paying list's totals */
.tk-money-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap}
.tk-money-head h4{margin:0}
.tk-money-total{margin:10px 0 12px}
.tk-money-total small{display:block;font-size:var(--fs-small);color:var(--muted)}
.tk-money-total b{display:block;font-size:28px;font-weight:600;line-height:1.15;margin-top:2px}
.tk-money-table td .pill{white-space:nowrap}
.tk-money-sum{display:flex;align-items:flex-end;flex-wrap:wrap;gap:6px 36px;padding:12px 16px;margin:0 0 12px}
.tk-money-fig small{display:block;font-size:var(--fs-small);color:var(--muted)}
.tk-money-fig b{display:block;font-size:24px;font-weight:600;line-height:1.2}
.tk-money-sum p{margin:0 0 3px auto}
@media(max-width:560px){.tk-money-sum{gap:6px 28px}.tk-money-sum p{flex-basis:100%;margin:2px 0 0}}
.tk-myout>*{min-width:0}   /* a wide table scrolls inside its card, never widens the page */
@media(max-width:700px){.tk-scroll>.tk-table.tk-money-table{min-width:0}.tk-money-table th,.tk-money-table td{padding:10px 6px}.tk-money-table td:first-child{overflow-wrap:anywhere}}
/* ---- a client's mail on Stats: Conversations, Every email sent, and the viewer (trials.js renderClientMail) ---- */
:root{--q:#1F5FBF;--q-bg:#EAF1FC}
body.dark{--q:#8AB4F8;--q-bg:#132440}
.pill.tk-rt{font-size:13px;padding:2px 9px}
.pill.tk-rt.q{background:var(--q-bg);color:var(--q)}
.tk-mail{padding:18px 20px;scroll-margin-top:12px}
.tk-mail-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 12px;margin-bottom:10px}
.tk-myout .tk-mail-head h4{margin:0;font-size:var(--fs-strong);font-weight:600}
.tk-mail-note{margin:4px 0 2px;line-height:1.5}
.tk-mail .tk-loading{padding:24px 12px}
.tk-convos{display:grid;border-top:1px solid var(--border-soft);margin:0 -20px -18px}
.tk-convo{position:relative;display:grid;gap:3px;width:100%;min-width:0;text-align:left;font:inherit;color:var(--text);background:none;border:0;border-bottom:1px solid var(--border-soft);padding:13px 48px 13px 20px;cursor:pointer}
.tk-convo:last-child{border-bottom:0;border-radius:0 0 var(--r) var(--r)}
.tk-convo:hover{background:var(--surface-2)}
.tk-convo:focus-visible{outline:2px solid var(--text);outline-offset:-2px}
.tk-convo-top{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;min-width:0}
.tk-convo-who{font-size:var(--fs-strong);font-weight:600;overflow-wrap:anywhere}
.tk-convo-at{margin-left:auto;font-size:var(--fs-small);color:var(--muted);white-space:nowrap}
.tk-convo-sub,.tk-convo-meta{font-size:var(--fs-small);color:var(--muted);overflow-wrap:anywhere}
.tk-convo-by{font-weight:600;color:var(--text)}
.tk-convo-by.none{color:var(--amber)}
.tk-convo-snip{font-size:var(--fs-base);color:var(--muted-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.tk-convo-go{position:absolute;right:20px;top:50%;transform:translateY(-50%);font-size:22px;color:var(--muted-2)}
.tk-mail-table tr.tk-click{cursor:pointer}
.tk-mail-table tr.tk-click:hover td{background:var(--surface-2)}
.tk-mail-table tr.tk-click:focus-visible{outline:2px solid var(--text);outline-offset:-2px}
.tk-mail-table .tk-mt-when{color:var(--muted)}
.tk-mail-table .tk-mt-subj{font-weight:600;min-width:200px}
.tk-mail-table .tk-mt-co{min-width:110px}
.tk-mail-table .tk-mt-from{overflow-wrap:anywhere;max-width:190px}
.tk-mt-kind{display:inline-block;font-size:var(--fs-min);font-weight:600;color:var(--muted);background:var(--surface-2);border-radius:999px;padding:1px 8px;margin-left:4px;white-space:nowrap}
.tk-mail-table .tk-mt-from{font-size:var(--fs-min)}
.tk-mail-more{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:10px;padding-top:10px;border-top:1px solid var(--border-soft)}
.tk-mail-link{margin:-2px 0 0}
.tk-linkbtn{font:inherit;font-size:var(--fs-base);font-weight:600;color:var(--text);background:none;border:0;padding:10px 0;min-height:44px;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
@media(max-width:700px){
  .tk-mail{padding:16px 14px}
  .tk-convos{margin:0 -14px -16px}
  .tk-convo{padding:12px 40px 12px 14px}
  .tk-convo-go{right:14px}
  .tk-convo-at{margin-left:0;flex-basis:100%}
  /* the table becomes one small card per email: no sideways scrolling on a phone */
  .tk-scroll>.tk-table.tk-mail-table{min-width:0}
  .tk-mail-table,.tk-mail-table tbody,.tk-mail-table tr,.tk-mail-table td{display:block}
  .tk-mail-table thead{display:none}
  .tk-mail-table tr.tk-click{display:grid;grid-template-columns:1fr auto;gap:2px 10px;padding:11px 2px;border-bottom:1px solid var(--border-soft)}
  .tk-mail-table tr:last-child{border-bottom:0}
  .tk-scroll .tk-mail-table td{padding:0;border:0;min-width:0;overflow-wrap:anywhere;background:none}
  .tk-mail-table .tk-mt-subj{grid-column:1;grid-row:1;min-width:0}
  .tk-mail-table .tk-mt-st{grid-column:2;grid-row:1}
  .tk-mail-table .tk-mt-to{grid-column:1/-1;grid-row:2}
  .tk-mail-table .tk-mt-to br{display:none}
  .tk-mail-table .tk-mt-to b{margin-right:6px;white-space:nowrap}
  .tk-mail-table .tk-mt-co{grid-column:1/-1;grid-row:3;font-size:var(--fs-small);color:var(--muted)}
  .tk-mail-table .tk-mt-co:empty{display:none}
  .tk-mail-table .tk-mt-when{grid-column:1/-1;grid-row:4;font-size:var(--fs-small);white-space:normal}
  .tk-mail-table .tk-mt-from{display:none}
}
/* the viewer (a wide modal) */
.modal:has(.tk-mailview){width:760px;padding:0}
.tk-mailview{display:flex;flex-direction:column;min-height:100%}
.tk-mv-body{flex:1}
.tk-mailview>.modal-foot{padding-top:14px;border-top:1px solid var(--border-soft);background:var(--surface);position:sticky;bottom:0}
.tk-mv-head{position:sticky;top:0;z-index:1;background:var(--surface);align-items:flex-start}
.tk-mv-title{flex:1;min-width:0}
.tk-mv-title h3{font-size:20px;line-height:1.3;overflow-wrap:anywhere}
.tk-mv-title p{overflow-wrap:anywhere}
.tk-mv-x{flex:none;width:44px;height:44px;margin:-8px -10px 0 0;border:0;background:none;border-radius:999px;font-size:26px;line-height:1;color:var(--muted);cursor:pointer}
.tk-mv-x:hover{background:var(--surface-2);color:var(--text)}
.tk-mv-body{display:grid;gap:12px;align-content:start;background:var(--bg)}
.tk-mv-msg{min-width:0;border:1px solid var(--border);border-radius:12px;background:var(--surface);padding:14px 16px}
.tk-mv-msg.in{border-left:4px solid var(--q)}
.tk-mv-msg.out{border-left:4px solid var(--border)}
.tk-mv-mh{display:flex;align-items:flex-start;gap:10px;min-width:0}
.tk-mv-av{flex:none;width:34px;height:34px;border-radius:999px;display:grid;place-items:center;font-weight:600;font-size:15px;background:var(--surface-2);color:var(--text)}
.tk-mv-msg.in .tk-mv-av{background:var(--q-bg);color:var(--q)}
.tk-mv-from{flex:1;min-width:0;font-size:var(--fs-base);line-height:1.4;overflow-wrap:anywhere}
.tk-mv-addr,.tk-mv-to{color:var(--muted);font-size:var(--fs-small)}
.tk-mv-to{display:block}
.tk-mv-side{flex:none;display:grid;justify-items:end;gap:3px;text-align:right}
.tk-mv-tag{font-size:var(--fs-min);font-weight:600;border-radius:999px;padding:2px 9px;white-space:nowrap;background:var(--surface-2);color:var(--muted)}
.tk-mv-tag.in{background:var(--q-bg);color:var(--q)}
.tk-mv-at{font-size:var(--fs-small);color:var(--muted);white-space:nowrap}
.tk-mv-subj{font-size:var(--fs-small);color:var(--muted);margin-top:8px;overflow-wrap:anywhere}
.tk-mv-text{margin-top:10px;font-size:var(--fs-base);line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
.tk-mv-err{color:var(--red);font-weight:600;line-height:1.5;margin:0}
.tk-mv-facts{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;margin:0 0 10px;font-size:var(--fs-base)}
.tk-mv-facts dt{color:var(--muted)}
.tk-mv-facts dd{margin:0;overflow-wrap:anywhere}
@media(max-width:560px){
  .modal-wrap:has(.tk-mailview){padding:0;align-items:stretch}
  .modal:has(.tk-mailview){max-height:100vh;height:100%;border-radius:0}
  .tk-mv-body{padding:14px 12px}
  .tk-mv-msg{padding:12px 12px}
  .tk-mv-mh{flex-wrap:wrap}
  .tk-mv-side{flex-basis:100%;display:flex;justify-content:flex-start;gap:8px;align-items:center;padding-left:44px}
}
