:root {
  --ink: #172d25;
  --muted: #44584e;
  --green: #164c38;
  --reading-focus: #005eaa;
  --control-edge: #697e72;
  --selection-fill: #164c38;
}
:is(#master-app,#staging-app,#app,.install-shell,.sp-standalone) :is(.fine,.field-hint,.sp-note,.review-note,.numbered-record-role,.finder-primary-help,.regimen-group-count) {
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.5;
}
#master-app .numbered-treatment-heading h4 a {
  font-size: 1.125rem;
  font-weight: 700;
  color: #153c2e;
  line-height: 1.4;
}
#master-app .numbered-treatment-heading :is(.numbered-indication,.numbered-qualifier),
#master-app .daily-criteria dd { color: var(--ink); font-size: 1rem; }
#master-app .treatment-number {
  color: #174432;
  background: #e1ede5;
  border: 1px solid var(--control-edge);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
:is(#master-app,#staging-app,#app,.sp-standalone) :is(.search,.field select,.clinical-step .field select,.advanced-filters .field select,.finder-entry .search,.sp-filters select,.select-field select) {
  background-color: white;
  border-color: var(--control-edge);
  color: var(--ink);
  font-size: 1rem;
  min-height: 44px;
}
#master-app :is(.clinical-step,.advanced-filters) .field > span,
:is(#master-app,#staging-app) .field > span { color: #233d30; font-size: .9375rem; font-weight: 700; }
:is(#app,#master-app,#staging-app) input::placeholder { color: #506359; opacity: 1; }
#master-app .field select:has(option:checked[value]:not([value="all"],[value=""])) {
  background-color: #e5f1e8;
  border-color: var(--selection-fill);
  box-shadow: inset 3px 0 var(--selection-fill);
  font-weight: 650;
}
#master-app .regimen-suggestion strong,
#master-app .tumour-stream-link > span { font-size: 1rem; font-weight: 680; }
#master-app .regimen-suggestion span,
#master-app .tumour-stream-link > small { color: var(--muted); font-size: .875rem; }
#master-app .regimen-suggestion:is(:hover,:focus-visible) {
  background: #e5f1e8;
  box-shadow: inset 4px 0 var(--selection-fill);
}
:is(#master-app,#staging-app,#app,.sp-standalone) :is(.button,.access-option,.figo-button,.sp-choices button) { border-color: var(--control-edge); }
:is(#master-app,#staging-app,#app) :is(.rail .nav.active,.tumour-stream-link.active,.tumour-link.active,.nav-button.active,button[aria-pressed="true"]),
#master-app .tumour-stream-link.active:is(:hover,:focus-visible) {
  background: var(--selection-fill);
  color: white;
  border-color: var(--selection-fill);
  box-shadow: inset 4px 0 #9eddb8;
  font-weight: 700;
}
:is(#master-app,#staging-app,#app) :is(.tumour-stream-link.active,.tumour-link.active,button[aria-pressed="true"]) :is(span,small,strong) { color: white; }
:is(#master-app,#staging-app,#app,.sp-standalone,.install-shell) :is(a,button,input,select,textarea,summary):focus-visible {
  outline: 3px solid var(--reading-focus);
  outline-offset: 3px;
}
@media (forced-colors: active) {
  :is(#master-app,#staging-app,#app) :is(.nav.active,.tumour-stream-link.active,.tumour-link.active,.nav-button.active,button[aria-pressed="true"]) { outline: 2px solid Highlight; outline-offset: -2px; }
}
#master-app .finder-start .stream-choice {
  color: #173f2c;
  background: white;
  border-color: var(--control-edge);
  font-size: 1rem;
  font-weight: 650;
}
#master-app .finder-start .stream-choice:is(:hover,:focus-visible) {
  background: #e5f1e8;
  border-color: var(--selection-fill);
  box-shadow: inset 4px 0 var(--selection-fill);
}
#master-app .finder-start .finder-entry .search {
  color: var(--ink);
  border-color: var(--control-edge);
  background: white;
}
#master-app .daily-treatment h4:has(.favorite-star) { display:flex; align-items:center; gap:.5rem; }
#master-app .favorite-star { flex:none; width:44px; height:44px; display:inline-grid; place-items:center; cursor:pointer; border:1px solid #697e72; border-radius:8px; background:white; color:#284b38; font:1.5rem/1 system-ui,sans-serif; }
#master-app .favorite-star[aria-pressed="true"] { background:#fff1c8; border-color:#886000; box-shadow:none; }
#master-app .favorite-star[aria-pressed="true"] span { color:#745000; }
