/* cg-hub: caregiver phone screens (approved Oct 23, 2026; design/caregiver-phone-screens-brief.md) */
/* My clients (#myclients) and the caregiver's client hub (#hub.<cid>), views-hub.js. The office's hub tab (.hub2) is not touched. */
body.skin .cgh { max-width: 720px; }
body.skin .cgh h1 { margin: 0; }
body.skin .cgh > h1:first-child { margin-top: 10px; }
body.skin .cgh .crumb { margin: 0 0 10px; }
body.skin .cgh-ph { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
body.skin .cgh-ph h1 { min-width: 0; }
body.skin .cgh-ph .btn { flex: none; margin-top: 2px; }
body.skin .cgh-sub { font-size: 14px; color: var(--ink-3); margin: 4px 0 18px; }
body.skin .cgh-hint { font-size: 13.5px; color: var(--ink-3); margin: 12px 0 0; }
body.skin .cgh-hint .link { font-size: inherit; }
body.skin .cgh-empty { font-size: 14px; color: var(--ink-3); margin: 8px 0 0; }
body.skin .cgh .btn.sm { min-height: 32px; height: 32px; padding: 0 12px; border-radius: 8px; font-size: 13px; white-space: nowrap; }
body.skin .cgh .btn.sm:not(.primary):not(.quiet) { border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); }
body.skin .cgh .btn.sm .i { display: none; }

/* rows */
body.skin .cgh-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
body.skin .cgh-rows > li { margin: 0; }
body.skin .cgh-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; font: inherit; color: inherit; }
body.skin button.cgh-row { cursor: pointer; }
body.skin button.cgh-row:hover { background: var(--faint); }
body.skin .cgh-row .av { width: 36px; height: 36px; flex: none; background: var(--teal-soft); color: var(--teal); font-size: 13px; font-weight: 700; }
body.skin .cgh-row .av.sm { width: 32px; height: 32px; font-size: 12px; }
body.skin .cgh-t { flex: 1; min-width: 0; }
body.skin .cgh-t b { display: block; font-weight: 600; font-size: 16px; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
body.skin .cgh-t small { display: block; font-size: 13.5px; color: var(--ink-3); line-height: 1.35; margin-top: 2px; }
body.skin .cgh-e { flex: none; display: flex; align-items: center; gap: 8px; }
body.skin .cgh-e .chev, body.skin .cgh-mi .chev { width: 14px; height: 14px; color: var(--line-2); }
body.skin .cgh-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); flex: none; display: inline-block; }
body.skin .cgh-dot.bad { background: var(--coral); }
body.skin .cgh-st { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13.5px; white-space: nowrap; }
body.skin .cgh-st.bad { color: var(--coral); }
body.skin .cgh-un { color: var(--coral); font-weight: 600; }
body.skin .cgh-acts { display: flex; gap: 14px; margin-top: 4px; }
body.skin .cgh-acts .link { font-size: 13.5px; }

/* underline tabs: the visit screen's pattern (office.css .vl-tabs) */
body.skin .cgh-tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--line); margin: 0 0 16px; overflow-x: auto; scrollbar-width: none; }
body.skin .cgh-tabs::-webkit-scrollbar { display: none; }
body.skin .cgh-tabs button { padding: 0 0 12px; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink-2); background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; cursor: pointer; }
body.skin .cgh-tabs button.on { color: var(--teal); border-color: var(--teal); }
body.skin .cgh-tabs .n { color: var(--ink-3); font-weight: 500; margin-left: 4px; }
body.skin .cgh-tabs .hot { color: var(--coral); font-weight: 700; margin-left: 4px; }

/* Catch me up */
body.skin .cgh-catch { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: -6px 0 16px; background: var(--faint); }
body.skin .cgh-catch .small, body.skin .cgh-catch p { margin: 0 0 6px; font-size: 14px; }
body.skin .cgh-catch ul { margin: 0; }

