/* The owner's Today, the task panel and the client's team thread (portal rethink
   stage 3b; today.js). Only drawn for the owner while CONFIG.TODAY_NEW is
   'owner'; every rule is scoped under .tt (or the room's own .cb) so nothing
   else changes. Red only for "waiting on you" and overdue. */
.tt {
  --tt-ink: #111; --tt-bg: #F4F4EF; --tt-card: #fff; --tt-line: #E3E3DC; --tt-line2: #EFEFE9;
  --tt-mute: #73736D; --tt-soft: #ECECE5; --tt-red: #D6362B; --tt-client: #C9C9C0; --tt-y: #F5C500; --tt-ypale: #FFF6CC;
  color: var(--tt-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}
.tt button { font: inherit; color: inherit; }
.tt h1, .tt h2, .tt h3, .tt p { margin: 0; }
.tt .tt-mute { color: var(--tt-mute); }
.tt .is-red, .tt em.is-red { color: var(--tt-red); font-style: normal; }
.tt .tt-empty { margin: 14px 0; font-size: 14px; color: var(--tt-mute); }
.tt .tt-status { margin: 10px 0 18px; font-size: 15px; color: var(--tt-mute); }
.tt .tt-card { display: block; box-sizing: border-box; width: 100%; background: var(--tt-card); border: 1px solid var(--tt-line); border-radius: 16px; text-align: left; }
.tt .tt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px; border: 1px solid var(--tt-line);
  border-radius: 10px; background: var(--tt-card); font-size: 14.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.tt .tt-btn.is-k { background: var(--tt-ink); border-color: var(--tt-ink); color: #fff; }
.tt .tt-btn.is-soft { background: var(--tt-soft); border-color: var(--tt-soft); }
.tt .tt-btn.is-big { height: 42px; padding: 0 22px; font-size: 15px; }
.tt .tt-btn[disabled] { opacity: .5; cursor: default; }
.tt .tt-quiet { display: inline-flex; align-items: center; gap: 4px; padding: 6px 0; border: 0; background: none; color: var(--tt-mute); font-size: 14px; cursor: pointer; }
.tt .tt-quiet:hover { color: var(--tt-ink); }
.tt .tt-link { padding: 0; border: 0; background: none; font-weight: 500; cursor: pointer; text-align: left; }
.tt .tt-age { color: var(--tt-mute); font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.tt .tt-age.is-red { color: var(--tt-red); font-weight: 600; }
.tt .tt-sh { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.tt .tt-sh h2 { font-size: 16px; font-weight: 600; }
.tt .tt-sh > span { font-size: 13.5px; color: var(--tt-mute); }

/* avatars: initials on a quiet tone (as the board's) */
.tt .tt-av { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%;
  color: #fff; font-size: 11.5px; font-weight: 700; background: #5E6A78; box-sizing: border-box; }
.tt .tt-av-1 { background: #7A6450; } .tt .tt-av-2 { background: #586E5A; } .tt .tt-av-3 { background: #7A5C6E; }
.tt .tt-av-4 { background: #4F6A86; } .tt .tt-av-5 { background: #6E6A5A; }
.tt .tt-av-c { background: #fff; color: var(--tt-mute); border: 1px solid #CFCFC7; }
.tt .tt-av-more { background: var(--tt-soft); color: var(--tt-ink); font-weight: 600; }
.tt .tt-faces { display: inline-flex; }
.tt .tt-faces .tt-av { margin-left: -6px; border: 2px solid #fff; width: 30px; height: 30px; }
.tt .tt-faces .tt-av:first-child { margin-left: 0; }

/* ---- desktop and iPad: Today -------------------------------------------------------- */
html.tp-desk2.tt-today-on #view-home > #d2-large-title.d2-large { display: none !important; }
html.tp-desk2.tt-today-on .d2-home { max-width: 1240px; }
.tt-desk { padding: 6px 0 32px; }
.tt-desk .tt-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 22px; align-items: start; }
.tt-desk .tt-main { min-width: 0; }
.tt-desk .tt-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; overflow: hidden; }
.tt .tt-big { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; color: var(--tt-ink); }
.tt .tt-sub { margin: 6px 0 0; font-size: 15.5px; color: var(--tt-mute); }
.tt-desk .tt-wait { margin-top: 20px; overflow: hidden; }
.tt .tt-wrow { display: flex; align-items: center; gap: 14px; padding: 13px 20px 13px 21px; border-top: 1px solid var(--tt-line2); border-left: 3px solid var(--tt-red); }
.tt .tt-wrow:first-child { border-top: 0; }
.tt .tt-wmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.tt .tt-wmain b { font-size: 15.5px; font-weight: 600; line-height: 1.35; }
.tt .tt-wmain span { font-size: 13.5px; color: var(--tt-mute); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt .tt-seeall { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 20px; border: 0; border-top: 1px solid var(--tt-line2);
  background: none; font-size: 15px; font-weight: 600; cursor: pointer; }
.tt-desk .tt-clients { margin-top: 20px; overflow: hidden; }
.tt-desk .tt-ch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 6px 24px; flex-wrap: wrap; }
.tt-desk .tt-ch h2 { font-size: 17px; font-weight: 600; }
.tt .tt-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--tt-soft); }
.tt .tt-seg-o { height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--tt-mute); font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.tt .tt-seg-o.is-on { background: var(--tt-card); color: var(--tt-ink); font-weight: 600; box-shadow: 0 0 0 .5px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.08); }
.tt-desk .tt-table { padding-bottom: 4px; }
.tt-desk .tt-tr { display: grid; grid-template-columns: minmax(120px, 1.15fr) minmax(80px, .7fr) minmax(0, 2.4fr) 76px; align-items: center; column-gap: 16px;
  width: 100%; min-height: 44px; padding: 0 20px 0 21px; border: 0; border-top: 1px solid var(--tt-line2); border-left: 3px solid var(--tt-client);
  background: none; text-align: left; font-size: 14.5px; cursor: pointer; box-sizing: border-box; }
.tt-desk .tt-tr:hover { background: #FAFAF7; }
.tt-desk .tt-tr > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt-desk .tt-tr.is-you { border-left-color: var(--tt-red); }
.tt-desk .tt-tr.is-team { border-left-color: var(--tt-ink); }
.tt-desk .tt-th { min-height: 38px; border-top: 0; border-left-color: transparent; cursor: default; font-size: 13px; font-weight: 500; color: var(--tt-mute); }
.tt-desk .tt-th:hover { background: none; }
.tt-desk .tt-th > span:last-child { text-align: right; }
.tt-desk .tt-tr > b { font-weight: 600; font-size: 15px; }
.tt-desk .tt-who { font-weight: 600; font-size: 14px; }
.tt-desk .tt-tr.is-you .tt-who { color: var(--tt-red); }
.tt-desk .tt-tr.is-client .tt-who { color: var(--tt-mute); font-weight: 500; }
.tt-desk .tt-table .tt-empty { padding: 4px 24px 12px; }
.tt .tt-more { margin-top: 16px; }

.tt-desk .tt-side .tt-card { padding: 18px 20px; }
.tt .tt-nums { display: flex; align-items: flex-end; gap: 18px; }
.tt .tt-num { display: flex; flex-direction: column; gap: 2px; }
.tt .tt-num b { font-size: 26px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tt .tt-num span { font-size: 13.5px; color: var(--tt-mute); white-space: nowrap; }
.tt .tt-num.is-red b { color: var(--tt-red); }
.tt .tt-nums .tt-faces { margin-left: auto; align-self: center; }
.tt .tt-wl { margin-top: 12px; }
.tt .tt-wl:first-of-type { margin-top: 0; }
.tt .tt-wl-t { display: flex; justify-content: space-between; font-size: 14.5px; margin-bottom: 7px; }
.tt .tt-wl-t b { font-weight: 600; font-variant-numeric: tabular-nums; }
.tt .tt-bar { height: 5px; border-radius: 3px; background: var(--tt-soft); overflow: hidden; }
.tt .tt-bar i { display: block; height: 100%; background: var(--tt-ink); border-radius: 3px; }
.tt .tt-call { display: grid; grid-template-columns: minmax(0, 1fr) 40px 72px; align-items: center; gap: 10px; padding: 5px 0; font-size: 14.5px; }
.tt .tt-call > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt .tt-call b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.tt .tt-call.is-more > span:first-child { color: var(--tt-mute); }
.tt .tt-thin { height: 4px; border-radius: 2px; background: var(--tt-soft); overflow: hidden; }
.tt .tt-thin i { display: block; height: 100%; background: var(--tt-ink); border-radius: 2px; }
.tt .tt-holly { display: flex; align-items: center; gap: 14px; cursor: pointer; border: 1px solid var(--tt-line); }
.tt .tt-orb { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--tt-y); color: var(--tt-ink); }
.tt .tt-pmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tt .tt-pmain b { font-size: 15.5px; font-weight: 600; }
.tt .tt-pmain > span { font-size: 13.5px; color: var(--tt-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt .tt-holly > svg, .tt .tt-pteam > svg { flex: none; color: var(--tt-mute); }
/* Rethink 17: the quote of the day, a slim band at the top of every Today (owner, admin and
   member; desktop, iPad and phone). One row: the round image, the quote (two lines at most),
   the name after it in grey (on a phone, on a second line). A hairline white card, as Today's. */
html .tt.tt-qband, .tt-qband { display: flex; align-items: center; gap: 12px; box-sizing: border-box; width: 100%; margin: 0 0 18px; padding: 10px 16px 10px 10px;
  background: var(--tt-card); border: 1px solid var(--tt-line); border-radius: 14px; text-align: left; }
.tt-qband .tt-qimg { flex: none; width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: var(--tt-soft); }
.tt-qband .tt-qbody { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; margin: 0; font-size: 15.5px; line-height: 1.4; }
.tt-qband .tt-qq { min-width: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.tt-qband .tt-qwho { flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: var(--tt-mute); }
.tt-qband.is-phone { margin: 0 0 16px; padding: 10px 14px 10px 10px; border-radius: 16px; }
.tt-qband.is-phone .tt-qbody { flex-direction: column; align-items: stretch; gap: 2px; font-size: 15px; line-height: 1.38; }
.tt-qband.is-phone .tt-qwho { max-width: none; font-size: 13.5px; }
.tt-classicbar { margin: 0 0 12px; }
.tt-classicbar .tt-quiet, .tt-classicbar button { display: inline-flex; align-items: center; gap: 4px; padding: 6px 0; border: 0; background: none; color: #73736D; font: inherit; font-size: 14px; cursor: pointer; }

/* iPad: the right column narrows; the table drops to three columns' room */
@media (max-width: 1200px) {
  .tt-desk .tt-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; }
  .tt-desk .tt-tr { grid-template-columns: minmax(110px, 1.1fr) minmax(76px, .7fr) minmax(0, 2.2fr) 70px; column-gap: 12px; }
  .tt-desk .tt-seg-o { padding: 0 10px; font-size: 13.5px; }
  .tt-desk .tt-nums .tt-faces { display: none; }
}

/* ---- phone: Today ---------------------------------------------------------------- */
.tt-phone { padding: 4px 16px 32px; }
.tt-phone .tt-phead { display: flex; align-items: baseline; gap: 10px; margin: 8px 0 14px; }
.tt-phone .tt-phead h1 { font-size: 34px; font-weight: 750; letter-spacing: -.02em; }
.tt-phone .tt-phead span { font-size: 18px; color: var(--tt-mute); }
.tt-phone .tt-big { font-size: 24px; margin-bottom: 14px; }
.tt-phone .tt-card { margin-top: 14px; border-radius: 18px; overflow: hidden; }
.tt-phone .tt-wait { margin-top: 0; }
.tt-phone .tt-wrow { padding: 14px 16px 14px 17px; }
.tt-phone .tt-wmain b { font-size: 16px; }
.tt-phone .tt-wmain span { font-size: 14.5px; }
.tt-phone .tt-btn { height: 38px; padding: 0 16px; font-size: 15.5px; border-radius: 11px; }
.tt-phone .tt-pteam { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; }
.tt-phone .tt-pteam em { font-style: normal; }
.tt-phone .tt-pteam .tt-faces .tt-av { width: 28px; height: 28px; }
.tt-phone .tt-ph { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 16px 10px; border-bottom: 1px solid var(--tt-line2); }
.tt-phone .tt-ph h2 { font-size: 18px; font-weight: 600; }
.tt-phone .tt-ph span { font-size: 14.5px; color: var(--tt-mute); }
.tt-phone .tt-prow { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 62px; padding: 10px 16px 10px 15px; border: 0; border-top: 1px solid var(--tt-line2);
  border-left: 3px solid var(--tt-client); background: none; text-align: left; cursor: pointer; box-sizing: border-box; }
.tt-phone .tt-ph + .tt-prow { border-top: 0; }
.tt-phone .tt-prow.is-you { border-left-color: var(--tt-red); }
.tt-phone .tt-prow.is-team { border-left-color: var(--tt-ink); }
.tt-phone .tt-pwho { flex: none; font-size: 14.5px; font-weight: 600; }
.tt-phone .tt-prow.is-you .tt-pwho { color: var(--tt-red); }
.tt-phone .tt-prow.is-client .tt-pwho { color: var(--tt-mute); font-weight: 500; }
.tt-phone .tt-prow .tt-age { min-width: 52px; font-size: 14.5px; }

/* Rethink 17: the pages Today opens on the phone (Waiting on you, Clients, Team now, More from
   Home): Today's back control and title, the same rows full length. */
.tt-phone .tt-pnav { display: flex; align-items: center; margin: 0 0 4px; }
.tt-phone .tt-pback { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; margin-left: -6px; padding: 0 4px; border: 0; background: none; font-size: 17px; font-weight: 600; cursor: pointer; }
.tt-phone .tt-ptitle { font-size: 34px; font-weight: 750; letter-spacing: -.02em; line-height: 1.15; }
.tt-phone .tt-psub { margin: 4px 0 6px; font-size: 15.5px; color: var(--tt-mute); }
.tt-phone.tt-pushed .tt-wait { margin-top: 14px; }
.tt-phone .tt-pgroup .tt-ph h2 { font-size: 16px; }
.tt-phone .tt-pnote { margin: 14px 2px 0; font-size: 14px; color: var(--tt-mute); }
.tt-phone .tt-tprow { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 16px; border-top: 1px solid var(--tt-line2); box-sizing: border-box; }
.tt-phone .tt-ph + .tt-tprow { border-top: 0; }
.tt-phone .tt-tprow .tt-av { width: 34px; height: 34px; font-size: 13px; }
.tt-phone .tt-tdot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #C9C9C0; }
.tt-phone .tt-tprow.is-working .tt-tdot { background: #2E9D5B; }
.tt-phone .tt-tprow.is-on_break .tt-tdot { background: #D99A1E; }
.tt-phone .tt-tprow.is-on_leave .tt-tdot { background: #5B7A9C; }
.tt-phone .tt-plink { min-height: 36px; padding: 0 2px; border: 0; background: none; font-size: 15px; font-weight: 600; cursor: pointer; }
.tt-phone .tt-mcard .tt-ph { align-items: center; }
.tt-phone .tt-mrow { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 10px 16px; border: 0; border-top: 1px solid var(--tt-line2);
  background: none; text-align: left; cursor: pointer; box-sizing: border-box; }
.tt-phone .tt-ph + .tt-mrow, .tt-phone .tt-mcard > .tt-mrow:first-child { border-top: 0; }
.tt-phone .tt-mrow.is-flat { cursor: default; }
.tt-phone .tt-mrow > svg { flex: none; color: var(--tt-mute); }
.tt-phone .tt-mrow .tt-pmain > span { white-space: normal; }
.tt-phone .tt-udot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--tt-red); }
.tt-phone .tt-mempty { margin: 0; padding: 14px 16px; font-size: 14.5px; color: var(--tt-mute); }
.tt-phone .pp-coming { padding: 14px 16px; }
.tt-phone .pp-coming .tt-ch h2 { font-size: 16px; font-weight: 600; }
/* the classic Home's business snapshot and latest screens, in Today's card look */
.tt-phone .tt-mclassic .ih-card { margin: 14px 0 0; padding: 14px 16px; background: var(--tt-card); border: 1px solid var(--tt-line); border-radius: 18px; box-shadow: none; }
.tt-phone .tt-mclassic .ih-card-head { display: flex; align-items: center; justify-content: space-between; width: 100%; margin: 0 0 10px; padding: 0; border: 0; background: none; text-align: left; }
.tt-phone .tt-mclassic .ih-card-head h3 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.tt-phone .tt-mclassic .ih-kicker { font-size: 12.5px; letter-spacing: 0; text-transform: none; color: var(--tt-mute); }

/* ---- the task panel (desktop and iPad: right-hand; phone: a pushed screen) ------------- */
.tt-scrim { position: fixed; inset: 0; z-index: 1190; background: rgba(17, 17, 17, .28); }
.tt-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 1200; width: min(520px, 100vw); box-sizing: border-box; overflow-y: auto;
  background: var(--tt-card); border-left: 1px solid var(--tt-line); box-shadow: -8px 0 24px rgba(0,0,0,.06); -webkit-overflow-scrolling: touch; }
.tt-panel .tt-pin { display: flex; flex-direction: column; min-height: 100%; padding: 20px 22px 0; box-sizing: border-box; }
.tt-panel .tt-thead { display: flex; align-items: flex-start; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--tt-line2); }
.tt-panel .tt-thead-m { flex: 1; min-width: 0; }
.tt-panel .tt-ttl { font-size: 22px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.tt-panel .tt-ttl.is-done { text-decoration: line-through; color: var(--tt-mute); }
.tt-panel .tt-tsub { margin-top: 4px; font-size: 14px; color: var(--tt-mute); }
.tt-panel .tt-x { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--tt-soft); cursor: pointer; }
.tt .tt-check { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; border: 1.5px solid #BDBDB5;
  border-radius: 50%; background: #fff; color: #fff; cursor: pointer; }
.tt .tt-check:hover { border-color: var(--tt-ink); }
.tt .tt-check.is-on { background: var(--tt-ink); border-color: var(--tt-ink); }
.tt .tt-check.is-big { width: 26px; height: 26px; margin-top: 2px; }
.tt-panel .tt-rows { margin-bottom: 4px; }
.tt-panel .tt-row { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; border-bottom: 1px solid var(--tt-line2); font-size: 15px; }
.tt-panel .tt-k { flex: none; width: 90px; color: var(--tt-mute); }
.tt-panel .tt-v { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.tt-panel .tt-v b { font-weight: 600; }
.tt-panel .tt-row > .tt-mute { flex: none; font-size: 14px; }
.tt-panel .tt-desc { margin: 16px 0 4px; font-size: 15px; line-height: 1.55; white-space: pre-wrap; }
.tt-panel .tt-steps, .tt-panel .tt-act { margin-top: 20px; }
.tt-panel .tt-step { display: flex; align-items: center; gap: 12px; padding: 7px 0; }
.tt-panel .tt-steptitle { flex: 1; padding: 0; border: 0; background: none; text-align: left; font-size: 15px; cursor: pointer; }
.tt-panel .tt-step.is-done .tt-steptitle { text-decoration: line-through; color: var(--tt-mute); }
.tt-panel .tt-aline { display: flex; align-items: baseline; gap: 12px; padding: 8px 0; font-size: 15px; }
.tt-panel .tt-aline > i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--tt-ink); transform: translateY(-2px); }
.tt-panel .tt-aline.is-wait > i { background: #fff; border: 1.5px solid var(--tt-client); width: 5px; height: 5px; }
.tt-panel .tt-aline.is-wait > span { color: var(--tt-mute); }
.tt-panel .tt-aline > span { flex: 1; min-width: 0; }
.tt-panel .tt-aline > em { flex: none; font-style: normal; font-size: 13.5px; color: var(--tt-mute); }
.tt-panel .tt-acomment { display: flex; gap: 12px; padding: 8px 0; }
.tt-panel .tt-acomment > div { flex: 1; min-width: 0; }
.tt-panel .tt-ahead { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.tt-panel .tt-ahead span { font-size: 13.5px; color: var(--tt-mute); }
.tt-panel .tt-acomment p { display: inline-block; margin-top: 6px; padding: 9px 14px; border-radius: 12px; background: var(--tt-bg); font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; }
.tt-panel .tt-cbox { display: flex; align-items: center; gap: 8px; margin: auto 0 0; padding: 18px 0 12px; position: sticky; bottom: 62px; background: var(--tt-card); }
.tt-panel .tt-cbox input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 1px solid var(--tt-line); border-radius: 12px; font: inherit; font-size: 15px; background: #fff; box-sizing: border-box; }
.tt-panel .tt-cbox input:focus { outline: 2px solid var(--tt-ink); outline-offset: -1px; }
.tt-panel .tt-send { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--tt-y); cursor: pointer; }
.tt-panel .tt-send[disabled] { background: var(--tt-soft); color: var(--tt-mute); cursor: default; }
.tt-panel .tt-foot { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; margin: 0 -22px; padding: 12px 22px 16px;
  border-top: 1px solid var(--tt-line2); background: var(--tt-card); }
.tt .tt-donetag { font-size: 14px; font-weight: 600; color: var(--tt-mute); }
.tt-panel .tt-status, .tt-panel .tt-empty { margin: 20px 0; }

/* hand-over: a popover under "Hand over" */
.tt .tt-ho { position: absolute; top: 46px; right: 0; z-index: 3; width: 360px; max-width: calc(100vw - 32px); box-sizing: border-box; padding: 16px 0 16px; border: 1px solid var(--tt-line);
  border-radius: 16px; background: var(--tt-card); box-shadow: 0 12px 32px rgba(0,0,0,.14); font-size: 15px; }
.tt .tt-ho h3 { padding: 0 20px 8px; font-size: 16px; font-weight: 600; }
.tt .tt-hlist { max-height: 300px; overflow-y: auto; }
.tt .tt-hopt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 20px; border: 0; border-left: 3px solid transparent; background: none; text-align: left; cursor: pointer; box-sizing: border-box; }
.tt .tt-hopt:hover { background: #FAFAF7; }
.tt .tt-hopt.is-on { background: var(--tt-ypale); border-left-color: var(--tt-y); }
.tt .tt-hopt .tt-av { width: 32px; height: 32px; font-size: 13px; }
.tt .tt-hopt .tt-pmain > span { font-size: 13.5px; }
.tt .tt-hopt .tt-pmain em { font-style: normal; }
.tt .tt-hcheck { flex: none; display: inline-flex; color: var(--tt-ink); }
.tt .tt-hcheck svg { stroke-width: 2.4; width: 18px; height: 18px; }
.tt .tt-hl { display: block; margin: 12px 20px 6px; font-size: 14px; font-weight: 600; }
.tt .tt-hl em { color: var(--tt-red); font-style: normal; }
.tt .tt-ho textarea { display: block; width: calc(100% - 40px); margin: 0 20px; box-sizing: border-box; min-height: 64px; padding: 10px 12px; border: 1.5px solid var(--tt-ink);
  border-radius: 10px; font: inherit; font-size: 15px; resize: vertical; }
.tt .tt-herr { margin: 8px 20px 0; font-size: 13px; color: var(--tt-red); }
.tt .tt-hfoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 20px 0; }
.tt .tt-hfoot > span { font-size: 13px; color: var(--tt-mute); line-height: 1.35; }

/* phone: the task as a pushed screen */
.tt-panel.is-phone { width: 100vw; border-left: 0; box-shadow: none; background: var(--tt-bg); z-index: 1200; }
.tt-panel.is-phone .tt-pin { padding: calc(env(safe-area-inset-top, 0px) + 8px) 16px 24px; }
.tt-panel .tt-pnav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.tt .tt-pback { display: inline-flex; align-items: center; gap: 2px; margin-left: -6px; padding: 8px 4px; border: 0; background: none; font-size: 17px; font-weight: 600; cursor: pointer; }
.tt-panel.is-phone .tt-ttl { font-size: 28px; letter-spacing: -.02em; }
.tt-panel.is-phone .tt-tsub { margin-bottom: 14px; font-size: 15px; }
.tt-panel .tt-pcard { margin-top: 12px; padding: 4px 18px; background: var(--tt-card); border: 1px solid var(--tt-line); border-radius: 18px; }
.tt-panel .tt-pcard .tt-row:last-child { border-bottom: 0; }
.tt-panel.is-phone .tt-k { width: 80px; }
.tt-panel .tt-pcard.tt-steps, .tt-panel .tt-pcard.tt-act { padding: 16px 18px 10px; }
.tt-panel.is-phone .tt-ho { position: static; width: auto; margin-top: 12px; box-shadow: none; }
.tt-panel.is-phone .tt-desc { margin: 14px 4px 0; }
.tt-panel.is-phone .tt-cbox { position: static; padding: 16px 0 6px; background: none; }
.tt-panel.is-phone .tt-cbox input { height: 52px; border-radius: 26px; padding: 0 18px; font-size: 16px; }
.tt-panel.is-phone .tt-send { width: 44px; height: 44px; }
.tt-panel .tt-pedit { margin-top: 8px; }

/* ---- the team thread in the client room (inside the board's .cb) ---------------------- */
.cb .tt-nothread .tt-threadacts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.cb .tt-nothread .tt-herr { font-size: 13px; color: #D6362B; margin: 8px 0 0; }
.cb .tt-picker { display: flex; flex-direction: column; max-width: 420px; margin: 14px auto 0; text-align: left; border: 1px solid #E3E3DC; border-radius: 12px; overflow: hidden; }
.cb .tt-pick { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border: 0; border-top: 1px solid #EFEFE9; background: #fff; text-align: left; cursor: pointer; }
.cb .tt-pick:first-child { border-top: 0; }
.cb .tt-pick:hover { background: #FAFAF7; }
.cb .tt-pick b { font-size: 14.5px; font-weight: 600; }
.cb .tt-pick span { font-size: 12.5px; color: #73736D; }
.cb-desk .cb-thread .tt-threadhost { display: flex; flex-direction: column; height: calc(100vh - 262px); min-height: 420px; margin: 0 -20px -18px; overflow: hidden; border-radius: 0 0 14px 14px; }
.cb .tt-threadbox { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.cb .tt-threadbox > .tp-page { position: relative; inset: auto; flex: 1; min-height: 0; height: auto; width: auto; display: flex; flex-direction: column; background: transparent; }
.cb .tt-threadbox > .tp-page > .tp-page-header { display: none; }
.cb .tt-threadwait { padding: 24px; text-align: center; }
.cb .tt-pthread { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 8px; }

/* New task (owner): Client straight under the title */
.tt-clientfield select { width: 100%; }
.tt-phone .tt-wmain span, .tt-phone .tt-pteam .tt-pmain > span { white-space: normal; }
.tt .tt-ho textarea:focus { outline: none; box-shadow: 0 0 0 3px rgba(17,17,17,.08); }
.tt-panel .tt-v > .tt-mute, .tt-panel .tt-v b { white-space: nowrap; }

/* Rethink 15a, iPad pass (t-owner-today): 44pt controls; portrait stacks the side cards
   under the work in two columns, so nothing is squeezed or clipped. */
html.tp-ipad .tt-desk .tt-seg-o { height: 44px; }
html.tp-ipad .tt-desk .tt-btn { min-height: 44px; }
html.tp-ipad .tt-desk .tt-quiet, html.tp-ipad .tt-desk .tt-seeall, html.tp-ipad .tt-classicbar button { min-height: 44px; }
html.tp-ipad .tt-desk .tt-tr { min-height: 48px; }
@media (max-width: 900px) {
  html.tp-ipad .tt-desk .tt-grid { grid-template-columns: minmax(0, 1fr); }
  html.tp-ipad .tt-desk .tt-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
  html.tp-ipad .tt-desk .tt-ch { flex-wrap: wrap; gap: 10px; }
}
