:root {
  --bg: #F6F8F1;
  --card: #FFFFFF;
  --ink: #0A0A0A;
  --sub: #3D3D42;
  --faint: #77777F;
  --line: #0A0A0A;
  --line-soft: rgba(10,10,10,0.16);
  --primary: #4F46E5;
  --on-primary: #FFFFFF;
  --secondary: #14B8A6;
  --accent: #F59E0B;
  --pink: #EC4899;
  --green: #16A34A;
  --tint-primary: #E5E3FC;
  --tint-secondary: #D3F4EF;
  --tint-accent: #FDEBCC;
  --tint-pink: #FBDEED;
  --tint-green: #D8F5E0;
  --tertiary: #2563EB;
  --tint-tertiary: #DCE8FE;
  --chip: #F1F1EA;
  --panel: #F3F4EC;
  --bar: rgba(255,255,255,0.88);
  --scrim: rgba(10,10,12,0.5);
  --inverse-bg: #101014;
  --inverse-ink: #EDEDF4;
  --inverse-sub: #A6A6B4;
  --shadow-soft: 0 10px 30px rgba(10,10,20,0.07);
  --shadow-pop: 6px 6px 0 rgba(10,10,10,0.9);
  --shadow-pop-sm: 4px 4px 0 rgba(10,10,10,0.9);
}
:root[data-theme="dark"] {
  --bg: #000000;
  --card: #1A212E;
  --ink: #FFFFFF;
  --sub: #C6CBD6;
  --faint: #8B93A6;
  --line: #545C6E;
  --line-soft: rgba(255,255,255,0.18);
  --primary: #818CF8;
  --on-primary: #0A0A0A;
  --secondary: #2DD4BF;
  --accent: #FBD64C;
  --pink: #F472B6;
  --green: #4ADE80;
  --tint-primary: rgba(129,140,248,0.2);
  --tint-secondary: rgba(45,212,191,0.18);
  --tint-accent: rgba(251,214,76,0.18);
  --tint-pink: rgba(244,114,182,0.18);
  --tint-green: rgba(74,222,128,0.18);
  --tertiary: #60A5FA;
  --tint-tertiary: rgba(96,165,250,0.2);
  --chip: #232A38;
  --panel: #131926;
  --bar: rgba(10,13,20,0.88);
  --scrim: rgba(0,0,0,0.66);
  --inverse-bg: #F2F3EC;
  --inverse-ink: #12131A;
  --inverse-sub: #55555E;
  --shadow-soft: 0 10px 30px rgba(0,0,0,0.5);
  --shadow-pop: 6px 6px 0 rgba(129,140,248,0.55);
  --shadow-pop-sm: 4px 4px 0 rgba(129,140,248,0.55);
}

html, body { margin: 0; padding: 0; height: 100%; background: var(--bg); font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif; -webkit-font-smoothing: antialiased; color: var(--ink); }
* { box-sizing: border-box; }
a { color: var(--primary); text-decoration: none; }
a:hover { opacity: 0.85; }
button { font: inherit; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--line-soft); border-radius: 999px; }
::-webkit-scrollbar-track { background: transparent; }

@keyframes meshShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes floatY { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-40px) scale(1.08); } }
@keyframes ekgDash { from { stroke-dashoffset: 680; } to { stroke-dashoffset: 0; } }
@keyframes pulseDot { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.7); opacity: 0.45; } }
@keyframes ringPulse { 0% { box-shadow: 0 0 0 0 rgba(79,70,229,0.45); } 70% { box-shadow: 0 0 0 14px rgba(79,70,229,0); } 100% { box-shadow: 0 0 0 0 rgba(79,70,229,0); } }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes barIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0.35; } }
@keyframes pillDrop { from { opacity: 0; transform: translateY(-16px) scale(0.7) rotate(-6deg); } to { opacity: 1; transform: none; } }
@keyframes rxPulse { 0%, 100% { box-shadow: 0 0 0 0 var(--tint-primary); } 50% { box-shadow: 0 0 0 14px rgba(0,0,0,0); } }
@keyframes crossBeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes toastIn { from { transform: translateY(120%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes progressBar { from { width: 100%; } to { width: 0%; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } }

.mono { font-family: 'Space Mono', monospace; }

/* ============ LOGIN SPLASH ============ */
#login-wrap {
  position: fixed; inset: 0; z-index: 100; opacity: 1; transform: scale(1);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.32,0.72,0.28,1), filter 0.7s ease;
}
#login-wrap.leaving { opacity: 0; transform: scale(1.16); filter: blur(8px); pointer-events: none; }
#login-wrap.hidden { display: none; }

.login-screen {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: linear-gradient(125deg, #4F46E5, #EC4899 36%, #14B8A6 70%, #F59E0B);
  background-size: 320% 320%; animation: meshShift 14s ease infinite;
}
.login-blob-1 { position: absolute; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.35), rgba(255,255,255,0)); top: -140px; left: -100px; animation: floatY 9s ease-in-out infinite; }
.login-blob-2 { position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(10,10,12,0.3), rgba(10,10,12,0)); bottom: -120px; right: -80px; animation: floatY 11s ease-in-out 1.2s infinite; }

#login-intro {
  position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center;
  opacity: 1; transform: scale(1); filter: blur(0px); pointer-events: none;
  transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.32,0.72,0.28,1), filter 0.6s ease;
}
#login-intro.hide { opacity: 0; transform: scale(1.2); filter: blur(6px); }
#login-intro .headline {
  font-weight: 800; color: #FFFFFF; font-size: clamp(40px, 7vw, 84px); letter-spacing: -0.02em; line-height: 1.05;
  text-align: center; text-shadow: 0 8px 30px rgba(0,0,0,0.35);
}

