/* «Круг хода» (turn-round.js): a row of portraits in queue order, the master last. Tokens from site.css, rules from
   DESIGN.md «Гроза»: the turn is lit by --light, the living campaign by --ember, no glow but the alive.
   Sizes: .vt-full (campaign page), .vt-compact (table side panel, cabinet), .vt-mini (home). */
.vt{--vt-px:64px;min-width:0;color:var(--bone)}
.vt[hidden],.vt-sec[hidden]{display:none}
/* the campaign page: the block stands above the live feed, with its spacing */
.vt-sec{margin-top:64px}
.vt-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}

/* head: the title, the ember dot of an open round, the queue label of a fight */
.vt-head{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin-bottom:22px}
.vt-t{margin:0;font-family:var(--disp);font-weight:400;font-size:28px;line-height:1.1;color:var(--bone);min-width:0;overflow-wrap:anywhere}
.vt-live{flex:none;width:8px;height:8px;border-radius:50%;background:var(--ember)}
.vt-mode{flex:none;padding:1px 8px 2px;border:1px solid var(--rule-2);border-radius:3px;font-family:var(--mono);font-size:var(--mono-s);letter-spacing:.04em;color:var(--bone-dim)}

/* the row: each member is five rows of one shared grid, so portraits stand on one line whatever the bubbles hold */
.vt-row{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(146px,1fr));column-gap:14px;row-gap:26px}
/* a wide screen: the whole party on one line, a column no wider than a bubble wants (--vt-n from turn-round.js) */
@media (min-width:1000px){.vt-full .vt-row[style]{grid-template-columns:repeat(var(--vt-n),minmax(0,232px))}}
/* row-gap:0: a subgrid takes the gap of its parent, and the 26px between two lines of the party would also part
   the portrait from the name and the name from the caption */
.vt-m{display:grid;grid-row:span 5;grid-template-rows:subgrid;row-gap:0;justify-items:center;text-align:center;min-width:0}
.vt-bub{grid-row:1}
.vt-face{grid-row:2}
.vt-name{grid-row:3}
.vt-cap{grid-row:4}
.vt-by{grid-row:5}

.vt-face{position:relative;display:grid;place-items:center;width:var(--vt-px);height:var(--vt-px);border-radius:50%;background:var(--ink-3);border:1px solid var(--rule-2)}
.vt-face img{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;border-radius:50%;object-fit:cover;object-position:50% 22%}
.vt-init{font-family:var(--disp);font-size:calc(var(--vt-px) * .42);line-height:1;color:var(--bone-dim)}
.vt-quill{color:var(--bone-dim)}
.vt-quill svg{width:48%;height:48%}
.vt-name{margin-top:12px;max-width:100%;font-family:var(--disp);font-size:18px;line-height:1.15;color:var(--bone);overflow-wrap:anywhere}
.vt-cap{margin-top:2px;max-width:100%;font-family:var(--mono);font-size:var(--mono-s);letter-spacing:.03em;line-height:1.3;color:var(--bone-dim)}
.vt-by{max-width:100%;font-family:var(--mono);font-size:var(--mono-s);letter-spacing:.03em;line-height:1.3;color:var(--bone-faint)}

/* the viewer's own hero: a small plate «ты» on the lower edge of the portrait */
.vt-me{position:absolute;z-index:1;left:50%;bottom:-8px;transform:translateX(-50%);padding:0 6px 1px;border:1px solid var(--light);border-radius:3px;background:var(--ink-2);font-family:var(--mono);font-style:normal;font-size:12px;letter-spacing:.03em;line-height:1.25;color:var(--light);white-space:nowrap}


