/* Team, ops lane: the Channels section (new in v1), in the team page's card language (views/ops.css ops-panel, tm-*). */
.tc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px}
.tc-card{padding:12px 14px 14px;display:flex;flex-direction:column;gap:6px}
.tc-h{display:flex;align-items:center;gap:8px;justify-content:space-between}
.tc-h b{font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tc-card p{margin:0}
.tc-rules{margin:4px 0 0}
.tc-risk{display:flex;gap:6px;align-items:flex-start;color:var(--warn);background:var(--warn-bg);border-radius:6px;padding:6px 8px;font-size:13px}
.tc-risk svg{flex:none;margin-top:2px}
.tc-conn{border-top:1px solid var(--line);margin-top:6px;padding-top:8px;display:flex;flex-direction:column;gap:6px}
.tc-acts{display:flex;gap:6px;flex-wrap:wrap}
.tc-quality{border-left:3px solid var(--bad,#c0392b);padding:.35rem .6rem;margin:.4rem 0;background:var(--bad-bg,rgba(192,57,43,.06));border-radius:4px}
.tc-code-v{font-size:1.6rem;letter-spacing:.18em;font-weight:600;margin:.2rem 0}
.tc-qr{width:180px;height:180px;image-rendering:pixelated;background:#fff;padding:8px;border-radius:6px}
.tc-code{color:var(--ink)}
.tc-top{display:flex;justify-content:flex-end;margin-bottom:8px}
.tc-setup{border-top:1px solid var(--line);margin-top:6px;padding-top:8px;display:flex;flex-direction:column;gap:4px;min-width:0}
.tc-url{display:flex;gap:6px;align-items:center;min-width:0}
.tc-url code{flex:1;min-width:0;overflow-wrap:anywhere;font-size:12px;background:var(--bg-2,var(--line));border-radius:4px;padding:4px 6px}
.tc-conn:empty{display:none}
.tc-sync{border-top:1px solid var(--line);padding-top:8px}
.tc-tpl{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column;gap:4px;font-size:13px}
.tc-tpl li{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.tc-tpl li .ops-cnt{margin-left:auto}
.tc-sw{display:flex;gap:8px;align-items:center;font-size:14px;margin:6px 0}
.imp-map{display:flex;flex-direction:column;gap:6px;margin-bottom:10px}
@media (max-width:600px){.tc-grid{grid-template-columns:1fr}}
/* the mobile pass (wa-web loop 21, founder's decision 25): on a phone every action of a channel card is a 44 px target
   with 8 px between (the phone walk, 18 Nov: Check again / Edit 36 px tall, Technical details a 20 px toggle, Copy 52x36) */
@media (max-width:760px){.tc-acts{gap:8px}
  .tc-acts .btn,.tc-card .tc-acts button{min-height:44px;min-width:44px}
  .tc-tech>summary{padding:12px 0;line-height:20px;cursor:pointer}
  .tc-url{gap:8px}.tc-url .btn{height:44px;min-height:44px;min-width:64px}}
/* who did what (team-audit.js) */
.tm-audit{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.tm-audit li{line-height:1.4}
/* two fields side by side in a Team form (Role and Work email; Project and Budget): stacked on a phone, always spaced */
.tm-2{display:grid;grid-template-columns:1fr 1fr;gap:var(--s4) var(--s3)}
@media (max-width:560px){.tm-2{grid-template-columns:1fr}}
/* an out of office title carries its end hour: wrap it on a phone, never cut it (owner people, 17 Nov) */
.aw-row .ops-t{white-space:normal;overflow:visible;text-overflow:clip}
.rot-add{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:8px}.rot-add label{font-size:13px}.rot-add select{max-width:100%}.tm-unseated{margin-top:12px;padding:10px 12px}.tm-unseated .tm-pr{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:6px 0;flex-wrap:wrap}
/* wa-official loop 21: Edit the official line on a phone with the keyboard up (500 px left): Save sat below the screen
   while the name or an id was typed; Cancel and Save stay in view at the bottom of the dialog */
:is(form.modal[data-modalform="tcacct"],form.modal[data-modalform="tckind"])>div:last-child{position:sticky;bottom:calc(-1*var(--s5));margin:0 calc(-1*var(--s5)) calc(-1*var(--s5));padding:var(--s3) var(--s5);background:var(--surface);border-top:1px solid var(--line);z-index:1}
@media (max-width:760px){:is(form.modal[data-modalform="tcacct"],form.modal[data-modalform="tckind"])>div:last-child{bottom:calc(-1*(var(--s4) + env(safe-area-inset-bottom,0px)));margin:0 calc(-1*var(--s4)) calc(-1*(var(--s4) + env(safe-area-inset-bottom,0px)));padding:var(--s3) var(--s4) calc(var(--s3) + env(safe-area-inset-bottom,0px))}}
/* the phone pass (livecrm round 8, Team › Channels): "Technical details" was a 20 px toggle and "Copy" 52x36; both
   are a thumb's 44 px, with 8 px between the address and its button */
.tc-tech>summary{min-height:44px;display:flex;align-items:center;cursor:pointer}
.tc-url{gap:8px}
.tc-url .btn.sm{min-width:44px}
/* the card's actions and "Add an account" were 36 px on a phone (lane mobile's guard, wa-official 18 Nov) */
@media (max-width:720px){.tc-acts{gap:8px}} /* heights: lane mobile's .btn.sm token (36 px + a 4 px apron each side) */
/* the line's two switches in Add / Edit: the whole label is the 44 px target on a phone (the box alone was 16 px) */
@media (max-width:720px){.tc-sw{min-height:44px;display:flex}}
/* the test-number limit (lane walinkfix M1): amber on the card while it is on, the numbers as chips under the field */
.tc-limit{color:var(--warn);background:var(--warn-bg);border-radius:6px;padding:6px 8px;font-weight:600}
.tc-chips{margin-top:8px}
.tc-chip-row{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.tc-chip-row .chip{font-size:14px;padding:4px 10px;border-radius:999px;background:var(--bg-2,rgba(127,127,127,.12));white-space:nowrap}
.tc-chip-row .chip.bad{color:var(--bad);background:var(--bad-bg,rgba(200,0,0,.08));white-space:normal}
/* social loop 16 (decision 25): on a phone every control of a line card is a 44px target, and the two disclosures
   ("What this line allows", "Technical details") are full-width rows, never a 20px line of text */
.tc-allows>summary,.tc-tech>summary{cursor:pointer;font-size:13px;color:var(--ink-2,inherit)}
@media (max-width:760px){
  .tc-allows>summary,.tc-tech>summary{min-height:44px;box-sizing:border-box;padding:12px 0;line-height:20px}
  .tc-card .btn.sm,.tc-top .btn.sm{min-height:44px;min-width:44px}
  .tc-acts{gap:8px}
}
