/**
 * JKB Practitioner workspace — design system
 * Live clinic shell (plum / cream).
 */

:root {
  --pr-ink: #1a1228;
  --pr-ink-soft: #3a3048;
  --pr-muted: #6d6378;
  --pr-line: rgba(70, 35, 95, 0.1);
  --pr-line-strong: rgba(70, 35, 95, 0.18);
  --pr-plum: #5a2878;
  --pr-plum-deep: #1f0b32;
  --pr-rose: #d46a96;
  --pr-coral: #e8727a;
  --pr-violet: #8b6ad4;
  --pr-peach: #ffc09a;
  --pr-mint: #5ecfc0;
  --pr-gold: #f2d59a;
  --pr-champagne: #f8ecd0;
  --pr-paper: #ffffff;
  --pr-bg: #f4efe9;
  --pr-danger: #c0392b;
  --pr-ok: #157a70;
  --pr-warn: #9a6400;
  --pr-font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pr-display: "Fraunces", Georgia, "Times New Roman", serif;
  --pr-grad-primary: linear-gradient(135deg, #e8727a 0%, #d46a96 40%, #8b6ad4 100%);
  --pr-grad-side: linear-gradient(175deg, #14081f 0%, #1f0b32 35%, #3a1558 70%, #5c2868 100%);
  --pr-grad-hero: linear-gradient(128deg, #14081f 0%, #2a0f42 32%, #5a2878 62%, #c45c8a 100%);
  --pr-grad-shine: linear-gradient(115deg, transparent 0%, rgba(255,255,255,.35) 45%, transparent 70%);
  --pr-shadow-xs: 0 1px 2px rgba(20, 8, 31, 0.04);
  --pr-shadow: 0 12px 32px rgba(20, 8, 31, 0.07);
  --pr-shadow-md: 0 20px 50px rgba(20, 8, 31, 0.11);
  --pr-shadow-lg: 0 30px 70px rgba(20, 8, 31, 0.18);
  --pr-shadow-glow: 0 16px 48px rgba(139, 106, 212, 0.35);
  --pr-radius: 18px;
  --pr-radius-lg: 24px;
  --pr-radius-xl: 32px;
  --pr-sidebar: 278px;
  --pr-content: 1200px;
  --pr-ease: cubic-bezier(.22, 1, .36, 1);
  --pr-ease-spring: cubic-bezier(.34, 1.4, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
}

body.pr-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--pr-font);
  color: var(--pr-ink);
  background-color: var(--pr-bg);
  background-image:
    radial-gradient(1100px 480px at -8% -5%, rgba(232, 114, 122, 0.12), transparent 52%),
    radial-gradient(900px 420px at 108% 0%, rgba(139, 106, 212, 0.11), transparent 50%),
    radial-gradient(700px 380px at 50% 100%, rgba(242, 213, 154, 0.1), transparent 48%),
    linear-gradient(180deg, #faf5f0 0%, #f4efe9 45%, #f0e8f2 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.pr-skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: #fff; padding: 8px 12px; border-radius: 10px;
}
.pr-skip:focus { left: 12px; top: 12px; }

/* ===== Ribbon ===== */
.pr-preview-ribbon {
  position: sticky; top: 0; z-index: 90;
  display: flex; flex-wrap: wrap; gap: 8px 14px;
  align-items: center; justify-content: space-between;
  padding: 9px 20px;
  background:
    linear-gradient(105deg, #14081f 0%, #2a0f42 48%, #6b2d68 100%);
  color: rgba(255,255,255,.9);
  font-size: 12px;
  font-weight: 650;
  border-bottom: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 8px 28px rgba(20, 8, 31, 0.25);
}
.pr-preview-ribbon strong {
  font-family: var(--pr-display);
  font-weight: 600;
  color: #fff;
  letter-spacing: -.015em;
  background: linear-gradient(90deg, #fff 0%, var(--pr-champagne) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.pr-preview-ribbon a {
  color: #fff;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  font-size: 11.5px;
  font-weight: 700;
  transition: background .2s ease, transform .2s var(--pr-ease), border-color .2s ease;
}
.pr-preview-ribbon a:hover {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.35);
  transform: translateY(-1px);
}

/* ===== Shell (live — no preview ribbon) ===== */
.pr-shell {
  display: grid;
  grid-template-columns: var(--pr-sidebar) minmax(0, 1fr);
  min-height: 100vh;
}
body.pr-body-live .pr-preview-ribbon {
  display: none !important;
}

/* ===== Sidebar — velvet ===== */
.pr-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  padding: 22px 13px 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #fff;
  background: var(--pr-grad-side);
  border-right: 1px solid rgba(255,255,255,.06);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.2) transparent;
  isolation: isolate;
}
.pr-sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(280px 220px at 0% 0%, rgba(242, 213, 154, 0.18), transparent 58%),
    radial-gradient(300px 260px at 120% 40%, rgba(232, 114, 122, 0.2), transparent 52%),
    radial-gradient(260px 220px at 20% 110%, rgba(139, 106, 212, 0.28), transparent 55%);
  pointer-events: none;
  z-index: 0;
  animation: pr-side-glow 14s ease-in-out infinite alternate;
}
.pr-sidebar::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: .5;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: overlay;
}
@keyframes pr-side-glow {
  from { opacity: 1; transform: scale(1); }
  to { opacity: .88; transform: scale(1.04) translateY(-6px); }
}
.pr-sidebar > * { position: relative; z-index: 1; }

.pr-brand {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
  padding: 2px 8px 18px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.pr-brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-family: var(--pr-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--pr-plum-deep);
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.55), transparent 45%),
    linear-gradient(145deg, #f8ecd0 0%, #ffc09a 48%, #5ecfc0 100%);
  box-shadow:
    0 12px 28px rgba(0,0,0,.3),
    0 0 0 1px rgba(255,255,255,.25) inset,
    0 0 40px rgba(242, 213, 154, 0.25);
  letter-spacing: -.05em;
  position: relative;
}
.pr-brand-mark::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.4);
  opacity: .45;
  pointer-events: none;
}
.pr-brand-copy span {
  display: block;
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .62;
  font-weight: 800;
}
.pr-brand-copy strong {
  display: block;
  font-family: var(--pr-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -.035em;
  margin-top: 2px;
  line-height: 1.1;
  background: linear-gradient(120deg, #fff 20%, var(--pr-champagne) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.pr-brand-copy em {
  display: block;
  font-style: normal;
  font-size: 11.5px;
  opacity: .68;
  margin-top: 3px;
}

.pr-sidebar-status {
  margin: 6px 5px 12px;
  padding: 13px 13px 12px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
}
.pr-sidebar-status strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.25px;
  font-weight: 750;
  margin-bottom: 5px;
}
.pr-sidebar-status span {
  display: block;
  font-size: 11.5px;
  opacity: .7;
  line-height: 1.4;
}
.pr-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pr-mint);
  box-shadow: 0 0 0 4px rgba(94, 207, 192, 0.22), 0 0 16px rgba(94, 207, 192, 0.5);
  flex: 0 0 auto;
  animation: pr-breathe 2.4s ease-in-out infinite;
}
@keyframes pr-breathe {
  0%, 100% { box-shadow: 0 0 0 3px rgba(94, 207, 192, 0.2), 0 0 12px rgba(94, 207, 192, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(94, 207, 192, 0.1), 0 0 22px rgba(94, 207, 192, 0.55); }
}

.pr-nav-label {
  margin: 14px 10px 6px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .4;
}
.pr-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 14px;
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-weight: 650;
  font-size: 13.4px;
  border: 1px solid transparent;
  transition: background .2s var(--pr-ease), color .2s ease, transform .2s var(--pr-ease), box-shadow .2s ease;
}
.pr-nav-link:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
  transform: translateX(3px);
}
.pr-nav-link.is-active {
  background: linear-gradient(135deg, #fff 0%, #faf5f0 100%);
  color: var(--pr-plum-deep);
  box-shadow:
    0 12px 28px rgba(0,0,0,.18),
    0 0 0 1px rgba(255,255,255,.4) inset;
  font-weight: 750;
  transform: none;
}
.pr-nav-ico {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.06);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  flex: 0 0 auto;
}
.pr-nav-link.is-active .pr-nav-ico {
  background: var(--pr-grad-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 14px rgba(139, 106, 212, 0.35);
}
.pr-nav-badge {
  margin-left: auto;
  min-width: 1.4em;
  height: 1.4em;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pr-gold), #e0b86a);
  color: var(--pr-plum-deep);
  font-size: 10.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(242, 213, 154, 0.35);
}
.pr-nav-link.is-active .pr-nav-badge {
  background: var(--pr-grad-primary);
  color: #fff;
  box-shadow: none;
}

