:root {
  /* Tebra family: deep teal shell, teal primary, spring-green accent */
  --teal-900: #00292e;
  --teal-800: #00363d;
  --teal-700: #0a4a4f;
  --teal-600: #0e5c60;
  --teal: #00857c;
  --teal-lt: #e6f4f2;
  --green: #3bc97f;
  --green-lt: #e3f7ec;
  --amber: #e08c1e;
  --amber-lt: #fdf2df;
  --red: #d2503c;
  --red-lt: #fbe9e6;
  --grey: #8a9a9b;
  --grey-lt: #eff2f2;
  --canvas: #f4f7f7;
  --surface: #fff;
  --line: #dde5e5;
  --ink: #0b2225;
  --ink2: #425456;
  --ink3: #71888a;
  --r: 8px;
  --mono: "IBM Plex Mono", monospace;
  --sans: "Inter", system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(0, 41, 46, 0.06), 0 8px 24px rgba(0, 41, 46, 0.07);
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
}
body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button {
  font: inherit;
  cursor: pointer;
}
input,
select,
textarea {
  font: inherit;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: -1px;
  border-color: var(--teal);
}
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.muted {
  color: var(--ink3);
}
.tiny {
  font-size: 11px;
}
.sm {
  font-size: 12px;
}
.hide {
  display: none !important;
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* shell */
#app {
  display: grid;
  grid-template-columns: 236px 1fr;
  min-height: 100vh;
}
.side {
  background: var(--teal-900);
  color: #b9cfcf;
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 8px 16px;
}
.logo .mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--green);
  display: grid;
  place-items: center;
  color: var(--teal-900);
  font-weight: 700;
  font-size: 14px;
}
.logo b {
  color: #fff;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.navlbl {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5d8080;
  padding: 12px 8px 5px;
}
.nav button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: none;
  border: 0;
  color: #b9cfcf;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
}
.nav button:hover {
  background: var(--teal-700);
  color: #fff;
}
.nav button.on {
  background: var(--teal);
  color: #fff;
}
.badge {
  font-family: var(--mono);
  font-size: 10px;
  background: var(--red);
  color: #fff;
  border-radius: 20px;
  padding: 1px 6px;
}
.badge.g {
  background: var(--green);
  color: var(--teal-900);
}
.sidefoot {
  margin-top: auto;
  border-top: 1px solid var(--teal-700);
  padding-top: 12px;
}
.sidefoot .lbl {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5d8080;
  padding: 0 8px 5px;
}
.sidefoot select {
  background: var(--teal-800);
  border-color: var(--teal-700);
  color: #fff;
  font-size: 12.5px;
  padding: 7px 8px;
}
.signout {
  width: 100%;
  background: var(--teal-800);
  border: 1px solid var(--teal-700);
  color: #cfe0da;
  padding: 8px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  text-align: center;
}
.signout:hover {
  background: var(--teal-700);
  color: #fff;
}
.signout.on {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.sidefoot .who {
  padding: 10px 8px 0;
  color: #7fa0a0;
  font-size: 11px;
}

main {
  padding: 22px 26px 70px;
  max-width: 1560px;
  min-width: 0;
}
.head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.head h1 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.02em;
}
.head p {
  margin: 3px 0 0;
  color: var(--ink3);
  font-size: 12.5px;
}

