/* Testing (FR-112, docs/designs/manual-testing-2026-11-16): the pieces of the design's tm.css the Testing pages use.
   Everything else is the kit. Scoped to .tm-root, the wrapper every Testing page puts around itself. */

/* One case: the head, then Before you start and the steps. */
.tm-root .tm-case{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);}
.tm-root .tm-case__head{padding:16px 20px;border-bottom:1px solid var(--divider);display:flex;flex-wrap:wrap;gap:8px 16px;align-items:flex-start;}
.tm-root .tm-case__head h2{margin:0;font-size:var(--fs-xl);font-weight:600;letter-spacing:-.01em;line-height:1.25;flex:1 1 360px;}
.tm-root .tm-case__where{flex-basis:100%;font-size:var(--fs-xs);color:var(--muted);display:flex;gap:6px;align-items:center;flex-wrap:wrap;}
.tm-root .tm-case__body{padding:16px 20px 20px;display:flex;flex-direction:column;gap:16px;}
.tm-root .tm-before{background:var(--surface-2);border-color:var(--line);}
.tm-root .tm-before .body{white-space:pre-line;}

/* Steps: # · Do this · You should see. */
.tm-root .tm-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:var(--r-md);overflow:hidden;}
.tm-root .tm-steps ol{list-style:none;margin:0;padding:0;}
.tm-root .tm-steps li{display:grid;grid-template-columns:28px minmax(0,1fr) minmax(0,1fr);gap:14px;padding:12px 14px;border-top:1px solid var(--divider);align-items:start;}
.tm-root .tm-steps li:first-child{border-top:0;}
.tm-root .tm-steps .hd{display:grid;grid-template-columns:28px minmax(0,1fr) minmax(0,1fr);gap:14px;padding:8px 14px;background:var(--panel-head);border-bottom:1px solid var(--line-strong);font-size:var(--fs-2xs);font-weight:600;letter-spacing:.07em;text-transform:uppercase;color:var(--ink-2);}
.tm-root .tm-steps .n{display:flex;align-items:center;gap:6px;}
.tm-root .tm-steps .act{font-size:var(--fs-md);overflow-wrap:anywhere;}
.tm-root .tm-steps .exp{font-size:var(--fs-sm);color:var(--ink-2);border-left:2px solid var(--success-line);padding-left:10px;overflow-wrap:anywhere;}
.tm-root .tm-steps .exp.none{border-left-color:var(--line);color:var(--subtle);}
.tm-root .tm-steps b{font-weight:600;color:var(--ink);}

/* Search boxes: the design's widths. */
.tm-root .tm-search--280{width:280px;}
.tm-root .tm-search--260{width:260px;}

/* A case id never breaks at its dash. */
.tm-root .m-table td.tm-tc{white-space:nowrap;}

/* A plan's section header row, above each group of cases. */
.tm-root .m-table tbody tr.tm-secrow td{background:var(--panel-head);padding-top:10px;padding-bottom:6px;font-size:var(--fs-2xs);font-weight:600;letter-spacing:.07em;text-transform:uppercase;color:var(--ink-2);}

/* Results: one colour each, also told apart by icon (FR-112 board 2). */
.tm-root .tm-res{display:inline-flex;align-items:center;gap:6px;font-size:var(--fs-sm);font-weight:600;white-space:nowrap;}
.tm-root .tm-res--pass{color:var(--success);}
.tm-root .tm-res--fail{color:var(--danger);}
.tm-root .tm-res--block{color:var(--warn);}
.tm-root .tm-res--skip{color:var(--muted);}
.tm-root .tm-res--none{color:var(--subtle);font-weight:500;}
.tm-root .tm-res--stale{color:var(--info);}
.tm-root .tm-ring{width:14px;height:14px;border-radius:50%;border:1.5px dashed var(--line-strong);display:inline-block;flex:none;}