#login-card {
  position: relative; width: 410px; max-width: 92vw; background: var(--card); border: 2px solid var(--line);
  border-radius: 22px; box-shadow: 10px 10px 0 rgba(10,10,10,0.85); padding: 38px 36px 30px;
  opacity: 0; transform: translateY(16px) scale(0.96);
  transition: opacity 0.6s ease 0.1s, transform 0.7s cubic-bezier(0.32,0.72,0.28,1) 0.1s;
}
#login-card.show { opacity: 1; transform: none; }

.login-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.login-brand-mark { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary)); border: 1.5px solid var(--line); }
.login-brand-name { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.login-brand-name span { font-weight: 500; color: var(--faint); }
.login-h1 { font-weight: 800; font-size: 42px; letter-spacing: -0.01em; margin-bottom: 8px; }
.login-sub { font-size: 14px; color: var(--sub); line-height: 1.55; margin-bottom: 26px; }
.login-sub strong { color: var(--ink); }
.login-field { margin-bottom: 14px; }
.login-field.pw { margin-bottom: 22px; }
.login-label { font-family: 'Space Mono', monospace; font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; color: var(--faint); margin-bottom: 6px; }
.login-input { border: 1.5px solid var(--line); background: var(--panel); border-radius: 12px; padding: 12px 14px; font-size: 15px; min-height: 17px; }
.login-input.pw { letter-spacing: 3px; color: var(--sub); }
.cursor { display: inline-block; width: 2px; height: 15px; background: var(--ink); margin-left: 2px; animation: blink 1s step-end infinite; vertical-align: middle; }
#signin-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; height: 50px; border-radius: 14px;
  background: var(--primary); border: 2px solid var(--line); color: var(--on-primary); font-size: 15.5px; font-weight: 700;
  cursor: pointer; box-shadow: var(--shadow-pop-sm); transition: transform 0.25s cubic-bezier(0.22,1,0.36,1), box-shadow 0.25s;
}
#signin-btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-pop); }
#signin-btn:active { transform: scale(0.98); box-shadow: none; }
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,0.35); border-top-color: #FFFFFF; border-radius: 50%; animation: spin 0.7s linear infinite; }
.login-caption { text-align: center; font-size: 12px; color: var(--faint); margin-top: 16px; }
.login-wordmark { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; font-family: 'Space Mono', monospace; font-size: 11.5px; color: rgba(255,255,255,0.9); font-weight: 700; }

/* ============ CHART SHELL ============ */
#chart-shell { height: 100vh; background: var(--bg); overflow: auto; }
#chart {
  height: 100%; min-height: 760px; display: flex; flex-direction: column;
  transform: scale(0.975); filter: blur(3px);
  transition: transform 0.9s cubic-bezier(0.32,0.72,0.28,1), filter 0.9s ease;
}
#chart.ready { transform: scale(1); filter: none; }

.topbar { display: flex; align-items: center; gap: 12px; padding: 9px 18px; background: var(--bar); backdrop-filter: blur(16px); border-bottom: 1.5px solid var(--line); flex: 0 0 auto; }
.topbar-brand { display: flex; align-items: center; gap: 9px; }
.brand-mark { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary)); border: 1.5px solid var(--line); }
.brand-name { font-size: 15px; font-weight: 800; }
.chart-chip { background: var(--chip); border: 1px solid var(--line-soft); border-radius: 999px; padding: 6px 14px; font-size: 12.5px; color: var(--sub); font-weight: 600; }
.live-pill { display: flex; align-items: center; gap: 8px; background: var(--inverse-bg); color: var(--inverse-ink); border-radius: 999px; padding: 6px 14px; font-family: 'Space Mono', monospace; font-size: 11.5px; font-weight: 700; }
.dot-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulseDot 1.6s ease infinite; }
.spacer { flex: 1 1 auto; }
.icon-btn { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--chip); border: 1.5px solid var(--line); font-size: 15px; color: var(--ink); cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.icon-btn:hover { transform: translate(-1px, -2px); box-shadow: 3px 3px 0 var(--line); }
.icon-btn.li { font-size: 13px; font-weight: 800; }
.icon-btn.em { font-size: 15px; font-weight: 700; }
.resume-btn {
  display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 16px; border-radius: 999px;
  background: var(--primary); border: 1.5px solid var(--line); color: var(--on-primary);
  font-family: 'Space Mono', monospace; font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em;
  box-shadow: var(--shadow-pop-sm); transition: transform 0.2s, box-shadow 0.2s;
}
.resume-btn:hover { transform: translate(-1px, -2px); box-shadow: var(--shadow-pop); opacity: 1; color: var(--on-primary); }