/* his turn: the outline in the light of the storm, breathing */
.s-turn .vt-face{border-color:var(--light)}
.s-turn .vt-face::after{content:"";position:absolute;inset:-5px;border-radius:50%;border:1.5px solid var(--light);opacity:.55;pointer-events:none}
.s-turn .vt-cap{color:var(--light)}
/* waits for the queue: calm, the face as it is */
.s-wait .vt-cap{color:var(--bone-faint)}
/* pass, away, skipped: dimmed, the caption says why */
.dim .vt-face{border-style:dashed}
.dim .vt-face img,.dim .vt-init{opacity:.42;filter:grayscale(.75)}
.dim .vt-name{color:var(--bone-dim)}
.dim .vt-cap{color:var(--bone-faint)}

/* bubbles: three dots for the one we wait for, the words of the post for the one who wrote */
.vt-bub{position:relative;align-self:end;max-width:100%;margin-bottom:14px;padding:8px 12px;border:1px solid var(--rule-2);border-radius:4px;background:var(--ink-3)}
.vt-bub::after{content:"";position:absolute;left:50%;bottom:-6px;width:10px;height:10px;margin-left:-6px;background:var(--ink-3);border-right:1px solid var(--rule-2);border-bottom:1px solid var(--rule-2);transform:rotate(45deg)}
.vt-wait,.vt-gm{border-color:var(--light)}
.vt-wait::after,.vt-gm::after{border-color:var(--light)}
.vt-dots{display:flex;gap:5px;align-items:center;height:12px}
.vt-dots i{width:6px;height:6px;border-radius:50%;background:var(--light)}
.vt-said{justify-self:stretch;text-align:left}
.vt-said q{display:-webkit-box;-webkit-line-clamp:6;-webkit-box-orient:vertical;overflow:hidden;font-family:var(--disp);font-size:15px;line-height:1.38;color:var(--bone);overflow-wrap:anywhere;quotes:"«" "»"}
.vt-gm{font-family:var(--mono);font-size:var(--mono-s);letter-spacing:.03em;line-height:1.25;color:var(--light);white-space:nowrap}

.vt-foot{display:flex;flex-wrap:wrap;gap:0 22px;margin:18px 0 0}
.vt-foot a,.vt-go{display:inline-flex;align-items:center;min-height:40px;font-size:14px;color:var(--light);text-decoration:none;text-underline-offset:3px}
.vt-foot a:hover,.vt-go:hover{color:var(--light-hi);text-decoration:underline}

/* compact: the table's side panel and the cabinet */
.vt-compact{--vt-px:44px}
.vt-compact .vt-head{margin-bottom:14px}
.vt-compact .vt-t{font-size:20px}
/* 14px between columns: with 6px two neighbours' captions read as one line («ОТВЕТ ЕСТЬ ОТВЕТ ЕСТЬ») */
.vt-compact .vt-row{grid-template-columns:repeat(auto-fill,minmax(74px,1fr));column-gap:14px;row-gap:16px}
.vt-compact .vt-gm{white-space:normal}
.vt-compact .vt-name{margin-top:10px;font-size:15px}
.vt-compact .vt-cap,.vt-compact .vt-by{font-size:13px;letter-spacing:.02em}
.vt-compact .vt-bub{margin-bottom:10px;padding:5px 8px}
.vt-compact .vt-dots{gap:4px;height:8px}
.vt-compact .vt-dots i{width:5px;height:5px}
.vt-compact .vt-gm{white-space:normal;font-size:13px}
.vt-compact .vt-foot{margin-top:10px;gap:0 18px}

