/* ==========================================================================
   JORIE DAILY — notifications.css · Phase 33.8
   Notification badges, Today booking reminders and Calendar → Pending
   Confirmations. Presentation only. Brand palette only (burgundy · pink ·
   beige · white) through the existing tokens; no new fonts, no new
   animation for existing components, no pulsing.

   Badge language (never colour alone — the SHAPE carries meaning too):
     .jd-nb--action   a NUMBER: something needs a response   (burgundy · ivory)
     .jd-nb--update   a DOT (or a soft number when several): something new
                      to know, no action needed                (blush · burgundy)
     .jd-nb--joy      a ringed DOT: a celebration waiting       (blush + ring)
   On the burgundy navigation pill, avatar and menu button the colours
   invert (pink · burgundy) so contrast holds in light AND dark themes.
   ========================================================================== */

:root {
  --nb-action-bg: var(--burgundy);
  --nb-action-ink: var(--beige);
  --nb-update-bg: var(--pink);
  --nb-update-ink: var(--burgundy);
  --nb-update-ring: rgb(var(--burgundy-rgb) / 0.6);
  --nb-joy-bg: var(--pink);
  --nb-joy-ring: var(--burgundy);
  --nb-cut: var(--surface);
}
:root[data-theme="dark"] {
  --nb-action-bg: var(--pink);
  --nb-action-ink: var(--burgundy);
  --nb-update-bg: rgb(var(--beige-rgb) / 0.9);
  --nb-update-ink: var(--burgundy);
  --nb-update-ring: transparent;
  --nb-joy-bg: var(--pink);
  --nb-joy-ring: var(--beige);
}
/* Burgundy surfaces: the nav pill, the avatar, the phone menu button */
.nav, .menu-toggle, .profile__btn {
  --nb-action-bg: var(--pink);
  --nb-action-ink: var(--burgundy);
  --nb-update-bg: var(--beige);
  --nb-update-ink: var(--burgundy);
  --nb-update-ring: transparent;
  --nb-joy-bg: var(--pink);
  --nb-joy-ring: var(--beige);
  --nb-cut: var(--nav-bg);
}
/* …but the open dropdowns inside the nav are ordinary surfaces again */
.nav .nav-cal__menu {
  --nb-action-bg: var(--burgundy);
  --nb-action-ink: var(--beige);
  --nb-update-bg: var(--pink);
  --nb-update-ink: var(--burgundy);
  --nb-update-ring: rgb(var(--burgundy-rgb) / 0.6);
  --nb-joy-ring: var(--burgundy);
  --nb-cut: var(--surface);
}
:root[data-theme="dark"] .nav .nav-cal__menu {
  --nb-action-bg: var(--pink);
  --nb-action-ink: var(--burgundy);
  --nb-update-bg: rgb(var(--beige-rgb) / 0.9);
  --nb-update-ring: transparent;
  --nb-joy-ring: var(--beige);
}
/* Pink surfaces: the active tab, the open menu button, the open avatar */
.nav__link[aria-current="page"], .nav__link[aria-current="true"],
.is-menu-open .menu-toggle, .profile__btn[aria-expanded="true"] {
  --nb-action-bg: var(--burgundy);
  --nb-action-ink: var(--beige);
  --nb-update-bg: var(--burgundy);
  --nb-joy-bg: var(--burgundy);
  --nb-joy-ring: var(--beige);
  --nb-cut: var(--nav-indicator);
}

/* ---------- the badge itself --------------------------------------------- */
.jd-nb {
  display: inline-grid;
  place-items: center;
  flex: none;
  box-sizing: border-box;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-pill, 999px);
  font-family: var(--font-body);
  font-size: 0.6875rem;          /* 11px */
  font-weight: 700;
  font-style: normal;
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  user-select: none;
}
.jd-nb[hidden] { display: none; }
.jd-nb--action { background: var(--nb-action-bg); color: var(--nb-action-ink); }
.jd-nb--update { background: var(--nb-update-bg); color: var(--nb-update-ink); box-shadow: inset 0 0 0 1.5px var(--nb-update-ring); }
.jd-nb--dot { min-width: 0; width: 8px; height: 8px; padding: 0; }
/* In menus a lone update dot is a touch larger than the "current page" marker. */
.nav-cal__item > .jd-nb--dot, .profile__item > .jd-nb--dot { width: 9px; height: 9px; }
.jd-nb--joy {
  min-width: 0; width: 9px; height: 9px; padding: 0;
  background: radial-gradient(circle at 35% 35%, rgb(var(--white-rgb) / 0.95) 0 18%, var(--nb-joy-bg) 46%);
  box-shadow: 0 0 0 1.5px var(--nb-joy-ring);
}

