/* MedScript uses the shared Apps layout and its own clinical teal palette. */
.medscript-body {
  --apps-ink:#e4f6f0; --apps-muted:#a4c5bd; --apps-panel:#102b29;
  --apps-panel-raised:#183c38; --apps-line:#30564f; --apps-dark:#09221f;
  --apps-accent:#70dbc4; --apps-mint-accent:#70dbc4;
  --apps-mint:#91e5ce; --apps-pink:#91e5ce; --apps-lemon:#d8eb9d;
  --apps-blue:#9dcddd; --apps-lavender:#b5d6ee; --apps-peach:#ecc8a8;
  --apps-shadow:0 24px 70px rgba(0,0,0,.24);
  background:radial-gradient(circle at 10% 4%,rgba(26,155,129,.13),transparent 28rem),#09221f;
}
[data-theme="light"] .medscript-body {
  --apps-ink:#163c35; --apps-muted:#526f67; --apps-panel:#fff;
  --apps-panel-raised:#e8f5ee; --apps-line:#c7e0d7; --apps-accent:#116d5c;
  --apps-mint-accent:#116d5c; --apps-shadow:0 24px 70px rgba(20,91,72,.10);
  background:radial-gradient(circle at 10% 4%,rgba(26,155,129,.08),transparent 28rem),#f2f8f4;
}
.medscript-body .apps-hero {
  background:radial-gradient(circle at 94% 12%,rgba(82,201,170,.16),transparent 30%),var(--apps-panel);
}
.medscript-body .apps-hero::before { border-color:rgba(112,219,196,.22); box-shadow:0 0 0 32px rgba(112,219,196,.035),0 0 0 66px rgba(112,219,196,.02); }
.medscript-body .apps-hero-visual { width:min(100%,350px); }
.medscript-body .apps-hero-visual::before { background:linear-gradient(150deg,#0b806d,#91e5ce); opacity:.3; }
.medscript-body .apps-hero-visual img { border-color:var(--apps-line); }
.medscript-body .apps-switcher a[aria-current="page"] { background:rgba(41,162,133,.14); }
.medscript-body .apps-button.secondary { border-color:var(--apps-line); }
.medscript-body .apps-button.primary { box-shadow:0 10px 28px rgba(19,129,107,.17); }
.medscript-body .apps-feature-icon { color:#15382f; }
.medscript-body .apps-gallery { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; }
.medscript-body .apps-shot { min-width:0; margin:0; overflow:hidden; border:1px solid var(--apps-line); border-radius:22px; background:var(--apps-panel); }
.medscript-body .apps-shot>a { display:block; cursor:zoom-in; }
.medscript-body .apps-shot img { display:block; width:100%; height:auto; }
.medscript-body .apps-shot figcaption { padding:18px; }
.medscript-body .apps-shot h3 { font-size:17px; line-height:1.35; margin:0 0 8px; color:var(--apps-ink); }
.medscript-body .apps-shot p { margin:0; font-size:13px; line-height:1.7; color:var(--apps-muted); }
.medscript-notice { margin:32px 0 60px; padding:30px; border:1px solid var(--apps-line); border-left:4px solid var(--apps-mint); border-radius:20px; background:var(--apps-panel); }
.medscript-notice h2 { color:var(--apps-ink); font-size:clamp(24px,4vw,32px); line-height:1.2; letter-spacing:-.03em; }
.medscript-notice p { color:var(--apps-muted); line-height:1.8; }
.medscript-body .apps-policy { width:min(840px,calc(100% - 40px)); margin-inline:auto; }
.medscript-body .apps-policy-meta { color:var(--apps-muted); }
.medscript-body .apps-policy-note { color:var(--apps-ink); background:rgba(112,219,196,.08); border-left-color:var(--apps-mint); line-height:1.8; }
.medscript-body code { overflow-wrap:anywhere; }
.medscript-body .site-footer .links { flex-wrap:wrap; min-width:0; }
.medscript-body .site-footer .links a { overflow-wrap:anywhere; }
@media(max-width:900px) { .medscript-body .apps-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:620px) { .medscript-body .apps-gallery { grid-template-columns:1fr; max-width:370px; margin-inline:auto; } .medscript-notice { padding:22px; } }
@media(prefers-reduced-motion:reduce) { .medscript-body *, .medscript-body *::before,.medscript-body *::after { scroll-behavior:auto!important; transition-duration:.001ms!important; animation-duration:.001ms!important; } }