.pr-sidebar-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pr-user-chip {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
}
.pr-user-chip .pr-avatar {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: linear-gradient(145deg, #ffc09a, #d46a96 55%, #8b6ad4);
  color: #fff;
  font-size: 12.5px;
  box-shadow: 0 8px 18px rgba(0,0,0,.22);
}
.pr-user-chip strong {
  display: block;
  font-size: 13px;
  font-weight: 750;
}
.pr-user-chip span {
  display: block;
  font-size: 11px;
  opacity: .65;
  margin-top: 1px;
}
.pr-sidebar-foot a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: 12px;
  font-weight: 650;
  padding: 8px 10px;
  border-radius: 11px;
  transition: background .15s ease, color .15s ease;
}
.pr-sidebar-foot a:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}

/* ===== Main ===== */
.pr-main-wrap {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.pr-topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: flex-end;
  justify-content: space-between;
  padding: 26px 30px 0;
  max-width: calc(var(--pr-content) + 60px);
}
.pr-topbar-copy { min-width: 0; flex: 1 1 280px; }
.pr-topbar-copy .pr-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pr-plum);
}
.pr-topbar-copy .pr-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--pr-grad-primary);
  box-shadow: 0 0 12px rgba(212, 106, 150, 0.5);
}
.pr-topbar h1 {
  margin: 9px 0 0;
  font-family: var(--pr-display);
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.08;
  background: linear-gradient(120deg, #1a1228 0%, #4a2268 55%, #c45c8a 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pr-topbar p {
  margin: 9px 0 0;
  color: var(--pr-muted);
  font-size: 14.5px;
  max-width: 48ch;
  line-height: 1.55;
}
.pr-topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.pr-main {
  padding: 18px 30px 60px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: calc(var(--pr-content) + 60px);
  width: 100%;
}

.pr-main > * {
  animation: pr-in .55s var(--pr-ease) both;
}
.pr-main > *:nth-child(1) { animation-delay: .03s; }
.pr-main > *:nth-child(2) { animation-delay: .07s; }
.pr-main > *:nth-child(3) { animation-delay: .11s; }
.pr-main > *:nth-child(4) { animation-delay: .15s; }
.pr-main > *:nth-child(5) { animation-delay: .19s; }
.pr-main > *:nth-child(6) { animation-delay: .23s; }
@keyframes pr-in {
  from { opacity: 0; transform: translateY(14px) scale(.99); }
  to { opacity: 1; transform: none; }
}

/* ===== Buttons — liquid ===== */
.pr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 750;
  font-size: 13.4px;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform .2s var(--pr-ease), box-shadow .2s ease, filter .2s ease;
  white-space: nowrap;
}
.pr-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--pr-grad-shine);
  transform: translateX(-120%);
  transition: transform .55s var(--pr-ease);
  pointer-events: none;
}
.pr-btn:hover::after { transform: translateX(120%); }
.pr-btn:hover { transform: translateY(-2px); }
.pr-btn:active { transform: translateY(0); }
.pr-btn-primary {
  color: #fff;
  background: var(--pr-grad-primary);
  box-shadow:
    0 14px 32px rgba(139, 106, 212, 0.32),
    inset 0 1px 0 rgba(255,255,255,.28);
}
.pr-btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: var(--pr-shadow-glow);
}
.pr-btn-secondary {
  color: var(--pr-plum);
  background: #fff;
  border: 1px solid var(--pr-line);
  box-shadow: var(--pr-shadow);
}
.pr-btn-secondary:hover {
  border-color: var(--pr-line-strong);
  box-shadow: var(--pr-shadow-md);
}
.pr-btn-ghost {
  color: var(--pr-plum);
  background: rgba(90, 40, 120, 0.06);
}
.pr-btn-ghost:hover { background: rgba(90, 40, 120, 0.1); }
.pr-btn-danger {
  color: #fff;
  background: linear-gradient(135deg, #e8727a, #c0392b);
  box-shadow: 0 12px 28px rgba(192, 57, 43, 0.28);
}
.pr-btn-sm {
  min-height: 34px;
  padding: 6px 13px;
  font-size: 12.25px;
}

/* ===== Cards — silk ===== */
.pr-card {
  position: relative;
  background:
    linear-gradient(165deg, rgba(255,255,255,.98) 0%, rgba(255,252,250,.96) 100%);
  border: 1px solid var(--pr-line);
  border-radius: var(--pr-radius-lg);
  box-shadow:
    var(--pr-shadow),
    inset 0 1px 0 rgba(255,255,255,.9);
  padding: 22px 22px 20px;
  overflow: hidden;
  transition: transform .25s var(--pr-ease), box-shadow .25s ease, border-color .25s ease;
}
.pr-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.95), transparent);
  pointer-events: none;
}
.pr-card:hover {
  box-shadow: var(--pr-shadow-md);
  border-color: var(--pr-line-strong);
}
.pr-card h2,
.pr-card h3 {
  margin: 5px 0 7px;
  font-family: var(--pr-display);
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--pr-ink);
}
.pr-card h2 { font-size: 1.28rem; }
.pr-card h3 { font-size: 1.06rem; }
.pr-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2px;
}

.pr-kicker {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(90, 40, 120, 0.07), rgba(139, 106, 212, 0.1));
  border: 1px solid rgba(139, 106, 212, 0.14);
  color: var(--pr-plum);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.pr-muted {
  color: var(--pr-muted);
  font-size: 13.4px;
  line-height: 1.5;
}
.pr-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.pr-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.pr-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.pr-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