/* ============ PATIENT SUMMARY BANNER ============ */
#summary-banner {
  position: relative; margin: 14px 16px 0; background: var(--card); border: 1.5px solid var(--line); border-radius: 18px;
  padding: 14px 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; cursor: pointer;
  box-shadow: var(--shadow-soft); transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s; flex: 0 0 auto;
}
#summary-banner:hover { transform: translate(-2px, -3px); box-shadow: var(--shadow-pop); }
.summary-eyebrow { position: absolute; top: 12px; right: 16px; font-family: 'Space Mono', monospace; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: var(--faint); }
.summary-eyebrow span { color: var(--primary); }
.headshot-ring { flex: 0 0 auto; border-radius: 50%; padding: 3px; background: linear-gradient(135deg, var(--primary), var(--secondary)); animation: ringPulse 3s ease infinite; }
.headshot-ring img { width: 74px; height: 74px; display: block; border-radius: 50%; object-fit: cover; }
.summary-main { flex: 1 1 280px; min-width: 250px; }
.summary-name-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.summary-name { font-weight: 800; font-size: 31px; letter-spacing: -0.01em; }
.status-pill { display: flex; align-items: center; gap: 7px; background: var(--tint-green); border: 1px solid var(--green); border-radius: 999px; padding: 3px 12px; font-size: 12px; font-weight: 700; color: var(--green); }
.summary-mrn { font-family: 'Space Mono', monospace; font-size: 12.5px; color: var(--sub); font-weight: 700; letter-spacing: 0.04em; margin: 6px 0 8px; }
.summary-bio { font-size: 17px; color: var(--ink); font-weight: 500; line-height: 1.5; max-width: 560px; }
.summary-bio strong.c-primary { color: var(--primary); }
.summary-bio strong.c-secondary { color: var(--secondary); }
.summary-bio strong.c-pink { color: var(--pink); }
.cred-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.cred-chip { background: var(--chip); border: 1px solid var(--line-soft); border-radius: 999px; padding: 3px 10px; font-family: 'Space Mono', monospace; font-size: 10px; font-weight: 700; color: var(--sub); }
.summary-stats { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 8px; }
.vitals-box { min-width: 140px; }
.vitals-box svg { display: block; }
.vitals-label { font-family: 'Space Mono', monospace; font-size: 10px; font-weight: 700; color: var(--secondary); letter-spacing: 0.04em; }
.stat-card { border: 1.5px solid var(--line); border-radius: 14px; padding: 8px 14px; min-width: 106px; }
.stat-card.p { background: var(--tint-primary); }
.stat-card.s { background: var(--tint-secondary); }
.stat-card.pk { background: var(--tint-pink); }
.stat-label { font-family: 'Space Mono', monospace; font-size: 9.5px; letter-spacing: 0.06em; font-weight: 700; }
.stat-label.p { color: var(--primary); }
.stat-label.s { color: var(--secondary); }
.stat-label.pk { color: var(--pink); }
.stat-value { font-size: 23px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat-value .p { color: var(--primary); }
.stat-value .s { color: var(--secondary); }
.stat-sub { font-size: 10.5px; color: var(--sub); }

/* ============ TICKER ============ */
#ticker-bar {
  display: flex; align-items: center; gap: 14px; margin: 12px 16px 0; background: var(--card); border: 1.5px solid var(--line);
  border-radius: 999px; padding: 9px 14px 9px 9px; box-shadow: var(--shadow-soft); flex: 0 0 auto; cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s;
}
#ticker-bar:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-pop-sm); }
.ticker-cta { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; background: var(--accent); color: #0A0A0A; border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 16px; font-family: 'Space Mono', monospace; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; }
.ticker-viewport { overflow: hidden; flex: 1 1 auto; }
.ticker-track { display: flex; width: max-content; animation: marquee 80s linear infinite; }
.ticker-group { display: flex; }
.ticker-chip { display: flex; align-items: center; gap: 8px; background: var(--chip); border: 1px solid var(--line-soft); border-radius: 999px; padding: 8px 18px; font-family: 'Space Mono', monospace; font-size: 13.5px; color: var(--ink); white-space: nowrap; margin-right: 10px; }
.ticker-chip .dot { width: 8px; height: 8px; border-radius: 50%; }

/* ============ BODY LAYOUT ============ */
#body-row { display: flex; gap: 16px; padding: 14px 16px 16px; flex: 1 1 auto; min-height: 0; }
#left-col { flex: 0 1 66%; min-width: 320px; display: flex; flex-direction: column; gap: 14px; min-height: 0; overflow: auto; transition: flex-basis 0.5s cubic-bezier(0.32,0.72,0.28,1); }
#left-col.narrow { flex-basis: 38%; }
#right-col { flex: 0 1 33%; min-width: 280px; display: flex; flex-direction: column; gap: 14px; min-height: 0; overflow: auto; transition: flex-basis 0.5s cubic-bezier(0.32,0.72,0.28,1); }
#right-col.wide { flex-basis: 61%; }

.section-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 6px; }
.section-title { font-weight: 800; font-size: 21px; letter-spacing: -0.01em; }
.section-title span { color: var(--faint); font-weight: 600; font-size: 14px; }
.badge-final { background: var(--tint-green); color: var(--green); border: 1px solid var(--green); border-radius: 999px; padding: 4px 12px; font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 700; }

