/* Onboarding prototype — trainer flows. Builds on s-common.css (ob-*); kit tokens only, no new colours. */

/* an «идея» label that marks a whole block */
.tr-idea-row{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--ink-2);margin:0 2px}

/* profile preview — «так вас увидит клиент» */
.tr-cap{margin:0 0 10px;font-size:14px;font-weight:600;color:var(--ink-2)}
.tr-pv .ob-tr>div{min-width:0}
.tr-pv{display:flex;flex-direction:column;gap:10px}
.tr-pv .tr-cap{margin:0}
.tr-pvf{display:flex;gap:6px;flex-wrap:wrap}
.tr-tag{display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border-radius:999px;background:var(--surface-2);font-size:14px;font-weight:600;color:var(--ink)}
.tr-pvl{margin:0;display:flex;gap:8px;align-items:flex-start;font-size:15px;line-height:1.4;color:var(--ink-2)}
.tr-pvl svg{width:17px;height:17px;flex:none;margin-top:2px;color:var(--ink-3)}
.tr-pvb{margin:0;font-size:16px;line-height:1.45;color:var(--ink);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.tr-pv [hidden]{display:none}

/* «О себе» and «Регалии» — optional */
.tr-opt{display:flex;align-items:center;gap:8px;margin:10px 2px -4px}
.tr-opt .ob-gh{margin:0}
.tr-opth{margin:0 2px}
.ob-lb .ob-soon{vertical-align:1px}
.tr-rg{display:flex;align-items:flex-end;gap:4px}
.tr-rg>.ob-fld{flex:1}
.tr-rg>.ibtn{flex:none;width:44px;height:52px}
.tr-rgadd .chip{gap:6px}
.tr-rgadd .chip svg{width:16px;height:16px}
.tr-ph{width:52px;height:52px;border-radius:16px;object-fit:cover;flex:none}
.tr-phr{display:flex;align-items:center;gap:12px}
.tr-phr .tx{flex:1;min-width:0}
.tr-phr .tx b{display:block;font-size:16px}
.tr-phr .tx span{display:block;font-size:14.5px;color:var(--ink-2);margin-top:2px}
.tr-phr .btn{flex:none;min-height:44px}

/* city suggestions under the field */
.tr-sug{display:grid;gap:2px;background:var(--surface-1);border-radius:14px;box-shadow:var(--sh-1);padding:4px;margin-top:2px}
.tr-sug:empty{display:none}
#tr-sug:empty{display:none}
.tr-sug button{display:flex;align-items:center;gap:10px;min-height:44px;border:0;background:transparent;border-radius:10px;padding:0 10px;font:500 16px var(--font);color:var(--ink);text-align:left;cursor:pointer}
.tr-sug button:active,.tr-sug button:focus-visible{background:var(--surface-2);outline:none}
.tr-sug svg{width:18px;height:18px;color:var(--ink-3);flex:none}

/* services */
.tr-svc{display:flex;flex-direction:column;gap:12px}
.tr-svh{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:-4px}
.tr-svh .ob-lnk{min-height:44px}
.btn.tr-add{align-self:flex-start;min-height:48px}
.btn svg{width:18px;height:18px}

/* payment summary in the sheet */
.plate.tr-sum{padding:0;overflow:hidden;box-shadow:none;background:var(--surface-2)}

/* invite code + QR */
.plate.tr-code{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center}
.tr-code>b{font:700 30px/1 var(--font-d);letter-spacing:.08em}
.tr-qr{display:grid;grid-template-columns:repeat(11,1fr);grid-template-rows:repeat(11,1fr);width:154px;height:154px;padding:10px;border-radius:14px;background:#fff;gap:0}
.tr-qr i{display:block;width:100%;height:100%;background:transparent}
.tr-qr i.on{background:#111}

/* «Разбор» preview on the final screen: a small picture of the first screen, drawn on the dark board */
.tr-rv-in{background:var(--board);color:var(--board-ink);border-radius:18px;padding:14px;display:flex;flex-direction:column;gap:10px}
.tr-rv-h{display:flex;justify-content:space-between;align-items:baseline}
.tr-rv-h b{font:700 20px/1.1 var(--font-d)}
.tr-rv-h span{font-size:14px;color:var(--board-2)}
.tr-rv-c{display:flex;gap:12px;align-items:flex-start;background:var(--ground);color:var(--ink);border-radius:14px;padding:12px}
.tr-rv-c b{display:block;font-size:16px;line-height:1.3}
.tr-rv-c span:not(.av):not(.ob-oic){display:block;font-size:14.5px;color:var(--ink-2);margin-top:2px;line-height:1.35}
.tr-rv-w{display:flex;gap:8px;align-items:center;font-size:14.5px;color:var(--board-2)}
.tr-rv-w svg{width:17px;height:17px;flex:none}
.tr-rv-a{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.tr-rv-a span{display:grid;place-items:center;text-align:center;padding:0 8px;min-height:44px;border-radius:12px;background:var(--board-plate);font-size:15px;font-weight:600}
.tr-rv-a span:first-child{background:var(--board-ink);color:var(--board)}
.tr-rv .ob-hint{margin-top:10px}
.ob-li .ibtn{flex:none}
.tr-sav svg{width:24px;height:24px}
.tr-code+.ob-acts .btn{flex:1}
/* dark-ground palettes (nightlime, dusk): the «Разбор» preview card is painted the ground inside a paper plate (an island),
   so the island's dark ink landed on the dark ground. It takes the board's ink, and its icon well the board's plate. */
.app:is([data-scheme="nightlime"],[data-scheme="dusk"]) .tr-rv-c{--ink:var(--board-ink);--ink-2:var(--board-2);--ink-3:var(--board-2);color:var(--ink)}
.app:is([data-scheme="nightlime"],[data-scheme="dusk"]) .tr-rv-c .ob-oic{background:var(--board-plate);color:var(--board-ink)}
