/* Study tools: reference charts and clinical templates (module toolref).
   Night theme on screen, plain black on white paper in print. */

.tr-body { --tr-line: var(--ph-line, rgba(196, 140, 255, .16)); --tr-line2: var(--ph-line2, rgba(196, 140, 255, .28)); --tr-surface: var(--ph-surface, #170A33); --tr-surface2: var(--ph-surface2, #1F0F45); --tr-muted: var(--ph-muted, #9C8FC6); --tr-ink: #F3EEFF; }
.tr-cp, .tr-entry, .tr-panel-stu, .tr-diary-add { --tr-line: var(--ph-line, rgba(196, 140, 255, .16)); --tr-line2: var(--ph-line2, rgba(196, 140, 255, .28)); --tr-surface: var(--ph-surface, #170A33); --tr-surface2: var(--ph-surface2, #1F0F45); --tr-muted: var(--ph-muted, #9C8FC6); --tr-ink: #F3EEFF; }

.tr-lede { max-width: 72ch; color: var(--ph-text, inherit); margin: 0 0 1.4rem; line-height: 1.7; }
.tr-note { display: flex; gap: .6rem; align-items: flex-start; margin: 0 0 1.4rem; padding: .75rem 1rem; border: 1px solid rgba(255, 201, 74, .4); border-left-width: 3px; border-radius: 8px; background: rgba(255, 201, 74, .08); color: #FFE7A8; font-size: .92rem; line-height: 1.5; }
.tr-note .icon { flex-shrink: 0; width: 18px; height: 18px; margin-top: .15rem; }
.tr-h2 { font-size: 1.12rem; color: var(--tr-ink); margin: 1.8rem 0 .8rem; }
.tr-h2:first-child { margin-top: 0; }
.tr-h3 { font-size: 1rem; color: var(--tr-ink); margin: 1.4rem 0 .6rem; }
.tr-sub { font-weight: 700; color: var(--tr-ink); margin: .8rem 0 .3rem; }
.tr-foot { color: var(--tr-muted); font-size: .86rem; margin: 1rem 0 0; max-width: 80ch; }
.tr-bn { display: block; color: var(--tr-muted); font-size: .86rem; font-weight: 400; }
.tr-tag { display: inline-block; margin-left: .5rem; padding: .05rem .5rem; border: 1px solid var(--tr-line2); border-radius: 4px; font-size: .74rem; font-weight: 600; color: var(--tr-muted); vertical-align: middle; }
.tr-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; color: var(--tr-ink); }
.tr-val { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--tr-ink); }
.tr-unit { color: var(--tr-muted); white-space: nowrap; }
.tr-warn { display: flex; gap: .35rem; align-items: flex-start; margin-top: .25rem; font-size: .8rem; color: #FFD27A; }
.tr-warn .icon { width: 14px; height: 14px; flex-shrink: 0; margin-top: .15rem; }
.tr-pre { white-space: pre-line; overflow-wrap: anywhere; }

/* Index lists */
.tr-index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--tr-line); }
.tr-index li { border-bottom: 1px solid var(--tr-line); }
.tr-index a { display: flex; align-items: center; gap: 1rem; padding: 1rem .25rem; min-height: 56px; color: inherit; transition: background-color .18s; }
.tr-index a:hover, .tr-index a:focus-visible { background: rgba(225, 28, 242, .06); }
.tr-index a:hover strong { color: var(--ph-ink); }
.tr-ic { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border: 1px solid var(--tr-line2); border-radius: 8px; color: var(--ph-magenta, #E11CF2); }
.tr-ic .icon { width: 20px; height: 20px; }
.tr-index-t { flex: 1; min-width: 0; }
.tr-index-t strong { display: block; color: var(--tr-ink); font-size: 1rem; }
.tr-index-t small { display: block; color: var(--tr-muted); font-size: .88rem; line-height: 1.5; margin-top: .15rem; }
.tr-go { width: 18px; height: 18px; color: var(--tr-muted); flex-shrink: 0; transition: transform .18s; }
.tr-index a:hover .tr-go, .tr-row:hover .tr-go { transform: translateX(3px); }
@media (min-width: 900px) {
  .tr-index { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; border-top: 0; }
  .tr-index li:nth-child(-n+2) { border-top: 1px solid var(--tr-line); }
}
.tr-cross { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; margin: 1.8rem 0 0; color: var(--tr-muted); font-size: .92rem; }
.tr-cross .icon { width: 18px; height: 18px; }
.tr-cross a { color: var(--ph-magenta, #E11CF2); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }

/* Search */
.tr-search { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0 0 1.4rem; position: relative; }
.tr-search > .icon { position: absolute; left: .9rem; top: 22px; transform: translateY(-50%); width: 18px; height: 18px; color: var(--tr-muted); pointer-events: none; }
.tr-search .input { flex: 1 1 260px; min-width: 0; padding-left: 2.6rem; font-size: 16px; min-height: 44px; }
.tr-search .btn { min-height: 44px; }

/* Tables */
.tr-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.tr-table th, .tr-table td { padding: .7rem .75rem; border-bottom: 1px solid var(--tr-line); text-align: left; vertical-align: top; }
.tr-table th { color: var(--tr-muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; white-space: nowrap; }
.tr-table tbody tr:hover { background: var(--ph-soft); }
.tr-table td small { display: block; }
.table-wrap { border: 1px solid var(--tr-line); border-radius: 8px; }
.tr-sheet .table-wrap + .tr-h2 { margin-top: 2rem; }
@media (max-width: 640px) { .tr-hide-sm { display: none; } .tr-table th, .tr-table td { padding: .6rem .55rem; } }

.tr-rows { list-style: none; margin: 0 0 1rem; padding: 0; border-top: 1px solid var(--tr-line); }
.tr-row { display: flex; align-items: center; gap: 1rem; padding: .95rem .25rem; border-bottom: 1px solid var(--tr-line); color: inherit; }
.tr-row:hover { background: rgba(225, 28, 242, .05); }
.tr-row-t { flex: 1; min-width: 0; }
.tr-row-t strong { color: var(--tr-ink); }
.tr-row-t small { display: block; margin-top: .2rem; color: var(--tr-muted); font-size: .88rem; }

.tr-points { margin: 0 0 1rem; padding-left: 1.2rem; line-height: 1.65; }
.tr-points li { margin-bottom: .35rem; }

/* Detail layout */
.tr-detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; align-items: start; }
@media (min-width: 980px) { .tr-detail { grid-template-columns: minmax(0, 1fr) 280px; gap: 2.4rem; } .tr-detail-wide { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.tr-dl { display: grid; grid-template-columns: minmax(0, 1fr); gap: .2rem 1.4rem; margin: 0; }
.tr-dl dt { color: var(--tr-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; margin-top: .9rem; }
.tr-dl dd { margin: 0; color: var(--tr-ink); line-height: 1.6; }
@media (min-width: 700px) { .tr-dl { grid-template-columns: 200px minmax(0, 1fr); } .tr-dl dt { margin-top: 0; padding: .7rem 0; border-bottom: 1px solid var(--tr-line); } .tr-dl dd { padding: .7rem 0; border-bottom: 1px solid var(--tr-line); } }
.tr-side { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--tr-line); }
.tr-side a { display: flex; align-items: center; min-height: 44px; padding: .5rem 0; border-bottom: 1px solid var(--tr-line); color: inherit; }
.tr-side a:hover { color: var(--ph-ink); }

/* Interactions */
.tr-ix { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .7rem; }
.tr-ix li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: .9rem; padding: .9rem 1rem; border: 1px solid var(--tr-line); border-left-width: 3px; border-radius: 8px; background: var(--tr-surface); }
.tr-ix p { margin: .3rem 0 0; line-height: 1.55; }
.tr-ix strong a { color: var(--tr-ink); text-decoration: underline; text-underline-offset: 3px; }
.tr-act { color: var(--tr-ink); }
.tr-sev { align-self: start; text-align: center; padding: .2rem .4rem; border-radius: 4px; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.sev-major { border-left-color: #FF4D6D !important; } .sev-major .tr-sev { background: rgba(255, 77, 109, .16); color: #FFB3C1; }
.sev-moderate { border-left-color: #FFC94A !important; } .sev-moderate .tr-sev { background: rgba(255, 201, 74, .14); color: #FFE29A; }
.sev-minor { border-left-color: #2ED38A !important; } .sev-minor .tr-sev { background: rgba(46, 211, 138, .14); color: #A8F0CD; }
@media (max-width: 480px) { .tr-ix li { grid-template-columns: minmax(0, 1fr); gap: .4rem; } .tr-sev { justify-self: start; } }
.tr-ok { display: flex; gap: .5rem; align-items: center; color: #A8F0CD; font-weight: 600; }
.tr-picker-head { display: grid; gap: .6rem; margin-bottom: .8rem; }
.tr-picker-head .input { font-size: 16px; min-height: 44px; }
.tr-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: .4rem; max-height: 420px; overflow-y: auto; padding: .2rem; }
.tr-check { display: flex; align-items: center; gap: .6rem; min-height: 44px; padding: .45rem .7rem; border: 1px solid var(--tr-line); border-radius: 6px; cursor: pointer; font-size: .93rem; }
.tr-check:hover { border-color: var(--tr-line2); }
.tr-check input { width: 18px; height: 18px; accent-color: var(--ph-magenta, #E11CF2); flex-shrink: 0; }
.tr-check:has(input:checked) { border-color: var(--ph-magenta, #E11CF2); background: rgba(225, 28, 242, .08); color: var(--ph-ink); }
.tr-check[hidden] { display: none; }
.tr-picker-foot { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }

/* Terms and diagnoses */
.tr-terms { margin: 0 0 1rem; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--tr-line); }
.tr-term { padding: .9rem 0; border-bottom: 1px solid var(--tr-line); }
.tr-term dt { font-weight: 700; color: var(--tr-ink); display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .5rem; }
.tr-sep { color: var(--tr-muted); font-weight: 400; }
.tr-term dd { margin: .3rem 0 0; line-height: 1.55; }
.tr-acc { border-top: 1px solid var(--tr-line); }
.tr-dx { border-bottom: 1px solid var(--tr-line); }
.tr-dx summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 52px; padding: .7rem .25rem; cursor: pointer; list-style: none; color: var(--tr-ink); }
.tr-dx summary::-webkit-details-marker { display: none; }
.tr-caret { width: 18px; height: 18px; flex-shrink: 0; color: var(--tr-muted); transition: transform .2s; }
.tr-dx[open] .tr-caret { transform: rotate(180deg); }
.tr-dx-body { padding: 0 .25rem 1.2rem; line-height: 1.6; max-width: 90ch; }

/* Legend, timeline */
.tr-legend { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin: 0 0 1rem; padding: 0; font-size: .88rem; }
.tr-legend li { display: flex; align-items: center; gap: .4rem; }
.tr-pill-dot { width: 10px; height: 10px; border-radius: 2px; background: currentColor; }
.iv-compatible .tr-pill-dot, .iv-compatible .tr-status { color: #2ED38A; }
.iv-caution .tr-pill-dot, .iv-caution .tr-status { color: #FFC94A; }
.iv-incompatible .tr-pill-dot, .iv-incompatible .tr-status { color: #FF6B85; }
.tr-status { font-weight: 700; white-space: nowrap; }
.tr-timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--tr-line2); }
.tr-timeline > li { position: relative; padding: 0 0 1.4rem 1.4rem; }
.tr-timeline > li::before { content: ""; position: absolute; left: -6px; top: .35rem; width: 10px; height: 10px; border-radius: 50%; background: var(--ph-magenta, #E11CF2); }
.tr-age { display: block; font-weight: 700; color: var(--tr-ink); margin-bottom: .4rem; }
.tr-timeline ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.tr-timeline ul li { display: grid; grid-template-columns: minmax(0, 1fr); gap: .1rem; padding: .6rem .8rem; border: 1px solid var(--tr-line); border-radius: 6px; background: var(--tr-surface); }
.tr-timeline ul li .tr-val { white-space: normal; font-size: .9rem; }
.tr-timeline small { color: var(--tr-muted); }
@media (min-width: 760px) { .tr-timeline ul li { grid-template-columns: 220px minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: baseline; } }

/* ECG */
.tr-ecg { margin: 0 0 1.4rem; }
.tr-ecg svg { display: block; width: 100%; height: auto; max-width: 760px; border: 1px solid var(--tr-line2); border-radius: 8px; background: #12081F; }
.tr-ecg .g1 { fill: none; stroke: rgba(255, 79, 163, .14); stroke-width: .6; }
.tr-ecg .g2 { fill: none; stroke: rgba(255, 79, 163, .32); stroke-width: 1; }
.tr-ecg .trace { fill: none; stroke: #F3EEFF; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.tr-ecg .lbl text { fill: #FFC94A; font: 700 14px system-ui, sans-serif; }
.tr-ecg .dim path { fill: none; stroke: #2ED38A; stroke-width: 1.4; }
.tr-ecg .dim text { fill: #A8F0CD; font: 600 11px system-ui, sans-serif; text-anchor: middle; }
.tr-ecg .dim .st { stroke: #4A9BFF; stroke-dasharray: 4 3; }
.tr-ecg .dim .qt { stroke: #B86BFF; stroke-dasharray: 2 3; }
.tr-ecg figcaption { margin-top: .5rem; color: var(--tr-muted); font-size: .86rem; }

/* Fillable templates */
.tr-printbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: 0 0 1rem; }
.tr-printbar .btn { min-height: 44px; }
.tr-sheet-head { display: none; }
.tr-form .input, .tr-form .textarea, .tr-cp-form .input, .tr-cp-form .textarea, .tr-cp-form .select { font-size: 16px; }
.tr-box { margin-bottom: .9rem; min-width: 0; }
.tr-box label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .35rem; color: var(--tr-ink); }
.tr-box .textarea { min-height: 0; resize: vertical; }
.tr-grid2, .tr-grid3, .tr-grid4, .tr-grid6 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 1rem; }
@media (min-width: 640px) { .tr-grid2, .tr-grid4, .tr-grid6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tr-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 980px) { .tr-grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .tr-grid6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.tr-grid-table { min-width: 760px; }
.tr-grid-table td { padding: .3rem; }
.tr-grid-table .input, .tr-grid-table .textarea { padding: .45rem .5rem; border-radius: 4px; min-height: 40px; }
.tr-grid-table .tr-day { width: 56px; }
.tr-grid-table .tr-narrow { width: 70px; }
.tr-sbar { display: grid; gap: .4rem; margin: .6rem 0 1rem; }
.tr-sbar-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: .8rem; align-items: start; }
.tr-sbar-l { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 6px; background: var(--ph-grad, #8A2BF5); color: #fff; font-weight: 800; font-size: 1.2rem; margin-top: 1.5rem; }
.tr-checklist { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .2rem 1.4rem; }
@media (min-width: 760px) { .tr-checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tr-checklist label { display: flex; align-items: flex-start; gap: .6rem; min-height: 44px; padding: .5rem 0; cursor: pointer; }
.tr-checklist input { width: 18px; height: 18px; margin-top: .2rem; flex-shrink: 0; accent-color: var(--ph-magenta, #E11CF2); }
.tr-sign { margin: 1.4rem 0 0; color: var(--tr-muted); font-size: .88rem; overflow-wrap: anywhere; }
.tr-tips { margin-top: 2rem; max-width: 80ch; }
.tr-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.tr-actions .btn { min-height: 44px; }

/* OSCE */
.tr-score { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; padding: .9rem 1rem; margin-bottom: 1rem; border: 1px solid var(--tr-line2); border-radius: 8px; background: var(--tr-surface); position: sticky; top: 72px; z-index: 2; }
.tr-score b { font-size: 1.15rem; color: var(--ph-ink); font-variant-numeric: tabular-nums; }
.tr-bar { flex: 1 1 160px; height: 8px; border-radius: 4px; background: var(--tr-surface2); overflow: hidden; }
.tr-bar span { display: block; height: 100%; width: 0; background: var(--ph-grad, #E11CF2); transition: width .2s ease-out; }
.tr-osce-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--tr-line); }
.tr-osce-list li { border-bottom: 1px solid var(--tr-line); }
.tr-osce-list label { display: grid; grid-template-columns: 22px 28px minmax(0, 1fr); gap: .6rem; align-items: start; padding: .75rem .25rem; min-height: 48px; cursor: pointer; line-height: 1.5; }
.tr-osce-list input { width: 20px; height: 20px; margin-top: .1rem; accent-color: #2ED38A; }
.tr-osce-list label:has(input:checked) span:last-child { color: #A8F0CD; }
.tr-n { color: var(--tr-muted); font-variant-numeric: tabular-nums; font-weight: 700; }

/* Care plan builder */
.tr-cp-form .hint { color: var(--tr-muted); font-size: .84rem; margin-top: .3rem; }
.tr-cp-form .req { color: #FF6B85; }
.tr-cp-sheet { margin-top: 2rem; padding: 1.4rem; border: 1px dashed var(--tr-line2); border-radius: 8px; }
.tr-cp-sheet::before { content: attr(aria-label); display: block; color: var(--tr-muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-bottom: .8rem; }
.tr-cp-sheet h3 { font-size: .95rem; color: var(--tr-ink); margin: 1.1rem 0 .3rem; }
.tr-cp-title { font-size: 1.25rem; margin: 0 0 .3rem; color: var(--ph-ink); }
.tr-cp-title:empty::before, .tr-cp-sheet .tr-pre:empty::before { content: "..."; color: var(--tr-muted); }
.tr-cp-sheet .tr-pre { margin: 0; line-height: 1.6; }
.tr-cp-table td { height: 2.2em; }

/* Split and panels */
.tr-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: start; }
@media (min-width: 900px) { .tr-split { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 3rem; } }
.tr-panel { padding: 1.4rem; border: 1px solid var(--tr-line2); border-radius: 10px; background: var(--tr-surface); }
.tr-steps { margin: 0; padding: 0; list-style: none; counter-reset: trs; }
.tr-steps li { counter-increment: trs; position: relative; padding: 0 0 1.1rem 2.6rem; }
.tr-steps li::before { content: counter(trs); position: absolute; left: 0; top: 0; width: 1.8rem; height: 1.8rem; display: grid; place-items: center; border: 1px solid var(--tr-line2); border-radius: 6px; font-weight: 700; color: var(--ph-magenta, #E11CF2); }
.tr-steps strong { display: block; color: var(--tr-ink); }
.tr-steps span { color: var(--tr-muted); font-size: .92rem; }

/* Leaflet */
.tr-leaflet { max-width: 72ch; }
.tr-leaflet-title { font-size: 1.5rem; color: var(--ph-ink); margin: 0 0 .5rem; }
.tr-leaflet-sum { font-size: 1.05rem; color: var(--ph-text, inherit); margin: 0 0 1.2rem; }
.tr-leaflet .prose h2 { font-size: 1.15rem; margin: 1.4rem 0 .5rem; }
.tr-leaflet .prose li { margin-bottom: .35rem; }

/* Student area */
.tr-panel-stu { overflow: hidden; }
.tr-diary-add { margin-bottom: 1.4rem; }
.tr-diary-add summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; list-style: none; }
.tr-diary-add summary::-webkit-details-marker { display: none; }
.tr-diary-add[open] summary { margin-bottom: 1rem; }
.tr-entry { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--tr-line); align-items: start; }
.tr-entry:last-child { border-bottom: 0; }
.tr-entry-date { text-align: center; padding: .4rem 0; border: 1px solid var(--tr-line2); border-radius: 6px; }
.tr-entry-date b { display: block; font-size: 1.2rem; color: var(--ph-ink); line-height: 1.1; }
.tr-entry-date small { font-size: .7rem; color: var(--tr-muted); }
.tr-entry-meta { margin: 0 0 .3rem; font-weight: 600; color: var(--tr-ink); }
.tr-entry-body p { margin: 0 0 .35rem; line-height: 1.55; }
.tr-entry .tbtn { min-width: 44px; min-height: 44px; justify-content: center; }

/* Print: plain black on white, only the sheet */
@media print {
  @page { margin: 14mm; }
  html, body, .stu-body { background: #fff !important; color: #000 !important; }
  body * { color: #000 !important; text-shadow: none !important; box-shadow: none !important; }
  .site-header, .site-footer, .drawer, .tn-float, .wa-float, .toast, .skip-link, .page-hero, .tr-note, .no-print, .tr-printbar, .tr-cross, .tr-lede, .tr-search, .tr-tips, .pagination, nav[aria-label],
  .stu-side, .stu-top, .stu-tabbar, .stu-foot, .stu-backdrop, .ld-head, .flash, .alert { display: none !important; }
  .page-body, .tr-body, .stu-main, .stu-content, .panel, .tr-panel-stu { padding: 0 !important; margin: 0 !important; border: 0 !important; background: #fff !important; }
  .container { max-width: none !important; padding: 0 !important; }
  .tr-detail, .tr-detail-wide { display: block; }
  .tr-detail > aside, .tr-picker { display: none !important; }
  .tr-sheet { display: block !important; border: 0 !important; padding: 0 !important; margin: 0 !important; background: #fff !important; font-size: 11pt; }
  .tr-sheet::before { display: none !important; }
  .tr-sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 2px solid #000; padding-bottom: 6pt; margin-bottom: 10pt; font-size: 12pt; }
  .tr-sheet-head strong { font-size: 13pt; }
  .tr-h2, .tr-h3, .tr-cp-sheet h3 { font-size: 12pt; margin: 12pt 0 4pt; page-break-after: avoid; }
  .table-wrap { overflow: visible !important; border: 0 !important; }
  .tr-table { font-size: 9.5pt; min-width: 0 !important; }
  .tr-table th, .tr-table td { border: 1px solid #000 !important; padding: 4pt 5pt; background: #fff !important; }
  .tr-table th { font-size: 8.5pt; }
  .tr-table tr { page-break-inside: avoid; }
  .tr-hide-sm { display: table-cell !important; }
  .tr-bn, .tr-unit, .muted, .tr-foot, .tr-sign { color: #333 !important; }
  .tr-tag { border-color: #000; }
  .input, .textarea, .select { background: #fff !important; border: 1px solid #000 !important; border-radius: 0 !important; color: #000 !important; }
  .input::placeholder, .textarea::placeholder { color: transparent !important; }
  .tr-box { page-break-inside: avoid; margin-bottom: 6pt; }
  .tr-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .tr-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .tr-grid4, .tr-grid6 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .tr-sbar-l { background: #fff !important; border: 2px solid #000; }
  .tr-ix li { background: #fff !important; border: 1px solid #000 !important; border-left-width: 4px !important; page-break-inside: avoid; }
  .tr-sev { border: 1px solid #000; background: #fff !important; }
  .tr-timeline { border-left-color: #000; }
  .tr-timeline > li::before { background: #000; }
  .tr-timeline ul li { background: #fff !important; border-color: #000; page-break-inside: avoid; }
  .tr-ecg svg { background: #fff !important; border-color: #000; }
  .tr-ecg .g1 { stroke: #f2b8c6; } .tr-ecg .g2 { stroke: #e07a96; }
  .tr-ecg .trace { stroke: #000; } .tr-ecg .lbl text, .tr-ecg .dim text { fill: #000; } .tr-ecg .dim path { stroke: #000; }
  .tr-dx { page-break-inside: avoid; }
  .tr-dx-body { display: block !important; }
  .tr-osce-list input, .tr-checklist input { accent-color: #000; }
  .tr-cp-sheet { margin: 0 !important; }
  .tr-cp-title:empty::before, .tr-cp-sheet .tr-pre:empty::before { content: ""; }
  .tr-cp-sheet .tr-pre:empty { min-height: 3em; border-bottom: 1px solid #999; }
  .tr-leaflet .prose { font-size: 12pt; line-height: 1.6; }
  a { text-decoration: none !important; }
}
@media print and (orientation: portrait) { .tr-landscape .tr-table { font-size: 8.5pt; } }
@media (prefers-reduced-motion: reduce) { .tr-go, .tr-caret, .tr-bar span, .tr-index a { transition: none; } }
