:root{font:16px/1.55 system-ui,sans-serif;color:#183042;background:#f0f5f8}
*{box-sizing:border-box}
body{margin:0}
.wrap{width:min(1120px,calc(100% - 36px));margin:auto}
header{background:#15374c;color:#fff;padding:30px 0 26px;border-bottom:5px solid #42b5ad}
h1{font-size:clamp(1.9rem,5vw,3rem);line-height:1.12;margin:0 0 8px}
header p{margin:0;color:#deeff6}
h2{font-size:1.25rem;margin:0 0 12px}
a{color:#095b84}
.workspace{display:grid;grid-template-columns:minmax(235px,1fr) minmax(0,2.6fr);gap:16px;align-items:start}
.panel{background:white;border:1px solid #cbdce5;border-radius:12px;padding:18px;margin-bottom:16px}
label{display:block;font-weight:650;margin-top:15px}
select,input,button{font:inherit;color:inherit;border-radius:6px;border:1px solid #8ca6b7;padding:7px 9px;min-height:42px;background:white}
input,select{width:100%;margin-top:3px}
button{cursor:pointer;background:#075d66;color:white;border-color:#075d66;font-weight:650}
button:disabled{cursor:default;color:#526773;background:#eaf0f4;border-color:#cbdce5}
.secondary{background:white;color:#075d66}
.actions,.legend{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.actions{margin-top:18px}
.legend{font-size:.9rem}
.legend span::before{content:"";display:inline-block;width:.9em;height:.9em;margin-right:.4em;vertical-align:baseline;border-radius:2px}
.icf::before{background:#2f66a0}.ecf::before{background:#087c75}.baseline::before{border:1px dashed #344c5c}
canvas{display:block;width:100%;height:250px;margin:10px 0}
table{width:100%;border-collapse:collapse}
caption{text-align:left;font-weight:700;margin-bottom:5px}
th,td{padding:6px;border-bottom:1px solid #dce6ed;text-align:left}
td,thead th:not(:first-child){text-align:right;font-variant-numeric:tabular-nums}
summary{cursor:pointer;font-weight:700}
.activity{max-width:830px}
.activity section{margin:18px 0}
.activity li{margin:6px 0}
@media(max-width:720px){.workspace{grid-template-columns:1fr}}
@media print{header{background:white;color:black;padding:12px 0;border:0}header p{color:black}.panel{padding:8px;border:0}.activity section{break-inside:avoid}.print-hide{display:none}body{background:white}}
#ion-choice{max-width:320px}
@media(max-width:720px){.ion-layout{grid-template-columns:1fr}}

.figure-switch{display:flex;flex-wrap:wrap;gap:8px 18px;border:1px solid #cbdce5;border-radius:8px;margin:0;padding:4px 12px 10px}
.figure-switch legend{font-weight:650;padding:0 4px}
.figure-switch label{display:flex;align-items:center;gap:7px;margin:0;min-height:40px}
.figure-switch input{width:auto;min-height:0;margin:0;accent-color:#075d66}
.baseline-figure{margin:12px 0 0}
.baseline-figure img{display:block;width:100%;height:auto;aspect-ratio:1200 / 716;object-fit:contain;object-position:top}
.baseline-figure figcaption{font-size:.9rem;margin-top:8px}

.show-charge .legend .icf::before,.show-charge .legend .ecf::before{display:none}

.lab-header{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}
.about-dialog {
  width: min(32rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  padding: 0;
  border: 1px solid #ccd9d8;
  border-radius: 12px;
  color: #23373d;
  background: #fff;
  box-shadow: 0 18px 60px rgba(35, 55, 61, .24);
}

.about-dialog::backdrop {
  background: rgba(35, 55, 61, .58);
}

.about-content {
  padding: 24px;
}

.about-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.about-credits {
  border-top: 1px solid #dce5e4;
  padding-top: 4px;
  margin-bottom: 0;
}

.about-credits dt {
  margin-top: 12px;
  font-weight: 650;
}

.about-credits dd {
  margin: 2px 0 0;
}
.about-heading h2{margin:0}
.about-heading button{background:white;color:#29434a;border-color:#ccd9d8}
.about-heading button:hover{background:#eaf3f1}
