/* Black Horse: a white, high-contrast clinical workspace. */
body.workframe{
 --fresh-ink:#132723;--fresh-muted:#4a605b;--fresh-green:#11634f;--fresh-deep:#0c4638;--fresh-mint:#e8f6ef;
 --fresh-line:#dce7e2;--fresh-canvas:#f5f8f8;--fresh-blue:#edf4fc;--fresh-amber:#fff5e7;
 --fresh-shadow:0 2px 5px #193d3110,0 12px 30px #203f3808;
 --ws-paper:var(--fresh-canvas);--ws-ink:var(--fresh-ink);--ws-muted:var(--fresh-muted);--ws-line:var(--fresh-line);--ws-green:var(--fresh-green);
 font-family:Inter,Arial,sans-serif;color:var(--fresh-ink);background:var(--fresh-canvas);
}
body.workframe .shell>.ws-toolbar{min-height:60px;height:62px;background:#fff}
body.workframe #workspace-sidebar{background:#fff;box-shadow:3px 0 12px #1d493306}
body.workframe .ws-group>p{font-size:.69rem;letter-spacing:.085em;color:#4d655e}
body.workframe #workspace-sidebar nav a.ws-link{min-height:43px;color:#304b43;font-size:.86rem;margin-bottom:2px}
body.workframe #workspace-sidebar nav a.ws-link.active{background:var(--fresh-mint);color:var(--fresh-deep);box-shadow:inset 3px 0 #168469}
body.workframe .shell>footer{background:#f5f8f8;color:#425f54;border-top:1px solid var(--fresh-line)}
body.workframe button.primary,body.workframe .td-popup-done{background:var(--fresh-green);border-color:var(--fresh-green);color:#fff}
body.workframe :is(button.primary,.td-popup-done):hover{background:var(--fresh-deep)}
body.workframe :is(input,select,textarea,button,a):focus-visible{outline:3px solid #369b82;outline-offset:2px}
body.workframe :is(.td-content,.pt-page,.bh-page){--td-ink:var(--fresh-ink);--td-dark:var(--fresh-ink);--td-muted:var(--fresh-muted);--td-cream:#fff;--td-border:var(--fresh-line);--pt-ink:var(--fresh-ink);--pt-line:var(--fresh-line);--pt-muted:var(--fresh-muted);--pt-serif:Inter,Arial,sans-serif}
body.workframe :is(.td-section-head h2,.pt-board-head h1,.pt-map-intro h2,.pt-map-day>header h3,.pt-profile h2,.pt-subcard h3,.pt-assist h3,.field-stop strong,.td-tomorrow h3){font-family:Inter,Arial,sans-serif;font-weight:750;letter-spacing:-.045em}
body.workframe :is(.td-overline,.pt-overline){color:#3a6d5d;letter-spacing:.09em}

/* Today: retain the original clinic image with a separate white text panel. */
body.workframe .td-hero{
 --image-w:47%;display:flex;position:relative;isolation:isolate;
 max-width:calc(1530px - 2 * var(--ws-gutter));min-height:278px;
 width:calc(100% - 2 * var(--ws-gutter));margin:18px auto 0;
 border:1px solid var(--fresh-line);border-radius:19px;background:#fff;box-shadow:var(--fresh-shadow)
}
.td-hero .td-photo{inset:0 0 0 auto;width:var(--image-w);object-position:52% 70%;z-index:-2}
.td-hero .td-hero-shade{inset:0 0 0 auto;width:var(--image-w);z-index:-1;background:linear-gradient(0deg,#0b292564,transparent 32%);border-left:1px solid var(--fresh-line)}
.td-hero .td-hero-content{width:calc(100% - var(--image-w));padding:clamp(16px,2.7vw,34px)}
.td-hero .hm-campus-brand{color:var(--fresh-ink);gap:9px}
.td-hero .hm-campus-logo{background:#fff;border:1px solid var(--fresh-line);box-shadow:0 2px 6px #25403613}
.td-hero .hm-campus-brand strong{color:var(--fresh-ink);font-size:.94rem;letter-spacing:-.025em}
.td-hero .hm-campus-brand small{color:#476459;font-size:.68rem;letter-spacing:.08em}
body.workframe.home-wide .td-hero h1{font:780 clamp(32px,4.4vw,66px)/1.01 Inter,Arial,sans-serif;letter-spacing:-.073em;color:var(--fresh-ink);margin:12px 0 7px;text-shadow:none}
.td-hero .td-hero-content>p{color:var(--fresh-muted);font-size:.98rem;margin-bottom:15px;max-width:43ch}
.td-hero .td-primary{background:var(--fresh-green);border:1px solid var(--fresh-green);color:#fff;min-height:43px}
.td-hero .td-primary:hover,.td-hero .td-primary:focus-visible{background:var(--fresh-deep);color:#fff}
.td-hero .td-secondary{color:var(--fresh-deep);background:#fff;border-color:#c9ddd2;min-height:43px}
.td-hero .td-secondary:hover,.td-hero .td-secondary:focus-visible{background:#e9f5ef;color:var(--fresh-deep)}
.td-hero .td-campus-label{right:11px;bottom:10px;background:#fffef5;border-color:#ecf3ef;color:#1c3b32;box-shadow:0 2px 7px #18362935}
.td-hero .td-campus-label span{border-left-color:#99b4a6}
.td-content .td-dayline{margin:3px 0 12px}
.td-content .td-brief-controls,.td-content .td-panel{background:#fff;border-color:var(--fresh-line);box-shadow:var(--fresh-shadow)}
.td-content .td-brief-controls button[aria-pressed=true]{background:var(--fresh-deep)}
.td-content .td-highlight-card{background:#fff;border-color:#c5ded4;border-left-color:#168469;box-shadow:var(--fresh-shadow)}
.td-content .td-highlight-note{border-color:#d3e0f1;border-left-color:#427db3}
.td-content .td-highlight-note .td-overline{color:#2e6295}
.td-content .td-highlight-card h2{font:760 clamp(22px,2.25vw,35px)/1.05 Inter,Arial,sans-serif;letter-spacing:-.045em}
.td-content .td-section-head{padding:14px 14px 10px}
.td-content .td-note-row,.td-content .td-queue-row{padding-block:10px}
body.workframe :is(.td-button,.field-directions-small){border-color:#cfe0d7;color:#154e3a;background:#f5faf7}
body.workframe .td-button:hover{background:#e7f4ed}
.td-content .td-chat{color:#183c32;background:#fff;box-shadow:var(--fresh-shadow)}
.td-content .td-tomorrow{background:#f2f7fd}

/* Patient workspace and both maps. */
.pt-command .pt-board-head h1{font-size:clamp(34px,4.35vw,60px);line-height:1;letter-spacing:-.065em}
.pt-command :is(.pt-metrics,.pt-tile,.pt-rows,.pt-campus,.pt-assist,.pt-detail-card,.pt-subcard,.pt-visit-map,.field-stops){background:#fff;border-color:var(--fresh-line);box-shadow:var(--fresh-shadow)}
.pt-command :is(.pt-day-switch,.pt-filterbar,.pt-species,.pt-toolbar) button:not([aria-pressed=true]),.pt-command :is(.pt-filterbar,.pt-sort) select{background-color:#fff;border-color:#d2e0d8}
.pt-command :is(.pt-day-switch,.pt-views,.pt-species) button[aria-pressed=true]{background:var(--fresh-deep);border-color:var(--fresh-deep);color:#fff}
.pt-command .pt-search{background:#fff;border-color:#b9d3c6}
.pt-command .pt-visit-map{padding:clamp(10px,2vw,20px)}
.pt-command .pt-map-day{background:#fff;border-color:#d4e2dc}
.pt-command .pt-map-day>header{background:#f6f9fa;border-color:#d4e2dc}
.pt-command :is(.pt-map-key,.pt-map-axis){background:#f3f7f8;color:#253f3a}
.pt-command .pt-map-lane{background:#ebf6f0;color:#245642}
.pt-command .pt-map-lane-surgery{background:#fff1e7;color:#793c22}
.pt-command :is(.pt-map-cell,.pt-map-key,.pt-map-axis,.pt-map-lane){border-color:#d7e5df}
.pt-command .pt-map-cell{background-image:radial-gradient(#dbe9e3 1px,transparent 1px)}
.pt-command .pt-map-marker{background:#fff;border-color:#c6ded3;border-radius:12px;box-shadow:0 2px 5px #2858490b}
.pt-command .pt-map-marker:hover,.pt-command .pt-map-marker:focus-visible{background:#ecf7f0;border-color:#428d72}
.pt-command .pt-map-marker.pt-map-surgery{border-color:#eccdb5;color:#743a22}
.pt-command .pt-map-marker.pt-map-surgery .pt-avatar{background:#fce7da;color:#803f25}
.pt-command :is(.pt-map-name,.pt-tile-top .pt-identity strong,.pt-metrics button strong){font-family:Inter,Arial,sans-serif;font-weight:750;letter-spacing:-.035em}
.pt-command .pt-priority.warning,.bh-visit-surgery{background:#fff0e7;border-color:#eccbb5;color:#7c3c24}
.pt-command .pt-warning,.td-badge.td-warning{background:#fff3df;color:#724614}
.pt-command .pt-detail-card{padding:16px}
.pt-command .pt-assist{background:#f1f8f4}
.field-base,.field-thumb{background:#eff6f4;border-color:#c9dfd6}
.field-brief{background:#f0f8f5;border-color:#cce1d7}
.field-pin{background:#fff;border-color:#639681;color:#17533e}

/* Popups and note tools have the same white visual hierarchy. */
body.workframe :is(.td-quick-brief,.td-quick-note){background:#fff;color:var(--fresh-ink);border-color:#cadfd6;border-radius:18px;box-shadow:0 24px 64px #173a345c}
:is(.td-quick-brief,.td-quick-note)::backdrop{background:#142f2b78;backdrop-filter:blur(2px)}
body.workframe .td-popup-top{background:linear-gradient(120deg,#fff,#f4faf7);color:var(--fresh-ink);border-bottom-color:var(--fresh-line)}
body.workframe .td-popup-top h2{font:780 clamp(28px,4.1vw,45px)/1.03 Inter,Arial,sans-serif;letter-spacing:-.06em;color:var(--fresh-ink)}
body.workframe .td-popup-top p,body.workframe .td-popup-kicker{color:#3f665a}
body.workframe .td-popup-kicker span{background:#e9f5ee;border:1px solid #c8e0d4}
body.workframe .td-popup-close{background:#fff;border-color:#cadecf;color:#245640}
body.workframe .td-popup-close:hover{background:#e8f5ef}
body.workframe .td-pet-initial{background:#e3f3ea;color:#205540;font-family:Inter,Arial,sans-serif}
body.workframe :is(.td-brief-facts>div,.td-brief-columns>section){background:#fff;border-color:var(--fresh-line)}
body.workframe .td-brief-prep{background:#fff6e9;border-color:#f0d9b6;border-left-color:#b27431;color:#5f421b}
body.workframe .td-brief-icon{background:#ffedce}
body.workframe .td-popup-bottom{background:#f7fbf9;border-top-color:var(--fresh-line)}
body.workframe .td-last-visit{background:#eff7fb;border-color:#d5e6f2;color:#1b413b}
body.workframe .td-last-details>div{background:#fff;border-color:#d6e5e9}
body.workframe .pt-voice{background:#f0f9f5;border-color:#c6e1d4}
body.workframe .bh-hero{background:#fff;border:1px solid var(--fresh-line);color:var(--fresh-ink);box-shadow:var(--fresh-shadow)}
body.workframe .bh-hero :is(p,.bh-kicker){color:#396457}
body.workframe .bh-hero .bh-hero-meta{background:#edf7f2;color:var(--fresh-ink);border-color:#d0e5d8}
body.workframe .bh-hero .bh-hero-meta .bh-label{color:#386a58}
body.workframe .bh-hero :is(.primary,.bh-light){background:#fff;color:#18543e;border-color:#bfd9cb}
body.workframe .bh-hero :is(.primary,.bh-light):hover{background:#eaf6ee;color:#123d2b}
body.workframe .bh-tabs{background:#f2f7f7}
body.workframe :is(.bh-callout,.pt-warning){border-color:#eddcbe;color:#684512;background:#fff7e5}
body.workframe .bh-callout.bh-ok{background:#edf8ef;color:#24583d;border-color:#cde3d4}
@media(max-width:900px){
 body.workframe .td-hero{--image-w:40%;min-height:250px}
 .td-hero .td-hero-content{padding:18px 16px}
}
@media(max-width:650px){
 body.workframe .shell>.ws-toolbar{height:56px;min-height:56px}
 body.workframe .td-hero{--image-w:100%;display:block;min-height:0;margin-top:9px}
 .td-hero .td-hero-content{width:100%;padding:14px 13px 126px}
 .td-hero .td-photo,.td-hero .td-hero-shade{inset:auto 0 0;height:115px;width:100%;border-left:0;border-top:1px solid var(--fresh-line)}
 .td-hero .td-photo{object-position:50% 69%}
 .td-hero .td-campus-label{font-size:.60rem;right:6px;bottom:6px}
 body.workframe.home-wide .td-hero h1{font-size:clamp(30px,7.9vw,49px);margin-top:9px}
 .td-hero .td-hero-content>p{font-size:.88rem;margin-bottom:10px}
 .td-hero .td-hero-actions{gap:5px}
 .td-hero .td-hero-actions :is(.td-primary,.td-secondary){font-size:.82rem;min-height:38px}
 .td-hero .td-hero-actions .td-primary{flex-basis:auto;justify-content:center}
}
@media print{body.workframe .td-popup-top,body.workframe .td-popup-bottom{box-shadow:none}}
body.workframe.home-wide .td-hero h1{text-wrap:balance}