.project-card {
  position: relative; border: 2px solid var(--line); border-radius: 22px; padding: 26px 28px; cursor: pointer;
  flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; box-shadow: var(--shadow-soft);
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s;
}
.project-card:hover { transform: translate(-3px, -4px); box-shadow: var(--shadow-pop); }
.project-card.stethos { background: linear-gradient(135deg, var(--tint-tertiary) 0%, var(--card) 55%); }
.project-card.fc { background: linear-gradient(135deg, var(--tint-primary) 0%, var(--card) 55%); }
.project-card.moodi { background: linear-gradient(135deg, var(--tint-secondary) 0%, var(--card) 55%); }
.project-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.project-logo { width: 84px; height: 84px; flex: 0 0 auto; border-radius: 18px; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: var(--shadow-pop-sm); }
.project-logo img { object-fit: contain; }
.project-body { flex: 1 1 260px; min-width: 240px; }
.project-meta-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.project-kicker { font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; }
.project-title { font-weight: 800; font-size: 44px; letter-spacing: -0.02em; line-height: 1; margin-bottom: 10px; }
.project-desc { font-size: 17px; font-weight: 400; color: var(--ink); line-height: 1.5; max-width: 520px; }
.project-cta { margin-top: 14px; font-size: 14px; font-weight: 800; }
.project-thumb { flex: 0 1 240px; min-width: 180px; height: 130px; border-radius: 14px; border: 2px solid var(--line); overflow: hidden; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ============ RIGHT COL CARDS ============ */
.rc-card { position: relative; background: var(--card); border: 1.5px solid var(--line); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow-soft); }
.rc-card.clickable { cursor: pointer; transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s; }
.rc-card.clickable:hover { transform: translate(-2px, -3px); box-shadow: var(--shadow-pop); }
.rc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.rc-eyebrow { font-family: 'Space Mono', monospace; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; }
.rc-arrow { font-size: 13px; font-weight: 700; }
.care-person { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.avatar-circle { border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary)); border: 1.5px solid var(--line); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.avatar-circle.sm { width: 50px; height: 50px; font-size: 17px; }
.care-name { font-size: 17px; font-weight: 700; }
.care-title { font-size: 14px; color: var(--sub); }
.care-links { display: flex; flex-direction: column; gap: 11px; border-top: 1px solid var(--line-soft); padding-top: 14px; }
.care-link { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--sub); }
.link-icon { width: 26px; height: 26px; border-radius: 50%; background: var(--chip); border: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: var(--ink); flex: 0 0 auto; }
.care-cta { margin-top: 14px; font-size: 15px; font-weight: 700; color: var(--accent); }

.enc-item { border-bottom: 1px dashed var(--line-soft); }
.enc-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; cursor: pointer; }
.enc-logo { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 10px; background: #FFFFFF; border: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.enc-info { flex: 1 1 auto; min-width: 0; }
.enc-role { font-size: 15px; font-weight: 700; color: var(--ink); }
.enc-org { font-size: 13px; color: var(--sub); }
.enc-chev { font-size: 15px; color: var(--faint); transition: transform 0.35s cubic-bezier(0.32,0.72,0.28,1), color 0.2s; }
.enc-chev.open { color: var(--primary); transform: rotate(180deg); }
.enc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s cubic-bezier(0.32,0.72,0.28,1); }
.enc-body.open { grid-template-rows: 1fr; }
.enc-body-inner { overflow: hidden; }
.enc-list { margin: 0; padding: 0 4px 14px 50px; display: flex; flex-direction: column; gap: 6px; }
.enc-list li { font-size: 12.5px; color: var(--sub); line-height: 1.55; }

.orders-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line-soft); }
.orders-row:last-child { border-bottom: none; padding-top: 6px; }
.orders-label { font-size: 14.5px; color: var(--ink); font-weight: 600; }
.orders-freq { font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 700; color: var(--faint); white-space: nowrap; }
.orders-freq.green { color: var(--green); }

.chart-note { background: var(--inverse-bg); border: 1.5px solid var(--line); border-radius: 18px; padding: 16px 18px; flex: 0 0 auto; }
.chart-note-label { font-family: 'Space Mono', monospace; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--inverse-sub); margin-bottom: 10px; }
.chart-note-body { font-size: 14.5px; color: var(--inverse-ink); line-height: 1.6; }

.skills-teaser-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.teaser-chip { background: var(--chip); border: 1px solid var(--line-soft); border-radius: 999px; padding: 3px 10px; font-size: 11.5px; color: var(--sub); font-weight: 600; }
.teaser-chip.cta { background: var(--tint-pink); border: 1px solid var(--pink); color: var(--pink); font-weight: 700; }
.skills-teaser-note { margin-top: 10px; font-size: 11px; color: var(--faint); }

/* ============ TOASTS ============ */
#toast-wrap { position: fixed; bottom: 16px; right: 16px; z-index: 130; display: flex; flex-direction: column-reverse; gap: 10px; }
.toast {
  position: relative; overflow: hidden; display: flex; gap: 12px; align-items: flex-start;
  width: 344px; max-width: 86vw; background: var(--card); border: 1.5px solid var(--line); border-radius: 16px;
  padding: 12px 14px; box-shadow: 6px 6px 0 rgba(10,10,10,0.35); cursor: pointer;
  animation: toastIn 0.55s cubic-bezier(0.22,1,0.36,1) both;
}
.toast.leaving { animation: none; transform: translateY(130%); opacity: 0; transition: transform 0.4s ease, opacity 0.4s ease; }
.toast-icon { width: 42px; height: 42px; border-radius: 12px; background: #FFFFFF; border: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; flex: 0 0 auto; }
.toast-icon-fallback { width: 100%; height: 100%; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.toast-body { flex: 1 1 auto; min-width: 0; }
.toast-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.toast-title { font-size: 12.5px; font-weight: 800; color: var(--ink); }
.toast-time { font-family: 'Space Mono', monospace; font-size: 9.5px; color: var(--faint); white-space: nowrap; }
.toast-text { font-size: 12px; color: var(--sub); line-height: 1.45; margin-top: 2px; }
.toast-close { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--faint); font-size: 14px; cursor: pointer; transition: background 0.2s; background: transparent; border: none; }
.toast-close:hover { background: var(--chip); }
.toast-progress { position: absolute; left: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--secondary)); animation: progressBar 6.4s linear both; }