/* mini: the home page, a row of small faces and one phrase */
.vt-mini{--vt-px:28px;display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px}
.vt-mini .vt-row{display:flex;flex-wrap:wrap;gap:6px}
.vt-mini .vt-m{position:relative;display:block}
/* small faces say the state without words: a tick for an answer, a faded face for the one who waits for the queue */
.vt-ok{position:absolute;right:-3px;bottom:-3px;display:grid;place-items:center;width:13px;height:13px;border-radius:50%;background:var(--ok);color:var(--ink);outline:2px solid var(--ink-2)}
.vt-ok svg{width:9px;height:9px}
.vt-mini .s-wait .vt-face img,.vt-mini .s-wait .vt-init{opacity:.6}
.vt-mini .vt-me{top:100%;bottom:auto;margin-top:4px;padding:0;border:0;background:none}
.vt-mini.has-me .vt-row{padding-bottom:18px;row-gap:22px}
.ce-now .vt-mini.has-me .vt-row{row-gap:22px}
.vt-mini .s-turn .vt-face::after{inset:-4px;border-width:1.5px}
.vt-say{font-family:var(--mono);font-size:var(--mono-s);letter-spacing:.03em;color:var(--bone-dim)}
.vt-mini:not(.closed) .vt-say{color:var(--light)}
.vt-mini.closed .vt-master .vt-face{border-color:var(--light)}