/* primitives */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.card + .card {
  margin-top: 14px;
}
.chead {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.chead h2 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
}
.cbody {
  padding: 14px;
}
.btn {
  background: var(--teal);
  color: #fff;
  border: 1px solid var(--teal);
  padding: 7px 13px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
}
.btn:hover {
  background: var(--teal-600);
  border-color: var(--teal-600);
}
.btn.g {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.btn.g:hover {
  background: var(--grey-lt);
}
.btn.s {
  padding: 4px 9px;
  font-size: 11.5px;
}
.btn.dark {
  background: var(--teal-800);
  border-color: var(--teal-800);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.grid {
  display: grid;
  gap: 12px;
}
.g2 {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.g3 {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

table {
  width: 100%;
  border-collapse: collapse;
}
th {
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink3);
  font-weight: 600;
  padding: 9px 11px;
  border-bottom: 1px solid var(--line);
  background: var(--grey-lt);
}
td {
  padding: 9px 11px;
  border-bottom: 1px solid var(--line);
}
td a{
    color: var(--ink);
    text-decoration: none;
}
tbody tr:hover {
  background: #fafcfc;
}
.scroll {
  overflow: auto;
  max-height: 66vh;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
}

.pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.pill.in {
  background: var(--green-lt);
  color: #1b8552;
}
.pill.pend {
  background: var(--amber-lt);
  color: #9a6210;
}
.pill.out {
  background: var(--red-lt);
  color: #a83b2a;
}
.pill.none {
  background: var(--grey-lt);
  color: var(--ink3);
}
.pill.teal {
  background: var(--teal-lt);
  color: var(--teal);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.stat {
  background: #fff;
  padding: 12px 14px;
}
.stat b {
  display: block;
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.stat span {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink3);
}
.stat.bad b {
  color: var(--red);
}
.stat.good b {
  color: #1b8552;
}

.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.tabs button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 8px 13px;
  color: var(--ink3);
  font-size: 13px;
  font-weight: 500;
}
.tabs button.on {
  color: var(--ink);
  border-bottom-color: var(--teal);
}

.sev {
  display: inline-block;
  width: 3px;
  height: 26px;
  border-radius: 2px;
  vertical-align: middle;
}
.sev.critical {
  background: var(--red);
}
.sev.high {
  background: #e2703a;
}
.sev.medium {
  background: var(--amber);
}
.sev.low {
  background: var(--grey);
}

/* credentialing matrix: payers down the left, providers across the top */
.mx {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12.5px;
}
.mx th,
.mx td {
  border-bottom: 1px solid var(--line);
}
.mx th.pay,
.mx td.pay {
  position: sticky;
  left: 0;
  z-index: 3;
  background: #fff;
  min-width: 210px;
  max-width: 210px;
  border-right: 2px solid var(--line);
}
.mx thead th.pay {
  z-index: 5;
  background: var(--grey-lt);
}
.mx thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--grey-lt);
}
.mx th.fix {
  min-width: 62px;
  text-align: center;
  padding: 8px 4px;
}
.mx th.prov {
  min-width: 104px;
  text-align: center;
  padding: 7px 6px;
  border-left: 1px solid var(--line);
}
.mx th.prov b {
  display: block;
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
}
.mx th.prov em {
  font-style: normal;
  font-size: 9.5px;
  color: var(--ink3);
  font-family: var(--mono);
}
.mx td.c {
  padding: 3px;
  text-align: center;
  border-left: 1px solid var(--line);
}
.mx td.c.sep {
  border-left: 2px solid var(--line);
}
.mx tr.bad td.pay {
  box-shadow: inset 3px 0 0 var(--red);
}
.cellb {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 5px 3px;
  background: var(--grey-lt);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink3);
}
.cellb:hover {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px var(--teal-lt);
}
.cellb.in {
  background: var(--green-lt);
  color: #1b8552;
}
.cellb.pend {
  background: var(--amber-lt);
  color: #9a6210;
}
.cellb.out {
  background: var(--red-lt);
  color: #a83b2a;
}
.cellb.none {
  background: var(--grey-lt);
  color: #9aaaab;
}

/* drawer + modal */
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 41, 46, 0.42);
  z-index: 60;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(560px, 100%);
  background: #fff;
  z-index: 61;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.drawer > header {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}
.drawer > header h3 {
  margin: 0;
  font-size: 15px;
}
.drawer .dbody {
  padding: 18px;
  overflow: auto;
  flex: 1;
}
.drawer > footer {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.x {
  background: none;
  border: 0;
  font-size: 20px;
  color: var(--ink3);
  line-height: 1;
  padding: 0 4px;
}
.modal {
  position: fixed;
  z-index: 61;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, 92vw);
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
label.f {
  display: block;
  margin-bottom: 11px;
}
label.f > span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 4px;
}