/* ============ OVERLAY (accordion panel) ============ */
#backdrop { position: fixed; inset: 0; z-index: 50; background: var(--scrim); backdrop-filter: blur(5px); opacity: 0; transition: opacity 0.45s ease; cursor: pointer; display: none; }
#backdrop.show { opacity: 1; }
#overlay {
  position: fixed; z-index: 60; background: var(--card); border: 2px solid var(--line); overflow: hidden;
  box-shadow: 12px 12px 0 rgba(10,10,10,0.5);
  transition: top 0.52s cubic-bezier(0.32,0.72,0.28,1), left 0.52s cubic-bezier(0.32,0.72,0.28,1), width 0.52s cubic-bezier(0.32,0.72,0.28,1), height 0.52s cubic-bezier(0.32,0.72,0.28,1), border-radius 0.52s cubic-bezier(0.32,0.72,0.28,1);
  display: none;
}
#overlay.show { display: block; }
#overlay.expanded { overflow: auto; }
#overlay-content { opacity: 0; transition: opacity 0.35s ease 0.14s; min-height: 100%; }
#overlay-content.show { opacity: 1; }

.overlay-header { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 14px; padding: 13px 22px; background: var(--bar); backdrop-filter: blur(14px); border-bottom: 1.5px solid var(--line); }
.back-pill { display: flex; align-items: center; gap: 8px; padding: 8px 15px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.back-pill:hover { transform: translate(-2px, -1px); box-shadow: 3px 3px 0 var(--line); }
.overlay-title { font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--faint); text-transform: uppercase; }
.resume-link { font-size: 12.5px; font-weight: 700; }