/* ===== KPI — jewel tiles ===== */
.pr-kpi {
  position: relative;
  padding: 18px 17px 16px;
  border-radius: 20px;
  background:
    linear-gradient(160deg, #fff 0%, #fdf8fb 55%, #f7f0f8 100%);
  border: 1px solid var(--pr-line);
  box-shadow: var(--pr-shadow), inset 0 1px 0 #fff;
  overflow: hidden;
  transition: transform .25s var(--pr-ease-spring), box-shadow .25s ease;
}
.pr-kpi::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--pr-grad-primary);
  box-shadow: 0 0 12px rgba(212, 106, 150, 0.45);
}
.pr-kpi::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 106, 212, 0.1), transparent 68%);
  pointer-events: none;
}
.pr-kpi.is-alert::before {
  background: linear-gradient(180deg, #e8727a, #d46a96);
  box-shadow: 0 0 12px rgba(232, 114, 122, 0.45);
}
.pr-kpi.is-ok::before {
  background: linear-gradient(180deg, #5ecfc0, #157a70);
  box-shadow: 0 0 12px rgba(94, 207, 192, 0.4);
}
.pr-kpi:hover {
  transform: translateY(-4px);
  box-shadow: var(--pr-shadow-md);
}
.pr-kpi-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding-left: 10px;
}
.pr-kpi-ico {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--pr-plum);
  background: linear-gradient(145deg, rgba(232,114,122,.12), rgba(139,106,212,.14));
  border: 1px solid rgba(139, 106, 212, 0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
.pr-kpi.is-alert .pr-kpi-ico {
  color: #c44a52;
  background: linear-gradient(145deg, rgba(232,114,122,.18), rgba(212,106,150,.12));
}
.pr-kpi.is-ok .pr-kpi-ico {
  color: var(--pr-ok);
  background: linear-gradient(145deg, rgba(94,207,192,.18), rgba(242,213,154,.14));
}
.pr-kpi span.label,
.pr-kpi > span:not(.pr-delta):not(.pr-kpi-ico) {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--pr-muted);
  padding-left: 10px;
}
.pr-kpi strong {
  display: block;
  margin-top: 4px;
  padding-left: 10px;
  font-family: var(--pr-display);
  font-size: 2.05rem;
  font-weight: 600;
  letter-spacing: -.045em;
  color: var(--pr-ink);
  line-height: 1;
}
.pr-kpi em {
  display: block;
  margin-top: 8px;
  padding-left: 10px;
  font-style: normal;
  font-size: 12.25px;
  color: var(--pr-muted);
}
.pr-kpi .pr-delta {
  display: inline-flex;
  margin-top: 11px;
  margin-left: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  background: rgba(94, 207, 192, 0.14);
  color: var(--pr-ok);
  border: 1px solid rgba(94, 207, 192, 0.2);
}
.pr-kpi.is-alert .pr-delta {
  background: rgba(232, 114, 122, 0.1);
  color: #b42318;
  border-color: rgba(232, 114, 122, 0.2);
}
.pr-kpi.is-alert strong { color: #d4555c; }
.pr-kpi.is-ok strong { color: var(--pr-ok); }

/* ===== Hero — cinematic ===== */
.pr-hero {
  display: grid;
  grid-template-columns: 1.35fr .9fr;
  gap: 20px;
  padding: 30px 28px 28px;
  border-radius: var(--pr-radius-xl);
  background: var(--pr-grad-hero);
  color: #fff;
  box-shadow:
    var(--pr-shadow-lg),
    0 0 0 1px rgba(255,255,255,.08) inset,
    0 0 80px rgba(139, 106, 212, 0.15);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.pr-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(520px 300px at 90% 0%, rgba(242, 213, 154, 0.32), transparent 55%),
    radial-gradient(440px 320px at 0% 100%, rgba(139, 106, 212, 0.4), transparent 55%),
    radial-gradient(360px 240px at 60% 80%, rgba(232, 114, 122, 0.28), transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: pr-aurora 16s ease-in-out infinite alternate;
}
.pr-hero::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -80px;
  bottom: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.12), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
@keyframes pr-aurora {
  from { transform: scale(1) translate(0, 0); filter: hue-rotate(0deg); }
  to { transform: scale(1.08) translate(-16px, 10px); filter: hue-rotate(8deg); }
}
.pr-hero > * { position: relative; z-index: 1; }
.pr-hero h2 {
  margin: 12px 0 12px;
  font-family: var(--pr-display);
  font-size: clamp(1.9rem, 3.4vw, 2.65rem);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.05;
  max-width: 13ch;
  text-shadow: 0 12px 40px rgba(0,0,0,.25);
}
.pr-hero p {
  margin: 0;
  opacity: .9;
  line-height: 1.55;
  max-width: 40ch;
  font-size: 15px;
}
.pr-hero-aside {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 22px;
  padding: 18px;
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 16px 40px rgba(0,0,0,.12);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: stretch;
}
.pr-hero-aside strong {
  display: block;
  font-family: var(--pr-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -.025em;
}
.pr-hero-stat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.pr-hero-stat div {
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.1);
  transition: background .2s ease, transform .2s var(--pr-ease);
}
.pr-hero-stat div:hover {
  background: rgba(0,0,0,.26);
  transform: translateY(-2px);
}
.pr-hero-stat b {
  display: block;
  font-family: var(--pr-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -.03em;
}
.pr-hero-stat span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  opacity: .76;
  font-weight: 650;
}
.pr-hero .pr-btn-primary {
  background: #fff;
  color: var(--pr-plum-deep);
  box-shadow: 0 14px 32px rgba(0,0,0,.2);
}
.pr-hero .pr-btn-ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.24);
}
.pr-hero .pr-kicker {
  background: rgba(255,255,255,.14);
  color: #fff;
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 0 20px rgba(255,255,255,.08);
}

/* ===== Pills / avatars ===== */
.pr-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
  background: rgba(90, 40, 120, 0.06);
  color: var(--pr-plum);
  border: 1px solid var(--pr-line);
}
.pr-pill-ok {
  background: linear-gradient(135deg, rgba(94,207,192,.16), rgba(94,207,192,.08));
  color: var(--pr-ok);
  border-color: rgba(94, 207, 192, 0.28);
}
.pr-pill-warn {
  background: linear-gradient(135deg, #fff8e8, #fff2d4);
  color: var(--pr-warn);
  border-color: rgba(242, 213, 154, 0.6);
}
.pr-pill-danger {
  background: linear-gradient(135deg, #fff2f1, #ffe8e6);
  color: var(--pr-danger);
  border-color: rgba(232, 114, 122, 0.3);
}
.pr-pill-info {
  background: linear-gradient(135deg, rgba(139,106,212,.12), rgba(139,106,212,.06));
  color: #4a2d7a;
  border-color: rgba(139, 106, 212, 0.22);
}

.pr-avatar {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(232, 114, 122, 0.22), rgba(139, 106, 212, 0.28));
  color: var(--pr-plum-deep);
  font-weight: 800;
  font-size: 13px;
  flex: 0 0 auto;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.5),
    0 8px 18px rgba(90, 40, 120, 0.1);
}
.pr-avatar-lg {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  font-size: 1.1rem;
}

/* ===== Lists ===== */
.pr-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 10px;
}
.pr-list-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  justify-content: space-between;
  align-items: center;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, transform .2s var(--pr-ease), box-shadow .2s ease;
}
.pr-list-row:hover {
  background: linear-gradient(135deg, rgba(90, 40, 120, 0.035), rgba(232, 114, 122, 0.04));
  border-color: var(--pr-line);
  transform: translateX(3px);
  box-shadow: var(--pr-shadow-xs);
}
.pr-list-row h3 {
  margin: 0 0 3px;
  font-size: .97rem;
  font-weight: 750;
  font-family: var(--pr-font);
  letter-spacing: -.015em;
}
.pr-list-row p { margin: 0; }

