:root{
  --bg:#f5f8fa;
  --surface:#ffffff;
  --surface-soft:#edf5f9;
  --ink:#33434c;
  --ink-strong:#273943;
  --muted:#647680;
  --primary:#006e9d;
  --primary-strong:#00577d;
  --accent:#f37022;
  --accent-strong:#d95d16;
  --accent-action:#c94f0c;
  --accent-action-hover:#b9470e;
  --accent-soft:#fff1e8;
  --success:#28a228;
  --success-strong:#20851f;
  --success-soft:#eef9ee;
  --border:#dbe6ec;
  --warning:#8b6417;
  --warning-bg:#fff6ed;
  --shadow:0 18px 55px -38px rgba(0,92,132,.26);
  --radius:24px;
}
*{box-sizing:border-box}
html{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--ink)}
body{margin:0;min-width:320px;background:var(--bg);color:var(--ink);font-size:16px;line-height:1.55}
a{color:inherit}
button,input,textarea{font:inherit}
button,a{-webkit-tap-highlight-color:transparent}
img{max-width:100%}
h1,h2,h3,p{margin-top:0}
h1,h2,h3{color:var(--ink-strong);letter-spacing:-.035em}
h1{font-size:clamp(2rem,7vw,3.6rem);line-height:1.04}
h2{font-size:clamp(1.45rem,5vw,2.2rem);line-height:1.1}
h3{font-size:1.06rem;line-height:1.2}
p{color:var(--muted)}
[hidden]{display:none!important}
:focus-visible{outline:3px solid rgba(0,110,157,.22);outline-offset:2px}

