/* VELNORA GLOBAL — the connected-globe hero, Global Reach map, inner pages, the patient's private page.
   Loaded after styles.css (shared design system). */

/* =========================================================
   HOME HERO — the connected globe is the first thing visitors see
   ========================================================= */
.hero--globe .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hero--globe .hero__visual { height: clamp(500px, 64vh, 680px); }
.hgv .stage { display: grid; place-items: center; }
.hgv__globe {
  position: absolute; left: 50%; top: 50%; width: min(100%, 620px, 84vh); max-width: none; margin: 0;
  transform: translate(-50%, -50%); z-index: 2;
}
.hgv__rings { position: absolute; left: 50%; top: 50%; width: min(108%, 700px, 100vh); aspect-ratio: 1; transform: translate(-50%, -50%); z-index: 1; pointer-events: none; }
.hgv__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(232, 211, 166, .16); }
.hgv__ring--a { inset: 2%; border-style: dashed; border-color: rgba(232, 211, 166, .22); animation: spin 90s linear infinite; }
.hgv__ring--b { inset: -5%; border-color: rgba(143, 166, 214, .14); animation: spin 140s linear infinite reverse; }
.hgv__ring--a::before, .hgv__ring--b::before {
  content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%;
  background: var(--gold-400); box-shadow: 0 0 14px 3px rgba(217, 185, 120, .65);
}
.hgv__ring--b::before { top: auto; bottom: -3px; width: 6px; height: 6px; background: #AFC3EC; box-shadow: 0 0 12px 2px rgba(175, 195, 236, .6); }
@keyframes spin { to { transform: rotate(360deg); } }

/* what shows before WebGL is ready (and if it never is): a softly lit dotted sphere */
.globe__ph {
  position: absolute; inset: 7.5%; border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(circle at 35% 30%, rgba(143, 166, 214, .32), transparent 55%),
    radial-gradient(circle, rgba(143, 166, 214, .55) 1px, transparent 1.6px) 0 0 / 11px 11px,
    radial-gradient(circle at 50% 50%, #0F2552 0%, #0A1A3A 62%, #071431 100%);
  -webkit-mask-image: radial-gradient(circle, #000 69%, transparent 70.5%); mask-image: radial-gradient(circle, #000 69%, transparent 70.5%);
  box-shadow: 0 0 80px rgba(80, 120, 210, .25);
  transition: opacity 1.2s var(--ease);
  animation: phBreathe 3.2s ease-in-out infinite;
}
.globe.is-ready .globe__ph { opacity: 0; animation: none; }
.globe.is-fallback .globe__ph { opacity: 1; animation: phBreathe 4s ease-in-out infinite; }
@keyframes phBreathe { 50% { transform: scale(1.015); filter: brightness(1.15); } }
.hgv__globe::after {
  content: ""; position: absolute; inset: 12%; border-radius: 50%; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, rgba(201, 163, 90, .16), transparent 66%); filter: blur(34px);
}

/* floating cards around the globe: gentle drift so the scene is never still */
.hgv .float { animation: drift 7s ease-in-out infinite; }
.hgv .float--hub { animation-delay: -2s; }
.hgv .float--doc { animation-delay: -4s; }
.hgv .float--track { animation-delay: -5.5s; }
@keyframes drift { 50% { translate: 0 -10px; } }
.float--flight { left: -9%; top: -1%; width: clamp(150px, 12vw, 178px); }
.float--hub { right: -3%; top: 2%; }
.float--doc { left: -7%; bottom: 0; width: clamp(140px, 11vw, 166px); padding: 8px; transform: translateZ(90px); }
.float--doc img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; }
.float--track { right: -5%; bottom: -1%; }

/* rotating specialty under the headline */
.hero__rotator { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: -6px 0 clamp(18px, 2.6vh, 26px); font-size: clamp(1.05rem, .95rem + .45vw, 1.35rem); }
.hero__rotator-label { color: rgba(255, 255, 255, .62); font-weight: 500; }
.rotator { position: relative; display: inline-grid; min-height: 1.5em; overflow: hidden; vertical-align: bottom; }
.rotator__word {
  grid-area: 1 / 1; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.32em; line-height: 1.1; white-space: nowrap;
  background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .1em;
  transition: transform .7s var(--ease), opacity .7s var(--ease);
}
.rotator__word.is-entering { transform: translateY(100%); opacity: 0; }
.rotator__word.is-leaving { transform: translateY(-100%); opacity: 0; }

/* the hero comes alive the moment the page opens: soft gold sweep across the headline */
html.js.hero-in .hero__title em { background-size: 220% 100%; animation: goldSweep 6s ease-in-out 1.2s infinite; }
@keyframes goldSweep { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

@media (max-width: 1439px) { .float--doc { display: none; } }
@media (max-width: 1279px) {
  .hero--globe .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); }
  .float--flight, .float--track { display: none; }
}
.hgv .globe__labels { overflow: visible; }
@media (max-width: 1023px) {
  .hero--globe .hero__inner { grid-template-columns: 1fr; }
  .hero--globe .hero__visual { height: clamp(440px, 86vw, 620px); max-width: 640px; }
  .hgv__globe { width: min(100%, 560px); }
  .hero--globe .hero__visual { margin-top: 28px; }
  .float--flight { display: block; left: 0; top: 0; }
  .float--hub { right: 0; }
  .float--track { display: block; right: 0; bottom: 0; width: 230px; padding: 14px 14px 12px; }
}
/* phones held upright: the globe gets its own place right under the headline — fully visible, never behind the words
   (client, 13 Nov: "superb in tab or laptop but underlaying in mobile") */