/* toast */
#toasts {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 340px;
}
.toast {
  background: var(--teal-800);
  color: #fff;
  border-radius: 9px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--green);
  animation: pop 0.18s ease-out;
}
.toast b {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}
.toast p {
  margin: 0;
  font-size: 12px;
  color: #b9cfcf;
}
@keyframes pop {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

.empty {
  padding: 40px 18px;
  text-align: center;
  color: var(--ink3);
}
.empty b {
  display: block;
  color: var(--ink);
  margin-bottom: 3px;
  font-size: 14px;
}
.bar {
  height: 6px;
  background: var(--grey-lt);
  border-radius: 4px;
  overflow: hidden;
  min-width: 60px;
}
.bar i {
  display: block;
  height: 100%;
  background: var(--teal);
}
.bar i.warn {
  background: var(--amber);
}
.bar i.bad {
  background: var(--red);
}
.kv {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 5px 12px;
}
.kv dt {
  color: var(--ink3);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding-top: 3px;
}
.kv dd {
  margin: 0;
}
.tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px;
  text-align: left;
  width: 100%;
}
.tile:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow);
}
.tile h4 {
  margin: 0 0 3px;
  font-size: 14px;
}
.hdrbar {
  background: var(--teal-800);
  color: #fff;
  border-radius: var(--r);
  padding: 14px 16px;
  margin-bottom: 14px;
}
.hdrbar h2 {
  margin: 0 0 2px;
  font-size: 17px;
}
.hdrbar .ids {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.hdrbar .ids div span {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7fa0a0;
}
.hdrbar .ids div b {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
}
.legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding: 9px 2px 0;
  font-size: 11px;
  color: var(--ink3);
}
.sw {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 5px;
  vertical-align: -1px;
}
.acc {
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin-bottom: 8px;
  background: #fff;
  overflow: hidden;
}
.acc > button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  padding: 11px 14px;
  text-align: left;
}
.acc > button:hover {
  background: var(--grey-lt);
}
.acc .inner {
  padding: 0 14px 14px;
  border-top: 1px solid var(--line);
}
@media (max-width: 900px) {
  #app {
    grid-template-columns: 1fr;
  }
  .side {
    position: static;
    height: auto;
  }
  main {
    padding: 16px;
  }
}