/* ===== Table ===== */
.pr-table-wrap {
  overflow-x: auto;
  margin-top: 10px;
  border-radius: 18px;
  border: 1px solid var(--pr-line);
  background: linear-gradient(180deg, #fbf8f6, #fff);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.pr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.4px;
}
.pr-table th {
  text-align: left;
  padding: 12px 14px;
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--pr-muted);
  background: rgba(90, 40, 120, 0.04);
  border-bottom: 1px solid var(--pr-line);
  font-weight: 800;
}
.pr-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(70, 35, 95, 0.06);
  vertical-align: middle;
  background: rgba(255,255,255,.75);
}
.pr-table tr:last-child td { border-bottom: 0; }
.pr-table tbody tr { transition: background .15s ease; }
.pr-table tbody tr:hover td {
  background: linear-gradient(90deg, rgba(250,245,252,.9), #fff);
}

/* ===== Workflow ===== */
.pr-workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.pr-workflow-step {
  padding: 16px 14px;
  border-radius: 18px;
  border: 1px solid var(--pr-line);
  background: linear-gradient(165deg, #fff, #faf5f8);
  box-shadow: var(--pr-shadow-xs);
  transition: transform .25s var(--pr-ease-spring), box-shadow .25s ease, border-color .2s ease;
}
.pr-workflow-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--pr-shadow-md);
  border-color: rgba(139, 106, 212, 0.22);
}
.pr-workflow-step strong {
  display: block;
  font-size: 13.75px;
  margin: 9px 0 4px;
  font-weight: 750;
}
.pr-workflow-step span {
  font-size: 12.25px;
  color: var(--pr-muted);
  line-height: 1.45;
}
.pr-workflow-step b {
  display: inline-flex;
  width: 30px;
  height: 30px;
  border-radius: 11px;
  align-items: center;
  justify-content: center;
  background: var(--pr-grad-primary);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(139, 106, 212, 0.32);
}

/* ===== Tokens / empty / alert ===== */
.pr-token-swatch {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--pr-line);
  box-shadow: var(--pr-shadow);
  background: #fff;
  transition: transform .2s var(--pr-ease);
}
.pr-token-swatch:hover { transform: translateY(-3px); }
.pr-token-swatch i { display: block; height: 80px; }
.pr-token-swatch div { padding: 12px 13px; }
.pr-token-swatch strong { display: block; font-size: 13.25px; }
.pr-token-swatch span { font-size: 12px; color: var(--pr-muted); }

.pr-empty {
  text-align: center;
  padding: 36px 16px;
  color: var(--pr-muted);
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(90,40,120,.03), rgba(232,114,122,.04));
  border: 1px dashed var(--pr-line);
}
.pr-empty strong {
  display: block;
  color: var(--pr-ink);
  margin-bottom: 6px;
  font-family: var(--pr-display);
  font-size: 1.1rem;
}