/* Passed / Failed / Blocked / Skipped bar; the track left over is Not tested. */
.tm-root .tm-bar{display:flex;height:8px;border-radius:4px;overflow:hidden;gap:1px;background:var(--surface-3);min-width:140px;}
.tm-root .tm-bar i{display:block;height:100%;}
.tm-root .tm-bar .p{background:var(--success);}
.tm-root .tm-bar .f{background:var(--danger);}
.tm-root .tm-bar .b{background:var(--warn);}
.tm-root .tm-bar .k{background:var(--line-strong);}
.tm-root .tm-legend{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:var(--fs-xs);color:var(--muted);}
.tm-root .tm-legend span{display:inline-flex;align-items:center;gap:6px;}
.tm-root .tm-legend i{width:10px;height:10px;border-radius:2px;display:inline-block;box-shadow:inset 0 0 0 1px var(--line-strong);}
.tm-root .tm-sw--p{background:var(--success);}
.tm-root .tm-sw--f{background:var(--danger);}
.tm-root .tm-sw--b{background:var(--warn);}
.tm-root .tm-sw--k{background:var(--line-strong);}
.tm-root .tm-sw--n{background:var(--surface-3);}
.tm-root .tm-progress{gap:8px;flex-wrap:nowrap;}

/* Tiles whose number takes the result's colour. */
.tm-root .tm-kpi--pass .m-kpi__v{color:var(--success);}
.tm-root .tm-kpi--fail .m-kpi__v{color:var(--danger);}
.tm-root .tm-kpi--block .m-kpi__v{color:var(--warn);}
.tm-root .tm-kpi--info .m-kpi__v{color:var(--info);}

/* A plan: the "N cases ticked" bar. */
.tm-root .tm-ticked{background:var(--brand-soft);border-color:var(--brand-line);align-items:center;}

/* The run screen: the case list beside one case (board 7). */
/* Always side by side above the phone breakpoint (600 px): the list keeps a fixed 240-300 px column and the case
   takes the rest, so the step details never drop under the list on a narrower window. Phones use .tm-phone. */
.tm-root .tm-run{display:grid;grid-template-columns:minmax(220px,300px) minmax(0,1fr);gap:16px;align-items:start;}
.tm-root .tm-run__list{min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);overflow:hidden;}
.tm-root .tm-run__main{min-width:0;display:flex;flex-direction:column;gap:16px;}
.tm-root .tm-run__head{padding:12px 14px;border-bottom:1px solid var(--divider);background:var(--panel-head);display:flex;flex-direction:column;gap:8px;}
.tm-root .tm-run__head .tm-run__sum{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:var(--fs-xs);color:var(--muted);}
.tm-root .tm-cl{list-style:none;margin:0;padding:4px;}
.tm-root .tm-cl a{display:grid;grid-template-columns:18px 1fr;gap:8px;align-items:start;padding:7px 8px;border-radius:var(--r-sm);text-decoration:none;color:var(--ink-2);font-size:var(--fs-sm);}
.tm-root .tm-cl a:hover{background:var(--surface-2);}
.tm-root .tm-cl a[aria-current="true"]{background:var(--brand-soft);color:var(--ink);font-weight:600;}
.tm-root .tm-cl .sec{padding:10px 8px 4px;font-size:var(--fs-2xs);font-weight:600;letter-spacing:.07em;text-transform:uppercase;color:var(--subtle);}
.tm-root .tm-cl .id{color:var(--muted);font-weight:500;font-variant-numeric:tabular-nums;margin-right:4px;}
.tm-root .tm-cl .i,.tm-root .tm-cl__ring{margin-top:2px;}
.tm-root .tm-cl__now{color:var(--brand-text);}

