:root {
  font-family:"Source Sans 3","PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  color:#152b38;
  background:#f3f6f7;
  font-size:15px;
  line-height:1.55;
  font-synthesis:none;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
}
button,input,textarea,select {
  font:inherit;
}
button {
  cursor:pointer;
  border:1px solid #b6c9cc;
  color:#235960;
  border-radius:.4rem;
  background:#fff;
  padding:.43rem .86rem;
  font-weight:550;
  line-height:1.5;
}
button:hover:not(:disabled) {
  background:#e8f5f2;
  border-color:#22766d;
}
button:disabled {
  opacity:.55;
  cursor:wait;
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline:3px solid #30a09c;
  outline-offset:2px;
}
button.primary {
  background:#126d65;
  color:#fff;
  border-color:#126d65;
}
button.primary:hover {
  background:#0d5952;
}
.wide {
  width:100%;
}
.mast {
  min-height:64px;
  background:#143943;
  color:white;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:.65rem clamp(1rem,4vw,4rem);
  gap:1rem;
}
.brand,.user,.inline,.tabs,.section-head,.pagehead,.check {
  display:flex;
  align-items:center;
  gap:.75rem;
}
.brand strong {
  font-size:1.13rem;
  letter-spacing:.04em;
}
.mark {
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  color:#143943;
  background:#baece0;
  font-size:25px;
  border-radius:8px;
}
.divider {
  height:1.1rem;
  border-left:1px solid #76969a;
}
.brand>span:last-child,.user {
  font-size:.92rem;
}
.plain {
  background:transparent;
  color:#fff;
  border:1px solid #81a6a7;
}
.plain:hover:not(:disabled) {
  color:#143943;
}
.tabs {
  background:#fff;
  padding:0 clamp(1rem,4vw,4rem);
  border-bottom:1px solid #d7e1e4;
  gap:1.7rem;
  overflow:auto;
}
.tabs button {
  padding:1rem .1rem;
  border:0;
  border-radius:0;
  border-bottom:3px solid transparent;
  white-space:nowrap;
  color:#556975;
}
.tabs button.active {
  color:#0d665e;
  border-bottom-color:#10776c;
}
.workspace {
  max-width:1470px;
  margin:auto;
  padding:1.8rem clamp(1rem,4vw,4rem) 4rem;
}
.pagehead,.section-head {
  justify-content:space-between;
}
.pagehead {
  margin-bottom:1.15rem;
}
.small,dt,small,.hint,.muted {
  color:#526775;
}
.small {
  font-size:.78rem;
  letter-spacing:.08em;
  font-weight:650;
}
.panel,.login-card {
  background:white;
  border:1px solid #d7e1e3;
  border-radius:12px;
  padding:1.4rem;
  min-width:0;
}
.panel {
  margin-bottom:1rem;
}
.split {
  display:grid;
  grid-template-columns:minmax(235px,28%) minmax(0,1fr);
  align-items:start;
  gap:1rem;
}
.queue-item {
  display:block;
  width:100%;
  text-align:left;
  border:0;
  border-top:1px solid #e0e8e9;
  border-radius:0;
  padding:.8rem .6rem;
  overflow-wrap:anywhere;
}
.queue-item.chosen {
  background:#edf7f4;
  border-left:3px solid #147a6d;
}
.queue-item span {
  font-weight:650;
}
.queue-item small,td small,.record-list small {
  display:block;
  font-size:.82rem;
  margin-top:.13rem;
}
.count,.pill {
  background:#e1f3ef;
  border-radius:20px;
  padding:.15rem .65rem;
  color:#12675d;
  font-size:.83rem;
  font-weight:650;
}
.blank,.empty,.muted {
  color:#59707a;
}
.blank {
  padding:3rem 1.6rem;
}
.empty {
  padding:1.3rem .2rem;
}
.case-id {
  overflow-wrap:anywhere;
  line-height:1.32;
}
h1,h2,h3,p {
  margin:.3rem 0 .9rem;
}
h1 {
  font-size:clamp(1.7rem,2.8vw,2.6rem);
  line-height:1.2;
}
h2 {
  font-size:1.2rem;
}
h3 {
  font-size:1.02rem;
  margin:1.6rem 0 .55rem;
  border-top:1px solid #dce5e7;
  padding-top:1rem;
}
label {
  display:block;
  font-size:.9rem;
  color:#344e59;
  margin:.3rem 0 .85rem;
  font-weight:600;
}
input,select,textarea {
  display:block;
  width:100%;
  max-width:38rem;
  margin-top:.3rem;
  border:1px solid #adbec3;
  border-radius:.35rem;
  padding:.55rem .65rem;
  color:#1c343d;
  background:#fff;
}
textarea {
  min-height:70px;
  resize:vertical;
}
input[type=checkbox] {
  width:auto;
  margin:0;
}
p.prose,dd {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}
.meta {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(130px,1fr));
  gap:.8rem;
  margin:1rem 0;
  background:#f3f7f7;
  border-radius:7px;
  padding:.85rem;
}
.meta dt,.text-dl dt {
  font-size:.82rem;
}
.meta dd,.text-dl dd {
  margin:0;
}
.text-dl dd {
  margin-bottom:.7rem;
}
.inline {
  flex-wrap:wrap;
}
.inline label {
  margin:0;
}
.record-list {
  margin:.4rem 0;
  padding:0;
  list-style:none;
}
.record-list li {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:.7rem 0;
  border-bottom:1px solid #e0e8e9;
  overflow-wrap:anywhere;
}
.scroll {
  overflow-x:auto;
}
table {
  width:100%;
  border-collapse:collapse;
  font-size:.92rem;
}
th,td {
  padding:.66rem .6rem;
  text-align:left;
  vertical-align:top;
  border-bottom:1px solid #dde5e7;
}
th {
  color:#4b626a;
  background:#f4f7f7;
  font-size:.83rem;
  white-space:nowrap;
}
td button {
  white-space:nowrap;
}
.gridform,.formbox {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(175px,1fr));
  align-items:end;
  gap:.6rem 1rem;
}
.gridform>button,.formbox>button {
  justify-self:start;
  align-self:center;
}
.gridform .check {
  display:flex;
}
.hint,.muted {
  font-size:.92rem;
}
.notice,.attention,.error {
  border-radius:.35rem;
  padding:.65rem .85rem;
}
.notice {
  background:#e4f4ed;
  color:#1c5a44;
}
.attention {
  background:#fff6dd;
  color:#785411;
}
.error {
  color:#882d26;
  background:#ffebe6;
}
.login-wrap {
  min-height:calc(100vh - 65px);
  display:grid;
  place-items:center;
  padding:2rem;
}
.login-card {
  width:min(100%,410px);
  padding:2.4rem;
  box-shadow:0 12px 50px #103b3c0f;
}
.login-card h1 {
  font-size:1.7rem;
  margin-bottom:1.6rem;
}
.login-card form>button {
  margin-top:.8rem;
}
@media(max-width:800px) {
  .split {
    grid-template-columns:1fr;
  }
  .user {
    flex-wrap:wrap;
    justify-content:end;
  }
  .brand .divider,.brand>span:last-child {
    display:none;
  }
  .queue {
    max-height:22rem;
    overflow:auto;
  }
  .record-list li {
    flex-wrap:wrap;
  }
  .workspace {
    padding-top:1rem;
  }
  .panel {
    padding:1rem;
  }
  .tabs {
    gap:1rem;
  }
  .section-head {
    flex-wrap:wrap;
  }
}
.case-tools,.case-links {margin:.8rem 0 1.1rem;display:flex;flex-wrap:wrap;gap:.65rem;align-items:center}
.source-card {background:#eef5f3;border-left:3px solid #4b9988;border-radius:4px;padding:.8rem 1rem;margin:1rem 0}
.enrollment {margin-top:1.3rem}
.mdt-recording,.mdt-live video {width:min(100%,48rem);max-height:32rem;background:#10292d;margin:.5rem 0}
.mdt-live {display:flex;flex-wrap:wrap;gap:.6rem}
.mdt-live video {max-width:24rem}
.short {min-width:5rem;max-width:9rem}

.mdt-trend{max-width:42rem;margin:1rem 0;padding:1rem;border:1px solid #d6e1e5;border-radius:8px}.mdt-trend svg{display:block;width:100%;height:auto}.mdt-trend figcaption{font-weight:600}
.followup-fields { border: 0; margin: 0; padding: 0; min-inline-size: 0; }

.wx-options{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1rem}
.wx-panel label{display:block;margin:.65rem 0}
.mdt-qrcode{display:block;width:min(100%,240px);height:auto;margin:1rem auto}

/* Doctor PC: inpatient consultation request. */
.ward-logo {
  display:block;
  flex:0 0 auto;
  width:48px;
  height:48px;
  object-fit:contain;
  border-radius:50%;
  background:white;
}
.ward-split {
  --ward-ink:#19363c;
  --ward-text:#30494f;
  --ward-muted:#53696d;
  --ward-line:#d9e4e3;
  --ward-teal:#09665c;
  display:grid;
  grid-template-columns:clamp(286px,23.4%,320px) minmax(0,1fr);
  gap:20px;
  color:var(--ward-text);
}
.ward-split > * { min-width:0; }
.ward-detail,.ward-queue {
  border:1px solid var(--ward-line);
  border-radius:12px;
  box-shadow:0 2px 6px #1b424705;
}
.ward-queue { padding:16px 10px 10px; }
.ward-queue > .section-head {
  flex-wrap:wrap;
  padding:0 8px 12px;
  margin-bottom:3px;
  border-bottom:1px solid var(--ward-line);
}
.ward-queue h2 {
  margin:0;
  color:var(--ward-ink);
  font-size:17px;
}
.ward-queue .section-head button,.ward-edit,.ward-formats button {
  padding:5px 11px;
  font-size:14px;
  line-height:1.45;
}
.ward-record {
  padding:13px 12px;
  margin:3px 0;
  border:1px solid transparent;
  border-radius:7px;
  color:var(--ward-text);
  background:transparent;
}
.ward-record.chosen {
  border:1px solid #badad3;
  box-shadow:inset 3px 0 #128071;
  background:#eaf5f1;
}
.ward-record-title,.ward-record .ward-record-meta {
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  justify-content:space-between;
  gap:4px 8px;
}
.ward-record-title strong {
  color:var(--ward-ink);
  font-size:16px;
  line-height:1.4;
  overflow-wrap:anywhere;
}
.ward-record-title span,.ward-record-meta span {
  color:var(--ward-muted);
  font-size:13px;
  font-weight:500;
}
.ward-record .ward-record-meta {
  margin-top:6px;
  color:var(--ward-muted);
  font-size:13px;
  font-weight:400;
  font-variant-numeric:tabular-nums;
}
.ward-record.chosen .ward-record-meta span { color:var(--ward-teal); }
.ward-detail { padding:22px clamp(18px,2.05vw,32px) 24px; }
.ward-detail h3 {
  margin:0 0 12px;
  padding:0;
  border:0;
  color:var(--ward-ink);
  font-size:17px;
  line-height:1.4;
  font-weight:700;
}
.ward-heading {
  display:flex;
  flex-wrap:wrap;
  gap:8px 13px;
  align-items:center;
  margin-bottom:16px;
}
.ward-heading h2 {
  margin:0;
  color:var(--ward-ink);
  font-weight:700;
  font-size:clamp(21px,1.7vw,25px);
  line-height:1.4;
}
.ward-status {
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:25px;
  padding:2px 10px;
  border:1px solid #c6dcd6;
  border-radius:6px;
  background:#edf6f2;
  color:#17614e;
  font-weight:650;
  line-height:1.45;
  font-size:13px;
}
.ward-status::before {
  width:6px;
  height:6px;
  flex:none;
  border-radius:50%;
  background:currentColor;
  content:"";
}
.ward-status[data-state="ROUTE_APPROVAL"],.ward-status[data-state="NEED_INFO"],
.ward-status[data-state="ROUTE_RECEIVE"],.ward-status[data-state="ROUTE_DISPATCH"] {
  color:#7b500b;
  border-color:#e6d19f;
  background:#fff5dc;
}
.ward-status[data-state="NOT_APPROVED"] {
  color:#873c32;
  border-color:#e5c2ba;
  background:#fbefeb;
}
.ward-demand {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:7px 14px;
  padding:15px 20px 16px;
  border-left:3px solid #288a77;
  border-radius:0 8px 8px 0;
  background:#edf6f3;
}
.ward-demand h3 {
  grid-column:1;
  grid-row:1;
  margin:0;
  color:var(--ward-teal);
  font-size:14px;
  font-weight:650;
}
.ward-demand p {
  grid-column:1 / -1;
  grid-row:2;
  margin:0;
  color:#163b38;
  font-size:clamp(17px,1.3vw,20px);
  font-weight:550;
  line-height:1.58;
  overflow-wrap:anywhere;
  white-space:pre-wrap;
}
.ward-edit {
  grid-column:2;
  grid-row:1;
  justify-self:end;
  border-color:#b1cec6;
  color:var(--ward-teal);
  background:#ffffffbd;
}
.ward-clinical { margin-top:20px; }
.ward-history {
  margin:0;
  padding:0;
  display:grid;
  gap:7px;
}
.ward-history > div {
  display:grid;
  grid-template-columns:62px minmax(0,1fr);
  align-items:baseline;
  gap:12px;
}
.ward-history dt,.ward-meta dt {
  color:var(--ward-muted);
  font-size:14px;
}
.ward-history dd {
  margin:0;
  color:var(--ward-ink);
  font-size:16px;
  line-height:1.6;
}
.ward-secondary,.ward-materials,.ward-extra:not(:empty) {
  margin-top:19px;
  padding-top:17px;
  border-top:1px solid var(--ward-line);
}
.ward-secondary {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:start;
  gap:20px;
}
.ward-meta {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:6px 15px;
  margin:0;
}
.ward-meta > div {
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:2px 8px;
  min-width:0;
}
.ward-meta dt { white-space:nowrap; }
.ward-meta dd {
  min-width:0;
  margin:0;
  color:var(--ward-text);
  line-height:1.55;
}
.ward-id { grid-column:1 / -1; }
.ward-id dd {
  font-family:ui-monospace,"SFMono-Regular",Consolas,monospace;
  font-size:13px;
  font-variant-numeric:tabular-nums;
}
.ward-exports { padding-left:18px; border-left:1px solid var(--ward-line); }
.ward-formats { display:flex; flex-wrap:wrap; gap:6px; }
.ward-extra:not(:empty) { overflow-wrap:anywhere; }
.ward-extra > :last-child { margin-bottom:0; }
.ward-extra summary {
  display:inline-flex;
  align-items:center;
  gap:9px;
  max-width:100%;
  padding:2px 0;
  list-style:none;
  cursor:pointer;
  color:var(--ward-teal);
  font-size:14px;
}
.ward-extra summary::-webkit-details-marker { display:none; }
.ward-extra summary::marker { content:""; }
.ward-extra summary::before {
  flex:0 0 auto;
  width:7px;
  height:7px;
  margin:0 2px 0 1px;
  border:solid currentColor;
  border-width:1.5px 1.5px 0 0;
  transform:rotate(45deg);
  content:"";
}
.ward-extra details[open] > summary::before { transform:rotate(135deg); }
.ward-section-title {
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:5px 12px;
  margin-bottom:11px;
}
.ward-section-title h3 { margin:0; }
.ward-section-title small,.ward-filename { color:var(--ward-muted); font-size:14px; }
.ward-materials ul:empty { display:none; }
.ward-upload {
  display:grid;
  grid-template-columns:minmax(90px,.7fr) minmax(150px,1.7fr) auto;
  align-items:end;
  gap:8px 12px;
}
.ward-upload label { margin:0; }
.ward-upload input,.ward-upload select { max-width:none; }
.ward-upload select,.ward-upload > button,.ward-picker {
  min-height:36px;
  padding:5px 10px;
}
.ward-file {
  min-width:0;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:4px 9px;
}
.ward-file > label { flex-basis:100%; }
.ward-picker {
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  border:1px solid #aebfbe;
  border-radius:5px;
  background:white;
  color:#235960;
  cursor:pointer;
  font-weight:550;
}
.ward-picker input[type="file"] {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  margin:0;
  padding:0;
  opacity:0;
  cursor:pointer;
}
.ward-picker:focus-within,.ward-extra summary:focus-visible {
  outline:3px solid #298e83;
  outline-offset:2px;
}
.ward-filename {
  min-width:0;
  overflow-wrap:anywhere;
  font-weight:400;
}
@media(max-width:1000px) {
  .ward-split { grid-template-columns:245px minmax(0,1fr); gap:12px; }
  .ward-secondary { grid-template-columns:minmax(0,1fr); gap:12px; }
  .ward-exports { padding:0; border:0; }
  .ward-exports h3 { margin-bottom:8px; }
  .ward-upload { grid-template-columns:1fr; }
  .ward-upload > button { justify-self:start; }
}
@media(max-width:800px) {
  .ward-split { grid-template-columns:minmax(0,1fr); }
  .ward-detail { padding:16px; }
  .ward-queue { margin:0; }
  .ward-meta { grid-template-columns:minmax(0,1fr); }
  .ward-demand { padding:12px; }
  .ward-history > div { grid-template-columns:47px minmax(0,1fr); gap:8px; }
  .ward-logo { width:42px; height:42px; }
}

/* Shared workstation chrome and the consultation intake views. */
.mast { background:#173b42; }
.mast .brand { flex-shrink:0; }
.mast .user { flex-wrap:wrap; justify-content:flex-end; }
.tabs { scrollbar-width:thin; }
.tabs button { flex:0 0 auto; }
.tabs button:focus-visible { outline-offset:-4px; }
.pagehead h1 { font-size:clamp(1.55rem,2.15vw,2.1rem); margin-bottom:0; }
.login-card { width:min(100%,490px); border-radius:14px; border-top:4px solid #14776a; }
.wx-options { border-bottom:1px solid #d9e4e3; padding-bottom:1rem; }
.wx-options button { padding:.45rem .65rem; }
.wx-panel { margin:.8rem 0; padding:1rem; }
.wx-panel h3 { margin-top:0; border:0; padding-top:0; }
.mdt-qrcode { max-width:240px; background:white; border:12px solid white; outline:1px solid #c5d6d3; }
.qr-validity { text-align:center; font-variant-numeric:tabular-nums; }
.file-collection { border-left:4px solid #15776b; }
.file-collection .section-head { justify-content:flex-start; flex-wrap:wrap; }
.file-collection h2 { margin:.2rem 0; }
.file-collection label,.file-collection .error,.file-collection .notice { margin:.8rem 0; }
.desk-fields { min-width:0; margin:1.1rem 0; padding:.8rem .95rem .2rem; border:1px solid #d8e3e1; border-radius:8px; }
.desk-fields legend { padding:0 .35rem; font-weight:650; color:#194d49; }
.desk-fields .gridform { margin:0; }
.request-form .form-actions { justify-content:flex-end; }
.case-filter { padding:0 .65rem .4rem; margin-bottom:.35rem; border-bottom:1px solid #d9e4e3; }
.case-filter label { margin:.5rem 0; }
.case-filter h2 { margin:.1rem 0 .7rem; }
.case-desk .record-reference,.ward-queue .record-reference { font-variant-numeric:tabular-nums; font-weight:400; font-size:.82rem; color:#53696d; }
.case-detail { color:#2e484d; }
.case-detail .case-subject { color:#19363c; font-size:1.45rem; margin:.15rem 0; }
.case-detail .meta,.other-request .meta { background:#f0f5f4; overflow-wrap:anywhere; }
.case-demand,.work-outcome { background:#edf5f2; padding:1rem; border-radius:8px; border-left:3px solid #278374; margin:1rem 0; }
.case-demand h3,.work-outcome h3,.case-block > h3:first-child { margin:0 0 .5rem; padding:0; border:0; }
.case-demand p,.work-outcome p:last-child { margin:0; }
.case-block { padding:1.3rem 0; border-top:1px solid #d9e4e3; }
.case-block form,.case-block .record-list { margin-bottom:1rem; }
.case-block > :last-child { margin-bottom:0; }
.case-block .destructive-action { border-top:1px solid #e5d4ce; padding-top:.8rem; }
.destructive-action button,.danger-button { color:#923b2b; border-color:#d5ada4; }
.case-tools { border-bottom:1px solid #dce6e4; padding-bottom:.8rem; }
.other-request > div:not(.ward-heading),.other-request > section:not(.case-demand) { margin-top:1rem; }
.task-filters,.work-row,.invitation-facts { display:flex; flex-wrap:wrap; align-items:center; gap:.55rem 1rem; }
.task-filters { align-items:flex-end; margin-bottom:1rem; }
.task-filters label { margin:0; }
.work-row { justify-content:space-between; }
.personal-tasks .queue-item { padding:.8rem .85rem; }
.personal-tasks .work-result { display:block; margin:.25rem 0; color:#244943; font-weight:500; }
.invitation-facts { margin-top:.5rem; font-size:.88rem; color:#33594f; }
@media(max-width:600px) {
  .login-wrap { padding:1rem; }
  .login-card { padding:1.2rem; }
  .mast { flex-wrap:wrap; gap:.4rem; }
  .mast .user { justify-content:flex-start; }
  .file-collection button,.form-actions button { min-height:42px; }
}

.privacy-control { margin:.65rem 0; }
.privacy-control button { color:#155e54; }
.privacy-values { max-width:38rem; margin:.5rem 0; padding:.75rem 1rem; border-left:3px solid #237e70; background:#eff6f3; }
.privacy-values p { margin:0 0 .4rem; }
.privacy-values dl { display:grid; grid-template-columns:max-content minmax(0,1fr); gap:.3rem .8rem; margin:.15rem 0 .4rem; }
.privacy-values dd { margin:0; }
@media print { [data-private-control] { display:none!important; } }
