:root {
  color-scheme: light;
  --ink: #182e2b;
  --sub: #526461;
  --border: #d3dad2;
  --page: #f6f7f1;
  --paper: #fffefa;
  --green: #174d40;
  --link: #195a4b;
  font-family: 'DM Sans', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  color: var(--ink);
  background: var(--page);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--link);
  text-decoration: none;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid #cc8826;
  outline-offset: 4px;
}
button {
  font: inherit;
  cursor: pointer;
}
.shell {
  width: min(1160px, calc(100% - 72px));
  margin-inline: auto;
}
.row-title,
footer,
.hero-actions {
  display: flex;
  align-items: center;
}
footer,
.row-title {
  justify-content: space-between;
}
.row-title a {
  font-size: 14px;
  font-weight: 650;
}
.hero {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 78% 50%, #315e52 0, #1a463e 43%, #153d37 80%);
  color: #fbfcf3;
  border-radius: 16px;
  margin-top: 26px;
  min-height: 302px;
}
.hero-copy {
  padding: 36px 0 36px clamp(25px, 4.5vw, 62px);
  z-index: 1;
}
.hero h1 {
  font-size: clamp(34px, 4.7vw, 63px);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.12;
  margin: 0 0 17px;
}
.hero p {
  color: #d6e6d9;
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 1.7;
  margin: 0;
  max-width: 29em;
}
.hero-actions {
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero-actions a {
  padding: 11px 17px;
  border: 1px solid #88a79c;
  color: #f0f7ed;
  border-radius: 7px;
  font-weight: 650;
  font-size: 14px;
}
.hero-actions a:first-child {
  color: #15372e;
  background: #ddedbe;
  border-color: #ddedbe;
}
.hero-actions span {
  margin-left: 12px;
}
.specimen {
  height: 302px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background-image: radial-gradient(#82a99742 1px, transparent 1px);
  background-size: 15px 15px;
  mask-image: linear-gradient(90deg, transparent, #000 12%);
}
.specimen img {
  position: absolute;
  inset: 4% 0;
  height: 92%;
  width: 100%;
  object-fit: contain;
  filter: drop-shadow(1px 9px 13px #0e272a6b);
}
.specimen span {
  position: absolute;
  bottom: 12px;
  right: 18px;
  font-size: 12px;
  color: #e5ecdf;
  border-bottom: 1px solid #d5ddc97d;
}
.imaging-records,
.modules,
.recent {
  margin-top: 30px;
}
#imagingRecordsList {
  background: var(--ms-paper);
  border: 1px solid var(--ms-line);
  border-radius: var(--ms-radius);
  padding: 0 18px;
}
#imagingRecordsList article {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 22px;
  padding: 16px 0;
}
#imagingRecordsList article + article {border-top:1px solid var(--ms-line)}
#imagingRecordsList h3 {font-size:17px;line-height:1.45;margin:0 0 3px;overflow-wrap:anywhere}
#imagingRecordsList time, #imagingRecordsList p {font-size:14px;color:var(--ms-secondary)}
.imaging-record-actions {display:flex;align-items:center;flex-wrap:wrap;gap:6px 9px}
.imaging-record-actions a, #imagingRecordsList button {
  display:inline-flex;align-items:center;min-height:44px;padding:7px 11px;
  border:1px solid var(--ms-line);border-radius:7px;color:var(--ms-green);
  background:var(--ms-paper);font-size:14px;font-weight:600;
}
.imaging-record-actions a.open-imaging-record {color:#fff;background:var(--ms-green);border-color:var(--ms-green)}
.imaging-record-actions a:hover, #imagingRecordsList button:hover {border-color:var(--ms-green)}
#imagingRecordsList button {margin-bottom:14px}
h2 {
  font-size: 22px;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.card {
  padding: 21px 22px 17px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.card:hover {
  border-color: #6f9581;
  transform: translateY(-2px);
}
.card h3 {
  font-size: 22px;
  margin: 11px 0 5px;
}
.card p {
  color: var(--sub);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 16px;
}
.card strong {
  font-size: 13px;
  color: var(--green);
  border-top: 1px solid #e6e9e0;
  padding-top: 13px;
  display: flex;
  justify-content: space-between;
}
.motif {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 40px;
  height: 36px;
  border-radius: 8px;
  color: #416755;
  background: #e7edde;
}
.motif i {
  display: block;
}
.layers i {
  position: absolute;
  width: 18px;
  height: 10px;
  border: 1.6px solid;
  transform: rotate(-19deg) skewX(25deg);
  background: #e7edde;
}
.layers i:first-child {
  top: 17px;
}
.layers i:nth-child(2) {
  top: 13px;
}
.layers i:nth-child(3) {
  top: 9px;
}
.films {
  background: #e6ecf0;
  color: #536875;
}
.films i {
  width: 14px;
  height: 18px;
  border: 1.6px solid;
  border-radius: 2px;
  position: absolute;
  transform: rotate(-10deg);
  left: 10px;
  top: 8px;
}
.films i + i {
  transform: rotate(11deg);
  left: 17px;
  top: 11px;
  background: #e6ecf0;
}
.tracks {
  gap: 2px;
  background: #f3e6cf;
  color: #855c34;
}
.tracks i {
  width: 2.5px;
  height: 6px;
  background: currentColor;
  border-radius: 2px;
}
.tracks i:nth-child(2) {
  height: 12px;
}
.tracks i:nth-child(3) {
  height: 21px;
}
.tracks i:nth-child(4) {
  height: 14px;
}
.tracks i:nth-child(5) {
  height: 8px;
}
.row-title h2 {
  margin: 0;
}
.row-title {
  margin-bottom: 12px;
}
#recentList {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 5px 18px;
}
#recentList p {
  font-size: 14px;
  color: var(--sub);
  line-height: 1.6;
}
.shared-records {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 18px;
}
.shared-records p, .shared-records time, .shared-records table {
  font-size: 14px;
  color: var(--sub);
}
.shared-records details { border-top: 1px solid var(--border); }
.shared-records summary { padding: 14px 0; cursor: pointer; line-height: 1.6; }
.shared-records summary strong { margin-right: 12px; }
.shared-records summary time { display: inline-block; }
.shared-records details p { margin: 0 0 8px; }
.shared-records table { width: 100%; margin-bottom: 14px; border-collapse: collapse; }
.shared-records th, .shared-records td {
  text-align: left;
  padding: 6px 4px;
  border-bottom: 1px solid var(--border);
}
#refreshSummaries {
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--paper);
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
}
.record {
  display: grid;
  grid-template-columns: 1.15fr 0.8fr 1fr 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  font-size: 14px;
}
.record + .record {
  border-top: 1px solid var(--border);
}
.record span,
.record time {
  color: var(--sub);
}
.record span:last-child {
  color: var(--link);
}
footer {
  font-size: 12px;
  color: var(--sub);
  padding-top: 18px;
  margin-top: 28px !important;
  padding-bottom: 22px;
  border-top: 1px solid var(--border);
}
@media (max-width: 780px) {
  .shell {
    width: calc(100% - 32px);
  }
  .card {
    padding: 17px 14px;
  }
  .hero-copy {
    padding: 28px 0 28px 24px;
  }
  .hero,
  .specimen {
    min-height: 248px;
  }
  .specimen {
    height: 248px;
  }
  .cards {
    gap: 9px;
  }
}
@media (max-width: 590px) {
  .hero {
    grid-template-columns: 1fr;
    overflow: hidden;
  }
  .hero-copy {
    padding: 24px 20px 20px;
  }
  .hero h1 {
    font-size: 35px;
  }
  .hero p {
    font-size: 15px;
  }
  .hero-actions {
    margin-top: 18px;
  }
  .specimen {
    height: 170px;
    min-height: 0;
    mask-image: none;
    border-top: 1px solid #96b1a136;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .card {
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto;
    column-gap: 13px;
    padding: 16px;
  }
  .card h3 {
    font-size: 19px;
    margin: 0;
  }
  .card .motif {
    grid-row: 1 / span 2;
  }
  .card p {
    grid-column: 2;
    margin: 4px 0 0;
  }
  .card strong {
    display: none;
  }
  .imaging-records,
  .modules,
  .recent {
    margin-top: 23px;
  }
  .row-title h2,
  h2 {
    font-size: 20px;
  }
  .record {
    grid-template-columns: 1fr auto;
    gap: 5px;
  }
  .record time {
    grid-row: 2;
    grid-column: 2;
  }
  .record span:last-child {
    display: none;
  }
  footer {
    gap: 10px;
    align-items: flex-start;
  }
}
@media (prefers-reduced-motion: reduce) {
  .card {
    transition: none;
  }
}
.pathways {margin-top:28px}
.pathbox {border:1px solid var(--ms-line);background:var(--ms-paper);border-radius:var(--ms-radius);padding:16px}
#pathOptions {display:flex;gap:4px;flex-wrap:wrap;padding-bottom:12px;border-bottom:1px solid var(--ms-line)}
#pathOptions button {font:600 14px/1.5 var(--ms-font);color:var(--ms-secondary);background:transparent;border:1px solid transparent;padding:7px 12px;border-radius:7px;min-height:38px}
#pathOptions button[aria-pressed=true] {color:var(--ms-green);background:#e4efdf;border-color:#c0d1bd}
#pathLinks {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}
#pathLinks a {display:grid;grid-template-columns:1fr auto;gap:4px 6px;align-content:start;border-radius:6px;padding:8px;color:var(--ms-green)}
#pathLinks a::after {content:'→';grid-area:1/2}
#pathLinks a:hover {background:#f0f4ec}
#pathLinks span {grid-column:1/-1;color:var(--ms-secondary);font-size:13px}
@media(max-width:620px){#pathLinks{grid-template-columns:1fr;gap:0}#pathOptions button {padding:7px} .pathbox{padding:10px}}
