/* Daily Life Doc, round 13 (zone B4): the expert's call screens, as the page "Expert Plans" draws them ("Calls",
   "During a call", "Times, and booking by text", "Settings, Calls"): the call view over the main area (#callbar, with
   the shared parts of css/call.css) and its folded bar, the Call menu of a client's header, the Calls page (.calls:
   groups and rows), a past call (.pc: the audio, the transcript, the suggestions), the Schedule sheet (.csch), the
   Block time sheet (.bkt) and Settings → Calls (.cset: the week of call hours). */

/* The call view: over the main area, beside the left list (one column at phone width). */
.callbar.full { inset: 0 0 0 212px; top: 0; left: 212px; transform: none; z-index: 40; background: linear-gradient(var(--app), var(--app2)); display: flex; animation: dd-fade .2s ease both; }
.xc-wrap { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 16px 24px 24px; min-width: 0; }
.xc-head { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.xc-head .wt { display: flex; flex-direction: column; margin-right: auto; min-width: 0; }
.xc-head .wt b { font-size: var(--t-l); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 520px) { .xc-head .xc-k { display: none; } .xc-head .wt b { font-size: var(--t-m); } .xc-head .rec { padding: 3px 8px; } .xc-head { gap: 8px; } }
@media (max-width: 380px) { .xc-head > .av2 { display: none; } .xc-head .rec { font-size: var(--t-2xs); gap: 4px; padding: 3px 7px; } }
.xc-head .wt span { font-size: var(--t-xs); color: var(--ink3); font-variant-numeric: tabular-nums; }
.rec { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-xs); font-weight: 500; color: var(--care-d); background: var(--care); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.rec::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: dd-live 1.6s ease-in-out infinite; }
.xcall { flex: 1; background: var(--card); border-radius: 18px; display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; position: relative; }
.xcall .cbar { gap: 26px; }
.xcall .cvid .vtile.me { width: 22%; min-width: 120px; }
.xwait { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); font-size: var(--t-xs); font-weight: 500; color: var(--ink2); background: var(--surface);
  border-radius: 999px; padding: 4px 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); white-space: nowrap; z-index: 2; animation: dd-pop .3s var(--ease-out) both; }