/* Appear softly once; a changed number nudges once. Never loops. */
@keyframes jdNbIn { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }
@keyframes jdNbBump { 0% { transform: scale(1); } 45% { transform: scale(1.18); } 100% { transform: scale(1); } }
.jd-nb.is-new { animation: jdNbIn 240ms var(--ease-spring, cubic-bezier(0.34, 1.56, 0.64, 1)) both; }
.jd-nb.is-bumped { animation: jdNbBump 260ms var(--ease-out, ease) both; }
@media (prefers-reduced-motion: reduce) {
  .jd-nb.is-new, .jd-nb.is-bumped { animation: none; }
}

/* ---------- placement ----------------------------------------------------- */
/* Top navigation: on the icon's top-right corner, so labels, arrows and the
   sliding pill keep their exact size (the anchor is exactly the icon box). */
.jd-nb-anchor { position: relative; display: inline-grid; place-items: center; flex: none; }
.jd-nb-anchor > .jd-nb {
  position: absolute;
  top: -7px;
  right: -9px;
  box-shadow: 0 0 0 2px var(--nb-cut);
}
.jd-nb-anchor > .jd-nb--update { box-shadow: 0 0 0 2px var(--nb-cut), inset 0 0 0 1.5px var(--nb-update-ring); }
.jd-nb-anchor > .jd-nb--dot { top: -2px; right: -3px; }
.jd-nb-anchor > .jd-nb--joy { top: -2px; right: -3px; box-shadow: 0 0 0 1.5px var(--nb-joy-ring), 0 0 0 3px var(--nb-cut); }

/* Dropdown items (Calendar menu, profile menu): at the row's end */
.nav-cal__item > .jd-nb, .profile__item > .jd-nb { margin-left: auto; }
.nav-cal__item[aria-current="page"]:has(> .jd-nb)::after,
.profile__item[aria-current="page"]:has(> .jd-nb)::after { margin-left: 8px; }

/* Avatar and phone menu button: top-right, outside the round shape */
.profile__btn, .menu-toggle { position: relative; }
.profile__btn > .jd-nb, .menu-toggle > .jd-nb { position: absolute; top: 3px; right: 3px; box-shadow: 0 0 0 2px var(--bg); }
.profile__btn > .jd-nb--joy { box-shadow: 0 0 0 1.5px var(--nb-joy-ring), 0 0 0 3px var(--bg); }

/* Calendar's "Add" button: a small dot when past items wait */
.cal-add { position: relative; }
.cal-add > .jd-nb { position: absolute; top: -4px; right: -4px; box-shadow: 0 0 0 2px var(--surface); }