/* The separate module pages use these names for the original OpsCore shell. */
[hidden] { display: none !important; }
.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--teal-900); color: #b9cfcf; display: flex; flex-direction: column; padding: 16px 12px; position: sticky; top: 0; height: 100vh; min-height: 0; }
.brand { display: flex; align-items: center; gap: 9px; padding: 6px 8px 16px; }
.brand__mark { width: 26px; height: 26px; border-radius: 7px; background: var(--green); display: grid; place-items: center; color: var(--teal-900); font-weight: 700; font-size: 14px; }
.brand__name { color: #fff; font-size: 16px; letter-spacing: -.02em; }
.nav__label { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #5d8080; padding: 12px 8px 5px; }
.sidebar .nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--teal-700) transparent; }
.nav__item { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #b9cfcf; padding: 8px 10px; border-radius: 6px; font-size: 13.5px; font-weight: 500; text-align: left; text-decoration: none; }
.nav__item:hover { background: var(--teal-700); color: #fff; }
.nav__item.is-active { background: var(--teal); color: #fff; }
.sidebar__foot { margin-top: auto; border-top: 1px solid var(--teal-700); padding-top: 12px; flex: none; }
.sidebar__foot-label { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #5d8080; padding: 0 8px 5px; }
.sidebar__foot select { background: var(--teal-800); border-color: var(--teal-700); color: #fff; font-size: 12.5px; padding: 7px 8px; }
.sidebar__foot-note { padding: 10px 8px 0; color: #7fa0a0; font-size: 11px; }
.clock-btn { width: 100%; background: var(--teal-800); border: 1px solid var(--teal-700); color: #cfe0da; padding: 8px; border-radius: 6px; font-size: 12.5px; font-weight: 500; text-align: center; }
.clock-btn:hover { background: var(--teal-700); color: #fff; }
.clock-btn.is-on { background: var(--teal); border-color: var(--teal); color: #fff; }
.main { padding: 22px 26px 70px; max-width: 1560px; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 21px; letter-spacing: -.02em; }
.page-head p { margin: 3px 0 0; color: var(--ink3); font-size: 12.5px; }
.card__head { padding: 11px 14px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.card__head h2 { margin: 0; font-size: 13.5px; font-weight: 600; }
.card__head h2 a { color: var(--ink); text-decoration: none; }
.card__body { padding: 14px; }
.btn { display: inline-block; text-decoration: none; }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--grey-lt); border-color: var(--line); }
.btn--small { padding: 4px 9px; font-size: 11.5px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.table-scroll { overflow: auto; max-height: 66vh; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.pill--in { background: var(--green-lt); color: #1b8552; }
.pill--pend { background: var(--amber-lt); color: #9a6210; }
.pill--out { background: var(--red-lt); color: #a83b2a; }
.pill--none { background: var(--grey-lt); color: var(--ink3); }
.pill--teal { background: var(--teal-lt); color: var(--teal); }
.stat { display: block; color: inherit; text-decoration: none; border: 0; text-align: left; }
.tile { display: block; color: inherit; text-decoration: none; }
.stat--bad b { color: var(--red); }
.stat--good b { color: #1b8552; }
.tabs a { display: inline-block; text-decoration: none; background: none; border-bottom: 2px solid transparent; padding: 8px 13px; color: var(--ink3); font-size: 13px; font-weight: 500; }
.tabs a:hover, .tabs a.is-active { color: var(--ink); border-bottom-color: var(--teal); }
.sev--critical { background: var(--red); }
.sev--high { background: #e2703a; }
.sev--medium { background: var(--amber); }
.sev--low { background: var(--grey); }
.matrix { border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
.matrix th, .matrix td { border-bottom: 1px solid var(--line); }
.matrix .col-payer { position: sticky; left: 0; z-index: 3; background: #fff; min-width: 210px; max-width: 210px; border-right: 2px solid var(--line); }
.matrix thead .col-payer { z-index: 5; background: var(--grey-lt); }
.matrix thead th { position: sticky; top: 0; z-index: 4; background: var(--grey-lt); }
.matrix .col-fix { min-width: 62px; text-align: center; padding: 8px 4px; }
.matrix .col-provider { min-width: 104px; text-align: center; padding: 7px 6px; border-left: 1px solid var(--line); }
.matrix .col-provider b { display: block; font-family: var(--sans); font-size: 11.5px; color: var(--ink); text-transform: none; letter-spacing: 0; }
.matrix .col-provider em { font-style: normal; font-size: 9.5px; color: var(--ink3); font-family: var(--mono); }
.matrix .cell { padding: 3px; text-align: center; border-left: 1px solid var(--line); }
.matrix .cell.sep { border-left: 2px solid var(--line); }
.matrix tr.matrix-problem .col-payer { box-shadow: inset 3px 0 0 var(--red); }
.finding-link { font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.dashboard-section-title { font-size: 11px; letter-spacing: .11em; text-transform: uppercase; color: var(--ink3); margin: 18px 0 8px; }
.settings-lists__intro { margin: 0 0 14px; }
.settings-lists #vocab-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.settings-lists .chip { border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink3); padding: 7px 12px; font: 500 12px var(--sans); cursor: pointer; }
.settings-lists .chip:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-lt); }
.settings-lists .chip--active, .settings-lists .chip--active:hover { border-color: var(--teal); color: #fff; background: var(--teal); }
.settings-lists .chip:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.settings-lists table th:last-child, .settings-lists table td:last-child { text-align: right; }
.settings-lists table td:nth-child(2) { color: var(--ink3); font-family: var(--mono); font-size: 11.5px; }
.settings-lists .vocab-actions { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.abnormality-group { padding-top: 8px; border-top: 1px solid var(--line); }
.abnormality-group > b { display: inline-block; padding: 0 14px 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); }
.abnormality-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 12px; border-top: 1px solid var(--line); }
.abnormality-row:first-of-type { border-top: 0; }
.abnormality-row > div { min-width: 0; }
.abnormality-row a:not(.btn) { color: var(--ink); font-size: 13px; font-weight: 500; text-decoration: underline; }
.abnormality-row .sev { width: 3px; height: 27px; border-radius: 2px; }
.cell-btn { width: 100%; border: 1px solid transparent; border-radius: 5px; padding: 5px 3px; background: var(--grey-lt); font-family: var(--mono); font-size: 10.5px; font-weight: 600; color: var(--ink3); }
.matrix a.cell-btn { display: block; text-decoration: none; }
.task-status { width: 125px; padding: 5px 7px; font-size: 11.5px; }
.cell-btn:hover { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal-lt); }
.cell-btn--in { background: var(--green-lt); color: #1b8552; }
.cell-btn--pend { background: var(--amber-lt); color: #9a6210; }
.cell-btn--out { background: var(--red-lt); color: #a83b2a; }
.cell-btn--none { background: var(--grey-lt); color: #9aaaab; }
.header-bar { background: var(--teal-800); color: #fff; border-radius: var(--r); padding: 14px 16px; margin-bottom: 14px; }
.header-bar h2 { margin: 0 0 2px; font-size: 17px; }
.header-bar .ids { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-top: 12px; }
.header-bar .ids div span { display: block; font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: #7fa0a0; }
.header-bar .ids div b { font-family: var(--mono); font-size: 13px; font-weight: 500; }
.acc__body { padding: 0 14px 14px; border-top: 1px solid var(--line); }
.field { display: block; margin-bottom: 11px; }
.field > span { display: block; font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink3); margin-bottom: 4px; }
.bar i.is-warn { background: var(--amber); }
.bar i.is-bad { background: var(--red); }
.provider-row { cursor: pointer; }
.provider-row a b{ color: var(--ink); text-decoration: none; font-weight: 500;}
.provider-row a {text-decoration: none; }
.provider-row:hover { background: var(--teal-lt); }
.provider-detail [hidden], .provider-directory[hidden] { display: none !important; }
.vault-alert { background: var(--red-lt); border-radius: 6px; padding: 9px; margin-bottom: 10px; }
.vault-alert b { color: #a83b2a; }
.vault-card--flagged { border-color: var(--red); }
.form-dialog { border: 0; border-radius: 12px; padding: 0; width: min(520px, 92vw); box-shadow: var(--shadow); color: var(--ink); }
.form-dialog::backdrop { background: rgba(0, 41, 46, .42); }
.form-dialog footer { border-top: 1px solid var(--line); padding: 12px 18px; display: flex; gap: 8px; justify-content: flex-end; }
.form-dialog .x { background: none; border: 0; color: var(--ink3); font-size: 20px; }
.form-drawer > form { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.form-drawer header, .form-modal header { padding: 15px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.form-drawer header h3, .form-modal header h3 { margin: 0; font-size: 15px; }
.form-drawer .dbody { padding: 18px; overflow-y: auto; flex: 1; }
.form-drawer footer, .form-modal footer { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; }
.form-modal > form { display: flex; flex-direction: column; max-height: 90vh; }
.form-modal .dbody { padding: 18px; overflow-y: auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.form-grid .field { min-width: 0; }
.form-section-title { margin: 18px 0 8px; font-size: 13px; }
.form-check { display: flex; align-items: flex-start; gap: 8px; margin: 11px 0; }
.form-check input { width: auto; margin: 3px 0 0; }
.form-payers { max-height: 210px; overflow: auto; border: 1px solid var(--line); border-radius: 6px; padding: 9px; }
.wizard-progress { display: flex; gap: 4px; margin-bottom: 16px; }
.wizard-progress__step { flex: 1; min-width: 0; text-align: center; }
.wizard-progress__step > div { height: 3px; border-radius: 2px; background: var(--line); }
.wizard-progress__step.is-done > div { background: var(--teal); }
.wizard-progress__step span { display: block; margin-top: 4px; font-size: 10px; }
.wizard-card { padding: 11px 13px; margin-bottom: 8px; }
.wizard-card--accent { border-color: var(--teal); }
.wizard-card .field:last-child { margin-bottom: 0; }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .main { padding: 16px; }
}
.hr-profile-photo-wrap { display: grid; justify-items: start; gap: 8px; margin: 0 0 16px; }
.hr-profile-photo { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.hr-profile-photo--empty { display: grid; place-items: center; background: var(--soft, #eef2f2); color: var(--ink, #18343a); font-size: 24px; font-weight: 700; }
.hr-profile-photo-upload { margin: 0; }
.hr-people-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 12px; }
.hr-people-filters input { width: min(280px, 100%); }
.hr-people-filters select { width: min(220px, 100%); }
