/* Timeline: a bounded, horizontal clinical canvas with source-linked detail objects. */
.time-explorer{--tl-green:#005243;--tl-lime:#d8ec99;--tl-ink:#233f36;--tl-muted:#64776d;outline:none;padding:2px 0 0}
.time-explorer button{color:inherit}
.time-explorer svg{width:20px;height:20px;flex:none}
.tl-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:3px 8px 8px}
.tl-heading{display:flex;align-items:baseline;white-space:nowrap}
.tl-heading h2{font-size:20px;font-weight:600;letter-spacing:-.8px;margin:0;color:var(--tl-ink)}
.tl-tools{display:flex;align-items:center;gap:22px}
.tl-team{display:flex;align-items:center;gap:10px;position:relative}
.tl-team-label{font-size:11px;color:var(--tl-muted)}
.tl-avatar-stack{display:flex;background:#f9faf7;border:1px solid #edf0e8;border-radius:50px;padding:3px 4px}
.tl-avatar{position:relative;border:2px solid #f8faf6;width:33px;height:33px;border-radius:50%;font-family:Arial,sans-serif;font-size:10px;font-weight:600;background:#e4ebdf;color:#355b4a;display:grid;place-items:center;padding:0;transition:transform .18s,background .18s}
.tl-avatar+.tl-avatar{margin-left:-3px}
.tl-avatar.tone-1{background:#d4e4e4;color:#345c61}.tl-avatar.tone-2{background:#e9dfd0;color:#765c46}.tl-avatar.tone-3{background:#e1e0eb;color:#645c7b}
.tl-avatar:hover{transform:translateY(-2px);z-index:3}
.tl-avatar.active{background:var(--tl-green);color:#fff;box-shadow:0 0 0 1px var(--tl-green);z-index:2}
.tl-avatar.tl-team-more{background:#fff;color:#3a5146}.tl-avatar.tl-team-more svg{width:16px}.tl-avatar.tl-team-more.has-selection{background:var(--tl-lime)}
.tl-avatar b{position:absolute;right:-4px;top:-4px;background:var(--tl-green);color:white;font-size:8px;border-radius:50%;width:14px;height:14px;display:grid;place-items:center}
.tl-team-tooltip{position:absolute;top:calc(100% + 9px);left:50%;transform:translateX(-50%);padding:6px 9px;border-radius:9px;background:#173d32;color:#fff;font-size:11px;font-weight:400;white-space:nowrap;box-shadow:0 6px 16px #15322722;opacity:0;visibility:hidden;pointer-events:none;z-index:90;transition:opacity .15s}.tl-avatar:hover .tl-team-tooltip,.tl-avatar:focus-visible .tl-team-tooltip{opacity:1;visibility:visible}
.tl-clear-team{border:0;background:transparent;padding:0;display:grid;place-items:center;width:20px}.tl-clear-team svg{width:13px}
.tl-presets{display:flex;gap:3px;padding:4px;background:#f8faf6;border:1px solid #d5ddd3;border-radius:40px}
.tl-presets button{border:0;border-radius:30px;padding:7px 14px;background:transparent;font-size:12px;font-weight:600;white-space:nowrap;transition:background .2s,color .2s}
.tl-presets button.active{background:var(--tl-green);color:#fff;box-shadow:0 2px 4px #00524320}
.tl-presets button:hover:not(.active){background:#e6eddf}
.tl-filter-bar{position:relative;display:flex;gap:8px;align-items:center;padding:0 0 10px;z-index:8}
.tl-type-pills{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0}
.tl-type,.tl-more{display:flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;height:35px;border:1px solid #dce3d7;border-radius:30px;background:#f9faf7;padding:0 13px;font-size:11px;font-weight:600;transition:background .18s,transform .18s,border-color .18s}
.tl-type svg,.tl-more svg{width:16px;height:16px}
.tl-type small{font-size:10px;line-height:1;color:#718274;font-family:Arial,sans-serif;margin-left:1px}
.tl-type:hover,.tl-more:hover{border-color:#a7b6a1;background:white;transform:translateY(-1px)}
.tl-type.active{background:var(--tl-lime);border-color:var(--tl-lime);color:#284128}.tl-type.active small{color:#4f6549}
.tl-all.active{background:var(--tl-green);color:#fff;border-color:var(--tl-green)}
.tl-more{background:transparent;border-color:#b9c5b4;padding:0 11px;margin-left:auto;flex:none}
.tl-type-popover,.tl-team-popover{position:absolute;top:calc(100% - 2px);right:0;max-width:calc(100vw - 40px);width:540px;background:#fffefb;border:1px solid #d1dcce;border-radius:23px;padding:15px;box-shadow:0 18px 50px #24483625;z-index:25}
.time-explorer [hidden]{display:none!important}
.tl-popover-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;color:var(--tl-ink)}
.tl-popover-title>button{border:0;background:#eff2e9;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;padding:0}.tl-popover-title svg{width:13px;height:13px}
.tl-extra-types{display:flex;flex-wrap:wrap;gap:7px}.tl-extra-types .tl-type{height:34px}
.tl-team-popover{width:330px;right:270px;max-height:480px;overflow:auto}
.tl-professional{display:flex;gap:10px;align-items:center;border:0;border-radius:14px;padding:7px;width:100%;text-align:left;background:transparent;margin-top:3px}
.tl-professional>span:nth-child(2){display:flex;flex:1;flex-direction:column;gap:2px}.tl-professional strong{font-size:12px}.tl-professional small{font-size:10px;color:var(--tl-muted)}.tl-professional.active,.tl-professional:hover{background:#eef4e8}.tl-professional>svg{width:16px}.tl-professional.all{font-size:12px;margin-bottom:6px}
.tl-canvas-panel{position:relative;border-radius:28px;background:radial-gradient(ellipse at 90% 8%,#f1f5df88 0,transparent 48%),linear-gradient(145deg,#e4e8da,#e0e6d9 70%,#dce5d5);border:1px solid #d5decc;box-shadow:inset 0 1px 0 #ffffffb3,0 6px 20px #38594306;overflow:hidden}
.tl-range-caption{display:flex;justify-content:flex-start;align-items:center;gap:28px;padding:12px 22px 0;color:#62715e;font-size:11px;min-height:31px}
.tl-range-caption>[data-range-label]{font-weight:600;letter-spacing:.02em}
.tl-range-caption>[data-group-label]{display:flex;align-items:center;gap:7px;padding:5px 9px;border:1px solid #e1e8e9;border-radius:999px;background:#f3f6f6;color:#647679;font-size:10px;line-height:1;box-shadow:inset 0 1px #fff}
.tl-range-caption>[data-group-label]>i{width:3px;height:3px;border-radius:50%;background:#a9b7b9;flex:none}
.tl-granularity{display:flex;align-items:center;gap:5px;color:#526c6c}.tl-granularity svg{width:13px;height:13px}.tl-event-total{color:#738184}
.tl-scroll{overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#b9c7b1 transparent;margin:0 4px;overscroll-behavior-x:contain}
.tl-plot{position:relative;height:238px;min-width:100%}
.time-explorer svg.tl-wires{position:absolute;inset:0;width:100%;height:238px;overflow:visible}
.tl-axis{stroke:url(#tl-axis-gradient);stroke-width:1.2;fill:none}.tl-time-grid{stroke:#ffffffa3;stroke-width:1}.tl-tick{font-family:Quicksand,Arial,sans-serif;font-size:11px;fill:#546650;font-weight:600}
.tl-branch{fill:none;stroke:#a7b89c;stroke-width:1.05;transition:stroke .2s,stroke-width .2s}.tl-branch.selected{stroke:#005243;stroke-width:1.6}
.tl-junction{fill:#c3ceb9;stroke:#e7ecdf;stroke-width:2}.tl-junction.selected{fill:#005243}
.tl-event{position:absolute;transform:translate(-50%,-50%);border:0;background:transparent;padding:0;width:48px;height:48px;display:grid;place-items:center;z-index:2}
.tl-event-orb{position:relative;display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:#fcfdf8;color:#284333;box-shadow:0 3px 9px #566e3610,inset 0 0 0 1px #ffffffcc;transition:transform .2s,box-shadow .2s,background .2s}
.tl-event-orb>svg{width:23px;height:23px}
.tl-event.blue .tl-event-orb{background:#f6fcfa;color:#3c695e}.tl-event.sand .tl-event-orb{background:#faf9ef;color:#756b40}
.tl-event:hover,.tl-event:focus-visible{z-index:10}.tl-event:hover .tl-event-orb{transform:translateY(-3px);box-shadow:0 7px 16px #38502b25}.tl-event.selected .tl-event-orb{background:var(--tl-green);color:#f5ffe9;box-shadow:0 0 0 5px #f5fae766,0 5px 13px #00524324;transform:scale(1.07)}
.tl-event-count{position:absolute;top:-5px;right:-6px;display:grid;place-items:center;width:20px;height:20px;background:var(--tl-lime);border:2px solid #e2e8d9;color:#244431;font:600 10px Arial,sans-serif;border-radius:50%}
.tl-event-caption{position:absolute;top:50px;left:50%;transform:translateX(-50%);max-width:60px;width:max-content;font-size:9px;line-height:1.1;font-weight:600;color:#63745c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none;opacity:0}
.tl-event.selected .tl-event-caption,.tl-event-caption.show-time{color:var(--tl-green);font-weight:700;opacity:1}
.tl-event-tooltip{position:absolute;bottom:57px;left:50%;transform:translateX(-50%) translateY(5px);min-width:150px;border:1px solid #ffffffab;border-radius:12px;padding:8px 10px;background:#214b3cee;color:#fff;font-size:11px;white-space:nowrap;box-shadow:0 5px 16px #00524322;opacity:0;pointer-events:none;transition:opacity .15s,transform .15s;backdrop-filter:blur(8px)}
.tl-event-tooltip small{display:block;font-size:10px;margin-top:4px;color:#d6e2cf}.tl-event:hover .tl-event-tooltip,.tl-event:focus-visible .tl-event-tooltip{opacity:1;transform:translateX(-50%) translateY(0)}
.tl-event.edge-left .tl-event-tooltip{left:0;transform:translateY(5px)}.tl-event.edge-right .tl-event-tooltip{left:auto;right:0;transform:translateY(5px)}.tl-event.edge-left:hover .tl-event-tooltip,.tl-event.edge-right:hover .tl-event-tooltip,.tl-event.edge-left:focus-visible .tl-event-tooltip,.tl-event.edge-right:focus-visible .tl-event-tooltip{transform:translateY(0)}
.tl-navigator{display:flex;align-items:center;gap:14px;padding:12px 18px 0}
.tl-zoom{display:flex;gap:7px;flex:none}.tl-zoom button,.tl-reset{width:38px;height:38px;border-radius:50%;border:1px solid #ffffff9c;background:#fafcf4;color:#3c5942;display:grid;place-items:center;padding:0;box-shadow:0 2px 3px #4f653008;transition:background .2s,transform .2s}.tl-zoom button:hover:not(:disabled),.tl-reset:hover{background:#fff;transform:translateY(-2px)}.tl-zoom button:disabled{opacity:.4;cursor:default}.tl-zoom svg{width:19px;height:19px}.tl-reset{width:30px;height:30px;flex:none;background:transparent;border-color:#c3ceb9;box-shadow:none}.tl-reset svg{width:14px;height:14px}
.tl-brush-wrap{flex:1;min-width:0;background:#f8fbf1;border:1px solid #ffffffc4;border-radius:50px;height:49px;overflow:visible}
.time-explorer svg.tl-brush{width:100%;height:49px;display:block;color:#315d37;overflow:visible;touch-action:none;user-select:none;-webkit-tap-highlight-color:transparent}
.tl-minimap circle{fill:#b9c7ae}.tl-mini-tick{font-family:Quicksand,Arial,sans-serif;font-size:9px;fill:#6d7f60}
.tl-brush-control .selection{fill:#bada73;fill-opacity:.38;stroke:#97b679;stroke-width:1;shape-rendering:auto}
.tl-brush-control .handle{fill:#fcfff3;stroke:#a5bd8a;stroke-width:1;filter:drop-shadow(0 2px 1px #00524315)}
.tl-brush-control .selection:focus,.tl-brush-control .handle:focus{outline:none;stroke:#397b78;stroke-width:2;filter:drop-shadow(0 0 2px #397b7838)}
.tl-brush-control .selection:focus{fill:#e2f0ee;fill-opacity:.92}
.tl-no-events{position:absolute;top:96px;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:10px;max-width:500px;width:90%;text-align:center;padding:20px;border-radius:25px;background:#f7faeee8;color:#435c3c;backdrop-filter:blur(4px)}
.tl-no-events>svg{width:24px;height:24px}.tl-no-events strong{font-size:16px}.tl-no-events span{font-size:12px;line-height:1.5}.tl-no-events button{border:0;border-bottom:1px solid #78945e;background:transparent;font-size:11px;padding:4px}
.tl-detail-heading{display:flex;align-items:center;justify-content:flex-start;gap:15px;padding:12px 7px 8px}
.tl-detail-heading>div:first-child{display:flex;align-items:center;gap:10px}.tl-detail-heading h3{font-size:15px;margin:0;font-weight:600;color:var(--tl-ink)}.tl-detail-heading>div>span:not(.tl-selected-symbol){font-size:11px;color:var(--tl-muted)}.tl-detail-heading small{font-size:10px;color:#69806d;border-left:1px solid #bacabb;padding-left:10px}.tl-selected-symbol{display:grid;place-items:center;width:27px;height:27px;background:#f7f9f1;border:1px solid #d6dfce;border-radius:50%;color:var(--tl-green)}.tl-selected-symbol svg{width:14px;height:14px}
.tl-detail-nav{display:flex;gap:5px;margin-left:15px}.tl-detail-nav button{display:grid;place-items:center;width:25px;height:25px;padding:0;border:1px solid #cad5c3;border-radius:50%;background:#f7faf2}.tl-detail-nav svg{width:12px;height:12px}.tl-detail-nav button:disabled{opacity:.35}
.tl-detail-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:start;padding-bottom:10px}
.tl-detail-body.single{grid-template-columns:1fr}
.tl-detail-body.single:is(.tl-kind-evolution,.tl-kind-anamnesis,.tl-kind-triage){grid-template-columns:minmax(0,1080px)}
.tl-detail-body.single:is(.tl-kind-device,.tl-kind-expiry,.tl-kind-balance,.tl-kind-notes){grid-template-columns:minmax(0,960px)}
.tl-detail-body.single:is(.tl-kind-admission,.tl-kind-procedure,.tl-kind-discharge){grid-template-columns:minmax(0,760px)}
.tl-detail-body.single.tl-kind-anthropometry{grid-template-columns:minmax(0,550px)}
.tl-record-card{overflow:hidden;position:relative;min-width:0;border-radius:23px;border:1px solid #d9e2d3;background:#fbfcf8;box-shadow:0 4px 10px #48654305;animation:tl-reveal .25s ease-out}
.tl-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 18px 0;font-size:10px;color:#6a7e68}.tl-record-type{display:flex;align-items:center;gap:7px}.tl-record-type>svg{width:15px;height:15px}.tl-card-top time b{margin-left:6px;font-family:Arial,sans-serif;font-weight:400;color:#38593d}
.tl-record-content{padding:9px 18px 12px}.tl-record-content h4{font-size:19px;font-weight:600;line-height:1.25;letter-spacing:-.6px;margin:0 0 8px;color:#2c4b37}.tl-record-content p{margin:5px 0;color:#5d705c;font-size:12px;line-height:1.55}.tl-record-content .tl-clinical-prose{font-size:13px;line-height:1.65;color:#3f5a46;margin-bottom:2px}.tl-period{font-size:10px!important;color:#688065!important}
.tl-record-card footer{border-top:1px solid #e3eadb;padding:8px 15px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f5f8ef66;font-size:10px;color:#5c7155}
.tl-card-author{display:flex;align-items:center;gap:7px}.tl-card-author i{width:23px;height:23px;border-radius:50%;background:#e5ebde;display:grid;place-items:center;font:9px Arial,sans-serif;color:#4e6942;flex:none}.tl-card-author small{display:block;font-size:9px;opacity:.8}.tl-source{display:flex;align-items:center;gap:7px;border:0;background:transparent;color:#42663a;font-size:10px;font-weight:600;white-space:nowrap;padding:3px}.tl-source svg{width:14px;height:14px}.tl-source:hover{text-decoration:underline}.tl-source-missing{font-size:9px;color:#798973}
.tl-profession-badge{display:inline-flex;align-items:center;min-height:25px;padding:0 11px;border-radius:999px;background:#e5efed;color:#326a64;font-size:11px;font-weight:700}.tl-evolution-topics{display:grid;gap:8px;margin:12px 0 3px;padding:0;list-style:none}.tl-evolution-topics li{position:relative;padding:9px 13px 9px 31px;border:1px solid #e3eaec;border-radius:14px;background:#f8fafb;color:#40595b;font-size:13px;line-height:1.5}.tl-evolution-topics li:before{content:'';position:absolute;left:14px;top:16px;width:5px;height:5px;border-radius:50%;background:#78a29e;box-shadow:0 0 0 4px #e4efed}
.tl-metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:12px}.tl-metric{min-width:0}.tl-metric>span{font-size:10px;color:#6a7f61;display:block;margin-bottom:5px}.tl-metric>strong{display:flex;align-items:baseline;gap:5px;font:500 29px Arial,sans-serif;letter-spacing:-1px;white-space:nowrap;color:#2c563b}.tl-metric strong small{font:10px Quicksand,Arial,sans-serif;letter-spacing:0;color:#72856b}.tl-vital-title{display:flex;justify-content:space-between;align-items:center}.tl-vital-title>span{background:#e6efcf;border-radius:20px;padding:3px 9px;font-size:11px;color:#587042}.tl-missing-note{font-size:10px;color:#76836a;display:block;margin-top:10px}
.tl-vital-badges{gap:8px}.tl-vital-badges .tl-metric{padding:11px 12px;border:1px solid #e2e9ea;border-radius:17px;background:#f4f7f8}.tl-vital-badges .tl-metric>span{margin-bottom:7px}.tl-vital-badges .tl-metric>strong{font-size:23px;letter-spacing:-.6px}
.single .tl-metric-grid{grid-template-columns:repeat(8,minmax(0,1fr));gap:18px}
.tl-fluid-equation{display:flex;align-items:center;gap:24px;padding:12px 0 3px}.tl-fluid-equation>span{color:#a0b68b;font-size:21px}.tl-fluid-equation>.tl-metric{flex:1}.tl-fluid-total{background:#e3edc5;border-radius:30px;padding:13px 25px;flex:1.2}.tl-fluid-total .tl-metric>strong{font-size:37px}
.tl-score-capsules{display:grid;grid-template-columns:repeat(7,1fr);gap:10px;padding:9px 0}.tl-score-capsules>div{display:flex;flex-direction:column;align-items:center;background:#edf2e3;border-radius:50px;padding:15px 5px;gap:8px}.tl-score-capsules span{font-size:11px;color:#627651}.tl-score-capsules strong{font:500 33px Arial,sans-serif;color:#365a39}.tl-score-capsules .unrecorded{background:transparent;border:1px dashed #cfdac1;gap:4px}.tl-score-capsules small{font-size:9px;color:#748466;text-align:center}
.tl-device-hero{display:flex;align-items:center;gap:16px;margin-bottom:13px}.tl-device-medallion{width:64px;height:64px;display:grid;place-items:center;background:#e4eee1;border-radius:50%;flex:none}.tl-device-medallion svg{width:30px;height:30px;color:#4a7350}.tl-device-hero h4{margin:5px 0}.tl-device-hero>strong{margin-left:auto;color:#26523c;font:38px Arial,sans-serif}.tl-device-hero>strong small{font:11px Quicksand,sans-serif}.tl-eyebrow{font-size:10px;color:#78916b}.tl-fact-pills{display:flex;flex-wrap:wrap;gap:7px}.tl-fact-pills>span{background:#edf2e6;border-radius:30px;padding:8px 14px;font-size:11px;color:#5f7555}.tl-fact-pills b{margin-left:5px;color:#3c5c3b}
.tl-device-caliber{display:flex;flex-direction:column;align-items:flex-end;gap:3px;margin-left:auto;padding:8px 12px;border-radius:15px;background:#f3f7f8;color:#6d7f82}.tl-device-caliber small{font-size:9px}.tl-device-caliber strong{font-size:15px;color:#315f5d;font-weight:700}
.tl-diagnosis-card .tl-record-content{padding-top:16px}.tl-diagnosis-cloud{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:10px}.tl-diagnosis-cloud>div{background:#eaf0df;border-radius:22px;padding:17px}.tl-diagnosis-cloud .principal{background:#d5e8a1;border-radius:22px 22px 22px 5px}.tl-diagnosis-cloud span{display:block;font-size:10px;color:#607849;margin-bottom:6px}.tl-diagnosis-cloud b{font:22px Arial,sans-serif;color:#35533b}.tl-diagnosis-cloud h4{font-size:16px;margin-top:8px;margin-bottom:0}
.tl-rx-chips{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:13px}.tl-rx-chips>div{background:#eef3e6;border-radius:18px;padding:12px}.tl-rx-chips span{font-size:9px;color:#7c8d6c;display:block;margin-bottom:4px}.tl-rx-chips strong{font-size:13px;display:block;color:#3c5f3a}.tl-rx-chips p{font-size:11px}.tl-rx-chips small{font-size:10px;color:#6b7e60;line-height:1.5;display:block}
.tl-care-rhythm{display:flex;gap:10px;margin:15px 0}.tl-care-rhythm>div{flex:1;display:flex;align-items:center;gap:12px;background:#ecf2df;border-radius:45px;padding:12px}.tl-care-rhythm b{background:#d8e5b7;border-radius:50%;min-width:55px;height:55px;display:grid;place-items:center;font-size:16px;color:#45613a}.tl-care-rhythm span{font-size:12px;color:#4f6845}
.tl-body-measures{display:flex;gap:60px;padding:13px 0}.tl-body-measures strong{font-size:44px}.tl-history-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0 3px}.tl-history-grid>div{border-radius:18px;padding:12px 16px;background:#edf2e6;display:flex;flex-direction:column;gap:5px}.tl-history-grid span{font-size:10px;color:#7b8a70}.tl-history-grid strong{font-size:12px;color:#3b5a39;font-weight:600}.tl-history-grid small{font-size:10px;color:#7b8a70}.tl-history-grid .tl-history-allergy{background:#f9eeea}.tl-history-allergy strong{color:#985b46}
.tl-admission-layout{display:flex;align-items:center;gap:20px;padding:12px 0}.tl-admission-icon{background:#dbe9b4;border-radius:50%;width:75px;height:75px;display:grid;place-items:center;flex:none}.tl-admission-icon>svg{width:31px;height:31px;color:#456644}.tl-admission-layout h4{font-size:24px;margin-top:6px}.tl-bed{margin-left:auto;border-radius:20px;padding:15px 23px;background:#edf3e2;color:#637d55;font-size:11px;display:flex;flex-direction:column;gap:4px}.tl-bed>b{font:28px Arial,sans-serif;color:#365f3a}
.tl-context-empty{grid-column:1/-1;color:#7a8d71;display:flex;align-items:center;justify-content:center;padding:25px;font-size:12px;gap:10px}
@keyframes tl-reveal{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1500px){.tl-type{padding:0 17px;font-size:12px}.tl-toolbar{padding-top:5px;padding-bottom:12px}.tl-event-orb{width:47px;height:47px}.tl-event-caption{top:50px}}
@media(max-width:1150px){.tl-tools{gap:10px}.tl-heading>span,.tl-team-label{display:none}.tl-type{padding:0 10px;gap:5px}.tl-type-pills{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}.tl-type-pills>.tl-type{flex:none}.tl-team-popover{right:230px}.tl-presets button{padding:7px 11px}.single .tl-metric-grid{grid-template-columns:repeat(4,1fr)}.tl-rx-chips{grid-template-columns:repeat(3,1fr)}}
@media(max-width:740px){.tl-toolbar{align-items:flex-start;flex-direction:column;gap:8px;padding:4px 4px 10px}.tl-tools{justify-content:space-between;width:100%}.tl-heading h2{font-size:18px}.tl-avatar{width:29px;height:29px}.tl-avatar-stack .tl-avatar[data-profession]:nth-child(n+4){display:none}.tl-presets button{font-size:10px;padding:7px 9px}.tl-more{font-size:0;gap:0;width:34px;padding:0}.tl-filter-bar{gap:5px}.tl-team-popover{right:0}.tl-canvas-panel{border-radius:20px}.tl-range-caption{padding:10px 12px 0;align-items:center;gap:13px;font-size:10px}.tl-range-caption>[data-group-label]{gap:5px;flex-direction:row;align-items:center;white-space:nowrap}.tl-navigator{gap:7px;padding:8px 10px 8px}.tl-zoom{gap:4px}.tl-zoom button{width:29px;height:29px}.tl-reset{display:none}.tl-detail-heading>div:first-child{flex-wrap:wrap;gap:6px}.tl-detail-heading h3{font-size:14px}.tl-detail-heading>div>span:not(.tl-selected-symbol){font-size:10px}.tl-detail-heading small{display:none}.tl-detail-nav{margin-left:6px}.tl-detail-body{grid-template-columns:1fr}.tl-record-content{padding:9px 14px 12px}.tl-card-top{padding:12px 14px 0}.tl-record-card footer{padding:8px 11px}.tl-clinical-prose{font-size:12px!important}.tl-fluid-equation{gap:8px}.tl-fluid-equation .tl-metric>strong{font-size:22px}.tl-fluid-total{padding:13px}.tl-score-capsules{grid-template-columns:repeat(4,1fr);gap:7px}.tl-score-capsules>div{padding:10px 4px}.tl-score-capsules strong{font-size:27px}.tl-diagnosis-cloud{grid-template-columns:1fr}.tl-diagnosis-cloud>div{padding:13px}.tl-rx-chips{grid-template-columns:repeat(2,1fr)}.tl-care-rhythm{flex-direction:column}.tl-care-rhythm b{height:40px;min-width:45px}.tl-history-grid{grid-template-columns:1fr}.tl-device-medallion{width:45px;height:45px}.tl-device-hero{gap:10px}.tl-device-hero>strong{font-size:29px}.tl-device-hero h4{font-size:16px}.tl-admission-layout{gap:12px}.tl-admission-icon{width:44px;height:44px}.tl-admission-layout h4{font-size:18px}.tl-bed{padding:12px}.tl-metric>strong{font-size:23px}.tl-metric>span{font-size:9px}.tl-metric-grid,.single .tl-metric-grid{gap:13px 8px}.tl-metric strong small{font-size:9px}}
@media(prefers-reduced-motion:reduce){.time-explorer *{animation:none!important;transition:none!important}}

/* Branco clínico — superfícies neutras e verde reservado aos estados ativos. */
.time-explorer{--tl-neutral-accent:#397b78;--tl-neutral-line:#b6cecc;--tl-neutral-soft:#f4f7f8;--tl-neutral-strong:#e8f0f0}
.tl-canvas-panel{background:linear-gradient(180deg,#fff 0%,#fbfcfd 70%,#f7f9fa 100%);border-color:#dfe5e7;box-shadow:inset 0 1px #fff,0 8px 22px #24353b0a}
.tl-axis{stroke:#91bbb8}.tl-time-grid{stroke:#edf1f2}.tl-branch{stroke:#c6d6d5}.tl-branch.selected{stroke:var(--tl-neutral-accent)}.tl-junction{fill:#b5cdcb;stroke:#fff}.tl-tick{fill:#657478}
.tl-event:not(.selected) .tl-event-orb{background:#fff;color:#477d7a;box-shadow:0 4px 13px #334a5117,inset 0 0 0 1px #eef2f3}.tl-event-count{background:#e6efbe;border-color:#f7f9e8}
.tl-navigator{border-top:1px solid #e5eaec;padding-bottom:10px}.tl-zoom button,.tl-reset{background:#fff;border-color:#dfe5e7;color:#4d6f70;box-shadow:0 3px 10px #2e434b10}.tl-reset{width:38px;height:38px}
.tl-brush-wrap{background:#f7f9fa;border-color:#dce4e6;box-shadow:inset 0 1px 2px #2f444b0d}.tl-minimap circle{fill:#9fbfbd}.tl-mini-tick{fill:#6c797d}.tl-brush-control .selection{fill:#e2f0ee;fill-opacity:.82;stroke:#88b9b4}.tl-brush-control .handle{fill:#fff;stroke:#7aa9a5;filter:drop-shadow(0 2px 3px #30484d1b)}
.tl-record-card{background:#fff;border-color:#e0e6e8;box-shadow:0 7px 18px #2d3d430a}.tl-record-card footer{background:#f7f9fa;border-color:#e7ecee}.tl-card-top{color:#707d81}.tl-record-content h4{color:#30494b}.tl-record-content p,.tl-record-content .tl-clinical-prose{color:#58686c}
.tl-vital-title>span,.tl-fluid-total,.tl-score-capsules>div,.tl-fact-pills>span,.tl-diagnosis-cloud>div,.tl-rx-chips>div,.tl-care-rhythm>div,.tl-history-grid>div,.tl-bed{background:var(--tl-neutral-soft)}.tl-diagnosis-cloud .principal,.tl-device-medallion,.tl-admission-icon,.tl-care-rhythm b{background:var(--tl-neutral-strong)}

/* Unified compact controls and explicit empty selection state. */
.tl-detail-body.single.tl-kind-imaging{grid-template-columns:minmax(0,780px)}
.tl-imaging-card{border-radius:25px 25px 25px 9px}
.tl-imaging-state{font-size:10px;color:#397b78;background:#e8f0f0;border-radius:20px;padding:4px 9px}
.tl-imaging-title{display:flex;align-items:center;gap:13px;margin:10px 0 16px}
.tl-imaging-title>span{width:48px;height:48px;display:grid;place-items:center;flex:none;background:#e8f0f0;color:#397b78;border-radius:17px}
.tl-imaging-title svg{width:27px;height:27px}.tl-imaging-title h4{margin:0;font-size:20px}
.tl-imaging-facts{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:0 0 12px}
.tl-imaging-facts>div{padding:11px 14px;border:1px solid #e3eaec;border-radius:15px;background:#f7f9fa}
.tl-imaging-facts dt{font-size:10px;color:#75878a;margin-bottom:5px}
.tl-imaging-facts dd{margin:0;font-size:13px;font-weight:600;color:#3c5558}
.tl-imaging-requester{grid-column:1/-1}
.tl-imaging-report{display:flex;align-items:center;gap:10px;padding:11px 14px;border:1px solid #cbdedd;border-radius:15px;color:#286e63;background:#edf5f3;text-decoration:none;font-size:12px}
.tl-imaging-report:hover{background:#e0eeea}.tl-imaging-report svg{width:18px;height:18px;flex:none}.tl-imaging-report>svg:last-child{margin-left:auto}
.tl-imaging-report small{display:block;font-size:10px;color:#728d87;margin-top:2px}
.tl-imaging-no-report{padding:9px 2px;color:#7b8e91;font-size:11px}
.tl-imaging-feedback{font-size:10px;color:#6b8082}
.time-explorer .tl-imaging-open{display:flex;align-items:center;gap:8px;border:0;border-radius:22px;padding:8px 12px;background:#005243;color:#fff;font-family:inherit;font-size:11px;font-weight:600;white-space:nowrap}
.tl-imaging-open svg{width:14px;height:14px}.tl-imaging-open:hover{background:#126e5e}
@media(max-width:560px){.tl-imaging-facts{grid-template-columns:1fr}.tl-imaging-title h4{font-size:17px}.tl-imaging-card footer{gap:8px;flex-wrap:wrap}}
.tl-team{gap:6px}.tl-avatar-stack{align-items:center;padding:3px 5px 3px 10px}.tl-team-label{display:inline-flex;align-items:center;font-size:11px;font-weight:600;color:#3d554b}.tl-team-separator{width:1px;height:23px;margin:0 7px;background:#dce4df;flex:none}.tl-clear-team{margin-left:1px}
.tl-type.active:not(.tl-all){background:#9fc1bb;border-color:#9fc1bb;color:#183f37}.tl-type.active:not(.tl-all) small{color:#365f57}
.tl-type-popover,.tl-team-popover{padding:0 12px 12px;overflow:hidden}.tl-team-popover{overflow:auto}.tl-popover-title{position:sticky;top:0;z-index:2;min-height:40px;margin:0 -12px 10px;padding:0 12px;background:#f1f6f3;border-bottom:1px solid #d9e4df}.tl-popover-title>button{background:#fff;border:1px solid #dce5df}
.tl-selection-empty{min-height:92px;margin-top:9px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;border:1px dashed #d7e2e3;border-radius:22px;background:#f8fafb;color:#667f7d;font-size:12px;text-align:center}.tl-selection-empty>svg{width:24px;height:24px;padding:9px;box-sizing:content-box;border-radius:50%;background:#e8f0f0;color:#397b78}
@media(max-width:1150px){.tl-team-label{display:inline-flex}}

/* Share the analytical clinical-white canvas and preserve component contrast. */
body:has(#main.time-explorer){background:linear-gradient(180deg,#f3f6f7 0,#e9eef0 100%)}
.time-explorer .tl-avatar-stack,
.time-explorer .tl-presets,
.time-explorer .tl-type,
.time-explorer .tl-more{
 background:#fff;
 border-color:#dfe5e7;
 box-shadow:0 5px 16px #263b410b
}
.time-explorer .tl-avatar-stack{box-shadow:0 4px 14px #263b4109}
.time-explorer .tl-presets button:hover:not(.active){background:#e8f0f0;color:#315f5d}
.time-explorer .tl-type:hover,
.time-explorer .tl-more:hover{
 background:#f4f7f8;
 border-color:#c9d5d7;
 color:#315f5d;
 box-shadow:0 5px 14px #263b410d;
 transform:none
}
.time-explorer .tl-type.active:not(.tl-all){background:#9fc1bb;border-color:#9fc1bb;color:#183f37}
.time-explorer .tl-all.active{background:var(--tl-green);border-color:var(--tl-green);color:#fff}
.time-explorer .tl-canvas-panel{
 border-color:#d7e0e3;
 box-shadow:inset 0 1px #fff,0 9px 24px #2d3d430e
}
.time-explorer .tl-type-popover,
.time-explorer .tl-team-popover{
 background:#fff;
 border-color:#dfe5e7;
 box-shadow:0 18px 50px #263b411c
}
.time-explorer .tl-popover-title{background:#f2f6f7;border-bottom-color:#e1e8ea}
.time-explorer .tl-professional.active,
.time-explorer .tl-professional:hover{background:#edf5f4}
.time-explorer .tl-selected-symbol,
.time-explorer .tl-detail-nav button{
 background:#fff;
 border-color:#d8e2e4;
 color:#397b78
}
.time-explorer .tl-no-events{
 background:#ffffffed;
 border:1px solid #dfe6e8;
 color:#536b6d;
 box-shadow:0 9px 24px #2d3d430d
}
.time-explorer .tl-selection-empty{
 background:#fff;
 border-color:#d3dfe1;
 box-shadow:0 7px 18px #2d3d4308
}
.time-explorer .tl-card-author i{background:#e3eeee;color:#397b78}
.time-explorer .tl-source{color:#397b78}
.time-explorer{--tl-ink:#30494b;--tl-muted:#707d81}
.time-explorer .tl-card-top time b{color:#456365}
.time-explorer .tl-record-card footer{color:#6b7a7d}
.time-explorer .tl-metric>span,
.time-explorer .tl-score-capsules span,
.time-explorer .tl-rx-chips span,
.time-explorer .tl-history-grid span,
.time-explorer .tl-history-grid small,
.time-explorer .tl-eyebrow{color:#728387}
.time-explorer .tl-metric>strong,
.time-explorer .tl-score-capsules strong,
.time-explorer .tl-device-hero>strong,
.time-explorer .tl-fact-pills b,
.time-explorer .tl-diagnosis-cloud b,
.time-explorer .tl-rx-chips strong,
.time-explorer .tl-history-grid strong,
.time-explorer .tl-bed>b{color:#315f5d}
.time-explorer .tl-metric strong small,
.time-explorer .tl-score-capsules small,
.time-explorer .tl-rx-chips small,
.time-explorer .tl-source-missing{color:#778589}
.time-explorer .tl-fluid-equation>span{color:#a9b8ba}
.time-explorer .tl-device-medallion svg,
.time-explorer .tl-admission-icon>svg{color:#397b78}
.time-explorer .tl-fact-pills>span,
.time-explorer .tl-diagnosis-cloud span,
.time-explorer .tl-care-rhythm span,
.time-explorer .tl-bed{color:#5f7476}
.time-explorer .tl-care-rhythm b{color:#315f5d}

@media(max-width:740px){.time-explorer .tl-reset{display:grid}}

/* Detail cards share one rhythm while preserving the fields available for each record. */
.tl-evolution-text{margin:4px 0 2px;white-space:pre-wrap;overflow-wrap:anywhere;font:500 13px/1.65 Quicksand,Arial,sans-serif;color:#40575a}
.tl-detail-body.tl-kind-vitals{grid-template-columns:minmax(0,1fr)}
.tl-vital-badges,.single .tl-metric-grid.tl-vital-badges{grid-template-columns:repeat(auto-fit,minmax(142px,1fr));gap:9px}
.tl-vital-badges .tl-metric{min-height:87px;padding:12px 9px;border-radius:28px;background:var(--tl-neutral-soft);border-color:#e4eaec;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center}
.tl-vital-badges .tl-metric>span{font-size:10px;margin:0 0 5px;color:#62777a}
.tl-vital-badges .tl-metric>strong{font-size:21px;justify-content:center;color:#315f5d;letter-spacing:-.5px}
.tl-vital-badges .tl-metric strong small{font-size:9px}
.tl-vital-badges .tl-metric.unrecorded{background:transparent;border:1px dashed #cfdac1}
.tl-vital-badges .tl-metric.unrecorded>strong{color:#778589}
.tl-vital-badges .tl-unrecorded-label{font-size:9px;color:#778589;margin-top:3px}
.tl-rx-chips>div{min-width:0}.tl-rx-chips strong{line-height:1.4;overflow-wrap:anywhere}.tl-rx-chips small{margin-top:5px}.tl-rx-chips small b{font-weight:700;color:#3c6563}
.tl-detail-body.tl-kind-history{grid-template-columns:minmax(0,920px)}
.tl-kind-history .tl-history-grid{grid-template-columns:minmax(0,1fr)}
.tl-history-grid .tl-history-medicines{grid-column:1/-1;gap:9px}.tl-history-medicines>div{padding-top:9px;border-top:1px solid #dfe8e9}.tl-history-medicines>div:first-of-type{padding-top:0;border-top:0}.tl-history-medicines strong{display:block;line-height:1.4}.tl-history-medicines small{display:block;margin-top:3px}
.tl-procedure-code{display:inline-flex;align-items:center;gap:9px;background:#edf4f4;border:1px solid #dbe9e8;border-radius:999px;padding:7px 12px;font-size:11px;color:#61777a;margin:2px 0 11px}.tl-procedure-code strong{color:#315f5d;font:700 12px Arial,sans-serif;letter-spacing:.3px}
.tl-procedure-reason,.tl-discharge-note{border-top:1px solid #e7ecee;padding-top:10px;margin-top:3px}.tl-procedure-reason>span,.tl-discharge-note>span{font-size:10px;color:#728387}.tl-procedure-reason p,.tl-discharge-note p{font-size:12px;line-height:1.5;margin:4px 0 0}

/* Internação: admissão, movimentação e alta médica seguem a mesma linguagem dos cards. */
.tl-detail-body.single.tl-kind-medical-discharge{grid-template-columns:minmax(0,1020px)}
.tl-transfer-layout{padding:9px 0 13px;gap:15px}.tl-transfer-layout .tl-admission-icon{width:55px;height:55px;background:#e8f1f0;color:#397b78}.tl-transfer-layout .tl-admission-icon svg{width:25px;height:25px;color:inherit}.tl-admission-main{min-width:0;flex:1}.tl-transfer-layout h4{font-size:19px;margin:3px 0 2px}.tl-transfer-layout p{margin:0;color:#75898b}.tl-transfer-route{display:grid;grid-template-columns:minmax(0,1fr) 30px minmax(0,1fr);align-items:stretch;gap:8px;margin:0 0 5px}.tl-transfer-stop{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:11px 13px;border:1px solid #e0e9ea;border-radius:14px;background:#f7fafb}.tl-transfer-stop.is-destination{border-color:#d2e5e0;background:#ecf5f2}.tl-transfer-label{font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#768b8d}.tl-transfer-stop.is-destination .tl-transfer-label{color:#397b78}.tl-transfer-stop>strong{font-size:13px;line-height:1.35;font-weight:650;color:#405e60;overflow-wrap:anywhere}.tl-transfer-stop.is-destination>strong{color:#265951}.tl-transfer-bed{display:inline-flex;align-items:baseline;gap:5px;margin-top:auto;font-size:11px;color:#708487}.tl-transfer-bed b{font-size:15px;font-weight:700;color:#415e60}.tl-transfer-stop.is-destination .tl-transfer-bed b{color:#176453}.tl-transfer-direction{display:grid;place-items:center;color:#6c9b93}.tl-transfer-direction svg{width:21px;height:21px}
.tl-medical-discharge{display:grid;gap:17px;padding:3px 0 8px}.tl-discharge-overview{display:grid;grid-template-columns:1fr 1fr;gap:10px}.tl-discharge-overview>div{display:flex;flex-direction:column;gap:4px;padding:12px 15px;border:1px solid #dfe9e8;border-radius:15px;background:#f5f9f8}.tl-discharge-overview span,.tl-discharge-field>span{font-size:10px;color:#73878a}.tl-discharge-overview strong{font-size:14px;font-weight:700;color:#285b55}.tl-discharge-section{border-top:1px solid #e7ecee;padding-top:15px}.tl-discharge-section h4{margin:0 0 11px;font-size:15px;color:#315657}.tl-discharge-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.tl-discharge-field{min-width:0;padding:11px 13px;border:1px solid #e5ecec;border-radius:14px;background:#fafcfc}.tl-discharge-field.is-wide{grid-column:1/-1}.tl-discharge-field p,.tl-discharge-notes>p{margin:4px 0 0;font-size:12px;line-height:1.55;color:#425e60;white-space:pre-wrap;overflow-wrap:anywhere}.tl-discharge-notes>p{padding:11px 13px;border-radius:14px;background:#f7fafb}
@media(max-width:740px){.tl-discharge-fields{grid-template-columns:1fr}.tl-discharge-field.is-wide{grid-column:auto}.tl-discharge-overview{grid-template-columns:1fr}}
@media(max-width:480px){.tl-transfer-route{grid-template-columns:1fr;gap:6px}.tl-transfer-direction{height:20px}.tl-transfer-direction svg{transform:rotate(90deg)}.tl-transfer-stop{padding:10px 12px}}
.tl-imaging-card{border-radius:23px}.tl-imaging-card .tl-record-content{padding-top:13px;padding-bottom:17px}.tl-imaging-title{margin:1px 0 14px}.tl-imaging-title h4{font-size:19px}.tl-imaging-report{max-width:480px;border-radius:17px}.tl-imaging-feedback{margin-left:auto}.tl-imaging-feedback:empty{display:none}
@media(max-width:740px){.tl-vital-badges,.single .tl-metric-grid.tl-vital-badges{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.tl-vital-badges .tl-metric{min-height:74px}.tl-imaging-card footer{justify-content:space-between}}
@media(max-width:520px){.tl-vital-badges,.single .tl-metric-grid.tl-vital-badges{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Shared profile control: picker plus contextual save action. */
.tl-profile-group{height:40px;display:flex;align-items:center;gap:2px;padding:3px 5px 3px 12px;border:1px solid #dfe5e7;border-radius:999px;background:#fff;box-shadow:0 4px 14px #263b4109}.tl-profile-group>span{font-size:11px;font-weight:600;color:#3d554b}.tl-profile-group>i{width:1px;height:23px;margin:0 5px;background:#dce4df}.tl-profile-group .tl-profile-control{width:31px;height:31px;padding:7px;border:0;background:transparent}.tl-profile-group .tl-profile-control:hover{background:#e8f0f0;color:#315f5d}.tl-profile-group .tl-profile-save{background:#e3eeee;color:#397b78}.tl-profile-group .tl-profile-save:after{content:'';position:absolute;right:2px;bottom:2px;width:4px;height:4px;border-radius:50%;background:#397b78;box-shadow:0 0 0 2px white}.tl-profile-group .tl-profile-control[hidden]{display:none}