/* ---------- Today: "A little reminder! ♡" (Marjorie only) ------------------- */
:root:not([data-admin]) .jd-remind { display: none !important; }
.jd-remind {
  margin-top: var(--space-4, 16px);
  padding: clamp(14px, 2.2vw, 20px) clamp(16px, 2.4vw, 22px);
  border-radius: var(--radius-md);
  background: rgb(var(--white-rgb) / 0.62);
  border: 1px solid rgb(var(--burgundy-rgb) / 0.12);
  box-shadow: 0 14px 30px -26px rgb(var(--burgundy-rgb) / 0.55);
  text-wrap: pretty;
}
.jd-remind[hidden] { display: none; }
:root[data-theme="dark"] .jd-remind { background: rgb(var(--pink-rgb) / 0.08); border-color: rgb(var(--pink-rgb) / 0.18); }
.jd-remind__title {
  display: flex; align-items: center; gap: 10px;
  margin: 0;
  font: 600 clamp(1.02rem, 0.96rem + 0.35vw, 1.18rem)/1.3 var(--font-display);
  color: var(--ink);
}
.jd-remind__list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 0; }
.jd-remind__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.jd-remind__item:first-child { border-top: 0; padding-top: 4px; }
.jd-remind__icon {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgb(var(--pink-rgb) / 0.6);
  color: var(--burgundy);
}
:root[data-theme="dark"] .jd-remind__icon { background: rgb(var(--pink-rgb) / 0.16); color: var(--pink); }
.jd-remind__icon .icon { width: 17px; height: 17px; }
.jd-remind__text { margin: 0; font-size: var(--fs-sm); line-height: 1.45; color: var(--ink-2); }
.jd-remind__text strong { color: var(--ink); font-weight: 700; }
.jd-remind__ask { display: block; font-style: italic; }
.jd-remind__item .btn { white-space: nowrap; }
.jd-remind__item.is-saving .btn { opacity: 0.7; }
.jd-remind__done { margin: 0; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.jd-remind__done .plan-btn { min-height: 32px; }
.jd-remind__err { grid-column: 2 / -1; margin: 0; font-size: var(--fs-xs); font-weight: 600; color: var(--ds-attn, var(--ink)); }
.jd-remind__err::before { content: "! "; font-weight: 800; }
.jd-remind__more { margin: 8px 0 0; }
ul.jd-remind__links { list-style: none; margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.jd-remind__links a {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink); text-decoration: none;
  border-radius: var(--radius-xs);
}
.jd-remind__links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.jd-remind__links a:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.jd-remind__links .jd-nb { margin-left: 2px; }
/* Phase 42: "… shared a checklist with you ♡" + the checklist's title. The
   same link list, also on Scotty's Today (the box is otherwise Marjorie-only). */
:root:not([data-admin]) .jd-remind.jd-remind--viewer:not([hidden]) { display: block !important; }
.scotty-hello > .jd-remind--viewer { margin-top: var(--space-4, 16px); }
ul.jd-remind__links.jd-remind__links--first { margin-top: 10px; padding-top: 0; border-top: 0; }
.jd-remind__links a:has(.jd-remind__share) { align-items: flex-start; }
.jd-remind__links a:has(.jd-remind__share) > .icon { margin-top: 3px; flex: none; }
.jd-remind__share { display: grid; gap: 1px; min-width: 0; }
.jd-remind__sub { font-weight: 500; font-style: italic; color: var(--ink-2); overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .jd-remind__item { grid-template-columns: auto minmax(0, 1fr); }
  .jd-remind__item > .btn, .jd-remind__item > .jd-remind__done { grid-column: 1 / -1; justify-self: start; }
}
@media (min-width: 900px) {
  /* Beside the cycle note the welcome grid keeps reminders in the left column */
  .scotty-hello:has(> .cy-note:not([hidden])) > .jd-remind { grid-column: 1; }
}

/* ---------- Calendar → Add → the three choices (Phase 33.9: compact tabs) -----
   The three radio "cards" become one segmented control. The radios, their
   names, values and change handlers are unchanged (arrow keys move between
   them, as before); only the picture changes. Descriptions are no longer
   shown — the dialog title already says which form is open.               */
.entry-type.entry-type--tabs {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin: 0; padding: 4px;
  border: 1px solid var(--line); border-radius: 18px;
  background: rgb(var(--burgundy-rgb) / 0.04);
}
:root[data-theme="dark"] .entry-type.entry-type--tabs { background: rgb(var(--pink-rgb) / 0.06); }
.entry-type.entry-type--tabs[hidden] { display: none; }
.entry-type--tabs .entry-type__card { flex: 1 1 auto; min-width: 0; }
.entry-type--tabs .entry-type__card:active { transform: none; }
.entry-type--tabs .entry-type__body {
  display: flex; align-items: center; justify-content: center;
  height: 100%; min-height: 40px; padding: 6px 14px;
  border: 0; border-radius: 14px; background: transparent; box-shadow: none;
  text-align: center;
}
.entry-type--tabs .entry-type__body > span { display: none; }       /* the old descriptions */
.entry-type--tabs .entry-type__body strong {
  display: inline;
  font-size: var(--fs-sm); font-weight: 600; line-height: 1.2; white-space: nowrap;
  color: var(--ink-2);
}
.entry-type--tabs .entry-type__card:hover .entry-type__body { background: rgb(var(--burgundy-rgb) / 0.05); }
:root[data-theme="dark"] .entry-type--tabs .entry-type__card:hover .entry-type__body { background: rgb(var(--pink-rgb) / 0.08); }
.entry-type--tabs .entry-type__card input:checked + .entry-type__body {
  border: 0;
  background: rgb(var(--pink-rgb) / 0.72);
  box-shadow: inset 0 0 0 1px rgb(var(--burgundy-rgb) / 0.16), 0 6px 14px -12px rgb(var(--burgundy-rgb) / 0.7);
}
.entry-type--tabs .entry-type__card input:checked + .entry-type__body strong { color: var(--burgundy); font-weight: 700; }
:root[data-theme="dark"] .entry-type--tabs .entry-type__card input:checked + .entry-type__body {
  background: rgb(var(--pink-rgb) / 0.2);
  box-shadow: inset 0 0 0 1px rgb(var(--pink-rgb) / 0.38);
}
:root[data-theme="dark"] .entry-type--tabs .entry-type__card input:checked + .entry-type__body strong { color: var(--ink); }
.entry-type--tabs .entry-type__card input:focus-visible + .entry-type__body { outline: 2px solid var(--burgundy); outline-offset: 1px; }
:root[data-theme="dark"] .entry-type--tabs .entry-type__card input:focus-visible + .entry-type__body { outline-color: var(--pink); }
.entry-type--tabs .jd-nb { margin: 0 0 0 7px; vertical-align: 0.08em; }
@media (max-width: 560px) {
  /* Phones: the same three tabs with their short names ("Appointment ·
     Extra Activity · Pending"); the full names stay for screen readers. */
  .entry-type--tabs .et-long {
    position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .entry-type.entry-type--tabs { flex-wrap: nowrap; gap: 3px; padding: 3px; border-radius: 16px; }
  .entry-type--tabs .entry-type__body { min-height: 44px; padding: 4px 8px; border-radius: 13px; }
  .entry-type--tabs .entry-type__body strong { white-space: normal; }
  .entry-type--tabs .entry-type__body strong { font-size: 0.8125rem; }
  .entry-type--tabs .jd-nb { margin-left: 6px; }
}
@media (max-width: 359px) {
  .entry-type--tabs .entry-type__body { padding: 4px 6px; }
  .entry-type--tabs .entry-type__body strong { font-size: 0.78rem; }
  .entry-type--tabs .jd-nb { margin-left: 5px; }
}
:root:not([data-admin]) .entry-type__card--pending { display: none; }

/* ---------- Calendar → Pending Confirmations (Phase 33.9 refinement) --------
   The dialog grows a little (620 → 720 px) while this panel is open, and the
   header, tabs, intro and Done button stay put: only the list scrolls.     */
.sheet.is-pending-mode { width: min(720px, calc(100vw - 32px)); }
.is-pending-mode > .sheet__inner {
  display: flex; flex-direction: column; gap: 14px;
  overflow: hidden;
  padding: clamp(18px, 3.6vw, 30px);
}
.is-pending-mode > .sheet__inner > * { flex: none; }
.is-pending-mode > .sheet__inner > .sheet__actions { margin-top: 2px; }
@media (max-width: 560px) {
  .sheet.is-pending-mode { width: calc(100vw - 20px); }
  .is-pending-mode > .sheet__inner { gap: 12px; padding: 18px 16px 16px; }
  .is-pending-mode > .sheet__inner .sheet__head .confirm__icon { width: 40px; height: 40px; }
  .is-pending-mode > .sheet__inner .sheet__title { font-size: clamp(1.4rem, 6.6vw, 1.75rem); }
}
@media (max-width: 359px) {
  /* The smallest phones: the decorative icon steps aside so the title stays on one line. */
  .is-pending-mode > .sheet__inner .sheet__head .confirm__icon { display: none; }
  .pc__item { padding: 12px; }
  .pc__confirm { padding: 12px 12px 14px; }
}

.pc[hidden] { display: none; }
.pc { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.is-pending-mode > .sheet__inner > #pending-fields { flex: 1 1 auto; }
.pc__intro { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.45; }
.pc__status { margin: 0; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); line-height: 1.4; }
.pc__status:empty { display: none; }
.pc__status.is-ok { color: var(--ink); }
.pc__status.is-error { color: var(--ds-attn, var(--ink)); }
.pc__status.is-busy::before {
  content: ""; display: inline-block; width: 0.8em; height: 0.8em; margin-right: 8px; vertical-align: -0.08em;
  border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
  animation: jdPcSpin 0.8s linear infinite;
}
@keyframes jdPcSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pc__status.is-busy::before { animation: none; border-right-color: currentColor; opacity: 0.5; } }

/* The one scroll area. A little inner padding keeps focus rings unclipped. */
.pc__list {
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  margin: 0 -6px; padding: 0 6px 6px;
  scroll-padding-top: 40px; scroll-padding-bottom: 12px;
}
/* Very short windows (a landscape phone, or the keyboard open on Android):
   the whole sheet scrolls instead, so the minutes field is never squeezed. */
@media (max-height: 540px) {
  .is-pending-mode > .sheet__inner { overflow-y: auto; }
  .is-pending-mode > .sheet__inner .pc__list { overflow: visible; flex: none; }
}

.pc__empty {
  display: grid; justify-items: center; gap: 4px;
  margin: 0; padding: 28px 18px;
  border-radius: var(--radius-sm); background: var(--accent-soft);
  text-align: center; color: var(--ink);
}
.pc__empty:focus { outline: none; }
.pc__empty-title { margin: 0; font-family: var(--font-display); font-size: var(--fs-md); font-weight: 600; }
.pc__empty-text { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); }