/* Steps one at a time: done steps fold, the open one is a card, later ones are dimmed. */
.tm-root .tm-flow{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;}
.tm-root .tm-flow li{display:grid;grid-template-columns:32px minmax(0,1fr);gap:12px;align-items:start;border-radius:var(--r-md);}
.tm-root .tm-flow .dot{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font:600 var(--fs-sm)/1 var(--font-ui);border:1.5px solid var(--line-strong);background:var(--surface);color:var(--ink-2);}
.tm-root .tm-flow .is-done{padding:6px 12px 6px 8px;}
.tm-root .tm-flow .is-done .dot{background:var(--success);border-color:var(--success);color:var(--on-tone);}
.tm-root .tm-flow .is-done .txt{font-size:var(--fs-sm);color:var(--ink-2);padding-top:4px;}
.tm-root .tm-flow .is-next{padding:6px 12px 6px 8px;opacity:.6;}
.tm-root .tm-flow .is-next .txt{font-size:var(--fs-sm);color:var(--ink-2);padding-top:4px;}
.tm-root .tm-flow .is-now{padding:16px 16px 16px 8px;border:2px solid var(--brand);background:var(--surface);box-shadow:var(--shadow-2);}
.tm-root .tm-flow .is-now .dot{background:var(--brand);border-color:var(--brand);color:var(--on-brand);}
.tm-root .tm-flow .is-bad{padding:16px 16px 16px 8px;border:2px solid var(--danger);background:var(--danger-soft);}
.tm-root .tm-flow .is-bad .dot{background:var(--danger);border-color:var(--danger);color:var(--on-danger);}
.tm-root .tm-flow .k{display:block;font-size:var(--fs-2xs);font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--muted);margin-bottom:4px;}
.tm-root .tm-flow .k.tm-k-bad{color:var(--danger);}
.tm-root .tm-flow .do{font-size:var(--fs-lg);font-weight:600;line-height:1.4;color:var(--ink);}
.tm-root .tm-flow .see{margin-top:12px;padding:10px 12px;border-radius:var(--r-md);background:var(--success-soft);border:1px solid var(--success-line);font-size:var(--fs-md);color:var(--ink);}
.tm-root .tm-flow .see .k{color:var(--success);}
.tm-root .tm-flow .is-bad .see{background:var(--surface);}
.tm-root .tm-flow .acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px;}
.tm-root .tm-flow .acts .m-btn{height:40px;padding:0 16px;font-size:var(--fs-sm);}
.tm-root .tm-flow b{font-weight:700;}
.tm-root .tm-flow__reopen{all:unset;cursor:pointer;text-align:left;}
.tm-root .tm-flow__reopen:hover{color:var(--ink);text-decoration:underline;}
.tm-root .tm-flow__reopen:focus-visible{outline:2px solid var(--brand);outline-offset:2px;border-radius:2px;}
.tm-root .m-btn.tm-didnt{color:var(--danger);}

/* How did it go? Passed / Failed / Blocked / Skip, dimmed until every step is done (still usable). */
.tm-root .tm-verdict-wrap{display:flex;flex-direction:column;gap:8px;}
.tm-root .tm-verdict{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;}
.tm-root .tm-verdict.is-waiting{opacity:.55;}
.tm-root .tm-verdict button{height:56px;border-radius:var(--r-md);border:1.5px solid var(--line-strong);background:var(--surface);font:600 var(--fs-md)/1 var(--font-ui);color:var(--ink);display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;}
.tm-root .tm-verdict button:hover{background:var(--surface-2);}
.tm-root .tm-verdict button:disabled{cursor:default;}
.tm-root .tm-verdict button .k{font:500 var(--fs-2xs)/1 var(--font-mono);color:var(--subtle);border:1px solid var(--line);border-radius:4px;padding:2px 4px;}
.tm-root .tm-verdict .pass .i{color:var(--success);}
.tm-root .tm-verdict .fail .i{color:var(--danger);}
.tm-root .tm-verdict .blk .i{color:var(--warn);}
.tm-root .tm-verdict .skip .i{color:var(--muted);}
.tm-root .tm-verdict .pass[aria-pressed="true"]{background:var(--success);border-color:var(--success);color:var(--on-tone);}
.tm-root .tm-verdict .fail[aria-pressed="true"]{background:var(--danger);border-color:var(--danger);color:var(--on-danger);}
.tm-root .tm-verdict .blk[aria-pressed="true"]{background:var(--warn);border-color:var(--warn);color:var(--on-tone);}
.tm-root .tm-verdict .skip[aria-pressed="true"]{background:var(--surface-3);border-color:var(--line-strong);}
.tm-root .tm-verdict [aria-pressed="true"] .i,.tm-root .tm-verdict [aria-pressed="true"] .k{color:inherit;border-color:currentColor;}
.tm-root .tm-notegrid{grid-template-columns:minmax(0,2fr) minmax(0,1fr);}
.tm-root .tm-foot{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:12px 20px;border-top:1px solid var(--divider);background:var(--panel-head);border-radius:0 0 var(--r-md) var(--r-md);}
.tm-root .tm-foot .grow{flex:1;}

