/* @ekm-tags: style, misc */
/*
 * Practice Management hub (step 1, owner-approved design 2026-11-22). Scoped to .pmh (js/ekm-pm-hub.js).
 * Every colour comes from the employee's theme (owner 2026-11-21): the Pearl kit tokens (--k-*, --lux-*) where the theme
 * sets them, else the portal's own --c-* names. No hex colours, no pills (owner 2026-11-22), 8px buttons, dot + words status.
 */
.pmh {
  --pmh-ink: var(--k-ink, var(--c-ink));
  --pmh-ink-2: var(--c-ink2, var(--k-ink, var(--c-ink)));
  --pmh-muted: var(--k-muted, var(--c-label, var(--c-muted2, var(--c-muted))));
  --pmh-accent: var(--lux-champagne, var(--c-accent));
  --pmh-surface: var(--k-glass-strong, var(--c-box));
  --pmh-panel: var(--k-glass, var(--c-box));
  --pmh-line: var(--k-hair, var(--c-box-border));
  --pmh-line-strong: var(--k-rule, var(--c-box-border));
  --pmh-hover: var(--k-well, color-mix(in srgb, var(--c-ink) 5%, transparent));
  --pmh-sel: color-mix(in srgb, var(--pmh-accent) 14%, transparent);
  --pmh-cta: var(--k-ink, var(--c-ink));
  --pmh-cta-ink: var(--k-on-ink, var(--c-bg));
  --pmh-ok: var(--k-ok, var(--c-ok, var(--c-success)));
  --pmh-warn: var(--k-warn, var(--c-warn));
  --pmh-bad: var(--k-alert, var(--c-danger));
  --pmh-shadow: var(--k-shadow, 0 18px 40px -28px rgba(0, 0, 0, .35));
  --pmh-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --pmh-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--pmh-ink); font-family: var(--pmh-sans); font-size: 14px; line-height: 1.45;
  background: var(--pmh-panel); border: 1px solid var(--pmh-line); border-radius: 20px; box-shadow: var(--pmh-shadow); overflow: clip;
}
.pmh button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.pmh :focus-visible { outline: 2px solid var(--pmh-accent); outline-offset: 2px; border-radius: 6px; }
.pmh-top { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-end; justify-content: space-between; padding: 22px 28px 18px; border-bottom: 1px solid var(--pmh-line); }
.pmh-eyebrow { margin: 0 0 6px; font: 500 11px/1.2 var(--pmh-sans); letter-spacing: .22em; text-transform: uppercase; color: var(--pmh-muted); }
.pmh-title { font: 400 40px/1.05 var(--pmh-serif); margin: 0; color: var(--pmh-ink); }
.pmh-top-r { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.pmh-error { margin: 14px 28px 0; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--pmh-bad); color: var(--pmh-bad); font-weight: 600; }
.pmh-railsel { display: none; padding: 12px 16px; border-bottom: 1px solid var(--pmh-line); color: var(--pmh-muted); font-size: 12.5px; }
.pmh-railsel select { width: 100%; margin-top: 6px; min-height: 40px; border-radius: 8px; border: 1px solid var(--pmh-line-strong); background: var(--pmh-surface); color: var(--pmh-ink); font: inherit; padding: 0 10px; }

.pmh-body { display: grid; grid-template-columns: 236px minmax(280px, 380px) minmax(0, 1fr); min-height: 70vh; }
.pmh-body.is-home { grid-template-columns: 236px minmax(0, 1fr); }
.pmh-rail { border-right: 1px solid var(--pmh-line); padding: 14px 10px 20px; display: flex; flex-direction: column; gap: 16px; }
.pmh-glabel { font: 600 10.5px/1 var(--pmh-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--pmh-muted); padding: 2px 10px 6px; }
.pmh-q { display: grid !important; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 7px 10px !important; border-radius: 8px; color: var(--pmh-ink-2) !important; }
.pmh-q:hover { background: var(--pmh-hover) !important; color: var(--pmh-ink) !important; }
.pmh-q[aria-current="true"] { background: var(--pmh-sel) !important; color: var(--pmh-ink) !important; font-weight: 600; }
.pmh-q svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.pmh-c { font-size: 12px; color: var(--pmh-muted); font-weight: 500; }
.pmh-c.is-hot { color: var(--pmh-bad); font-weight: 700; }

