/* Official NUE screen palette supplied by Abril, October 2026.
   Paid Plus theme inversion is intentionally reserved for a later change. */
:root {
  --nue-light-blue: #29ABE2;
  --nue-deep-blue: #1B1464;
  --nue-deep-blue-rgb: 27 20 100;
  --nue-black: #000000;
  --nue-burgundy: #630313;
  --nue-coral: #FF0037;
  --nue-ink: var(--nue-deep-blue);
  --bg: var(--nue-light-blue);
  --text: var(--nue-ink);
  --muted: #39336f;
  --nue-blue: var(--nue-deep-blue);
  --accent: var(--nue-deep-blue);
  --blue-surface: color-mix(in srgb, var(--nue-light-blue) 14%, white);
}

body { background: var(--bg); color: var(--text); }
/* A flat brand ground keeps Light Blue faithful to the supplied palette. */
body::before { background: var(--bg); filter: none; transform: none; }
.nav { background: #29abe2ed; }
/* Public landing: the introduction sits above an edge-to-edge image card. */
#landing { min-height: 100dvh; background: var(--nue-light-blue); }
#landing .hero { padding: 24px 0 23px; }
#landing .hero-layout { background: transparent; border-radius: 0; padding: 0; }
#landing .hero-copy {
  width: min(100%, 520px); margin: 0 auto; text-align: left;
}
#landing .hero h1 {
  font-size: clamp(26px, 6.1vw, 48px); line-height: 1.12;
  max-width: none; margin: 0 0 18px;
}
.hero-title-line { display: block; white-space: nowrap; }
#landing .hero .lede {
  font-size: 16px; line-height: 1.75;
  max-width: none; margin: 0 0 24px;
}
.hero-image-card {
  position: relative; width: min(100%, 520px); margin: 0 auto;
  border-radius: 40px; overflow: hidden;
}
.hero-promo-image { display: block; width: 100%; height: auto; }
#landing .hero-image-card .actions {
  position: absolute; inset: auto 22px 22px;
  display: flex; margin: 0; padding: 0;
}
#landing .hero-image-card .actions .primary {
  width: 100%; min-height: 56px; margin: 0;
  font-size: 14px; padding: 14px 18px;
}
#landing .links .ghost {
  background: var(--nue-deep-blue); color: #fff;
  border-color: var(--nue-deep-blue);
}
#landing .links .ghost:hover {
  background: color-mix(in srgb, var(--nue-deep-blue) 88%, var(--nue-light-blue));
}
#landing .hero .actions .primary {
  background: #fff; color: var(--nue-deep-blue); border-color: #fff;
}
#landing .hero .actions .primary:hover { background: #eff7fb; }
#landing .nav {
  background: linear-gradient(120deg,
    color-mix(in srgb, var(--nue-light-blue) 92%, var(--nue-deep-blue)),
    color-mix(in srgb, var(--nue-light-blue) 86%, var(--nue-deep-blue)));
  border-bottom: 1px solid #ffffff26;
}
#landing .trust {
  display: flex; align-items: center; gap: 0;
  width: 100%; margin: 48px 0 0; padding: 0;
  min-height: 36px; overflow: hidden;
  background: #fff;
  border: 0;
  font-size: 12px; font-weight: 600; line-height: 1.6;
}
.trust-window {
  flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 20px, black calc(100% - 20px), transparent);
  mask-image: linear-gradient(90deg, transparent, black 20px, black calc(100% - 20px), transparent);
}
.trust-track {
  display: flex; width: max-content;
  animation: trust-scroll-left 24s linear infinite;
}
.trust-group {
  display: flex; align-items: center; justify-content: space-around;
  flex: 0 0 auto; min-width: 100vw; gap: 40px; padding: 0 20px;
}
#landing .trust-group > span {
  display: inline-flex; align-items: center; flex: 0 0 auto;
  white-space: nowrap; color: var(--nue-deep-blue);
}
#landing .trust-group > span::before { content: none; }
.trust-group > span::after { content: "•"; margin-left: 40px; opacity: .5; }
@keyframes trust-scroll-left { to { transform: translateX(-50%); } }
@media(hover:hover) { .trust-window:hover .trust-track { animation-play-state: paused; } }
@media(max-width:760px) {
  #landing .hero { padding-top: 16px; padding-bottom: 22px; }
  #landing .hero h1 { font-size: clamp(24px, 7.7vw, 40px); margin-bottom: 16px; }
  #landing .hero .lede { font-size: 13px; line-height: 1.75; margin: 0 0 20px; }
  .hero-image-card { border-radius: 32px; }
  #landing .hero-image-card .actions { inset: auto 14px 14px; }
  #landing .hero-image-card .actions .primary { min-height: 52px; font-size: 12px; padding: 12px 14px; }
  #landing .trust { margin-top: 40px; min-height: 34px; font-size: 11px; }
}
@media(prefers-reduced-motion:reduce) {
  #landing .trust { padding: 14px 24px; }
  .trust-window { overflow: visible; mask-image: none; -webkit-mask-image: none; }
  .trust-track { width: auto; animation: none; }
  .trust-group { min-width: 0; width: 100%; flex-wrap: wrap; justify-content: center; gap: 10px 20px; padding: 0; }
  .trust-group > span::after { content: none; }
  .trust-group[aria-hidden=true] { display: none; }
}
.nav, .sidebar, .portal, .authwrap { color: var(--nue-ink); }
.wordmark, .wordmark .brand-dot, .brand > span,
.authcard .wordmark, .authcard .wordmark .brand-dot,
.navlink, .hero .eyebrow, .hero .lede, .trust,
.head p, .head .eyebrow, .head h2, .brand-period,
.onboarding-intro h3, .onboarding-intro p, .step, .eyebrow,
.lead, footer, .hero h1, h1 em,
.links .ghost, .hero .actions a, .trust span::before,
.next-card, .next-card h3, .next-card p, .next-card .eyebrow,
.next-card .notice, .control-note, .control-note p,
.control-note .eyebrow, .section-heading .text-button,
.sidebar-foot, .step.active, .step.done,
.treatment-process > summary, .prep-config-row .text-button,
.treatment-process > summary > span,
.treatment-actions-panel > .eyebrow,
.treatment-actions-panel .prep-details-button,
.pgrid > .next-card .notice,
.prep-config-row p, #prepModeSwitchStatus, #internalBack,
.legal-shell, .legal-back, .legal-heading h1, .legal-heading p,
.legal-page-footer, .session-loading .brand-dot, .session-loading p {
  color: var(--nue-ink);
}
.hero h1 em { opacity: 1; }
.brand > span { border-color: rgb(var(--nue-deep-blue-rgb) / .25); }
.topbar .demo, .head .demo {
  color: var(--nue-ink);
  background: #ffffff50;
  border-color: rgb(var(--nue-deep-blue-rgb) / .2);
}
.step::before { border-color: var(--nue-deep-blue); }
.step.active::before, .step.done::before {
  background: var(--nue-deep-blue); border-color: var(--nue-deep-blue);
}
.session-loading { background: var(--bg); color: var(--nue-ink); }
.home-next-step, .plus-card {
  color: var(--nue-ink);
  background: #ffffffcf;
  border-color: #ffffffa6;
}
.home-next-step > .eyebrow, .home-next-step h3,
.home-next-step p, .plus-card h3, .plus-card .plus-caption,
.plus-card .plus-wordmark, .plus-card .plus-intro,
.plus-card .plus-summary, .plus-card .plus-benefits,
.plus-card .plus-free-note, .plus-card .plus-review-note,
.plus-card .plus-benefits p { color: var(--nue-ink); }
.plus-intro, .plus-summary, .plus-review-note,
.plus-benefits p, .plus-free-note { color: var(--nue-ink); }
.plus-wordmark {
  font-family: var(--font-body); font-weight: 600; letter-spacing: -.06em;
}
.plus-wordmark > span { font-weight: 600; }
.prep-mode-switch {
  background: #ffffff5c;
  border-color: rgb(var(--nue-deep-blue-rgb) / .25);
}
.prep-mode-switch button { color: var(--nue-ink); }
.prep-mode-switch button[aria-pressed=true] {
  background: var(--nue-deep-blue); color: white;
}
.patient-nav .menubtn.active {
  background: var(--nue-deep-blue); color: white;
}
.patient-nav .menubtn { color: var(--nue-ink); }

