/* Clients board, list and client room (portal rethink stage 3a; clientsboard.js).
   Only drawn for the owner while CONFIG.CLIENTS_BOARD is 'owner'; every rule is
   scoped under .cb so nothing else changes. Red only for "with you" and stale. */
.cb {
  --cb-ink: #111; --cb-bg: #F4F4EF; --cb-card: #fff; --cb-line: #E3E3DC; --cb-line2: #EFEFE9;
  --cb-mute: #73736D; --cb-soft: #ECECE5; --cb-col: #EBEBE4; --cb-red: #D6362B; --cb-client: #C9C9C0;
  color: var(--cb-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}
.cb button { font: inherit; color: inherit; }
.cb .cb-mute { color: var(--cb-mute); }
.cb .cb-small { font-size: 12.5px; line-height: 1.45; }
.cb .cb-grow { flex: 1; }
.cb .cb-empty { margin: 24px 0; color: var(--cb-mute); font-size: 14px; }
.cb .cb-empty p { margin: 0 0 10px; }
.cb .cb-warn { margin: 0 0 12px; font-size: 13px; color: var(--cb-mute); }

/* buttons and segmented controls */
.cb .cb-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: 1px solid var(--cb-line);
  border-radius: 9px; background: var(--cb-card); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.cb .cb-btn:hover { background: #FAFAF7; }
.cb .cb-btn.is-k { background: var(--cb-ink); border-color: var(--cb-ink); color: #fff; }
.cb .cb-btn[disabled] { opacity: .5; cursor: default; }
.cb .cb-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--cb-col); }
.cb .cb-seg-o { height: 30px; padding: 0 14px; border: 0; border-radius: 8px; background: none; color: var(--cb-mute); font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.cb .cb-seg-o.is-on { background: var(--cb-card); color: var(--cb-ink); font-weight: 600; box-shadow: 0 0 0 .5px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.08); }
.cb .cb-quiet-btn { padding: 0; border: 0; background: none; color: var(--cb-mute); font-size: 12.5px; cursor: pointer; text-decoration: underline; text-decoration-color: #CFCFC7; text-underline-offset: 3px; }
.cb .cb-quiet-btn:hover { color: var(--cb-ink); }
.cb .cb-quiet-btn[disabled] { opacity: .5; }

/* ages: grey; stale (the holder has had it more than 7 days) red */
.cb .cb-age { color: var(--cb-mute); font-size: 13.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cb .cb-age.is-stale { color: var(--cb-red); font-weight: 600; }

/* avatars: initials on a quiet tone */
.cb .cb-av { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%;
  color: #fff; font-size: 11px; font-weight: 700; background: #5E6A78; }
.cb .cb-av-1 { background: #7A6450; } .cb .cb-av-2 { background: #586E5A; } .cb .cb-av-3 { background: #7A5C6E; }
.cb .cb-av-4 { background: #4F6A86; } .cb .cb-av-5 { background: #6E6A5A; }

/* ---- desktop and iPad ------------------------------------------------------------- */
.cb-desk { padding: 4px 0 24px; }
.cb-desk .cb-top { display: flex; justify-content: flex-end; margin: 0 0 16px; }
.cb-desk .cb-ctl { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.cb-desk.cb-detailsbar { padding: 0 0 4px; }

.cb-desk .cb-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.cb-desk .cb-col { background: var(--cb-col); border-radius: 16px; padding: 14px 12px 16px; min-height: calc(100vh - 290px); }
.cb-desk .cb-col > header { display: flex; align-items: baseline; justify-content: space-between; padding: 2px 6px 12px; }
.cb-desk .cb-col > header b { font-size: 15px; font-weight: 600; }
.cb-desk .cb-col > header span { font-size: 12.5px; color: var(--cb-mute); }
.cb-desk .cb-col.is-you > header b { color: var(--cb-red); }
.cb-desk .cb-col.is-client > header b { color: var(--cb-mute); }
.cb .cb-col-empty { margin: 6px 6px; color: var(--cb-mute); font-size: 13.5px; }
.cb-desk .cb-cards { display: flex; flex-direction: column; gap: 12px; }
.cb-desk .cb-card { display: flex; flex-direction: column; align-items: stretch; gap: 4px; width: 100%; padding: 14px 16px 13px; text-align: left;
  background: var(--cb-card); border: 1px solid var(--cb-line); border-left: 3px solid var(--cb-client); border-radius: 12px; cursor: pointer; }
.cb-desk .cb-card:hover { border-color: #D3D3CB; }
.cb-desk .cb-card.is-you { border-left-color: var(--cb-red); }
.cb-desk .cb-card.is-team { border-left-color: var(--cb-ink); }
.cb .cb-card-name { font-size: 15.5px; font-weight: 600; }
.cb .cb-card-next { font-size: 14.5px; line-height: 1.4; }
.cb .cb-card-detail { margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--cb-mute); }
.cb .cb-card-others { font-size: 12.5px; color: var(--cb-mute); }
.cb .cb-card-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.cb .cb-card-who { flex: 1; font-size: 14px; }

.cb-desk .cb-quiet { display: flex; align-items: center; gap: 18px; margin-top: 18px; padding: 14px 20px; background: var(--cb-card); border: 1px solid var(--cb-line); border-radius: 12px; }
.cb-desk .cb-quiet > b { flex: none; padding-right: 18px; border-right: 1px solid var(--cb-line); font-size: 15px; font-weight: 600; }
.cb-desk .cb-quiet-list { flex: 1; min-width: 0; font-size: 14.5px; line-height: 1.6; }
.cb .cb-quiet-c { padding: 0; border: 0; background: none; font-weight: 600; cursor: pointer; }
.cb .cb-dot { color: var(--cb-mute); }
.cb-desk .cb-quiet > em { flex: none; font-style: normal; font-size: 13.5px; color: var(--cb-mute); }

/* list */
.cb-desk .cb-table { background: var(--cb-card); border: 1px solid var(--cb-line); border-radius: 14px; overflow: hidden; }
.cb-desk .cb-tr { display: grid; grid-template-columns: 1.3fr .8fr 2.4fr 52px 52px 52px 1.3fr 80px; align-items: center; column-gap: 14px;
  width: 100%; min-height: 56px; padding: 0 20px 0 18px; border: 0; border-top: 1px solid var(--cb-line2); border-left: 3px solid var(--cb-client);
  background: none; text-align: left; font-size: 14px; cursor: pointer; }
.cb-desk .cb-tr:hover { background: #FAFAF7; }
.cb-desk .cb-tr.is-you { border-left-color: var(--cb-red); }
.cb-desk .cb-tr.is-team { border-left-color: var(--cb-ink); }
.cb-desk .cb-tr.is-quiet { border-left-color: transparent; }
.cb-desk .cb-th { min-height: 44px; border-top: 0; border-left-color: transparent; cursor: default; font-size: 12.5px; font-weight: 600; color: var(--cb-mute); }
.cb-desk .cb-th:hover { background: none; }
.cb-desk .cb-th .cb-c3, .cb-desk .cb-th .cb-c4, .cb-desk .cb-th .cb-c5, .cb-desk .cb-th .cb-c7 { text-align: right; }
.cb-desk .cb-tr > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-desk .cb-tr .cb-c0 { font-weight: 600; }
.cb-desk .cb-tr .cb-who { font-weight: 600; font-size: 13.5px; }
.cb-desk .cb-tr.is-you .cb-who { color: var(--cb-red); }
.cb-desk .cb-tr.is-client .cb-who, .cb-desk .cb-tr.is-quiet .cb-who { color: var(--cb-mute); }
.cb-desk .cb-n { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.cb .cb-zero { color: #B9B9B1; font-weight: 400; }
.cb-desk .cb-c7 { text-align: right; }
.cb .cb-foot { margin: 12px 4px 0; font-size: 13px; color: var(--cb-mute); }

/* room */
.cb-desk .cb-crumbs { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 15px; }
.cb .cb-crumb { padding: 0; border: 0; background: none; color: var(--cb-mute); cursor: pointer; font-size: 15px; }
.cb-desk .cb-crumbs svg { color: var(--cb-mute); }
.cb-desk .cb-crumbs > b { font-size: 19px; font-weight: 650; }
.cb .cb-status { font-size: 14px; font-weight: 600; color: var(--cb-mute); }
.cb .cb-status.is-you, .cb .cb-status.is-stale { color: var(--cb-red); }
.cb-desk .cb-room { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, .75fr); gap: 18px; align-items: start; }
.cb-desk .cb-pane { background: var(--cb-card); border: 1px solid var(--cb-line); border-radius: 14px; padding: 18px 20px; min-height: calc(100vh - 210px); }
.cb .cb-pane-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cb .cb-pane-h h2 { margin: 0; font-size: 17px; font-weight: 600; }
.cb .cb-group { margin-top: 10px; }
.cb .cb-group > header { display: flex; justify-content: space-between; padding: 6px 0 6px; font-size: 14px; }
.cb .cb-group > header b { font-weight: 600; }
.cb .cb-group > header span { color: var(--cb-mute); }
.cb .cb-group.is-you > header b { color: var(--cb-red); }
.cb .cb-group.is-client > header b { color: var(--cb-mute); }
.cb .cb-group-rows { border-left: 3px solid var(--cb-client); padding-left: 2px; margin-left: -20px; padding-left: 17px; }
.cb .cb-group.is-you .cb-group-rows { border-left-color: var(--cb-red); }
.cb .cb-group.is-team .cb-group-rows { border-left-color: var(--cb-ink); }
.cb .cb-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; }
.cb .cb-check { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-top: 1px; padding: 0;
  border: 1.5px solid #BDBDB5; border-radius: 50%; background: #fff; cursor: pointer; color: #fff; }
.cb .cb-check:hover { border-color: var(--cb-ink); }
.cb .cb-check.is-on { background: var(--cb-ink); border-color: var(--cb-ink); }
.cb .cb-check.is-req { border-style: dashed; cursor: default; }
.cb .cb-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cb .cb-item-title { padding: 0; border: 0; background: none; text-align: left; font-size: 14.5px; font-weight: 600; line-height: 1.35; cursor: pointer; }
.cb .cb-item.is-done .cb-item-title { text-decoration: line-through; color: var(--cb-mute); font-weight: 500; }
.cb .cb-item-meta { display: flex; flex-wrap: wrap; column-gap: 14px; font-size: 13px; color: var(--cb-mute); line-height: 1.4; }
.cb .cb-item-acts { display: inline-flex; gap: 14px; }
/* Desktop: the quiet actions show on the row you point at or tab into. */
@media (hover: hover) {
  .cb-desk .cb-item-acts { opacity: 0; transition: opacity .12s; }
  .cb-desk .cb-item:hover .cb-item-acts, .cb-desk .cb-item:focus-within .cb-item-acts { opacity: 1; }
}
.cb .cb-item-side { flex: none; color: var(--cb-mute); padding-top: 1px; }
.cb .cb-prompt { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; padding: 12px; border-radius: 10px; background: var(--cb-bg); }
.cb .cb-prompt-l { font-size: 13px; font-weight: 600; }
.cb .cb-prompt input { width: 100%; box-sizing: border-box; height: 38px; padding: 0 10px; border: 1px solid #CFCFC7; border-radius: 8px; background: #fff; font: inherit; font-size: 14px; }
.cb .cb-prompt input:focus { outline: 2px solid var(--cb-ink); outline-offset: -1px; }
.cb .cb-prompt-acts { display: flex; gap: 8px; }
.cb .cb-prompt-err { font-size: 12.5px; color: var(--cb-red); }
.cb .cb-prompt-hint { font-size: 12px; color: var(--cb-mute); line-height: 1.4; }
.cb .cb-thread-empty { padding: 48px 12px; text-align: center; }
.cb .cb-thread-empty > b { display: block; font-size: 15px; margin-bottom: 6px; }
.cb .cb-thread-empty > p { margin: 0 auto 14px; max-width: 340px; font-size: 13.5px; line-height: 1.5; color: var(--cb-mute); }
.cb .cb-thread-empty > .cb-small { margin-top: 16px; }
.cb-desk .cb-side { display: flex; flex-direction: column; gap: 18px; }
.cb .cb-panel { background: var(--cb-card); border: 1px solid var(--cb-line); border-radius: 14px; padding: 16px 20px; }
.cb .cb-panel h3 { margin: 0 0 8px; font-size: 15.5px; font-weight: 600; }
.cb .cb-fact { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14px; }
.cb .cb-fact span { color: var(--cb-mute); }
.cb .cb-fact b { font-variant-numeric: tabular-nums; }
.cb .cb-person { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.cb .cb-person .cb-av { width: 32px; height: 32px; font-size: 13px; }
.cb .cb-person > span { display: flex; flex-direction: column; font-size: 14px; }
.cb .cb-person > span span { font-size: 12.5px; color: var(--cb-mute); }

/* iPad: the room stacks the side panel under the thread when narrow */
@media (max-width: 1100px) {
  .cb-desk .cb-room { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cb-desk .cb-side { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .cb-desk .cb-tr { grid-template-columns: 1.3fr .8fr 2fr 44px 44px 44px 1.1fr 64px; column-gap: 10px; }
}

/* ---- phone (owner) ------------------------------------------------------------------- */
.cb-phone { padding: 4px 16px 32px; }
.cb-phone .cb-ph-head { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 14px; }
.cb-phone .cb-ph-head h1, .cb-phone .cb-ph-title { margin: 0; font-size: 34px; font-weight: 750; letter-spacing: -.02em; }
.cb-phone .cb-seg { display: flex; width: 100%; box-sizing: border-box; }
.cb-phone .cb-seg-o { flex: 1; height: 34px; padding: 0 6px; font-size: 14px; }
.cb-phone .cb-ph-h { margin: 22px 4px 8px; font-size: 17px; font-weight: 600; }
.cb-phone .cb-ph-h.is-you { color: var(--cb-red); }
.cb-phone .cb-ph-h.is-client { color: var(--cb-mute); }
.cb-phone .cb-ph-card { background: var(--cb-card); border: 1px solid var(--cb-line); border-radius: 16px; overflow: hidden; }
.cb-phone .cb-ph-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 12px 16px 12px 15px; border: 0;
  border-top: 1px solid var(--cb-line2); border-left: 3px solid var(--cb-client); background: none; text-align: left; cursor: pointer; }
.cb-phone .cb-ph-row:first-child { border-top: 0; }
.cb-phone .cb-ph-row.is-you { border-left-color: var(--cb-red); }
.cb-phone .cb-ph-row.is-team { border-left-color: var(--cb-ink); }
.cb-phone .cb-ph-row.is-quiet { border-left-color: transparent; }
.cb-phone .cb-ph-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cb-phone .cb-ph-main b { font-size: 16px; font-weight: 600; }
.cb-phone .cb-ph-main > span { font-size: 14.5px; color: var(--cb-mute); line-height: 1.35; }
.cb-phone .cb-ph-main > .cb-ph-others { font-size: 12.5px; }
.cb-phone .cb-age { font-size: 15px; }
.cb-phone .cb-ph-link { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 22px; padding: 14px 16px; border: 1px solid var(--cb-line);
  border-radius: 14px; background: var(--cb-card); font-size: 15px; cursor: pointer; }
.cb-phone .cb-ph-nav { display: flex; align-items: center; justify-content: space-between; margin: 0 0 6px; }
.cb .cb-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; }
.cb-phone .cb-ph-text { padding: 8px 0; border: 0; background: none; font-size: 16px; font-weight: 500; cursor: pointer; }
.cb-phone .cb-status { margin: 4px 0 14px; font-size: 16px; }
.cb-phone .cb-ph-groups { display: flex; flex-direction: column; gap: 12px; }
.cb-phone .cb-group { margin: 0; padding: 12px 18px 6px; background: var(--cb-card); border: 1px solid var(--cb-line); border-radius: 16px; overflow: hidden; }
.cb-phone .cb-group > header { font-size: 16px; }
.cb-phone .cb-group-rows { margin-left: -18px; padding-left: 15px; }
.cb-phone .cb-item-title { font-size: 15.5px; }
.cb-phone .cb-item-meta { font-size: 14px; }
.cb-phone .cb-check { width: 24px; height: 24px; }
.cb-phone .cb-quiet-btn { font-size: 14px; padding: 6px 0; }
.cb-phone .cb-ph-add { margin-top: 12px; height: 44px; width: 100%; justify-content: center; border-radius: 14px; font-size: 15px; }
.cb-phone .cb-ph-thread { margin-top: 12px; padding: 14px 18px; background: var(--cb-card); border: 1px solid var(--cb-line); border-radius: 16px; }
.cb-phone .cb-ph-thread h2 { margin: 0; font-size: 16px; font-weight: 600; }
.cb-phone .cb-thread-empty { padding: 18px 0 6px; }
.cb-phone .cb-ph-side { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.cb-phone .cb-panel { border-radius: 16px; }
.cb-phone .cb-prompt input { height: 44px; font-size: 16px; }
.cb-phone .cb-prompt .cb-btn { height: 40px; }
.cb-backbar { padding: 0 16px; }

/* The owner's iPhone tab bar: Clients in the second slot. */
html.tp-ios-app .mobile-bottom-nav a.is-clients-slot .mobile-nav-icon {
  --tp-ico: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23000" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round"%3E%3Crect x="4" y="3.5" width="12" height="17" rx="1.5"/%3E%3Cpath d="M16 9h4v11.5H4"/%3E%3Cpath d="M8 7h2M8 11h2M8 15h2"/%3E%3C/svg%3E');
}

/* Rethink 15a: the admin's board (d-admin-clients). Hers first, in red; the owner's in
   plain black as "With <owner>"; then the team's and the clients'. */
.cb-desk .cb-mine { display: flex; align-items: stretch; gap: 16px; margin: 0 0 18px; padding: 12px 14px 12px 18px; background: var(--cb-card);
  border: 1px solid var(--cb-line); border-left: 3px solid var(--cb-red); border-radius: 12px; }
.cb-desk .cb-mine-h { flex: none; align-self: center; padding-right: 16px; border-right: 1px solid var(--cb-line); color: var(--cb-red); font-size: 15px; font-weight: 600; }
.cb-desk .cb-mine-cards { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.cb-desk .cb-mine .cb-card { border-left-width: 1px; }
.cb-desk .cb-mine-none { margin: 0 0 14px; color: var(--cb-mute); font-size: 14px; }
.cb-desk .cb-card.is-owner { border-left-color: var(--cb-ink); }
.cb-desk .cb-col.is-owner > header b { color: var(--cb-ink); }
.cb-phone .cb-ph-row.is-owner { border-left-color: var(--cb-ink); }

/* Rethink 15a, iPad pass (t-owner-clients, t-owner-client): every control at least 44pt,
   the board and the room laid out for 1180 and 820 wide without sideways scroll. */
html.tp-ipad .cb-desk .cb-seg-o { height: 38px; }
html.tp-ipad .cb-desk .cb-seg { padding: 3px; }
html.tp-ipad .cb-desk .cb-seg-o { min-height: 44px; height: 44px; }
html.tp-ipad .cb-desk .cb-btn { height: 44px; }
html.tp-ipad .cb-desk .cb-crumb, html.tp-ipad .cb-desk .cb-quiet-c { min-height: 44px; }
/* text buttons keep their look; the 44pt hit area grows into the space around them */
html.tp-ipad .cb-desk .cb-quiet-btn { display: inline-flex; align-items: center; min-height: 44px; margin: -13px 0; }
html.tp-ipad .cb-desk .cb-item-title { display: inline-flex; align-items: center; min-height: 44px; margin: -11px 0 -9px; }
html.tp-ipad .cb-desk .cb-check { width: 44px; height: 44px; margin: -11px -11px -11px -11px; border: 11px solid transparent; background-clip: padding-box;
  box-shadow: inset 0 0 0 1.5px #C9C9C0; }
html.tp-ipad .cb-desk .cb-check.is-on { box-shadow: none; }
html.tp-ipad .cb-desk .cb-check.is-req { box-shadow: none; border: 11px solid transparent; outline: 1.5px dashed #C9C9C0; outline-offset: -12.5px; }
/* the room: open work and the thread side by side, the right column a strip above them */
@media (max-width: 1240px) {
  html.tp-ipad .cb-desk .cb-room { grid-template-columns: minmax(300px, 1fr) minmax(0, 1.5fr); }
  html.tp-ipad .cb-desk .cb-side { grid-column: 1 / -1; grid-row: 1; display: flex; flex-direction: row; flex-wrap: wrap; align-items: stretch; gap: 12px; }
  html.tp-ipad .cb-desk .cb-side > * { flex: 1 1 260px; margin: 0; min-width: 0; }
  html.tp-ipad .cb-desk .cb-side .cb-panel { display: flex; flex-wrap: wrap; align-items: center; column-gap: 18px; row-gap: 2px; padding: 10px 18px; }
  html.tp-ipad .cb-desk .cb-side .cb-panel h3 { margin: 0; font-size: 14.5px; }
  html.tp-ipad .cb-desk .cb-side .cb-fact { gap: 6px; padding: 4px 0; }
  html.tp-ipad .cb-desk .cb-side .cb-person { padding: 2px 0; }
}
@media (max-width: 900px) {
  html.tp-ipad .cb-desk .cb-room { grid-template-columns: minmax(0, 1fr); }
  html.tp-ipad .cb-desk .cb-board { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  html.tp-ipad .cb-desk .cb-col { padding: 12px 8px 14px; }
  html.tp-ipad .cb-desk .cb-top { justify-content: flex-start; }
  html.tp-ipad .cb-desk .cb-ctl { justify-content: flex-start; }
  html.tp-ipad .cb-desk .cb-crumbs { flex-wrap: wrap; }
}

/* ---- Rethink 18: a client request opened up (clientsboard.js openRequest). Desktop and iPad: a
   right-hand panel over a light scrim; the phone: a pushed page with Back. Over the existing writes. */
.cb-rq-scrim { position: fixed; inset: 0; z-index: 1190; background: rgba(17, 17, 17, .28); }
.cb.cb-rq { position: fixed; top: 0; right: 0; bottom: 0; z-index: 1200; width: min(560px, 100vw); box-sizing: border-box; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: #fff; border-left: 1px solid #E3E3DC; box-shadow: -8px 0 24px rgba(0,0,0,.06); color: #111;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; }
.cb-rq button { font: inherit; color: inherit; }
.cb-rq .cb-rq-body { padding: 18px 24px 28px; }
.cb-rq .cb-rq-top { display: flex; align-items: center; gap: 12px; min-height: 44px; margin-bottom: 6px; }
.cb-rq .cb-rq-grow { flex: 1; }
.cb-rq .cb-rq-kick { font-size: 14px; font-weight: 600; color: #73736D; }
.cb-rq .cb-rq-link { min-height: 44px; padding: 0 4px; border: 0; background: none; font-size: 14.5px; font-weight: 500; color: #73736D; cursor: pointer; }
.cb-rq .cb-rq-x { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; cursor: pointer; }
.cb-rq .cb-rq-back { 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; }
.cb-rq .cb-rq-status { color: #73736D; font-size: 15px; }
.cb-rq .cb-rq-meta { margin: 6px 0 4px; font-size: 14px; color: #73736D; }
.cb-rq .cb-rq-title { margin: 0 0 12px; font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -.015em; }
.cb-rq .cb-rq-ball { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 12px 14px; border-radius: 12px; border-left: 4px solid #111; background: #F4F4EF; font-size: 15px; }
.cb-rq .cb-rq-ball.is-you { border-left-color: #D6362B; }
.cb-rq .cb-rq-ball.is-you b { color: #D6362B; }
.cb-rq .cb-rq-ball.is-closed { border-left-color: #A9A9A1; }
.cb-rq .cb-rq-ball span { color: #73736D; }
.cb-rq .cb-rq-ball.is-stale span { color: #D6362B; font-weight: 600; }
.cb-rq .cb-rq-ask { margin: 16px 0; padding: 14px 16px; border: 1px solid #E3E3DC; border-radius: 14px; font-size: 15.5px; line-height: 1.45; }
.cb-rq .cb-rq-ask p { margin: 0; }
.cb-rq .cb-rq-lbl { display: block; margin: 0 0 6px; font-size: 13.5px; font-weight: 600; color: #73736D; }
.cb-rq .cb-rq-fields { display: flex; flex-direction: column; gap: 16px; padding: 16px 0; border-top: 1px solid #EFEFE9; border-bottom: 1px solid #EFEFE9; }
.cb-rq .cb-rq-f { display: block; }
.cb-rq .cb-rq-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cb-rq .cb-rq-chip { min-height: 40px; padding: 0 14px; border: 1px solid #E3E3DC; border-radius: 20px; background: #fff; font-size: 14.5px; font-weight: 500; cursor: pointer; }
.cb-rq .cb-rq-chip.is-on { background: #111; border-color: #111; color: #fff; font-weight: 600; }
.cb-rq .cb-rq-chip[disabled] { opacity: .5; }
.cb-rq .cb-rq-in { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid #D9D9D2; border-radius: 10px; background: #fff; font: inherit; font-size: 16px; color: #111; box-sizing: border-box; }
.cb-rq textarea.cb-rq-in { padding: 10px 12px; line-height: 1.4; resize: vertical; }
.cb-rq .cb-rq-eta { display: flex; gap: 8px; }
.cb-rq .cb-rq-hint { margin: 6px 0 0; font-size: 13.5px; color: #73736D; }
.cb-rq .cb-rq-btn { flex: none; min-height: 44px; padding: 0 18px; border: 1px solid #E3E3DC; border-radius: 10px; background: #fff; font-size: 15px; font-weight: 600; cursor: pointer; }
.cb-rq .cb-rq-btn.is-k { background: #111; border-color: #111; color: #fff; }
.cb-rq .cb-rq-btn[disabled] { opacity: .45; }
.cb-rq .cb-rq-acth { margin-top: 18px; }
.cb-rq .cb-rq-thread { margin: 0 0 16px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.cb-rq .cb-rq-ev { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: #73736D; }
.cb-rq .cb-rq-ev time, .cb-rq .cb-rq-mh time { flex: none; font-size: 13px; color: #8A8A84; }
.cb-rq .cb-rq-msg { padding: 10px 14px; border-radius: 12px; background: #F4F4EF; }
.cb-rq .cb-rq-msg.is-internal { background: #FFF6D1; }
.cb-rq .cb-rq-msg.is-team { background: #EEF3F8; }
.cb-rq .cb-rq-mh { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 4px; font-size: 13.5px; }
.cb-rq .cb-rq-msg p { margin: 0; font-size: 15px; line-height: 1.45; white-space: pre-wrap; }
.cb-rq .cb-rq-composer { padding: 14px; border: 1px solid #E3E3DC; border-radius: 14px; background: #FAFAF7; }
.cb-rq .cb-rq-composer.is-client { border-color: #111; background: #fff; }
.cb-rq .cb-rq-seg { display: flex; padding: 3px; border-radius: 10px; background: #EBEBE4; }
.cb-rq .cb-rq-seg button { flex: 1; min-height: 40px; border: 0; border-radius: 8px; background: none; font-size: 14.5px; font-weight: 500; color: #73736D; cursor: pointer; }
.cb-rq .cb-rq-seg button.is-on { background: #fff; color: #111; font-weight: 600; box-shadow: 0 0 0 .5px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.08); }
.cb-rq .cb-rq-dest { margin: 10px 2px; font-size: 14px; color: #3D3D39; }
.cb-rq .cb-rq-cfoot { display: flex; justify-content: flex-end; margin-top: 10px; }
.cb-rq .cb-rq-cfoot .cb-rq-btn { width: 100%; }
.cb.cb-rq.is-phone { width: 100vw; border-left: 0; box-shadow: none; background: #F7F7F3; }
.cb-rq.is-phone .cb-rq-body { padding: calc(env(safe-area-inset-top, 0px) + 8px) 16px calc(28px + env(safe-area-inset-bottom, 0px)); }
.cb-rq.is-phone .cb-rq-title { font-size: 28px; }
.cb-rq.is-phone .cb-rq-ask, .cb-rq.is-phone .cb-rq-composer { background: #fff; }
.cb-rq select.cb-rq-in { height: 44px; -webkit-appearance: none; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%2712%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23555%27 stroke-width=%272.5%27%3E%3Cpath d=%27m6 9 6 6 6-6%27/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 36px; }