/* Folded: a small bar at the foot of the left list, clear of the client's header (W3's finding 10). */
.callbar.mini { display: flex; gap: 6px; align-items: center; top: auto; bottom: 16px; left: 16px; transform: none; }
.xc-mini { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--ink); color: var(--surface); font: 500 var(--t-sm) var(--font); box-shadow: var(--lift); }
.xc-mini .dot { width: 8px; height: 8px; border-radius: 50%; background: #E0707C; animation: dd-live 1.6s ease-in-out infinite; }
.xc-mini .xc-t { font-variant-numeric: tabular-nums; opacity: .8; }
.xc-end { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #C8404F; color: #fff; box-shadow: var(--lift); }
@media (max-width: 880px) {
  .callbar.full { left: 0; }
  .callbar.mini { top: auto; bottom: 92px; left: 50%; transform: translateX(-50%); }
  .xc-wrap { padding: 12px 16px 16px; }
}

/* The Call menu under the header's Call button. */
.hact .pill.ph.callb > svg { display: block; width: 13px; height: 13px; }
.hact .pill.ph.callb > svg:last-child { width: 11px; height: 11px; margin-left: -2px; }
@media (max-width: 880px) {
  .hact .pill.ph.callb > svg:first-child { width: 18px; height: 18px; }
  .hact .pill.ph.callb > svg:last-child { display: none; }
}
.cmenu { position: fixed; z-index: 70; width: 176px; background: var(--surface); border-radius: 14px; padding: 5px; display: flex; flex-direction: column;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08), 0 22px 44px -18px rgba(20, 20, 20, .5); opacity: 0; transform: translateY(-6px) scale(.97); transform-origin: top left;
  transition: opacity .2s, transform .3s var(--ease-out); }
.cmenu.up { opacity: 1; transform: none; }
.cmenu button { display: flex; align-items: center; gap: 9px; font: 400 var(--t-sm) var(--font); padding: 8px 10px; border-radius: 9px; text-align: left; color: var(--ink); }
.cmenu button:hover, .cmenu button:focus-visible { background: var(--soft); }
.cmenu button svg { width: 15px; height: 15px; color: var(--ink2); flex: none; }
.cmenu hr { border: 0; border-top: 1px solid var(--cardline); margin: 4px 6px; }

/* The Calls page. */
.calls { display: flex; flex-direction: column; max-width: 860px; }
.calls .cg { font-size: var(--t-xs); font-weight: 600; color: var(--ink3); padding: 14px 2px 6px; }
.calls .nxnone { padding: 4px 2px 6px; }
.cr { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; background: var(--card); border: 1px solid transparent;
  border-radius: 14px; padding: 9px 10px 9px 12px; margin-bottom: 6px; font-size: var(--t-sm); cursor: pointer; animation: dd-rise .35s var(--ease-out) both;
  transition: box-shadow .2s; }
.cr:hover { box-shadow: 0 1px 6px rgba(0, 0, 0, .07); }
.cr .ct { font-size: var(--t-xs); font-weight: 600; color: var(--sage-d); line-height: 1.3; }
.cr .ct small { display: block; font-weight: 400; color: var(--ink3); }
.cr .cn { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.cr .cn b { font-weight: 500; }
.cr .cn small { font-size: var(--t-xs); color: var(--ink3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr .cn small.cz { color: var(--ink2); }
.cr .crc svg { width: 13px; height: 13px; }
.cr.bl { cursor: default; background: var(--try-bg); border-color: transparent; }
.cr.bl .ct, .cr.bl .cn b { color: var(--try-d); }
.crx { width: 32px; height: 32px; background: transparent; }
.nu { font-size: var(--t-2xs); font-weight: 500; background: var(--good-bg); color: var(--good-d); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.nu.rc { background: var(--field); color: var(--ink2); }
.nu.miss { background: var(--soft); color: var(--ink3); }
.nu.live { background: var(--care); color: var(--care-d); }
@media (max-width: 520px) {
  .cr { grid-template-columns: 78px minmax(0, 1fr) auto; }
  .cr > .nu:not(.live), .cr > span:empty { display: none; }
  .cr.is-live { grid-template-columns: 78px minmax(0, 1fr) auto auto; }
  .cr .crc span { display: none; }
  .cr .crc { padding: 8px; }
}

/* A past call. */
.pc { display: flex; flex-direction: column; gap: 12px; padding: 4px 0 24px; max-width: 980px; }
.pc-sub { font-size: var(--t-xs); color: var(--ink3); }
.aud { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 16px; padding: 9px 14px; }
.aud.none { display: none; }
.aud .pp { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--ink); color: var(--surface); display: grid; place-items: center; }
.atrk { position: relative; flex: 1; min-width: 0; height: 30px; cursor: pointer; }
.wv { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; overflow: hidden; }
.wv i { flex: 0 0 3px; border-radius: 2px; background: var(--line); }
.wfill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; overflow: hidden; transition: width .3s linear; }
.wfill .wv { right: auto; }
.wfill .wv i { background: var(--sage); }
.ahead { position: absolute; top: -2px; bottom: -2px; left: 0; width: 2px; border-radius: 2px; background: var(--sage-d); transition: left .3s linear; }
.atm { font-size: var(--t-xs); color: var(--ink3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.vgrid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 12px; align-items: start; }
.trl { display: flex; flex-direction: column; gap: 1px; background: var(--card); border-radius: 16px; padding: 6px; min-width: 0; }
.tr { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 6px 8px; border-radius: 10px; font: 400 var(--t-sm) var(--font);
  line-height: 1.45; text-align: left; color: var(--ink); transition: background .35s; }
.tr:hover { background: color-mix(in srgb, var(--surface) 60%, transparent); }
.tr .tt { font-size: var(--t-xs); color: var(--ink3); font-variant-numeric: tabular-nums; }
.tr .sp { display: inline-block; font-size: var(--t-2xs); font-weight: 600; border-radius: 6px; padding: 0 7px; margin-right: 8px; background: var(--app); color: var(--sage-d); vertical-align: 1px; }
.tr .sp.cl { background: var(--bubble); color: var(--ink2); }
.tr.on { background: color-mix(in srgb, var(--try-bg) 60%, transparent); }
.trl .nxnone, .vsug .nxnone, .vsug .pwork { padding: 8px; }
.vsug { display: flex; flex-direction: column; gap: 6px; background: var(--card); border-radius: 16px; padding: 12px; min-height: 100%; }
.sgl { display: flex; flex-direction: column; gap: 6px; }
.sgg { font-size: var(--t-2xs); font-weight: 600; color: var(--ink3); padding: 4px 0 0; }
.sgc { background: var(--field); border: 1px solid transparent; border-radius: 12px; padding: 9px 11px; display: flex; flex-direction: column; gap: 6px;
  font-size: var(--t-sm); line-height: 1.45; animation: dd-rise .35s var(--ease-out) both; }
.sgc.done { background: transparent; border-color: var(--cardline); }
.sgc .from { align-self: flex-start; font: 500 var(--t-2xs) var(--font); color: var(--note-d); background: var(--note); border-radius: 6px; padding: 1px 7px; text-align: left; line-height: 1.5; }
.sgc .acts { display: flex; gap: 6px; }
.sgc .um { display: flex; gap: 6px; align-items: center; font-size: var(--t-2xs); color: var(--ink3); }
.sgc .um .ln { color: var(--sage-d); font-weight: 600; }
.sgc .um .ok { margin-left: auto; color: var(--good-d); background: var(--good-bg); border-radius: 999px; padding: 1px 8px; font-weight: 500; }
.sgc .um .ait { padding: 0 6px; border-radius: 6px; background: var(--care); color: var(--care-d); font-weight: 600; line-height: 18px; }
@media (max-width: 880px) { .vgrid { grid-template-columns: minmax(0, 1fr); } }

/* The Schedule sheet and the Block time sheet. */
.csch { display: flex; flex-direction: column; gap: 10px; }
.csch-who { display: flex; align-items: center; gap: 10px; }
.csch-who .small { margin-left: auto; }
.csch .chips { align-items: center; }
.csch .small, .cset .small, .bkt span { font-size: var(--t-xs); color: var(--ink2); }
.csch .cl, .cset .cl { min-width: 44px; }
.ch { font: 500 var(--t-xs) var(--font); background: var(--soft); color: var(--ink); border-radius: 999px; padding: 5px 12px; white-space: nowrap; transition: background .2s, color .2s; }
.ch.on { background: var(--ink); color: var(--surface); }
/* A time chip: the client's time, the expert's own in grey beside it; a time in the client's night a little dimmer. */
.ch.tch small { margin-left: 6px; font-size: var(--t-2xs); color: var(--ink3); }
.ch.tch.on small { color: color-mix(in srgb, var(--surface) 70%, transparent); }
.ch.tch.nt:not(.on) { background: var(--app2); color: var(--ink2); }
.csch-other { display: flex; gap: 8px; }
.csch-other input, .bkt input { font: 400 var(--t-s) var(--font); background: var(--field); border: 0; outline-offset: 1px; border-radius: 10px; padding: 8px 10px; color: var(--ink); min-width: 0; }
.csch-mine:empty { display: none; }
.csch-txt { align-self: flex-start; font-size: var(--t-sm); background: var(--bubble); border-radius: 16px; border-bottom-left-radius: 5px; padding: 7px 12px; max-width: 92%; }
.csch-txt:empty { display: none; }
.csch-go { align-self: flex-end; }
.bkt { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.bkt label { display: flex; flex-direction: column; gap: 4px; }
.bkt label.wide { grid-column: 1 / -1; }
.bkt input { width: 100%; box-sizing: border-box; }
/* Phone width: Day on its own row, From and To side by side under it (design review: To was cut at 430 px). */
@media (max-width: 560px) {
  .bkt { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bkt label:first-child { grid-column: 1 / -1; }
}

/* Settings → Calls. */
.cset { display: flex; flex-direction: column; }
.cset .fx { display: flex; flex-direction: column; gap: 8px; padding: 10px 0; border-top: 1px solid var(--cardline); }
.cset .fx:first-child { border-top: 0; padding-top: 0; }
.cset .fl { font-size: var(--t-xs); font-weight: 600; color: var(--ink3); }
.hgrid { display: grid; grid-template-columns: 44px repeat(7, minmax(0, 1fr)); column-gap: 3px; row-gap: 1px; font-size: var(--t-2xs); color: var(--ink3); max-width: 440px; }
/* Half-hour cells, the whole day: a little more room above each hour than between its two halves. */
.hgrid .c { height: 10px; border-radius: 3px; background: var(--field); padding: 0; transition: background .2s; }
.hgrid .hs { margin-top: 2px; }
.hgrid .c:hover { box-shadow: inset 0 0 0 1px var(--line); }
.hgrid .c.on { background: var(--atlas-bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--atlas-d) 30%, transparent); }
.hgrid .hl { text-align: right; padding-right: 4px; line-height: 10px; height: 10px; white-space: nowrap; overflow: visible; }
.hgrid .dh { text-align: center; font-weight: 600; padding-bottom: 2px; }
.srow { display: flex; justify-content: space-between; gap: 10px; font-size: var(--t-s); }