/* Cards: My tests, a run summary's Failed and Blocked. */
.tm-root .tm-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:16px;}
.tm-root .tm-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);display:flex;flex-direction:column;}
.tm-root .tm-card__head{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;padding:12px 16px;border-bottom:1px solid var(--divider);background:var(--panel-head);border-radius:var(--r-md) var(--r-md) 0 0;}
.tm-root .tm-card__head h3{margin:0;font-size:var(--fs-md);font-weight:600;}
.tm-root .tm-card__body{padding:14px 16px;display:flex;flex-direction:column;gap:12px;}
.tm-root .tm-card__foot{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:10px 16px;border-top:1px solid var(--divider);}
.tm-root .tm-card__foot .grow{flex:1;}
.tm-root .tm-quote{margin:0;padding:10px 12px;border-radius:var(--r-sm);background:var(--surface-2);font-size:var(--fs-sm);color:var(--ink-2);white-space:pre-line;overflow-wrap:anywhere;}
.tm-root .tm-hit{display:flex;flex-direction:column;gap:6px;}
.tm-root .tm-hit + .tm-hit{border-top:1px solid var(--divider);padding-top:12px;}
.tm-root .tm-hit__title,.tm-root .tm-plainlink{font-weight:600;color:var(--ink);text-decoration:none;}
.tm-root .tm-plainlink{font-weight:400;}
.tm-root .tm-hit__title:hover,.tm-root .tm-plainlink:hover{text-decoration:underline;}
.tm-root .tm-hit__title .mono{color:var(--muted);font-size:var(--fs-xs);}
.tm-root .tm-kv{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:var(--fs-xs);color:var(--muted);align-items:center;}
.tm-root .tm-kv b{color:var(--ink);font-weight:600;}

/* A case's Results panel. */
.tm-root .tm-results{display:flex;flex-direction:column;gap:14px;}
.tm-root .tm-result{display:grid;grid-template-columns:20px 1fr;gap:8px;}
.tm-root .tm-result .tm-quote{margin-top:6px;}

/* New run: the plans and cases checklist. */
.tm-newrun .tm-picklist{margin-top:6px;max-height:330px;}
.tm-newrun .tm-picklist .m-check > span{flex:1;display:flex;align-items:center;gap:8px;min-width:0;}
.tm-newrun .tm-picklist .m-checklist__head .m-inputwrap{background:var(--surface);}
.tm-newrun .tm-pick--on{background:var(--brand-soft);}
.tm-newrun .tm-pick--sec{padding-left:34px;font-weight:600;color:var(--ink-2);}
.tm-newrun .tm-pick--case{padding-left:34px;}
.tm-newrun .tm-pick--case2{padding-left:58px;}
.tm-newrun .tm-pick__open{margin:-4px -6px -4px 0;}
.tm-newrun .tm-pick-empty{padding:12px;display:flex;justify-content:center;}
.tm-newrun .tm-seg-start{align-self:flex-start;}
.tm-newrun .tm-res{display:inline-flex;font-weight:600;}
.tm-newrun .tm-res--fail{color:var(--danger);}

