:root {
  color-scheme:light;
  font-family:"Inter","Segoe UI",sans-serif;
  color:#142f39;
  background:#f1f4f2;
}
#exchange, .receiver, #result { margin-block: 1rem; }
#exchange > *, .receiver label { margin-block: .6rem; }
#issued, #fields dd { overflow-wrap: anywhere; white-space: pre-line; }
#issued img, #video { display:block; width:min(100%, 240px); }
#video[hidden] { display:none; }
.receiver label { display:block; }
.receiver input { padding:.6rem; max-width:100%; }

* {
  box-sizing:border-box;
}

body {
  margin:0;
}

header {
  background:#113c43;
  color:white;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:17px max(5vw,24px);
  font-size:.85rem;
  color:#d9e8e4;
}

.brand {
  font-size:1.35rem;
  font-weight:740;
  letter-spacing:-.055em;
  color:white;
}

.brand b {
  font-weight:400;
  color:#b0e2d4;
}

main {
  max-width:1250px;
  margin:auto;
  padding:clamp(22px,4vw,52px) max(3vw,18px);
}

h1,h2,h3,p {
  margin:0;
}

h1 {
  font-size:clamp(2.25rem,5vw,4.1rem);
  line-height:1.08;
  letter-spacing:-.055em;
  font-weight:620;
}

h2 {
  font-size:1.45rem;
  letter-spacing:-.035em;
}

h3 {
  font-size:1.02rem;
}

p,.foot {
  color:#405b63;
  line-height:1.55;
}

.heading,.section-head,.panel-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.heading p:last-child {
  margin-top:12px;
}

.eyebrow,small {
  display:block;
  font-size:.75rem;
  font-weight:650;
}

.eyebrow {
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#146659;
  margin-bottom:10px;
}

.case-id {
  padding-left:18px;
  border-left:2px solid #69a69a;
  white-space:nowrap;
}

.case-id strong {
  display:block;
  font-size:1.45rem;
  margin:3px 0;
}

.case-id span,.foot {
  font-size:.83rem;
}

.status {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  background:#153e45;
  color:white;
  border-radius:12px;
  margin:26px 0 16px;
  padding:16px 0;
}

.status div {
  padding:0 22px;
}

.status div+div {
  border-left:1px solid #4b6a6c;
}

.status small {
  color:#bfdad4;
  margin-bottom:4px;
}

.status strong {
  font-size:1.02rem;
}

.layout {
  display:grid;
  grid-template-columns:1.6fr 1fr;
  gap:16px;
}

.panel {
  background:#fff;
  border:1px solid #d6dfdb;
  border-radius:12px;
  padding:clamp(18px,2.5vw,31px);
}

.panel-head {
  justify-content:flex-start;
  flex-wrap:wrap;
  margin-bottom:24px;
}

.panel-head .eyebrow {
  margin:0 auto 0 0;
}

.panel-head label {
  font-size:.82rem;
}

.panel-head select {
  max-width:100%;
  padding:8px;
  border:1px solid #afbfbb;
  border-radius:6px;
  background:white;
  color:inherit;
  font:inherit;
}

#purpose {
  margin:8px 0 16px;
}

#controls {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));
  gap:10px;
  margin-top:16px;
}
.action-group {
  background:#f7f9f7;
  border:1px solid #d8e3df;
  border-radius:8px;
  padding:12px;
}
.action-group h3 {
  color:#234f48;
  font-size:.89rem;
  margin-bottom:7px;
}
.action-group button {
  margin:3px 3px 3px 0;
  text-align:left;
}

button {
  background:#146959;
  color:white;
  border:1px solid transparent;
  border-radius:7px;
  padding:10px 13px;
  min-height:42px;
  font:inherit;
  font-size:.88rem;
  font-weight:600;
  cursor:pointer;
}

button:hover:enabled {
  background:#0b5246;
}

button:disabled {
  background:#eff2f0;
  border-color:#e0e6e3;
  color:#61706b;
  cursor:default;
}

.secondary {
  background:white;
  border-color:#b7c9c2;
  color:#154c43;
}

.secondary:hover:enabled {
  background:#e9f4ed;
}

button:focus-visible,select:focus-visible,summary:focus-visible,input:focus-visible {
  outline:3px solid #c67d16;
  outline-offset:3px;
}

.observations,details {
  border-top:1px solid #d6dfdb;
  margin-top:22px;
  padding-top:17px;
}

.observations p,details p {
  font-size:.85rem;
  margin:6px 0 10px;
}

ul,ol {
  list-style:none;
  padding:0;
  margin:0;
}

.observations li {
  font-size:.86rem;
  background:#f1f6f3;
  padding:9px;
  margin:5px 0;
  border-radius:5px;
}

dl {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  font-size:.9rem;
}

dt {
  color:#52676d;
}

dd {
  margin:0;
  font-weight:600;
}

summary {
  font-weight:650;
  cursor:pointer;
}

.toggle {
  display:block;
  font-size:.88rem;
  margin:12px 0;
}

.toggle input {
  accent-color:#146959;
}

.timeline {
  margin:16px 0;
}

.section-head {
  margin-bottom:14px;
}

.timeline li {
  display:grid;
  grid-template-columns:100px 125px 1fr;
  gap:10px;
  padding:10px 0;
  border-top:1px solid #e1e8e4;
  font-size:.87rem;
}

.timeline li:only-child {
  display:block;
}

.timeline li:only-child>* {
  margin-right:12px;
}

.timeline time {
  font-variant-numeric:tabular-nums;
  color:#4e6265;
}

.sr {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%);
}

.scenario {
  margin:8px 0 16px;
  font-size:.9rem;
}

.casebar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px;
  margin-top:24px;
  padding:12px 16px;
  border:1px solid #cbd9d3;
  border-radius:10px;
  background:#fff;
}
.casebar label, #save-status, .pager span {
  font-size:.83rem;
  color:#466059;
}
.casebar select {
  margin:4px 8px;
  padding:9px;
  border:1px solid #afbfbb;
  border-radius:6px;
  color:#123a36;
  background:white;
}
.pager {
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.pager:not(:empty) {
  margin-top:10px;
}

.next-step {
  margin-top:14px;
  padding:10px 12px;
  border-left:3px solid #5f9e90;
  background:#f0f6f3;
  font-size:.88rem;
}

@media(max-width:760px) {
  .heading {
    align-items:flex-start;
    flex-direction:column;
  }
  .case-id {
    border:0;
    padding:0;
    display:flex;
    align-items:baseline;
    gap:8px;
    flex-wrap:wrap;
    white-space:normal;
  }
  .case-id strong {
    font-size:1rem;
  }
  .layout {
    grid-template-columns:1fr;
  }
  .status div {
    padding:0 9px;
  }
  .status strong {
    font-size:.86rem;
  }
  .timeline li {
    grid-template-columns:90px 1fr;
  }
  .timeline li span {
    grid-column:1/-1;
  }
  .panel-head {
    gap:8px;
  }
  .section-head {
    flex-wrap:wrap;
  }
}


header a {color: inherit; text-underline-offset: .18em;}