.pmh-list { border-right: 1px solid var(--pmh-line); min-width: 0; }
.pmh-lhead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 18px 20px 12px; border-bottom: 1px solid var(--pmh-line); }
.pmh-lhead h2 { font: 400 26px/1.1 var(--pmh-serif); margin: 0; color: var(--pmh-ink); }
.pmh-lhead span { font-size: 12.5px; color: var(--pmh-muted); }
.pmh-sub { font: 600 10.5px/1 var(--pmh-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--pmh-muted); padding: 12px 20px 8px; border-bottom: 1px solid var(--pmh-line); background: var(--pmh-hover); }
.pmh-item { display: grid !important; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 3px 12px; align-items: center; width: 100%; padding: 13px 20px !important; border-bottom: 1px solid var(--pmh-line) !important; position: relative; }
.pmh-item:hover { background: var(--pmh-hover) !important; }
.pmh-item[aria-selected="true"] { background: var(--pmh-sel) !important; }
.pmh-item[aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--pmh-accent); }
.pmh-nm { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--pmh-ink); }
.pmh-sm { grid-column: 2; font-size: 13px; color: var(--pmh-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pmh-due { font: 600 12px/1 var(--pmh-sans); color: var(--pmh-muted); white-space: nowrap; }
.pmh-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pmh-line-strong); }
.pmh-dot.ok { background: var(--pmh-ok); } .pmh-dot.warn { background: var(--pmh-warn); } .pmh-dot.bad { background: var(--pmh-bad); }
.pmh-due.bad, .pmh-st.bad { color: var(--pmh-bad); } .pmh-due.warn, .pmh-st.warn { color: var(--pmh-warn); } .pmh-st.ok { color: var(--pmh-ok); }
.pmh-empty { padding: 28px 20px; color: var(--pmh-muted); }
.pmh-note { margin: 12px 20px 0; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--pmh-line); color: var(--pmh-muted); font-size: 13px; }
.pmh-note.is-bad { border-color: var(--pmh-bad); color: var(--pmh-bad); font-weight: 600; }
.pmh-home .pmh-note { margin: 10px 0 0; }