.panel-body { padding: 30px 32px 44px; max-width: 1060px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 34px; animation: fadeUp 0.5s cubic-bezier(0.22,1,0.36,1) both; }
.panel-col-main { flex: 2 1 440px; min-width: 300px; }
.panel-headline { font-weight: 800; font-size: 39px; letter-spacing: -0.01em; line-height: 1.2; margin-bottom: 18px; }
.panel-lead { font-size: 15.5px; color: var(--sub); line-height: 1.68; margin-bottom: 30px; }
.panel-sub-eyebrow { font-family: 'Space Mono', monospace; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--faint); margin-bottom: 12px; }
.edu-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 16px; margin-bottom: 10px; background: var(--card); }
.edu-logo { width: 48px; height: 48px; flex: 0 0 auto; border-radius: 10px; background: #FFFFFF; border: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.edu-logo img { width: 100%; height: 100%; object-fit: cover; }
.edu-title { font-size: 14.5px; font-weight: 700; }
.edu-org { font-size: 12.5px; color: var(--sub); }
.edu-tag { background: var(--tint-primary); color: var(--primary); border: 1px solid var(--primary); border-radius: 999px; padding: 3px 10px; font-family: 'Space Mono', monospace; font-size: 10px; font-weight: 700; }
.edu-tag.s { background: var(--tint-secondary); color: var(--secondary); border-color: var(--secondary); }

.panel-col-side { flex: 1 1 300px; min-width: 270px; animation: fadeUp 0.5s cubic-bezier(0.22,1,0.36,1) 0.1s both; }
.vitals-card { background: var(--panel); border: 1.5px solid var(--line); border-radius: 18px; padding: 22px; }
.vitals-row { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px dashed var(--line-soft); padding-bottom: 10px; }
.vitals-row:last-child { border-bottom: none; padding-bottom: 0; }
.vitals-rows { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.vitals-k { font-size: 13px; color: var(--sub); font-weight: 600; }
.vitals-v { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.vitals-v.team { font-size: 15px; color: var(--primary); }
.panel-flags { margin-top: 12px; font-size: 12px; color: var(--faint); line-height: 1.6; }

/* ============ SKILLS PANEL ============ */
.skills-panel-wrap { padding: 34px 40px 56px; max-width: 1900px; margin: 0 auto; animation: fadeUp 0.5s cubic-bezier(0.22,1,0.36,1) both; }
.skills-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.skills-headline-wrap { flex: 1 1 320px; min-width: 260px; }
.skills-eyebrow { font-family: 'Space Mono', monospace; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--faint); margin-bottom: 8px; }
.skills-headline { font-weight: 800; font-size: 38px; letter-spacing: -0.01em; }
.pharmacist-note { flex: 0 1 460px; min-width: 300px; background: linear-gradient(120deg, var(--tint-primary) 0%, var(--tint-secondary) 100%); border: 2.5px solid var(--line); border-radius: 20px; padding: 14px 20px; display: flex; align-items: center; gap: 14px; animation: pillDrop 0.6s cubic-bezier(0.22,1,0.36,1) 0.15s both; }
.rx-roundel { width: 50px; height: 50px; border-radius: 50%; background: var(--card); border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 23px; font-weight: 800; color: var(--primary); flex: 0 0 auto; animation: crossBeat 2.2s ease infinite, rxPulse 2.2s ease infinite; }
.note-text { flex: 1 1 auto; min-width: 0; }
.note-label { font-family: 'Space Mono', monospace; font-size: 9.5px; font-weight: 800; letter-spacing: 0.1em; color: var(--primary); margin-bottom: 2px; }
.note-line { font-weight: 800; font-size: 15px; color: var(--ink); line-height: 1.3; }
.note-refills { flex: 0 0 auto; padding-left: 14px; border-left: 1.5px dashed var(--line); text-align: right; font-family: 'Space Mono', monospace; font-size: 9px; font-weight: 700; letter-spacing: 0.06em; color: var(--faint); white-space: nowrap; line-height: 1.4; }

.cabinet { position: relative; width: 100%; box-sizing: border-box; background: var(--bg); border: 2.5px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-pop-sm); }
.cabinet-dots { position: absolute; inset: 0; background-image: radial-gradient(var(--line-soft) 1.5px, transparent 1.5px); background-size: 20px 20px; opacity: 0.5; pointer-events: none; }
.potency-stamp { position: absolute; top: 16px; right: 22px; width: 96px; height: 96px; border-radius: 50%; border: 2px dashed var(--line); background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(-10deg); text-align: center; z-index: 2; }
.stamp-check { font-size: 20px; line-height: 1; }
.stamp-text { font-family: 'Space Mono', monospace; font-size: 8px; font-weight: 800; letter-spacing: 0.05em; line-height: 1.35; margin-top: 3px; color: var(--ink); }
.manifest-label { position: relative; z-index: 1; padding: 22px 28px 0; font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; color: var(--pink); }
.manifest-divider { position: relative; z-index: 1; margin: 16px 28px 0; border-top: 2px dashed var(--line-soft); }
.shelves { position: relative; z-index: 1; padding: 30px 28px 14px; }
.shelf-row { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; row-gap: 24px; column-gap: 20px; padding-bottom: 18px; border-bottom: 7px solid var(--line); box-shadow: 0 5px 7px rgba(10,10,10,0.12); margin-bottom: 36px; }
.shelf-row:last-child { margin-bottom: 0; }

.skill-box { flex: 0 0 auto; display: flex; flex-direction: column; border: 1.5px solid var(--line); border-radius: 8px; background: var(--card); box-shadow: 3px 4px 0 rgba(10,10,10,0.28); }
.skill-box-cap { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; border-bottom: 1.5px solid var(--line); border-radius: 6.5px 6.5px 0 0; }
.skill-box-body { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 10px 10px 12px; text-align: center; }
.skill-name { font-size: 13.5px; font-weight: 800; line-height: 1.25; color: var(--ink); }
.skill-dose { font-family: 'Space Mono', monospace; font-size: 10px; font-weight: 700; color: var(--faint); letter-spacing: 0.02em; }
.skill-barcode { width: 84%; height: 6px; margin-top: 2px; opacity: 0.5; background-image: repeating-linear-gradient(90deg, var(--line) 0px, var(--line) 2px, transparent 2px, transparent 3px, var(--line) 3px, var(--line) 4px, transparent 4px, transparent 7px); }

.skill-bottle { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; }
.bottle-cap { border-radius: 4px 4px 0 0; background: var(--line); }
.bottle-neck { border-left: 1.5px solid var(--line); border-right: 1.5px solid var(--line); }
.bottle-body { box-sizing: border-box; border: 1.5px solid var(--line); border-radius: 12px 12px 16px 16px; display: flex; align-items: center; justify-content: center; padding: 10px 8px 12px; width: 100%; }
.bottle-label { width: 100%; box-sizing: border-box; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 9px 8px; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.bottle-label .skill-name { font-size: 11.5px; text-align: center; }
.bottle-label .skill-dose { font-size: 9px; text-align: center; }
.bottle-label .skill-barcode { width: 80%; margin-top: 1px; }

/* ============ CARE PANEL ============ */
.care-panel { padding: 44px 32px 56px; max-width: 780px; margin: 0 auto; text-align: center; }
.care-avatar { width: 68px; height: 68px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary)); border: 2px solid var(--line); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 23px; font-weight: 800; margin: 0 auto 18px; animation: fadeUp 0.5s cubic-bezier(0.22,1,0.36,1) both; }
.care-headline { font-weight: 800; font-size: 39px; letter-spacing: -0.01em; margin-bottom: 10px; animation: fadeUp 0.5s cubic-bezier(0.22,1,0.36,1) 0.05s both; }
.care-lead { font-size: 15.5px; color: var(--sub); line-height: 1.6; margin-bottom: 32px; animation: fadeUp 0.5s cubic-bezier(0.22,1,0.36,1) 0.1s both; }
.care-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; text-align: left; }
.care-contact { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1.5px solid var(--line); border-radius: 16px; padding: 16px 18px; transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s; animation: fadeUp 0.5s cubic-bezier(0.22,1,0.36,1) both; }
.care-contact:hover { transform: translate(-2px, -3px); box-shadow: var(--shadow-pop-sm); opacity: 1; }
.care-contact.dark-card { background: var(--inverse-bg); }
.contact-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; flex: 0 0 auto; }
.contact-icon.li { background: var(--tint-primary); color: var(--primary); }
.contact-icon.em { background: var(--tint-secondary); color: var(--secondary); font-size: 16px; font-weight: 700; }
.contact-icon.ph { background: var(--tint-pink); color: var(--pink); font-size: 16px; }
.contact-icon.res { background: rgba(128,128,140,0.22); color: var(--inverse-ink); font-size: 16px; }
.contact-text { flex: 1 1 auto; }
.contact-label { display: block; font-size: 14px; font-weight: 700; color: var(--ink); }
.contact-label.inv { color: var(--inverse-ink); }
.contact-value { display: block; font-size: 12.5px; color: var(--sub); }
.contact-value.inv { color: var(--inverse-sub); }
.contact-arrow { color: var(--faint); }
.contact-arrow.inv { color: var(--inverse-sub); }
.care-footer { margin-top: 26px; font-size: 12.5px; color: var(--faint); }

/* ============ PROJECT CASE REPORT ============ */
#report-wrap { position: fixed; inset: 0; z-index: 90; background: var(--bg); overflow-y: auto; overflow-x: hidden; animation: fadeIn 0.3s ease both; display: none; }
#report-wrap.show { display: block; }
.report-header { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 14px; padding: 12px 22px; background: var(--bar); backdrop-filter: blur(14px); border-bottom: 1.5px solid var(--line); }
.report-live-btn { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--line); color: var(--on-primary); font-size: 13px; font-weight: 700; box-shadow: var(--shadow-pop-sm); transition: transform 0.25s, box-shadow 0.25s; }
.report-live-btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-pop); opacity: 1; }