/* Date groups: a small heading with a hairline, then ONE card per day with
   soft dividers between its items. Oldest day first (unchanged). */
.pc__days { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.pc__date {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 6px; padding: 6px 2px;
  background: var(--surface);
  font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 700; line-height: 1.3;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-2);
}
.pc__date::after { content: ""; order: 2; flex: 1 1 auto; height: 1px; background: var(--line); }
.pc__date-n { order: 3; flex: none; font-weight: 600; letter-spacing: 0.02em; text-transform: none; color: var(--ink-3); }
.pc__items {
  list-style: none; margin: 0; padding: 0;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); overflow: hidden;
}
.pc__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 18px;
  padding: 14px 16px;
  transition: opacity var(--dur-2, 240ms) ease, transform var(--dur-2, 240ms) ease, background-color 160ms ease;
}
.pc__item + .pc__item { border-top: 1px solid var(--line); }
.pc__item.is-open { background: rgb(var(--pink-rgb) / 0.2); }
:root[data-theme="dark"] .pc__item.is-open { background: rgb(var(--pink-rgb) / 0.06); }
.pc__item.is-leaving { opacity: 0; transform: translateY(-4px); }
@media (prefers-reduced-motion: reduce) { .pc__item { transition: none; } }
.pc__body { min-width: 0; }
.pc__kicker { margin: 0 0 3px; font-size: 0.6875rem; letter-spacing: 0.12em; color: var(--ink-3); }
.pc__title { margin: 0; font-size: var(--fs-base); font-weight: 700; color: var(--ink); line-height: 1.3; overflow-wrap: anywhere; }
.pc__meta { margin: 3px 0 0; font-size: 0.8125rem; font-style: italic; color: var(--ink-3); line-height: 1.35; }