.pmh-detail { padding: 26px 32px 40px; display: flex; flex-direction: column; gap: 22px; min-width: 0; position: sticky; top: 0; align-self: start; max-height: 100vh; overflow-y: auto; }
.pmh-back { display: none !important; }
.pmh-kicker { display: flex; justify-content: space-between; gap: 12px; font: 600 11px/1 var(--pmh-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--pmh-ink-2); }
.pmh-kicker .pmh-due { letter-spacing: .02em; text-transform: none; font-size: 13px; }
.pmh-pname { font: 400 38px/1.05 var(--pmh-serif); margin: 10px 0 4px; color: var(--pmh-ink); }
.pmh-meta { font-size: 13px; color: var(--pmh-muted); }
.pmh-task { font: 600 20px/1.3 var(--pmh-sans); color: var(--pmh-ink); }
.pmh-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pmh .pmh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 8px; border: 1px solid var(--pmh-line-strong); background: var(--pmh-surface); color: var(--pmh-ink); font: 500 14px/1 var(--pmh-sans); white-space: nowrap; }
.pmh .pmh-btn:hover { border-color: var(--pmh-accent); }
.pmh .pmh-primary { background: var(--pmh-cta); color: var(--pmh-cta-ink); border-color: transparent; font-weight: 600; min-height: 52px; padding: 0 26px; font-size: 15px; }
/* dark themes: the primary button is a lit glass button, never a light box (portal contrast guard) */
html:is([data-dark], [data-theme="pearl_night"]) .pmh .pmh-primary { background: color-mix(in srgb, var(--pmh-ink) 16%, transparent); color: var(--pmh-ink); border: 1px solid color-mix(in srgb, var(--pmh-ink) 45%, transparent); }
.pmh .pmh-done { min-height: 52px; padding: 0 22px; font-size: 15px; font-weight: 600; }
.pmh .pmh-done[disabled] { opacity: .6; cursor: progress; }
.pmh .pmh-quiet { border-color: transparent; background: transparent; color: var(--pmh-muted); min-height: 52px; }
.pmh kbd { font: 500 11px/1 var(--pmh-sans); border: 1px solid var(--pmh-line-strong); border-bottom-width: 2px; border-radius: 5px; padding: 2px 6px; color: var(--pmh-ink-2); background: var(--pmh-surface); }
.pmh-hint { margin: 0; font-size: 12.5px; color: var(--pmh-muted); }
.pmh-sect h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; font: 600 11px/1 var(--pmh-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--pmh-ink); }
.pmh-sect h3::after { content: ""; flex: 1; height: 1px; background: var(--pmh-line-strong); }
.pmh-steps, .pmh-log, .pmh-hlist { border: 1px solid var(--pmh-line); border-radius: 12px; background: var(--pmh-surface); overflow: hidden; }
.pmh-stp { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--pmh-line); font-size: 14px; color: var(--pmh-ink); font-weight: 600; }
.pmh-stp:last-child { border-bottom: 0; }
/* owner 2026-11-26: new-patient checklist worked on the card - a done step reads calm, its button sits at the row's end */
.pmh-stp.y .pmh-mk { color: var(--pmh-ok); background: color-mix(in srgb, var(--pmh-ok) 12%, transparent); }
.pmh-stp .pmh-btn, .pmh-stp .pmh-hint { margin-left: auto; }
/* owner 2026-11-26: the fax behind a task, shown on the card */
.pmh .pmh-fax-frame { display: block; width: 100%; height: 560px; border: 1px solid var(--pmh-line); border-radius: 12px; background: var(--pmh-surface); }
.pmh-mk { width: 22px; height: 22px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--pmh-bad); background: color-mix(in srgb, var(--pmh-bad) 12%, transparent); flex: none; }
.pmh-log button { display: grid !important; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; width: 100%; padding: 10px 16px !important; border-bottom: 1px solid var(--pmh-line) !important; font-size: 13.5px; color: var(--pmh-ink-2); }
.pmh-log button:last-child { border-bottom: 0 !important; }
.pmh-log button span:first-child { color: var(--pmh-muted); }
.pmh-log button:hover { background: var(--pmh-hover) !important; }