/* the cabinet: a card per hero in a round */
.vt-mine{margin:8px 0 34px}
.vt-mine[hidden]{display:none}
.vt-mine-l{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.vt-mine-i{padding:16px 18px 4px;border:1px solid var(--rule-2);border-radius:4px;background:var(--ink-2);min-width:0}
.vt-mine-i.is-turn{border-color:color-mix(in srgb,var(--light) 55%,var(--rule-2))}
.vt-mine-i .vt-head{margin-bottom:6px}
.vt-lead{margin:0 0 16px}
.vt-lead p{margin:0;font-size:16px;line-height:1.45;color:var(--bone)}
.vt-lead p.is-turn{color:var(--light-hi)}

/* the entry block (turn-round.js entry): the round in a line or the compact row, then «Читать посты» and «Чат героев» */
.ce{min-width:0}
.ce[hidden]{display:none}
.ce-head{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;margin-bottom:8px}
.ce-t{margin:0;font-family:var(--disp);font-weight:400;font-size:22px;line-height:1.15;color:var(--bone);min-width:0;overflow-wrap:anywhere}
.ce-line{margin:0 0 12px;font-size:16px;line-height:1.45;color:var(--bone-dim);overflow-wrap:anywhere}
.ce-line.is-turn{font-weight:500;color:var(--light-hi)}
.ce-last{margin:0 0 14px;font-size:14.5px;line-height:1.5;color:var(--bone-dim);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.ce-last b{font-weight:500;color:var(--bone)}
.ce-last q{font-family:var(--disp);font-size:15.5px;color:var(--bone);quotes:"«" "»"}
.ce-acts{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin:0 0 14px}
.ce-ql{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;min-width:0;margin-left:-4px}
.ce-a{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 18px 0 15px;border:1px solid var(--rule-2);border-radius:var(--pill);background:var(--ink-2);font-family:var(--sans);font-weight:500;font-size:15px;line-height:1;color:var(--bone);text-decoration:none;white-space:nowrap;transition:border-color .25s,color .25s,transform .3s}
.ce-a svg{flex:none;width:17px;height:17px;color:var(--light)}
.ce-a:hover{border-color:var(--light);color:var(--bone)}
.ce-a:focus-visible{outline:1px solid var(--light);outline-offset:3px}
.ce-a.ce-main{background:var(--light);border-color:var(--light);color:var(--ink)}
.ce-a.ce-main svg{color:var(--ink)}
.ce-a.ce-main:hover{background:var(--light-hi);border-color:var(--light-hi);color:var(--ink)}
/* «Читать посты», когда это главная кнопка блока: залита светом грозы, как «Написать пост» в свой ход, иначе теряется на тёмном */
.ce-a[href^="/read?c="]:not(.ce-q):not(.ce-main){background:var(--light);border-color:var(--light);color:var(--ink)}
.ce-a[href^="/read?c="]:not(.ce-q):not(.ce-main) svg{color:var(--ink)}
.ce-a[href^="/read?c="]:not(.ce-q):not(.ce-main):hover{background:var(--light-hi);border-color:var(--light-hi);color:var(--ink)}
/* every action but the first: a quiet link, the light of the storm, no frame (DESIGN.md «Мелкие удобства») */
.ce-a.ce-q{gap:7px;padding:0 4px;border-color:transparent;background:none;font-weight:400;font-size:14.5px;color:var(--light)}
.ce-a.ce-q svg{width:16px;height:16px;color:currentColor;opacity:.85}
.ce-a.ce-q:hover{border-color:transparent;color:var(--light-hi);text-decoration:underline;text-underline-offset:4px}
/* the hub of a campaign (read.js): «Написать пост» next to the tabs */
.rd-write{display:flex;justify-content:flex-end;margin:-8px 0 14px}
/* on a wide screen the button stands in the row of the tabs, at its right end, and takes no row of its own */
@media (min-width:641px){
  .rd-write{position:relative;z-index:1;height:0;margin:0}
  .rd-write .ce-a{position:absolute;right:0;top:4px}
}
.ce-n{display:inline-grid;place-items:center;min-width:20px;height:20px;margin-right:-6px;padding:0 6px;border-radius:10px;background:var(--light);color:var(--ink);font-size:12px;font-weight:600;font-variant-numeric:tabular-nums}
.ce-q .ce-n{margin-right:0}
.ce .vt-compact{margin:6px 0 16px}
/* the campaign page: in the cover's ledger, under the facts */
.ce-ledger{margin-top:16px;padding-top:14px;border-top:1px solid var(--rule)}
.ce-ledger .ce-acts{margin-bottom:0}
.ce-ledger .ce-line{font-size:15px;margin-bottom:10px}
/* the player's home: the campaign card stands first in the main column */
.ce-home{display:grid;gap:12px;min-width:0}
/* one heading for the block; with several campaigns it says in how many the player is waited for */
.ce-hh{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:2px 16px;min-width:0}
.ce-ht{margin:0;font-family:var(--mono);font-weight:500;font-size:var(--mono-s);letter-spacing:.04em;line-height:1.4;color:var(--bone-faint)}
.ce-sum{font-size:14px;line-height:1.4;color:var(--bone-faint)}
.ce-sum.is-turn{color:var(--light)}
.ce-card{padding:18px 20px 4px;border:1px solid var(--rule-2);border-radius:4px;background:var(--ink-2);min-width:0}
.ce-card.is-turn{border-color:color-mix(in srgb,var(--light) 55%,var(--rule-2))}
.ce-home .ce-head{margin-bottom:10px}
/* the queue in small faces, then the words about it, on one line; on a phone the words go under the faces */
.ce-now{display:flex;align-items:flex-start;flex-wrap:wrap;gap:4px 16px;margin:0 0 10px;min-width:0}
.ce-now .vt-mini{--vt-px:32px;flex:none;max-width:100%}
.ce-now .vt-mini .vt-row{gap:8px}
.ce-now .ce-line{flex:1 1 220px;margin:4px 0 0;min-width:0}
/* a row of small faces next to an action (home card, campaigns list) */
.vt-pair{display:flex;align-items:center;flex-wrap:wrap;gap:10px 18px}
.vt-pair .vt-home[hidden]{display:none}
.livecard .body>.vt-home{margin:0 0 16px}
.livecard .body>.vt-pair{margin:0 0 12px;gap:4px 18px}

@media (max-width:640px){
  .vt-sec{margin-top:44px}
  /* the full row turns into a list: portrait on the left, words and bubble on the right */
  .vt-full{--vt-px:48px}
  .vt-full .vt-t{font-size:24px}
  .vt-full .vt-row{grid-template-columns:minmax(0,1fr);row-gap:14px}
  .vt-full .vt-m{grid-row:auto;grid-template-rows:none;grid-template-columns:var(--vt-px) minmax(0,1fr);column-gap:14px;justify-items:start;align-items:center;text-align:left}
  .vt-full .vt-face{grid-column:1;grid-row:1 / span 3;align-self:start}
  .vt-full .vt-name{grid-column:2;grid-row:1;margin-top:2px}
  .vt-full .vt-cap{grid-column:2;grid-row:2}
  .vt-full .vt-by{grid-column:2;grid-row:3}
  .vt-full .vt-bub{grid-column:2;grid-row:4;align-self:start;margin:8px 0 0}
  .vt-full .vt-bub::after{left:18px;top:-6px;bottom:auto;transform:rotate(225deg)}
  .vt-full .vt-wait{padding:6px 10px}
  .vt-full .vt-said q{-webkit-line-clamp:4;font-size:15px}
  .vt-mine-i{padding:14px 14px 4px}
  .ce-card{padding:16px 14px 4px}
  .ce-t{font-size:20px}
  .ce-a{min-height:44px;padding:0 16px 0 13px;font-size:15px}
  .ce-a.ce-q{font-size:15px}
  .ce-acts{gap:2px 12px}
  /* a phone: the button and the first link share a row, the links wrap one by one, flush with the button's edge */
  .ce-ql{display:contents}
  .ce-a.ce-q{padding:0 6px 0 0}
}
/* a wide card (cabinet, reading room): a column per hero wide enough for «в отъезде до пн 30.11» in one or two lines */
@media (min-width:900px){
  .vt-mine-i .vt-compact .vt-row,.rd-round .vt-compact .vt-row{grid-template-columns:repeat(auto-fill,minmax(112px,1fr))}
}
/* a narrow phone: the links drop their icons so that the button and «Читать посты» share a row */
@media (max-width:380px){
  .ce-a.ce-q svg{display:none}
}
@media (max-width:340px){
  .ce-now .vt-mini{--vt-px:28px}
  .ce-now .vt-mini .vt-row{gap:6px}
}

@media (prefers-reduced-motion:no-preference){
  .ce-a:hover{transform:scale(1.03)}
  .ce-a:active{transform:scale(.98)}
  /* a quiet link answers with its underline: text does not swell */
  .ce-a.ce-q:hover,.ce-a.ce-q:active{transform:none}
  .s-turn .vt-face::after{animation:vt-breathe 2.8s ease-in-out infinite}
  .vt-dots i{animation:vt-dot 1.4s ease-in-out infinite}
  .vt-dots i:nth-child(2){animation-delay:.2s}
  .vt-dots i:nth-child(3){animation-delay:.4s}
}
@keyframes vt-breathe{0%,100%{opacity:.2;transform:scale(.95)}50%{opacity:.9;transform:scale(1.05)}}
@keyframes vt-dot{0%,60%,100%{opacity:.35;transform:none}30%{opacity:1;transform:translateY(-2px)}}
@media print{.vt-foot{display:none}}

/* ─── the initiative track (the game hub /read, turn-round.js track) ───
   One loud line says who acts now; the party stands under it as portraits, the acting one raised and lit by
   --light, those who are done ticked, the master last behind a hairline. A strict queue numbers its portraits;
   the free mode has no numbers (turn-round.js track). */
.vt-track{--vt-px:44px;padding:18px 20px 20px;border:1px solid var(--rule-2);border-radius:4px;background:var(--ink-2)}
.vt-track .vt-head{margin-bottom:8px}
/* the name of the block is a label here: the loud line under it is the heading the eye reads */
.vt-track .vt-t{font-family:var(--mono);font-weight:500;font-size:var(--mono-m);letter-spacing:.04em;line-height:1.3;color:var(--bone-dim)}
.tk-edit{display:inline-flex;align-items:center;gap:7px;min-height:40px;margin:-8px -4px -8px auto;padding:0 4px;border:0;background:none;font-family:var(--sans);font-size:14.5px;color:var(--light);cursor:pointer}
.tk-edit svg{flex:none;width:16px;height:16px;opacity:.85}
.tk-edit:hover{color:var(--light-hi);text-decoration:underline;text-underline-offset:4px}
.tk-edit:focus-visible{outline:1px solid var(--light);outline-offset:3px;border-radius:3px}
.tk-edit:disabled{opacity:.6;cursor:progress}

.tk-now{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 14px;margin:0 0 20px;min-width:0}
.tk-now b{font-family:var(--disp);font-weight:400;font-size:32px;line-height:1.08;letter-spacing:var(--tight-s);color:var(--bone);overflow-wrap:anywhere}
.tk-now.is-mine b{color:var(--light-hi)}
.tk-now span{font-size:15px;line-height:1.45;color:var(--bone-dim)}

/* the queue: each hero is four rows of one shared grid (number, portrait, name, state), so the portraits stand on
   one floor and the acting one, being bigger, rises above the rest */
.tk-row{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));column-gap:8px;row-gap:22px}
.tk-m{position:relative;display:grid;grid-row:span 4;grid-template-rows:subgrid;row-gap:0;justify-items:center;text-align:center;min-width:0}
.tk-no{align-self:end;display:grid;place-items:center;min-width:22px;height:22px;margin-bottom:8px;padding:0 6px;border:1px solid var(--rule-2);border-radius:11px;font-family:var(--mono);font-size:13px;line-height:1;font-variant-numeric:tabular-nums;color:var(--bone-faint)}
/* each part has its own row: without the number (the free mode, the master) that row is simply empty */
.tk-m .tk-no{grid-row:1}
.tk-m .vt-face{grid-row:2;align-self:end}
.tk-m .tk-name{grid-row:3}
.tk-cap{grid-row:4}
.tk-m .vt-ok{right:-2px;bottom:-2px;z-index:1;width:16px;height:16px}
.tk-m .vt-ok svg{width:11px;height:11px}
/* scoped to the track: the table loads this file after table.css, and a bare .tk-name cut the hero's name under
   a map token to «Л…» (max-width 100% of a 40px token) */