.report-hero { position: relative; overflow: hidden; padding: 58px 44px 156px; border-bottom: 1.5px solid var(--line); }
.report-blob1, .report-blob2 { position: absolute; border-radius: 50%; pointer-events: none; }
.report-blob1 { width: 480px; height: 480px; top: -170px; right: -90px; animation: floatY 10s ease-in-out infinite; }
.report-blob2 { width: 360px; height: 360px; bottom: -170px; left: 6%; animation: floatY 12s ease-in-out 1.4s infinite; }
.report-hero-inner { position: relative; max-width: 860px; margin: 0 auto; }
.report-brand-row { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; animation: fadeUp 0.5s cubic-bezier(0.22,1,0.36,1) both; }
.report-logo { width: 54px; height: 54px; border-radius: 14px; background: #FFFFFF; border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: var(--shadow-pop-sm); flex: 0 0 auto; }
.report-logo img { width: 100%; height: 100%; object-fit: contain; padding: 7px; }
.report-kicker { font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; }
.report-title { font-weight: 800; font-size: clamp(44px, 6.5vw, 66px); letter-spacing: -0.02em; line-height: 1.02; margin-bottom: 18px; animation: fadeUp 0.55s cubic-bezier(0.22,1,0.36,1) 0.06s both; }
.report-chief { max-width: 640px; font-size: 16.5px; color: var(--sub); line-height: 1.66; animation: fadeUp 0.55s cubic-bezier(0.22,1,0.36,1) 0.12s both; }
.report-chief strong { color: var(--ink); }

.report-shot-wrap { position: relative; z-index: 2; max-width: 860px; margin: -112px auto 0; padding: 0 32px; }
.report-shot-frame { border: 2px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--card); box-shadow: 10px 10px 0 rgba(10,10,10,0.7); transform: rotate(-0.7deg); transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), box-shadow 0.4s; }
.report-shot-frame:hover { transform: rotate(0deg) translateY(-4px); box-shadow: 12px 14px 0 rgba(10,10,10,0.7); }
.report-shot-frame img { width: 100%; height: 380px; object-fit: contain; display: block; background: var(--card); }
.report-thumbs { display: flex; justify-content: center; gap: 8px; padding-top: 14px; }
.report-thumb { width: 88px; height: 54px; border-radius: 9px; overflow: hidden; cursor: pointer; flex: 0 0 auto; opacity: 0.65; transition: opacity 0.2s, border-color 0.2s; border: 1.5px solid var(--line-soft); background: none; padding: 0; }
.report-thumb.active { opacity: 1; }
.report-thumb img { width: 100%; height: 100%; object-fit: cover; }

.report-section { max-width: 860px; margin: 0 auto; padding: 88px 32px 10px; }
.report-part-row { display: flex; align-items: baseline; gap: 16px; margin-bottom: 10px; }
.report-part-label { font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; }
.report-part-rule { height: 1px; flex: 1 1 40px; background: var(--line-soft); }
.report-h2 { font-weight: 800; font-size: 42px; letter-spacing: -0.01em; margin-bottom: 12px; }
.report-p { font-size: 15px; color: var(--sub); line-height: 1.65; max-width: 600px; margin-bottom: 46px; }

.story-rail-wrap { position: relative; padding-left: 34px; }
.story-rail { position: absolute; left: 6px; top: 8px; bottom: 46px; width: 0; opacity: 0.45; }
.story-item { position: relative; margin-bottom: 34px; max-width: 620px; opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.75s cubic-bezier(0.22,1,0.36,1); }
.story-item.alt { margin-left: 56px; }
.story-item.revealed { opacity: 1; transform: none; }
.story-dot { position: absolute; left: -34px; top: 4px; width: 14px; height: 14px; border-radius: 50%; box-sizing: border-box; border: 2px solid var(--line); transition: box-shadow 0.6s ease; }
.story-item.alt .story-dot { left: -90px; }
.story-tag { font-family: 'Space Mono', monospace; font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; margin-bottom: 8px; }
.story-card { background: var(--card); border: 1.5px solid var(--line); border-radius: 18px; padding: 20px 24px; box-shadow: var(--shadow-soft); transform: rotate(-0.5deg); transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s; }
.story-item.alt .story-card { transform: rotate(0.5deg); }
.story-card:hover { transform: rotate(0deg) translate(-2px, -3px); box-shadow: var(--shadow-pop); }
.story-title { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 8px; }
.story-body { font-size: 14px; color: var(--sub); line-height: 1.64; }
.story-chip { display: inline-flex; align-items: center; margin-top: 14px; background: var(--chip); border: 1px solid var(--line-soft); border-radius: 999px; padding: 4px 12px; font-family: 'Space Mono', monospace; font-size: 10px; font-weight: 700; letter-spacing: 0.04em; color: var(--faint); }

.report-quote-band { margin: 54px 0; background: var(--inverse-bg); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); padding: 60px 44px; }
.report-quote { max-width: 860px; margin: 0 auto; opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.75s cubic-bezier(0.22,1,0.36,1); }
.report-quote.revealed { opacity: 1; transform: none; }
.quote-eyebrow { font-family: 'Space Mono', monospace; font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; margin-bottom: 16px; }
.quote-text { font-weight: 800; font-size: clamp(26px, 4vw, 36px); letter-spacing: -0.01em; line-height: 1.3; color: var(--inverse-ink); max-width: 780px; }
.quote-foot { font-size: 13.5px; color: var(--inverse-sub); margin-top: 16px; }

