/* Appointments page (APPOINTMENTS_PAGE_ENABLED). House tokens only (app.css :root + theme overrides), so Pearl by day
   and Smoke by night come from the theme. Glass cards (.card), flat bronze primary (.btn.grad), General Sans body,
   Bebas Neue display. Every state reserves its space: rows have a fixed height, the skeleton matches the loaded
   layout and the detail opens as an overlay, so nothing under the finger moves. */
.apmt-root{position:fixed;inset:0;z-index:6;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain;scrollbar-gutter:stable;padding:calc(10px + env(safe-area-inset-top,0px)) var(--gutter-l) calc(28px + env(safe-area-inset-bottom,0px)) var(--gutter-r);font-family:var(--f)}
.apmt-top{display:flex;align-items:center;gap:10px;max-width:720px;margin:0 auto 6px;min-height:48px}
.apmt-back{width:44px;height:44px;display:flex;align-items:center;justify-content:center;border-radius:50%;color:var(--sand-deep);text-decoration:none;flex:none;background:var(--glass);border:1px solid var(--hair);backdrop-filter:blur(24px) saturate(1.5);-webkit-backdrop-filter:blur(24px) saturate(1.5)}
.apmt-shared{flex:1;min-width:0;display:flex;align-items:center}
.apmt-shared .top{padding:0;background:none;border:0;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none;width:100%}
.apmt-main{max-width:720px;margin:0 auto;display:flex;flex-direction:column;gap:14px}
.apmt-root .apmt-main{padding-top:0;padding-bottom:0;min-height:0} /* the app's main#view padding is not ours */
.apmt-ic{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
.apmt-back .apmt-ic{width:22px;height:22px}

.apmt-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px 16px;min-height:96px}
.apmt-kicker{font-family:var(--f-title);font-size:12px;letter-spacing:.28em;color:var(--sand-text);text-transform:uppercase;margin-top:6px}
.apmt-title{font-family:var(--f-title);font-size:40px;line-height:1.02;margin:2px 0 0;color:var(--ink);letter-spacing:.04em;text-transform:uppercase}
.apmt-sub{color:var(--ink-3);font-size:14px;line-height:1.45;margin:2px 0 0}
.apmt-book{flex:none;min-height:44px;padding:10px 18px;gap:8px}
.apmt-book .apmt-ic{width:18px;height:18px}

.apmt-card{display:flex;flex-direction:column;gap:2px;padding:16px 18px}
.apmt-sec{display:flex;align-items:center;justify-content:space-between;min-height:28px;margin-bottom:4px}
.apmt-sec .eyebrow{margin:0}
.apmt-empty{margin:6px 0 4px;color:var(--ink-3);font-size:14px;min-height:22px}
.apmt-sk{height:64px;border-radius:14px;background:var(--sand-tint);opacity:.6;margin:6px 0}

.apmt-item{border-top:1px solid var(--line)}
.apmt-sec+.apmt-item{border-top:0}
.apmt-row{display:flex;align-items:center;gap:14px;width:100%;min-height:68px;padding:10px 0;text-align:left;font-family:var(--f);color:var(--ink);border-radius:12px}
.apmt-row:focus-visible,.apmt-link:focus-visible,.apmt-iconbtn:focus-visible{outline:2px solid var(--sand);outline-offset:2px}
.apmt-date{flex:none;width:48px;height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:12px;background:var(--sand-tint);border:1px solid var(--hair);font-family:var(--f-title);color:var(--sand-text);letter-spacing:.08em;font-size:10.5px;line-height:1.1;text-transform:uppercase}
.apmt-date b{font-weight:400;font-size:22px;line-height:1;color:var(--ink);letter-spacing:.02em}
.apmt-up .apmt-date{background:var(--glass-strong)}
.apmt-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.apmt-name{font-family:var(--f-title);font-size:18px;letter-spacing:.06em;text-transform:uppercase;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.apmt-meta{font-size:13px;color:var(--ink-3);margin:0;line-height:1.4}
.apmt-badge{align-self:flex-start;margin-top:4px;font-family:var(--f-title);font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-3);border:1px solid var(--line);border-radius:999px;padding:4px 9px}
.apmt-badge-on{color:var(--sand-text);border-color:var(--hair)}
.apmt-chev{transform:rotate(-90deg);color:var(--ink-3);width:18px;height:18px}