@media (max-width: 767px) and (orientation: portrait) {
  .hero--globe .hero__inner { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .hero--globe .hero__copy { display: contents; }
  .hero--globe .hero__copy > .eyebrow { order: 1; }
  .hero--globe .hero__title { order: 2; }
  .hero--globe .hero__rotator { order: 3; margin: -2px 0 0; }
  /* the globe's picture is a little wider than the column (only its empty edges and the rings run past) so the sphere itself is big */
  .hero--globe .hero__visual { order: 4; position: relative; width: 100%; max-width: none; height: min(112vw, 520px); margin: -16px 0 -20px; }
  .hero--globe .hero__lead { order: 5; }
  .hero--globe .hero__ctas { order: 6; }
  .hero--globe .hero__trust { order: 7; }
  .hero--globe .hero__lead, .hero--globe .hero__ctas, .hero--globe .hero__trust { position: relative; z-index: 3; }
  .hgv .float { display: none !important; }
  .hgv__globe { width: min(112vw, 520px); }
  .hgv__rings { width: min(94vw, 440px); }
}
@media (max-width: 380px) { .float--flight { width: 110px; } .float__cap { font-size: 10.5px; } }
/* phones held sideways: the globe sits beside the headline, fully on the first screen */
@media (max-height: 560px) and (orientation: landscape) and (max-width: 1023px) {
  .hero--globe .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); }
  .hero--globe .hero__visual { align-self: start; width: 100%; max-width: none; margin-top: 2px; height: calc(100svh - var(--header-h) - 24px); }
  .hgv__globe { width: min(100%, calc(100svh - var(--header-h) - 24px)); }
  .hgv__rings { width: min(104%, calc(100svh - var(--header-h))); }
  .hgv .float { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hgv__ring--a, .hgv__ring--b, .hgv .float, .globe__ph, html.js.hero-in .hero__title em { animation: none !important; }
}

/* =========================================================
   GLOBAL REACH — flat dotted map with arcs of light
   ========================================================= */
