/* Team building pages (teams/*.html). Colors only from var(--k-*). */

.tm-page{ background:var(--k-surface); }
.tm-page--gray{ background:var(--k-bg); }
.tm-head{ display:flex; justify-content:space-between; align-items:flex-end; gap:16px; flex-wrap:wrap; padding-top:28px; padding-bottom:20px; }
.tm-head__text{ display:flex; flex-direction:column; gap:6px; min-width:0; flex:1 1 420px; }
.tm-head__actions{ display:flex; gap:8px; flex-wrap:wrap; }
.tm-soft{ color:var(--k-soft); }
.tm-muted{ color:var(--k-muted); }
.tm-small{ font-size:13px; }
.tm-xs{ font-size:12px; }
.tm-stack{ display:flex; flex-direction:column; gap:12px; }
.tm-row{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.tm-between{ display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.tm-label{ font-size:12px; font-weight:600; color:var(--k-muted); }
.tm-new{ height:20px; padding:0 7px; font-size:11px; }

/* filters */
.tm-toolbar{ display:flex; gap:12px; align-items:center; flex-wrap:wrap; padding-bottom:14px; }
.tm-search{ flex:1 1 320px; display:flex; align-items:center; gap:8px; height:48px; padding:0 6px 0 14px; border:1px solid var(--k-line-2); border-radius:var(--k-r); background:var(--k-surface); color:var(--k-muted); }
.tm-search input{ flex:1; min-width:0; height:40px; border:0; outline:none; font:inherit; font-size:15px; background:transparent; color:var(--k-ink); }
.tm-toggle{ display:inline-flex; align-items:center; gap:10px; min-height:44px; padding:0 4px; border:0; background:transparent; font:inherit; font-size:14px; color:var(--k-ink-2); cursor:pointer; text-decoration:none; }
.tm-toggle .k-switch{ width:38px; height:22px; }
.tm-toggle .k-switch::after{ width:18px; height:18px; }
.tm-toggle[aria-pressed="true"] .k-switch{ background:var(--k-primary); }
.tm-toggle[aria-pressed="true"] .k-switch::after{ transform:translateX(16px); }
.tm-seg{ display:inline-flex; gap:2px; padding:3px; border:1px solid var(--k-line-2); border-radius:var(--k-r); background:var(--k-surface); flex-wrap:wrap; }
.tm-seg a, .tm-seg button{ display:inline-flex; align-items:center; height:40px; padding:0 12px; border:0; border-radius:9px; background:transparent; font:inherit; font-size:14px; color:var(--k-ink-2); text-decoration:none; white-space:nowrap; cursor:pointer; }
.tm-seg [aria-current="page"], .tm-seg [aria-pressed="true"]{ background:var(--k-dark-btn); color:var(--k-on-dark-btn); font-weight:600; }
.tm-chips{ display:flex; gap:8px; overflow-x:auto; scrollbar-width:none; padding-bottom:20px; }
.tm-chips::-webkit-scrollbar{ display:none; }
.tm-chips .k-chip{ flex:none; gap:8px; }
.tm-chip__n{ font-size:12px; opacity:.7; }

/* cards */
.tm-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap:16px; }
.tm-card{ display:flex; flex-direction:column; gap:14px; padding:20px; background:var(--k-surface); border:1px solid var(--k-line); border-radius:var(--k-r-card); }
.tm-card:hover{ border-color:var(--k-line-2); box-shadow:var(--k-shadow-hover); }
.tm-card__title{ margin:0; font-size:17px; font-weight:600; line-height:1.4; }
.tm-card__title a{ color:var(--k-ink); text-decoration:none; }
.tm-card__title a:hover{ color:var(--k-primary); }
.tm-card__desc{ margin:0; font-size:14px; color:var(--k-soft); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.tm-tag{ display:inline-flex; align-items:center; min-height:26px; padding:0 10px; border-radius:8px; background:var(--k-surface-2); color:var(--k-ink-2); font-size:12px; }
.tm-av{ flex:0 0 auto; width:28px; height:28px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; overflow:hidden; font-size:10px; font-weight:700; background:var(--k-surface-2); color:var(--k-ink-2); }
.tm-av img{ width:100%; height:100%; object-fit:cover; }
.tm-av--brand{ background:var(--k-brand-soft); color:var(--k-brand-soft-ink); }
.tm-av--lg{ width:40px; height:40px; font-size:13px; }
.tm-slots{ display:flex; flex-direction:column; gap:6px; }
.tm-slot{ display:flex; align-items:center; gap:10px; min-height:44px; padding:8px 12px; border-radius:12px; font-size:14px; color:var(--k-ink); }
.tm-slot--filled{ background:var(--k-bg); border:1px solid var(--k-line); }
.tm-slot--open{ background:var(--k-surface); border:1px dashed var(--k-line-3); }
.tm-slot__name{ flex:1; min-width:0; }
.tm-slot__meta{ font-size:12px; color:var(--k-soft); white-space:nowrap; }
.tm-slot__who{ font-size:12px; font-weight:600; color:var(--k-primary); white-space:nowrap; }
.tm-slots__more{ align-self:flex-start; padding:2px 12px; font-size:13px; font-weight:600; color:var(--k-soft); text-decoration:none; }
.tm-slots__more:hover{ color:var(--k-ink); text-decoration:underline; }
.tm-bar{ height:6px; border-radius:999px; background:var(--k-surface-2); overflow:hidden; }
.tm-bar > i{ display:block; height:100%; border-radius:999px; background:var(--k-brand); }
.tm-bar--full > i{ background:var(--k-line-3); }
.tm-card__foot{ margin-top:auto; padding-top:14px; border-top:1px solid var(--k-line); display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; }
.tm-budget{ display:flex; flex-direction:column; }
.tm-budget b{ font-size:15px; color:var(--k-ink); }
.tm-budget--open b{ color:var(--k-info); }
.tm-budget--share b{ color:var(--k-primary); }

/* steps */
.tm-steps{ margin:0; padding:0; list-style:none; display:grid; grid-template-columns:repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap:16px; }
.tm-steps[hidden]{ display:none; }
.tm-step{ display:flex; flex-direction:column; gap:10px; padding:24px; background:var(--k-surface); border:1px solid var(--k-line); border-radius:var(--k-r-card); }
.tm-step__n{ font-size:13px; font-weight:700; color:var(--k-primary); }
.tm-step__t{ margin:0; font-size:18px; font-weight:600; }
.tm-step__d{ margin:0; color:var(--k-soft); }

/* split layouts */
.tm-split{ display:flex; gap:24px; flex-wrap:wrap; align-items:flex-start; padding-bottom:72px; }
.tm-split__main{ flex:999 1 560px; min-width:0; display:flex; flex-direction:column; gap:20px; }
.tm-split__side{ flex:1 1 280px; max-width:360px; display:flex; flex-direction:column; gap:16px; }
.tm-panel{ background:var(--k-surface); border:1px solid var(--k-line); border-radius:var(--k-r-card); padding:20px; display:flex; flex-direction:column; gap:12px; }
.tm-panel h2{ margin:0; font-size:18px; font-weight:700; }
.tm-kv{ display:flex; justify-content:space-between; gap:8px; font-size:14px; padding:9px 0; border-top:1px solid var(--k-line); }
.tm-kv:first-child{ border-top:0; }
.tm-kv > span:first-child{ color:var(--k-muted); }
.tm-desc{ white-space:pre-line; line-height:1.6; color:var(--k-ink-2); margin:0; }
.tm-role{ display:flex; align-items:center; gap:12px; padding:12px 14px; border-radius:12px; border:1px solid var(--k-line); flex-wrap:wrap; }
.tm-role--open{ border-style:dashed; border-color:var(--k-line-3); }
.tm-role__body{ flex:1 1 200px; display:flex; flex-direction:column; gap:2px; min-width:0; }
.tm-role__name{ font-weight:600; }

/* form */
.tm-form{ display:flex; flex-direction:column; gap:20px; }
.tm-form__row{ display:grid; grid-template-columns:repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap:16px; }
.tm-roles-edit{ display:flex; flex-direction:column; gap:8px; }
.tm-role-row{ display:flex; gap:8px; align-items:center; }
.tm-role-row input{ height:44px; padding:0 12px; border:1px solid var(--k-line-2); border-radius:10px; font:inherit; font-size:15px; background:var(--k-surface); color:var(--k-ink); min-width:0; }
.tm-role-row input[name="role_name"]{ flex:2 1 0; }
.tm-role-row input[name="role_budget"]{ flex:1 1 0; }
.tm-role-row__filled{ font-size:12px; color:var(--k-primary); white-space:nowrap; }
.tm-chip-dash{ border-style:dashed; height:36px; font-size:13px; }
.tm-pay{ display:grid; grid-template-columns:repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap:8px; border:0; padding:0; margin:0; }
.tm-pay label{ display:flex; flex-direction:column; gap:2px; padding:12px 14px; border-radius:12px; border:1px solid var(--k-line-2); cursor:pointer; background:var(--k-surface); }
.tm-pay label:has(input:checked){ border:2px solid var(--k-primary); background:var(--k-brand-soft-2); }
.tm-pay input{ position:absolute; opacity:0; pointer-events:none; }
.tm-pay b{ font-size:15px; }
.tm-note{ padding:12px 14px; border-radius:12px; background:var(--k-info-bg); color:var(--k-info); font-size:14px; }
.tm-note--warn{ background:var(--k-warn-bg); color:var(--k-warn); }
.tm-form [data-pay-show][hidden]{ display:none; }

/* chats */
.tm-chat{ display:flex; gap:16px; align-items:stretch; padding-bottom:32px; }
.tm-chat__list{ flex:1 1 280px; max-width:320px; display:flex; flex-direction:column; gap:6px; padding:12px; height:min(740px, calc(100vh - 220px)); min-height:480px; overflow-y:auto; }
.tm-chat__main{ flex:999 1 460px; min-width:0; display:flex; flex-direction:column; height:min(740px, calc(100vh - 220px)); min-height:480px; overflow:hidden; padding:0; gap:0; }
.tm-chat__side{ flex:1 1 260px; max-width:320px; display:flex; flex-direction:column; gap:16px; }
.tm-conv{ display:flex; align-items:center; gap:10px; padding:10px; border-radius:12px; color:var(--k-ink); text-decoration:none; }
.tm-conv:hover{ background:var(--k-surface-2); }
.tm-conv[aria-current="page"]{ background:var(--k-brand-soft-2); }
.tm-conv__body{ flex:1; min-width:0; display:flex; flex-direction:column; }
.tm-conv .tm-new-badge{ flex:none; margin-left:0; }
.tm-conv .tm-new-badge[hidden]{ display:none; }
.tm-conv__name{ font-size:14px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tm-conv__sub{ font-size:12px; color:var(--k-muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tm-chat__head{ display:flex; align-items:center; gap:12px; padding:14px 18px; border-bottom:1px solid var(--k-line); }
.tm-log{ flex:1; overflow-y:auto; padding:18px; display:flex; flex-direction:column; gap:12px; }
.tm-msg{ display:flex; flex-direction:column; gap:4px; align-items:flex-start; }
.tm-msg--me{ align-items:flex-end; }
.tm-bub{ max-width:min(520px, 82%); padding:10px 14px; font-size:15px; line-height:1.45; border-radius:16px 16px 16px 4px; background:var(--k-surface-2); color:var(--k-ink); white-space:pre-line; overflow-wrap:anywhere; }
.tm-msg--me .tm-bub{ border-radius:16px 16px 4px 16px; background:var(--k-primary); color:var(--k-on-primary); }
.tm-meta{ font-size:11px; color:var(--k-muted); padding:0 4px; }
.tm-sys{ align-self:center; max-width:520px; text-align:center; font-size:13px; color:var(--k-brand-soft-ink); background:var(--k-brand-soft-2); border:1px solid var(--k-brand-soft); border-radius:999px; padding:6px 14px; }
.tm-composer{ display:flex; align-items:center; gap:8px; padding:10px; border-top:1px solid var(--k-line); }
.tm-composer textarea{ flex:1; min-width:0; min-height:44px; max-height:160px; padding:11px 14px; border:1px solid var(--k-line-2); border-radius:12px; font:inherit; font-size:15px; resize:none; background:var(--k-surface); color:var(--k-ink); }
.tm-composer--off{ padding:14px 18px; font-size:14px; color:var(--k-soft); border-top:1px solid var(--k-line); }
.tm-stages{ display:flex; gap:6px; flex-wrap:wrap; list-style:none; margin:0; padding:0; }
.tm-stage{ display:inline-flex; align-items:center; gap:8px; height:34px; padding:0 12px 0 5px; border-radius:999px; font-size:13px; color:var(--k-muted); }
.tm-stage i{ font-style:normal; width:24px; height:24px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; background:var(--k-surface-2); }
.tm-stage--done{ color:var(--k-brand-soft-ink); }
.tm-stage--done i{ background:var(--k-brand-soft); }
.tm-stage--on{ background:var(--k-dark-btn); color:var(--k-on-dark-btn); font-weight:600; }
.tm-stage--on i{ background:var(--k-brand); color:var(--k-on-primary); }
.tm-cta{ display:flex; align-items:center; gap:12px; padding:14px; border-radius:14px; background:var(--k-brand-soft-2); border:1px solid var(--k-brand-soft); flex-wrap:wrap; }
.tm-line{ display:flex; gap:10px; align-items:flex-start; }
.tm-line__body{ flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.tm-line__text{ margin:0; font-size:15px; line-height:1.5; white-space:pre-line; overflow-wrap:anywhere; }
.tm-line--pinned .tm-line__text{ background:var(--k-warn-bg); border-radius:8px; padding:4px 8px; }
.tm-line__acts{ display:flex; gap:2px; opacity:0; transition:opacity .15s; }
.tm-line:hover .tm-line__acts, .tm-line:focus-within .tm-line__acts{ opacity:1; }
@media (hover:none){ .tm-line__acts{ opacity:1; } }
.tm-line__acts button{ height:26px; padding:0 8px; border:0; border-radius:6px; background:transparent; color:var(--k-muted); font:inherit; font-size:12px; cursor:pointer; }
.tm-line__acts button:hover{ background:var(--k-surface-2); color:var(--k-ink); }
.tm-chan{ display:flex; align-items:center; gap:8px; min-height:40px; padding:0 10px; border-radius:10px; color:var(--k-ink); text-decoration:none; font-size:14px; }
.tm-chan:hover{ background:var(--k-surface-2); }
.tm-chan[aria-current="page"]{ background:var(--k-brand-soft-2); font-weight:600; }
.tm-chan__n{ margin-left:auto; font-size:12px; color:var(--k-muted); }
.tm-task{ display:flex; align-items:center; gap:8px; font-size:14px; }
.tm-task button.tm-check{ width:22px; height:22px; border-radius:6px; border:1px solid var(--k-line-3); background:var(--k-surface); color:var(--k-on-primary); cursor:pointer; display:inline-flex; align-items:center; justify-content:center; padding:0; font-size:13px; }
.tm-task button.tm-check[aria-pressed="true"]{ background:var(--k-primary); border-color:var(--k-primary); }
.tm-task--done .tm-task__t{ text-decoration:line-through; color:var(--k-muted); }
.tm-task__t{ flex:1; min-width:0; }
.tm-inline{ display:flex; gap:8px; flex-wrap:wrap; }
.tm-inline input, .tm-inline select{ height:40px; padding:0 10px; border:1px solid var(--k-line-2); border-radius:10px; font:inherit; font-size:14px; background:var(--k-surface); color:var(--k-ink); min-width:0; flex:1 1 140px; }
.tm-dialog{ width:min(640px, calc(100vw - 32px)); max-height:calc(100vh - 32px); border:0; border-radius:20px; padding:24px; background:var(--k-surface); color:var(--k-ink); box-shadow:var(--k-shadow-pop); }
.tm-dialog::backdrop{ background:var(--k-scrim); }
.tm-dialog__body{ display:flex; flex-direction:column; gap:16px; }
.tm-member{ display:flex; align-items:center; gap:10px; padding:10px 12px; border:1px solid var(--k-line); border-radius:12px; flex-wrap:wrap; }
.tm-member__body{ flex:1 1 160px; min-width:0; display:flex; flex-direction:column; }

/* my teams */
.tm-hist{ display:flex; align-items:center; gap:12px; padding:14px 18px; border-top:1px solid var(--k-line); flex-wrap:wrap; }
.tm-hist:first-child{ border-top:0; }
.tm-hist__body{ flex:1 1 220px; min-width:0; display:flex; flex-direction:column; }
.tm-avs{ display:flex; }
.tm-avs .tm-av{ margin-left:-6px; box-shadow:0 0 0 2px var(--k-surface); }
.tm-avs .tm-av:first-child{ margin-left:0; }
.tm-person{ display:flex; align-items:center; gap:10px; color:var(--k-ink); text-decoration:none; font-size:14px; }

/* home and profile promo */
/* Home: the promo sits on its own tinted band, set apart from the sections above and below. */
.tm-promo-band{ margin-top:48px; padding:32px 0 40px; background:var(--k-surface-2); border-top:1px solid var(--k-line); border-bottom:1px solid var(--k-line); }
.tm-promo-band + .d-band{ border-top:0; }
@media (max-width: 640px){ .tm-promo-band{ margin-top:32px; padding:24px 0 32px; } }
.tm-promo{ display:flex; flex-wrap:wrap; align-items:center; gap:24px 32px; padding:clamp(16px, 3vw, 28px); border-radius:20px; background:var(--k-brand-soft-2); border:1px solid var(--k-brand-soft); }
.tm-promo__text{ flex:999 1 320px; min-width:0; display:flex; flex-direction:column; gap:10px; }
.tm-promo__title{ margin:0; font-size:clamp(22px, 2.6vw, 28px); line-height:1.2; font-weight:700; letter-spacing:-.02em; }
.tm-promo__lead{ margin:0; font-size:15px; color:var(--k-ink-2); max-width:520px; }
.tm-promo__side{ flex:0 1 390px; min-width:0; display:flex; flex-direction:column; gap:10px; }
.tm-promo__actions{ display:flex; flex-wrap:wrap; gap:8px; }
.tm-promo__actions .k-btn{ flex:1 1 auto; }
.tm-promo__card{ padding:12px; display:flex; flex-direction:column; gap:8px; background:var(--k-surface); border:1px solid var(--k-line); border-radius:var(--k-r-card); box-shadow:var(--k-shadow-pop); color:var(--k-ink); text-decoration:none; }

@media (max-width: 860px){
  .tm-chat__side{ display:none; }
  .tm-chat__list{ max-width:none; height:auto; min-height:0; }
  .tm-chat{ flex-direction:column; }
  .tm-chat__main{ height:calc(100vh - 160px); }
  .tm-split__side{ max-width:none; }
}

/* /how-it-works/ (marketplace/how_it_works_page.html) */
.hw-band{ background:var(--k-bg); border-bottom:1px solid var(--k-line); }
.hw-hero{ display:flex; flex-direction:column; gap:16px; padding-top:48px; padding-bottom:48px; }
.hw-hero__title{ margin:0; font-size:clamp(30px, 4.5vw, 44px); line-height:1.15; font-weight:700; letter-spacing:-.02em; max-width:760px; }
.hw-hero__lead{ margin:0; color:var(--k-soft); font-size:16px; max-width:680px; }
.hw-body{ display:flex; flex-direction:column; gap:24px; padding-top:56px; padding-bottom:56px; }
.hw-hero.ct-hero{ display:flex; flex-direction:row; flex-wrap:wrap; align-items:center; gap:32px; }
.hw-hero .ct-hero__main{ flex:999 1 480px; min-width:0; display:flex; flex-direction:column; gap:16px; }
.hw-hero .ct-hero__aside{ flex:1 1 300px; margin:0; }
.hw-hero .ct-search{ max-width:560px; }

/* Team chat: linked Git repository. */
.tm-repo__link{ display:flex; align-items:center; gap:10px; padding:10px 12px; border:1px solid var(--k-line); border-radius:var(--k-r); color:var(--k-ink); text-decoration:none; min-width:0; }
.tm-repo__link:hover{ background:var(--k-surface-2); }
.tm-repo__text{ display:flex; flex-direction:column; min-width:0; }
.tm-repo__text > *{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* Public team (anyone joins under a role, up to 20 people). */
.tm-tag.tm-tag--public{ background:var(--k-brand-soft); color:var(--k-primary); }

/* Chat lines: replies, edits, deletes (both team chats). */
.tm-quote{ display:block; max-width:min(520px, 100%); margin:2px 0; padding:4px 10px; border-left:3px solid var(--k-primary); border-radius:6px; background:var(--k-surface-2); color:var(--k-ink-2); font-size:13px; text-decoration:none; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tm-quote:hover{ color:var(--k-ink); }
.tm-msg--me .tm-quote{ align-self:flex-end; }
.tm-line__text--deleted, .tm-bub--deleted{ font-style:italic; color:var(--k-muted); }
.tm-msg--me .tm-bub--deleted{ background:var(--k-surface-2); color:var(--k-muted); }
.tm-msg__acts{ padding:0 2px; }
.tm-msg:hover .tm-msg__acts, .tm-msg:focus-within .tm-msg__acts{ opacity:1; }
.tm-line-edit{ display:flex; flex-direction:column; gap:6px; width:min(520px, 100%); }
.tm-line-edit textarea{ width:100%; min-height:60px; padding:8px 10px; box-sizing:border-box; border:1px solid var(--k-line-strong, var(--k-line)); border-radius:10px; background:var(--k-surface); color:var(--k-ink); font:inherit; font-size:15px; resize:vertical; }
.tm-line-edit__row{ display:flex; gap:6px; justify-content:flex-end; }
.tm-replybar{ display:flex; align-items:center; gap:8px; width:100%; padding:6px 8px 6px 12px; box-sizing:border-box; border-left:3px solid var(--k-primary); border-radius:8px; background:var(--k-surface-2); font-size:13px; }
.tm-replybar__text{ flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:var(--k-ink-2); }
.tm-composer:has(.tm-replybar:not([hidden])){ flex-wrap:wrap; }
.tm-flash{ animation:tm-flash 1.2s ease; }
@keyframes tm-flash{ from{ background:var(--k-brand-soft); } to{ background:transparent; } }

/* Fix: [hidden] must win over display:flex, or the reply bar sits in the composer for good. */
.tm-replybar[hidden], .tm-chan-edit[hidden], .tm-chan[hidden], .tm-chan__tools[hidden], .tm-line-edit[hidden]{ display:none !important; }

/* Channel list: rename / delete in place (owner and helpers). */
.tm-chan-row{ position:relative; display:flex; align-items:center; }
.tm-chan-row > .tm-chan{ flex:1 1 auto; min-width:0; }
.tm-chan__name{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tm-chan__tools{ position:absolute; right:6px; top:50%; transform:translateY(-50%); display:flex; gap:2px; opacity:0; transition:opacity .15s; background:inherit; }
.tm-chan-row:hover .tm-chan__tools, .tm-chan-row:focus-within .tm-chan__tools{ opacity:1; }
.tm-chan-row:hover .tm-chan__n, .tm-chan-row:focus-within .tm-chan__n{ visibility:hidden; }
@media (hover:none){ .tm-chan__tools{ opacity:1; } .tm-chan-row .tm-chan__n{ visibility:hidden; } }
.tm-chan__tools form{ display:flex; }
.tm-chan__tool{ display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; padding:0; border:0; border-radius:8px; background:var(--k-surface); color:var(--k-muted); font:inherit; font-size:15px; cursor:pointer; }
.tm-chan__tool:hover{ background:var(--k-surface-2); color:var(--k-ink); }
.tm-chan__tool--danger:hover{ color:var(--k-error); }
.tm-chan-edit, .tm-chan-add{ display:flex; align-items:center; gap:4px; width:100%; padding:2px 4px; box-sizing:border-box; }
.tm-chan-edit input, .tm-chan-add input{ flex:1 1 auto; min-width:0; height:36px; padding:0 10px; border:1px solid var(--k-line-2); border-radius:10px; background:var(--k-surface); color:var(--k-ink); font:inherit; font-size:14px; }
.tm-chan-add{ padding:6px 4px 8px; }
.tm-chan__tool--add{ width:36px; height:36px; background:var(--k-surface-2); color:var(--k-ink); font-size:18px; }
.tm-chan__tool--add:hover{ background:var(--k-brand-soft); color:var(--k-primary); }

/* Channel order: drag and drop in the list, arrows in the settings dialog. */
.tm-chan-row[draggable="true"]{ cursor:grab; }
.tm-chan-row.is-dragging{ opacity:.45; }
.tm-chan-row.is-drop-before{ box-shadow:inset 0 2px 0 var(--k-primary); }
.tm-chan-row.is-drop-after{ box-shadow:inset 0 -2px 0 var(--k-primary); }
.tm-chan-hint{ margin:2px 10px 0; }
.tm-arrows{ display:flex; gap:2px; }
.tm-arrows .k-icon-btn:disabled{ opacity:.3; cursor:default; }