.pmh-home { display: flex; flex-direction: column; gap: 26px; }
.pmh-glance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pmh-gl { display: flex !important; flex-direction: column; gap: 4px; padding: 18px 20px !important; border: 1px solid var(--pmh-line) !important; border-radius: 14px; background: var(--pmh-surface) !important; box-shadow: var(--pmh-shadow); min-width: 0; }
.pmh-gl:hover { border-color: var(--pmh-accent) !important; }
.pmh-gl-l { font: 600 13px/1.2 var(--pmh-sans); color: var(--pmh-ink); }
.pmh-gl-n { font: 400 44px/1 var(--pmh-serif); margin: 4px 0; color: var(--pmh-ink); }
.pmh-gl-n.bad { color: var(--pmh-bad); } .pmh-gl-n.warn { color: var(--pmh-warn); }
.pmh-gl-s { font-size: 12.5px; color: var(--pmh-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pmh-hcols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.pmh-hcol { display: flex; flex-direction: column; gap: 22px; }
.pmh-upnext { display: grid !important; grid-template-columns: 10px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; width: 100%; padding: 18px 20px !important; border: 1px solid var(--pmh-accent) !important; border-radius: 14px; background: var(--pmh-surface) !important; }
.pmh-un-n { display: block; font: 400 24px/1.1 var(--pmh-serif); color: var(--pmh-ink); }
.pmh-un-t { display: block; font-size: 14px; color: var(--pmh-ink-2); margin-top: 3px; }
.pmh-un-go { font: 600 13px/1 var(--pmh-sans); color: var(--pmh-ink); }
.pmh-hrow { display: grid !important; grid-template-columns: 76px 10px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 11px 16px !important; border-bottom: 1px solid var(--pmh-line) !important; }
.pmh-hrow:last-child { border-bottom: 0 !important; }
.pmh-hrow:hover { background: var(--pmh-hover) !important; }
.pmh-hr-t { font: 400 18px/1 var(--pmh-serif); color: var(--pmh-ink-2); white-space: nowrap; }
.pmh-hr-n { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--pmh-ink); }
.pmh-st { font-size: 12.5px; white-space: nowrap; color: var(--pmh-muted); }
.pmh-prow { grid-template-columns: minmax(0, 1fr) auto; }
.pmh-try { margin-left: 12px; min-height: 44px; }

@media (max-width: 1180px) {
  .pmh-body, .pmh-body.is-home { grid-template-columns: 210px minmax(0, 1fr); }
  .pmh-detail:not(.pmh-homewrap) { position: fixed; top: 0; right: 0; bottom: auto; height: 100vh; height: 100dvh; width: min(580px, 100%); max-height: none; z-index: 1200;
    background: var(--c-bg, var(--pmh-surface)); border-left: 1px solid var(--pmh-line); box-shadow: -30px 0 60px -30px rgba(0, 0, 0, .45);
    padding-top: calc(22px + env(safe-area-inset-top, 0px)); padding-bottom: calc(30px + env(safe-area-inset-bottom, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px));
    transform: translateX(105%); transition: transform .22s ease; }
  .pmh-detail.is-open { transform: none; }
  .pmh-detail.is-open .pmh-back { display: inline-flex !important; align-self: flex-start; }
  .pmh-homewrap { position: static; max-height: none; }
  .pmh-glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pmh-hcols { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .pmh-body, .pmh-body.is-home { grid-template-columns: 1fr; }
  .pmh-rail { display: none; }
  .pmh-railsel { display: block; }
  .pmh-top { padding: 18px 16px; }
  .pmh-title { font-size: 32px; }
  .pmh-detail { padding-left: 16px; }
}
@media (prefers-reduced-motion: reduce) { .pmh-detail { transition: none; } }
/* Website request / message answers on the card (owner 2026-11-24: what they asked for + their message, no second screen) */
.pmh-kv { margin: 0; border: 1px solid var(--pmh-line); border-radius: 12px; background: var(--pmh-surface); overflow: hidden; }
.pmh-kvr { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--pmh-line); }
.pmh-kvr:last-child { border-bottom: 0; }
.pmh-kvr dt { margin: 0; font: 500 12.5px/1.4 var(--pmh-sans); color: var(--pmh-muted); }
.pmh-kvr dd { margin: 0; font: 400 14px/1.5 var(--pmh-sans); color: var(--pmh-ink); overflow-wrap: anywhere; white-space: pre-wrap; }
.pmh-kvr.is-long { grid-template-columns: 1fr; gap: 4px; }
@media (max-width: 640px) { .pmh-kvr { grid-template-columns: 1fr; gap: 4px; } }

/* ══ Luxe layer (owner 2026-11-24: "it looks flat and generic ... a heavy, cramped title, plain boxes, and a big empty page ...
 *    serif display titles, small spaced-out labels, glass panels with metal edges, and a warm glow"). Structure only: every colour
 *    still comes from the employee's theme (the glow and the metal edge are mixes of the theme accent and ink, so Pearl glows warm
 *    champagne and Pearl Night cool silver). No pills, no marble, 8px controls. ══ */
.pmh {
  --pmh-glow: color-mix(in srgb, var(--pmh-accent) 24%, transparent);
  --pmh-glow-soft: color-mix(in srgb, var(--pmh-accent) 10%, transparent);
  --pmh-metal: linear-gradient(135deg,
    color-mix(in srgb, var(--pmh-accent) 70%, transparent) 0%,
    color-mix(in srgb, var(--pmh-ink) 10%, transparent) 34%,
    color-mix(in srgb, var(--pmh-accent) 38%, transparent) 64%,
    color-mix(in srgb, var(--pmh-ink) 8%, transparent) 100%);
  --pmh-glass: var(--k-soft-fill, color-mix(in srgb, var(--pmh-ink) 4%, transparent));
  --pmh-glass-hi: var(--k-soft-fill-hover, color-mix(in srgb, var(--pmh-ink) 7%, transparent));
  --pmh-glass-shadow: var(--k-soft-shadow, var(--pmh-shadow));
  position: relative; isolation: isolate;
  background:
    radial-gradient(900px 420px at 0% 0%, var(--pmh-glow), transparent 62%),
    radial-gradient(700px 380px at 100% 0%, color-mix(in srgb, var(--pmh-ink) 5%, transparent), transparent 60%),
    var(--k-soft-sky, none), var(--pmh-panel);
  border-color: transparent; border-radius: 24px; box-shadow: var(--pmh-glass-shadow);
}
/* the metal edge: a 1px gradient ring drawn on top of each glass panel */
.pmh::after, .pmh .pmh-gl::after, .pmh .pmh-upnext::after, .pmh .pmh-hlist::after, .pmh .pmh-steps::after, .pmh .pmh-log::after,
.pmh .pmh-kv::after, .pmh .pmh-q[aria-current="true"]::after, .pmh .pmh-detail:not(.pmh-homewrap)::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: var(--pmh-metal);
  -webkit-mask: linear-gradient(currentColor 0 0) content-box, linear-gradient(currentColor 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(currentColor 0 0) content-box exclude, linear-gradient(currentColor 0 0);
}
.pmh .pmh-gl, .pmh .pmh-upnext, .pmh .pmh-hlist, .pmh .pmh-steps, .pmh .pmh-log, .pmh .pmh-kv, .pmh .pmh-q { position: relative; }

/* header: a light, airy display title with an italic serif line under it, the glow behind */
.pmh-top { padding: 30px 36px 24px; border-bottom: 0; position: relative; }
.pmh-top::after { content: ""; position: absolute; left: 36px; right: 36px; bottom: 0; height: 1px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--pmh-accent) 55%, transparent), color-mix(in srgb, var(--pmh-ink) 10%, transparent) 45%, transparent); }
.pmh .pmh-eyebrow { font: 500 10.5px/1.2 var(--pmh-sans); letter-spacing: .32em; color: var(--pmh-muted); margin: 0 0 10px; }
.pmh .pmh-title { font-family: var(--pmh-serif) !important; font-weight: 400 !important; font-size: 54px; line-height: 1; letter-spacing: .005em; color: var(--pmh-ink); }
.pmh-subline { margin: 10px 0 0; font: italic 400 18px/1.3 var(--pmh-serif); color: var(--pmh-muted); }