.tk-m .tk-name{margin-top:10px;max-width:100%;font-family:var(--disp);font-size:16px;line-height:1.15;color:var(--bone-dim);overflow-wrap:anywhere}
.tk-cap{margin-top:2px;max-width:100%;font-family:var(--mono);font-size:13px;letter-spacing:.02em;line-height:1.3;color:var(--bone-faint)}
/* acts now: the bigger portrait, the filled number, the name in full voice */
.tk-open{background:none;border:0;padding:0;cursor:pointer}
.tk-open::after{content:"";position:absolute;inset:0;border-radius:4px}
.tk-open:hover{color:var(--light-hi)}
.tk-open:focus-visible{outline:0}
.tk-open:focus-visible::after{outline:1px solid var(--light);outline-offset:4px}
.tk-m.is-now{--vt-px:60px}
.tk-m.is-now .tk-no{border-color:var(--light);background:var(--light);color:var(--ink);font-weight:600}
.tk-m.is-now .tk-name{font-size:19px;color:var(--bone)}
.tk-m.is-now .tk-cap{color:var(--light)}
/* the next one in a strict queue: named, the outline of the number lit */
.tk-m.is-next .tk-no{border-color:var(--light);color:var(--light)}
.tk-m.is-next .tk-name{color:var(--bone)}
.tk-m.is-next .tk-cap{color:var(--bone-dim)}
/* done: the face steps back a little, the tick says it */
.tk-m.s-wrote .vt-face img{opacity:.78}
/* the master ends the round: last, behind a hairline */
.tk-gm::before{content:"";position:absolute;left:-4px;top:6px;bottom:6px;width:1px;background:var(--rule)}
/* the plate «ты» sits on the lower edge of the face: the quill moves up from under it */
.tk-gm.me .vt-quill svg{transform:translateY(-5px)}
.tk-gm .tk-name{font-family:var(--mono);font-size:var(--mono-s);letter-spacing:.04em}
.tk-gm.is-now .tk-name{font-size:var(--mono-m)}