/* Circle keeps its own palette. Light coral surfaces allow burgundy body text
   to stay readable; saturated coral is reserved for accents. */
body:has(#portal.active #pv-circle:not(.hidden)) {
  --bg: color-mix(in srgb, var(--nue-coral) 18%, white);
  --text: var(--nue-burgundy);
  --nue-ink: var(--nue-burgundy);
  background: var(--bg);
}
body:has(#portal.active #pv-circle:not(.hidden))::before {
  background: var(--bg);
}
body:has(#portal.active #pv-circle:not(.hidden)) .circle-heading p,
body:has(#portal.active #pv-circle:not(.hidden)) .circle-status,
body:has(#portal.active #pv-circle:not(.hidden)) #circleRetry,
body:has(#portal.active #pv-circle:not(.hidden)) .sidebar-foot {
  color: var(--nue-burgundy);
}
.circle-flame, .circle-heading h2 .circle-flame { color: var(--nue-coral); }
.circle-nav.active {
  background: var(--nue-burgundy)!important; color: white!important;
}
.circle-nav.active .circle-flame { color: white; }
.patient-nav .circle-nav { justify-content: center; gap: 0; }
.circle-nav-logo { display: block; width: 56px; max-width: 100%; height: 56px; object-fit: contain; flex-shrink: 0; }
.circle-nav:not(.active) .circle-nav-logo { transform: translateY(-4px); }
.circle-nav.active .circle-nav-logo { width: 50px; height: 50px; }
/* Circle has its own space, without the shared NUE page header. */
body:has(#portal.active #pv-circle:not(.hidden)) .sidebar { display: none; }
#circleWorkspace { width: min(100%, 580px); }
.circle-heading { margin-bottom: 24px; }
.circle-day-details { background: transparent; padding: 0; border-radius: 0; }
.circle-record { color: var(--circle-record-ink, #200107); }
#circleDayRecords .circle-record :is(p, small, button) { color: inherit; }
.circle-record-actions button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.circle-record { position: relative; }
.circle-record-open { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.circle-record-open::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.circle-record-copy { display: block; flex: 1; min-width: 0; }
.circle-record-open .circle-storytime { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 12px; line-height: 1.7; }
.circle-record-actions { position: relative; z-index: 1; }
.circle-record-open:focus-visible { outline: none; }
.circle-record:has(.circle-record-open:focus-visible) { outline: 2px solid var(--nue-burgundy); outline-offset: 4px; }
.circle-editor-heading { align-items: center; margin-bottom: 16px; }
.circle-editor-heading h2 { flex: 1; min-width: 0; margin: 0; line-height: 1.2; }
.circle-editor-actions { display: flex; gap: 12px; }
.circle-editor-actions .btn { flex: 1; min-width: 0; min-height: 52px; justify-content: center; font-size: 14px; padding: 14px 12px; }
.circle-editor-actions .circle-editor-delete { background: #e9e9eb; border: 1px solid #e9e9eb; color: #454545; box-shadow: none; }
.circle-editor-actions .circle-editor-delete:hover { background: #dcdcdf; border-color: #dcdcdf; }
.circle-editor-actions .circle-editor-delete:disabled { opacity: .55; cursor: default; }
#circlePartnerUnknown, #circleShareConsent, #circleMedicalConsent { appearance: none; -webkit-appearance: none; flex-shrink: 0; width: 21px; height: 21px; min-height: 21px; margin: 2px 0 0; padding: 0; border: 1.5px solid currentColor; border-radius: 5px; box-shadow: none; background: transparent; cursor: pointer; }
#circlePartnerUnknown:checked, #circleShareConsent:checked, #circleMedicalConsent:checked { background-color: var(--nue-burgundy); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 10 4 4 8-8'/%3E%3C/svg%3E"); background-size: 18px; background-repeat: no-repeat; background-position: center; }
#circlePartnerUnknown:focus-visible, #circleShareConsent:focus-visible, #circleMedicalConsent:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
#circleShareDialog { padding: 24px; background: color-mix(in srgb, var(--nue-coral) 65%, var(--nue-burgundy)); color: #fff; }
#circleShareDialog :is(h2, p, .dialog-close, input) { color: inherit; }
.circle-share-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.circle-share-heading h2 { display: flex; align-items: flex-start; flex: 1; min-width: 0; gap: 9px; margin: 0; font-size: 27px; line-height: 1.25; }
.circle-share-heading h2 span { min-width: 0; }
.circle-share-heading h2 svg { width: 24px; height: 24px; flex-shrink: 0; margin-top: 3px; }
.circle-share-dialog p { font-size: 14px; line-height: 1.85; margin: 20px 0; }
.circle-share-dialog .dialog-close { flex-shrink: 0; background: #ffffff15; border-color: #ffffff66; min-width: 44px; min-height: 44px; }
.circle-share-dialog :focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
#circleShareTitle:focus { outline: none; }
.circle-share-list { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 18px; }
.circle-share-list li { display: flex; gap: 12px; font-size: 13px; line-height: 1.7; }
.circle-share-list svg { width: 22px; height: 22px; flex-shrink: 0; }
.circle-share-check { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; line-height: 1.8; cursor: pointer; margin: 30px 0 22px; }
#circleShareSend, #circleSharePrivate { width: 100%; min-height: 50px; justify-content: center; font-size: 13px; border-radius: 100px; }
#circleShareSend { background: #fff; border-color: #fff; color: var(--nue-burgundy); }
#circleShareSend:disabled { opacity: .45; cursor: default; }
#circleSharePrivate { background: transparent; border: 1px solid #ffffff88; color: #fff; margin-top: 12px; }
#circleShareStatus:empty { display: none; }
#circleShareStatus { font-size: 13px; }
@media(max-width:760px) {
  #circleShareDialog { padding: 20px; }
}
@media(max-width:360px) {
  .circle-share-heading h2 { font-size: 22px; }
  .circle-share-heading h2 svg { width: 22px; height: 22px; margin-top: 2px; }
}
.coverage-plan-field { grid-column: 1 / -1; }
.plan-input-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.plan-input-row > input { flex: 1; width: 0; min-width: 0; }
.field .no-plan-toggle { display: flex; align-items: center; gap: 9px; flex-shrink: 0; max-width: 145px; min-height: 44px; margin: 0; font-size: 12px; font-weight: 400; line-height: 1.5; cursor: pointer; }
.field .no-plan-toggle input { appearance: none; flex-shrink: 0; width: 20px; height: 20px; min-height: 20px; padding: 0; margin: 0; border: 1.5px solid currentColor; border-radius: 5px; background: transparent; color: var(--nue-deep-blue); }
.field .no-plan-toggle input:checked { background: var(--nue-deep-blue); border-color: var(--nue-deep-blue); }
.field .no-plan-toggle input:checked::after { content: ''; display: block; width: 5px; height: 10px; margin: 1px 0 0 5px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.field .no-plan-toggle input:focus-visible { outline: 2px solid var(--nue-deep-blue); outline-offset: 3px; }
.plan-input-row > input:disabled { background: #eef1f4; }
.circle-detail-dialog { width: min(520px, calc(100% - 32px)); padding: 0; overflow-x: hidden; }
.circle-detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 24px; }
.circle-detail-heading h2 { flex: 1; min-width: 0; color: inherit; margin: 0; font-size: clamp(20px, 5.6vw, 27px); line-height: 1.2; }
.circle-detail-heading .dialog-close { flex-shrink: 0; min-width: 44px; min-height: 44px; background: #ffffff26; border: 1px solid currentColor; color: inherit; }
#circleDetailHeading .dialog-close { color: inherit; }
.circle-detail-heading :focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
#circleDetailTitle:focus { outline: none; }
.circle-detail-body { position: relative; padding: 24px; }
.circle-detail-edit { position: absolute; top: 24px; right: 24px; }
.circle-detail-edit svg { width: 21px; height: 21px; }
.circle-detail-body .circle-detail-item:first-child { padding-right: 56px; }
.circle-detail-fields { display: grid; gap: 22px; margin: 0; }
.circle-detail-item { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.circle-detail-item > div { min-width: 0; }
.circle-detail-icon { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 14px; background: #fff0f3; }
.circle-detail-icon svg, .circle-detail-story svg { width: 21px; height: 21px; flex-shrink: 0; }
.circle-detail-item dt { margin: 0 0 5px; font-size: 11px; line-height: 1.5; }
.circle-detail-item dd { margin: 0; font-size: 14px; line-height: 1.65; font-weight: 500; overflow-wrap: anywhere; }
.circle-detail-hearts { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; }
.circle-detail-hearts svg { width: 22px; height: 22px; }
.circle-detail-hearts .is-filled { fill: currentColor; }
.circle-detail-protection { display: block; font-size: 12px; font-weight: 400; margin-top: 3px; }
.circle-detail-story { margin: 26px 0 0; padding-top: 22px; border-top: 1px solid #63031320; }
.circle-detail-story h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 15px; }
.circle-detail-story p { margin: 0; font-size: 14px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
.circle-detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; }
.circle-detail-actions .btn { flex: 1; min-height: 48px; justify-content: center; background: var(--nue-burgundy); border-color: var(--nue-burgundy); color: #fff; font-size: 12px; }
#circleDetailStatus { margin: 18px 0 0; }
#circleDetailShare { flex-basis: 100%; }
.circle-share-options { display: grid; width: 100%; gap: 10px; }
.circle-share-options button { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 15px 16px; text-align: left; font: inherit; font-size: 13px; line-height: 1.6; color: var(--nue-burgundy); background: #fff0f3; border: 1px solid #63031318; border-radius: 18px; }
.circle-share-options button svg { width: 22px; height: 22px; flex-shrink: 0; }
.circle-share-options button span { min-width: 0; overflow-wrap: anywhere; }
.circle-share-options button:hover { background: #ffe0e7; }
.circle-share-options button:focus-visible, .circle-detail-edit:focus-visible { outline: 2px solid var(--nue-burgundy); outline-offset: 3px; }
.circle-sharing-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.circle-sharing-heading h2 { flex: 1; min-width: 0; margin: 0; font-size: 25px; line-height: 1.25; }
.circle-sharing-heading .dialog-close { flex-shrink: 0; min-width: 44px; min-height: 44px; }
.circle-dialog h2[tabindex="-1"]:focus { outline: none; box-shadow: none; }
.circle-sharing-dialog > p { font-size: 13px; line-height: 1.8; margin: 18px 0; }
.circle-sharing-dialog .btn { width: 100%; min-height: 50px; justify-content: center; font-size: 13px; background: var(--nue-burgundy); color: #fff; border-color: var(--nue-burgundy); }
.circle-sharing-dialog .btn:disabled { opacity: .45; cursor: default; }
.circle-medical-check { display: flex; gap: 12px; align-items: flex-start; margin: 24px 0; font-size: 13px; line-height: 1.8; cursor: pointer; }
.circle-medical-story { white-space: pre-wrap; overflow-wrap: anywhere; padding-top: 18px; border-top: 1px solid #63031320; }
.circle-medical-story:empty, #circleMedicalStatus:empty, #circleFriendsStatus:empty { display: none; }
#circleMedicalStatus, #circleFriendsStatus { font-size: 13px; line-height: 1.8; }
.circle-friends-image { display: block; width: 100%; height: auto; border-radius: 24px; }
.circle-friends-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.circle-friends-actions:has(#circleFriendsNative.hidden) { grid-template-columns: 1fr; }
.circle-friends-actions .btn { padding: 12px 8px; font-size: 12px; }
#circleFriendsDialog { width: min(520px, calc(100% - 32px)); }
#circleFriendsDialog .circle-sharing-heading { margin-bottom: 16px; }
#circleFriendsTitle { font-size: clamp(20px, 5.3vw, 25px); }
.internal-circle-shares { margin-top: 30px; }
.internal-circle-shares h3 { font-size: 21px; line-height: 1.4; }
.internal-circle-share { border: 1px solid #e5e7eb; border-radius: 24px; padding: 20px; margin-top: 16px; }
.internal-circle-share h4 { margin: 0 0 16px; }
.internal-circle-share p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.8; }
.internal-circle-share small { font-size: 11px; }
.internal-header { flex-wrap: wrap; }
.internal-sections { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.internal-sections button { min-height: 48px; padding: 12px 18px; border: 1px solid #1b146433; border-radius: 24px; background: #fff; color: var(--nue-deep-blue); font: inherit; font-size: 13px; }
.internal-sections button[aria-pressed=true] { background: var(--nue-deep-blue); color: #fff; }
#internalStorytimes > p, #internalEditorialStatus { font-size: 14px; line-height: 1.8; }
#internalEditorialList { display: grid; gap: 18px; margin: 20px 0; }
.internal-editorial-story { padding: 24px; border-radius: 26px; background: #fff; color: var(--nue-burgundy); }
.internal-editorial-story h2 { margin: 0 0 14px; font-size: 20px; }
.internal-editorial-story p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.85; }
@media(max-width:360px) {
  .circle-detail-heading, .circle-detail-body { padding: 22px 18px; }
  .circle-detail-edit { top: 22px; right: 18px; }
  .circle-sharing-heading h2 { font-size: 22px; }
  .circle-detail-actions { flex-direction: column; align-items: stretch; }
}
@media(min-width:761px) {
  body:has(#portal.active #pv-circle:not(.hidden)) .main { grid-column: 2; grid-row: 1; }
  body:has(#portal.active #pv-circle:not(.hidden)) .patient-nav { top: 32px; max-height: calc(100dvh - 64px); }
}
@media(max-width:760px) {
  body:has(#portal.active #pv-circle:not(.hidden)) .main { padding-top: calc(24px + env(safe-area-inset-top)); }
}
.circle-calendar-card, .circle-day-details, .circle-dialog {
  color: var(--nue-burgundy);
}
.circle-month-actions button, .circle-day, .circle-weekdays,
.circle-legend, .circle-day-details p, .circle-record-summary,
.circle-dialog-description, .circle-dialog .field-help,
.circle-field-note, .circle-optional, .circle-dialog-mark,
.circle-form-status, .circle-dialog .dialog-close,
.circle-record-actions .circle-delete { color: var(--nue-burgundy); }
.circle-day.has-activity > span {
  background: #ffe0e7; color: var(--nue-burgundy);
}
.circle-day.is-selected > span,
.circle-day:focus-visible, .circle-month-actions button:focus-visible {
  outline-color: var(--nue-burgundy);
}
.circle-day small { background: var(--nue-burgundy); }
.circle-activity-dot, .circle-people { color: var(--nue-coral); }
.circle-activity-dot { background: var(--nue-coral); }
.circle-dialog .field label { color: var(--nue-burgundy); }
.circle-protection-field input, .circle-partner-options input,
.circle-unknown-name input { accent-color: var(--nue-burgundy); }
.circle-question .circle-protection-field > label:has(input:checked),
.circle-question .circle-partner-options > label:has(input:checked) {
  border-color: var(--nue-burgundy); color: var(--nue-burgundy);
}
.circle-dialog input:focus, .circle-dialog textarea:focus {
  border-color: var(--nue-burgundy);
  box-shadow: 0 0 0 4px #63031314;
}

/* First Circle visit: a private, account-level introduction. */
.circle-entry-loading { padding: 24px 0; color: var(--nue-burgundy); font-size: 14px; line-height: 1.6; }
.circle-entry-loading p, .circle-entry-loading button { color: inherit; }
.circle-welcome { width: min(100%, 600px); margin: 0 auto; padding: 8px 0 22px; color: #fff; }
.circle-welcome-heading { text-align: center; margin-bottom: 30px; }
.circle-welcome-heading img { display: block; width: 132px; height: 132px; object-fit: contain; margin: 0 auto 26px; }
.circle-welcome-heading h2 { color: #fff; font-size: clamp(26px, 4vw, 36px); line-height: 1.25; font-weight: 600; letter-spacing: -.035em; margin: 0 auto; max-width: 21ch; }
.circle-welcome-copy { text-align: left; }
.circle-welcome-copy p { color: #fff; font-size: 15px; line-height: 1.85; margin: 0 0 22px; }
.circle-welcome-actions { margin-top: 30px; }
.circle-welcome-check { display: flex; align-items: flex-start; gap: 13px; min-height: 44px; cursor: pointer; font-size: 14px; line-height: 1.6; color: #fff; }
.circle-welcome-check input { appearance: auto; -webkit-appearance: checkbox; width: 21px; height: 21px; min-height: 21px; margin: 1px 0 0; padding: 0; border-radius: 3px; accent-color: var(--nue-coral); box-shadow: none; flex-shrink: 0; }
.circle-welcome-check a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.circle-terms-link { color: var(--nue-burgundy); font-size: 12px; line-height: 1.8; min-height: 44px; padding: 10px 0; text-decoration: underline; text-underline-offset: 3px; }
.circle-welcome-actions button { font: inherit; cursor: pointer; min-height: 48px; }
#circleBegin { display: block; width: 100%; min-height: 54px; margin-top: 12px; padding: 14px 20px; border: 1px solid #fff; border-radius: 100px; background: #fff; color: var(--nue-burgundy); font-weight: 600; font-size: 14px; letter-spacing: .06em; }
#circleBegin:disabled { opacity: .45; cursor: default; }
#circleDecline { display: block; margin: 12px auto 0; padding: 10px 14px; border: 0; background: transparent; color: #fff; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
#circleWelcomeStatus { color: #fff; font-size: 13px; line-height: 1.6; margin: 12px 0; }
#circleWelcomeStatus:empty { display: none; }
.circle-welcome :focus-visible { outline: 2px solid #fff; outline-offset: 5px; }
#circleWelcomeTitle:focus { outline: none; }
body:has(#portal.active #pv-circle:not(.hidden) #circleWelcome:not(.hidden)) {
  --bg: var(--nue-burgundy); --text: #fff; background: var(--nue-burgundy);
}
body:has(#portal.active #pv-circle:not(.hidden) #circleWelcome:not(.hidden))::before { background: var(--nue-burgundy); }
body:has(#portal.active #pv-circle:not(.hidden) #circleWelcome:not(.hidden)) .sidebar .wordmark,
body:has(#portal.active #pv-circle:not(.hidden) #circleWelcome:not(.hidden)) .sidebar .brand > span,
body:has(#portal.active #pv-circle:not(.hidden) #circleWelcome:not(.hidden)) .sidebar-foot { color: #fff; }
@media(max-width:760px) {
  .circle-welcome { padding-top: 4px; }
  .circle-welcome-heading img { width: 112px; height: 112px; margin-bottom: 24px; }
  .circle-welcome-heading h2 { font-size: clamp(25px, 6.7vw, 31px); }
  .circle-welcome-copy p { font-size: 14px; line-height: 1.85; }
  .circle-welcome-check { font-size: 13px; }
  .circle-nav-logo { width: 48px; height: 48px; }
  .circle-nav.active .circle-nav-logo { width: 43px; height: 43px; }
  body:has(#portal.active #pv-circle:not(.hidden) #circleWelcome:not(.hidden)) .sidebar::before { background: #630313f2; }
  body:has(#portal.active #pv-circle:not(.hidden) #circleWelcome:not(.hidden)) .patient-nav::before { background: linear-gradient(to top, #630313, #630313e6 35%, #63031300); }
}

@media(max-width:760px) {
  .sidebar::before { background: #29abe2ed; }
  .patient-nav::before {
    background: linear-gradient(to top, #29abe2, #29abe2e6 35%, #29abe200);
  }
  body:has(#portal.active #pv-circle:not(.hidden)) .sidebar::before {
    background: color-mix(in srgb, var(--nue-coral) 18%, white);
  }
  body:has(#portal.active #pv-circle:not(.hidden)) .patient-nav::before {
    background: linear-gradient(to top, #ffd1db, #ffd1dbe6 35%, #ffd1db00);
  }
}

/* Three independent treatment steps with the supplied photos in order. */
#landing #como > .container {
  padding: 0; border: 0; border-radius: 0;
  background: transparent; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
#landing #como h2 { margin: 0 0 26px; text-align: center; }
.how-steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch; gap: 22px; list-style: none; margin: 0; padding: 0;
}
.how-step {
  min-width: 0; background: #fff; color: var(--nue-deep-blue);
  border-radius: 32px; padding: 12px 12px 26px;
  box-shadow: 0 12px 36px rgb(var(--nue-deep-blue-rgb) / .06);
}
.how-step-heading {
  display: flex; align-items: center; gap: 12px; margin: 22px 12px 14px;
}
.how-step-number {
  flex: 0 0 40px; display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; background: var(--blue-surface);
  font-size: 16px; font-weight: 600;
}
.how-step h3 {
  font-size: 26px; line-height: 1.2; letter-spacing: -.035em;
  min-width: 0; margin: 0; color: var(--nue-deep-blue);
}
.how-step p {
  font-size: 14px; line-height: 1.8; margin: 0 12px;
  color: var(--nue-deep-blue);
}
.how-step-media {
  aspect-ratio: 3 / 2; overflow: hidden;
  border-radius: 22px;
}
.how-step-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media(max-width:1000px) {
  .how-step h3 { font-size: 23px; }
}
@media(max-width:760px) {
  .how-steps { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .how-step { padding: 10px 10px 24px; }
  .how-step-heading { margin: 20px 14px 14px; }
  .how-step h3 { font-size: 24px; }
  .how-step p { margin: 0 14px; }
}

/* Public Plus explanation uses its own card, separate from the patient dialog. */
.landing-plus-section h2 { text-align: center; margin: 0 0 26px; }
.landing-plus-card {
  width: min(100%, 760px); margin: 0 auto;
  padding: 12px; border-radius: 32px; background: #fff;
  color: var(--nue-deep-blue); overflow: hidden;
  box-shadow: 0 12px 36px rgb(var(--nue-deep-blue-rgb) / .06);
}
.landing-plus-media { overflow: hidden; border-radius: 22px; }
.landing-plus-media img { display: block; width: 100%; height: auto; }
.landing-plus-copy { padding: 28px 18px 18px; }
.landing-plus-copy h3 {
  margin: 0 0 22px; font-size: clamp(26px, 3vw, 34px);
  line-height: 1.2; letter-spacing: -.035em;
}
.landing-plus-copy p { margin: 0 0 18px; font-size: 15px; line-height: 1.85; }
.landing-plus-copy p:last-child { margin-bottom: 0; }
.landing-plus-closing { padding-top: 4px; }
/* Home keeps compact, still medication illustrations; Treatment retains its animation. */
#pv-inicio .overview-heading { margin-bottom: 24px; }
#pv-inicio .overview-heading h2 { margin-bottom: 0; }
.home-overview, .home-overview:has(.home-quick-followup.hidden) { gap: 24px; }
.home-dose-card .prep-pill { animation: none; transform: none; }
.home-dose-copy h3 { color: var(--nue-deep-blue); }
.home-dose-action {
  grid-column: 1 / -1; width: 100%; justify-content: space-between;
  font-size: 12px; gap: 16px; min-height: 48px; padding: 12px 20px;
}
.doxi-pill {
  display: block; width: 100%; height: auto; object-fit: contain;
  filter: drop-shadow(0 8px 8px rgb(var(--nue-deep-blue-rgb) / .12));
  position: relative; z-index: 1;
}
/* One medication selector and one calendar, with independent records per tablet. */
.medication-carousel { position: relative; }
.medication-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  display: grid; place-items: center; width: 44px; height: 44px;
  padding: 0; border: 1px solid rgb(var(--nue-deep-blue-rgb) / .12);
  border-radius: 50%; background: #ffffffa6; color: var(--nue-deep-blue);
  font-size: 32px; line-height: 1; cursor: pointer;
}
.medication-previous { left: -4px; }
.medication-next { right: -4px; }
.medication-arrow:hover { background: #fff; }
.medication-arrow:disabled { opacity: .5; cursor: wait; }
.medication-arrow:focus-visible, .calendar-medication-picker button:focus-visible {
  outline: 2px solid var(--nue-deep-blue); outline-offset: 3px;
}
.medication-carousel .pill-stage { padding-inline: 28px; }
.dose-hero[data-medication="doxi_pep"] .daily-check-actions .btn[aria-pressed="true"],
.dose-hero[data-medication="doxi_pep"] #markPrepTaken:not([aria-pressed="true"]),
#adherenceDialog[data-medication="doxi_pep"] .daily-check-actions .btn[aria-pressed="true"] {
  background: #2d703b; border-color: #2d703b; color: #fff;
}
.dose-hero[data-medication="doxi_pep"] .daily-check-actions:has(#markPrepNotTaken[aria-pressed="true"]) #markPrepTaken {
  background: #ffffffa3; border-color: #fff; color: var(--nue-deep-blue);
}
.dose-date.has-prep > span, .adherence-day.has-prep::before,
.medication-legend .legend-prep { background: var(--nue-light-blue); }
.dose-date.has-doxi > span, .adherence-day.has-doxi::before,
.medication-legend .legend-doxi { background: #74b86b; }
.dose-date.has-both > span, .adherence-day.has-both::before,
.medication-legend .legend-both {
  background: linear-gradient(90deg, var(--nue-light-blue) 50%, #74b86b 50%);
}
.dose-date.has-prep > span, .dose-date.has-doxi > span,
.adherence-day.has-prep, .adherence-day.has-doxi { color: var(--nue-deep-blue); }
.medication-legend { flex-wrap: wrap; gap: 12px 18px; }
.calendar-medication-picker { display: flex; gap: 6px; margin: 24px 0 18px; }
.calendar-medication-picker button {
  flex: 1; min-height: 44px; padding: 10px 12px; border-radius: 24px;
  border: 1px solid rgb(var(--nue-deep-blue-rgb) / .15);
  background: #f2f7fc; color: var(--nue-deep-blue); font-size: 12px; cursor: pointer;
}
.calendar-medication-picker button[aria-pressed="true"] { background: var(--nue-deep-blue); color: #fff; }
.calendar-medication-picker [data-calendar-medication="doxi_pep"][aria-pressed="true"] { background: #2d703b; border-color: #2d703b; }
#prepOnDemand { grid-area: cycle; }
.home-contact-card {
  grid-column: 1 / -1; padding: 18px; border-radius: 30px;
  background: #ffffffcf; border: 1px solid #ffffffa6;
}
.home-contact-card .btn {
  width: 100%; min-height: 48px; justify-content: space-between; font-size: 13px;
  background: var(--nue-deep-blue); border-color: var(--nue-deep-blue); color: #fff;
}
.home-contact-card .btn:hover { background: #251b83; border-color: #251b83; }
.treatment-config-controls { margin: 18px 0 0; padding-top: 12px; border-top: 1px solid rgb(var(--nue-deep-blue-rgb) / .1); text-align: left; }
.treatment-config-controls .text-button { min-height: 44px; }
.tl.is-current .node { background: var(--nue-deep-blue); }
#requestStatusFeedback { margin: 18px 0 0; font-size: 12px; line-height: 1.7; color: var(--nue-deep-blue); }
#requestStatusFeedback:empty { display: none; }
.pill-reminder-toggle {
  display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 44px; font-size: 12px; line-height: 1.6; cursor: pointer;
  color: var(--nue-deep-blue);
}
.pill-reminder-toggle input[type="checkbox"], #prepConfigDialog .prep-check input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; display: grid; place-items: center;
  flex: 0 0 20px; width: 20px; height: 20px; min-height: 20px;
  margin: 0; padding: 0; border: 1.5px solid var(--nue-deep-blue);
  border-radius: 3px; background: #fff; box-shadow: none; cursor: pointer;
}
.pill-reminder-toggle input:checked, #prepConfigDialog .prep-check input:checked {
  background: var(--nue-deep-blue);
}
.pill-reminder-toggle input:checked::after, #prepConfigDialog .prep-check input:checked::after {
  content: ""; width: 10px; height: 6px; border-left: 2px solid #fff;
  border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg);
}
.pill-reminder-toggle input:focus-visible, #prepConfigDialog .prep-check input:focus-visible {
  outline: 2px solid var(--nue-deep-blue); outline-offset: 3px; box-shadow: none;
}
.pill-reminder-toggle input:disabled { opacity: .45; cursor: default; }
#prepConfigDialog {
  min-width: 0; max-width: calc(100vw - 32px);
  overflow-x: hidden; overflow-y: auto; overscroll-behavior-x: none;
  touch-action: pan-y pinch-zoom;
}
#prepConfigDialog form, #prepConfigDialog .field { min-width: 0; max-width: 100%; }
#prepConfigDialog .field input, #prepConfigDialog .field select {
  width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box;
}
:is(#doxiPlusDialog, #prepPlusDialog, #treatmentPlusCard) {
  --plus-ink: #201B68;
  width: min(640px, calc(100% - 32px)); min-width: 0;
  max-width: calc(100vw - 32px); max-height: min(88dvh, 1080px);
  padding: 36px 40px 40px; border: 0; border-radius: 36px;
  background: #E4EDF2; color: var(--plus-ink);
  overflow-x: hidden; overflow-y: auto; touch-action: pan-y pinch-zoom;
}
:is(#doxiPlusDialog, #prepPlusDialog, #treatmentPlusCard) .dialog-heading { align-items: center; margin: 0 0 28px; }
:is(#doxiPlusDialog, #prepPlusDialog, #treatmentPlusCard) .doxi-plus-logo { display: block; width: 116px; height: auto; max-width: calc(100% - 64px); }
:is(#doxiPlusDialog, #prepPlusDialog, #treatmentPlusCard) .dialog-close { background: #ffffff80; color: var(--plus-ink); border-color: #201b681a; }
:is(#doxiPlusDialog, #prepPlusDialog, #treatmentPlusCard) .dialog-close:focus-visible { outline: 2px solid var(--plus-ink); outline-offset: 3px; }
:is(#doxiPlusDialog, #prepPlusDialog, #treatmentPlusCard) .nue-plus-title { margin: 0 0 18px; font-size: 38px; font-weight: 400; line-height: 1.2; letter-spacing: -.035em; color: inherit; }
:is(#doxiPlusDialog, #prepPlusDialog, #treatmentPlusCard) .doxi-plus-intro { margin: 0 0 32px; font-size: 14px; line-height: 1.8; }
:is(#doxiPlusDialog, #prepPlusDialog, #treatmentPlusCard) .doxi-plus-benefits { display: grid; gap: 26px; padding: 0; margin: 0; list-style: none; }
:is(#doxiPlusDialog, #prepPlusDialog, #treatmentPlusCard) .doxi-plus-benefits li { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: start; gap: 16px; }
:is(#doxiPlusDialog, #prepPlusDialog, #treatmentPlusCard) .doxi-plus-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #D4E1EC; }
:is(#doxiPlusDialog, #prepPlusDialog, #treatmentPlusCard) .doxi-plus-icon .ui-icon { width: 22px; height: 22px; }
:is(#doxiPlusDialog, #prepPlusDialog, #treatmentPlusCard) .doxi-plus-benefits :is(h3, h4) { margin: 0 0 6px; font-size: 15px; font-weight: 600; line-height: 1.5; letter-spacing: -.01em; color: inherit; }
:is(#doxiPlusDialog, #prepPlusDialog, #treatmentPlusCard) .doxi-plus-benefits p { margin: 0; font-size: 13px; font-weight: 400; line-height: 1.8; }
:is(#doxiPlusDialog, #prepPlusDialog, #treatmentPlusCard) .doxi-plus-divider { margin: 30px 0 20px; border: 0; border-top: 1px solid #201b6826; }
:is(#doxiPlusDialog, #prepPlusDialog, #treatmentPlusCard) .doxi-plus-free { margin: 0 0 26px; font-size: 12px; line-height: 1.8; }
:is(#doxiPlusDialog, #prepPlusDialog, #treatmentPlusCard) .doxi-plus-price { display: block; width: 100%; border: 0; font: inherit; cursor: pointer; padding: 24px 16px; border-radius: 24px; background: var(--plus-ink); color: #fff; text-align: center; text-decoration: none; }
:is(#doxiPlusDialog, #prepPlusDialog, #treatmentPlusCard) .doxi-plus-price strong { display: block; margin: 0 0 5px; font-size: 28px; font-weight: 600; line-height: 1.4; letter-spacing: -.025em; }
:is(#doxiPlusDialog, #prepPlusDialog, #treatmentPlusCard) .doxi-plus-price span { display: block; font-size: 12px; line-height: 1.7; }
@media (max-width: 600px) {
  :is(#doxiPlusDialog, #prepPlusDialog, #treatmentPlusCard) { padding: 24px; border-radius: 30px; }
  :is(#doxiPlusDialog, #prepPlusDialog, #treatmentPlusCard) .nue-plus-title { font-size: 31px; }
  :is(#doxiPlusDialog, #prepPlusDialog, #treatmentPlusCard) .doxi-plus-benefits li { gap: 13px; }
  :is(#doxiPlusDialog, #prepPlusDialog, #treatmentPlusCard) .doxi-plus-price strong { font-size: clamp(22px, 6vw, 28px); }
}
#treatmentPlusCard { width: 100%; max-width: none; max-height: none; overflow: visible; box-shadow: none; }
#treatmentPlusCard .nue-plus-title { text-transform: none; }
#treatmentPlusCard .plus-discover { display: flex; justify-content: center; gap: 12px; width: 100%; max-width: none; min-height: 44px; margin-top: 16px; padding: 10px 0; border: 0; background: transparent; color: var(--plus-ink); }
:is(#doxiPlusDialog, #prepPlusDialog, #treatmentPlusCard) .doxi-plus-price:focus-visible { outline: 2px solid var(--plus-ink); outline-offset: 4px; }
:is(#doxiPlusDialog, #prepPlusDialog, #treatmentPlusCard) .doxi-plus-price:hover { background: #2c267a; }
:is(#doxiPlusDialog, #prepPlusDialog, #treatmentPlusCard) .doxi-plus-price:disabled { cursor: default; opacity: .8; }
.plus-account-state { margin: 18px 0 0; font-size: 13px; line-height: 1.7; font-weight: 600; }
.plus-refresh { min-height: 44px; color: inherit; font-size: 12px; }
.plus-billing-feedback { margin: 12px 0 0; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.plus-billing-feedback:empty { display: none; }
.internal-plus-card { padding: 24px; margin: 0 0 24px; border-radius: 24px; background: #E4EDF2; color: #201B68; }
.internal-plus-card h3 { margin: 0; }
.internal-plus-card p { font-size: 13px; line-height: 1.7; }
.internal-plus-card .text-button { min-height: 44px; }
.plus-verified-note { font-size: 11px !important; }
[data-plus-state][hidden], [data-plus-refresh][hidden], [data-plus-feedback][hidden] { display: none !important; }
.dose-screen { grid-template-areas: "dose stats" "plus plus" "process process"; }
.dose-screen.prep-demand-common { grid-template-areas: "dose dose" "cycle cycle" "plus plus" "process process"; }
@media (max-width: 1100px) {
  .dose-screen { grid-template-areas: "dose" "stats" "plus" "process"; }
  .dose-screen.prep-demand-common { grid-template-areas: "dose" "cycle" "plus" "process"; grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  #pv-inicio .overview-heading { margin-bottom: 20px; }
  .home-overview, .home-overview:has(.home-quick-followup.hidden) { gap: 20px; }
  .home-dose-action { font-size: 11px; min-height: 46px; padding: 12px 14px; }
}
@media(max-width:760px) {
  .landing-plus-card { padding: 10px; }
  .landing-plus-copy { padding: 24px 14px 16px; }
  .landing-plus-copy h3 { font-size: 26px; margin-bottom: 18px; }
  .landing-plus-copy p { font-size: 14px; line-height: 1.8; }
}

/* Document notices and home-screen installation. */
.menubtn[data-pview=docs] { position: relative; }
.menubtn > .documents-badge { pointer-events: none; width: auto; position: absolute; top: 6px; right: 12px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--nue-coral); color: #fff; font-size: 11px; font-weight: 600; line-height: 20px; text-align: center; }
.documents-badge[hidden] { display: none; }
.notification-settings { min-height: 48px; margin-top: 18px; text-align: left; }
.install-nue-dialog { width: min(520px,calc(100% - 28px)); padding: 24px; overflow-x: hidden; background: #E4EDF2; color: var(--nue-deep-blue); }
.install-nue-dialog .dialog-heading { display: flex; gap: 12px; align-items: flex-start; }
.install-nue-dialog h2 { flex: 1; margin: 0; min-width: 0; font-size: 25px; line-height: 1.3; }
.install-nue-dialog .dialog-close { flex-shrink: 0; min-width: 44px; min-height: 44px; }
.install-nue-dialog p,.install-nue-dialog li { font-size: 13px; line-height: 1.8; }
.install-nue-dialog ol { display: grid; gap: 20px; list-style: none; padding: 0; margin: 24px 0; }
.install-nue-dialog li { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 14px; align-items: start; padding: 0; margin: 0; }
.install-step-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #D4E1EC; color: #201B68; }
.install-step-icon .ui-icon { width: 22px; height: 22px; }
.install-step-number { display: block; margin-bottom: 4px; color: #201B68; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.install-nue-dialog .btn { white-space: normal; min-height: 50px; width: 100%; justify-content: center; }
.install-nue-dialog .text-button { min-height: 48px; }
.install-privacy-note { opacity: .85; }
.age-feedback { color: #830b28; font-size: 12px; line-height: 1.6; }
.age-feedback:empty,#installNueStatus:empty { display: none; }

.install-nue-dialog [hidden] { display: none; }

/* Staff workspace: an overview of authorized patients and personal work. */
#internal { background: #eef3f8; color: var(--nue-deep-blue); min-height: 100dvh; }
.internal-shell { max-width: 1480px; padding: 32px 36px 64px; color: var(--nue-deep-blue); }
#internal .internal-header { margin-bottom: 24px; }
#internal .internal-header [data-sign-out] { color: var(--nue-deep-blue); }
#internal .internal-sections { margin: 16px 0; }
#internal .internal-header .brand, #internal .internal-header .brand .brand-dot, #internalBack { color: var(--nue-deep-blue); }
#internalStatus:empty { display: none; }
.dashboard-heading, .dashboard-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.dashboard-heading { margin: 32px 0 28px; }
.dashboard-heading h1 { font-size: clamp(30px,4vw,42px); margin: 8px 0; letter-spacing: -.04em; }
.dashboard-heading p { font-size: 14px; margin: 0; }
.dashboard-heading .eyebrow { font-size: 10px; }
#internal .btn { min-height: 44px; justify-content: center; font-size: 12px; }
.dashboard-heading .btn, .dashboard-pagination .btn { background: #fff; border: 1px solid #dce3ed; color: var(--nue-deep-blue); box-shadow: none; }
.dashboard-summary { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 12px; margin-bottom: 28px; }
.dashboard-summary button { border: 1px solid #dce3ed; border-radius: 22px; padding: 20px; text-align: left; background: #fff; color: var(--nue-deep-blue); min-height: 122px; font: inherit; }
.dashboard-summary span { display: block; font-size: 11px; line-height: 1.6; min-height: 36px; }
.dashboard-summary strong { font-size: 30px; font-weight: 600; line-height: 1.5; }
.dashboard-summary [aria-pressed=true] { background: var(--nue-deep-blue); color: #fff; border-color: var(--nue-deep-blue); }
.dashboard-layout { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 24px; align-items: start; }
.dashboard-section-heading h2 { margin: 0; font-size: 23px; }
.dashboard-section-heading { margin-bottom: 18px; }
.dashboard-section-heading .text-button { font-size: 12px; }
.dashboard-filters { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; padding: 22px; border-radius: 24px; background: #fff; border: 1px solid #e2e8ef; }
.dashboard-search, .dashboard-advanced { grid-column: 1 / -1; }
#internal .dashboard-filters .field { margin: 0; }
#internal .dashboard-filters label { font-size: 11px; margin-bottom: 8px; font-weight: 400; }
#internal .dashboard-filters :is(input,select), .dashboard-tasks :is(input,select), .workspace-create :is(input,textarea), .workspace-edit textarea { min-height: 46px; border: 1px solid #dce3ed; border-radius: 13px; padding: 11px 13px; width: 100%; min-width: 0; font: inherit; font-size: 13px; color: var(--nue-deep-blue); background: #f9fbfd; }
.dashboard-advanced summary { font-size: 12px; padding: 9px 0; cursor: pointer; }
.dashboard-advanced { padding: 0; border-top: 1px solid #e2e8ef; border-bottom: 0; }
.dashboard-filter-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; padding-top: 12px; }
.dashboard-advanced p { font-size: 11px; line-height: 1.7; margin: 16px 0 0; }
#dashboardResults { font-size: 12px; margin: 18px 0 12px; }
#patientsList { background: transparent; border: 0; border-radius: 0; backdrop-filter: none; overflow: visible; }
#internal .dashboard-patient { display: block; padding: 22px; background: #fff; border: 1px solid #e2e8ef; border-radius: 22px; margin-bottom: 12px; color: var(--nue-deep-blue); cursor: pointer; }
.dashboard-patient-main { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dashboard-profile-button { flex: 1; min-width: min(230px,100%); text-align: left; border: 0; padding: 0; background: transparent; color: inherit; font: inherit; }
.dashboard-profile-button strong { display: block; font-size: 16px; }
#internal .dashboard-profile-button span { display: block; margin: 5px 0; font-size: 11px; overflow-wrap: anywhere; }
.dashboard-badge { font-size: 10px; line-height: 1.6; background: #edf3fa; border-radius: 14px; padding: 6px 10px; }
.dashboard-badge.is-plus { background: var(--nue-deep-blue); color: #fff; }
.dashboard-patient-meta, .dashboard-patient-signals { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px; font-size: 11px; line-height: 1.6; }
.dashboard-signal { border: 0; border-radius: 8px; padding: 4px 0; background: none; color: var(--nue-deep-blue); font: inherit; font-size: 11px; text-align: left; }
.dashboard-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; font-size: 11px; }
.dashboard-pagination button:disabled { opacity: .4; cursor: default; }
.dashboard-tasks { background: #fff; border: 1px solid #e2e8ef; border-radius: 26px; padding: 22px; min-width: 0; }
.workspace-privacy { font-size: 12px; line-height: 1.75; color: #52607a; margin: 10px 0 20px; }
#dashboardTaskForm { display: grid; gap: 10px; margin-bottom: 22px; }
#dashboardTaskForm label { font-size: 11px; margin-top: 4px; }
.dashboard-tasks form > .btn, .workspace-create > .btn { background: var(--nue-deep-blue); color: #fff; border-color: var(--nue-deep-blue); }
#dashboardTaskStatus { font-size: 12px; line-height: 1.7; }
#dashboardTaskStatus:empty { display: none; }
.workspace-item { padding: 16px 0; border-bottom: 1px solid #e2e8ef; }
.workspace-item p { font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 8px; line-height: 1.75; }
.workspace-item small { font-size: 10px; display: block; margin-bottom: 8px; }
.workspace-item .is-overdue { color: #a43d30; }
.workspace-item .text-button { font-size: 11px; }
.workspace-item-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.workspace-item-actions button { font: inherit; font-size: 11px; min-height: 36px; color: var(--nue-deep-blue); border: 0; background: #edf3fa; padding: 8px 12px; border-radius: 12px; }
.workspace-edit { margin-top: 12px; }
.workspace-edit textarea { min-height: 100px; }
.workspace-edit button { margin: 10px 10px 0 0; }
.workspace-section { margin-top: 28px; }
.workspace-section h3 { font-size: 19px; }
.workspace-create { display: grid; gap: 10px; }
.workspace-create label { font-size: 12px; }
.workspace-create .btn { justify-self: start; }
.conversation-review { padding: 22px; border-radius: 20px; background: #edf3fa; margin-bottom: 24px; }
.conversation-review p { font-size: 12px; line-height: 1.7; }
#internal .internal-tabs button { background: #dce5f1; color: var(--nue-deep-blue); }
#internal .internal-tabs [aria-selected=true] { background: var(--nue-deep-blue); color: #fff; }
#internalDocumentDialog :is(#internalHideDocument,#internalVisibilityLabel) { font-size: 13px; }
#internalDocumentDialog #internalHideDocument { margin-bottom: 18px; background: #eef3f8; color: var(--nue-deep-blue); border: 1px solid #dce3ed; }
#internalDocumentDialog #internalHideDocument[aria-pressed=true] { background: var(--nue-deep-blue); color: #fff; }
@media(max-width:1100px) { .dashboard-summary { grid-template-columns: repeat(3,minmax(0,1fr)); } .dashboard-layout { grid-template-columns: minmax(0,1fr) 280px; } }
@media(max-width:800px) { .dashboard-layout { grid-template-columns: 1fr; } .internal-shell { padding: 24px 20px 48px; } }
@media(max-width:520px) { .dashboard-summary { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; } .dashboard-summary button { padding: 16px; min-height: 112px; } .dashboard-filters,.dashboard-filter-grid { grid-template-columns: 1fr; } .dashboard-heading { flex-wrap: wrap; } .dashboard-filters { padding: 18px; } .dashboard-patient-main { align-items: start; } #internal .internal-tabs { flex-wrap: wrap; overflow: visible; } #internal .internal-tabs button { white-space: normal; } }

/* Compact patient documents and a single profile card. */
#pv-docs .documents-layout { gap: 18px; }
#pv-docs .documents-card { padding: 22px; border-radius: 28px; }
#pv-docs .documents-card-heading { justify-content: flex-start; gap: 12px; margin: 0 0 18px; }
#pv-docs .document-object { width: 40px; height: 44px; border-radius: 13px; }
#pv-docs .document-object .ui-icon { width: 22px; height: 22px; }
#pv-docs .documents-card h3 { font-size: 22px; margin: 0; line-height: 1.25; }
#pv-docs .documents-empty { min-height: 0; padding: 0; margin: 0 0 12px; font-size: 13px; text-align: left; display: block; }
#pv-docs .document-items { margin-top: 12px; display: grid; gap: 12px; }
#pv-docs .document-item { padding: 16px; border: 1px solid #d8e2ed; border-radius: 20px; margin: 0; }
#pv-docs .document-item-copy h4 { margin: 0 0 5px; font-size: 15px; line-height: 1.5; }
#pv-docs .document-item-copy p, #pv-docs .document-item-copy small { font-size: 11px; line-height: 1.65; margin: 0; }
#pv-docs .document-item-actions { display: flex; gap: 8px; margin-top: 12px; }
#pv-docs .document-action { min-height: 44px; font-size: 12px; padding: 10px 15px; }
#pv-docs .document-item.is-new { background: var(--nue-deep-blue); border-color: var(--nue-deep-blue); color: #fff; }
#pv-docs .document-item.is-new :is(h4,p,small) { color: #fff; }
#pv-docs .document-item.is-new .document-action { background: #fff; color: var(--nue-deep-blue); border-color: #fff; }
#pv-docs .add-document-button { min-height: 48px; font-size: 13px; }
#pv-docs .documents-local-note { font-size: 10px; line-height: 1.6; margin: 12px 0 0; }
#pv-docs .documents-feedback { margin: 12px 0 0; font-size: 12px; }
#pv-docs .documents-feedback:empty { display: none; }
.document-history { margin-top: 18px; border-top: 1px solid #cbd8e7; border-bottom: 0; padding: 12px 0 0; }
.document-history summary { font-size: 14px; line-height: 1.6; color: var(--nue-deep-blue); }
.document-history summary span { font-size: 11px; font-weight: 400; margin-left: 6px; }
.prescription-retention-note { font-size: 11px; line-height: 1.7; color: #435771; margin: 16px 0 0; }
#pv-perfil .profile-layout { display: block; max-width: 850px; margin: auto; }
#pv-perfil .profile-layout > .panel { padding: 24px; border-radius: 28px; }
.profile-coverage-summary { border-top: 1px solid #cbd8e7; padding-top: 16px; margin-top: 18px; }
.profile-coverage-summary h3 { font-size: 16px; margin: 0 0 6px; }
.profile-coverage-summary p { font-size: 12px; line-height: 1.7; margin: 0; }
.profile-footer { max-width: 850px; margin: 24px auto 0; text-align: center; }
.profile-footer button { min-height: 48px; padding: 12px 24px; color: var(--nue-deep-blue); }
@media(max-width:760px) { #pv-docs .documents-card { padding: 20px; } #pv-docs .document-item { display: block; } }

/* Stronger separation and quieter forms in the staff space. */
#internal { background: #d9e3ee; }
#internal .internal-panel { background: #f8fafc; border: 1px solid #aebed1; border-radius: 24px; padding: 28px; box-shadow: 0 4px 16px #2437500a; backdrop-filter: none; }
.internal-data-groups { display: grid; gap: 22px; }
.internal-data-group { min-width: 0; margin: 0; padding: 18px 20px 22px; border: 1px solid #9eafc5; border-radius: 18px; background: #e7eef6; }
.internal-data-group legend { padding: 0 8px; font-size: 15px; font-weight: 600; color: #17234d; }
#internal .internal-data-group .field { min-width: 0; margin: 0; }
#internal .internal-data-group .internal-fields { gap: 16px 20px; }
#internal .internal-data-group .field:only-child { grid-column: 1 / -1; }
#internal .internal-data-group .coverage-plan-field { grid-column: auto; }
#internal .internal-data-group label { font-size: 12px; line-height: 1.5; margin-bottom: 8px; color: #293c5b; }
#internal .internal-data-group :is(input:not([type=checkbox]),select) { min-height: 48px; padding: 12px 14px; border: 1px solid #879bb7; border-radius: 12px; background: #fff; color: #152143; font-size: 14px; box-shadow: none; }
#internal .internal-data-group .plan-input-row > input:disabled { background: #dbe4ef; }
#internal .internal-data-group .no-plan-toggle { margin: 0; }
#internal .internal-plus-card { background: #d2dfed; border: 1px solid #94a9c4; border-left: 5px solid var(--nue-deep-blue); border-radius: 18px; padding: 20px; }
#internal .internal-workflow { border-top: 2px solid #9eafc5; margin-top: 26px; padding-top: 24px; }
#internal .dashboard-summary button, #internal .dashboard-filters, #internal .dashboard-tasks, #internal .dashboard-patient { border-color: #aabbd0; box-shadow: 0 3px 12px #20345508; }
#internal .dashboard-filters :is(input,select), #internal .dashboard-tasks :is(input,select) { background: #edf2f8; border-color: #9bafc9; }
#internal .dashboard-summary [aria-pressed=true] { border-color: var(--nue-deep-blue); }
@media(max-width:640px) { #internal .internal-panel { padding: 18px; } .internal-data-group { padding: 16px; } }
#internal .internal-workflow select { background: #fff; border: 1px solid #879bb7; border-radius: 12px; min-height: 48px; padding: 12px 14px; }
#internal .internal-data-group :is(input,select):focus-visible, #internal .internal-workflow select:focus-visible { outline: 2px solid var(--nue-deep-blue); outline-offset: 2px; }
#internal .internal-data-group :is(input,select):disabled { color: #34445e; opacity: 1; background: #e0e8f1; }
.home-doxi-feedback:empty { display: none; }
.home-doxi-feedback { font-size: 12px; line-height: 1.6; margin: 10px 0 0; }
#homeRequestDoxi:disabled { opacity: 1; cursor: default; }
#internal .dashboard-doxi-notice, #internal .internal-doxi-request { color: var(--nue-deep-blue); background: #d4e9de; border: 1px solid #88ac97; border-left: 5px solid #367a52; border-radius: 18px; padding: 18px 22px; margin: 0 0 24px; }
.dashboard-doxi-notice { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; font-size: 14px; }
#internal .dashboard-doxi-notice button { min-height: 44px; font-weight: 600; }
#internal .doxi-pending-badge { background: #d4e9de; padding: 6px 10px; border-radius: 10px; color: #174c31; font-weight: 600; }
.internal-doxi-request h3 { margin: 0 0 8px; font-size: 21px; }
.internal-doxi-request p { font-size: 13px; line-height: 1.7; }
.internal-doxi-request [role=status]:empty { display: none; }
#homeStudiesCard .home-study-symbol { display: grid; place-items: center; min-height: 132px; width: 100%; color: var(--nue-deep-blue); }
#homeStudiesCard .home-study-symbol svg { width: 90px; height: 90px; stroke-width: 1.3; }
#homeRequestStudies:disabled { opacity: 1; cursor: default; }
.study-request-dialog .dialog-heading { align-items: center; gap: 16px; margin-bottom: 18px; }
.study-request-dialog .dialog-heading h2 { margin: 0; font-size: clamp(23px,5vw,30px); line-height: 1.25; }
.study-choices { border: 0; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; min-width: 0; }
.study-choices label { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 12px 14px; background: #edf3f8; border-radius: 14px; cursor: pointer; font-size: 15px; }
.study-choices input { appearance: auto; width: 22px; height: 22px; min-height: 0; padding: 0; margin: 0; flex: 0 0 22px; accent-color: var(--nue-deep-blue); }
#submitStudyRequest { width: 100%; min-height: 48px; }
#homeStudiesCard .home-study-symbol { min-height: 112px; }
@media(max-width:760px) { #homeStudiesCard .home-study-symbol { min-height: 76px; } #homeStudiesCard .home-study-symbol svg { width: 60px; height: 60px; } }