.pr-alert {
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 13.4px;
  font-weight: 600;
  line-height: 1.45;
  box-shadow: var(--pr-shadow-xs);
}
.pr-alert-ok {
  background: linear-gradient(135deg, #eefaf7, #e6f7f2);
  border: 1px solid rgba(94, 207, 192, 0.35);
  color: var(--pr-ok);
}
.pr-alert-warn {
  background: linear-gradient(135deg, #fff9ed, #fff4dc);
  border: 1px solid rgba(242, 213, 154, 0.55);
  color: #6b4e16;
}
.pr-alert-info {
  background: linear-gradient(135deg, rgba(90, 40, 120, 0.05), rgba(139, 106, 212, 0.06));
  border: 1px solid var(--pr-line);
  color: var(--pr-ink-soft);
}

/* ===== Timeline / panels ===== */
.pr-panel-soft {
  border-radius: 18px;
  padding: 15px;
  background: linear-gradient(160deg, #faf7f9, #f7f2f6);
  border: 1px solid var(--pr-line);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.pr-panel-soft:hover {
  border-color: var(--pr-line-strong);
  box-shadow: var(--pr-shadow-xs);
}
.pr-timeline {
  display: flex;
  flex-direction: column;
  margin-top: 6px;
}
.pr-timeline-item {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 12px;
  padding: 10px 0;
  position: relative;
}
.pr-timeline-item::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 26px;
  bottom: -2px;
  width: 2px;
  background: linear-gradient(180deg, rgba(139,106,212,.4), rgba(232,114,122,.15));
}
.pr-timeline-item:last-child::before { display: none; }
.pr-timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-top: 3px;
  background: var(--pr-grad-primary);
  box-shadow: 0 0 0 4px rgba(139, 106, 212, 0.14), 0 0 16px rgba(212, 106, 150, 0.35);
}
.pr-timeline-item strong {
  display: block;
  font-size: 13.4px;
  font-weight: 750;
}
.pr-timeline-item span {
  font-size: 12.25px;
  color: var(--pr-muted);
}

.pr-progress {
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  overflow: hidden;
  margin-top: 9px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.12);
}
.pr-card .pr-progress,
.pr-finding .pr-progress,
.pr-panel-soft .pr-progress {
  background: rgba(90, 40, 120, 0.08);
  box-shadow: none;
}
.pr-progress > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--pr-grad-primary);
  box-shadow: 0 0 14px rgba(139, 106, 212, 0.45);
  position: relative;
}
.pr-progress > i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  animation: pr-sheen 2.8s ease-in-out infinite;
}
@keyframes pr-sheen {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.pr-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.pr-finding {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--pr-line);
  background: linear-gradient(180deg, #fff, #faf6f3);
  box-shadow: var(--pr-shadow-xs);
  transition: transform .2s var(--pr-ease), box-shadow .2s ease;
}
.pr-finding:hover {
  transform: translateY(-3px);
  box-shadow: var(--pr-shadow-md);
}

/* ===== Auth — night velvet ===== */
.pr-auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px 48px;
  background-color: #14081f;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(232, 114, 122, 0.38), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(139, 106, 212, 0.42), transparent 32%),
    radial-gradient(circle at 50% 100%, rgba(242, 213, 154, 0.18), transparent 38%),
    linear-gradient(155deg, #14081f 0%, #1f0b32 48%, #3a1558 100%);
  position: relative;
  overflow: hidden;
}
.pr-auth-body::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1.5px 1.5px at 18% 28%, rgba(255,255,255,.4), transparent),
    radial-gradient(1.5px 1.5px at 72% 18%, rgba(255,255,255,.28), transparent),
    radial-gradient(1.5px 1.5px at 42% 72%, rgba(255,255,255,.22), transparent),
    radial-gradient(2px 2px at 88% 62%, rgba(255,255,255,.2), transparent),
    radial-gradient(1px 1px at 55% 40%, rgba(255,255,255,.25), transparent);
  opacity: .65;
  pointer-events: none;
  animation: pr-stars 8s ease-in-out infinite alternate;
}
@keyframes pr-stars {
  from { opacity: .5; }
  to { opacity: .8; }
}
.pr-auth-card {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  padding: 36px 32px 30px;
  border-radius: 30px;
  background: linear-gradient(165deg, #fff 0%, #faf6f2 100%);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(90, 40, 120, 0.04),
    0 0 80px rgba(139, 106, 212, 0.15);
  animation: pr-in .65s var(--pr-ease) both;
}
.pr-auth-card h1 {
  margin: 10px 0 8px;
  font-family: var(--pr-display);
  font-size: 2.05rem;
  font-weight: 600;
  letter-spacing: -.04em;
  background: linear-gradient(120deg, #1a1228 0%, #5a2878 60%, #d46a96 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pr-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 13px;
}
.pr-field label,
.pr-field > span {
  font-size: 12.25px;
  font-weight: 750;
  color: var(--pr-ink-soft);
}
.pr-field input:not([type="file"]):not([type="checkbox"]):not([type="radio"]),
.pr-field select,
.pr-field textarea {
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--pr-line);
  padding: 0 14px;
  font: inherit;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.pr-field textarea { padding: 12px 14px; min-height: 96px; resize: vertical; }
.pr-field select { cursor: pointer; }
.pr-field input:not([type="file"]):not([type="checkbox"]):not([type="radio"]):focus,
.pr-field select:focus,
.pr-field textarea:focus {
  outline: none;
  border-color: rgba(139, 106, 212, 0.55);
  box-shadow: 0 0 0 4px rgba(139, 106, 212, 0.14);
}

/* ===== File chooser — plum drop zones (all practitioner pages) ===== */
.pr-file-drop {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 118px;
  margin: 0;
  padding: 18px 14px;
  box-sizing: border-box;
  border: 2px dashed rgba(90, 40, 120, 0.28);
  border-radius: 18px;
  background:
    radial-gradient(420px 140px at 12% 0%, rgba(232, 114, 122, 0.08), transparent 55%),
    radial-gradient(380px 120px at 90% 100%, rgba(139, 106, 212, 0.1), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #faf6f8 100%);
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
  overflow: hidden;
}
.pr-file-drop:hover,
.pr-file-drop:focus-within {
  border-color: rgba(139, 106, 212, 0.62);
  box-shadow: 0 12px 28px rgba(90, 40, 120, 0.1);
  transform: translateY(-1px);
}
.pr-file-drop.is-drag {
  border-style: solid;
  border-color: #8b6ad4;
  box-shadow: 0 0 0 4px rgba(139, 106, 212, 0.16), 0 16px 36px rgba(90, 40, 120, 0.12);
  background: linear-gradient(180deg, #f8f3ff 0%, #fff 100%);
}
.pr-file-drop.is-ready {
  border-style: solid;
  border-color: rgba(21, 122, 112, 0.42);
  background: linear-gradient(180deg, #f3fffb 0%, #fff 70%);
}
.pr-file-drop.is-compact {
  min-height: 72px;
  padding: 12px 12px;
  border-radius: 14px;
}
.pr-file-drop input[type="file"] {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  cursor: pointer !important;
  z-index: 2 !important;
  border: 0 !important;
  background: transparent !important;
  min-height: 0 !important;
  box-shadow: none !important;
  font-size: 0 !important;
}
.pr-file-drop-ui {
  pointer-events: none;
  text-align: center;
  display: grid;
  gap: 5px;
  justify-items: center;
  max-width: 420px;
  z-index: 1;
}
.pr-file-drop-ico {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #5a2878, #c45c8a);
  box-shadow: 0 8px 18px rgba(90, 40, 120, 0.2);
  margin-bottom: 2px;
}
.pr-file-drop.is-compact .pr-file-drop-ico {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 0.95rem;
}
.pr-file-drop-ui strong {
  font-family: var(--pr-display, "Fraunces", Georgia, serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--pr-ink, #1a1228);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.pr-file-drop.is-compact .pr-file-drop-ui strong {
  font-size: 0.95rem;
}
.pr-file-drop-ui span {
  color: var(--pr-muted, #6b5b7a);
  font-size: 12.75px;
  line-height: 1.4;
  font-weight: 600;
}
.pr-file-drop-ui em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #5a2878, #8b6ad4);
  color: #fff;
  font-style: normal;
  font-size: 12.5px;
  font-weight: 750;
  box-shadow: 0 8px 18px rgba(90, 40, 120, 0.22);
}
.pr-file-drop.is-ready .pr-file-drop-ico {
  background: linear-gradient(145deg, #157a70, #3db89f);
}
.pr-file-drop.is-ready .pr-file-drop-ui em {
  background: linear-gradient(135deg, #157a70, #3db89f);
  box-shadow: 0 8px 18px rgba(21, 122, 112, 0.2);
}

/* Bare file inputs (before JS wraps them) — still look intentional */
body.pr-body input[type="file"]:not(.pr-up-file-input):not(.pr-file-native),
body.pr-engine-chrome input[type="file"]:not(.pr-up-file-input):not(.pr-file-native) {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 56px;
  padding: 14px 16px !important;
  border: 2px dashed rgba(90, 40, 120, 0.28) !important;
  border-radius: 16px !important;
  background:
    radial-gradient(320px 100px at 10% 0%, rgba(232, 114, 122, 0.07), transparent 55%),
    linear-gradient(180deg, #fff 0%, #faf6f8 100%) !important;
  color: var(--pr-ink, #1a1228) !important;
  font: inherit !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  cursor: pointer;
  box-shadow: none !important;
}
body.pr-body input[type="file"]:not(.pr-up-file-input):hover,
body.pr-engine-chrome input[type="file"]:not(.pr-up-file-input):hover {
  border-color: rgba(139, 106, 212, 0.55) !important;
}

.pr-auth-card .pr-brand-copy strong {
  background: none;
  -webkit-text-fill-color: var(--pr-ink);
  color: var(--pr-ink);
}
.pr-auth-card .pr-brand-copy span {
  color: var(--pr-muted);
  opacity: 1;
}

/* ===== Mobile nav controls (desktop hidden) ===== */
.pr-nav-open,
.pr-nav-close,
.pr-nav-backdrop {
  display: none;
}
.pr-topbar-lead {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.pr-nav-open {
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--pr-line);
  background: #fff;
  color: var(--pr-ink);
  font: inherit;
  font-weight: 750;
  font-size: 13px;
  cursor: pointer;
  flex: 0 0 auto;
}
.pr-nav-open-bars {
  display: grid;
  gap: 4px;
  width: 18px;
}
.pr-nav-open-bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--pr-ink);
}
.pr-nav-close {
  position: absolute;
  top: 14px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.pr-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(20, 8, 31, 0.55);
  backdrop-filter: blur(4px);
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
}
body.pr-nav-lock {
  overflow: hidden;
}

/* Overflow “More” menus (Sprint A) */
.pr-more-actions {
  position: relative;
  display: inline-block;
}
.pr-more-actions > summary {
  list-style: none;
  cursor: pointer;
}
.pr-more-actions > summary::-webkit-details-marker { display: none; }
.pr-more-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  min-width: 200px;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--pr-line-strong);
  box-shadow: var(--pr-shadow-md);
  display: grid;
  gap: 2px;
}
.pr-more-menu a,
.pr-more-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--pr-ink);
  font: inherit;
  font-size: 13.5px;
  font-weight: 650;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
}
.pr-more-menu a:hover,
.pr-more-menu button:hover {
  background: rgba(90, 40, 120, 0.07);
}
.pr-more-menu form { margin: 0; }

/* Touch-friendly controls — do NOT force min-height on pills (status chips look broken) */
.pr-btn,
.pr-nav-link,
.pr-nav-open {
  min-height: 40px;
}
.pr-pill {
  min-height: 0;
  line-height: 1.25;
}
.pr-table-wrap {
  -webkit-overflow-scrolling: touch;
  overflow-x: auto;
}
.pr-topbar-actions {
  flex-wrap: wrap;
  max-width: 100%;
}

/* ===== Responsive ===== */
@media (max-width: 1140px) {
  .pr-grid-4,
  .pr-workflow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pr-hero { grid-template-columns: 1fr; }
  .pr-hero h2 { max-width: none; }
}
@media (max-width: 900px) {
  .pr-shell { grid-template-columns: 1fr; }
  .pr-nav-open { display: inline-flex; }
  .pr-nav-close { display: grid; place-items: center; }
  .pr-nav-backdrop:not([hidden]) { display: block; }
  .pr-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(300px, 88vw);
    height: 100vh;
    height: 100dvh;
    z-index: 80;
    transform: translateX(-105%);
    transition: transform .28s var(--pr-ease);
    box-shadow: 24px 0 60px rgba(20, 8, 31, 0.35);
  }
  .pr-shell.is-nav-open .pr-sidebar {
    transform: translateX(0);
  }
  .pr-brand {
    padding-right: 48px;
  }
  .pr-grid-2,
  .pr-grid-3 { grid-template-columns: 1fr; }
  .pr-main,
  .pr-topbar {
    padding-left: 16px;
    padding-right: 16px;
  }
  .pr-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .pr-topbar-actions {
    justify-content: flex-start;
  }
  .pr-topbar-actions .pr-btn {
    font-size: 12.5px;
    padding: 8px 12px;
  }
}
@media (max-width: 640px) {
  .pr-grid-4,
  .pr-workflow,
  .pr-hero-stat { grid-template-columns: 1fr; }
  .pr-hero {
    padding: 22px 18px;
    border-radius: 24px;
  }
  .pr-card { padding: 17px; }
  .pr-topbar h1 { font-size: 1.55rem; }
  .pr-nav-open-txt { display: none; }
  .pr-table { font-size: 12.5px; }
  .pr-btn { min-height: 44px; }
}

/* Print: content only */
@media print {
  .pr-sidebar,
  .pr-nav-open,
  .pr-nav-backdrop,
  .pr-topbar-actions,
  .pr-skip { display: none !important; }
  .pr-shell { display: block; }
  .pr-main-wrap,
  .pr-main { padding: 0; max-width: none; }
  body.pr-body { background: #fff; }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .pr-sidebar { transition: none; }
}

/* ===== Notifications (side + topbar) ===== */
.pr-notif-btn {
  position: relative;
  gap: 8px !important;
  align-items: center;
}
.pr-notif-btn .pr-nav-badge {
  margin-left: 2px;
}
.pr-notif-btn.has-unread {
  border-color: rgba(232, 114, 122, 0.45);
  background: linear-gradient(180deg, #fff7f8, #fff);
  box-shadow: 0 8px 22px rgba(232, 114, 122, 0.14);
}
.pr-notif-ico {
  font-size: 1rem;
  line-height: 1;
}
@media (max-width: 640px) {
  .pr-notif-label { display: none; }
}

/* ===== Clear cache (topbar + sidebar) ===== */
.pr-cache-form {
  display: inline-flex;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}
.pr-cache-btn {
  gap: 8px !important;
  align-items: center;
  font-weight: 800 !important;
}
.pr-cache-ico {
  font-size: 1.05rem;
  line-height: 1;
  font-weight: 800;
}
.pr-cache-form-foot {
  width: 100%;
  margin: 0 0 8px;
}
.pr-sidebar-cache-btn {
  width: 100%;
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-size: 12.5px;
  font-weight: 750;
  cursor: pointer;
  text-align: left;
  padding: 0 12px;
}
.pr-sidebar-cache-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}
@media (max-width: 640px) {
  /* keep label so Clear cache stays findable on phones */
  .pr-cache-label { display: inline; }
}

/* ===== Live polish pass ===== */
.pr-btn:focus-visible,
.pr-field input:focus-visible,
.pr-field textarea:focus-visible,
.pr-field select:focus-visible {
  outline: 2px solid var(--pr-peach);
  outline-offset: 2px;
}
/* Sidebar links: never stack outline on top of hover/active (was the double highlight) */
.pr-nav-link:focus,
.pr-nav-link:focus-visible {
  outline: none !important;
  outline-offset: 0 !important;
}
.pr-empty {
  display: grid;
  gap: 8px;
  padding: 28px 20px;
  border-radius: 20px;
  border: 1px dashed var(--pr-line-strong);
  background: linear-gradient(180deg, #fff, #faf7f4);
  text-align: center;
  color: var(--pr-muted);
}
.pr-empty strong {
  color: var(--pr-ink);
  font-family: var(--pr-display);
  font-size: 1.15rem;
  font-weight: 600;
}
.pr-empty span { font-size: 13.5px; line-height: 1.5; }
.pr-table-wrap {
  border-radius: 16px;
  border: 1px solid var(--pr-line);
  overflow: auto;
  background: #fff;
  box-shadow: var(--pr-shadow-xs);
}
.pr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.pr-table th,
.pr-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--pr-line);
  text-align: left;
  vertical-align: top;
}
.pr-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--pr-muted);
  background: #faf7f4;
  font-weight: 800;
}
.pr-table tr:last-child td { border-bottom: 0; }
.pr-table tr:hover td { background: rgba(90,40,120,.03); }
.pr-field textarea,
.pr-field select {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--pr-line);
  padding: 12px 14px;
  font: inherit;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.pr-field textarea { min-height: 120px; resize: vertical; }
.pr-field textarea:focus,
.pr-field select:focus {
  outline: none;
  border-color: rgba(139, 106, 212, 0.55);
  box-shadow: 0 0 0 4px rgba(139, 106, 212, 0.14);
}
.pr-topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.pr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform .15s var(--pr-ease), box-shadow .15s ease, background .15s ease;
}
.pr-btn:hover { transform: translateY(-1px); }
.pr-btn-primary {
  background: var(--pr-grad-primary);
  color: #fff;
  box-shadow: var(--pr-shadow-glow);
}
.pr-btn-secondary {
  background: #fff;
  color: var(--pr-plum);
  border: 1.5px solid rgba(139,106,212,.25);
}
.pr-btn-ghost {
  background: rgba(90,40,120,.06);
  color: var(--pr-plum);
  border: 1px solid rgba(90,40,120,.12);
}
.pr-btn-danger {
  background: #fdecef;
  color: #8a1c38;
  border: 1px solid rgba(196,64,96,.22);
}
.pr-btn-sm { min-height: 34px; padding: 6px 12px; font-size: 12px; }
.pr-alert {
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.45;
  margin-bottom: 12px;
  border: 1px solid transparent;
}
.pr-alert-ok { background: #eefaf7; border-color: rgba(21,122,112,.2); color: #0f5f56; }
.pr-alert-warn { background: #fff7e8; border-color: rgba(154,100,0,.22); color: #7a4a10; }
.pr-alert-info { background: #f6f0fb; border-color: rgba(139,106,212,.2); color: #4a2a6a; }
.pr-card {
  background: #fff;
  border: 1px solid var(--pr-line);
  border-radius: var(--pr-radius-lg);
  padding: 18px;
  box-shadow: var(--pr-shadow);
}
.pr-muted { color: var(--pr-muted); }
.pr-kicker {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(90,40,120,.07);
  color: var(--pr-plum);
  border: 1px solid rgba(139,106,212,.14);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .pr-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .pr-topbar-actions { width: 100%; }
  .pr-btn { flex: 1 1 auto; }
}
/* ===== Phase 10 polish: shared components ===== */
.pr-card h2 { letter-spacing: -0.02em; }
.pr-hero h2 { letter-spacing: -0.03em; }
.pr-btn {
  transition: transform .15s var(--pr-ease), box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.pr-btn:active { transform: translateY(1px); }
.pr-table tbody tr:hover { background: rgba(139, 106, 212, 0.04); }
.pr-list-row {
  transition: background .15s ease, transform .15s ease;
}
.pr-list-row:hover {
  background: rgba(139, 106, 212, 0.05);
}
.pr-panel-soft {
  transition: transform .15s var(--pr-ease), box-shadow .15s ease, border-color .15s ease;
}
.pr-panel-soft:hover {
  transform: translateY(-2px);
  box-shadow: var(--pr-shadow);
  border-color: rgba(139, 106, 212, 0.22);
}
.pr-alert a { font-weight: 750; color: var(--pr-plum); }
.pr-topbar-actions .pr-btn-sm { min-height: 36px; }
@supports not (backdrop-filter: blur(4px)) {
  .pr-nav-backdrop:not([hidden]) { background: rgba(20, 8, 31, 0.72); }
}
/* Safari flex gap fallback */
.pr-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
/* Safe area for notched phones */
@supports (padding: max(0px)) {
  @media (max-width: 900px) {
    .pr-sidebar {
      padding-top: max(22px, env(safe-area-inset-top));
      padding-bottom: max(18px, env(safe-area-inset-bottom));
    }
    .pr-main, .pr-topbar {
      padding-left: max(16px, env(safe-area-inset-left));
      padding-right: max(16px, env(safe-area-inset-right));
    }
  }
}

/* =========================================================
   UI QUALITY PASS — calmer, tighter, more premium clinic shell
   ========================================================= */
:root {
  --pr-content: 1120px;
  --pr-sidebar: 268px;
  --pr-radius-lg: 22px;
}

/* Softer page canvas */
body.pr-body {
  background-image:
    radial-gradient(900px 420px at -6% -8%, rgba(232, 114, 122, 0.09), transparent 55%),
    radial-gradient(780px 380px at 105% 0%, rgba(139, 106, 212, 0.09), transparent 52%),
    linear-gradient(180deg, #faf8f6 0%, #f5f0ea 50%, #f3eef6 100%);
}

/* Sidebar: less noise, clearer hierarchy */
.pr-sidebar {
  padding: 18px 12px 16px;
  gap: 1px;
}
.pr-brand {
  padding: 2px 8px 14px;
  margin-bottom: 2px;
}
.pr-brand-copy strong {
  font-size: 1.08rem;
}
.pr-brand-copy em {
  display: none; /* drop “Your clinic workspace” clutter */
}
.pr-nav-label {
  margin: 16px 10px 5px;
  opacity: 0.38;
  font-size: 9px;
  letter-spacing: 0.14em;
}
.pr-nav-link {
  padding: 9px 11px;
  border-radius: 12px;
  font-size: 13.1px;
  font-weight: 650;
}
.pr-nav-link:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.1);
}
.pr-nav-link.is-active {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}
.pr-nav-ico {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.07);
}

/* Topbar: quieter */
.pr-topbar {
  padding: 22px 28px 0;
  gap: 12px 16px;
}
.pr-topbar h1 {
  font-size: clamp(1.65rem, 2.5vw, 2.05rem);
  letter-spacing: -0.035em;
}
.pr-topbar p {
  font-size: 13.75px;
  max-width: 54ch;
  color: #7a7088;
}
.pr-topbar-copy .pr-eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  opacity: 0.9;
}
.pr-main {
  padding: 16px 28px 48px;
  gap: 16px;
}

/* Hero: stronger but cleaner */
.pr-hero {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 26px 28px;
  background: var(--pr-grad-hero);
  color: #fff;
  box-shadow: 0 22px 56px rgba(20, 8, 31, 0.16);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 20px;
  align-items: stretch;
}
.pr-hero::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -100px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 65%);
  pointer-events: none;
}
.pr-hero h2 {
  margin: 6px 0 8px;
  font-family: var(--pr-display);
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: #fff;
  max-width: 18ch;
}
.pr-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.5;
  max-width: 46ch;
}
.pr-hero .pr-kicker {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
  color: #f2d59a;
}
.pr-hero-aside {
  position: relative;
  z-index: 1;
  border-radius: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  display: grid;
  gap: 12px;
  align-content: start;
}
.pr-hero-stat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pr-hero-stat > div {
  padding: 10px 11px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.pr-hero-stat b {
  display: block;
  font-family: var(--pr-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
}
.pr-hero-stat span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 650;
}

/* Cards: calmer elevation */
.pr-card {
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: 0 10px 28px rgba(20, 8, 31, 0.05);
  border-color: rgba(70, 35, 95, 0.08);
}
.pr-card:hover {
  transform: none;
  box-shadow: 0 14px 36px rgba(20, 8, 31, 0.08);
}
.pr-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}
.pr-card h2 {
  font-size: 1.15rem;
  margin: 4px 0 2px;
}
.pr-kicker {
  font-size: 9.5px;
  letter-spacing: 0.12em;
  padding: 4px 9px;
  background: rgba(90, 40, 120, 0.06);
  border-color: rgba(139, 106, 212, 0.12);
}