/* the master's editor of the queue */
.tk-ed .vt-head{margin-bottom:14px}
.tk-modes{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:8px;margin:0 0 16px;padding:0;border:0;min-width:0}
.tk-opt{display:flex;align-items:flex-start;gap:10px;padding:11px 14px;border:1px solid var(--rule-2);border-radius:4px;background:var(--ink-3);cursor:pointer}
.tk-opt:has(input:checked){border-color:var(--light)}
.tk-opt:has(input:focus-visible){outline:1px solid var(--light);outline-offset:2px}
.tk-opt input{flex:none;width:16px;height:16px;margin:3px 0 0;accent-color:var(--light)}
.tk-opt>span{display:grid;gap:1px;min-width:0}
.tk-opt b{font-weight:500;font-size:15px;line-height:1.35;color:var(--bone)}
.tk-opt span span{font-size:14px;line-height:1.4;color:var(--bone-dim)}
.tk-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.tk-r{display:flex;align-items:center;gap:12px;min-height:56px;padding:8px 8px 8px 12px;border:1px solid var(--rule);border-radius:4px;background:var(--ink-3);cursor:grab}
.tk-r .tk-no{flex:none;align-self:center;margin:0}
.tk-r .vt-face{--vt-px:36px;flex:none}
.tk-rn{flex:1 1 auto;display:grid;gap:1px;min-width:0}
.tk-rn b{font-family:var(--disp);font-weight:400;font-size:17px;line-height:1.2;color:var(--bone);overflow-wrap:anywhere}
.tk-rn span{font-family:var(--mono);font-size:13px;letter-spacing:.02em;line-height:1.3;color:var(--bone-faint)}
.tk-r.is-pend{border-color:color-mix(in srgb,var(--light) 55%,var(--rule-2))}
.tk-r.is-pend .tk-rn span{color:var(--light)}
.tk-r.is-drag{opacity:.45}
.tk-r.is-over{border-color:var(--light)}
.tk-ra{flex:none;display:flex;align-items:center;gap:6px}
.tk-b{display:inline-grid;place-items:center;min-width:40px;height:40px;padding:0 12px;border:1px solid var(--rule-2);border-radius:4px;background:var(--ink-2);font-family:var(--sans);font-size:14px;line-height:1;color:var(--bone);cursor:pointer;transition:border-color .2s,color .2s}
.tk-mv{padding:0}
.tk-b svg{width:18px;height:18px;color:var(--light)}
.tk-b:hover{border-color:var(--light)}
.tk-b:focus-visible{outline:1px solid var(--light);outline-offset:2px}
.tk-b:disabled{opacity:.35;cursor:default;border-color:var(--rule-2)}
.tk-skip[aria-pressed="true"]{border-color:var(--light);color:var(--light)}
.tk-note{margin:14px 0 0;font-size:14px;line-height:1.5;color:var(--bone-dim)}
.tk-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin:16px 0 0}
.tk-bar .ce-a{cursor:pointer}
.tk-bar .ce-a:disabled{opacity:.6;cursor:progress}
.tk-res{font-size:14px;line-height:1.4;color:var(--fallen)}
.tk-res:empty{display:none}

@media (max-width:640px){
  .vt-track{padding:16px 14px 18px}
  .tk-now{margin-bottom:16px}
  .tk-now b{font-size:26px}
  .tk-row{grid-template-columns:repeat(auto-fill,minmax(74px,1fr));column-gap:4px;row-gap:18px}
  .tk-m.is-now{--vt-px:52px}
  .tk-m:not(.tk-gm) .tk-name{font-size:15px}
  .tk-m.is-now .tk-name{font-size:17px}
  .tk-edit{min-height:44px;margin:-10px -4px -10px auto}
  /* a phone: the arrows stay in the row of the name, «Пропустить ход» goes under it at full width */
  .tk-r{flex-wrap:wrap;gap:8px;padding:8px 8px 8px 10px}
  .tk-ra{display:contents}
  .tk-b{min-width:44px;height:44px}
  .tk-skip{order:3;flex:1 1 100%}
}
@media print{.tk-edit{display:none}}