.apmt-actions{display:flex;align-items:center;gap:6px 14px;flex-wrap:wrap;min-height:44px;padding:0 0 12px 62px}
.apmt-actions .apmt-join{min-height:38px;height:38px;padding:0 20px;font-size:15px}
.apmt-chip{display:inline-flex;align-items:center;min-height:38px;padding:0 14px;border-radius:999px;border:1px solid var(--hair);background:var(--glass);font-size:13px;color:var(--ink-3);white-space:nowrap}
.apmt-time{color:var(--ink-2)}
.apmt-link{font-family:var(--f);font-size:14px;color:var(--sand-text);text-decoration:underline;text-underline-offset:3px;min-height:38px;padding:0 2px}
.apmt-danger{color:var(--danger,#a4513d)}
.apmt-grow{flex:1}
.apmt-links{display:inline-flex;align-items:center;gap:14px}
.apmt-iconbtn{width:40px;height:40px;flex:none;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;color:var(--sand-deep);background:var(--glass);border:1px solid var(--hair)}
.apmt-iconbtn .apmt-ic{width:19px;height:19px}

/* Detail: bottom sheet on phone, side sheet at 1024px+. An overlay: the page behind never moves. */
.apmt-scrim{position:fixed;inset:0;z-index:200;background:rgba(30,22,14,.32);display:flex;align-items:flex-end;justify-content:center;animation:apmt-fade .18s ease}
.apmt-sheet{width:100%;max-height:88vh;max-height:88dvh;display:flex;flex-direction:column;background:var(--glass-strong);backdrop-filter:blur(30px) saturate(1.6);-webkit-backdrop-filter:blur(30px) saturate(1.6);border:1px solid var(--hair);border-bottom:0;border-radius:24px 24px 0 0;box-shadow:0 -18px 48px -20px rgba(40,28,16,.4);animation:apmt-up .22s cubic-bezier(.2,.8,.2,1)}
.apmt-sheet-in{overflow-y:auto;overscroll-behavior:contain;padding:8px 20px calc(24px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:10px;color:var(--ink);font-family:var(--f)}
.apmt-sheet-in .eyebrow{margin:0}
.apmt-sheet-top{display:flex;align-items:center;justify-content:flex-end;min-height:44px;position:relative}
.apmt-grabber{position:absolute;left:50%;top:6px;width:38px;height:5px;margin-left:-19px;border-radius:3px;background:var(--line-2,rgba(0,0,0,.18))}
.apmt-sheet-title{font-family:var(--f-title);font-size:30px;letter-spacing:.04em;text-transform:uppercase;margin:0;line-height:1.05}
.apmt-sheet-in .apmt-actions{padding:6px 0 0}
.apmt-glass{background:var(--glass);border:1px solid var(--hair);border-radius:18px;padding:14px 16px;display:flex;flex-direction:column;gap:6px}
.apmt-glass p{margin:0;font-size:14.5px;line-height:1.55;color:var(--ink-2)}
.apmt-glass .eyebrow{color:var(--sand-text)}
.apmt-summary h3{font-family:var(--f-title);font-size:15px;letter-spacing:.1em;text-transform:uppercase;margin:6px 0 0;color:var(--ink)}
.apmt-summary ul,.apmt-list{margin:0;padding-left:18px;font-size:14.5px;line-height:1.55;color:var(--ink-2)}
.apmt-list li+li{margin-top:4px}
.apmt-q{font-size:12.5px!important;color:var(--ink-3)!important}
.apmt-faint{font-size:12.5px;color:var(--ink-3);margin:0;line-height:1.5}
@keyframes apmt-fade{from{opacity:0}to{opacity:1}}
@keyframes apmt-up{from{transform:translateY(24px);opacity:.6}to{transform:none;opacity:1}}
@keyframes apmt-side{from{transform:translateX(24px);opacity:.6}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.apmt-scrim,.apmt-sheet{animation:none}}

[data-theme="night"] .apmt-scrim,[data-theme="sunset"] .apmt-scrim{background:rgba(0,0,0,.45)}
[data-theme="night"] .apmt-sheet{box-shadow:0 -18px 48px -20px rgba(0,0,0,.75)}

@media (min-width:1024px){
  .apmt-top{max-width:none}
  body.aspen-rail-on .apmt-back{display:none} /* the rail is the way around on desktop */
  .apmt-main{max-width:880px}
  .apmt-head{min-height:108px;padding-top:12px}
  .apmt-title{font-size:48px}
  .apmt-scrim{align-items:stretch;justify-content:flex-end}
  .apmt-sheet{width:440px;max-height:none;height:100%;border-radius:24px 0 0 24px;border:1px solid var(--hair);border-right:0;animation:apmt-side .22s cubic-bezier(.2,.8,.2,1)}
  .apmt-sheet-in{padding:18px 26px 28px}
  .apmt-grabber{display:none}
}

/* Phone: the primary action spans the column; actions start under the date block so they never wrap early. */
@media (max-width:599px){.apmt-head{flex-wrap:wrap;min-height:0;padding-top:4px}.apmt-head>div{flex:1 1 100%}.apmt-book{flex:1 1 100%;width:100%}.apmt-actions{padding-left:0;gap:6px 12px}.apmt-links{order:3;flex-basis:100%}.apmt-row{gap:12px}}

/* Desktop with the side rail: the app header and rail stay in place; the page sits in main#view's content box
   (--apmt-l / --apmt-w / --apmt-top are measured from the live layout), with the My Plan page-header pattern. */
@media (min-width:1024px){
  body.apmt-desk #app>main#view{visibility:hidden!important;height:0!important;min-height:0!important;overflow:hidden!important;padding-top:0!important;padding-bottom:0!important}
  body.apmt-desk .apmt-root{top:var(--apmt-top,64px);padding:0 0 32px;scrollbar-gutter:auto}
  /* r4b: the page scrolls as the document (app.css, Document scroll), so the wheel works with the pointer over the
     rail and the header too. The page sits at the same place in document flow instead of in its own fixed scroller. */
  html.doc-scroll body.apmt-desk .apmt-root{position:absolute;bottom:auto;overflow:visible;overscroll-behavior:auto;min-height:calc(100vh - var(--apmt-top,64px))}
  body.apmt-desk .apmt-top{display:none}
  body.apmt-desk .apmt-root .apmt-main{margin:0 0 0 var(--apmt-l,76px);width:var(--apmt-w,auto);max-width:none;padding:0}
  body.apmt-desk .apmt-head{min-height:0;padding-top:24px}
  body.apmt-desk .apmt-title{font-size:40px}
}

/* Desktop calendar (Jake-approved concept, Nov 16): month/week grid with the selected call beside it. Only under
   body.apmt-desk (1024px+ with the rail); the phone layout above is untouched. Fixed grid geometry (always 6 weeks,
   fixed cell heights, a fixed-width panel) so changing month, week or selection never moves anything. */
@media (min-width:1024px){
  body.apmt-desk .apmt-dhead{align-items:flex-end;flex-wrap:nowrap;padding-top:24px}
  .apmt-dctl{display:flex;align-items:center;gap:10px;flex:none}
  .apmt-range{font-family:var(--f-title);font-size:20px;letter-spacing:.06em;text-transform:uppercase;color:var(--ink);min-width:150px;text-align:center;white-space:nowrap}
  .apmt-fwd .apmt-ic{transform:rotate(180deg)}
  .apmt-seg{display:inline-flex;padding:3px;border-radius:999px;background:var(--glass);border:1px solid var(--hair);margin-left:6px}
  .apmt-seg button{min-height:36px;padding:0 16px;border-radius:999px;font-family:var(--f);font-size:14px;color:var(--ink-3)}
  .apmt-seg button[aria-pressed="true"]{background:var(--glass-strong);color:var(--ink);box-shadow:var(--shadow-sm)}
  .apmt-seg button:focus-visible,.apmt-cchip:focus-visible,.apmt-prow:focus-visible{outline:2px solid var(--sand);outline-offset:2px}
  .apmt-dgrid{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:20px;align-items:start}
  .apmt-cal{padding:18px}
  .apmt-dow{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin-bottom:8px}
  .apmt-dow span{font-family:var(--f-title);font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:var(--sand-text);text-align:center}
  .apmt-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
  .apmt-day{height:96px;min-width:0;border-radius:14px;border:1px solid var(--hair);background:var(--glass);padding:7px;display:flex;flex-direction:column;gap:4px;overflow:hidden}
  .apmt-grid.week .apmt-day{height:420px}
  .apmt-day.out{opacity:.45}
  .apmt-day.today{background:var(--sand-soft)}
  .apmt-day.sel{border-color:var(--sand)}
  .apmt-dn{font-family:var(--f-title);font-size:16px;color:var(--ink);line-height:1}
  .apmt-day.today .apmt-dn{color:var(--sand-text)}
  .apmt-cchip,.apmt-cmore{display:block;width:100%;text-align:left;font-family:var(--f);font-size:11.5px;line-height:1.3;color:var(--ink-2);padding:4px 6px;border-radius:8px;border:1px solid var(--hair);background:var(--glass-strong);white-space:normal;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;flex:none}
  .apmt-cchip.on{border-color:var(--sand);color:var(--ink)}
  .apmt-cchip.off{text-decoration:line-through;color:var(--ink-3)}
  .apmt-cmore{color:var(--sand-text);border-style:dashed}
  .apmt-panel{padding:20px 22px;display:flex;flex-direction:column;gap:8px;position:sticky;top:12px}
  .apmt-ptitle{font-family:var(--f-title);font-size:30px;letter-spacing:.03em;text-transform:uppercase;margin:0;line-height:1.05;color:var(--ink)}
  .apmt-blurb{margin:4px 0 0;font-size:15.5px;line-height:1.5;color:var(--ink-2)}
  .apmt-panel .apmt-actions{padding:6px 0 0}
  .apmt-status{display:inline-flex;align-items:center;gap:7px;font-size:13px;color:var(--ink-3);border:1px solid var(--hair);border-radius:999px;padding:4px 11px}
  .apmt-status.ok i{width:7px;height:7px;border-radius:50%;background:var(--good)}
  .apmt-psec{border-top:1px solid var(--line);padding-top:12px;margin-top:6px;display:flex;flex-direction:column;gap:6px}
  .apmt-panel .apmt-glass{margin-top:6px}
  .apmt-qform{display:flex;align-items:center;gap:8px;border:1px solid var(--hair);border-radius:999px;background:var(--glass);padding:4px 6px 4px 16px;min-height:48px}
  .apmt-qin{flex:1;min-width:0;border:0;background:transparent;color:var(--ink);font:inherit;font-size:15px;outline:none}
  .apmt-qform:focus-within{border-color:var(--sand)}
  .apmt-prow{display:flex;justify-content:space-between;align-items:baseline;gap:10px;width:100%;text-align:left;padding:9px 0;border-top:1px solid var(--line)}
  .apmt-prow:first-of-type{border-top:0}
  .apmt-prow .apmt-name{font-size:15px}
  .apmt-prow.on .apmt-name{color:var(--sand-text)}
}
@media (min-width:1024px) and (max-width:1279px){
  .apmt-dgrid{grid-template-columns:minmax(0,1fr) 320px}
  .apmt-day{height:84px}
  .apmt-range{min-width:150px;font-size:17px}
  .apmt-seg button{padding:0 12px}
}
/* r4: cold load onto #appointments holds the app shell unpainted until the page takes over (appointments.js) */
html.apmt-hold #app{visibility:hidden!important}
/* r4 (art review r4 A1): the rail's margin animation would make the framed page chase main#view; while the page
   is up, main#view takes the rail's margin at once (it is hidden, so nothing visible jumps). */
body.apmt-desk #app>main#view{transition:none!important}
body.apmt-phone #app{display:none!important} /* phone: the page is full screen (appointments.js) */

/* r4b density (Jake approved): the month view is an unbordered grid with a dot per call (the call shows on hover and is
   the button's name); week view keeps its labelled chips. */
@media (min-width: 1024px) {
  .apmt-grid.month .apmt-day { border-color: transparent; background: transparent; flex-direction: row; flex-wrap: wrap; align-content: flex-start; gap: 5px; }
  .apmt-grid.month .apmt-day .apmt-dn { flex: 0 0 100%; }
  .apmt-grid.month .apmt-day.today .apmt-dn { color: var(--sand-text); font-weight: 700; }
  .apmt-grid.month .apmt-cchip { width: 10px; height: 10px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: var(--sand); overflow: hidden; flex: 0 0 auto; }
  .apmt-grid.month .apmt-cchip > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .apmt-grid.month .apmt-cchip.on { background: var(--ink); box-shadow: 0 0 0 2px var(--sand); }
  .apmt-grid.month .apmt-cchip.off { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-3); }
  .apmt-grid.month .apmt-cmore { width: auto; border: 0; background: none; padding: 0 2px; }
}
/* r4b density: on desktop the rail already has Appointments, so My Plan's link row (a duplicate entry point) hides. */
@media (min-width: 1024px) { .apmt-planrow { display: none !important; } }
/* r4b3 (Jake's r4b2 shot: a huge empty month grid and a page that scrolled into blank space). The hidden main#view
   still took its content height: as a flex item its 0% basis resolved to content (the #app column has no fixed
   height under document scroll), so the document kept Home's length under the page. It now takes no space at all.
   The month grid sizes to the viewport so the page fits one screen; a month without calls uses compact cells. */
@media (min-width: 1024px) {
  body.apmt-desk #app>main#view { flex: 0 0 0px !important; }
  body.apmt-desk .apmt-grid.month .apmt-day { height: clamp(44px, calc((100vh - var(--apmt-top, 64px) - 236px) / 6), 96px); }
  body.apmt-desk .apmt-grid.month:not(:has(.apmt-cchip)) .apmt-day { height: clamp(44px, calc((100vh - var(--apmt-top, 64px) - 236px) / 6), 64px); }
}

/* Direction A (Jake, Nov 18, DECISIONS.md "Appointments and My Plan redesign"): the next call or booking leads, the week
   strip, Since your last call, Past calls, and the care-team conversation (right column at 1024px+, a tab on phone).
   House tokens only; every block reserves its height and popups are fixed overlays, so nothing moves under a finger. */
.apmt-ptitle{font-family:var(--f-title);font-size:28px;letter-spacing:.04em;text-transform:uppercase;margin:0;line-height:1.05;color:var(--ink);font-weight:400}
.apmt-status{display:inline-flex;align-items:center;gap:7px;font-size:13px;color:var(--ink-2);border:1px solid var(--line);border-radius:999px;padding:4px 11px}
.apmt-status.ok i{width:7px;height:7px;border-radius:50%;background:var(--good)}
.apmt-ic{fill:none}
.apmt-hero{display:flex;flex-direction:column;gap:10px;padding:16px 18px}
.apmt-hero.live{border-color:var(--sand)}
.apmt-hero-main{display:flex;align-items:center;gap:16px}
.apmt-date.big{width:64px;height:72px;border-radius:16px;font-size:12px;background:var(--glass-strong)}
.apmt-date.big b{font-size:32px}
.apmt-host{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--ink-2);margin:2px 0 0}
.apmt-av{position:relative;width:38px;height:38px;flex:none;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:var(--sand-tint);border:1px solid var(--hair);font-family:var(--f-title);font-size:15px;letter-spacing:.06em;color:var(--sand-text)}
.apmt-av.sm{width:26px;height:26px;font-size:11px}
.apmt-hero .apmt-actions,.apmt-sheet-in .apmt-actions{padding:0;flex-wrap:wrap}
.apmt-hero .apmt-links{margin-left:auto}
.apmt-join{display:inline-flex;align-items:center;gap:9px;min-height:46px!important;height:46px;padding:0 24px!important}
.apmt-join .apmt-ic{width:18px;height:18px}
.apmt-chip{gap:8px;white-space:nowrap}
.apmt-chip .apmt-ic{width:17px;height:17px}
.apmt-opens{flex-basis:100%;margin:0}
.apmt-q{border-top:1px solid var(--line);padding-top:8px;display:flex;flex-direction:column;gap:6px}
.apmt-q .apmt-sec{min-height:0}
.apmt-q .apmt-faint{text-align:right}
.apmt-eye-sm{font-size:11px;margin:4px 0 0}
.apmt-btype{border-top:1px solid var(--line);padding-top:10px;display:flex;flex-direction:column;gap:6px}
.apmt-btype-top{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.apmt-btype-top b{font-family:var(--f-title);font-weight:400;font-size:19px;letter-spacing:.05em;text-transform:uppercase}
.apmt-slots{display:flex;gap:8px;flex-wrap:wrap}
.apmt-slot{display:inline-flex;flex-direction:column;align-items:flex-start;gap:1px;min-height:52px;min-width:118px;padding:7px 14px;border-radius:14px;border:1px solid var(--hair);background:var(--glass-strong);font-family:var(--f);color:var(--ink);text-align:left}
.apmt-slot span{font-size:12px;color:var(--ink-3)}
.apmt-slot b{font-weight:500;font-size:15px}
.apmt-slot:hover,.apmt-slot:focus-visible{border-color:var(--sand-deep)}
.apmt-week{padding:14px 16px 10px;gap:6px}
.apmt-wnav{display:inline-flex;gap:6px}
.apmt-iconbtn.sm{width:34px;height:34px}
.apmt-iconbtn[disabled]{opacity:.35;cursor:default}
.apmt-wnav .apmt-fwd .apmt-ic{transform:rotate(180deg)}
.apmt-wstrip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.apmt-wd{display:flex;flex-direction:column;align-items:center;gap:3px;min-height:84px;padding:8px 4px;border-radius:16px;border:1px solid transparent;background:none;color:var(--ink);font-family:var(--f);cursor:pointer}
.apmt-wd.today{background:var(--glass-strong);border-color:var(--hair)}
.apmt-wd.gone .apmt-wd-n,.apmt-wd.gone .apmt-wd-h{opacity:.55}
.apmt-wd-h{font-family:var(--f-title);font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-3)}
.apmt-wd-n{font-family:var(--f-title);font-weight:400;font-size:22px;line-height:1}
.apmt-wd.today .apmt-wd-n{color:var(--sand-deep)}
.apmt-wd-m{display:flex;flex-direction:column;align-items:center;gap:3px;margin-top:3px;width:100%}
.apmt-mk{display:inline-flex;align-items:center;gap:4px;max-width:100%;font-size:11.5px;color:var(--ink-2);border-radius:999px;padding:2px 7px;background:var(--sand-tint);white-space:nowrap;overflow:hidden}
.apmt-mk span{overflow:hidden;text-overflow:ellipsis}
.apmt-mk .apmt-ic{width:13px;height:13px}
.apmt-mk.call{background:var(--sand-deep);color:var(--ivory)}
.apmt-mk.rx{gap:3px;padding:2px 4px;background:transparent;border:1px solid var(--line)}
.apmt-mk.rx i{width:5px;height:5px;border-radius:50%;background:var(--sand)}
.apmt-plist{display:flex;flex-direction:column}
.apmt-li{display:flex;align-items:center;gap:12px;min-height:50px;padding:6px 0;border:0;border-top:1px solid var(--line);background:none;width:100%;text-align:left;text-decoration:none;color:var(--ink);font-family:var(--f);cursor:pointer}
.apmt-li:first-child{border-top:0}
div.apmt-li{cursor:default}
.apmt-li.sm{min-height:40px}
.apmt-li-ic{width:32px;height:32px;flex:none;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;background:var(--sand-tint);color:var(--sand-deep)}
.apmt-li-ic .apmt-ic{width:17px;height:17px}
.apmt-name2{font-size:15px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
.apmt-li .apmt-body{flex:1;min-width:0;gap:1px}
.apmt-li .apmt-meta{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.apmt-since,.apmt-past{padding:14px 16px;gap:4px}
.apmt-past .apmt-date{width:40px;height:44px;font-size:9.5px}.apmt-past .apmt-date b{font-size:18px}
.apmt-prow{min-height:52px}
.apmt-badge .apmt-ic{width:15px;height:15px}
.apmt-badge-on{padding:4px 7px;color:var(--sand-deep)}
.apmt-files{border-top:1px solid var(--line)!important;margin-top:2px}
.apmt-files .apmt-name2{flex:1}
.apmt-talk{display:flex;flex-direction:column;gap:8px;padding:14px 16px;min-height:0}
.apmt-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--sand-deep);color:var(--ivory);font:600 11px/1 var(--f);letter-spacing:0}
.apmt-people{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}
.apmt-person{display:flex;align-items:center;gap:8px;min-height:50px;padding:6px 12px 6px 7px;border-radius:999px;border:1px solid var(--line);background:none;flex:none;font-family:var(--f);color:var(--ink);cursor:pointer;text-align:left}
.apmt-person[aria-selected="true"]{background:var(--glass-strong);border-color:var(--hair)}
.apmt-person .apmt-av{width:30px;height:30px;font-size:12px}
.apmt-person .apmt-name2{font-size:13.5px}
.apmt-person .apmt-meta{font-size:11.5px}
.apmt-thread{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:8px;padding:6px 2px}
.apmt-empty2{margin:auto;text-align:center}
.apmt-msg{display:flex;max-width:86%}
.apmt-msg.me{align-self:flex-end}
.apmt-bub{border-radius:18px 18px 18px 6px;padding:9px 13px;background:var(--glass-strong);border:1px solid var(--hair)}
.apmt-msg.me .apmt-bub{border-radius:18px 18px 6px 18px;background:var(--sand-deep);border-color:transparent;color:var(--ivory)}
.apmt-bub p{margin:0;font-size:14.5px;line-height:1.45}
.apmt-mt{display:block;margin-top:3px;font-size:11px;color:var(--ink-3)}
.apmt-msg.me .apmt-mt{color:rgba(250,248,244,.78)}
.apmt-msg.unread .apmt-bub{box-shadow:inset 3px 0 0 var(--sand-deep)}
.apmt-msg.unread .apmt-bub p{font-weight:500}
.apmt-cdiv{display:inline-flex;align-items:center;gap:8px;align-self:center;max-width:100%;min-height:34px;padding:4px 12px;border-radius:999px;border:1px solid var(--line);background:none;font:12.5px var(--f);color:var(--ink-2);cursor:pointer;margin:4px 0}
.apmt-cdiv b{font-weight:500;color:var(--ink)}
.apmt-cdiv .apmt-ic{width:15px;height:15px;color:var(--sand-deep)}
.apmt-compose{display:flex;align-items:flex-end;gap:8px;border:1px solid var(--hair);border-radius:22px;padding:6px 6px 6px 16px;background:var(--glass-strong)}
.apmt-compose textarea{flex:1;min-width:0;resize:none;border:0;background:none;font:15px/1.4 var(--f);color:var(--ink);outline:none;padding:8px 0;max-height:120px}
.apmt-send{width:38px;height:38px;flex:none;border-radius:50%;border:0;display:inline-flex;align-items:center;justify-content:center;background:var(--sand-deep);color:var(--ivory);cursor:pointer}
.apmt-send .apmt-ic{width:18px;height:18px}
.apmt-err:empty{display:none}
.apmt-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border-radius:999px;background:var(--glass);border:1px solid var(--hair)}
.apmt-tabs button{min-height:40px;border-radius:999px;border:0;background:none;display:flex;align-items:center;justify-content:center;gap:8px;font-family:var(--f-title);font-size:14px;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-3);cursor:pointer}
.apmt-tabs button[aria-selected="true"]{background:var(--glass-strong);color:var(--ink);box-shadow:var(--shadow-sm)}
.apmt-mgrid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}
.apmt-mh{text-align:center;font-family:var(--f-title);font-size:11px;letter-spacing:.14em;color:var(--ink-3);padding:4px 0}
.apmt-md{position:relative;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;font:14px var(--f);color:var(--ink);background:none;border:0;cursor:pointer}
.apmt-md.out{color:var(--ink-3);opacity:.5}
.apmt-md.today{background:var(--sand-tint);color:var(--sand-deep);font-weight:600}
.apmt-md i{position:absolute;bottom:6px;left:50%;width:5px;height:5px;margin-left:-2.5px;border-radius:50%;background:var(--sand-deep)}
.apmt-q2{font-size:13px!important;color:var(--ink-3)!important}
@media (min-width:1024px){
  body.apmt-desk .apmt-head{padding-top:12px}
  .apmt-grid-a{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(340px,1fr);gap:16px;align-items:start}
  .apmt-col{display:flex;flex-direction:column;gap:14px;min-width:0}
  .apmt-pair{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start}
  .apmt-pair>:only-child{grid-column:1/-1}
  .apmt-side{position:sticky;top:12px}
  .apmt-side .apmt-talk{height:calc(100vh - var(--apmt-top,64px) - 112px);max-height:740px}
  .apmt-hero .apmt-actions{flex-wrap:nowrap}
  .apmt-hero .apmt-opens{flex:1 1 auto;flex-basis:auto;min-width:0}
  /* r5 (1440x900: the Files row sat 15 px below the fold): tighter rows in the lower pair */
  .apmt-since .apmt-li.sm{min-height:36px}
  .apmt-past .apmt-prow{min-height:48px}
  .apmt-past .apmt-li{padding:4px 0}
}
@media (max-width:1023px){
  .apmt-main{gap:12px}
  .apmt-talk{height:calc(100dvh - 300px);min-height:420px}
  .apmt-talk .apmt-talk-h{display:none}
  .apmt-wd{min-height:80px;padding:6px 2px}
  .apmt-mk span{display:none}
  .apmt-mk{padding:3px 5px}
  .apmt-hero .apmt-links{margin-left:0}
  .apmt-hero-main{gap:12px}
  .apmt-hero .apmt-ptitle{font-size:24px}
  .apmt-q .apmt-sec{flex-direction:column;align-items:flex-start;gap:2px}
  .apmt-q .apmt-faint{text-align:left}
  .apmt-head .apmt-book{min-height:40px;padding:8px 14px;font-size:15px}
}
@media (min-width:1024px){
  body.apmt-desk .apmt-head{padding-top:6px;min-height:0}
  .apmt-hero{gap:8px;padding:14px 18px}
  .apmt-hero .apmt-qform{min-height:42px}
  .apmt-hero .apmt-qin{height:40px}
  .apmt-wd{min-height:72px}
  .apmt-week{padding:12px 16px 8px}
}
/* The call-note field on every width (its first rules sat inside the desktop calendar block). */
.apmt-qform{display:flex;align-items:center;gap:8px;border:1px solid var(--hair);border-radius:999px;background:var(--glass-strong);padding:4px 8px 4px 16px;min-height:46px}
.apmt-qin{flex:1;min-width:0;height:40px;border:0;background:transparent;color:var(--ink);font:15px var(--f);outline:none}
.apmt-qform:focus-within{border-color:var(--sand)}