/* sections (Care plan and About tabs) */
body.skin .cgh-sec { margin-top: 24px; }
body.skin .cgh-sec:first-child { margin-top: 0; }
body.skin .cgh-sh { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
body.skin .cgh-sh h2 { font-size: 17px; font-weight: 700; margin: 0; }
body.skin .cgh-sh .c { color: var(--ink-3); font-size: 14px; }
body.skin .cgh-sh .rt { margin-left: auto; font-size: 13.5px; color: var(--ink-3); text-align: right; }
body.skin .cgh-sh .link.rt { color: var(--teal); font-weight: 600; }
body.skin .cgh-kv { margin: 0; border-top: 1px solid var(--line); }
body.skin .cgh-kv > div { display: flex; gap: 14px; min-height: 48px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
body.skin .cgh-kv dt { width: 112px; flex: none; color: var(--ink-3); }
body.skin .cgh-kv dd { margin: 0; flex: 1; min-width: 0; overflow-wrap: anywhere; }

/* chat */
body.skin .cgh-ntk { margin-bottom: 8px; }
body.skin .cgh-ntk .cgh-t b { font-size: 15.5px; }
body.skin .cgh-posts { list-style: none; margin: 0; padding: 0; }
body.skin .cgh-post { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
body.skin .cgh-posts > li:last-child { border-bottom: 0; }
body.skin .cgh-post .av { flex: none; width: 34px; height: 34px; font-size: 12.5px; background: var(--teal-soft); color: var(--teal); font-weight: 700; }
body.skin .cgh-post .cgh-t small { font-size: 12.5px; margin: 0 0 2px; }
body.skin .cgh-post .cgh-t p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
body.skin .cgh-quote { display: block; font-size: 13px; color: var(--ink-3); border-left: 2px solid var(--line-2); padding-left: 8px; margin: 2px 0 4px; }
body.skin .cgh-ev { font-size: 13px; color: var(--ink-3); padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
body.skin .cgh-ev span { color: var(--ink-2); font-weight: 600; }
body.skin .cgh-older { margin: 0 0 6px; text-align: center; }
body.skin .cgh-inc { display: flex; gap: 8px; align-items: baseline; margin: 6px 0 0; font-size: 14px; }
body.skin .cgh-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; min-height: 0; }
body.skin .cgh-tools .hub-tools { display: inline-flex; gap: 2px; opacity: 1; margin-left: 0; }
body.skin .cgh-tools .hub-tool { width: 30px; height: 28px; display: inline-grid; place-items: center; border: 0; background: none; color: var(--ink-4); border-radius: 6px; cursor: pointer; padding: 0; }
body.skin .cgh-tools .hub-tool:hover { background: var(--tint); color: var(--ink-2); }
body.skin .cgh-tools .hub-tool .i { width: 14px; height: 14px; }
body.skin .cgh-tools .hub-rx { height: 26px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 13px; background: var(--surface); font-size: 12.5px; cursor: pointer; }
body.skin .cgh-tools .hub-rx.on { border-color: var(--teal); background: var(--teal-soft); }
body.skin .cgh-tools .hub-rxpick { display: inline-flex; gap: 4px; }

/* composer: pinned above the tab bar on a phone; at the end of the chat on a computer */
body.skin .cgh-comp { position: sticky; bottom: 0; z-index: 5; background: var(--surface); border-top: 1px solid var(--line); margin: 14px calc(-1 * var(--gutter, 16px)) 0; padding: 10px var(--gutter, 16px); }
body.skin .cgh-bar { display: flex; gap: 8px; align-items: flex-end; }
body.skin .cgh-plus { width: 42px; height: 42px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font: 400 22px/1 var(--f-ui); display: grid; place-items: center; cursor: pointer; padding: 0; }
body.skin .cgh-plus[aria-expanded="true"] { border-color: var(--teal); color: var(--teal); background: var(--teal-soft); }
body.skin .cgh-in { flex: 1; min-width: 0; min-height: 42px; max-height: 140px; resize: none; border: 1px solid var(--line-2); border-radius: 21px; padding: 10px 16px; font: 500 15px/1.35 var(--f-ui); color: var(--ink); background: var(--surface); box-sizing: border-box; display: block; }
body.skin .cgh-in:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
body.skin .cgh .cgh-send { flex: none; height: 42px; min-height: 42px; border-radius: 21px; padding: 0 18px; }
body.skin .cgh .cgh-send .i { display: none; }
body.skin .cgh-comp .err:empty { display: none; }
body.skin .cgh-comp .err { margin: 6px 0 0; font-size: 13.5px; }
body.skin .cgh-comp .hub-replyto { font-size: 13px; color: var(--ink-3); margin: 0 0 8px; }
body.skin .cgh-comp .hub-replyto[hidden] { display: none; }
body.skin .cgh-famon { display: none; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--teal); margin: 0 0 6px; }
body.skin .cgh-famon .i { width: 13px; height: 13px; }
body.skin .cgh-comp.fam .cgh-famon { display: flex; }
/* the Clean up status shows only while it runs; its result (.tidy-box) sits above the box */
body.skin .cgh-tidy-anchor { display: none; margin: 0 0 6px; }
body.skin .cgh-tidy-anchor:has(button[disabled]) { display: block; }
body.skin .cgh-comp .tidy-box { margin: 0 0 8px; max-height: 40vh; overflow: auto; }
/* the + menu */
body.skin .cgh-menu { position: absolute; left: var(--gutter, 16px); bottom: calc(100% - 2px); width: min(300px, calc(100% - 2 * var(--gutter, 16px))); background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 10px 28px -8px rgba(23, 40, 42, .25); padding: 4px 0; z-index: 6; }
body.skin .cgh-menu[hidden] { display: none; }
body.skin .cgh-mi { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 0 14px; border: 0; border-bottom: 1px solid var(--line); background: none; font: 600 15px var(--f-ui); color: var(--ink); text-align: left; cursor: pointer; }
body.skin .cgh-menu > :last-child { border-bottom: 0; }
body.skin .cgh-mi:hover { background: var(--faint); }
/* a switch for Share with family */
body.skin .cgh-sw { appearance: none; -webkit-appearance: none; width: 40px; height: 24px; flex: none; border-radius: 12px; background: var(--line-2); position: relative; margin: 0; cursor: pointer; transition: background .15s; }
body.skin .cgh-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(23, 40, 42, .25); transition: transform .15s; }
body.skin .cgh-sw:checked { background: var(--teal); }
body.skin .cgh-sw:checked::after { transform: translateX(16px); }
body.skin .cgh-sw:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

@media (max-width: 899px) {
  /* the fixed bottom tab bar is 62px plus the safe area */
  body.skin .cgh-comp { position: fixed; left: 0; right: 0; bottom: calc(62px + env(safe-area-inset-bottom, 0px)); margin: 0; z-index: 24; }
  body.skin .cgh-chat { padding-bottom: 72px; }
}
@media (min-width: 900px) {
  body.skin .cgh-comp { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
  body.skin .cgh-menu { left: 0; }
}