.reach__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 20px 60px; align-items: end; margin-bottom: clamp(26px, 4vw, 46px); }
.reach__head .section-head__sub { margin: 0; }
.rmap { position: relative; width: 100%; max-width: 1180px; margin: 0 auto clamp(30px, 4vw, 50px); aspect-ratio: 1000 / 389; }
.rmap__dots, .rmap__arcs { position: absolute; inset: 0; width: 100%; height: 100%; }
.rmap__arcs { overflow: visible; }
.rmap__arc { transition: stroke-dashoffset 2.2s var(--ease); transition-delay: var(--d, 0s); filter: drop-shadow(0 0 4px rgba(232, 207, 149, .55)); }
.rmap.is-drawn .rmap__arc { stroke-dashoffset: 0 !important; }
.rmap__flight { fill: #FFF1C9; filter: drop-shadow(0 0 5px #FFE2A0); opacity: 0; transition: opacity .6s 1.6s; }
.rmap.is-drawn .rmap__flight { opacity: 1; }
.rmap__pin { opacity: 0; transition: opacity .6s var(--ease); transition-delay: var(--d, 0s); }
.rmap.is-drawn .rmap__pin { opacity: 1; }
.rmap__dot { fill: var(--gold-400); }
.rmap__pin--hub .rmap__dot { fill: #FFE2A0; }
.rmap__pulse { fill: none; stroke: var(--gold-400); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: mapPing 2.4s var(--ease) infinite; }
.rmap__pin--hub .rmap__pulse { stroke: #FFE2A0; stroke-width: 1.4; }
@keyframes mapPing { 0% { transform: scale(.3); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.rmap__label { font-family: var(--sans); font-size: 13px; font-weight: 700; fill: #fff; letter-spacing: .04em; paint-order: stroke; stroke: rgba(6, 18, 41, .85); stroke-width: 4px; }
.rmap__label--hub { fill: var(--gold-300); font-size: 14px; }
.reach .tz { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
@media (max-width: 899px) { .reach__head { grid-template-columns: 1fr; } }
@media (max-width: 599px) { .rmap__label { font-size: 22px; stroke-width: 6px; } .rmap__label--hub { font-size: 23px; } .reach .tz { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .rmap__arc { transition: none; } .rmap__pulse { animation: none; } }

/* =========================================================
   INNER PAGE HERO
   ========================================================= */
.phero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  padding: calc(var(--header-h) + clamp(48px, 8vw, 110px)) 0 clamp(56px, 8vw, 104px);
  background:
    radial-gradient(900px 600px at 85% 20%, rgba(31, 66, 128, .7), transparent 70%),
    radial-gradient(600px 420px at 0% 100%, rgba(201, 163, 90, .12), transparent 70%),
    linear-gradient(180deg, #0A1A3A 0%, #071431 100%);
}
.phero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.phero__bg img {
  position: absolute; right: 0; top: 0; width: min(58vw, 900px); height: 100%; object-fit: cover; opacity: .42;
  filter: grayscale(.35) sepia(.15) brightness(.85);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 50%); mask-image: linear-gradient(90deg, transparent, #000 50%);
}
.phero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 26, 58, .92) 30%, rgba(10, 26, 58, .35) 75%, rgba(10, 26, 58, .2)); }
.phero__trails { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.phero__bg .grain { z-index: 2; }
.phero__inner { position: relative; max-width: 1320px; }
.phero__title { font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 1.4rem + 4vw, 5.2rem); line-height: 1.02; letter-spacing: -.015em; max-width: 920px; text-wrap: balance; color: #fff; }
.phero__title em { font-style: italic; background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.phero__lead { margin-top: clamp(18px, 2.5vw, 26px); max-width: 720px; font-size: clamp(1.02rem, .96rem + .3vw, 1.2rem); line-height: 1.7; color: rgba(255, 255, 255, .76); }
.phero__lead strong { color: #fff; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 22px; font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .55); }
.crumbs a:hover { color: var(--gold-300); }
.crumbs a:last-child { color: rgba(255, 255, 255, .85); }
@media (max-width: 767px) {
  .phero__bg img { width: 100%; opacity: .22; -webkit-mask-image: linear-gradient(180deg, transparent, #000 60%); mask-image: linear-gradient(180deg, transparent, #000 60%); }
  .phero__bg::after { background: linear-gradient(180deg, rgba(10, 26, 58, .9) 30%, rgba(10, 26, 58, .7)); }
}

/* the closing band on inner pages */
.cta-band { padding-top: 0; }
.cta-band__box { background: radial-gradient(600px 380px at 100% 100%, rgba(201, 163, 90, .3), transparent 70%), linear-gradient(120deg, #0A1A3A, #12295a); }
.section + .cta-band, .related + .cta-band { padding-top: clamp(20px, 3vw, 40px); }

/* =========================================================
   SHARED INNER-PAGE BLOCKS
   ========================================================= */
.value-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.value-cards li { padding: 30px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-1); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.value-cards li:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.value-cards h3 { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; color: var(--navy-900); margin: 18px 0 8px; line-height: 1.15; }
.value-cards p { font-size: 14.5px; line-height: 1.65; }
.value-cards--stack { grid-template-columns: 1fr; margin: 26px 0 34px; }
.value-cards--stack li { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; padding: 22px; }
.value-cards--stack li .medal { grid-row: span 2; }
.value-cards--stack h3 { margin: 4px 0 6px; font-size: 1.35rem; }
.values { background: var(--paper); }
@media (max-width: 1023px) { .value-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .value-cards { grid-template-columns: 1fr; } }

.detail__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: clamp(30px, 5vw, 80px); align-items: start; }
.detail__aside { position: sticky; top: calc(var(--header-h) + 24px); }
.prose { color: var(--ink-2); }
.prose > p, .prose li { font-size: 1.04rem; line-height: 1.8; color: var(--ink-2); }
.prose > p + p { margin-top: 16px; }
.prose h2, .prose .h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.6rem, 1.3rem + .9vw, 2.1rem); line-height: 1.15; color: var(--navy-900); margin: 36px 0 16px; }
.prose ul:not(.checks) { list-style: disc; padding-left: 22px; }
.prose ul:not(.checks) li + li { margin-top: 6px; }
.prose a { color: var(--navy-900); text-decoration: underline; text-decoration-color: var(--gold-500); text-underline-offset: 3px; }
.prose .fine { margin-top: 28px; }
.h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.5rem, 1.25rem + .8vw, 1.95rem); line-height: 1.15; color: var(--navy-900); }
.checks { display: grid; gap: 12px; margin: 8px 0 6px; }
.checks--two { grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.55; color: var(--ink-2); font-weight: 500; }
.checks svg { width: 22px; height: 22px; flex: none; padding: 4px; border-radius: 50%; background: rgba(201, 163, 90, .16); fill: none; stroke: var(--gold-600); stroke-width: 2.4; margin-top: 1px; }
@media (max-width: 599px) { .checks--two { grid-template-columns: 1fr; } }
.mini-steps { counter-reset: s; display: grid; gap: 14px; margin: 6px 0 20px; }
.mini-steps li { counter-increment: s; position: relative; padding-left: 48px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.mini-steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(201, 163, 90, .55); font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--gold-700); background: #FFFCF4; }
.mini-steps strong { color: var(--navy-900); }

.aside-card { padding: 30px 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-2); display: grid; gap: 14px; }
.aside-card h3 { font-family: var(--serif); font-weight: 600; font-size: 1.65rem; line-height: 1.15; color: var(--navy-900); margin-top: 6px; }
.aside-card p { font-size: 14.5px; }
.aside-card .btn { width: 100%; }
.aside-card--wide { grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
.aside-card--wide .btn { width: auto; }
@media (max-width: 1023px) { .detail__grid { grid-template-columns: 1fr; } .detail__aside { position: static; } }
@media (max-width: 767px) { .aside-card--wide { grid-template-columns: 1fr; } .aside-card--wide .btn { width: 100%; } }

.related { background: var(--paper); padding-block: clamp(60px, 8vw, 100px); }
.related__title { margin-bottom: 30px; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }
.mini-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.mini-cards a { display: grid; gap: 10px; height: 100%; padding: 24px; border-radius: 20px; background: #fff; border: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.mini-cards a:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); border-color: rgba(201, 163, 90, .45); }
.mini-cards strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.2; color: var(--navy-900); }
.mini-cards span:not(.medal) { font-size: 14px; line-height: 1.6; color: var(--muted); }

.prepare { background: var(--paper); }
.prepare__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 80px); align-items: start; }
.prepare .h2 { margin-bottom: 26px; }
.tz-wrap .tz li { background: var(--navy-900); }
@media (max-width: 899px) { .prepare__grid { grid-template-columns: 1fr; } }

.faq__list { max-width: 900px; margin-inline: auto; display: grid; gap: 12px; }
.faq__item { border-radius: 18px; background: #fff; border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s; }
.faq__item[open] { border-color: rgba(201, 163, 90, .5); box-shadow: var(--shadow-1); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 20px 24px; font-weight: 700; font-size: 1.02rem; color: var(--navy-900); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__plus { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(201, 163, 90, .55); }
.faq__plus::before, .faq__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; background: var(--gold-600); transform: translate(-50%, -50%); transition: transform .35s var(--ease); }
.faq__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__plus::after { transform: translate(-50%, -50%) rotate(0); }
.faq__item p { padding: 0 24px 22px; font-size: 15px; line-height: 1.75; color: var(--ink-2); }

.hospital-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.hospital-cards li { padding: 26px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.hospital-cards h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--navy-900); line-height: 1.2; }
.hospital-cards__meta { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-700); margin: 6px 0 12px; }
.hospital-cards__acc { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-2); margin-bottom: 8px; }
.hospitals { background: var(--paper); }
.for-hospitals { padding-top: 0; }

.partner-page__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(30px, 5vw, 70px); align-items: start; }
.partner-page__form { position: sticky; top: calc(var(--header-h) + 20px); }
.inline-form .modal__panel--inline { position: relative; transform: none; width: 100%; height: auto; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-2); border: 1px solid var(--line); }
.inline-form .modal__scroll { overflow: visible; }
.inline-form .modal__foot { position: static; }
@media (max-width: 1023px) { .partner-page__grid { grid-template-columns: 1fr; } .partner-page__form { position: static; } }

.contact__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(30px, 5vw, 70px); margin-top: clamp(40px, 6vw, 70px); align-items: start; }
.contact__info .h2 { margin-bottom: 24px; }
.contact__list { display: grid; gap: 16px; margin-bottom: 26px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; font-size: 15.5px; color: var(--ink-2); white-space: pre-line; }
.contact__list .ico { color: var(--gold-600); margin-top: 3px; }
.contact__list a { color: var(--navy-900); font-weight: 600; }
.msg-form { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.msg-form h3 { font-family: var(--serif); font-weight: 600; font-size: 1.8rem; color: var(--navy-900); margin-bottom: 22px; }
.msg-form .check { margin: 6px 0 14px; }
.msg-form .btn { margin-top: 8px; }
.msg-form__done { display: flex; gap: 10px; align-items: center; margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: #EEF7EF; color: #1F5A2E; font-weight: 600; }
.msg-form__done .ico { color: #2E7D46; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 1023px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 599px) { .msg-form .field-row { grid-template-columns: 1fr; } }

.legal__wrap { max-width: 860px; }
.legal__wrap h2 { font-size: clamp(1.45rem, 1.25rem + .6vw, 1.8rem); margin: 34px 0 12px; }
.legal__wrap ul { margin: 10px 0 16px; }
.center-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* =========================================================
   FILE UPLOADS — progress per file
   ========================================================= */
.files .f-main { min-width: 0; display: grid; gap: 2px; }
.files .f-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-bar { display: none; height: 3px; border-radius: 3px; background: rgba(10, 26, 58, .08); overflow: hidden; margin-top: 4px; }
.f-bar span { display: block; width: 0; height: 100%; background: var(--gold-grad); transition: width .25s; }
.files li.is-sending .f-bar, .files li.is-sent .f-bar, .files li.is-failed .f-bar { display: block; }
.files li.is-sending button, .files li.is-sent button, .files li.is-failed button { visibility: hidden; }
.files li.is-sent { border-color: rgba(46, 125, 70, .35); }
.files li.is-sent .f-size { color: #2E7D46; font-weight: 600; }
.files li.is-failed { border-color: rgba(194, 65, 58, .4); }
.files li.is-failed .f-bar span { background: #C2413A; }
.files li.is-failed .f-size { color: #B3362F; font-weight: 600; }
.upload-result { margin-top: 14px; padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; line-height: 1.5; }
.upload-result.is-ok { background: #EEF7EF; color: #1F5A2E; }
.upload-result.is-warn { background: #FFF6E6; color: #7A5212; }
.btn.is-busy { cursor: progress; opacity: .85; }
.btn.is-busy .btn__icon { animation: pulseIcon 1s ease-in-out infinite; }
@keyframes pulseIcon { 50% { transform: scale(.85); opacity: .6; } }

/* =========================================================
   THE PATIENT'S PRIVATE PAGE
   ========================================================= */
.phero--case { padding-bottom: clamp(44px, 6vw, 80px); }
.case__ref { color: var(--gold-300); letter-spacing: .06em; }
.case { background: var(--paper); padding-top: clamp(40px, 6vw, 70px); }
.case__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.case__main, .case__side { display: grid; gap: clamp(18px, 2.4vw, 26px); }
.case-card { padding: clamp(22px, 3vw, 34px); border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.case-card .h3 { margin-bottom: 18px; font-size: clamp(1.4rem, 1.2rem + .6vw, 1.75rem); }
.case-card .fine { margin: 18px 0 0; }
.case-card--quiet { display: grid; gap: 12px; }
.case-card--quiet .h3 { margin-bottom: 4px; }
.case-card .track { display: grid; gap: 4px; }
.case-card .track li { color: var(--muted); font-size: 14.5px; padding: 7px 0; }
.case-card .track li:not(:last-child)::after { left: 12px; top: 33px; height: 14px; background: var(--line-2); }
.case-card .track__dot { width: 25px; height: 25px; border-color: var(--line-2); font-size: 11px; font-weight: 700; color: var(--muted); }
.case-card .track .is-done { color: var(--ink-2); }
.case-card .track .is-now { color: var(--navy-900); font-weight: 700; }
.case-card .track .is-now .track__dot { color: transparent; font-size: 0; }
.case__closed { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.case__est { display: grid; gap: 0; }
.case__est div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.case__est dt { font-size: 13px; font-weight: 700; color: var(--muted); }
.case__est dd { margin: 0; color: var(--navy-900); font-weight: 600; }
.case__msgs { display: grid; gap: 14px; }
.case__msgs li { padding: 16px 18px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.case__msgs time { display: block; font-size: 12px; font-weight: 700; color: var(--gold-700); margin-bottom: 6px; }
.case__msgs p { white-space: pre-line; color: var(--ink-2); font-size: 15px; }
.case__docs { display: grid; gap: 8px; margin-bottom: 18px; }
.case__docs li { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); }
.case__docs .ico { grid-row: span 2; color: var(--gold-600); }
.case__docname { font-weight: 600; color: var(--navy-900); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case__docmeta { font-size: 12px; color: var(--muted); }
.case-upload { display: grid; gap: 12px; }
.case-upload .btn { margin-top: 4px; }
@media (max-width: 1023px) { .case__grid { grid-template-columns: 1fr; } }
@media (max-width: 479px) { .case__est div { grid-template-columns: 1fr; gap: 2px; } }
.prose > p.fine { font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