/* KPIs */
.pr-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.pr-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.pr-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.pr-kpi {
  position: relative;
  display: block;
  padding: 16px 16px 14px;
  border-radius: 18px;
  background: linear-gradient(165deg, #fff 0%, #faf7f4 100%);
  border: 1px solid rgba(70, 35, 95, 0.08);
  box-shadow: 0 10px 26px rgba(20, 8, 31, 0.05);
  overflow: hidden;
  transition: transform .2s var(--pr-ease), box-shadow .2s ease, border-color .2s ease;
}
.pr-kpi:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(20, 8, 31, 0.09);
  border-color: rgba(139, 106, 212, 0.2);
}
.pr-kpi strong {
  display: block;
  margin-top: 8px;
  font-family: var(--pr-display);
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--pr-ink);
  line-height: 1;
}
.pr-kpi em {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 12.25px;
  color: var(--pr-muted);
  line-height: 1.35;
}
.pr-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pr-kpi-top .label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7a7088;
}
.pr-kpi-ico {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 850;
  color: #5a2878;
  background: #f6f1ff;
  border: 1px solid rgba(139, 106, 212, 0.16);
}
.pr-kpi.is-alert {
  border-color: rgba(232, 114, 122, 0.28);
  background: linear-gradient(165deg, #fff 0%, #fff6f7 100%);
}
.pr-kpi.is-alert strong { color: #a8324a; }
.pr-kpi.is-ok {
  border-color: rgba(21, 122, 112, 0.2);
  background: linear-gradient(165deg, #fff 0%, #f3fbf9 100%);
}

/* Soft action tiles */
.pr-panel-soft {
  display: block;
  padding: 14px 15px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(70, 35, 95, 0.08);
  box-shadow: 0 6px 18px rgba(20, 8, 31, 0.04);
  transition: transform .18s var(--pr-ease), box-shadow .18s ease, border-color .18s ease;
}
.pr-panel-soft:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 106, 212, 0.22);
  box-shadow: 0 14px 30px rgba(20, 8, 31, 0.08);
}
.pr-panel-soft h3 {
  font-family: var(--pr-font);
  font-size: 0.95rem !important;
  font-weight: 750 !important;
  letter-spacing: -0.01em;
  margin: 0 0 4px !important;
}

/* Tables denser + cleaner */
.pr-table-wrap {
  border-radius: 14px;
  border: 1px solid rgba(70, 35, 95, 0.08);
  overflow: auto;
  background: #fff;
  box-shadow: none;
}
.pr-table th {
  background: #faf8f6;
  font-size: 10.5px;
  padding: 10px 12px;
}
.pr-table td {
  padding: 12px;
  font-size: 13.25px;
}
.pr-table tbody tr:hover td {
  background: rgba(139, 106, 212, 0.035);
}

/* Pills */
.pr-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid rgba(90, 40, 120, 0.12);
  background: #f6f1ff;
  color: #5a2878;
  letter-spacing: 0.01em;
}
.pr-pill-ok { background: #eefaf7; border-color: rgba(21,122,112,.2); color: #0f5f56; }
.pr-pill-warn { background: #fff7e8; border-color: rgba(154,100,0,.2); color: #7a4a10; }
.pr-pill-danger { background: #fdecef; border-color: rgba(196,64,96,.22); color: #8a1c38; }
.pr-pill-info { background: #f0eaff; border-color: rgba(139,106,212,.25); color: #4a2a6a; }

/* Buttons: less shiny, more solid */
.pr-btn {
  min-height: 40px;
  padding: 9px 16px;
  font-size: 13px;
  box-shadow: none;
}
.pr-btn::after { display: none; } /* kill shine sweep — felt gimmicky */
.pr-btn-primary {
  box-shadow: 0 10px 24px rgba(139, 106, 212, 0.26);
}
.pr-btn-secondary {
  box-shadow: none;
  border: 1.5px solid rgba(139, 106, 212, 0.22);
}
.pr-btn:hover { transform: translateY(-1px); }

/* Chip row */
.pr-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.pr-chip-row .pr-pill {
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.pr-chip-row a.pr-pill:hover {
  background: #efe6ff;
  border-color: rgba(139, 106, 212, 0.35);
  transform: translateY(-1px);
}

/* Empty / alerts */
.pr-empty {
  border-style: dashed;
  border-color: rgba(90, 40, 120, 0.14);
  background: linear-gradient(180deg, #fff, #faf8f6);
  border-radius: 18px;
  padding: 28px 22px;
}
.pr-alert {
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13.25px;
}

/* List rows */
.pr-list-row {
  padding: 12px 10px;
  border-radius: 12px;
  margin: 0 -6px;
}
.pr-list-row:hover {
  transform: none;
  background: rgba(139, 106, 212, 0.05);
}

/* Reduce motion of entrance for calmer feel */
.pr-main > * {
  animation: none;
}

@media (max-width: 1140px) {
  .pr-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pr-hero { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pr-grid-4,
  .pr-grid-3,
  .pr-grid-2,
  .pr-hero-stat { grid-template-columns: 1fr; }
  .pr-topbar { padding-top: 16px; }
  .pr-main { padding: 12px 16px 36px; }
}

/* ===== Sidebar menu — final stable shell (last-wins) =====
   No layout shift on hover, no animated glow under the pointer,
   brand/close button don't break the grid, pills stay compact. */
.pr-shell {
  align-items: stretch;
}
.pr-sidebar {
  position: sticky !important;
  top: 0 !important;
  align-self: start;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  isolation: isolate;
  /* Keep nav from expanding shell width on long labels */
  min-width: 0;
  width: var(--pr-sidebar, 278px);
  max-width: var(--pr-sidebar, 278px);
  box-sizing: border-box;
}
.pr-sidebar::before {
  animation: none !important;
  transform: none !important;
  opacity: 1 !important;
  pointer-events: none !important;
}
.pr-sidebar::after {
  pointer-events: none !important;
  animation: none !important;
  transform: none !important;
}

/* Brand: mark + copy only; close is absolutely positioned */
.pr-brand {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: center !important;
  padding: 2px 8px 16px !important;
  margin-bottom: 2px !important;
}
.pr-brand-copy {
  min-width: 0;
}
.pr-brand-copy strong,
.pr-brand-copy span,
.pr-brand-copy em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pr-nav-close {
  position: absolute !important;
  top: 6px !important;
  right: 4px !important;
  grid-column: auto !important;
  flex: none !important;
}

.pr-nav-label {
  pointer-events: none;
  user-select: none;
  margin: 12px 10px 5px !important;
  letter-spacing: 0.14em;
}

.pr-nav-link {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  min-height: 42px !important;
  height: auto !important;
  max-height: none !important;
  padding: 8px 10px !important;
  margin: 1px 0 !important;
  border-radius: 12px !important;
  border: 1px solid transparent !important;
  color: rgba(255, 255, 255, 0.88) !important;
  text-decoration: none !important;
  font-weight: 650 !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  translate: none !important;
  scale: none !important;
  transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease !important;
  will-change: auto !important;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
.pr-nav-text {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.pr-nav-ico {
  flex: 0 0 28px !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  border-radius: 9px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: inherit !important;
  transition: none !important;
  transform: none !important;
  line-height: 1 !important;
}
.pr-nav-badge {
  flex: 0 0 auto !important;
  margin-left: 4px !important;
  transform: none !important;
  min-height: 0 !important;
  height: 1.35em !important;
  line-height: 1 !important;
}

/* Focus never adds a second ring/fill on sidebar links */
.pr-sidebar .pr-nav-link:focus,
.pr-sidebar .pr-nav-link:focus-visible,
.pr-sidebar .pr-nav-link:active {
  outline: none !important;
  outline-offset: 0 !important;
}

/* Hover only when NOT the current page — one highlight at a time */
.pr-sidebar .pr-nav-link:hover:not(.is-active):not([aria-current="page"]),
.pr-sidebar .pr-nav-link:focus-visible:not(.is-active):not([aria-current="page"]) {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  transform: none !important;
  translate: none !important;
  box-shadow: none !important;
}
.pr-sidebar .pr-nav-link:hover:not(.is-active):not([aria-current="page"]) .pr-nav-ico,
.pr-sidebar .pr-nav-link:focus-visible:not(.is-active):not([aria-current="page"]) .pr-nav-ico {
  background: rgba(255, 255, 255, 0.16) !important;
  transform: none !important;
}

/* Mouse-down flash — same as hover, not a third style */
.pr-sidebar .pr-nav-link:active:not(.is-active):not([aria-current="page"]) {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Current page — single solid card; hover/focus/active must not layer another effect */
.pr-sidebar .pr-nav-link.is-active,
.pr-sidebar .pr-nav-link.is-active:hover,
.pr-sidebar .pr-nav-link.is-active:focus,
.pr-sidebar .pr-nav-link.is-active:focus-visible,
.pr-sidebar .pr-nav-link.is-active:active,
.pr-sidebar .pr-nav-link[aria-current="page"],
.pr-sidebar .pr-nav-link[aria-current="page"]:hover,
.pr-sidebar .pr-nav-link[aria-current="page"]:focus,
.pr-sidebar .pr-nav-link[aria-current="page"]:focus-visible,
.pr-sidebar .pr-nav-link[aria-current="page"]:active {
  background: linear-gradient(135deg, #ffffff 0%, #faf5f0 100%) !important;
  color: var(--pr-plum-deep, #2a0f42) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16) !important;
  outline: none !important;
  outline-offset: 0 !important;
  transform: none !important;
  translate: none !important;
  font-weight: 750 !important;
}
.pr-sidebar .pr-nav-link.is-active .pr-nav-ico,
.pr-sidebar .pr-nav-link.is-active:hover .pr-nav-ico,
.pr-sidebar .pr-nav-link.is-active:focus .pr-nav-ico,
.pr-sidebar .pr-nav-link.is-active:active .pr-nav-ico,
.pr-sidebar .pr-nav-link[aria-current="page"] .pr-nav-ico {
  background: linear-gradient(135deg, #5a2878, #8b6ad4) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 12px rgba(90, 40, 120, 0.28) !important;
}
.pr-sidebar .pr-nav-link.is-active .pr-nav-badge,
.pr-sidebar .pr-nav-link[aria-current="page"] .pr-nav-badge {
  background: linear-gradient(135deg, #5a2878, #8b6ad4) !important;
  color: #fff !important;
}

/* Foot stable */
.pr-sidebar-foot {
  flex: 0 0 auto;
  margin-top: auto !important;
}
.pr-sidebar-foot a,
.pr-sidebar-foot a:hover,
.pr-sidebar-cache-btn,
.pr-sidebar-cache-btn:hover {
  transform: none !important;
  translate: none !important;
}

/* Compact status pills everywhere */
.pr-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 4px 10px !important;
  font-size: 11.5px !important;
  line-height: 1.25 !important;
  white-space: nowrap;
  transform: none !important;
}

/* Mobile drawer — clean slide, no sticky fight */
@media (max-width: 900px) {
  .pr-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: min(300px, 88vw) !important;
    max-width: min(300px, 88vw) !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 80 !important;
    transform: translateX(-105%) !important;
    transition: transform 0.26s ease !important;
    box-shadow: 24px 0 60px rgba(20, 8, 31, 0.35);
  }
  .pr-shell.is-nav-open .pr-sidebar {
    transform: translateX(0) !important;
  }
  .pr-brand {
    padding-right: 48px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pr-nav-link,
  .pr-nav-link:hover,
  .pr-nav-link.is-active,
  .pr-sidebar {
    transition: none !important;
  }
  .pr-sidebar::before {
    animation: none !important;
  }
}