/* Actions: one compact primary, one quiet secondary, same size. */
.pc__actions { display: flex; flex-wrap: nowrap; gap: 8px; justify-content: flex-end; }
.pc__actions .btn {
  --btn-h: 38px; min-height: 38px; min-width: 7.5rem; padding: 0 16px;
  font-size: 0.8125rem; font-weight: 600; white-space: nowrap;
}
.pc__actions .pc__no { background: transparent; border-color: rgb(var(--burgundy-rgb) / 0.2); color: var(--ink-2); }
.pc__actions .pc__no:hover:not(:disabled) { border-color: rgb(var(--burgundy-rgb) / 0.45); color: var(--ink); background: rgb(var(--burgundy-rgb) / 0.04); }
:root[data-theme="dark"] .pc__actions .pc__no { border-color: rgb(var(--pink-rgb) / 0.3); }
:root[data-theme="dark"] .pc__actions .pc__no:hover:not(:disabled) { border-color: rgb(var(--pink-rgb) / 0.6); background: rgb(var(--pink-rgb) / 0.06); }
.pc__actions [aria-expanded="true"].pc__no { border-color: rgb(var(--burgundy-rgb) / 0.45); color: var(--ink); }
:root[data-theme="dark"] .pc__actions [aria-expanded="true"].pc__no { border-color: rgb(var(--pink-rgb) / 0.6); }
.pc__tick { font-weight: 700; }