.report-loop { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.75s cubic-bezier(0.22,1,0.36,1); }
.report-loop.revealed { opacity: 1; transform: none; }
.loop-stage { flex: 0 0 auto; padding: 9px 17px; border-radius: 999px; border: 2px solid var(--line); font-family: 'Space Mono', monospace; font-size: 11.5px; font-weight: 700; letter-spacing: 0.03em; background: var(--chip); color: var(--sub); transform: scale(1); transition: background 0.4s, color 0.4s, transform 0.45s cubic-bezier(0.22,1,0.36,1), box-shadow 0.4s; }
.loop-stage.active { color: var(--on-primary); transform: scale(1.08); box-shadow: var(--shadow-pop-sm); }
.loop-arrow { color: var(--faint); font-size: 16px; flex: 0 0 auto; }
.loop-repeat { flex: 0 0 auto; display: flex; align-items: center; gap: 7px; font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 700; }
.loop-repeat .spin-icon { font-size: 16px; display: inline-block; animation: spin 3.2s linear infinite; }

.process-list { display: flex; flex-direction: column; gap: 20px; margin-top: 40px; }
.process-item { max-width: 620px; opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.75s cubic-bezier(0.22,1,0.36,1); }
.process-item.alt { margin-left: 0; }
.process-item:not(.alt) { margin-left: 56px; }
.process-item.revealed { opacity: 1; transform: none; }
.process-card { background: var(--card); border: 1.5px solid var(--line); border-radius: 18px; padding: 20px 24px; box-shadow: var(--shadow-soft); transform: rotate(0.5deg); transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s; }
.process-item.alt .process-card { transform: rotate(-0.5deg); }
.process-card:hover { transform: rotate(0deg) translate(-2px, -3px); box-shadow: var(--shadow-pop); }
.process-tag { font-family: 'Space Mono', monospace; font-size: 10px; font-weight: 700; letter-spacing: 0.14em; margin-bottom: 8px; }

.report-footer { max-width: 860px; margin: 0 auto; padding: 26px 32px 96px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.report-open-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--line); color: var(--on-primary); font-size: 14px; font-weight: 700; box-shadow: var(--shadow-pop-sm); transition: transform 0.25s, box-shadow 0.25s; }
.report-open-btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-pop); opacity: 1; }
.report-back-btn { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer; transition: background 0.2s; }
.report-back-btn:hover { background: var(--chip); }
.report-signoff { font-family: 'Space Mono', monospace; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--faint); }

/* ============ RESPONSIVE (mobile only, <=640px — desktop styles above are untouched) ============ */
@media (max-width: 640px) {
  html, body { height: auto; }
  #chart-shell { height: auto; overflow: visible; }
  #chart { height: auto; min-height: 0; transform: none !important; filter: none !important; }

  .topbar { flex-wrap: wrap; gap: 8px; padding: 10px 14px; }
  .chart-chip, .live-pill { display: none; }
  .topbar .spacer { display: none; }
  .resume-btn { margin-left: auto; }

  #summary-banner { padding: 14px 16px; gap: 12px; }
  .summary-eyebrow { display: none; }
  .headshot-ring img { width: 58px; height: 58px; }
  .summary-name { font-size: 24px; }
  .summary-bio { font-size: 15px; }
  .summary-stats { gap: 8px; }
  .stat-card { min-width: 88px; padding: 6px 10px; }

  #ticker-bar { margin: 10px 12px 0; padding: 7px 10px 7px 7px; }
  .ticker-cta { font-size: 10.5px; padding: 6px 12px; }

  #body-row { flex-direction: column; padding: 12px 12px 16px; overflow: visible; min-height: 0; }
  #left-col, #left-col.narrow, #right-col, #right-col.wide {
    flex: 1 1 auto; flex-basis: auto; width: 100%; min-width: 0; overflow: visible;
  }

  .project-card { padding: 18px 18px; }
  .project-logo { width: 60px; height: 60px; border-radius: 14px; }
  .project-title { font-size: 28px; margin-bottom: 6px; }
  .project-desc { font-size: 14.5px; }
  .project-thumb { display: none; }

  #overlay.expanded { top: 0 !important; left: 0 !important; width: 100vw !important; height: 100vh !important; border-radius: 0 !important; }
  .panel-body { padding: 20px 18px 32px; gap: 24px; }
  .panel-headline { font-size: 26px; }
  .vitals-card { padding: 16px; }

  .skills-panel-wrap { padding: 18px 14px 32px; }
  .skills-headline { font-size: 26px; }
  .pharmacist-note { padding: 12px 14px; gap: 10px; }
  .shelves { padding: 20px 14px 10px; }
  .manifest-label { padding: 18px 16px 0; }
  .manifest-divider { margin: 14px 16px 0; }
  .potency-stamp { width: 72px; height: 72px; top: 10px; right: 12px; }

  .care-panel { padding: 30px 18px 40px; }
  .care-headline { font-size: 26px; }

  .report-hero { padding: 40px 18px 110px; }
  .report-title { font-size: 34px; }
  .report-shot-wrap { padding: 0 16px; margin-top: -84px; }
  .report-shot-frame img { height: 200px; }
  .report-section { padding: 52px 16px 10px; }
  .report-h2 { font-size: 26px; }
  .story-rail-wrap { padding-left: 20px; }
  .story-item, .story-item.alt { margin-left: 0 !important; max-width: none; }
  .story-item .story-dot, .story-item.alt .story-dot { left: -20px; }
  .process-item, .process-item.alt { margin-left: 0 !important; max-width: none; }
  .report-quote-band { padding: 36px 18px; }
  .quote-text { font-size: 24px; }

  .login-h1 { font-size: 32px; }
  #login-card { padding: 30px 24px 24px; }
}