/* App shell */
.app-shell{min-height:100vh;min-height:100dvh}
.app-sidebar{display:none}
.app-stage{min-height:100vh;min-height:100dvh}
.app-topbar{position:sticky;top:0;z-index:40;height:66px;display:grid;grid-template-columns:1fr auto 40px;align-items:center;gap:10px;padding:0 16px;border-bottom:1px solid rgba(219,230,236,.92);background:rgba(255,255,255,.95);backdrop-filter:blur(16px)}
.mobile-brand,.app-brand{display:flex;align-items:center;gap:6px;text-decoration:none;min-width:0}
.medirent-brand-logo{display:block;width:108px;height:auto;max-height:44px;aspect-ratio:502/202;object-fit:contain;object-position:left center;image-rendering:auto;flex:0 0 auto}
.app-brand .medirent-brand-logo{width:150px;max-height:60px}
.topbar-label{font-size:0.875rem;color:var(--muted);font-weight:700;white-space:nowrap}
.topbar-help{width:38px;height:38px;border:1px solid var(--border);border-radius:12px;background:#fff;color:var(--primary);display:grid;place-items:center;cursor:pointer}
.topbar-icon{width:18px;height:18px}
.doctor-context.compact{display:flex;align-items:center;gap:7px;max-width:165px}
.doctor-context.compact .doctor-avatar{width:29px;height:29px;border-radius:9px;font-size:0.875rem}
.doctor-context.compact .doctor-context-copy span{display:none}
.doctor-context.compact .doctor-context-copy small{font-size:0.875rem}
.doctor-context.compact .doctor-context-copy strong{font-size:0.875rem;max-width:108px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.app-main{padding:0 0 84px}
.app-screen{width:min(980px,100%);margin:0 auto;padding:22px 16px 34px}
.app-bottom-nav{position:fixed;z-index:50;left:10px;right:10px;bottom:10px;display:grid;grid-template-columns:repeat(4,1fr);gap:3px;padding:6px;border:1px solid rgba(214,228,235,.95);border-radius:20px;background:rgba(255,255,255,.96);box-shadow:0 16px 45px -20px rgba(0,88,126,.22);backdrop-filter:blur(18px)}
.app-nav-item{min-width:0;min-height:50px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border-radius:14px;color:#71838d;text-decoration:none;font-size:0.875rem;font-weight:750}
.app-nav-item.is-active{background:var(--surface-soft);color:var(--primary)}
.app-nav-icon{width:18px;height:18px}
.app-bottom-nav .app-nav-item span{white-space:nowrap}

/* Shared app blocks */
.app-kicker{display:inline-block;margin-bottom:8px;color:var(--primary);font-size:0.875rem;font-weight:850;text-transform:uppercase;letter-spacing:.11em}
.screen-head{padding:8px 0 20px}
.screen-head h1{margin-bottom:9px}
.screen-head p{max-width:650px;margin-bottom:0}
.app-section{margin-top:28px}
.app-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:15px;margin-bottom:14px}
.app-section-head small,.card-title-row small,.app-card>small,.rental-panel small,.contact-card small{display:block;color:var(--primary);font-size:0.875rem;font-weight:850;text-transform:uppercase;letter-spacing:.08em}
.app-section-head h2,.card-title-row h3{margin:3px 0 0}
.app-section-head a{color:var(--primary);text-decoration:none;font-size:0.875rem;font-weight:800}
.app-card{padding:18px;border:1px solid var(--border);border-radius:20px;background:#fff;box-shadow:var(--shadow)}
.button-icon{width:18px;height:18px}
.icon-button{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:var(--primary);color:white;text-decoration:none}
.primary-action{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:11px 15px;border-radius:15px;background:var(--primary);color:white;text-decoration:none;font-weight:800;font-size:0.875rem}
.primary-action:hover{background:var(--primary-strong)}
.text-link{display:inline-block;margin-top:8px;color:var(--primary);text-decoration:none;font-weight:800;font-size:0.875rem}
.back-link{display:inline-flex;align-items:center;gap:7px;margin-bottom:16px;color:var(--primary);text-decoration:none;font-weight:800;font-size:0.875rem}
.section-note{margin:-6px 0 14px;font-size:0.875rem}

/* Dashboard */
.dashboard-hero{position:relative;overflow:hidden;min-height:330px;display:grid;align-items:end;padding:25px;border-radius:28px;background:
  radial-gradient(circle at 80% 15%,rgba(0,110,157,.16),transparent 35%),
  linear-gradient(145deg,#0b4f70,#006e9d);color:#fff;box-shadow:0 28px 60px -42px rgba(0,77,111,.55)}
.dashboard-hero-copy{position:relative;z-index:2;max-width:560px}
.dashboard-hero .app-kicker{color:#b9e0f0}
.dashboard-hero h1{max-width:9ch;margin-bottom:12px;color:#fff}
.dashboard-hero p{max-width:520px;color:rgba(255,255,255,.76);font-size:0.9rem}
.dashboard-hero .primary-action{background:#fff;color:var(--primary)}
.dashboard-visual{position:absolute;right:-45px;top:6px;width:220px;height:220px;opacity:.9}
.visual-ring{position:absolute;border:1px solid rgba(255,255,255,.18);border-radius:50%}
.ring-one{width:190px;height:190px;right:0;top:0}
.ring-two{width:130px;height:130px;right:30px;top:30px}
.visual-core{position:absolute;right:78px;top:78px;width:64px;height:64px;display:grid;place-items:center;border-radius:22px;background:rgba(255,255,255,.94);color:var(--primary);font-weight:900;font-size:1.25rem;box-shadow:0 18px 40px -22px rgba(0,0,0,.45)}
.visual-chip{position:absolute;width:34px;height:34px;display:grid;place-items:center;border-radius:12px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);color:#fff;font-size:0.875rem;font-weight:850;backdrop-filter:blur(8px)}
.chip-one{right:18px;top:45px}.chip-two{right:140px;top:120px}.chip-three{right:40px;top:168px}
.context-banner{display:grid;gap:10px;margin-top:14px;padding:14px;border:1px solid #cfe3ed;border-radius:18px;background:#f2f8fb}
.context-banner-note{font-size:0.875rem;color:var(--muted)}
.doctor-context{display:flex;align-items:center;gap:10px}
.doctor-avatar{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;background:#e5f2f8;color:var(--primary);font-size:0.875rem;font-weight:900}
.doctor-context-copy{min-width:0;display:grid}
.doctor-context-copy small{color:var(--muted);font-size:0.875rem}
.doctor-context-copy strong{color:var(--ink);font-size:0.875rem}
.doctor-context-copy span{color:var(--muted);font-size:0.875rem}

.resume-tile{display:grid;grid-template-columns:8px 1fr 42px;gap:12px;align-items:center;margin-top:14px;padding:14px;border:1px solid rgba(0,110,157,.16);border-radius:19px;background:#fff;box-shadow:var(--shadow)}
.resume-progress{width:8px;height:58px;border-radius:999px;background:#e5efec;overflow:hidden;display:flex;align-items:flex-end}
.resume-progress span{display:block;width:100%;height:var(--progress);background:var(--primary);border-radius:999px}
.resume-tile>div:nth-child(2){display:grid;gap:2px}
.resume-tile small{color:var(--primary);font-size:0.875rem;font-weight:850;text-transform:uppercase;letter-spacing:.07em}
.resume-tile strong{font-size:0.9rem}
.resume-tile span{color:var(--muted);font-size:0.875rem}

.journey-grid,.path-list-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.journey-tile{position:relative;overflow:hidden;min-height:205px;display:flex;flex-direction:column;border:1px solid var(--border);border-radius:21px;background:#fff;text-decoration:none;box-shadow:var(--shadow)}
.journey-art{height:98px;display:grid;place-items:center;background:linear-gradient(145deg,#fafcfb,#edf4f2);overflow:hidden}
.journey-art img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}
.path-fallback{width:52px;height:52px;display:grid;place-items:center;border-radius:50%;background:#e8f3f8;color:var(--primary);font-family:Georgia,serif;font-size:1.2rem}
.journey-copy{display:grid;gap:3px;padding:12px 12px 14px}
.journey-copy small{color:var(--primary);font-size:0.875rem;font-weight:850;text-transform:uppercase;letter-spacing:.08em}
.journey-copy strong{font-size:0.875rem;line-height:1.2}
.journey-copy>span{display:none;color:var(--muted);font-size:0.875rem;line-height:1.35}
.journey-arrow{position:absolute;right:10px;bottom:10px;color:var(--primary)}
.journey-arrow svg{width:16px;height:16px}

.quick-grid{display:grid;gap:10px;margin-top:28px}
.quick-tile{width:100%;display:grid;grid-template-columns:46px 1fr 22px;gap:12px;align-items:center;padding:14px;border:1px solid var(--border);border-radius:20px;background:#fff;text-align:left;text-decoration:none;color:inherit;box-shadow:var(--shadow);cursor:pointer}
.quick-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:14px;background:var(--surface-soft);color:var(--primary)}
.quick-svg{width:22px;height:22px}
.quick-tile>span:nth-child(2){display:grid;gap:1px}
.quick-tile small{color:var(--primary);font-size:0.875rem;font-weight:850;text-transform:uppercase;letter-spacing:.07em}
.quick-tile strong{font-size:0.875rem}
.quick-tile em{color:var(--muted);font-size:0.875rem;font-style:normal}
.quick-arrow{width:18px;height:18px;color:var(--primary)}

/* Path screen */
.path-screen-head{padding-top:2px}
.path-title-grid{display:grid;grid-template-columns:1fr 112px;gap:16px;align-items:center}
.path-title-grid h1{margin-bottom:8px}
.path-title-grid p{margin-bottom:0;font-size:0.875rem}
.path-title-art{height:112px;border:1px solid var(--border);border-radius:20px;background:#fff;overflow:hidden;display:grid;place-items:center}
.path-title-art img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}
.doctor-inline{display:inline-flex;align-items:center;gap:6px;margin-top:12px;padding:6px 9px;border-radius:999px;background:#edf6fa;color:var(--primary);font-size:0.875rem;font-weight:800}
.doctor-inline-icon{width:14px;height:14px}

.phase-strip{position:relative;display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:20px 0 16px;padding:10px 0}
.phase-strip::before{content:"";position:absolute;left:10%;right:10%;top:25px;height:2px;background:#d9e7ee}
.phase-strip-progress{position:absolute;left:10%;top:25px;height:2px;width:var(--phase-progress);background:var(--primary)}
.phase-chip{position:relative;z-index:2;display:grid;justify-items:center;gap:4px;text-decoration:none;text-align:center;color:var(--muted)}
.phase-chip>span{width:31px;height:31px;display:grid;place-items:center;border:2px solid var(--border);border-radius:50%;background:#fff;font-size:0.875rem;font-weight:850}
.phase-chip strong{max-width:64px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:0.875rem}
.phase-chip.is-active{color:var(--primary)}
.phase-chip.is-active>span{border-color:var(--primary);background:var(--primary);color:#fff;box-shadow:0 0 0 5px rgba(0,110,157,.08)}
.phase-chip.is-visited>span{border-color:#9dc7da;background:#edf6fa;color:var(--primary)}
.phase-check-icon{width:13px;height:13px}

.phase-focus-card{padding:20px;border-radius:24px;background:linear-gradient(145deg,#084b6b,#006e9d);color:#fff;box-shadow:0 22px 54px -40px rgba(0,77,111,.62)}
.phase-focus-card>small{display:block;margin-bottom:8px;color:#b8deed;font-size:0.875rem;font-weight:850;text-transform:uppercase;letter-spacing:.08em}
.phase-kicker{display:inline-block;margin-bottom:5px;color:#d0e9f3;font-size:0.875rem;font-weight:750}
.phase-focus-card h2{margin-bottom:8px;color:#fff}
.phase-focus-card p{margin-bottom:0;color:rgba(255,255,255,.76);font-size:0.875rem}

.phase-content-grid{display:grid;gap:12px;margin-top:12px}
.card-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:13px}
.count-pill{padding:5px 8px;border-radius:999px;background:var(--surface-soft);color:var(--primary);font-size:0.875rem;font-weight:850}
.checklist-card{padding:0;overflow:hidden}
.checklist-header{display:grid;grid-template-columns:1fr auto;gap:18px;align-items:end;padding:18px 18px 15px;border-bottom:1px solid var(--border);background:linear-gradient(180deg,#fff,#fbfdfc)}
.checklist-header small{display:block;color:var(--primary);font-size:0.875rem;font-weight:850;text-transform:uppercase;letter-spacing:.09em}
.checklist-header h3{margin:3px 0 4px;font-size:1.05rem}
.checklist-header p{margin:0;font-size:0.875rem}
.checklist-progress{min-width:72px;display:grid;gap:6px;justify-items:end}
.checklist-progress strong{color:var(--primary);font-size:0.875rem}
.checklist-progress>span{width:72px;height:5px;overflow:hidden;border-radius:999px;background:#e5efec}
.checklist-progress i{display:block;height:100%;border-radius:999px;background:var(--primary);transition:width .2s ease}
.patient-checklist{display:grid;padding:0 18px}
.check-row{position:relative;display:grid;grid-template-columns:28px 1fr;gap:10px;align-items:start;padding:14px 0;border-bottom:1px solid #e7eef2;cursor:pointer}
.check-row:last-child{border-bottom:0}
.check-row input{position:absolute;opacity:0;pointer-events:none}
.check-box{width:27px;height:27px;display:grid;place-items:center;margin-top:1px;border:1.5px solid #bccbd2;border-radius:9px;background:#fff;color:transparent;transition:all .15s ease}
.check-icon{width:14px;height:14px}
.check-copy{display:grid;gap:2px}
.check-copy small{color:#93a5ae;font-size:0.875rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.check-copy>span{color:var(--ink);font-size:0.875rem;line-height:1.45}
.check-row.is-done .check-box{background:var(--primary);border-color:var(--primary);color:#fff}
.check-row.is-done .check-copy>span{color:#657983}
.check-row.is-done .check-copy small{color:#84a9ba}
.checklist-footer{display:flex;align-items:center;gap:7px;padding:11px 18px;border-top:1px solid var(--border);background:#f8fbfa;color:var(--muted);font-size:0.875rem}
.checklist-footer-icon{width:14px;height:14px;color:var(--primary);flex:0 0 auto}
.accordion-list{display:grid;gap:7px}
.accordion-list details{overflow:hidden;border:1px solid var(--border);border-radius:14px;background:#fff}
.accordion-list summary{list-style:none;display:flex;justify-content:space-between;gap:12px;padding:12px 13px;cursor:pointer;font-size:0.875rem;font-weight:800}
.accordion-list summary::-webkit-details-marker{display:none}
.accordion-list summary b{color:var(--primary);font-weight:500}
.accordion-list details[open] summary b{transform:rotate(45deg)}
.accordion-list p{margin:0;padding:0 13px 13px;font-size:0.875rem;line-height:1.5}
.safety-note{display:grid;grid-template-columns:34px 1fr;gap:10px;padding:14px;border-radius:17px}
.safety-note.warning{background:var(--warning-bg);border:1px solid #f0dfb9}
.safety-note>span{width:32px;height:32px;display:grid;place-items:center;border-radius:10px;background:#fff1c9;color:var(--warning)}
.safety-icon{width:17px;height:17px}
.safety-note strong{display:block;margin-bottom:3px;font-size:0.875rem;color:#6d521a}
.safety-note p{margin:0;font-size:0.875rem;color:#7b6b4a}

.device-context-list{display:grid;gap:12px}
.device-context-card{overflow:hidden;border:1px solid var(--border);border-radius:22px;background:#fff;box-shadow:var(--shadow)}
.device-thumb{min-height:160px;display:grid;place-items:center;padding:16px;background:linear-gradient(145deg,#fafcfb,#edf5f9)}
.device-thumb img{max-height:150px;object-fit:contain;mix-blend-mode:multiply}
.device-fallback{display:none;width:62px;height:62px;place-items:center;border-radius:18px;background:var(--primary);color:#fff;font-weight:900}
.image-error .device-fallback{display:grid}
.device-context-copy{padding:15px}
.device-context-copy>small,.catalog-copy>small{display:block;color:var(--primary);font-size:0.875rem;font-weight:850;text-transform:uppercase;letter-spacing:.07em}
.device-context-copy h3,.catalog-copy h3{margin:4px 0 6px}
.device-context-copy>p,.catalog-copy>p{font-size:0.875rem}
.device-meta-line{display:grid;gap:2px;padding-top:10px;border-top:1px solid var(--border)}
.device-meta-line strong{color:var(--primary);font-size:0.875rem}
.device-meta-line span{color:var(--muted);font-size:0.875rem}
.device-context-actions{display:grid;grid-template-columns:.75fr 1.25fr;gap:7px;margin-top:12px}
.device-context-actions a,.device-context-actions button{min-height:42px;display:flex;align-items:center;justify-content:center;border-radius:12px;font-size:0.875rem;font-weight:800;text-decoration:none;cursor:pointer}
.device-context-actions a{border:1px solid var(--border);background:#fff;color:var(--primary)}
.device-context-actions button{border:0;background:var(--primary);color:#fff}

.phase-pagination{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:18px}
.phase-pagination>a{display:flex;align-items:center;gap:7px;padding:11px;border:1px solid var(--border);border-radius:14px;background:#fff;text-decoration:none}
.phase-pagination>a.next{justify-content:flex-end;text-align:right}
.phase-pagination span{display:grid}
.phase-pagination small{color:var(--muted);font-size:0.875rem}
.phase-pagination strong{color:var(--primary);font-size:0.875rem}


/* Rehabilitation protocols */
.journey-exercise-count{display:inline-flex!important;width:max-content;margin-top:5px;padding:4px 7px;border-radius:999px;background:#edf6fa;color:var(--primary)!important;font-size:0.875rem!important;font-weight:850;font-style:normal}
.phase-rehab-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px}
.phase-exercise-summary{display:inline-flex;padding:6px 9px;border-radius:999px;background:rgba(255,255,255,.11);border:1px solid rgba(255,255,255,.14);color:#d9edf5;font-size:0.875rem;font-weight:800}
.phase-exercise-jump{display:inline-flex;padding:6px 9px;border-radius:999px;background:#fff;color:var(--primary);font-size:0.875rem;font-weight:850;text-decoration:none}
.rehab-empty-card{display:grid;grid-template-columns:42px 1fr;gap:12px;align-items:start;margin-top:12px;padding:16px;border:1px solid var(--border);border-radius:20px;background:#fff;box-shadow:var(--shadow)}
.rehab-empty-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:13px;background:var(--surface-soft);color:var(--primary)}
.rehab-empty-svg{width:19px;height:19px}
.rehab-empty-card small{display:block;color:var(--primary);font-size:0.875rem;font-weight:850;text-transform:uppercase;letter-spacing:.08em}
.rehab-empty-card h3{margin:3px 0 5px}
.rehab-empty-card p{margin:0;font-size:0.875rem}

.rehab-module{scroll-margin-top:90px;margin-top:12px;border:1px solid var(--border);border-radius:25px;background:#fff;box-shadow:var(--shadow);overflow:hidden}
.rehab-overview{display:grid;gap:17px;padding:19px;background:
  radial-gradient(circle at 95% 0%,rgba(0,110,157,.10),transparent 34%),
  linear-gradient(180deg,#fff,#f7fafc);border-bottom:1px solid var(--border)}
.rehab-overview-copy h2{margin:0 0 7px}
.rehab-overview-copy p{max-width:650px;margin:0;font-size:0.875rem}
.rehab-overview-progress{display:flex;align-items:center;gap:11px}
.rehab-progress-ring{--rehab-progress:0%;width:62px;height:62px;display:grid;place-items:center;position:relative;border-radius:50%;background:conic-gradient(var(--primary) var(--rehab-progress),#e5eef3 0)}
.rehab-progress-ring::after{content:"";position:absolute;inset:6px;border-radius:50%;background:#fff}
.rehab-progress-ring strong{position:relative;z-index:1;color:var(--primary);font-size:0.875rem}
.rehab-overview-progress>span{color:var(--muted);font-size:0.875rem;font-weight:750}
.guided-start-button{width:100%;display:grid;grid-template-columns:40px 1fr 20px;gap:10px;align-items:center;min-height:62px;padding:10px 12px;border:0;border-radius:17px;background:var(--primary);color:#fff;text-align:left;cursor:pointer;box-shadow:0 15px 34px -24px rgba(0,110,157,.85)}
.guided-start-icon{width:20px;height:20px;justify-self:center}
.guided-start-button>span{display:grid;gap:1px}
.guided-start-button small{color:#c9e7f2;font-size:0.875rem;font-weight:750;text-transform:uppercase;letter-spacing:.07em}
.guided-start-button strong{font-size:0.875rem}
.guided-start-arrow{width:17px;height:17px}

.rehab-phases{padding:10px}
.rehab-phase{overflow:hidden;border:1px solid var(--border);border-radius:17px;background:#fff}
.rehab-phase+.rehab-phase{margin-top:8px}
.rehab-phase>summary{list-style:none;display:grid;grid-template-columns:34px 1fr auto 16px;gap:9px;align-items:center;min-height:58px;padding:9px 11px;cursor:pointer}
.rehab-phase>summary::-webkit-details-marker,.exercise-detail>summary::-webkit-details-marker{display:none}
.rehab-phase-number{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:var(--surface-soft);color:var(--primary);font-size:0.875rem;font-weight:900}
.rehab-phase-number.is-complete{background:var(--primary);color:#fff}
.rehab-phase-check{width:15px;height:15px}
.rehab-phase-title{min-width:0;display:grid}
.rehab-phase-title strong{font-size:0.875rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rehab-phase-title small{margin-top:1px;color:var(--muted);font-size:0.875rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rehab-phase-status{padding:4px 7px;border-radius:999px;background:var(--surface-soft);color:var(--primary);font-size:0.875rem;font-weight:850}
.rehab-chevron{color:#899da7;font-size:0.9rem;transition:transform .18s}
.rehab-phase[open]>summary .rehab-chevron{transform:rotate(180deg)}
.rehab-phase[open]>summary{border-bottom:1px solid var(--border);background:#fbfdfc}
.rehab-exercise-list{display:grid;gap:7px;padding:9px;background:#f7faf9}

.exercise-detail{overflow:hidden;border:1px solid var(--border);border-radius:15px;background:#fff}
.exercise-detail.is-done{border-color:#cce2ec;background:#fbfdfe}
.exercise-detail>summary{list-style:none;display:grid;grid-template-columns:29px 1fr 24px 14px;gap:8px;align-items:center;min-height:52px;padding:8px 10px;cursor:pointer}
.exercise-number{width:28px;height:28px;display:grid;place-items:center;border:1.5px solid #ccd9df;border-radius:9px;color:#70828b;font-size:0.875rem;font-weight:850}
.exercise-detail.is-done .exercise-number{background:var(--primary);border-color:var(--primary);color:#fff}
.exercise-number-check{width:13px;height:13px}
.exercise-summary-copy{min-width:0;display:grid;gap:1px}
.exercise-summary-copy strong{font-size:0.875rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.exercise-summary-copy small{color:var(--muted);font-size:0.875rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.exercise-photo-indicator{display:grid;place-items:center;color:#9aaba6}
.exercise-photo-icon{width:16px;height:16px}
.exercise-detail>summary>b{color:#9aaba6;font-size:0.875rem;transition:transform .18s}
.exercise-detail[open]>summary{border-bottom:1px solid var(--border)}
.exercise-detail[open]>summary>b{transform:rotate(180deg)}
.exercise-body{display:grid}
.exercise-image{position:relative;margin:0;min-height:230px;display:grid;place-items:center;padding:8px;background:#fff}
.exercise-image img{width:100%;max-height:380px;object-fit:contain;border-radius:12px}
.exercise-image-fallback{display:none;min-height:210px;width:100%;place-items:center;align-content:center;gap:7px;border-radius:12px;background:linear-gradient(145deg,#f7faf9,#edf5f9);color:#8ca0aa;text-align:center}
.exercise-image.image-error .exercise-image-fallback,.guided-image.image-error .exercise-image-fallback{display:grid}
.exercise-image-fallback-icon{width:26px;height:26px;color:var(--primary)}
.exercise-image-fallback small{font-size:0.875rem;font-weight:750}
.exercise-instructions{display:grid;gap:11px;padding:13px}
.exercise-label{color:var(--primary);font-size:0.875rem;font-weight:850;text-transform:uppercase;letter-spacing:.08em}
.exercise-instructions>p{margin:-5px 0 0;color:var(--ink);font-size:0.875rem;line-height:1.55}
.exercise-reps{display:grid;grid-template-columns:35px 1fr;gap:9px;align-items:center;padding:10px;border:1px solid #d8e8ef;border-radius:13px;background:#f2f8fb}
.exercise-reps>span{width:33px;height:33px;display:grid;place-items:center;border-radius:10px;background:#fff;color:var(--primary)}
.exercise-reps-icon{width:17px;height:17px}
.exercise-reps>div{display:grid}
.exercise-reps small{color:var(--primary);font-size:0.875rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.exercise-reps strong{margin-top:1px;font-size:0.875rem}
.exercise-errors{padding:10px 11px;border:1px solid #eadfca;border-radius:13px;background:#fffaf1}
.exercise-errors>strong{font-size:0.875rem;color:#765a20}
.exercise-errors ul{margin:5px 0 0;padding-left:17px;color:#736448;font-size:0.875rem}
.exercise-complete-button{min-height:44px;display:flex;align-items:center;justify-content:center;gap:7px;border:0;border-radius:13px;background:var(--primary);color:#fff;font-size:0.875rem;font-weight:820;cursor:pointer}
.exercise-complete-button.is-complete{border:1px solid #bcd7e3;background:#fff;color:var(--primary)}
.exercise-complete-icon{width:15px;height:15px}

.rehab-footer{display:flex;flex-direction:column;gap:9px;align-items:flex-start;padding:13px 16px 16px;border-top:1px solid var(--border);background:#fbfdfc}
.rehab-footer p{margin:0;font-size:0.875rem}
.rehab-footer button{display:inline-flex;align-items:center;gap:5px;padding:7px 9px;border:0;border-radius:10px;background:transparent;color:var(--muted);font-size:0.875rem;font-weight:750;cursor:pointer}
.rehab-footer button:hover{background:var(--surface-soft);color:var(--ink)}
.rehab-reset-icon{width:13px;height:13px}

/* Guided exercise session */
.guided-backdrop{padding:6px;align-items:stretch}
.guided-modal{position:relative;width:min(760px,100%);height:calc(100dvh - 12px);margin:0 auto;display:grid;grid-template-rows:auto 4px 1fr auto;overflow:hidden;border-radius:24px;background:#fff;box-shadow:0 30px 90px -30px rgba(0,0,0,.52)}
.guided-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:15px 16px 12px;border-bottom:1px solid var(--border)}
.guided-header .app-kicker{margin-bottom:3px;margin-right:50px}
.guided-header h2{margin:0 42px 3px 0;font-size:1.22rem}
.guided-header p{margin:0;font-size:0.875rem}
.guided-progress{height:4px;background:#e4eef3}
.guided-progress span{display:block;height:100%;background:var(--primary);transition:width .2s}
.guided-scroll{overflow-y:auto;overscroll-behavior:contain}
.guided-image{position:relative;margin:0;min-height:300px;display:grid;place-items:center;padding:8px;background:#fff;border-bottom:1px solid var(--border)}
.guided-image img{width:100%;max-height:48dvh;object-fit:contain}
.guided-image .exercise-image-fallback{min-height:280px}
.guided-copy{display:grid;gap:13px;padding:17px}
.guided-copy>p{margin:-6px 0 0;color:var(--ink);font-size:0.875rem;line-height:1.58}
.guided-reps{padding:12px}
.guided-completed-badge{display:inline-flex;width:max-content;align-items:center;gap:6px;padding:6px 9px;border-radius:999px;background:#edf6fa;color:var(--primary);font-size:0.875rem;font-weight:800}
.guided-completed-icon{width:14px;height:14px}
.guided-actions{display:grid;grid-template-columns:.8fr 1.2fr;gap:7px;padding:9px;border-top:1px solid var(--border);background:#fff}
.guided-actions button{min-height:48px;display:flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--border);border-radius:13px;background:#fff;color:var(--ink);font-size:0.875rem;font-weight:800;cursor:pointer}
.guided-actions button:disabled{opacity:.38;cursor:not-allowed}
.guided-actions .guided-next{border-color:var(--primary);background:var(--primary);color:#fff}
.guided-action-icon{width:16px;height:16px}
.guided-finished{height:auto;max-height:min(650px,calc(100dvh - 20px));grid-template-rows:auto;align-content:center;justify-items:center;padding:45px 24px 30px;text-align:center}
.guided-finished-icon{width:66px;height:66px;display:grid;place-items:center;margin-bottom:15px;border-radius:50%;background:#e9f4f9;color:var(--primary)}
.guided-finished-svg{width:31px;height:31px}
.guided-finished h2{max-width:430px;margin:0 0 8px}
.guided-finished p{max-width:500px;font-size:0.875rem}
.guided-close-button{min-height:44px;margin-top:8px;padding:9px 22px;border:0;border-radius:13px;background:var(--primary);color:#fff;font-weight:800;cursor:pointer}
.reset-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:16px}
.reset-actions button{min-height:44px;border:1px solid var(--border);border-radius:13px;background:#fff;color:var(--ink);font-size:0.875rem;font-weight:800;cursor:pointer}
.reset-actions .danger-soft{border-color:#eed6d1;background:#fff5f3;color:#9a4336}

/* Catalog */
.catalog-search{height:46px;display:flex;align-items:center;gap:9px;margin-bottom:15px;padding:0 13px;border:1px solid var(--border);border-radius:15px;background:#fff}
.search-icon{width:18px;height:18px;color:#899ea8}
.catalog-search input{flex:1;border:0;outline:0;background:transparent;color:var(--ink);font-size:0.875rem}
.catalog-grid{display:grid;gap:12px}
.catalog-card{overflow:hidden;border:1px solid var(--border);border-radius:22px;background:#fff;box-shadow:var(--shadow)}
.catalog-card-link{display:block;text-decoration:none}
.catalog-media{min-height:190px;display:grid;place-items:center;padding:18px;background:linear-gradient(145deg,#fbfdfe,#edf5f9)}
.catalog-media img{max-height:180px;object-fit:contain;mix-blend-mode:multiply}
.catalog-copy{padding:15px}
.catalog-copy>div{display:flex;justify-content:space-between;gap:10px;align-items:center;padding-top:10px;border-top:1px solid var(--border)}
.catalog-copy>div strong{color:var(--primary);font-size:0.875rem}
.catalog-copy>div span{color:var(--muted);font-size:0.875rem}
.empty-filter{padding:24px;border:1px dashed var(--border);border-radius:18px;background:#fff;color:var(--muted);text-align:center;font-size:0.875rem}

/* Device detail */
.device-detail-card{display:grid;gap:18px}
.device-detail-media{min-height:260px;display:grid;place-items:center;padding:22px;border:1px solid var(--border);border-radius:24px;background:#fff;box-shadow:var(--shadow)}
.device-detail-media img{max-height:240px;object-fit:contain;mix-blend-mode:multiply}
.device-detail-copy h1{margin-bottom:10px}
.device-detail-copy>p{font-size:0.875rem}
.device-price-block{display:grid;gap:3px;margin-top:14px;padding:13px;border-radius:15px;background:var(--surface-soft)}
.device-price-block strong{color:var(--primary)}
.device-price-block span{color:var(--muted);font-size:0.875rem}
.medical-note{margin-top:12px;padding:10px 11px;border-radius:13px;background:#f8fafb;font-size:0.875rem!important}
.device-info-grid{display:grid;gap:10px;margin-top:12px}
.device-info-grid h3{margin:5px 0 0;font-size:0.875rem}
.rental-panel{display:grid;gap:16px;margin-top:12px;padding:18px;border-radius:22px;background:var(--ink-strong);color:#fff}
.rental-panel h2{margin:4px 0 6px;color:#fff}
.rental-panel small{color:#fff}
.rental-panel p{margin:0;color:rgba(255,255,255,.7);font-size:0.875rem}
.rental-panel button{min-height:46px;border:0;border-radius:14px;background:#fff;color:var(--primary);font-weight:850;cursor:pointer}

/* Support */
.support-grid{display:grid;gap:10px}
.contact-card{display:grid;grid-template-columns:44px 1fr 22px;gap:11px;align-items:center;padding:14px;border:1px solid var(--border);border-radius:20px;background:#fff;text-decoration:none;box-shadow:var(--shadow)}
.contact-card.primary{background:var(--primary);border-color:var(--primary);color:#fff}
.contact-card>span:first-child{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:var(--surface-soft);color:var(--primary)}
.contact-card.primary>span:first-child{background:rgba(255,255,255,.14);color:#fff}
.contact-icon{width:21px;height:21px}
.contact-card>div{display:grid;gap:1px}
.contact-card small{color:var(--primary)}
.contact-card.primary small{color:#c7e5f1}
.contact-card strong{font-size:0.88rem}
.contact-card em{color:var(--muted);font-size:0.875rem;font-style:normal}
.contact-card.primary em{color:rgba(255,255,255,.7)}
.contact-arrow{width:17px;height:17px;color:var(--primary)}
.contact-card.primary .contact-arrow{color:#fff}
.support-info-card{margin-top:12px;display:grid;gap:12px}
.support-info-row{display:grid;grid-template-columns:32px 1fr;gap:10px;align-items:center}
.support-info-icon{width:18px;height:18px;color:var(--primary)}
.support-info-row span{display:grid}
.support-info-row small{color:var(--muted);font-size:0.875rem}
.support-info-row strong{font-size:0.875rem}
.linked-doctor-card{margin-top:12px}
.linked-doctor-card>small{margin-bottom:8px}
.legal-links{display:flex;gap:14px;flex-wrap:wrap;margin-top:18px}
.legal-links a{color:var(--primary);font-size:0.875rem;font-weight:800}

/* Modals */
.modal-backdrop{position:fixed;inset:0;z-index:100;display:grid;align-items:end;padding:10px;background:rgba(13,34,46,.58);backdrop-filter:blur(7px)}
.app-modal{position:relative;width:min(580px,100%);max-height:92vh;overflow:auto;margin:0 auto;padding:22px 18px calc(22px + env(safe-area-inset-bottom));border-radius:26px 26px 18px 18px;background:#fff;box-shadow:0 28px 80px -25px rgba(0,0,0,.5)}
.modal-close{position:absolute;right:12px;top:12px;width:38px;height:38px;border:1px solid var(--border);border-radius:50%;background:#fff;color:var(--muted);font-size:1.2rem;cursor:pointer}
.app-modal h2{padding-right:38px;margin-bottom:8px}
.app-modal>p{font-size:0.875rem}
.modal-contact-list{display:grid;gap:8px;margin-top:16px}
.modal-contact-list a{display:grid;grid-template-columns:38px 1fr;gap:9px;align-items:center;padding:12px;border:1px solid var(--border);border-radius:14px;text-decoration:none}
.modal-contact-icon{width:18px;height:18px;color:var(--primary)}
.modal-contact-list span{display:grid}
.modal-contact-list small{color:var(--muted);font-size:0.875rem}
.modal-contact-list strong{font-size:0.875rem}
.modal-hours{display:flex;align-items:center;gap:6px;margin-top:12px;color:var(--muted);font-size:0.875rem}
.rental-form{display:grid;gap:12px;margin-top:15px}
.form-grid{display:grid;gap:9px}
.rental-form label>span{display:block;margin-bottom:4px;color:var(--ink);font-size:0.875rem;font-weight:750}
.rental-form input,.rental-form textarea{width:100%;padding:10px 11px;border:1px solid #cfdae0;border-radius:12px;background:#fff;color:var(--ink);outline:0}
.rental-form input:focus,.rental-form textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(0,110,157,.08)}
.rental-form input[aria-invalid="true"]{border-color:#b42318;box-shadow:0 0 0 3px rgba(180,35,24,.08)}
.form-field-error{display:block;margin-top:5px;color:#b42318;font-size:.8rem;font-weight:650;line-height:1.35}
.rental-form textarea{resize:vertical}
.request-context{display:grid;gap:2px;padding:12px;border-radius:14px;background:var(--surface-soft)}
.request-context small{color:var(--muted);font-size:0.875rem;text-transform:uppercase;letter-spacing:.07em}
.request-context span{color:var(--primary);font-size:0.875rem}
.request-context code{margin-top:5px;color:#8a9ba4;font-size:0.875rem;overflow-wrap:anywhere}
.consent-row{display:grid!important;grid-template-columns:18px 1fr;gap:7px;align-items:start}
.consent-row input{width:17px;height:17px;margin-top:2px}
.consent-row span{margin:0!important;color:var(--muted)!important;font-size:0.875rem!important;font-weight:500!important;line-height:1.45}
.consent-row a{color:var(--primary);font-weight:800}
.rental-submit{min-height:46px;border:0;border-radius:13px;background:var(--primary);color:#fff;font-weight:850;cursor:pointer}
.empty-screen{min-height:60vh;display:grid;place-items:center;text-align:center;align-content:center}
.empty-screen>span{color:var(--primary);font-weight:900}
.empty-screen h1{margin:6px 0}
.empty-screen p{margin-bottom:18px}

/* Desktop app */
@media(min-width:760px){
  .app-screen{padding:28px 24px 44px}
  .dashboard-hero{min-height:350px;padding:34px}
  .dashboard-visual{right:20px;top:28px;width:280px;height:280px}
  .ring-one{width:240px;height:240px}.ring-two{width:170px;height:170px;right:35px;top:35px}
  .visual-core{right:98px;top:98px;width:70px;height:70px}
  .chip-one{right:20px;top:60px}.chip-two{right:175px;top:145px}.chip-three{right:55px;top:210px}
  .dashboard-hero-copy{padding-right:240px}
  .journey-grid{grid-template-columns:repeat(3,1fr)}
  .journey-tile{min-height:255px}
  .journey-art{height:130px}
  .journey-copy>span{display:block}
  .rehab-overview{grid-template-columns:1fr auto;align-items:center;padding:23px}
  .rehab-overview-progress{justify-self:end}
  .guided-start-button{grid-column:1/-1}
  .exercise-body{grid-template-columns:minmax(250px,.9fr) 1.1fr}
  .exercise-image{min-height:280px;border-right:1px solid var(--border)}
  .rehab-footer{flex-direction:row;align-items:center;justify-content:space-between}
  .guided-backdrop{align-items:center;padding:20px}
  .guided-modal{height:min(860px,calc(100dvh - 40px));border-radius:26px}
  .guided-image{min-height:360px}
  .quick-grid{grid-template-columns:1fr 1fr}
  .path-list-grid{grid-template-columns:repeat(2,1fr)}
  .phase-content-grid{grid-template-columns:1fr 1fr}
  .safety-note{grid-column:1/-1}
  .device-context-card{display:grid;grid-template-columns:210px 1fr}
  .device-thumb{min-height:100%}
  .catalog-grid{grid-template-columns:repeat(2,1fr)}
  .device-detail-card{grid-template-columns:.9fr 1.1fr;align-items:center}
  .device-info-grid{grid-template-columns:1fr 1fr}
  .support-grid{grid-template-columns:1fr 1fr}
  .form-grid{grid-template-columns:1fr 1fr}
  .modal-backdrop{align-items:center;padding:24px}
  .app-modal{border-radius:26px;padding:26px}
}

@media(min-width:1024px){
  body{overflow-y:scroll}
  .app-shell{display:grid;grid-template-columns:236px 1fr}
  .app-sidebar{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;padding:22px 16px;border-right:1px solid var(--border);background:#fff}
  .app-brand{padding:0 8px 18px}
  .app-brand-mark{width:38px;height:38px;border-radius:12px}
  .app-sidebar-nav{display:grid;gap:5px;margin-top:10px}
  .app-sidebar .app-nav-item{min-height:46px;display:flex;flex-direction:row;justify-content:flex-start;gap:11px;padding:0 12px;border-radius:13px;font-size:0.875rem}
  .app-sidebar .app-nav-icon{width:19px;height:19px}
  .sidebar-doctor{margin-top:auto;padding-top:18px}
  .sidebar-doctor .doctor-context{padding:12px;border:1px solid var(--border);border-radius:16px;background:var(--surface-soft)}
  .sidebar-meta{display:flex;justify-content:space-between;gap:8px;margin-top:12px;padding:0 4px;color:#99a7ae;font-size:0.875rem}
  .sidebar-meta a{color:var(--primary);text-decoration:none}
  .app-stage{min-width:0}
  .app-topbar{height:72px;grid-template-columns:1fr auto;border-bottom:1px solid var(--border);padding:0 28px}
  .mobile-brand{display:none}
  .topbar-label{justify-self:start;font-size:0.875rem}
  .topbar-help{justify-self:end}
  .doctor-context.compact{justify-self:start;max-width:none}
  .doctor-context.compact .doctor-context-copy strong{max-width:none}
  .app-main{padding-bottom:0}
  .app-bottom-nav{display:none}
  .app-screen{width:min(1060px,100%);padding:36px 34px 56px}
  .dashboard-hero{min-height:390px;padding:42px}
  .dashboard-hero h1{font-size:3.4rem}
  .path-list-grid{grid-template-columns:repeat(3,1fr)}
  .catalog-grid{grid-template-columns:repeat(3,1fr)}
  .phase-content-grid{grid-template-columns:1.1fr .9fr}
  .rehab-overview{grid-template-columns:1fr auto 270px}
  .guided-start-button{grid-column:auto}
  .rehab-phases{padding:14px}
  .rehab-phase>summary{padding:11px 14px}
  .rehab-exercise-list{padding:12px}
  .exercise-detail>summary{padding:10px 12px}
  .guided-modal{width:min(900px,100%)}
  .safety-note{grid-column:2}
  .checklist-card{grid-row:span 2}
  .path-title-grid{grid-template-columns:1fr 190px}
  .path-title-art{height:190px}
}

@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}

/* deploy-sync-checklist-images */

@media(max-width:520px){
  .mobile-brand .medirent-brand-logo{width:104px;max-height:42px}
  .mobile-brand .medirent-care-badge{font-size:0.875rem;padding:2px 5px}
  .topbar-label{display:none}
  .app-topbar{grid-template-columns:1fr 40px}
  .app-topbar>.doctor-context.compact{display:flex}
}

/* Patient workspace refinement. */
:focus-visible{outline:3px solid #006e9d;outline-offset:3px}
.skip-link{position:fixed;top:-100px;left:16px;z-index:200;background:white;padding:12px}.skip-link:focus{top:12px}
.app-screen{overflow-wrap:anywhere}.app-screen>*{min-width:0}
.app-topbar{height:auto;min-height:66px;padding-top:env(safe-area-inset-top)}
.topbar-help,.modal-close,.icon-button{min-width:44px;min-height:44px}
.topbar-label{white-space:normal;font-size:.875rem}
.app-bottom-nav{bottom:max(10px,env(safe-area-inset-bottom));left:max(10px,env(safe-area-inset-left));right:max(10px,env(safe-area-inset-right))}
.app-main{padding-bottom:calc(98px + env(safe-area-inset-bottom))}
.app-nav-item{font-size:.875rem;color:#647680}
.app-section-head a,.back-link,.text-link{display:inline-flex;align-items:center;min-height:44px}
.return-note{margin:0;font-size:1rem}.saved-note,.content-reference,.protocol-reference,.progress-explanation{font-size:.875rem;line-height:1.55;color:var(--muted)}
.content-reference{padding:12px 0;border-bottom:1px solid var(--border)}
.personal-path{display:grid;grid-template-columns:minmax(0,1fr) 110px;gap:18px;padding:22px;border:1px solid var(--border);border-radius:24px;background:white}
.personal-path h1{font-size:clamp(1.65rem,5vw,2.5rem);margin:0 0 12px}.personal-path p{font-size:1rem}.personal-art{align-self:start;aspect-ratio:1;overflow:hidden;border-radius:18px;background:var(--surface-soft)}.personal-art img{width:100%;height:100%;object-fit:cover}
.digital-progress{grid-column:1/-1;display:grid;gap:8px;border-top:1px solid var(--border);padding-top:18px}.digital-progress span{font-size:.875rem}.digital-progress p{font-size:.875rem;margin:0}.digital-progress progress{width:100%;height:9px;accent-color:var(--primary)}
.home-working-grid{display:grid;gap:18px}.home-secondary{display:grid;align-content:start;gap:14px}.home-secondary .app-section-head{margin-bottom:0}.home-secondary .quick-tile{width:100%;text-align:left}.home-secondary .context-banner{margin:0}.onboarding-support{width:100%;margin-top:20px;text-align:left}
.quick-tile strong,.quick-tile em{white-space:normal}.quick-tile em{font-size:.875rem}.check-row{min-height:64px}.check-copy>span,.accordion-list p,.safety-note p,.exercise-instructions>p,.guided-copy>p,.rental-panel p,.device-detail-copy>p{font-size:1rem}
.check-copy small,.checklist-footer,.rehab-footer p{font-size:.875rem}.check-row:has(input:focus-visible){outline:3px solid var(--primary);outline-offset:2px}.check-row.is-done .check-copy>span{color:#647680}
.rehab-phase-title strong,.exercise-summary-copy strong{white-space:normal;font-size:1rem}.rehab-phase-title small,.exercise-summary-copy small{white-space:normal;font-size:.875rem}.rehab-overview-copy p{font-size:1rem}.rehab-resume-note{font-size:.875rem;color:var(--ink)}
.rehab-footer button{min-height:44px}.exercise-complete-button,.guided-actions button,.guided-start-button strong{font-size:1rem}.exercise-errors ul{font-size:.875rem}.exercise-image img{width:100%;height:260px;object-fit:contain}.exercise-image{min-height:0}.guided-image{min-height:0}.guided-image img{height:32dvh;object-fit:contain}.exercise-image-fallback[hidden]{display:none!important}
.guided-header{padding-top:max(16px,env(safe-area-inset-top))}.guided-actions{padding-bottom:max(12px,env(safe-area-inset-bottom))}.guided-scroll{min-height:0}.guided-completed-badge{width:auto}.guided-modal{max-width:100%}
.modal-open{overflow:hidden}.app-modal{max-height:calc(100dvh - 24px);overscroll-behavior:contain}.rental-form input,.rental-form textarea{font-size:1rem;min-height:48px}.consent-row input{min-height:24px;min-width:24px}.rental-form .consent-row span{font-size:.875rem!important}.request-context code{font-size:.75rem}.storage-note{margin:12px;padding:12px;background:var(--warning-bg);font-size:.875rem}
.path-title-grid{min-width:0}.path-title-grid h1{font-size:clamp(1.7rem,5vw,2.6rem)}.path-title-art img{object-fit:contain}.path-title-art{max-height:150px}.device-context-actions{flex-wrap:wrap}.device-context-actions a,.device-context-actions button{min-height:44px}.device-context-copy{min-width:0}.phase-chip strong{font-size:.875rem}.phase-chip{min-width:0}.phase-focus-card{padding:18px}.phase-focus-card h2{font-size:1.6rem}
@media(max-width:520px){.personal-path{grid-template-columns:minmax(0,1fr);padding:18px}.personal-art{display:none}.app-topbar{grid-template-columns:1fr auto 44px}.topbar-label{display:none}.topbar-help{grid-column:3}.doctor-context.compact .doctor-avatar{display:none}.doctor-context.compact .doctor-context-copy strong{font-size:.75rem;max-width:135px}.doctor-context.compact .doctor-context-copy small{font-size:.75rem}.app-bottom-nav{gap:0;padding:5px}.app-nav-item{font-size:.75rem}.path-list-grid{grid-template-columns:1fr}.journey-copy>span{font-size:.875rem}.phase-strip{gap:4px}.phase-chip strong{font-size:.75rem}.path-title-art{display:none}.guided-actions button{font-size:.875rem}}
@media(min-width:760px){.home-working-grid{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}.personal-path{grid-template-columns:minmax(0,1fr) 180px}.guided-scroll{display:grid;grid-template-columns:1fr 1fr;align-content:start}.guided-image{align-self:start;position:sticky;top:0}.guided-image img{height:auto;max-height:60dvh}.guided-copy{align-content:start}.app-screen{padding-left:24px;padding-right:24px}}
@media(min-width:1024px){.app-main{padding-bottom:24px}.app-sidebar .app-nav-item{font-size:.95rem}.app-screen{width:min(1120px,100%)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

.exercise-image video,.guided-image video{width:100%;max-height:55dvh;object-fit:contain}

/* Doctor-context home and useful contacts */
.doctor-home-summary{display:grid;gap:14px;margin-bottom:6px}
.doctor-home-summary-main{display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px;align-items:center}
.doctor-home-summary .doctor-avatar{width:76px;height:76px;border-radius:20px;font-size:1.05rem;box-shadow:0 10px 24px rgba(18,42,83,.08)}
.doctor-home-summary h1{margin:2px 0 5px;font-size:clamp(1.65rem,5vw,2.35rem)}
.doctor-home-summary p{margin:0}.doctor-home-role{font-weight:800;color:var(--ink)}.doctor-home-specialization{margin-top:2px!important;color:var(--muted);font-size:.95rem}
.doctor-home-summary .app-kicker{margin-bottom:2px}
.doctor-home-location{display:block;margin-top:4px;color:var(--muted);font-size:.875rem}
.doctor-home-bio{max-width:760px;color:var(--muted);line-height:1.6}
.doctor-home-profile-link{margin-top:0;justify-self:start}

.useful-contacts-section{margin-top:20px}
.useful-contacts-grid{display:grid;gap:10px}
.useful-contact-card{display:grid;gap:12px;padding:15px;border:1px solid var(--border);border-radius:18px;background:#fff;box-shadow:var(--shadow)}
.useful-contact-copy{display:grid;gap:3px;min-width:0}
.useful-contact-copy small{color:var(--primary);font-size:.75rem;font-weight:850;text-transform:uppercase;letter-spacing:.08em}
.useful-contact-copy strong{font-size:1rem;color:var(--ink)}
.useful-contact-copy>span{color:var(--muted);font-size:.875rem;line-height:1.45}
.useful-contact-actions{display:flex;flex-wrap:wrap;gap:7px}
.useful-contact-actions a{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:8px 11px;border:1px solid var(--border);border-radius:12px;background:var(--surface-soft);color:var(--primary);text-decoration:none;font-size:.875rem;font-weight:800}
.useful-contact-actions a:hover{background:#e7f3f0}
.useful-contact-icon{width:16px;height:16px}

.patient-instruction-list{display:grid;gap:10px}
.patient-instruction-card{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.patient-instruction-card>div{min-width:0}
.patient-instruction-card strong{display:block;margin-bottom:4px}
.patient-instruction-card p{margin:0;color:var(--muted);font-size:.9rem;line-height:1.55}
.patient-instruction-card>a{flex:0 0 auto;display:inline-flex;align-items:center;min-height:40px;color:var(--primary);font-size:.875rem;font-weight:800;text-decoration:none}

@media(min-width:760px){
  .doctor-home-summary{padding:22px}
  .doctor-home-summary .doctor-avatar{width:96px;height:96px;border-radius:24px}
  .useful-contacts-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .useful-contact-card{padding:17px}
}
@media(min-width:1024px){
  .doctor-home-summary{grid-template-columns:minmax(0,1fr) auto;align-items:center}
  .doctor-home-summary-main,.doctor-home-bio{grid-column:1}
  .doctor-home-profile-link{grid-column:2;grid-row:1 / span 2;align-self:center}
}
@media(max-width:520px){
  .doctor-home-summary{padding:16px}
  .doctor-home-summary-main{align-items:start}
  .doctor-home-summary .doctor-avatar{width:72px;height:72px;border-radius:18px}
  .useful-contact-actions a{flex:1 1 auto;justify-content:center}
  .patient-instruction-card{display:grid}
  .patient-instruction-card>a{justify-self:start}
}
.doctor-profile-screen .linked-doctor-card .doctor-avatar{width:72px;height:72px;border-radius:20px;font-size:1.05rem}
@media(min-width:760px){.doctor-profile-screen .linked-doctor-card .doctor-avatar{width:84px;height:84px;border-radius:22px}}


/* Doctor hub refinement 2026-09-23 */
.doctor-home-summary{position:relative;overflow:hidden;border-color:#cfe1e9;background:linear-gradient(145deg,#ffffff 0%,#f4f9fb 100%);box-shadow:0 18px 46px -34px rgba(0,88,126,.22)}
.doctor-home-summary::after{content:"";position:absolute;right:-50px;top:-70px;width:170px;height:170px;border-radius:50%;background:radial-gradient(circle,rgba(0,110,157,.08),transparent 68%);pointer-events:none}
.doctor-home-summary-main,.doctor-home-bio,.doctor-home-profile-link{position:relative;z-index:1}
.doctor-home-bio{margin-top:2px!important;font-size:.95rem}
.doctor-home-profile-link{padding:0 2px}
.dashboard-screen>.useful-contacts-section + .app-section-head,.dashboard-screen>.useful-contacts-section + .screen-head{margin-top:30px;padding-top:24px;border-top:1px solid var(--border)}
.dashboard-screen>.useful-contacts-section + .screen-head{padding-bottom:16px}

.useful-contacts-section.is-compact{margin-top:14px;padding:14px;border:1px solid var(--border);border-radius:20px;background:var(--surface-soft)}
.useful-contacts-section.is-compact .app-section-head{margin-bottom:10px}
.useful-contacts-section.is-compact .app-section-head h2{font-size:1.2rem}
.useful-contacts-section.is-compact .useful-contacts-grid{gap:8px}
.useful-contacts-section.is-compact .useful-contact-card{padding:12px 13px;border-radius:15px;box-shadow:none}
.useful-contacts-section.is-compact .useful-contact-copy strong{font-size:.94rem}
.useful-contacts-section.is-compact .useful-contact-copy>span{font-size:.8rem}
.useful-contacts-section.is-compact .useful-contact-actions a{min-height:38px;padding:7px 9px;background:#fff}
.useful-contacts-note,.patient-instructions-note{margin:5px 0 0;color:var(--muted);font-size:.875rem;line-height:1.45}
.useful-contact-pending{display:inline-flex;align-items:center;min-height:38px;color:var(--muted);font-size:.8rem;font-weight:700}

.patient-instruction-card{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:start;gap:12px}
.patient-instruction-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:var(--surface-soft);color:var(--primary)}
.patient-instruction-svg{width:19px;height:19px}
.patient-instruction-copy{min-width:0}
.patient-instruction-copy small{display:block;margin-bottom:3px;color:var(--primary);font-size:.72rem;font-weight:850;text-transform:uppercase;letter-spacing:.07em}
.patient-instruction-card>a,.patient-instruction-unavailable{grid-column:2}
.patient-instruction-card>a{justify-self:start;min-height:40px;padding:7px 10px;border-radius:11px;background:var(--surface-soft)}
.patient-instruction-unavailable{color:var(--muted);font-size:.8rem;font-weight:700}
.patient-instruction-card p{max-width:720px}
.request-context{border:1px solid var(--border)}
.request-context code{display:none}

@media(min-width:760px){
  .useful-contacts-section.is-compact .useful-contacts-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .patient-instruction-card{grid-template-columns:42px minmax(0,1fr) auto;align-items:center}
  .patient-instruction-card>a,.patient-instruction-unavailable{grid-column:3;grid-row:1;align-self:center}
}
@media(min-width:1024px){
  .useful-contacts-section.is-compact{padding:16px 18px}
  .useful-contacts-section.is-compact .useful-contacts-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:520px){
  .doctor-home-summary{gap:12px}
  .doctor-home-summary h1{font-size:1.55rem}
  .doctor-home-bio{font-size:.9rem}
  .useful-contacts-section.is-compact{padding:12px}
  .useful-contacts-section.is-compact .useful-contact-actions a{flex:1 1 calc(50% - 4px)}
  .patient-instruction-card{padding:15px}
}

/* Medirent brand palette: logo/site blue + rental orange + contact green */
.primary-action,.icon-button,.guided-start-button,.exercise-complete-button{background:var(--primary)}
.rental-panel{background:linear-gradient(145deg,var(--primary-strong),var(--primary));box-shadow:0 22px 48px -34px rgba(0,88,126,.48)}
.rental-panel button,.rental-submit,.device-context-actions button{background:var(--accent);color:#fff}
.rental-panel button:hover,.rental-submit:hover,.device-context-actions button:hover{background:var(--accent-strong)}
.device-price-block{background:#f1f7fa;border:1px solid rgba(0,110,157,.09)}
.contact-card.primary{background:var(--success);border-color:var(--success)}
.contact-card.primary:hover{background:var(--success-strong)}
.contact-card.primary small{color:#dff4df}
.useful-contact-actions a[href^="https://wa.me"]{border-color:rgba(40,162,40,.25);background:var(--success-soft);color:var(--success-strong)}
.doctor-home-summary{border-color:#cfe1e9;background:linear-gradient(145deg,#ffffff 0%,#f2f8fb 100%);box-shadow:0 18px 46px -34px rgba(0,88,126,.28)}
.doctor-home-summary::after{background:radial-gradient(circle,rgba(0,110,157,.09),transparent 68%)}
.phase-focus-card{background:linear-gradient(145deg,#084b6b,#006e9d);box-shadow:0 22px 54px -40px rgba(0,77,111,.62)}
.app-nav-item.is-active{background:#eaf4f8}
.phase-chip.is-visited>span,.doctor-inline,.journey-exercise-count{background:#edf6fa}
.rehab-flow-status{min-height:0;margin:0;padding:0;color:var(--primary);font-size:.875rem;font-weight:750}
.rehab-flow-status:not(:empty){margin:8px 0 0;padding:9px 11px;border:1px solid rgba(0,110,157,.14);border-radius:12px;background:#edf6fa}

/* Device catalog filters */
.catalog-tools{display:grid;gap:10px;margin-bottom:16px}
.catalog-filter-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.catalog-category-scroll{display:flex;gap:7px;min-width:0;overflow-x:auto;padding:1px 1px 5px;scrollbar-width:none}
.catalog-category-scroll::-webkit-scrollbar{display:none}
.catalog-filter{flex:0 0 auto;min-height:38px;padding:7px 11px;border:1px solid var(--border);border-radius:999px;background:#fff;color:var(--muted);font-size:.8rem;font-weight:800;cursor:pointer}
.catalog-filter:hover{border-color:rgba(0,110,157,.35);color:var(--primary)}
.catalog-filter.is-active{border-color:var(--primary);background:var(--primary);color:#fff}
.catalog-result-count{flex:0 0 auto;color:var(--muted);font-size:.8rem;font-weight:750}
@media(max-width:520px){
  .catalog-filter-row{display:grid;gap:5px}
  .catalog-result-count{padding-left:2px}
  .catalog-category-scroll{width:100%}
}
.device-source-card p{margin:5px 0 0;color:var(--muted);font-size:.8rem}

/* Mobile catalog and rental UX */
.rental-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:12px 0 4px;padding:0;list-style:none}
.rental-steps li{display:grid;justify-items:center;gap:4px;padding:8px 5px;border:1px solid var(--border);border-radius:12px;background:#f8fbfd;color:var(--muted);font-size:.72rem;font-weight:750;text-align:center}
.rental-steps li span{width:24px;height:24px;display:grid;place-items:center;border-radius:50%;background:var(--primary);color:#fff;font-size:.75rem;font-weight:900}
.rental-actions{display:grid;gap:8px}
.rental-call-link{min-height:44px;display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--border);border-radius:13px;background:#fff;color:var(--primary);font-size:.875rem;font-weight:800;text-decoration:none}
.rental-call-link:hover{background:#edf6fa}
.handoff-status{margin:0;padding:10px 11px;border:1px solid rgba(40,162,40,.2);border-radius:12px;background:var(--success-soft);color:#285d28;font-size:.82rem;line-height:1.45}
.handoff-status a{color:var(--success-strong);font-weight:850}
.rental-panel-actions{display:grid;gap:8px}
.rental-panel-actions>a{min-height:44px;display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid rgba(255,255,255,.34);border-radius:14px;color:#fff;text-decoration:none;font-size:.875rem;font-weight:800}
.rental-panel-actions>a:hover{background:rgba(255,255,255,.1)}
@media(max-width:759px){
  .catalog-tools{position:sticky;top:66px;z-index:12;margin:0 -5px 14px;padding:8px 5px 9px;background:rgba(245,248,250,.96);backdrop-filter:blur(14px);border-bottom:1px solid rgba(219,230,236,.9)}
  .catalog-search{margin-bottom:0}
  .catalog-media{min-height:155px;padding:12px}
  .catalog-media img{max-height:145px}
  .catalog-copy{padding:13px 14px 14px}
  .rental-modal{max-height:calc(100dvh - 10px);padding-bottom:0}
  .rental-form{padding-bottom:0}
  .rental-actions{position:sticky;bottom:0;z-index:3;margin:2px -18px 0;padding:11px 18px calc(11px + env(safe-area-inset-bottom));border-top:1px solid var(--border);background:rgba(255,255,255,.97);backdrop-filter:blur(14px);box-shadow:0 -12px 30px -24px rgba(0,49,72,.4)}
  .rental-submit{min-height:50px}
}
@media(min-width:760px){
  .rental-actions{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);align-items:center}
  .rental-panel-actions{grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr)}
}

/* Path-aware catalog context */
.catalog-context-banner{display:grid;grid-template-columns:42px minmax(0,1fr);gap:11px;align-items:center;margin:0 0 12px;padding:12px 13px;border:1px solid rgba(0,110,157,.16);border-radius:16px;background:#edf6fa}
.catalog-context-icon{width:21px;height:21px;justify-self:center;color:var(--primary)}
.catalog-context-banner>span{display:grid;min-width:0}
.catalog-context-banner small{color:var(--primary);font-size:.72rem;font-weight:850;text-transform:uppercase;letter-spacing:.07em}
.catalog-context-banner strong{font-size:.9rem}
.catalog-context-banner em{margin-top:1px;color:var(--muted);font-size:.78rem;font-style:normal}
.catalog-card.is-path-related{border-color:rgba(0,110,157,.28);box-shadow:0 18px 55px -38px rgba(0,88,126,.38)}
.catalog-path-badge{display:inline-flex;width:max-content;margin:1px 0 8px;padding:4px 7px;border-radius:999px;background:#edf6fa;color:var(--primary);font-size:.72rem;font-weight:850}

/* Rental lead handoff states */
.handoff-next-actions{display:grid;gap:8px;margin-top:2px;padding-top:10px;border-top:1px solid var(--border)}
.handoff-next-actions button,.handoff-next-actions a{min-height:42px;display:flex;align-items:center;justify-content:center;padding:8px 11px;border:1px solid var(--border);border-radius:12px;background:#fff;color:var(--primary);font-size:.84rem;font-weight:800;text-decoration:none;cursor:pointer}
.handoff-next-actions button:hover,.handoff-next-actions a:hover{background:#edf6fa}
@media(min-width:760px){.handoff-next-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Final Medirent orange + doctor-first polish */
.primary-action,
.guided-start-button,
.exercise-complete-button:not(.is-complete){
  background:var(--accent-action);
  color:#fff;
}
.primary-action:hover,
.guided-start-button:hover,
.exercise-complete-button:not(.is-complete):hover{background:var(--accent-action-hover)}
.guided-start-button{box-shadow:0 15px 34px -24px rgba(185,71,14,.7)}
.guided-start-button small{color:#ffe7d8}
.rental-panel button,
.rental-submit,
.device-context-actions button{background:var(--accent-action);color:#fff}
.rental-panel button:hover,
.rental-submit:hover,
.device-context-actions button:hover{background:var(--accent-action-hover)}

.doctor-home-summary{
  border-color:rgba(243,112,34,.24);
  box-shadow:inset 4px 0 0 var(--accent),0 18px 46px -34px rgba(0,88,126,.28);
}
.doctor-home-summary .app-kicker,
.useful-contacts-section.is-compact .app-section-head small,
.useful-contact-copy small{color:var(--accent-action)}
.doctor-home-profile-link{
  min-height:40px;
  padding:7px 10px;
  border:1px solid rgba(201,79,12,.18);
  border-radius:11px;
  background:var(--accent-soft);
  color:var(--accent-action);
}
.doctor-home-profile-link:hover{background:#ffe8d8}
.catalog-path-badge,
.journey-exercise-count{
  background:var(--accent-soft);
  color:var(--accent-action);
  border:1px solid rgba(243,112,34,.14);
}
.rental-steps li span{background:var(--accent-action)}
.topbar-help{border-color:rgba(243,112,34,.28);color:var(--accent-action)}
.topbar-help:hover{background:var(--accent-soft)}
.app-nav-item.is-active{box-shadow:inset 0 -2px 0 rgba(243,112,34,.7)}
.home-secondary .quick-icon,
.onboarding-support .quick-icon{background:var(--accent-soft);color:var(--accent-action)}
.contact-card.primary{background:var(--success-strong);border-color:var(--success-strong)}
.contact-card.primary:hover{background:#196c19}
.contact-card.primary small{color:#e2f5e2}
@media(max-width:520px){
  .doctor-home-summary{box-shadow:inset 3px 0 0 var(--accent),0 18px 46px -34px rgba(0,88,126,.24)}
}

/* Compact doctor home contact refinement */
.useful-contacts-section.is-compact{
  margin-top:16px;
  padding:0;
  border:0;
  background:transparent;
}
.useful-contacts-section.is-compact .app-section-head{margin-bottom:8px}
.useful-contacts-section.is-compact .app-section-head h2{
  margin:0;
  font-size:1.08rem;
  letter-spacing:-.025em;
}
.useful-contacts-section.is-compact .useful-contacts-grid{gap:8px}
.useful-contacts-section.is-compact .useful-contact-card{
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  padding:11px 12px;
  border-color:#d7e4ea;
  border-radius:15px;
  background:#fff;
  box-shadow:0 12px 34px -30px rgba(0,88,126,.32);
}
.useful-contacts-section.is-compact .useful-contact-copy{gap:1px}
.useful-contacts-section.is-compact .useful-contact-copy small{
  color:var(--accent-action);
  font-size:.67rem;
  letter-spacing:.07em;
}
.useful-contacts-section.is-compact .useful-contact-copy strong{
  font-size:.92rem;
  line-height:1.25;
}
.useful-contacts-section.is-compact .useful-contact-actions{
  flex-wrap:nowrap;
  gap:6px;
}
.useful-contacts-section.is-compact .useful-contact-actions a{
  flex:0 0 auto;
  min-height:38px;
  padding:7px 9px;
  border-radius:11px;
  background:#fff;
  font-size:.78rem;
}
.useful-contacts-section.is-compact .useful-contact-icon{width:15px;height:15px}

@media(max-width:520px){
  .doctor-home-summary{
    gap:9px;
    padding:14px;
  }
  .doctor-home-summary-main{
    grid-template-columns:58px minmax(0,1fr);
    gap:11px;
    align-items:center;
  }
  .doctor-home-summary .doctor-avatar{
    width:58px;
    height:58px;
    border-radius:16px;
  }
  .doctor-home-summary .app-kicker{
    margin-bottom:1px;
    font-size:.68rem;
    letter-spacing:.08em;
  }
  .doctor-home-summary h1{
    margin:1px 0 2px;
    font-size:1.32rem;
    line-height:1.04;
  }
  .doctor-home-role{display:none}
  .doctor-home-specialization{
    margin-top:0!important;
    font-size:.82rem;
    line-height:1.35;
  }
  .doctor-home-bio{
    display:-webkit-box;
    overflow:hidden;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    margin-top:1px!important;
    font-size:.84rem;
    line-height:1.45;
  }
  .doctor-home-profile-link{
    min-height:36px;
    padding:6px 9px;
    font-size:.8rem;
  }
  .useful-contacts-section.is-compact .useful-contact-actions a span{display:none}
  .useful-contacts-section.is-compact .useful-contact-actions a{
    width:38px;
    padding:0;
    justify-content:center;
  }
}
@media(min-width:760px){
  .useful-contacts-section.is-compact .useful-contact-card{padding:13px 14px}
}

/* Percorso Salute-inspired typography refinement */
html{
  font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:16.5px;
  font-kerning:normal;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}
body{line-height:1.6}
h1,h2,h3{
  font-weight:700;
  letter-spacing:-.025em;
}
.screen-head p,
.doctor-home-bio,
.device-detail-copy>p,
.path-title-grid p{line-height:1.62}

.app-kicker,
.app-section-head small,
.card-title-row small,
.app-card>small,
.rental-panel small,
.contact-card small,
.quick-tile small,
.phase-focus-card>small{
  font-weight:700;
  letter-spacing:.075em;
}
.app-section-head a,
.text-link,
.back-link,
.primary-action,
.doctor-home-profile-link,
.useful-contact-actions a,
.contact-card strong,
.rental-submit,
.rental-call-link,
.handoff-next-actions button,
.handoff-next-actions a{
  font-weight:700;
}
.app-nav-item{font-weight:600}
.quick-tile strong,
.journey-copy strong,
.useful-contact-copy strong,
.doctor-home-role,
.rehab-phase-title strong,
.exercise-summary-copy strong,
.phase-chip strong,
.phase-chip>span,
.catalog-filter{
  font-weight:700;
}
.quick-tile em,
.useful-contact-copy>span,
.doctor-home-specialization,
.doctor-home-bio{
  font-weight:400;
}
.useful-contact-copy small,
.useful-contacts-section.is-compact .useful-contact-copy small{
  font-weight:700;
  letter-spacing:.065em;
}
.catalog-result-count{font-weight:600}

@media(max-width:640px){
  html{font-size:16px}
  body{line-height:1.62}
  .doctor-home-summary h1{font-weight:700;letter-spacing:-.025em}
  .doctor-home-bio{font-size:.88rem;line-height:1.55}
  .doctor-home-specialization{font-size:.82rem;line-height:1.45}
  .useful-contacts-section.is-compact .useful-contact-copy strong{font-size:.9rem}
  .useful-contacts-section.is-compact .useful-contact-copy small{font-size:.7rem}
  .app-bottom-nav .app-nav-item{font-weight:600}
}

/* Home path hierarchy refinement */
.home-path-head{
  align-items:center;
  margin-top:30px;
}
.home-path-head>div{min-width:0}
.home-paths-link{
  flex:0 0 auto;
  gap:5px;
  min-height:38px!important;
  padding:6px 9px;
  border:1px solid rgba(0,110,157,.14);
  border-radius:11px;
  background:#fff;
  white-space:nowrap;
}
.home-paths-link .button-icon{width:15px;height:15px}

.personal-path{
  border-color:#d8e5eb;
  box-shadow:0 18px 50px -40px rgba(0,88,126,.35);
}
.personal-path-copy{min-width:0}
.personal-path-eyebrow{
  display:block;
  margin-bottom:5px;
  color:var(--accent-action);
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.075em;
  text-transform:uppercase;
}
.personal-path h1{margin-bottom:8px}
.personal-path-resume{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:4px 7px;
  margin:0 0 14px;
  color:var(--muted);
  line-height:1.45;
}
.personal-path-resume span{font-size:.88rem}
.personal-path-resume strong{
  color:var(--ink-strong);
  font-size:.92rem;
  font-weight:700;
}
.digital-progress{gap:9px}
.digital-progress-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.digital-progress-head strong{font-size:.9rem}
.digital-progress-head span{
  flex:0 0 auto;
  color:var(--muted);
  font-size:.8rem;
}
.digital-progress progress{
  height:8px;
  border-radius:999px;
}
.digital-progress p{color:var(--muted);line-height:1.5}

.doctor-home-summary{
  box-shadow:inset 2px 0 0 rgba(243,112,34,.78),0 18px 46px -34px rgba(0,88,126,.28);
}
.useful-contacts-section.is-compact .useful-contact-actions a{
  min-width:44px;
  min-height:44px;
}

@media(max-width:520px){
  .home-path-head{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:end;
    gap:10px;
  }
  .home-path-head .return-note{
    max-width:190px;
    font-size:.9rem;
    line-height:1.45;
  }
  .home-paths-link{
    min-height:38px!important;
    padding:6px 8px;
    font-size:.78rem;
  }
  .personal-path{
    padding:16px;
    gap:14px;
    border-radius:20px;
  }
  .personal-path h1{
    margin-bottom:6px;
    font-size:1.45rem;
  }
  .personal-path-eyebrow{font-size:.68rem}
  .personal-path-resume{margin-bottom:12px}
  .personal-path .primary-action{min-height:46px}
  .digital-progress{padding-top:14px}
  .digital-progress-head{align-items:baseline}
  .digital-progress-head strong{font-size:.84rem}
  .digital-progress-head span{font-size:.76rem}
  .digital-progress p{font-size:.78rem}
  .doctor-home-summary{
    box-shadow:inset 2px 0 0 rgba(243,112,34,.72),0 18px 46px -34px rgba(0,88,126,.24);
  }
  .useful-contacts-section.is-compact .useful-contact-actions a{
    width:44px;
    min-width:44px;
    min-height:44px;
  }
}

/* Doctor profile overlap fix */
.doctor-profile-screen .linked-doctor-card{
  display:grid;
  gap:10px;
}
.doctor-profile-screen .linked-doctor-card .doctor-context{
  align-items:flex-start;
  min-width:0;
}
.doctor-profile-screen .linked-doctor-card .doctor-avatar{
  flex:0 0 auto;
}
.doctor-profile-screen .linked-doctor-card .doctor-context-copy{
  min-width:0;
  gap:2px;
}
.doctor-profile-screen .linked-doctor-card .section-note{
  margin:0;
  padding:0;
  color:var(--muted);
  line-height:1.45;
}
.doctor-profile-screen .linked-doctor-card>p:not(.section-note){
  margin:2px 0 0;
  line-height:1.58;
}
@media(max-width:520px){
  .doctor-profile-screen .linked-doctor-card{
    gap:9px;
    padding:15px;
  }
  .doctor-profile-screen .linked-doctor-card .doctor-context{
    gap:10px;
  }
  .doctor-profile-screen .linked-doctor-card .doctor-avatar{
    width:64px;
    height:64px;
    border-radius:17px;
  }
  .doctor-profile-screen .linked-doctor-card .doctor-context-copy small,
  .doctor-profile-screen .linked-doctor-card .doctor-context-copy strong,
  .doctor-profile-screen .linked-doctor-card .doctor-context-copy span{
    overflow-wrap:anywhere;
  }
}

/* Static phase guidance: no checklist interaction */
.guidance-card{display:grid;gap:14px;padding:18px}
.guidance-header small{display:block;margin-bottom:3px;color:var(--primary);font-size:.78rem;font-weight:700;letter-spacing:.075em;text-transform:uppercase}
.guidance-header h3{margin:0}
.guidance-header p{margin:4px 0 0;color:var(--muted);font-size:.9rem;line-height:1.5}
.phase-guidance-list{display:grid;gap:0;margin:0;padding:0;list-style:none}
.phase-guidance-list li{display:grid;grid-template-columns:10px minmax(0,1fr);gap:11px;align-items:start;padding:11px 0;border-top:1px solid var(--border);color:var(--ink);line-height:1.5}
.phase-guidance-list li:first-child{padding-top:0;border-top:0}
.phase-guidance-list li:last-child{padding-bottom:0}
.guidance-marker{width:7px;height:7px;margin-top:.55em;border-radius:999px;background:var(--accent);box-shadow:0 0 0 4px var(--accent-soft)}
.guidance-more-link{display:inline-flex;width:max-content;align-items:center;gap:6px;min-height:40px;color:var(--primary);font-size:.84rem;font-weight:700;text-decoration:none}
.guidance-more-link .button-icon{width:15px;height:15px}
.guidance-card.is-compact{gap:11px;padding:15px 16px}
.guidance-card.is-compact .guidance-header p{font-size:.84rem}
.guidance-card.is-compact .phase-guidance-list li{padding:8px 0;font-size:.9rem;line-height:1.45}
.guidance-card.is-compact .guidance-marker{margin-top:.5em}
@media(max-width:520px){
  .guidance-card{padding:16px}
  .guidance-card.is-compact{padding:14px 15px;border-radius:18px}
  .guidance-card.is-compact .guidance-header h3{font-size:1rem}
  .guidance-card.is-compact .guidance-header p{margin-top:2px}
  .guidance-card.is-compact .phase-guidance-list li{font-size:.86rem}
}

/* Device area relevance */
.device-relation-badge{
  display:inline-flex;
  width:max-content;
  margin:1px 0 5px;
  padding:3px 7px;
  border-radius:999px;
  background:var(--accent-soft);
  color:var(--accent-action);
  font-size:.7rem;
  font-weight:700;
}
.device-relation-badge.is-area{
  background:#edf6fa;
  color:var(--primary);
}
.catalog-card.is-area-related{
  border-color:rgba(0,110,157,.18);
}
.catalog-path-badge.is-area{
  background:#edf6fa;
  color:var(--primary);
  border-color:rgba(0,110,157,.14);
}



/* Mobile bottom navigation stability — iOS/WebKit */
#app{min-height:100vh;min-height:100dvh}
@media(max-width:1023px){
  .app-bottom-nav{
    position:fixed!important;
    top:auto!important;
    bottom:max(10px,env(safe-area-inset-bottom))!important;
    left:max(10px,env(safe-area-inset-left))!important;
    right:max(10px,env(safe-area-inset-right))!important;
    width:auto!important;
    margin:0!important;
    z-index:90;
    -webkit-transform:translateZ(0);
    transform:translateZ(0);
    -webkit-backdrop-filter:blur(18px);
    backdrop-filter:blur(18px);
  }
  .app-main{padding-bottom:calc(104px + env(safe-area-inset-bottom))}
}

/* Phase navigation color hierarchy */
.phase-pagination>a{
  min-height:64px;
  border-color:rgba(0,110,157,.28);
  background:#fff;
  color:var(--primary);
  box-shadow:0 10px 28px -24px rgba(0,88,126,.28);
  transition:background .18s ease,border-color .18s ease,transform .18s ease,box-shadow .18s ease;
}
.phase-pagination>a:not(.next){
  background:#f8fcfe;
  border-color:rgba(0,110,157,.34);
}
.phase-pagination>a:not(.next) small{
  color:#5e7380;
}
.phase-pagination>a:not(.next) strong,
.phase-pagination>a:not(.next) .button-icon{
  color:var(--primary);
}
.phase-pagination>a.next{
  border-color:var(--success-strong);
  background:var(--success-strong);
  color:#fff;
  box-shadow:0 14px 30px -22px rgba(32,133,31,.62);
}
.phase-pagination>a.next small{
  color:#daf2da;
}
.phase-pagination>a.next strong,
.phase-pagination>a.next .button-icon{
  color:#fff;
}
.phase-pagination>a:hover{
  transform:translateY(-1px);
}
.phase-pagination>a:not(.next):hover{
  background:#edf6fa;
  border-color:var(--primary);
}
.phase-pagination>a.next:hover{
  background:#196c19;
  border-color:#196c19;
}
.phase-pagination>a:focus-visible{
  outline:3px solid rgba(243,112,34,.32);
  outline-offset:3px;
}

/* Phase stepper: consulted green, current blue, not-yet-consulted orange. State is independent from navigation order. */
.phase-strip{--phase-gap:6px}
.phase-strip::before,.phase-strip-progress{display:none}
.phase-chip{
  --phase-line:#dfe5e9;
  color:#687781;
}
.phase-chip:not(:first-child)::before{
  content:"";
  position:absolute;
  z-index:-1;
  top:15px;
  left:calc(-50% - var(--phase-gap) + 20px);
  width:calc(100% + var(--phase-gap) - 40px);
  height:2px;
  background:var(--phase-line);
  pointer-events:none;
}
.phase-chip>span{
  border-color:#dfe5e9;
  background:#f1f4f6;
  color:#687781;
  box-shadow:none;
}
.phase-chip strong{max-width:100%;color:inherit;font-weight:700}
.phase-chip.is-active{--phase-line:#88b8ce;color:var(--primary)}
.phase-chip.is-active>span{
  border-color:var(--primary);
  background:var(--primary);
  color:#fff;
  box-shadow:0 0 0 4px #e7f1f6;
}
.phase-chip.is-visited{--phase-line:#a8cebb;color:#28734f}
.phase-chip.is-visited>span{
  border-color:#a8cebb;
  background:#edf7f1;
  color:#28734f;
  box-shadow:none;
}
.phase-chip.is-pending{--phase-line:#edc3a3;color:#a45119}
.phase-chip.is-pending>span{
  border-color:#e6b38c;
  background:#fff3e9;
  color:#a45119;
  box-shadow:none;
}
.phase-chip .phase-check-icon{width:15px;height:15px;stroke-width:2.5}
.phase-chip:not(.is-active):hover>span{
  border-color:currentColor;
  box-shadow:0 0 0 3px #edf1f4;
}
.phase-chip:focus-visible{
  outline:3px solid rgba(0,110,157,.25);
  outline-offset:4px;
  border-radius:14px;
}
@media(max-width:520px){
  .phase-strip{--phase-gap:4px}
  .phase-chip:not(:first-child)::before{top:16px}
}

@media(max-width:520px){
  .phase-pagination{gap:10px}
  .phase-pagination>a{
    min-height:66px;
    padding:11px 12px;
  }
  .phase-chip>span{
    width:33px;
    height:33px;
  }
}

/* Exercise flow color hierarchy */
.rehab-progress-ring{
  background:conic-gradient(var(--success-strong) var(--rehab-progress),#e5eef3 0);
}
.rehab-progress-ring strong{color:var(--success-strong)}

.rehab-phase{
  border-color:#d8e5eb;
  box-shadow:0 10px 28px -26px rgba(0,88,126,.24);
}
.rehab-phase[open]{
  border-color:rgba(0,110,157,.34);
  box-shadow:0 14px 34px -28px rgba(0,88,126,.42);
}
.rehab-phase[open]>summary{
  background:linear-gradient(90deg,#edf6fa 0%,#fbfdfe 100%);
  border-bottom-color:#cfe1e9;
}
.rehab-phase.is-complete{
  border-color:rgba(32,133,31,.28);
}
.rehab-phase.is-complete>summary{
  background:linear-gradient(90deg,#eef9ee 0%,#fbfefb 100%);
}
.rehab-phase-number{
  background:#edf6fa;
  color:var(--primary);
  border:1px solid rgba(0,110,157,.10);
}
.rehab-phase-number.is-complete{
  background:var(--success-strong);
  border-color:var(--success-strong);
  color:#fff;
}
.rehab-phase-status{
  background:#edf6fa;
  color:var(--primary);
}
.rehab-phase-status.is-complete{
  background:var(--success-soft);
  color:var(--success-strong);
}
.rehab-exercise-list{
  background:#f8fbfc;
}

.exercise-detail{
  border-color:#d7e4ea;
  background:#fff;
}
.exercise-detail[open]:not(.is-done){
  border-color:rgba(0,110,157,.38);
  box-shadow:0 12px 30px -27px rgba(0,88,126,.5);
}
.exercise-detail[open]:not(.is-done)>summary{
  background:#f1f8fb;
}
.exercise-detail.is-done{
  border-color:rgba(32,133,31,.28);
  background:#fbfefb;
}
.exercise-detail.is-done>summary{
  background:var(--success-soft);
}
.exercise-detail.is-done .exercise-number{
  background:var(--success-strong);
  border-color:var(--success-strong);
  color:#fff;
}
.exercise-detail.is-done .exercise-summary-copy strong{
  color:#255a2a;
}
.exercise-number{
  background:#fff;
  border-color:#b9d2dd;
  color:var(--primary);
}
.exercise-detail[open]:not(.is-done) .exercise-number{
  border-color:var(--primary);
  background:var(--primary);
  color:#fff;
}
.exercise-photo-indicator,
.exercise-detail>summary>b{
  color:#8fa5af;
}
.exercise-detail[open]>summary .exercise-photo-indicator,
.exercise-detail[open]>summary>b{
  color:var(--primary);
}

.exercise-reps{
  border-color:#d7e7ee;
  background:#f3f8fb;
}
.exercise-reps>span{
  background:#fff;
  color:var(--primary);
  box-shadow:0 6px 16px -14px rgba(0,88,126,.45);
}
.exercise-label,
.exercise-reps small{
  color:var(--primary);
}

.exercise-complete-button:not(.is-complete){
  background:var(--success-strong);
  color:#fff;
  box-shadow:0 14px 28px -22px rgba(32,133,31,.65);
}
.exercise-complete-button:not(.is-complete):hover{
  background:#196c19;
}
.exercise-complete-button.is-complete{
  border-color:rgba(32,133,31,.28);
  background:var(--success-soft);
  color:var(--success-strong);
}
.exercise-complete-button.is-complete:hover{
  background:#e4f5e4;
}

.guided-progress span{
  background:var(--success-strong);
}
.guided-completed-badge{
  background:var(--success-soft);
  color:var(--success-strong);
}
.guided-actions .guided-next{
  border-color:var(--success-strong);
  background:var(--success-strong);
  color:#fff;
}
.guided-actions .guided-next:hover{
  border-color:#196c19;
  background:#196c19;
}
.guided-actions button:not(.guided-next){
  border-color:rgba(0,110,157,.26);
  background:#f8fcfe;
  color:var(--primary);
}
.guided-finished-icon{
  background:var(--success-soft);
  color:var(--success-strong);
}
.guided-close-button{
  background:var(--primary);
}
.rehab-footer{
  background:#fbfcfd;
}
.rehab-footer button{
  min-height:48px;
  padding:12px 16px;
  gap:8px;
  border:1px solid var(--primary);
  background:#fff;
  color:var(--primary);
  font-size:1rem;
}
.rehab-footer button:hover{
  background:var(--surface-soft);
  color:var(--primary-strong);
}
.rehab-footer button:focus-visible,.guided-finished-secondary:focus-visible{outline:3px solid var(--primary);outline-offset:3px}
.guided-restart-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:52px;width:min(100%,360px);margin-top:12px}
.guided-finished .guided-restart-note{margin:8px 0;color:var(--muted)}
.guided-finished-secondary{min-height:48px;padding:12px 24px;border:1px solid var(--border);border-radius:12px;background:#fff;color:var(--ink);font:inherit;font-weight:700;cursor:pointer}
@media(max-width:759px){.rehab-footer button{width:100%;justify-content:center}.reset-actions{flex-wrap:wrap}.reset-actions button{min-height:48px}}

@media(min-width:760px){
  .exercise-detail[open] .exercise-body{
    border-top:0;
  }
  .exercise-detail[open] .exercise-instructions{
    background:linear-gradient(180deg,#fff,#fbfdfe);
  }
}

/* Rehab macro-phase orange hierarchy */
.rehab-phase-number{
  background:var(--accent-soft);
  border-color:rgba(243,112,34,.24);
  color:var(--accent-action);
}
.rehab-phase[open]:not(.is-complete) .rehab-phase-number{
  background:#ffe8d8;
  border-color:rgba(243,112,34,.34);
  color:var(--accent-action);
  box-shadow:0 0 0 4px rgba(243,112,34,.07);
}
.rehab-phase-number.is-complete{
  background:var(--success-strong);
  border-color:var(--success-strong);
  color:#fff;
}
.rehab-phase-title strong{
  color:var(--ink-strong);
}
.rehab-phase[open]:not(.is-complete) .rehab-phase-title strong{
  color:var(--accent-action);
}

/* Percorso Salute path picker + compact home */
.compact-home{display:grid;gap:18px}
.home-path-picker{display:grid;gap:12px;margin-top:4px}
.home-picker-head h2{margin:2px 0 3px;font-size:1.35rem}
.home-picker-head p{margin:0;color:var(--muted);font-size:.9rem}

.path-list-grid.home-path-grid,
.path-list-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.journey-tile{
  position:relative;
  min-height:150px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  padding:10px 8px 12px;
  border:1px solid rgba(0,110,157,.12);
  border-radius:18px;
  background:#fff;
  text-align:center;
  box-shadow:0 9px 24px -21px rgba(15,42,55,.45);
  transition:transform .18s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease;
}
.journey-tile:hover{
  border-color:rgba(0,110,157,.34);
  background:#fbfdfe;
  transform:translateY(-1px);
}
.journey-tile.is-selected{
  border-color:var(--primary);
  background:#f2f9fc;
  box-shadow:0 0 0 1px rgba(0,110,157,.08),0 15px 30px -24px rgba(0,88,126,.55);
}
.journey-selected-badge{
  position:absolute;
  top:8px;
  right:8px;
  padding:3px 7px;
  border-radius:999px;
  background:var(--accent-soft);
  color:var(--accent-action);
  font-size:.63rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.journey-art{
  width:76px;
  height:76px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  border:1px solid rgba(0,110,157,.08);
  border-radius:50%;
  background:radial-gradient(circle at 38% 30%,#f2fbff 0%,#e9f5fa 58%,#fff 100%);
  overflow:hidden;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 10px 22px -19px rgba(0,88,126,.45);
}
.journey-art img{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:2px;
  mix-blend-mode:normal;
}
.journey-copy{
  display:grid;
  justify-items:center;
  gap:1px;
  padding:0;
}
.journey-copy strong{
  color:var(--ink-strong);
  font-size:.98rem;
  line-height:1.05;
}
.journey-copy small{
  color:var(--muted);
  font-size:.69rem;
  font-weight:500;
  text-transform:none;
  letter-spacing:.01em;
}
.journey-copy>span,
.journey-exercise-count,
.journey-arrow{display:none!important}

.home-resume-card{
  display:grid;
  grid-template-columns:64px minmax(0,1fr);
  gap:11px 13px;
  padding:15px;
  border-color:rgba(0,110,157,.18);
}
.home-resume-art{
  width:64px;
  height:64px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border-radius:50%;
  background:#eef7fb;
}
.home-resume-art img{width:100%;height:100%;object-fit:contain}
.home-resume-copy{min-width:0}
.home-resume-copy h2{margin:1px 0 3px;font-size:1.18rem}
.home-resume-copy p{margin:0;color:var(--muted);font-size:.84rem;line-height:1.4}
.home-resume-primary{
  grid-column:1/-1;
  min-height:46px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  border-radius:13px;
  background:var(--primary);
  color:#fff;
  text-decoration:none;
  font-weight:700;
}
.home-resume-primary:hover{background:var(--primary-strong)}
.home-resume-stats{
  grid-column:1/-1;
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}
.home-resume-stats span{
  padding:6px 9px;
  border-radius:999px;
  background:#f2f7f9;
  color:var(--muted);
  font-size:.75rem;
}
.home-resume-stats strong{color:var(--ink-strong)}
.home-resume-device{
  grid-column:1/-1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 11px;
  border:1px solid rgba(0,110,157,.13);
  border-radius:13px;
  background:#fbfdfe;
  color:inherit;
  text-decoration:none;
}
.home-resume-device>span{display:grid;gap:1px}
.home-resume-device small{
  color:var(--primary);
  font-size:.68rem;
  font-weight:700;
}
.home-resume-device strong{font-size:.84rem}
.home-resume-device .button-icon{color:var(--primary)}

.home-path-switcher{
  border:1px solid rgba(0,110,157,.16);
  border-radius:15px;
  background:#fff;
  overflow:hidden;
  box-shadow:0 10px 26px -24px rgba(15,42,55,.38);
}
.home-path-switcher>summary{
  min-height:48px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:11px 14px;
  list-style:none;
  cursor:pointer;
  color:var(--primary);
  font-weight:700;
}
.home-path-switcher>summary::-webkit-details-marker{display:none}
.home-path-switcher>summary::after{
  content:"+";
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  border-radius:50%;
  background:#eef7fb;
  color:var(--primary);
  font-size:1.05rem;
  line-height:1;
}
.home-path-switcher[open]>summary::after{content:"−"}
.home-path-switcher>summary:focus-visible{
  outline:3px solid rgba(243,112,34,.28);
  outline-offset:-3px;
}
.home-path-switcher-body{
  display:grid;
  gap:12px;
  padding:13px;
  border-top:1px solid rgba(0,110,157,.10);
  background:#fbfdfe;
}
.home-path-switcher-body .home-picker-head h2{font-size:1.12rem}
.home-path-switcher-body .home-picker-head p{font-size:.82rem}
.home-storage-note{
  margin:0;
  color:var(--muted);
  font-size:.75rem;
  line-height:1.45;
}

.home-resume-modal{text-align:center}
.home-resume-modal-art{
  width:88px;
  height:88px;
  display:grid;
  place-items:center;
  margin:0 auto 10px;
  overflow:hidden;
  border-radius:50%;
  background:#eef7fb;
}
.home-resume-modal-art img{width:100%;height:100%;object-fit:contain}
.home-resume-modal h2{margin:3px 0 5px}
.home-resume-modal p{margin:0;color:var(--muted)}
.home-resume-modal p strong{color:var(--ink-strong)}
.home-resume-modal-actions{display:grid;gap:8px;margin-top:18px}
.home-resume-modal-actions a,
.home-resume-modal-actions button{
  min-height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  border-radius:13px;
  font-size:1rem;
  font-weight:700;
  cursor:pointer;
}
.home-resume-modal-primary{
  border:1px solid var(--primary);
  background:var(--primary);
  color:#fff;
  text-decoration:none;
}
.home-resume-modal-actions button{
  border:1px solid var(--border);
  background:#fff;
  color:var(--primary);
}

.path-title-art{background:#f5fafc}
.path-title-art img{object-fit:contain;padding:4px;mix-blend-mode:normal}

@media(min-width:760px){
  .path-list-grid.home-path-grid,
  .path-list-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
  .journey-tile{min-height:178px;padding:14px 10px}
  .journey-art{width:92px;height:92px}
  .journey-copy strong{font-size:1.08rem}
  .journey-copy small{font-size:.76rem}
  .home-resume-card{grid-template-columns:76px minmax(0,1fr) auto;align-items:center}
  .home-resume-art{width:76px;height:76px}
  .home-resume-primary{grid-column:3;grid-row:1;min-width:175px;padding:0 18px}
  .home-resume-stats,.home-resume-device{grid-column:1/-1}
}
@media(max-width:520px){
  .path-list-grid.home-path-grid,
  .path-list-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .journey-tile{min-height:145px;border-radius:17px}
  .journey-art{width:72px;height:72px}
  .journey-copy strong{font-size:.93rem}
  .journey-copy small{font-size:.66rem}
}



/* Tablet-only home polish: keep doctor context once and tighten active-journey hierarchy. */
@media(min-width:760px) and (max-width:1023px){
  .doctor-home-shell .app-topbar{
    grid-template-columns:1fr 44px;
  }
  .doctor-home-shell .app-topbar>.doctor-context.compact{
    display:none;
  }
  .doctor-home-shell .topbar-help{
    grid-column:2;
    justify-self:end;
  }

  .doctor-home-shell .home-resume-card{
    grid-template-columns:76px minmax(0,1fr) auto;
    row-gap:7px;
  }
  .doctor-home-shell .home-resume-stats{
    grid-column:2;
    grid-row:2;
    justify-self:start;
    margin-top:-4px;
  }
  .doctor-home-shell .home-resume-stats span{
    padding:4px 8px;
    background:#f5f8fa;
  }
  .doctor-home-shell .home-resume-device{
    grid-column:1/-1;
    grid-row:3;
    margin-top:2px;
  }

  .doctor-home-shell .home-path-switcher>summary{
    min-height:44px;
    padding:8px 12px;
  }
  .doctor-home-shell .home-path-switcher>summary::after{
    width:24px;
    height:24px;
    font-size:.95rem;
  }
}


/* Desktop home polish mirrors the tablet hierarchy without touching inner pages. */
@media(min-width:1024px){
  .doctor-home-shell .app-topbar{
    grid-template-columns:1fr 44px;
  }
  .doctor-home-shell .app-topbar>.doctor-context.compact{
    display:none;
  }
  .doctor-home-shell .topbar-help{
    grid-column:2;
    justify-self:end;
  }

  .doctor-home-shell .home-resume-card{
    grid-template-columns:76px minmax(0,1fr) auto;
    row-gap:7px;
  }
  .doctor-home-shell .home-resume-stats{
    grid-column:2;
    grid-row:2;
    justify-self:start;
    margin-top:-4px;
  }
  .doctor-home-shell .home-resume-stats span{
    padding:4px 8px;
    background:#f5f8fa;
  }
  .doctor-home-shell .home-resume-device{
    grid-column:1/-1;
    grid-row:3;
    margin-top:2px;
  }

  .doctor-home-shell .home-path-switcher>summary{
    min-height:44px;
    padding:8px 12px;
  }
  .doctor-home-shell .home-path-switcher>summary::after{
    width:24px;
    height:24px;
    font-size:.95rem;
  }
}


/* Home only: rehabilitation first; existing header, navigation and routes unchanged. */
.compact-home{gap:14px}
.compact-home .home-resume-card{padding:18px;gap:12px 14px}
.compact-home .home-resume-copy h2{font-size:clamp(1.4rem,3vw,1.75rem);line-height:1.2;margin:3px 0 6px}
.compact-home .home-resume-copy p{font-size:.9rem;line-height:1.4}
.compact-home .home-resume-stats span{font-size:.82rem}
.compact-home .home-resume-primary{min-height:48px;font-size:1rem}
.compact-home .home-path-switcher{grid-column:1/-1;grid-row:auto;min-width:0;box-shadow:none}
.compact-home .home-path-switcher>summary{min-height:56px;padding:10px 12px}
.compact-home .home-path-switcher>summary span{display:grid;gap:2px}
.compact-home .home-path-switcher>summary small{font-size:.78rem;font-weight:400;color:var(--muted)}
.compact-home .home-path-switcher-body{padding:12px}
.compact-home .home-resume-device{grid-column:1/-1;grid-row:auto;margin:0;min-width:0;min-height:60px}
.compact-home .home-resume-device small{font-size:.75rem}
.compact-home .home-resume-device strong{font-size:.95rem}
.compact-home .home-doctor-row{display:grid;grid-template-columns:48px minmax(0,1fr) 20px;align-items:center;gap:12px;padding:12px 14px;color:inherit;text-decoration:none;min-width:0}
.home-doctor-row .doctor-avatar{width:48px;height:48px;border-radius:14px;box-shadow:none;font-size:.85rem}
.home-doctor-copy{min-width:0}
.home-doctor-copy .app-kicker{font-size:.68rem;margin:0 0 2px}
.home-doctor-copy h2{font-size:1rem;line-height:1.3;margin:0;overflow-wrap:anywhere}
.home-doctor-copy p{font-size:.78rem;line-height:1.4;color:var(--muted);margin:3px 0 0}
.home-doctor-row>.button-icon{width:20px;height:20px;color:var(--primary)}
.home-doctor-row:focus-visible{outline:3px solid var(--primary);outline-offset:3px}
.compact-home>.useful-contacts-section{margin-top:2px}
@media(min-width:760px){
  .compact-home .home-resume-stats{grid-column:2;grid-row:2}
  .compact-home .home-path-switcher{grid-row:3}
  .compact-home .home-resume-device{grid-row:4}
}
@media(max-width:640px){
  .app-screen.compact-home{padding-top:14px;padding-left:16px;padding-right:16px;gap:12px}
  .compact-home .home-resume-card{padding:14px;gap:11px 12px;grid-template-columns:52px minmax(0,1fr)}
  .compact-home .home-resume-art{width:52px;height:52px}
  .compact-home .home-resume-copy h2{font-size:1.35rem}
  .compact-home .home-resume-copy p{font-size:.8rem}
  .compact-home .home-resume-stats{gap:5px}
  .compact-home .home-resume-stats span{padding:5px 8px;font-size:.75rem}
  .compact-home .home-doctor-row{grid-template-columns:42px minmax(0,1fr) 18px;gap:10px;padding:11px 12px}
  .home-doctor-row .doctor-avatar{width:42px;height:42px;border-radius:12px}
  .home-doctor-copy h2{font-size:.9rem}
  .compact-home .home-path-switcher-body .journey-tile{min-height:126px;padding:10px 6px}
  .compact-home .home-path-switcher-body .journey-art{width:58px;height:58px}
}



/* Rental address selection: contained in the existing dialog at all breakpoints. */
.rental-address,.address-details{grid-column:1/-1;min-width:0}
.rental-address>input{width:100%;box-sizing:border-box}
[data-address-options]{max-height:220px;overflow:auto;border-radius:12px;background:var(--surface,#fff)}
[data-address-options]:not(:empty){border:1px solid #cbd9e3;margin:6px 0}
[data-address-options] button{display:block;width:100%;text-align:left;white-space:normal;overflow-wrap:anywhere;padding:12px;color:#183b56;background:#fff;border:0;border-bottom:1px solid #e3eaf0;border-radius:0;min-height:44px}
[data-address-options] button:hover,[data-address-options] button[aria-selected="true"]{background:#eaf4fb}
[data-address-status]{display:block;line-height:1.5;margin-top:6px}
.address-attribution{display:block;text-align:right;color:#5e5e5e;font:400 12px Arial,sans-serif;white-space:nowrap;margin-top:6px}
.address-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.address-details[hidden]{display:none}
.address-details input{width:100%;min-width:0;box-sizing:border-box;background:#f2f6f8}
.rental-form button:disabled{opacity:1;cursor:not-allowed}
.rental-actions .rental-submit:disabled,
.rental-actions .rental-call-link:disabled{
  background:#eef2f4;
  color:#8a9aa3;
  border-color:#d9e2e7;
  box-shadow:none;
  filter:none;
}
.rental-actions .rental-submit:disabled:hover,
.rental-actions .rental-call-link:disabled:hover{
  background:#eef2f4;
  color:#8a9aa3;
}
.rental-direct-call{grid-column:1/-1;justify-self:center;padding:4px 2px;color:var(--muted);font-size:12.5px;font-weight:650;text-align:center;text-decoration:underline;text-decoration-color:rgba(100,118,128,.35);text-underline-offset:3px}
.rental-actions{flex-wrap:wrap}.rental-direct-call{flex-basis:100%}
.rental-modal .handoff-status{overflow-wrap:anywhere}
@media(max-width:480px){.address-details{grid-template-columns:minmax(0,1fr)}.rental-actions>*{max-width:100%}}



/* Home visual impact polish — scoped to Home only. */
.compact-home .home-resume-card{
  position:relative;
  overflow:hidden;
  border-color:rgba(0,110,157,.24);
  background:linear-gradient(145deg,#ffffff 0%,#f3f9fc 100%);
  box-shadow:0 20px 42px -34px rgba(0,88,126,.55),inset 4px 0 0 var(--primary);
}
.compact-home .home-resume-art{
  background:linear-gradient(145deg,#ffffff 0%,#e9f5fa 100%);
  border:1px solid rgba(0,110,157,.10);
  box-shadow:0 10px 24px -20px rgba(0,88,126,.45);
}
.compact-home .home-resume-copy .app-kicker{
  margin-bottom:3px;
  color:var(--primary);
  letter-spacing:.075em;
}
.compact-home .home-resume-copy h2{
  color:var(--ink-strong);
  letter-spacing:-.025em;
}
.compact-home .home-resume-primary{
  background:linear-gradient(135deg,var(--primary) 0%,var(--primary-strong) 100%);
  box-shadow:0 12px 24px -18px rgba(0,88,126,.72);
}
.compact-home .home-resume-primary:hover{
  transform:translateY(-1px);
  box-shadow:0 15px 28px -20px rgba(0,88,126,.78);
}
.compact-home .home-resume-stats span{
  border:1px solid rgba(0,110,157,.08);
  background:rgba(255,255,255,.78);
}
.compact-home .home-exercise-progress{
  grid-column:1/-1;
  display:grid;
  gap:6px;
  padding:2px 1px 1px;
}
.home-exercise-progress-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:var(--muted);
  font-size:.76rem;
  line-height:1.2;
}
.home-exercise-progress-head strong{
  color:var(--primary);
  font-size:.78rem;
}
.home-exercise-progress-track{
  height:7px;
  overflow:hidden;
  border-radius:999px;
  background:#dfeaf0;
}
.home-exercise-progress-track>span{
  display:block;
  height:100%;
  min-width:0;
  border-radius:inherit;
  background:linear-gradient(90deg,var(--primary),var(--success-strong));
  transition:width .25s ease;
}
.compact-home .home-path-switcher{
  border-color:rgba(0,110,157,.12);
  background:rgba(248,251,252,.82);
}
.compact-home .home-path-switcher>summary{
  color:var(--ink-strong);
  font-weight:650;
}
.compact-home .home-path-switcher>summary::after{
  background:#eaf4f8;
  color:var(--primary);
}
.compact-home .home-resume-device{
  display:grid;
  grid-template-columns:36px minmax(0,1fr) 20px;
  align-items:center;
  gap:10px;
  padding:11px 12px;
  border-color:rgba(0,110,157,.18);
  background:#fff;
  box-shadow:0 12px 28px -26px rgba(0,88,126,.42);
}
.home-device-icon{
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border-radius:11px;
  background:#edf6fa;
  color:var(--primary);
}
.home-device-svg{width:19px;height:19px}
.home-device-copy{display:grid;gap:1px;min-width:0}
.compact-home .home-resume-device .button-icon{
  width:18px;
  height:18px;
  justify-self:end;
}
.compact-home .home-doctor-row{
  border-color:rgba(0,110,157,.10);
  background:rgba(255,255,255,.88);
  box-shadow:0 14px 30px -30px rgba(0,88,126,.36);
}
.compact-home>.useful-contacts-section{
  padding-top:2px;
  border-color:transparent;
  background:transparent;
}
.compact-home>.useful-contacts-section .app-section-head h2{
  font-size:1.08rem;
}
.compact-home>.useful-contacts-section .useful-contact-card{
  border-color:rgba(0,110,157,.12);
  background:#fff;
}
@media(max-width:640px){
  .compact-home .home-resume-card{
    padding:15px 14px 14px;
    gap:10px 12px;
  }
  .compact-home .home-resume-art{
    width:56px;
    height:56px;
  }
  .compact-home .home-resume-copy h2{
    font-size:1.42rem;
    margin-bottom:4px;
  }
  .compact-home .home-resume-primary{
    min-height:50px;
  }
  .compact-home .home-exercise-progress{
    margin-top:-1px;
  }
  .compact-home .home-path-switcher>summary{
    min-height:52px;
  }
}


/* Final Home micro-polish: keep the blue rail exclusive to the active journey. */
.compact-home .home-path-switcher{
  border-color:rgba(0,110,157,.09);
  background:#fafcfd;
}
.compact-home .home-path-switcher>summary{
  min-height:50px;
}
.compact-home .home-path-switcher>summary::after{
  width:25px;
  height:25px;
  background:#f0f6f8;
  font-size:.92rem;
}
.compact-home .home-resume-device{
  border-color:rgba(0,110,157,.16);
}
.compact-home .home-resume-device small{
  font-size:.72rem;
}
.compact-home .home-resume-device strong{
  font-size:1rem;
  font-weight:750;
  letter-spacing:-.01em;
}
.compact-home .home-doctor-row{
  border-color:rgba(0,110,157,.08);
  background:#fff;
  box-shadow:0 14px 30px -30px rgba(0,88,126,.34);
}
.compact-home .home-doctor-row .doctor-avatar{
  box-shadow:0 0 0 2px rgba(243,112,34,.13);
}
.compact-home .home-doctor-row>.button-icon{
  color:var(--accent-action);
}
.compact-home>.useful-contacts-section{
  margin-top:-1px;
  padding:0;
}
.compact-home>.useful-contacts-section .app-section-head{
  margin-bottom:8px;
}
.compact-home>.useful-contacts-section .app-section-head h2{
  font-size:1.06rem;
}
.compact-home>.useful-contacts-section .useful-contacts-grid{
  gap:7px;
}
.compact-home>.useful-contacts-section .useful-contact-card{
  padding:10px 11px;
  border-color:rgba(0,110,157,.09);
  border-radius:14px;
  box-shadow:none;
}
.compact-home>.useful-contacts-section .useful-contact-copy strong{
  font-size:.9rem;
}
.compact-home>.useful-contacts-section .useful-contact-actions a{
  min-width:40px;
  min-height:40px;
  padding:7px 8px;
}
.home-storage-note{
  display:flex;
  align-items:flex-start;
  justify-content:center;
  gap:7px;
  max-width:520px;
  margin:0 auto;
  padding:2px 8px;
  text-align:left;
  color:#6d7f88;
  font-size:.72rem;
  line-height:1.45;
}
.home-storage-icon{
  width:15px;
  height:15px;
  flex:0 0 auto;
  margin-top:2px;
  color:#8ba1ac;
}
@media(max-width:640px){
  .compact-home .home-path-switcher>summary{
    min-height:49px;
  }
  .compact-home>.useful-contacts-section .useful-contact-card{
    padding:9px 10px;
  }
  .home-storage-note{
    padding-left:4px;
    padding-right:4px;
  }
}


/* Precision pass: tighter copy, CTA and spacing on Home only. */
.compact-home .home-resume-primary{
  min-height:47px;
  box-shadow:0 10px 22px -18px rgba(0,88,126,.62);
}
.compact-home .home-resume-primary:hover{
  box-shadow:0 12px 24px -19px rgba(0,88,126,.70);
}
.compact-home .home-resume-device{
  padding-left:10px;
  padding-right:11px;
}
.compact-home .home-device-copy small{
  font-size:.69rem;
  letter-spacing:0;
}
.compact-home .home-device-copy strong{
  line-height:1.2;
}
.compact-home>.useful-contacts-section{
  margin-top:-3px;
}
.compact-home>.useful-contacts-section .app-section-head{
  margin-bottom:6px;
}
.compact-home>.useful-contacts-section .useful-contact-card{
  padding-top:9px;
  padding-bottom:9px;
}
@media(max-width:640px){
  .compact-home .home-resume-card{
    padding-left:13px;
    padding-right:13px;
  }
  .compact-home .home-resume-primary{
    min-height:47px;
  }
  .compact-home .home-resume-device{
    padding-left:9px;
  }
  .compact-home>.useful-contacts-section{
    margin-top:-4px;
  }
}


/* Tablet Home balance: use the taller viewport better without adding content. */
@media(min-width:760px) and (max-width:1023px){
  .doctor-home-shell .app-screen.compact-home{
    padding-top:28px;
    padding-bottom:112px;
    gap:18px;
  }
  .doctor-home-shell .compact-home .home-resume-card{
    padding:22px;
    row-gap:11px;
  }
  .doctor-home-shell .compact-home .home-resume-primary{
    min-height:50px;
  }
  .doctor-home-shell .compact-home .home-path-switcher>summary{
    min-height:52px;
    padding:10px 14px;
  }
  .doctor-home-shell .compact-home .home-resume-device{
    min-height:64px;
    padding:12px 14px;
  }
  .doctor-home-shell .compact-home .home-doctor-row{
    padding:15px 16px;
  }
  .doctor-home-shell .compact-home>.useful-contacts-section{
    margin-top:0;
  }
  .doctor-home-shell .compact-home>.useful-contacts-section .app-section-head{
    margin-bottom:10px;
  }
  .doctor-home-shell .compact-home>.useful-contacts-section .useful-contact-card{
    min-height:62px;
    padding:11px 12px;
  }
  .doctor-home-shell .compact-home .home-storage-note{
    margin-top:2px;
  }
}


/* Header refinement: subtle, branded and breakpoint-safe. */
.app-topbar{
  border-bottom-color:rgba(214,228,235,.72);
  background:rgba(255,255,255,.975);
  box-shadow:0 8px 24px -24px rgba(0,88,126,.34);
}
.topbar-help{
  border-color:rgba(243,112,34,.22);
  border-radius:13px;
  background:#fffdfb;
  color:var(--accent-action);
  box-shadow:0 8px 20px -18px rgba(201,79,12,.35);
  transition:background .18s ease,border-color .18s ease,transform .18s ease,box-shadow .18s ease;
}
.topbar-help:hover{
  background:#fff6ef;
  border-color:rgba(243,112,34,.34);
  transform:translateY(-1px);
  box-shadow:0 10px 22px -18px rgba(201,79,12,.42);
}
.topbar-icon{width:17px;height:17px}
@media(max-width:759px){
  .app-topbar{
    min-height:70px;
    padding-left:18px;
    padding-right:18px;
  }
  .mobile-brand .medirent-brand-logo{
    width:110px;
    max-height:44px;
  }
}
@media(min-width:760px) and (max-width:1023px){
  .app-topbar{
    min-height:76px;
    padding-left:24px;
    padding-right:24px;
  }
  .mobile-brand .medirent-brand-logo{
    width:118px;
    max-height:47px;
  }
}
@media(min-width:1024px){
  .app-topbar{
    min-height:74px;
    padding-left:30px;
    padding-right:30px;
  }
}


/* App-wide micro-polish: consistency, tap feedback and final navigation alignment. */
html{scroll-padding-top:84px}
.app-bottom-nav{
  align-items:stretch;
  padding:5px 6px;
}
.app-bottom-nav .app-nav-item{
  min-height:52px;
  gap:4px;
  line-height:1.1;
  transition:background .16s ease,color .16s ease,transform .12s ease,box-shadow .16s ease;
}
.app-bottom-nav .app-nav-icon{
  width:19px;
  height:19px;
  flex:0 0 auto;
}
.app-bottom-nav .app-nav-item span{
  line-height:1.15;
}
.app-bottom-nav .app-nav-item.is-active{
  background:#edf6fa;
  box-shadow:inset 0 -2px 0 rgba(243,112,34,.72);
}
.app-sidebar .app-nav-item{
  transition:background .16s ease,color .16s ease,transform .12s ease;
}
.app-nav-item:active,
.primary-action:active,
.home-resume-primary:active,
.home-resume-device:active,
.home-doctor-row:active,
.journey-tile:active,
.catalog-card-link:active,
.useful-contact-actions a:active,
.icon-button:active,
.topbar-help:active{
  transform:scale(.985);
}
.home-resume-device,
.home-doctor-row,
.journey-tile,
.catalog-card,
.useful-contact-card{
  transition:border-color .16s ease,background .16s ease,box-shadow .16s ease,transform .12s ease;
}
.home-resume-device:hover,
.home-doctor-row:hover,
.journey-tile:hover{
  border-color:rgba(0,110,157,.22);
}
:focus-visible{
  outline:3px solid rgba(0,110,157,.42);
  outline-offset:2px;
}
.app-nav-item:focus-visible,
.topbar-help:focus-visible,
.home-resume-primary:focus-visible,
.home-resume-device:focus-visible,
.home-doctor-row:focus-visible,
.journey-tile:focus-visible{
  outline-offset:3px;
}
.button-icon,
.app-nav-icon,
.topbar-icon,
.useful-contact-icon,
.home-device-svg{
  vector-effect:non-scaling-stroke;
}
@media(max-width:759px){
  .app-main{
    padding-bottom:calc(108px + env(safe-area-inset-bottom));
  }
}
@media(min-width:760px) and (max-width:1023px){
  .app-main{
    padding-bottom:calc(112px + env(safe-area-inset-bottom));
  }
  .app-bottom-nav{
    left:max(18px,env(safe-area-inset-left));
    right:max(18px,env(safe-area-inset-right));
    bottom:max(14px,env(safe-area-inset-bottom));
    padding:6px 8px;
    border-radius:21px;
  }
  .app-bottom-nav .app-nav-item{
    min-height:54px;
  }
}
@media(prefers-reduced-motion:reduce){
  .app-nav-item,
  .primary-action,
  .home-resume-primary,
  .home-resume-device,
  .home-doctor-row,
  .journey-tile,
  .catalog-card,
  .useful-contact-card,
  .topbar-help{
    transition:none!important;
  }
  .app-nav-item:active,
  .primary-action:active,
  .home-resume-primary:active,
  .home-resume-device:active,
  .home-doctor-row:active,
  .journey-tile:active,
  .catalog-card-link:active,
  .useful-contact-actions a:active,
  .icon-button:active,
  .topbar-help:active{
    transform:none;
  }
}


/* Native-style mobile dock: content never shows through or below the fixed tab bar. */
@media(max-width:1023px){
  .app-shell::after{
    content:"";
    position:fixed;
    z-index:80;
    left:0;
    right:0;
    bottom:0;
    height:calc(108px + env(safe-area-inset-bottom));
    background:var(--bg);
    pointer-events:none;
  }
  .app-bottom-nav{
    z-index:90;
    isolation:isolate;
    background:#fff;
    -webkit-backdrop-filter:none;
    backdrop-filter:none;
  }
  .app-bottom-nav::before{
    content:"";
    position:absolute;
    z-index:-1;
    left:-16px;
    right:-16px;
    bottom:calc(-26px - env(safe-area-inset-bottom));
    height:calc(42px + env(safe-area-inset-bottom));
    background:var(--bg);
    pointer-events:none;
  }
  .app-main{
    padding-bottom:calc(138px + env(safe-area-inset-bottom));
  }
}
@media(min-width:760px) and (max-width:1023px){
  .app-shell::after{
    height:calc(116px + env(safe-area-inset-bottom));
  }
  .app-main{
    padding-bottom:calc(146px + env(safe-area-inset-bottom));
  }
}


/* Native-feel hardening after mobile dock review. */
html,
body,
#app,
.app-shell,
.app-stage{
  background:var(--bg);
}
body{
  overflow-x:hidden;
  overscroll-behavior-x:none;
}
@media(max-width:1023px){
  .app-topbar{
    background:#fff;
    -webkit-backdrop-filter:none;
    backdrop-filter:none;
  }
  .app-nav-item,
  .topbar-help,
  .primary-action,
  .home-resume-primary,
  .home-resume-device,
  .home-doctor-row,
  .journey-tile,
  .useful-contact-actions a,
  .icon-button{
    touch-action:manipulation;
  }
}
@media(max-width:759px){
  .catalog-tools{
    top:70px;
    background:var(--bg);
    -webkit-backdrop-filter:none;
    backdrop-filter:none;
  }
}


/* Final phase state model: previous green, current blue, following orange. */
.phase-chip.is-previous{--phase-line:#a8cebb;color:#28734f}
.phase-chip.is-previous>span{
  border-color:#9ac7ad;
  background:#edf7f1;
  color:#28734f;
  box-shadow:none;
}
.phase-chip.is-future{--phase-line:#edc3a3;color:#a45119}
.phase-chip.is-future>span{
  border-color:#e6b38c;
  background:#fff3e9;
  color:#a45119;
  box-shadow:none;
}


/* 2026-09-30 mobile scale correction after iPhone review.
   Home retains its dedicated Percorso Salute styling from home-percorso-salute.css. */
@media(max-width:759px){
  .app-shell:not(.home-shell) .app-topbar{
    min-height:64px;
    grid-template-columns:auto minmax(0,1fr) 44px;
    gap:8px;
    padding-left:14px;
    padding-right:14px;
  }
  .app-shell:not(.home-shell) .mobile-brand .medirent-brand-logo{
    width:94px;
    max-height:38px;
  }
  .app-shell:not(.home-shell) .app-topbar>.doctor-context.compact{
    display:flex;
    justify-self:end;
    max-width:128px;
    min-width:0;
  }
  .app-shell:not(.home-shell) .doctor-context.compact .doctor-avatar{
    display:none;
  }
  .app-shell:not(.home-shell) .doctor-context.compact .doctor-context-copy{
    min-width:0;
  }
  .app-shell:not(.home-shell) .doctor-context.compact .doctor-context-copy small{
    font-size:.66rem;
    line-height:1.05;
  }
  .app-shell:not(.home-shell) .doctor-context.compact .doctor-context-copy strong{
    max-width:118px;
    font-size:.72rem;
    line-height:1.12;
  }

  .app-shell:not(.home-shell) .app-screen{
    padding:16px 14px 30px;
  }
  .app-shell:not(.home-shell) .screen-head{
    padding:3px 0 14px;
  }
  .app-shell:not(.home-shell) .screen-head .app-kicker{
    margin-bottom:5px;
    font-size:.72rem;
  }
  .app-shell:not(.home-shell) .screen-head h1{
    margin-bottom:8px;
    font-size:1.78rem;
    line-height:1.05;
  }
  .app-shell:not(.home-shell) .screen-head p{
    margin-bottom:0;
    font-size:.88rem;
    line-height:1.5;
  }

  .app-shell:not(.home-shell) .catalog-context-banner{
    grid-template-columns:36px minmax(0,1fr);
    gap:9px;
    margin-bottom:10px;
    padding:10px 11px;
    border-radius:14px;
  }
  .app-shell:not(.home-shell) .catalog-context-icon{
    width:19px;
    height:19px;
  }
  .app-shell:not(.home-shell) .catalog-context-banner small{font-size:.66rem}
  .app-shell:not(.home-shell) .catalog-context-banner strong{font-size:.84rem}
  .app-shell:not(.home-shell) .catalog-context-banner em{font-size:.72rem}

  .app-shell:not(.home-shell) .catalog-tools{
    top:64px;
    margin:0 -2px 12px;
    padding:6px 2px 8px;
  }
  .app-shell:not(.home-shell) .catalog-search{
    height:42px;
    padding:0 11px;
    border-radius:13px;
  }
  .app-shell:not(.home-shell) .catalog-search input{
    font-size:.82rem;
  }
  .app-shell:not(.home-shell) .catalog-filter{
    min-height:34px;
    padding:6px 10px;
    font-size:.74rem;
  }
  .app-shell:not(.home-shell) .catalog-result-count{
    font-size:.74rem;
  }
  .app-shell:not(.home-shell) .catalog-grid{
    gap:10px;
  }
  .app-shell:not(.home-shell) .catalog-card{
    border-radius:18px;
  }
  .app-shell:not(.home-shell) .catalog-media{
    min-height:128px;
    padding:10px;
  }
  .app-shell:not(.home-shell) .catalog-media img{
    max-height:118px;
  }
  .app-shell:not(.home-shell) .catalog-copy{
    padding:12px 13px 13px;
  }
  .app-shell:not(.home-shell) .catalog-copy small{
    font-size:.68rem;
  }
  .app-shell:not(.home-shell) .catalog-copy h3{
    margin:4px 0 7px;
    font-size:1rem;
  }
  .app-shell:not(.home-shell) .catalog-copy p{
    margin-bottom:10px;
    font-size:.82rem;
    line-height:1.48;
  }
  .app-shell:not(.home-shell) .catalog-copy>div{
    padding-top:8px;
  }
  .app-shell:not(.home-shell) .catalog-copy>div strong,
  .app-shell:not(.home-shell) .catalog-copy>div span{
    font-size:.78rem;
  }

  .app-bottom-nav{
    padding:4px 5px;
    border-radius:20px;
  }
  .app-bottom-nav .app-nav-item{
    min-height:48px;
    gap:2px;
    border-radius:14px;
    font-size:.72rem;
  }
  .app-bottom-nav .app-nav-icon{
    width:17px;
    height:17px;
  }
}


/* 2026-09-30 unified app chrome: compact Medirent header + fixed Home/Medico/Dispositivi/Supporto nav. */
.app-nav-item.is-disabled{
  color:#9aa8af;
  background:transparent;
  cursor:default;
  opacity:.68;
}
@media(max-width:1023px){
  .app-topbar{
    min-height:72px;
    height:auto;
    grid-template-columns:44px minmax(0,1fr) 44px;
    align-items:center;
    gap:8px;
    padding:6px 14px;
    border:0;
    border-bottom:1px solid rgba(219,230,236,.72);
    border-radius:0 0 22px 22px;
    background:#fff;
    box-shadow:0 14px 34px -30px rgba(15,42,55,.42);
    -webkit-backdrop-filter:none;
    backdrop-filter:none;
  }
  .topbar-spacer{
    display:block;
    grid-column:1;
    grid-row:1;
    width:44px;
    height:1px;
  }
  .mobile-brand{
    grid-column:2;
    grid-row:1;
    justify-self:center;
    justify-content:center;
  }
  .mobile-brand .medirent-brand-logo{
    width:108px;
    max-height:44px;
    object-position:center;
  }
  .topbar-help{
    grid-column:3;
    grid-row:1;
    justify-self:end;
    width:42px;
    height:42px;
    border-radius:14px;
  }
  .catalog-tools{
    top:72px;
  }
}
@media(max-width:759px){
  .app-topbar{
    min-height:68px;
    padding:5px 12px;
    border-radius:0 0 20px 20px;
  }
  .mobile-brand .medirent-brand-logo{
    width:102px;
    max-height:40px;
  }
  .topbar-help{
    width:40px;
    height:40px;
    border-radius:13px;
  }
  .catalog-tools{
    top:68px;
  }
}


/* 2026-09-30 final unified mobile header sizing.
   One identical header on Home, Percorsi, Dispositivi, Supporto and doctor pages. */
@media(max-width:1023px){
  .app-topbar{
    min-height:76px;
    height:76px;
    grid-template-columns:44px minmax(0,1fr) 44px;
    align-items:center;
    gap:8px;
    padding:7px 14px;
    border:0;
    border-bottom:1px solid rgba(219,230,236,.72);
    border-radius:0 0 22px 22px;
    background:#fff;
    box-shadow:0 14px 34px -30px rgba(15,42,55,.42);
  }
  .topbar-spacer{
    display:block;
    grid-column:1;
    grid-row:1;
    width:44px;
  }
  .mobile-brand{
    display:flex;
    grid-column:2;
    grid-row:1;
    justify-self:center;
    justify-content:center;
  }
  .mobile-brand .medirent-brand-logo{
    width:112px;
    max-height:46px;
    object-position:center;
  }
  .topbar-help{
    grid-column:3;
    grid-row:1;
    justify-self:end;
    width:42px;
    height:42px;
    border-radius:14px;
  }
  .catalog-tools{top:76px}
}
@media(max-width:759px){
  .app-topbar{
    min-height:74px;
    height:74px;
    padding:6px 12px;
    border-radius:0 0 21px 21px;
  }
  .mobile-brand .medirent-brand-logo{
    width:110px;
    max-height:44px;
  }
  .topbar-help{
    width:42px;
    height:42px;
    border-radius:14px;
  }
  .catalog-tools{top:74px}
}


/* 2026-09-30 doctor-only profile + fixed tab-bar contour. */
.doctor-only-profile{
  display:grid;
  gap:18px;
}
.doctor-only-profile>.back-link{
  margin-bottom:0;
}
.doctor-profile-hero{
  display:grid;
  grid-template-columns:88px minmax(0,1fr);
  gap:16px;
  align-items:center;
  padding:20px;
  border:1px solid rgba(0,110,157,.12);
  border-radius:26px;
  background:linear-gradient(145deg,#fff 0%,#f5fafc 100%);
  box-shadow:0 18px 44px -38px rgba(0,88,126,.36);
}
.doctor-profile-hero .doctor-avatar{
  width:88px;
  height:88px;
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 12px 28px -20px rgba(0,88,126,.34);
}
.doctor-profile-hero-copy{
  min-width:0;
}
.doctor-profile-hero-copy .app-kicker{
  margin-bottom:4px;
}
.doctor-profile-hero-copy h1{
  margin:0 0 5px;
  font-size:clamp(1.8rem,6vw,2.55rem);
  line-height:1.02;
}
.doctor-profile-role,
.doctor-profile-specialization{
  margin:0;
}
.doctor-profile-role{
  color:var(--ink-strong);
  font-weight:750;
}
.doctor-profile-specialization{
  margin-top:2px;
  color:var(--muted);
  font-size:.94rem;
}
.doctor-profile-actions{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px;
}
.doctor-profile-actions a{
  min-height:54px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:10px 8px;
  border:1px solid rgba(0,110,157,.14);
  border-radius:16px;
  background:#fff;
  color:var(--primary);
  text-decoration:none;
  font-weight:750;
  box-shadow:0 12px 28px -26px rgba(0,88,126,.28);
}
.doctor-profile-actions a.is-whatsapp{
  border-color:#bfe3c7;
  background:#f2fbf2;
  color:#2c8d3a;
}
.doctor-profile-action-icon{
  width:18px;
  height:18px;
}
.doctor-profile-panel{
  padding:19px;
  border:1px solid rgba(0,110,157,.11);
  border-radius:22px;
  background:#fff;
  box-shadow:0 16px 38px -34px rgba(15,42,55,.36);
}
.doctor-profile-panel .app-kicker{
  margin-bottom:5px;
}
.doctor-profile-panel h2{
  margin:0 0 8px;
  font-size:1.35rem;
}
.doctor-profile-panel>p{
  margin:0;
  line-height:1.58;
}
.doctor-profile-facts{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:16px;
}
.doctor-profile-facts>div,
.doctor-profile-contact-list>div{
  display:grid;
  gap:2px;
  padding:12px 13px;
  border:1px solid rgba(0,110,157,.09);
  border-radius:15px;
  background:#f8fbfc;
}
.doctor-profile-facts small,
.doctor-profile-contact-list small{
  color:var(--muted);
  font-size:.72rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.doctor-profile-facts strong,
.doctor-profile-contact-list strong{
  color:var(--ink-strong);
  font-size:.9rem;
}
.doctor-profile-source-link{
  display:inline-flex;
  align-items:center;
  gap:7px;
  margin-top:14px;
  color:var(--primary);
  text-decoration:none;
  font-weight:750;
}
.doctor-profile-contact-list{
  display:grid;
  gap:8px;
}
.doctor-profile-contact-list strong{
  overflow-wrap:anywhere;
}
@media(max-width:520px){
  .doctor-only-profile{
    gap:14px;
  }
  .doctor-profile-hero{
    grid-template-columns:72px minmax(0,1fr);
    gap:13px;
    padding:15px;
    border-radius:22px;
  }
  .doctor-profile-hero .doctor-avatar{
    width:72px;
    height:72px;
    border-radius:18px;
  }
  .doctor-profile-hero-copy h1{
    font-size:1.55rem;
  }
  .doctor-profile-role{
    font-size:.88rem;
  }
  .doctor-profile-specialization{
    font-size:.8rem;
  }
  .doctor-profile-actions{
    grid-template-columns:1fr 1fr;
  }
  .doctor-profile-actions a{
    min-height:48px;
    border-radius:14px;
    font-size:.82rem;
  }
  .doctor-profile-panel{
    padding:15px;
    border-radius:19px;
  }
  .doctor-profile-panel h2{
    font-size:1.16rem;
  }
  .doctor-profile-panel>p{
    font-size:.87rem;
  }
  .doctor-profile-facts{
    grid-template-columns:1fr 1fr;
  }
}

/* Give the fixed four-tab dashboard one complete, visible outline. */
@media(max-width:1023px){
  .app-bottom-nav{
    overflow:hidden;
    border:1px solid #d4e3ea!important;
    outline:1px solid rgba(0,110,157,.06);
    outline-offset:0;
    border-radius:22px!important;
    background:#fff!important;
    box-shadow:0 0 0 1px rgba(255,255,255,.92),0 18px 44px -28px rgba(0,88,126,.34)!important;
  }
}


/* 2026-09-30 final iPhone chrome pass: same logo scale as Home + larger opaque bottom dock. */
@media(max-width:1023px){
  .app-shell:not(.home-shell) .mobile-brand .medirent-brand-logo{
    width:108px;
    max-height:44px;
  }
  .app-shell::after{
    height:calc(128px + env(safe-area-inset-bottom));
    background:var(--bg);
  }
  .app-bottom-nav{
    padding:6px 7px;
    border-radius:22px;
    background:#fff;
    border-color:#d4e3ea;
    box-shadow:0 0 0 1px rgba(255,255,255,.94),0 18px 44px -28px rgba(0,88,126,.34);
  }
  .app-bottom-nav .app-nav-item{
    min-height:54px;
    gap:3px;
  }
  .app-main{
    padding-bottom:calc(156px + env(safe-area-inset-bottom));
  }
}
@media(max-width:759px){
  .app-shell:not(.home-shell) .mobile-brand .medirent-brand-logo{
    width:102px;
    max-height:40px;
  }
  .app-bottom-nav .app-nav-item{
    font-size:.76rem;
  }
}


/* 2026-09-30 iOS shield: keep page content hidden beneath the fixed app nav and translucent browser chrome. */
@media(max-width:1023px){
  .app-shell::after{
    bottom:-120px;
    height:calc(220px + env(safe-area-inset-bottom));
    background:var(--bg);
    z-index:89;
  }
  .app-bottom-nav{z-index:90}
}


/* 2026-09-30 Support refinement: Numero Verde primary, WhatsApp secondary. */
.support-grid-refined{gap:12px}
.support-grid-refined .contact-card{
  min-height:88px;
  padding:16px;
  border-radius:22px;
}
.support-grid-refined .support-phone-primary{
  border-color:#3f8b31;
  background:#3f8b31;
  color:#fff;
  box-shadow:0 20px 40px -30px rgba(63,139,49,.55);
}
.support-grid-refined .support-phone-primary>span:first-child{
  background:rgba(255,255,255,.14);
  color:#fff;
}
.support-grid-refined .support-phone-primary small,
.support-grid-refined .support-phone-primary em,
.support-grid-refined .support-phone-primary .contact-arrow{
  color:#fff;
}
.support-grid-refined .support-phone-primary em{opacity:.78}
.support-grid-refined .support-whatsapp-secondary{
  border-color:#bfe3c7;
  background:#fff;
  color:var(--ink-strong);
}
.support-grid-refined .support-whatsapp-secondary>span:first-child{
  background:#eef8ef;
  color:#2f8f3f;
}
.support-grid-refined .support-whatsapp-secondary small,
.support-grid-refined .support-whatsapp-secondary .contact-arrow{
  color:#2f8f3f;
}
.support-grid-refined .support-whatsapp-secondary em{color:var(--muted)}
@media(max-width:520px){
  .support-grid-refined .contact-card{
    min-height:82px;
    padding:14px;
  }
}


/* One opaque, independently composited mobile dock backing.
   Keep the existing navigation geometry and all page spacing unchanged. */
.app-bottom-nav-backing{display:none}
@media(max-width:1023px){
  .app-shell::after,
  .app-bottom-nav::before{content:none}
  .app-bottom-nav-backing{
    display:block;
    position:fixed;
    z-index:89;
    inset:auto 0 0;
    height:calc(100px + env(safe-area-inset-bottom,0px));
    background:#f5f8fa;
    opacity:1;
    pointer-events:none;
    -webkit-backdrop-filter:none;
    backdrop-filter:none;
    -webkit-transform:translateZ(0);
    transform:translateZ(0);
  }
  /* Extend the same opaque surface below the viewport during iOS overscroll. */
  .app-bottom-nav-backing::after{
    content:"";
    position:absolute;
    top:100%;
    left:0;
    right:0;
    height:100vh;
    height:100lvh;
    background:#f5f8fa;
  }
  .app-bottom-nav{
    background:#fff!important;
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
  }
}


/* Desktop shell parity 2026-09-30: apply tablet-style chrome to every app section. */
@media(min-width:1024px){
  /* Use the same chrome as tablet across Devices, Doctor, Support and detail pages. */
  .app-shell{
    display:block;
  }

  .app-sidebar{
    display:none;
  }

  .app-stage{
    min-width:0;
    min-height:100vh;
    min-height:100dvh;
  }

  .app-topbar{
    position:sticky;
    top:0;
    z-index:40;
    min-height:72px;
    height:auto;
    display:grid;
    grid-template-columns:44px minmax(0,1fr) 44px;
    align-items:center;
    gap:8px;
    padding:6px 28px;
    border:0;
    border-bottom:1px solid rgba(219,230,236,.72);
    border-radius:0 0 22px 22px;
    background:#fff;
    box-shadow:0 14px 34px -30px rgba(15,42,55,.42);
  }

  .topbar-spacer{
    display:block;
    grid-column:1;
    grid-row:1;
  }

  .mobile-brand{
    display:flex;
    grid-column:2;
    grid-row:1;
    justify-self:center;
    justify-content:center;
  }

  .mobile-brand .medirent-brand-logo{
    width:108px;
    max-height:44px;
    object-position:center;
  }

  .topbar-label,
  .app-topbar>.doctor-context.compact{
    display:none;
  }

  .topbar-help{
    grid-column:3;
    grid-row:1;
    justify-self:end;
    width:42px;
    height:42px;
    border-radius:14px;
    background:#fffdfb;
  }

  .app-main{
    padding-bottom:112px;
  }

  .app-screen{
    width:min(980px,calc(100% - 48px));
    padding:40px 24px 58px;
  }

  .app-bottom-nav-backing{
    display:block;
    position:fixed;
    z-index:49;
    inset:auto 0 0;
    height:104px;
    background:#f5f8fa;
    opacity:1;
    pointer-events:none;
    -webkit-backdrop-filter:none;
    backdrop-filter:none;
  }

  .app-bottom-nav{
    display:grid;
    z-index:50;
    left:50%;
    right:auto;
    bottom:16px;
    width:min(900px,calc(100vw - 48px));
    transform:translateX(-50%);
    grid-template-columns:repeat(4,1fr);
    gap:3px;
    padding:6px;
    border:1px solid rgba(0,110,157,.12);
    border-radius:20px;
    background:#fff!important;
    box-shadow:0 22px 48px -28px rgba(0,68,98,.34);
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
  }

  .app-bottom-nav .app-nav-item{
    min-height:50px;
    flex-direction:column;
    justify-content:center;
    gap:3px;
    padding:0;
    border-radius:14px;
    font-size:.875rem;
  }

  .app-bottom-nav .app-nav-icon{
    width:18px;
    height:18px;
  }
}


/* Desktop presence + final doctor profile polish 2026-09-30. */
.doctor-profile-bio{
  margin:0;
  color:var(--ink-strong);
  line-height:1.65;
}
.doctor-profile-references .doctor-profile-facts{
  margin-top:10px;
}
.doctor-profile-links{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:4px;
}
.doctor-profile-references .doctor-profile-facts + .doctor-profile-links{
  margin-top:14px;
}
.doctor-profile-source-link{
  min-height:44px;
  margin-top:0;
  padding:9px 12px;
  border:1px solid rgba(0,110,157,.12);
  border-radius:13px;
  background:#f8fbfc;
}

@media(min-width:1024px){
  html{font-size:17px}

  .app-topbar{
    min-height:92px;
    padding:9px 40px;
    border-radius:0 0 28px 28px;
  }
  .mobile-brand .medirent-brand-logo{
    width:138px;
    max-height:56px;
  }
  .topbar-help{
    width:50px;
    height:50px;
    border-radius:16px;
  }
  .topbar-icon{
    width:20px;
    height:20px;
  }

  .app-screen{
    width:min(1180px,calc(100% - 64px));
    padding:52px 32px 86px;
  }
  .app-main{
    padding-bottom:128px;
  }

  .app-bottom-nav-backing{
    height:116px;
  }
  .app-bottom-nav{
    bottom:18px;
    width:min(1080px,calc(100vw - 64px));
    padding:8px;
    border-radius:24px;
  }
  .app-bottom-nav .app-nav-item{
    min-height:58px;
    border-radius:17px;
    font-size:.92rem;
  }
  .app-bottom-nav .app-nav-icon{
    width:20px;
    height:20px;
  }

  .doctor-only-profile{
    gap:24px;
  }
  .doctor-profile-hero{
    grid-template-columns:128px minmax(0,1fr);
    gap:24px;
    padding:30px 32px;
    border-radius:30px;
  }
  .doctor-profile-hero .doctor-avatar{
    width:128px;
    height:128px;
    border-radius:28px;
  }
  .doctor-profile-hero-copy h1{
    font-size:3rem;
    margin-bottom:8px;
  }
  .doctor-profile-specialization{
    font-size:1.08rem;
  }
  .doctor-profile-role{
    margin-top:5px;
    font-size:.98rem;
  }
  .doctor-profile-actions{
    gap:12px;
  }
  .doctor-profile-actions a{
    min-height:66px;
    border-radius:19px;
    font-size:1rem;
  }
  .doctor-profile-action-icon{
    width:20px;
    height:20px;
  }
  .doctor-profile-panel{
    padding:27px 30px;
    border-radius:26px;
  }
  .doctor-profile-panel .app-kicker{
    margin-bottom:8px;
  }
  .doctor-profile-bio{
    font-size:1.04rem;
    max-width:900px;
  }
  .doctor-profile-facts{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
  }
  .doctor-profile-facts>div{
    padding:15px 16px;
    border-radius:17px;
  }
}


/* Desktop zoom pass 2026-09-30: stronger presence for Doctor and Support. */
@media(min-width:1200px){
  .app-topbar{
    min-height:108px;
    padding:12px 52px;
    border-radius:0 0 30px 30px;
  }
  .mobile-brand .medirent-brand-logo{
    width:158px;
    max-height:64px;
  }
  .topbar-help{
    width:56px;
    height:56px;
    border-radius:18px;
  }
  .topbar-icon{
    width:23px;
    height:23px;
  }

  .doctor-only-profile,
  .support-screen{
    width:min(1240px,calc(100% - 80px));
    padding-top:58px;
    padding-bottom:104px;
  }

  .doctor-only-profile{
    gap:28px;
  }
  .doctor-profile-hero{
    grid-template-columns:148px minmax(0,1fr);
    gap:30px;
    padding:34px 38px;
    border-radius:32px;
  }
  .doctor-profile-hero .doctor-avatar{
    width:148px;
    height:148px;
    border-radius:30px;
  }
  .doctor-profile-hero-copy .app-kicker{
    font-size:.86rem;
  }
  .doctor-profile-hero-copy h1{
    font-size:3.35rem;
    margin-bottom:10px;
  }
  .doctor-profile-specialization{
    font-size:1.18rem;
  }
  .doctor-profile-role{
    font-size:1.05rem;
  }
  .doctor-profile-actions{
    gap:14px;
  }
  .doctor-profile-actions a{
    min-height:74px;
    border-radius:21px;
    font-size:1.08rem;
  }
  .doctor-profile-action-icon{
    width:22px;
    height:22px;
  }
  .doctor-profile-panel{
    padding:32px 36px;
    border-radius:28px;
  }
  .doctor-profile-panel .app-kicker{
    font-size:.84rem;
  }
  .doctor-profile-bio{
    font-size:1.12rem;
    line-height:1.7;
  }
  .doctor-profile-source-link{
    min-height:50px;
    padding:11px 15px;
    border-radius:15px;
    font-size:1rem;
  }

  .support-screen{
    display:grid;
    gap:22px;
  }
  .support-screen .screen-head{
    margin-bottom:2px;
  }
  .support-screen .screen-head .app-kicker{
    font-size:.86rem;
  }
  .support-screen .screen-head h1{
    margin:.2rem 0 .55rem;
    font-size:3rem;
    line-height:1.05;
  }
  .support-screen .screen-head p{
    font-size:1.08rem;
    max-width:900px;
  }
  .support-screen .support-grid{
    gap:16px;
  }
  .support-screen .support-grid-refined .contact-card{
    min-height:112px;
    padding:22px 24px;
    border-radius:25px;
    grid-template-columns:56px minmax(0,1fr) 28px;
    gap:16px;
  }
  .support-screen .contact-card>span:first-child{
    width:54px;
    height:54px;
    border-radius:16px;
  }
  .support-screen .contact-icon{
    width:25px;
    height:25px;
  }
  .support-screen .contact-card small{
    font-size:.83rem;
  }
  .support-screen .contact-card strong{
    font-size:1.14rem;
  }
  .support-screen .contact-card em{
    font-size:.9rem;
  }
  .support-screen .support-info-card{
    padding:23px 26px;
    border-radius:24px;
  }
  .support-screen .support-info-row{
    min-height:58px;
    gap:15px;
  }
  .support-screen .support-info-row small{
    font-size:.86rem;
  }
  .support-screen .support-info-row strong{
    font-size:1rem;
  }
  .support-screen .legal-links{
    font-size:1rem;
    gap:20px;
  }

  .app-bottom-nav{
    bottom:20px;
    width:min(1180px,calc(100vw - 80px));
    padding:9px;
    border-radius:25px;
  }
  .app-bottom-nav .app-nav-item{
    min-height:64px;
    border-radius:18px;
    font-size:1rem;
  }
  .app-bottom-nav .app-nav-icon{
    width:22px;
    height:22px;
  }
  .app-bottom-nav-backing{
    height:126px;
  }
}


/* Final MVP polish 2026-09-30: device relevance hierarchy and saved rental state. */
.catalog-section{margin-top:28px}
.catalog-section-head{display:grid;gap:4px;margin-bottom:13px}
.catalog-section-head h2{margin:0;color:var(--ink-strong);font-size:1.35rem}
.catalog-section-head p{margin:0;color:var(--muted);font-size:.875rem;line-height:1.5;max-width:760px}
.catalog-section[data-device-group="path"] .catalog-section-head h2{color:var(--primary)}
.catalog-section[data-device-group="area"]{padding-top:22px;border-top:1px solid var(--border)}
.catalog-section[data-device-group="all"]{padding-top:22px;border-top:1px solid var(--border)}
.recent-rental-status{display:grid;grid-template-columns:42px minmax(0,1fr);gap:12px;align-items:start;margin:0 0 18px;padding:15px 16px;border:1px solid rgba(47,143,93,.24);border-radius:18px;background:#f4fbf7;color:var(--ink-strong)}
.recent-rental-status-icon{width:22px;height:22px;margin-top:2px;color:#2f8f5d}
.recent-rental-status small,.recent-rental-status strong,.recent-rental-status span{display:block}
.recent-rental-status small{margin-bottom:3px;color:#2f8f5d;font-size:.75rem;font-weight:850;text-transform:uppercase;letter-spacing:.06em}
.recent-rental-status strong{font-size:1rem}
.recent-rental-status span{margin-top:3px;color:var(--muted);font-size:.84rem;line-height:1.45}
@media(min-width:1024px){
  .catalog-section{margin-top:36px}
  .catalog-section-head h2{font-size:1.55rem}
  .catalog-section-head p{font-size:.95rem}
  .recent-rental-status{grid-template-columns:50px minmax(0,1fr);padding:20px 22px;border-radius:22px}
  .recent-rental-status-icon{width:25px;height:25px}
}


/* Production hardening 2026-09-30: connectivity, PWA updates and touch targets. */
.network-status,
.app-update-banner{
  width:min(1180px,calc(100% - 32px));
  margin:12px auto 0;
  border-radius:16px;
  line-height:1.45;
}
.network-status{
  padding:11px 14px;
  border:1px solid rgba(201,79,12,.18);
  background:#fff7ef;
  color:#7a421f;
  font-size:.875rem;
  font-weight:700;
}
.app-update-banner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px 10px 14px;
  border:1px solid rgba(0,110,157,.16);
  background:#f3f9fc;
  color:var(--ink-strong);
  font-size:.875rem;
  font-weight:700;
}
.app-update-banner button,
.address-retry{
  min-height:44px;
  border:1px solid rgba(0,110,157,.18);
  border-radius:12px;
  background:#fff;
  color:var(--primary);
  font:inherit;
  font-weight:800;
  cursor:pointer;
}
.app-update-banner button{padding:8px 12px;white-space:nowrap}
.address-retry{margin-top:7px;padding:7px 11px}
.app-update-banner button:disabled{opacity:.65;cursor:wait}
.modal-close{width:44px;height:44px}
.catalog-filter{min-height:44px}
.phase-chip{min-height:44px}
.rental-direct-call{min-height:44px;display:flex;align-items:center;justify-content:center}
@media(max-width:759px){
  .network-status,
  .app-update-banner{width:calc(100% - 24px);margin-top:8px}
  .app-update-banner{align-items:stretch;flex-direction:column}
  .app-update-banner button{width:100%}
}


/* Final doctor profile simplification 2026-09-30. */
.doctor-profile-hero.is-text-only{
  grid-template-columns:1fr;
}
.doctor-profile-actions{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.doctor-profile-website{
  display:grid;
  gap:10px;
}
.doctor-profile-website .app-kicker{
  margin-bottom:0;
}
.doctor-profile-website-link{
  min-height:52px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border:1px solid rgba(0,110,157,.12);
  border-radius:15px;
  background:#f8fbfc;
  color:var(--primary);
  text-decoration:none;
  font-weight:800;
}
.doctor-profile-website-link .button-icon{
  width:17px;
  height:17px;
  flex:0 0 auto;
}
@media(max-width:520px){
  .doctor-profile-hero.is-text-only{
    grid-template-columns:1fr;
  }
}


/* Final tablet scale parity 2026-09-30:
   keep the approved tablet layout, but give it the same visual presence as desktop. */
@media(min-width:760px) and (max-width:1023px){
  html{font-size:16.5px}

  .app-topbar{
    min-height:86px;
    padding:8px 28px;
    border-radius:0 0 26px 26px;
  }
  .mobile-brand .medirent-brand-logo{
    width:132px;
    max-height:54px;
  }
  .topbar-help{
    width:48px;
    height:48px;
    border-radius:15px;
  }
  .topbar-icon{
    width:19px;
    height:19px;
  }

  .app-screen{
    width:min(920px,calc(100% - 44px));
    padding:44px 26px 86px;
  }
  .app-main{
    padding-bottom:calc(156px + env(safe-area-inset-bottom));
  }

  .app-bottom-nav-backing,
  .app-shell::after{
    height:calc(122px + env(safe-area-inset-bottom));
  }
  .app-bottom-nav{
    left:max(18px,env(safe-area-inset-left))!important;
    right:max(18px,env(safe-area-inset-right))!important;
    bottom:max(16px,env(safe-area-inset-bottom))!important;
    width:auto!important;
    transform:none!important;
    padding:8px;
    border-radius:23px;
  }
  .app-bottom-nav .app-nav-item{
    min-height:60px;
    border-radius:17px;
    font-size:.94rem;
  }
  .app-bottom-nav .app-nav-icon{
    width:21px;
    height:21px;
  }

  .doctor-only-profile,
  .support-screen{
    gap:22px;
  }
  .doctor-profile-hero{
    padding:27px 29px;
    border-radius:28px;
  }
  .doctor-profile-hero-copy h1{
    font-size:2.7rem;
    margin-bottom:7px;
  }
  .doctor-profile-specialization{
    font-size:1.03rem;
  }
  .doctor-profile-role{
    margin-top:4px;
    font-size:.96rem;
  }
  .doctor-profile-actions{
    gap:11px;
  }
  .doctor-profile-actions a{
    min-height:62px;
    border-radius:18px;
    font-size:.98rem;
  }
  .doctor-profile-action-icon{
    width:20px;
    height:20px;
  }
  .doctor-profile-panel{
    padding:25px 27px;
    border-radius:24px;
  }
  .doctor-profile-bio{
    font-size:1.02rem;
    line-height:1.66;
  }
  .doctor-profile-website-link{
    min-height:58px;
    padding:13px 15px;
    border-radius:16px;
    font-size:.98rem;
  }

  .support-screen .screen-head h1{
    font-size:2.55rem;
    line-height:1.06;
  }
  .support-screen .screen-head p{
    font-size:1.02rem;
  }
  .support-screen .support-grid{
    gap:14px;
  }
  .support-screen .support-grid-refined .contact-card{
    min-height:98px;
    padding:19px 21px;
    border-radius:22px;
    grid-template-columns:50px minmax(0,1fr) 26px;
    gap:14px;
  }
  .support-screen .contact-card>span:first-child{
    width:49px;
    height:49px;
    border-radius:15px;
  }
  .support-screen .contact-icon{
    width:23px;
    height:23px;
  }
  .support-screen .contact-card strong{
    font-size:1.08rem;
  }
  .support-screen .support-info-card{
    padding:21px 23px;
    border-radius:22px;
  }

  .screen-head h1{
    font-size:clamp(2.25rem,5vw,2.8rem);
  }
  .screen-head>p{
    font-size:1rem;
  }
  .catalog-grid{
    gap:16px;
  }
  .catalog-card{
    border-radius:23px;
  }
  .catalog-copy{
    padding:18px 19px 20px;
  }
  .catalog-copy h3{
    font-size:1.12rem;
  }
  .catalog-copy>p{
    font-size:.94rem;
  }
  .catalog-search input{
    min-height:50px;
    font-size:.98rem;
  }
  .catalog-filter{
    min-height:46px;
    padding:8px 13px;
    font-size:.86rem;
  }
}


/* Optional GA4 consent: rendered only when the dedicated Measurement ID is configured. */
.analytics-consent{
  position:fixed;
  z-index:140;
  left:50%;
  bottom:132px;
  width:min(760px,calc(100vw - 32px));
  transform:translateX(-50%);
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:16px;
  align-items:center;
  padding:16px 18px;
  border:1px solid rgba(0,110,157,.16);
  border-radius:20px;
  background:#fff;
  box-shadow:0 24px 60px -28px rgba(15,42,55,.42);
}
.analytics-consent strong{
  display:block;
  color:var(--ink-strong);
  font-size:.96rem;
}
.analytics-consent p{
  margin:4px 0 5px;
  color:var(--muted);
  font-size:.82rem;
  line-height:1.45;
}
.analytics-consent a{
  color:var(--primary);
  font-size:.78rem;
  font-weight:800;
}
.analytics-consent-actions{
  display:flex;
  gap:8px;
}
.analytics-consent-actions button{
  min-height:44px;
  padding:8px 12px;
  border:1px solid rgba(0,110,157,.16);
  border-radius:12px;
  background:#fff;
  color:var(--primary);
  font:inherit;
  font-size:.82rem;
  font-weight:800;
  cursor:pointer;
}
.analytics-consent-actions button.is-primary{
  border-color:var(--primary);
  background:var(--primary);
  color:#fff;
}
@media(max-width:759px){
  .analytics-consent{
    bottom:128px;
    grid-template-columns:1fr;
    gap:12px;
    width:calc(100vw - 24px);
    padding:14px;
    border-radius:18px;
  }
  .analytics-consent-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
  }
}
@media(min-width:760px) and (max-width:1023px){
  .analytics-consent{
    bottom:138px;
  }
}