/* the navigation: a quiet glass column; the current queue is a lit glass row with the metal edge */
.pmh-rail { border-right: 0; padding: 18px 12px 24px; gap: 20px; background: linear-gradient(180deg, color-mix(in srgb, var(--pmh-ink) 3%, transparent), transparent 40%); }
.pmh .pmh-glabel { font: 500 10px/1 var(--pmh-sans); letter-spacing: .28em; padding: 2px 12px 8px; }
.pmh .pmh-q { padding: 8px 12px !important; border-radius: 10px; transition: background .15s ease, color .15s ease; }
.pmh .pmh-q[aria-current="true"] { background: var(--pmh-glass-hi) !important; box-shadow: 0 10px 26px -18px var(--pmh-glow); }
.pmh .pmh-q[aria-current="true"] svg { color: var(--pmh-accent); opacity: 1; }
.pmh .pmh-c { font-variant-numeric: tabular-nums; }

/* home: four glass figures, the lead one glowing */
.pmh-homewrap { padding: 30px 36px 44px; }
.pmh-home { gap: 34px; }
.pmh-glance { gap: 16px; }
.pmh .pmh-gl { padding: 22px 24px !important; border: 0 !important; border-radius: 16px; background: var(--pmh-glass) !important; box-shadow: var(--pmh-glass-shadow);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.pmh .pmh-gl:hover { background: var(--pmh-glass-hi) !important; box-shadow: var(--pmh-glass-shadow), 0 18px 44px -24px var(--pmh-glow); transform: translateY(-1px); }
.pmh .pmh-gl.is-lead { box-shadow: var(--pmh-glass-shadow), 0 0 0 1px color-mix(in srgb, var(--pmh-accent) 40%, transparent), 0 24px 60px -26px var(--pmh-glow); }
.pmh .pmh-gl-l { font: 500 10.5px/1.2 var(--pmh-sans); letter-spacing: .24em; text-transform: uppercase; color: var(--pmh-muted); }
.pmh .pmh-gl-n { font: 400 60px/1 var(--pmh-serif); margin: 10px 0 6px; letter-spacing: -.01em; }
.pmh .pmh-gl-s { font-size: 13px; }

/* sections: small spaced labels on a hairline that fades out */
.pmh .pmh-sect h3 { font: 500 10.5px/1 var(--pmh-sans); letter-spacing: .28em; color: var(--pmh-ink-2); margin: 0 0 14px; }
.pmh .pmh-sect h3::after { background: linear-gradient(90deg, color-mix(in srgb, var(--pmh-accent) 45%, transparent), transparent); }

/* lists on the page: glass sheets with the metal edge */
.pmh .pmh-hlist, .pmh .pmh-steps, .pmh .pmh-log, .pmh .pmh-kv { border: 0; border-radius: 16px; background: var(--pmh-glass); box-shadow: var(--pmh-glass-shadow); }
.pmh .pmh-hrow { padding: 13px 18px !important; transition: background .15s ease; }
.pmh .pmh-hrow:hover, .pmh .pmh-log button:hover { background: var(--pmh-glass-hi) !important; }
.pmh .pmh-hr-t { font-size: 20px; }
.pmh .pmh-upnext { border: 0 !important; border-radius: 18px; padding: 22px 24px !important; background: var(--pmh-glass-hi) !important;
  box-shadow: var(--pmh-glass-shadow), 0 26px 60px -30px var(--pmh-glow); }
.pmh .pmh-un-n { font-size: 30px; }

/* the item list and the open item */
.pmh-list { border-right: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--pmh-ink) 2%, transparent), transparent 50%); }
.pmh .pmh-lhead { padding: 24px 22px 14px; border-bottom: 1px solid var(--pmh-line); }
.pmh .pmh-lhead h2 { font-size: 30px; font-weight: 400 !important; font-family: var(--pmh-serif) !important; }
.pmh .pmh-sub { letter-spacing: .26em; font-weight: 500; background: transparent; padding: 16px 22px 8px; }
.pmh .pmh-item { padding: 15px 22px !important; transition: background .15s ease; }
.pmh .pmh-item:hover { background: var(--pmh-glass) !important; }
.pmh .pmh-item[aria-selected="true"] { background: linear-gradient(90deg, var(--pmh-glow-soft), var(--pmh-glass) 70%) !important; }
.pmh .pmh-item[aria-selected="true"]::before { width: 2px; background: var(--pmh-accent); box-shadow: 0 0 14px var(--pmh-glow); }
.pmh .pmh-dot.warn, .pmh .pmh-dot.bad { box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 0%, transparent), 0 0 10px color-mix(in srgb, var(--pmh-warn) 45%, transparent); }
.pmh .pmh-dot.bad { box-shadow: 0 0 10px color-mix(in srgb, var(--pmh-bad) 45%, transparent); }
/* the open item sits on its own glass sheet, never on an empty page */
@media (min-width: 1181px) {
  .pmh .pmh-detail:not(.pmh-homewrap) { margin: 18px 18px 18px 6px; padding: 30px 34px 36px; border-radius: 20px; background: var(--pmh-glass); box-shadow: var(--pmh-glass-shadow); min-height: calc(70vh - 36px); }
}
.pmh .pmh-kicker { font: 500 10.5px/1 var(--pmh-sans); letter-spacing: .26em; color: var(--pmh-muted); }
.pmh .pmh-pname { font-size: 46px; font-weight: 400 !important; font-family: var(--pmh-serif) !important; margin-top: 14px; }
.pmh .pmh-task { font: 500 19px/1.35 var(--pmh-sans); }
.pmh .pmh-btn { border-radius: 8px; transition: border-color .15s ease, box-shadow .15s ease; }
.pmh .pmh-btn:hover { box-shadow: 0 10px 26px -16px var(--pmh-glow); }
.pmh .pmh-primary { box-shadow: 0 14px 34px -18px var(--pmh-glow); }