/* Small helpers the design writes inline. */
.tm-root .tm-grow,.tm-newrun .tm-grow{flex:1;min-width:0;}
.tm-root .tm-xs,.tm-newrun .tm-xs{font-size:var(--fs-xs);}
.tm-root .tm-m0{margin:0;}
.tm-root .tm-mt4{margin-top:4px;}
.tm-root .tm-mt6{margin-top:6px;}
.tm-root .tm-ml-auto{margin-left:auto;}
.tm-root .tm-gap6{gap:6px;}
.tm-root .tm-va{vertical-align:-2px;}
.tm-root .tm-c-fail{color:var(--danger);}
.tm-root .tm-c-block{color:var(--warn);}
.tm-root .tm-c-brand{color:var(--brand-text);}
.tm-root .tm-c-muted{color:var(--muted);}
.tm-root td .m-env{margin-top:4px;}
.tm-root .m-titlecell .m-pill{display:inline-flex;}

/* Stronger panel outlines (owner, 2026-11-16): every panel on these screens gets the strong line and a small
   shadow, so it stands off the page background instead of blending into it. */
.tm-root .m-w,.tm-root .m-panel,.tm-root .m-tablewrap,.tm-root .tm-case,.tm-root .tm-card,.tm-root .tm-run__list,.tm-root .m-disclosure,
.tm-newrun .m-checklist{border-color:var(--line-strong);box-shadow:var(--shadow-2);}
.tm-root .tm-steps{border-color:var(--line-strong);}
.tm-root .m-w__head,.tm-root .m-panel__head,.tm-root .tm-case__head,.tm-root .tm-card__head,.tm-root .tm-run__head{border-bottom-color:var(--line-strong);}

/* Phone: the header's count line drops under the title, plan paths wrap so the Cases column stays on screen,
   and what to see goes under what to do. */
@media (max-width: 600px){
  .tm-root .m-appbar__title{flex-wrap:wrap;row-gap:2px;}
  .tm-root .m-appbar__meta{flex-basis:100%;}
  .tm-root .m-titlecell{min-width:0;}
  .tm-root .m-titlecell .t-sub{white-space:normal;overflow-wrap:anywhere;}
  .tm-root .tm-search{width:100%;}
  .tm-root .tm-steps li{grid-template-columns:24px minmax(0,1fr);}
  .tm-root .tm-steps .exp{grid-column:2;}
  .tm-root .tm-steps .hd{grid-template-columns:24px minmax(0,1fr);}
  .tm-root .tm-steps .hd span:last-child{display:none;}
  .tm-root .tm-case__head,.tm-root .tm-case__body{padding-left:14px;padding-right:14px;}
  .tm-root .tm-case__head h2{font-size:var(--fs-lg);flex-basis:100%;}
}

/* Screenshots and recordings on a result (board 8): phone-shaped thumbnails, then Add a file. */
.tm-root .tm-fw400{font-weight:400;}
.tm-root .tm-shots{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-start;}
.tm-root .tm-shot{position:relative;width:96px;height:172px;border-radius:10px;background:var(--media-poster);border:3px solid var(--phone-edge);display:grid;place-items:center;color:var(--media-fg-muted);font-size:var(--fs-2xs);text-align:center;overflow:hidden;word-break:break-all;}
.tm-root .tm-shot__open{position:absolute;inset:0;display:block;}
.tm-root .tm-shot__open img,.tm-root .tm-shot__open video{width:100%;height:100%;object-fit:cover;display:block;}
.tm-root .tm-shot__x{position:absolute;top:4px;right:4px;}
.tm-root .tm-drop{position:relative;width:200px;}
.tm-root .tm-drop__input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%;}
.tm-root .tm-shots__error{margin-top:6px;}

/* Phone (boards 9, 9b): the window is under 600 px, so the run screen shows one step and a thumb dock. */
.tm-root.tm-phone{display:flex;flex-direction:column;min-height:100dvh;}
.tm-phone .m-appbar{padding:8px 12px;flex-wrap:nowrap;}
.tm-phone .m-appbar .m-appbar__title{flex:1 1 auto;flex-direction:column;flex-wrap:nowrap;align-items:flex-start;gap:0;min-width:0;}
.tm-phone .m-appbar .m-appbar__title h1{font-size:var(--fs-md);}
.tm-phone .m-appbar .m-appbar__meta{flex-basis:auto;}
.tm-phone .m-content{padding:12px;flex:1;}
.tm-phone .tm-notegrid{grid-template-columns:1fr;}
.tm-phone .tm-pcount{display:flex;flex-direction:column;gap:4px;}
.tm-phone .tm-pcount__row{display:flex;justify-content:space-between;font-size:var(--fs-xs);color:var(--muted);}
.tm-phone .tm-ptitle .mono{font-size:var(--fs-xs);color:var(--muted);}
.tm-phone .tm-ptitle h2{margin:2px 0 0;font-size:var(--fs-lg);line-height:1.3;}
.tm-phone .tm-c-ok{color:var(--success);}

