/* Shared visual theme. Bootstrap 5.3.8 is vendored locally; no remote assets. */
:root {
  --app-background:#f2f5fc;
  --app-text:#1d2c46;
  --app-border:#dce4f1;
  --muted:#52627a;
  --surface-shadow:0 8px 24px #2139600a,0 2px 4px #21396005;
  --bs-primary:#a83c02;
  --bs-primary-rgb:168,60,2;
}
body {background:radial-gradient(ellipse at 100% 0,#e5eaff 0,transparent 45%),var(--app-background);color:var(--app-text)}
h1 {font-size:clamp(1.75rem,2.7vw,2.25rem);font-weight:750;letter-spacing:-.04em}
h2,h3 {color:#213451}
.sidebar {background:linear-gradient(165deg,#172c4a,#102039 75%);border-right:1px solid #243a59;box-shadow:6px 0 30px #1224400c;color:#e3ecfc}
.sidebar .brand {color:#fff}
.sidebar .brand img {background:#fff;padding:8px 10px;border-radius:10px;box-sizing:content-box;max-width:calc(100% - 20px)}
.sidebar .brand-sub {color:#b8c8df}
.sidebar .nav-label {color:#a8bddb;background:transparent;font-size:11px;text-transform:uppercase;letter-spacing:.1em;border-top:1px solid #ffffff12;border-radius:0;padding-top:14px}
.sidebar .nav-item {color:#d1def1;border:1px solid transparent;border-radius:11px;font-size:14px;transition:background .18s,border-color .18s}
.sidebar .nav-item>span:first-child {color:#93add0}
.sidebar .nav-item:hover {background:#ffffff0d;color:#fff;border-color:#ffffff15}
.sidebar .nav-item.active {color:#fff;background:linear-gradient(120deg,#a83c02,#c95110);border-color:#ee8849;box-shadow:0 3px 0 #71300f,0 6px 16px #050f2440}
.sidebar .nav-item.active>span:first-child {color:#fff}
.sidebar .environment {background:#ffffff06;border-color:#ffffff20;color:#e0eafa;border-radius:12px}
.sidebar .environment small,.sidebar .user-block small {color:#acbed8}
.sidebar .logout {color:#c8d6eb}
.avatar {background:linear-gradient(145deg,#ffeedb,#ffd7ba);color:#803308;border:2px solid #fff;box-shadow:0 3px 8px #182c4a15}
.status-dot {background:#56d6ab;box-shadow:0 0 0 3px #56d6ab18}
.topbar {background:#ffffffed;border-bottom-color:#dce4f1;color:#405573}
.topbar>span {font-weight:600}
.safety-bar {background:#fff8eb;color:#775322}
.page-heading {padding:22px 24px;background:linear-gradient(115deg,#fff 35%,#edf1ff 80%,#e3f5f3);border:1px solid #fff;border-radius:18px;box-shadow:var(--surface-shadow);position:relative;border-left:4px solid #e66d28}
.page-heading p {color:#52627a;max-width:780px}
.eyebrow {color:#a83c02;font-weight:750}
.panel,.trial-card,.case-card,.login-card {border-color:var(--app-border);border-radius:16px;box-shadow:var(--surface-shadow)}
.panel-heading {background:linear-gradient(110deg,#f8faff,#f3f7fc);border-bottom-color:var(--app-border)}
.panel-heading h2 {font-weight:700}
.dashboard-filters {border-top:3px solid #809bc9;overflow:visible}
.metrics-grid {gap:18px}
.metric {--metric-color:#325bb8;--metric-bg:#edf3ff;position:relative;isolation:isolate;overflow:hidden;min-height:140px;padding:20px;border:1px solid #fff;border-top:4px solid var(--metric-color);border-radius:16px;background:linear-gradient(125deg,#fff,var(--metric-bg));box-shadow:0 5px 0 color-mix(in srgb,var(--metric-color) 22%,#e6ecf5),0 12px 24px #243d6410}
.metric:nth-child(4n+2) {--metric-color:#147a67;--metric-bg:#e5f7ef}
.metric:nth-child(4n+3) {--metric-color:#8350ad;--metric-bg:#f1e8ff}
.metric:nth-child(4n+4) {--metric-color:#a65e0a;--metric-bg:#fff0d5}
.metric::after {content:"";position:absolute;z-index:-1;width:66px;height:66px;right:15px;bottom:10px;border-radius:18px;transform:rotate(-17deg) skewY(7deg);background:linear-gradient(135deg,#fff9,color-mix(in srgb,var(--metric-color) 23%,transparent));border:1px solid #fff;box-shadow:6px 7px 0 color-mix(in srgb,var(--metric-color) 12%,transparent),12px 14px 0 color-mix(in srgb,var(--metric-color) 6%,transparent)}
.metric>div {color:#344763;position:relative;font-size:15px}
.metric strong {color:var(--metric-color);font-size:40px;line-height:1.4;font-weight:750}
.btn {border-radius:11px;font-weight:650;box-shadow:0 3px 0 #c0ccdd,0 5px 10px #213b5e0c;transition:transform .16s,box-shadow .16s,background-color .16s;position:relative}
.btn-primary {--bs-btn-bg:#a83c02;--bs-btn-border-color:#a83c02;--bs-btn-hover-bg:#903300;--bs-btn-hover-border-color:#903300;--bs-btn-active-bg:#803000;--bs-btn-active-border-color:#803000;background-image:linear-gradient(#ffffff15,transparent);box-shadow:0 4px 0 #722801,0 7px 16px #a83c0225}
.btn-success {box-shadow:0 4px 0 #105332,0 7px 16px #19875420}
.btn-danger {box-shadow:0 4px 0 #912331,0 7px 16px #dc354520}
.btn-outline-primary,.btn-outline-secondary {background-color:#fff}
.btn-link {box-shadow:none}
@media(hover:hover) and (prefers-reduced-motion:no-preference) {
  .btn:not(:disabled):not(.disabled):hover {transform:translateY(-2px)}
  a.metric:hover,.trial-card:hover {border-color:#a9bbd8;box-shadow:0 6px 0 #d6e1ef,0 14px 28px #243d6415}
}
.btn:not(:disabled):not(.disabled):active {transform:translateY(2px);box-shadow:0 1px 0 #95a5bb}
.btn:disabled,.btn.disabled {box-shadow:none;transform:none}
a:focus-visible,button:focus-visible,summary:focus-visible,.btn:focus-visible {outline:3px solid #377de0;outline-offset:4px}
.form-control,.form-select,input:not([type=checkbox]):not([type=radio]):not([type=hidden]),textarea {border-color:#b4c3d7;border-radius:10px;box-shadow:inset 0 2px 3px #23416405}
.form-control:focus,.form-select:focus {border-color:#5679c3;box-shadow:0 0 0 4px #5679c320}
th {background:#eef3fb;color:#405675;font-size:13px}
td {border-color:#e9eef6}
tbody tr:nth-child(even) {background:#f9fbff}
tbody tr:hover {background:#f0f5ff}
.tabs {padding:8px;background:#e8eef8;border-radius:13px;border-bottom:0}
.tabs a {padding:10px 16px;border-radius:9px;border-bottom:0;color:#405573;font-weight:600}
.tabs a.active,.tabs a.selected {background:#fff;color:#a83c02;box-shadow:0 3px 8px #1c355918}
.status-badge,.stage-chip,.tag {border-radius:8px}
.kanban-column {border-radius:16px;box-shadow:var(--surface-shadow)}
.case-card {border:1px solid #ffffff;box-shadow:0 4px 0 #2039570b,0 8px 16px #20395708}
.trial-card {border-top:4px solid #5a79bd}
.trial-card:nth-child(3n+2) {border-top-color:#329882}
.trial-card:nth-child(3n+3) {border-top-color:#9670c6}
.patient-avatar,.attention-icon {border-radius:11px;box-shadow:inset 0 1px 0 #fff,0 3px 0 #d7e1ef;background:linear-gradient(145deg,#edf4ff,#dce8ff);color:#365986}
.next-step-panel {box-shadow:var(--surface-shadow)}
.alert {border-radius:12px}
.login-layout {gap:32px}
.login-story {position:relative;overflow:hidden;border-radius:24px;background:linear-gradient(145deg,#e7edff,#f0f5ff 50%,#dcf3ed);border:1px solid #fff;box-shadow:var(--surface-shadow)}
.login-story h1 {font-size:clamp(2rem,3.3vw,3.25rem);line-height:1.12;max-width:620px;color:#203a61}
.login-story p {color:#435a78}
.login-flow {gap:16px;position:relative}
.login-flow span {background:linear-gradient(135deg,#fff,#e2eaff);border:1px solid #fff;border-radius:14px;padding:18px;color:#365a93;box-shadow:0 6px 0 #c6d5ee,0 12px 22px #334f7c10;transform:rotate(-3deg)}
.login-flow span:nth-child(2) {background:linear-gradient(135deg,#fff,#dbf3ea);color:#176958;box-shadow:0 6px 0 #bbdfd3,0 12px 22px #334f7c10;transform:rotate(2deg)}
.login-flow span:nth-child(3) {background:linear-gradient(135deg,#fff,#efe1fb);color:#774795;box-shadow:0 6px 0 #d6c3e7,0 12px 22px #334f7c10;transform:rotate(-2deg)}
.login-card {border-top:4px solid #d96825;background:#fff}
.login-card h2 {font-size:26px;font-weight:750;margin-top:20px}
footer {color:#52627a;background:#ffffff60}
@media(max-width:680px) {
  .page-heading {padding:18px;border-radius:14px}
  .sidebar .brand img {max-width:28%;padding:6px 8px}
  .sidebar .nav-label {margin-top:6px}
  .mobile-nav-toggle {background:#253e60;color:#fff;border-color:#496185;box-shadow:0 3px 0 #0b192e}
  .metric {padding:14px;min-height:126px}
  .metric strong {font-size:32px}
  .metric::after {width:44px;height:44px;right:10px;bottom:14px;border-radius:12px}
  .metrics-grid {gap:14px}
  .login-layout {gap:22px}
  .login-story,.login-card {border-radius:16px}
  .login-flow span {padding:14px}
  .tabs a {padding:10px 12px}
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {animation:none!important;transition:none!important;scroll-behavior:auto!important}
  .btn:not(:disabled):not(.disabled):active {transform:none}
}
.workflow-assistant-button {position:fixed;right:24px;bottom:24px;z-index:30;display:grid;place-items:center;width:52px;height:52px;border:2px solid #ffbd8b;border-radius:17px;color:#fff;background:linear-gradient(145deg,#e96c1e,#ae3c04);box-shadow:0 4px 0 #7e2b06,0 8px 24px #a83c0230;transition:transform .16s}
.workflow-assistant-button:hover {color:#fff;transform:translateY(-2px)}
.workflow-assistant-button svg {width:30px;height:30px}
.content {padding-bottom:94px}
.guide-hero {display:flex;align-items:center;justify-content:space-between;gap:24px;padding:32px;background:linear-gradient(120deg,#172e52,#314e7a);border-radius:22px;color:#fff;box-shadow:0 6px 0 #c8d5e9;margin-bottom:28px;overflow:hidden}
.guide-hero .eyebrow {color:#ffbb85}.guide-hero h1 {color:#fff;margin-bottom:12px}
.guide-hero p {color:#dce7f8;max-width:530px;margin-bottom:18px}
.guide-source {display:inline-block;padding:6px 12px;background:#ffffff13;border:1px solid #ffffff25;border-radius:20px;font-size:12px;color:#e4edfb}
.guide-robot {display:grid;place-items:center;flex-shrink:0;width:108px;height:108px;border-radius:30px;transform:rotate(-8deg);background:linear-gradient(140deg,#ffbd79,#e36a22);color:#fff;box-shadow:7px 9px 0 #0c213f60,inset 0 2px 0 #ffe1bb}
.guide-robot svg {width:68px;height:68px}
.guide-stats {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:30px}
.guide-stats>div {display:flex;gap:16px;align-items:center;padding:20px;border-radius:15px;background:#e9eefc;border:1px solid #ccd8f0;color:#315696}
.guide-stats>div:nth-child(2) {background:#fff0df;border-color:#eed0aa;color:#985016}
.guide-stats>div:nth-child(3) {background:#e7f5ef;border-color:#bfdfd0;color:#226953}
.guide-stats strong {font-size:32px;line-height:1;font-weight:750}.guide-stats span {font-size:14px;font-weight:600}
.guide-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:start}
.guide-card {--guide-accent:#37689f;--guide-tint:#edf4fd;padding:24px;background:white;border:1px solid #dce4f1;border-top:4px solid var(--guide-accent);border-radius:18px;box-shadow:var(--surface-shadow);min-width:0}
.guide-priority {--guide-accent:#a85519;--guide-tint:#fff3e8}.guide-followup {--guide-accent:#77539e;--guide-tint:#f3edfb}
.guide-card-meta {display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;color:#52627a;margin-bottom:18px}
.guide-priority-label {display:inline-block;border-radius:8px;padding:5px 9px;background:var(--guide-tint);color:var(--guide-accent);font-size:12px;font-weight:700}
.guide-card h2 {font-size:22px;font-weight:750;margin-bottom:10px}.guide-impact {font-size:15px;color:#52627a;margin-bottom:20px}
.guide-remedy {background:var(--guide-tint);padding:16px;border-radius:12px;margin-bottom:18px}
.guide-remedy h3 {color:var(--guide-accent);font-size:12px;text-transform:uppercase;letter-spacing:.06em;margin-bottom:7px}
.guide-remedy p {font-size:15px;margin:0;color:#2b405d}
.guide-owner {display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;padding:0 0 18px;font-size:14px}.guide-owner>span {color:#52627a}
.guide-cases {border-top:1px solid #e1e8f2;padding-top:16px}.guide-cases summary {color:var(--guide-accent);font-size:14px;font-weight:650}
.guide-cases ul {list-style:none;padding:0;margin:14px 0 0}.guide-cases li {display:flex;gap:12px;align-items:center;justify-content:space-between;border-top:1px solid #edf1f8;padding:14px 0;flex-wrap:wrap}
.guide-cases li>div {min-width:0;flex:1 1 180px}.guide-cases li small {display:block;color:#52627a;font-size:12px;margin-top:3px}.guide-cases li a {overflow-wrap:anywhere}
.guide-sponsor {max-width:720px}.guide-sponsor h2 {margin-top:18px}
@media(max-width:950px) {.guide-grid {grid-template-columns:minmax(0,1fr)}.guide-stats>div {flex-direction:column;align-items:flex-start}}
@media(max-width:680px) {
  .workflow-assistant-button {right:16px;bottom:16px;width:48px;height:48px}
  .guide-hero {padding:22px;gap:14px}.guide-robot {width:58px;height:58px;border-radius:18px}.guide-robot svg {width:40px;height:40px}
  .guide-hero h1 {font-size:27px}.guide-hero p {font-size:14px}.guide-source {font-size:11px}
  .guide-stats {gap:8px}.guide-stats>div {padding:12px;gap:10px}.guide-stats span {font-size:12px}.guide-stats strong {font-size:27px}
  .guide-card {padding:20px}.guide-card h2 {font-size:20px}
}
/* Compact workflow guide: the same stage order as the screening pipeline. */
.compact-guide-heading {display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.compact-guide-heading h1 {font-size:28px;margin-bottom:4px}.compact-guide-heading p {font-size:14px;color:#52627a;margin:0}.compact-guide-heading p span {font-size:12px}
.status-all {--flag-color:#36567f;--flag-bg:#edf2fa;--flag-border:#c6d3e5}
.status-blocked {--flag-color:#a12b40;--flag-bg:#ffedf0;--flag-border:#edbdc7}
.status-fix {--flag-color:#8840a0;--flag-bg:#f7edfc;--flag-border:#dec2e9}
.status-action {--flag-color:#9c470c;--flag-bg:#fff0e2;--flag-border:#edc8a6}
.status-warning {--flag-color:#7d5e08;--flag-bg:#fff8db;--flag-border:#e5d593}
.status-ready {--flag-color:#176e53;--flag-bg:#e7f7ef;--flag-border:#b2dcc9}
.status-followup {--flag-color:#3262a0;--flag-bg:#edf4ff;--flag-border:#bed0ec}
.guide-status-filters {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}
.guide-status-filter {display:flex;flex-direction:column;justify-content:center;gap:5px;padding:12px 14px;border:1px solid var(--flag-border);border-radius:12px;background:var(--flag-bg);color:var(--flag-color);box-shadow:0 3px 0 var(--flag-border);min-width:0}
.guide-status-filter strong {font-size:25px;line-height:1.1}.guide-status-filter span {font-size:12px;font-weight:650;line-height:1.35}
.guide-status-filter:hover {color:var(--flag-color);text-decoration:none;outline:2px solid var(--flag-border)}
.guide-status-filter.is-selected {outline:2px solid var(--flag-color);outline-offset:2px}
.guide-filter-note {font-size:12px;color:#52627a;margin:15px 0 18px}
.guide-stage-list {display:grid;gap:14px}.guide-stage {min-width:0;background:#fff;border:1px solid #dce4f1;border-radius:14px;overflow:hidden;box-shadow:0 3px 12px #21396005}
.guide-stage-header {display:flex;align-items:center;gap:10px;background:var(--stage-bg);border-left:4px solid var(--stage-color);padding:12px 16px;color:var(--stage-color)}
.guide-stage-header h2 {margin:0;font-size:17px;color:inherit}.guide-stage-number {font-size:12px;font-weight:750;border-radius:6px;padding:4px 6px;background:#ffffffb0}
.guide-stage-total {margin-left:auto;font-size:12px;font-weight:600;white-space:nowrap}
.guide-action-row>summary {display:grid;grid-template-columns:130px minmax(0,1fr) 140px 75px;gap:14px;align-items:center;padding:14px 18px;border-top:1px solid #e9eef6;list-style:none}
.guide-action-row>summary::before,.guide-action-row>summary::-webkit-details-marker {display:none}
.guide-action-row>summary:hover,.guide-action-row[open]>summary {background:#f8faff}
.guide-flag {display:inline-block;width:fit-content;padding:5px 9px;border-radius:7px;background:var(--flag-bg);color:var(--flag-color);border:1px solid var(--flag-border);font-size:12px;font-weight:650;line-height:1.4}
.guide-action-copy {min-width:0}.guide-action-copy strong {display:block;font-size:14px;color:#263d5a}.guide-action-copy>span {display:block;font-size:13px;color:#52627a;margin-top:3px;line-height:1.45}
.guide-action-owner {font-size:12px;font-weight:650;overflow-wrap:anywhere}.guide-action-owner small {display:block;font-size:11px;font-weight:400;color:#52627a}
.guide-action-count {font-size:12px;white-space:nowrap;text-align:right;color:#405675}.guide-action-count>span {display:inline-block;margin-left:5px}.guide-action-row[open] .guide-action-count>span {transform:rotate(180deg)}
.guide-stage-empty {padding:12px 18px;margin:0;color:#52627a;font-size:13px}
.guide-action-expanded {padding:0 18px 14px;background:#f8faff}.guide-action-expanded>p {font-size:13px;color:#52627a;padding-top:12px;border-top:1px solid #e1e8f2;margin-bottom:8px}
.guide-action-expanded ul {list-style:none;padding:0;margin:0}.guide-action-expanded li {display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;border-top:1px solid #e4eaf3;padding:10px 0;font-size:14px}
.guide-action-expanded li>div {min-width:0;flex:1 1 180px}.guide-action-expanded small {display:block;color:#52627a;font-size:12px;overflow-wrap:anywhere}
@media(max-width:1200px) {.guide-status-filters {grid-template-columns:repeat(4,minmax(0,1fr))}.guide-action-row>summary {grid-template-columns:110px minmax(0,1fr) 110px}.guide-action-count {grid-column:3}}
@media(max-width:680px) {
 .compact-guide-heading {flex-wrap:wrap}.compact-guide-heading h1 {font-size:25px}
 .guide-status-filters {grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.guide-status-filter {padding:10px}.guide-status-filter strong {font-size:22px}
 .guide-stage-header {padding:12px 10px;gap:7px}.guide-stage-header h2 {font-size:15px}
 .guide-action-row>summary {grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:12px}
 .guide-action-copy {grid-row:2;grid-column:1/-1}.guide-action-owner {grid-row:3;grid-column:1}.guide-action-count {grid-row:3;grid-column:2}
 .guide-action-expanded {padding:0 12px 12px}
}
/* Pipeline stages use the page scroll, never a nested patient scrollbar. */
.pipeline-board {display:grid;gap:24px}
.pipeline-stage {background:var(--stage-bg);border:1px solid color-mix(in srgb,var(--stage-color) 25%,white);border-top:4px solid var(--stage-color);border-radius:18px;box-shadow:var(--surface-shadow);scroll-margin-top:24px;min-width:0}
.pipeline-stage-heading {display:flex;align-items:center;gap:14px;padding:20px;list-style:none}
.pipeline-stage-heading::before {display:none}
.pipeline-stage-heading::-webkit-details-marker {display:none}
.pipeline-stage-heading h2 {margin:0;color:var(--stage-color);font-size:21px}
.pipeline-stage-marker {display:grid;place-items:center;width:38px;height:38px;flex-shrink:0;border-radius:12px;background:#fff;color:var(--stage-color);font-size:14px;font-weight:750;box-shadow:0 3px 0 #20395712}
.pipeline-stage-count {background:#fff;border-radius:20px;padding:4px 12px;color:var(--stage-color);font-size:14px;white-space:nowrap}
.pipeline-stage-toggle {margin-left:auto;color:var(--stage-color);font-size:24px;line-height:1}
.pipeline-stage-toggle::after {content:'+'}
.pipeline-stage[open]>.pipeline-stage-heading .pipeline-stage-toggle::after {content:'−'}
.pipeline-patients {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:18px;padding:0 20px 20px;align-items:stretch}
.pipeline-patient {display:flex;flex-direction:column;margin:0;padding:20px;min-width:0}
.pipeline-patient-heading {display:flex;align-items:center;gap:12px;margin-bottom:18px}
.pipeline-patient-heading>div {min-width:0}
.pipeline-patient-heading h3 {margin:0 0 4px;font-size:20px;overflow-wrap:anywhere}
.pipeline-patient .protocol {font-size:13px;color:#52627a;overflow-wrap:anywhere}
.pipeline-patient-details {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 16px;padding:14px;background:#f5f8fd;border-radius:12px}
.pipeline-patient-details dt {font-size:12px;font-weight:500;color:#52627a}
.pipeline-patient-details dd {font-size:14px;font-weight:600;color:#263d5a;margin:3px 0 0;overflow-wrap:anywhere}
.pipeline-screening {display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:14px}
.pipeline-screening .stale-text {flex-basis:100%;margin:0}
.pipeline-patient .case-data {gap:12px;flex-wrap:wrap;color:#52627a}
.pipeline-patient .next-action {flex:1;border:0;padding-bottom:16px}
.pipeline-patient .next-action p {margin-bottom:0}
.pipeline-patient .case-owner {margin:0;border-top:1px solid #e5ebf4;padding-top:14px;font-size:14px}
.pipeline-patient .case-owner small {display:block;color:#52627a;font-size:12px}
.pipeline-patient-links {display:flex;align-items:center;flex-wrap:wrap;gap:16px;margin-top:14px;font-size:14px}
.pipeline-empty {grid-column:1/-1;padding:24px;border:1px dashed var(--stage-color);border-radius:12px;text-align:center;color:var(--stage-color)}
.pipeline-empty p {margin:6px 0 0;font-size:14px}
.pipeline-more {grid-column:1/-1;min-width:0}
.pipeline-more>summary {padding:14px 18px;background:#ffffffb0;border:1px solid color-mix(in srgb,var(--stage-color) 25%,white);border-radius:12px;color:var(--stage-color);font-size:15px;font-weight:650}
.pipeline-more>.pipeline-patients {padding:18px 0 0}
.pipeline-patient .case-owner>span:last-child {margin-left:0}
@media(max-width:680px) {
  .pipeline-stage-heading {gap:10px;padding:16px;flex-wrap:wrap}
  .pipeline-stage-heading h2 {font-size:18px;flex:1 1 140px}
  .pipeline-stage-count {font-size:12px;padding:4px 8px}
  .pipeline-patients {padding:0 12px 12px;gap:14px}
  .pipeline-patient {padding:16px}
}
@media print {
  .workflow-assistant-button,.guide-robot {display:none}
  .pipeline-stage,.pipeline-patient {box-shadow:none;break-inside:avoid}
  body,.page-heading,.panel,.metric,.trial-card,.case-card,th,td {background:#fff!important;color:#111!important;box-shadow:none!important}
  .metric::after {display:none}
  .btn {box-shadow:none;transform:none}
}