/* nothing chosen yet: a calm resting state instead of a blank pane */
.pmh-rest { margin: auto 0; min-height: 46vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.pmh-rest-mk { width: 46px; height: 46px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--pmh-accent) 55%, transparent);
  box-shadow: 0 0 0 8px var(--pmh-glow-soft), 0 0 40px var(--pmh-glow); }
.pmh-rest-t { margin: 6px 0 0; font: italic 400 22px/1.3 var(--pmh-serif); color: var(--pmh-ink-2); }

@media (max-width: 720px) { .pmh .pmh-title { font-size: 38px; } .pmh-top { padding: 22px 18px 18px; } .pmh-top::after { left: 18px; right: 18px; } .pmh-homewrap { padding: 20px 16px 30px; } .pmh .pmh-gl-n { font-size: 46px; } }
@media (prefers-reduced-motion: reduce) { .pmh .pmh-gl, .pmh .pmh-q, .pmh .pmh-item, .pmh .pmh-hrow { transition: none; } .pmh .pmh-gl:hover { transform: none; } }
/* glance figures: labels stay on one line, the line under the number may take two */
.pmh .pmh-gl-l { letter-spacing: .13em; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pmh .pmh-gl-s { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.35; }
.pmh .pmh-hrow { grid-template-columns: 96px 10px minmax(0, 1fr) auto; }
.pmh .pmh-prow { grid-template-columns: minmax(0, 1fr) auto; }
/* UX pass (owner 2026-11-24): search, Undo, Later options */
.pmh-find { display: flex; align-items: center; gap: 8px; width: 300px; max-width: 100%; height: 44px; padding: 0 12px; box-sizing: border-box; border-radius: 10px; border: 1px solid var(--pmh-line-strong); background: var(--pmh-glass); color: var(--pmh-muted); }
.pmh-find:focus-within { border-color: var(--pmh-accent); box-shadow: 0 0 0 3px var(--pmh-glow-soft); }
.pmh-find svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.7; flex: none; }
.pmh-find input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--pmh-ink); font: 400 14px/1 var(--pmh-sans); outline: none; }
.pmh-find input::placeholder { color: var(--pmh-muted); }
.pmh-undo { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 20px 0; padding: 10px 12px 10px 16px; border-radius: 10px; border: 1px solid var(--pmh-line-strong); background: var(--pmh-glass-hi); color: var(--pmh-ink-2); font-size: 13.5px; }
.pmh-home > .pmh-undo { margin: 0; }
.pmh .pmh-undo .pmh-btn { min-height: 36px; padding: 0 14px; }
.pmh-later { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.pmh .pmh-later .pmh-btn { min-height: 44px; padding: 0 14px; font-size: 13.5px; }
@media (max-width: 720px) { .pmh-find { width: 100%; } }

/* Website message reply (owner 2026-11-25): theme colours only */
.pmh .pmh-wm-lbl { display: block; font: 600 13px/1.4 var(--pmh-sans); color: var(--pmh-ink); margin: 0 0 8px; }
.pmh .pmh-wm-in, .pmh .pmh-wm-ta { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--pmh-line, currentColor); background: transparent; color: var(--pmh-ink); font: 400 15px/1.45 var(--pmh-sans); }
.pmh .pmh-wm-ta { resize: vertical; min-height: 96px; }
.pmh .pmh-wm-over { color: var(--pmh-bad); font-weight: 600; }

/* Meetings: the collapsed "Already held" heading is a button (owner 2026-11-25) */
.pmh .pmh-sub-btn { display: block; width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer; font: inherit; color: inherit; }