/* The step to do now, as one card. */
.tm-phone .tm-step1{background:var(--surface);border:1.5px solid var(--line-strong);border-radius:var(--r-lg);box-shadow:var(--shadow-2);overflow:hidden;}
.tm-phone .tm-step1__n{display:flex;align-items:center;gap:8px;padding:10px 14px;background:var(--panel-head);border-bottom:1px solid var(--line-strong);font-size:var(--fs-xs);font-weight:600;color:var(--ink-2);text-transform:uppercase;letter-spacing:.06em;}
.tm-phone .tm-step1__n .dots{margin-left:auto;display:flex;gap:4px;}
.tm-phone .tm-step1__n .dots i{width:8px;height:8px;border-radius:50%;background:var(--line-strong);display:block;}
.tm-phone .tm-step1__n .dots i.on{background:var(--success);}
.tm-phone .tm-step1__n .dots i.now{background:var(--brand);box-shadow:0 0 0 2px var(--brand-soft);}
.tm-phone .tm-step1__n .dots i.bad{background:var(--danger);}
.tm-phone .tm-step1__do{padding:16px 14px 6px;font-size:var(--fs-lg);font-weight:600;line-height:1.4;color:var(--ink);}
.tm-phone .tm-step1__see{margin:10px 14px 16px;padding:10px 12px;border-radius:var(--r-md);background:var(--success-soft);border:1px solid var(--success-line);font-size:var(--fs-md);color:var(--ink);}
.tm-phone .tm-step1__see .k{display:block;font-size:var(--fs-2xs);font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--success);margin-bottom:4px;}
.tm-phone .tm-step1__see b,.tm-phone .tm-step1__do b{font-weight:700;}
.tm-phone .tm-step1--ok{border-color:var(--success);}
.tm-phone .tm-step1--ok .tm-step1__n{background:var(--success-soft);color:var(--success);}
.tm-phone .tm-step1--ok .tm-step1__do{padding-bottom:16px;}
.tm-phone .tm-step1--bad{border-color:var(--danger);}
.tm-phone .tm-step1--bad .tm-step1__n{background:var(--danger-soft);color:var(--danger);}
.tm-phone .tm-step1--bad .tm-step1__see{background:var(--surface-2);}

/* Earlier steps, folded into one box at the top. */
.tm-phone .tm-prevbox[open] .tm-prevbox__show,.tm-phone .tm-prevbox:not([open]) .tm-prevbox__hide{display:none;}
.tm-phone .tm-prev{list-style:none;margin:0;padding:0 12px 10px;display:flex;flex-direction:column;gap:6px;}
.tm-phone .tm-prev li{display:grid;grid-template-columns:18px 1fr;gap:8px;font-size:var(--fs-sm);color:var(--ink-2);padding:8px 0;border-top:1px solid var(--divider);}
.tm-phone .tm-prev li .see{display:block;color:var(--muted);font-size:var(--fs-xs);margin-top:2px;}