/* The expanded confirmation: its own small panel under the item. */
.pc__confirm {
  grid-column: 1 / -1;
  display: grid; gap: 14px; justify-items: start;
  margin: 2px 0 0; padding: 16px 16px 18px;
  border-radius: 14px; border: 1px solid rgb(var(--burgundy-rgb) / 0.12);
  background: var(--surface);
}
:root[data-theme="dark"] .pc__confirm { border-color: rgb(var(--pink-rgb) / 0.18); background: rgb(var(--pink-rgb) / 0.04); }
.pc__confirm[hidden] { display: none; }
.pc__confirm > * { margin: 0; max-width: 100%; }
.pc__confirm-title { font-size: var(--fs-sm); font-weight: 700; color: var(--ink); }
.pc__confirm-note { margin-top: -10px !important; font-size: var(--fs-sm); font-style: italic; color: var(--ink-2); line-height: 1.45; }
.pc__confirm-note strong { font-style: normal; font-weight: 600; color: var(--ink); }
.pc__field { display: grid; gap: 6px; justify-items: start; }
.pc__label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.pc__label .field__opt { margin-left: 4px; font-weight: 500; color: var(--ink-3); }
.pc__field .input {
  width: min(100%, 9.5rem); height: 44px; min-height: 44px; padding: 0 14px;
  font-size: 1rem;          /* 16 px: no zoom-in on iPhone when the field is tapped */
}
.pc__field .input[aria-invalid="true"] { border-color: rgb(var(--burgundy-rgb) / 0.55); }
:root[data-theme="dark"] .pc__field .input[aria-invalid="true"] { border-color: rgb(var(--pink-rgb) / 0.7); }
.pc__hint { margin: 0; font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.4; }
.pc__confirm-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pc__confirm-actions .btn { --btn-h: 44px; min-height: 44px; padding: 0 20px; font-size: var(--fs-sm); }

/* Errors: under the form, a small line icon, muted brand colours (no alarm red). */
.pc__err {
  grid-column: 1 / -1; justify-self: stretch;
  display: flex; align-items: flex-start; gap: 9px;
  margin: 0; padding: 10px 12px;
  border-radius: 12px; border: 1px solid rgb(var(--burgundy-rgb) / 0.14);
  background: rgb(var(--pink-rgb) / 0.32);
  font-size: 0.8125rem; font-weight: 400; line-height: 1.45; color: var(--ink);
  overflow-wrap: anywhere;
}
:root[data-theme="dark"] .pc__err { border-color: rgb(var(--pink-rgb) / 0.22); background: rgb(var(--pink-rgb) / 0.1); }
.pc__err strong { font-weight: 650; }
.pc__err-icon {
  flex: none; width: 16px; height: 16px; margin-top: 1px;
  fill: none; stroke: var(--burgundy); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
:root[data-theme="dark"] .pc__err-icon { stroke: var(--pink); }
.pc__more { margin: 14px 0 0; }
.pc__fine { margin: 14px 2px 0; font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.45; }

@media (max-width: 560px) {
  .pc__item { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 14px; }
  .pc__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .pc__actions .btn { --btn-h: 44px; min-height: 44px; min-width: 0; padding: 0 10px; }
  .pc__confirm { padding: 14px 14px 16px; }
  .pc__confirm-actions { width: 100%; }
  .pc__confirm-actions .btn { --btn-h: 44px; min-height: 44px; flex: 1 1 auto; }
}

/* "Didn't attend" on a past appointment in the Calendar */
.plan-status--not-attended { opacity: 0.85; font-style: italic; }

/* Calendar → Personal Appointment → "Already booked with the provider ♡" */
.appt-booked { gap: 4px; }
.appt-booked__row {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px;
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink);
  cursor: pointer;
}
.appt-booked__row input { width: var(--ds-check, 18px); height: var(--ds-check, 18px); margin: 0; flex: none; }


/* Phase 44.11 — mobile notification locator.
   Keep desktop badges exactly as before, but on a phone show each link's
   indicator at the far right of its own row, away from the icon. The
   hamburger is only drawn when one of these destination badges exists. */
@media (max-width: 899px) {
  .has-menu .nav .nav__link > .jd-nb-anchor { position: static; }
  .has-menu .nav .nav__link > .jd-nb-anchor > .jd-nb {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    box-shadow: none;
  }
  .has-menu .nav .nav__link.nav__link--split > .jd-nb-anchor > .jd-nb { right: 10px; }
  .has-menu .nav .nav__link > .jd-nb-anchor > .jd-nb--update {
    box-shadow: inset 0 0 0 1.5px var(--nb-update-ring);
  }
  .has-menu .nav .nav__link > .jd-nb-anchor > .jd-nb--dot,
  .has-menu .nav .nav__link > .jd-nb-anchor > .jd-nb--joy {
    width: 10px;
    height: 10px;
  }
  .has-menu .nav .nav__link > .jd-nb-anchor > .jd-nb.is-new,
  .has-menu .nav .nav__link > .jd-nb-anchor > .jd-nb.is-bumped {
    animation: none;
  }
}