/* The dock: Back / It didn't / That happened, then Passed · next case once every step is done. */
.tm-phone .tm-dock{position:sticky;bottom:0;z-index:4;background:var(--surface);border-top:1px solid var(--line-strong);padding:10px 12px;display:flex;flex-direction:column;gap:8px;box-shadow:var(--shadow-up);}
.tm-phone .tm-dock .row{display:flex;gap:8px;}
.tm-phone .tm-dock .row .m-btn{height:48px;}
.tm-phone .tm-dock .row .grow{flex:1;}
.tm-phone .tm-dock .row .tm-dock__main{flex:2;}
.tm-phone .tm-dock .tm-dock__back{width:48px;padding:0;}
.tm-phone .tm-dock .tm-dock__back .i,.tm-phone .tm-dock .tm-dock__pass .i{width:16px;height:16px;}
.tm-phone .tm-dock .tm-dock__pass{height:52px;font-size:var(--fs-md);background:var(--success);border-color:var(--success);color:var(--on-tone);}
.tm-phone .tm-dock .tm-dock__more{align-self:center;}

/* The case list as a sheet on a phone. */
.tm-casesheet .m-dialog__body{padding:4px;}
.tm-phone .tm-dock .tm-dock__pass:hover{background:var(--success);border-color:var(--success);filter:brightness(.95);}

/* Failures (FR-112 boards 14 and 15, phase 4). */
.tm-root .m-table th.tm-w60{width:60px;}
.tm-root .m-table td.tm-saw{max-width:420px;}
.tm-root .m-thumb.tm-fthumb{width:auto;height:48px;min-width:27px;max-width:72px;background:var(--media-poster);color:var(--media-fg-muted);}
.tm-root .m-thumb.tm-fthumb img{width:auto;height:100%;}
.tm-root .tm-hit--row{flex-direction:row;flex-wrap:wrap;gap:12px 16px;align-items:flex-start;}
.tm-root .tm-hit__main{flex:999 1 420px;min-width:0;display:flex;flex-direction:column;gap:6px;}
.tm-root .tm-hit__actions{flex:1 1 200px;display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;align-items:center;}
.tm-root .tm-evidence{display:flex;flex-direction:column;gap:6px;white-space:normal;}
.tm-root .tm-evidence b{font-weight:600;color:var(--ink);}
.tm-root .tm-logbug .m-check.tm-sm{font-size:var(--fs-sm);}

/* Suggestions (FR-112 boards 11, 12, 13, phase 5). The design's before/after marks; the Suggest dialog's Now /
   Should say and the new-case step editor; the case page's Suggestions panel. */
.tm-root .tm-del{background:var(--danger-soft);color:var(--danger);text-decoration:line-through;border-radius:3px;padding:0 2px;}
.tm-root .tm-ins{background:var(--success-soft);color:var(--success);border-radius:3px;padding:0 2px;font-weight:600;}
.tm-root .tm-tc{color:var(--muted);font-weight:500;margin-right:6px;}
.tm-root .tm-fw400{font-weight:400;}
.tm-root .tm-p8{padding:8px;}
.tm-root .tm-w100{width:100%;}
.tm-root .tm-block{display:block;}
.tm-root .tm-mt2{margin-top:2px;}
.tm-root .tm-sm{font-size:var(--fs-sm);}
.tm-root .tm-sglist{display:flex;flex-direction:column;gap:12px;}
.tm-root .tm-suggest .m-split2__body p{margin:0 0 10px;}
.tm-root .tm-suggest .m-split2__body p:last-child{margin-bottom:0;}
.tm-root .tm-suggest.m-dialog{max-height:none;}
.tm-root .tm-stepedit li{align-items:start;}
.tm-root .tm-stepedit .m-textarea{width:100%;}
.tm-root .tm-stepedit__see{display:flex;gap:6px;align-items:flex-start;min-width:0;}
.tm-root .tm-stepedit__see .m-textarea{flex:1;}

/* The dashboard's Manual testing tile (board 1). The tile carries tm-root, so the bar and legend above reach it too. */
.tm-root .tm-dash__kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.tm-root .tm-dash__areas{display:flex;flex-direction:column;gap:8px;}
.tm-root .tm-dash__area{display:grid;grid-template-columns:110px minmax(0,1fr) 72px;gap:10px;align-items:center;font-size:var(--fs-sm);}
.tm-root .tm-dash__area .tm-bar{min-width:0;}
.tm-root .tm-dash__pct{text-align:right;}
