.lab-modes > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 41px;
  padding: 8px 17px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
  font-size: .99rem;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
}
.lab-modes > a:hover { color: var(--green); background: #f8fbf7; }
.regular-panel {
  margin-bottom: 16px;
  padding: clamp(15px, 2.1vw, 24px);
  scroll-margin-top: 16px;
}
.regular-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px 24px;
}
.regular-head h2 {
  font-size: 1.32rem;
}
.regular-head p {
  margin: 5px 0 0;
  color: var(--muted);
}
.regular-print-tools {
  display: grid;
  flex: none;
  justify-items: center;
  gap: 3px;
}
#regular-print {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid #9eb9a9;
  border-radius: 8px;
  color: var(--green);
  background: #f3f7f1;
  font-size: .94rem;
  font-weight: 650;
}
#regular-print:hover { background: #e4f0e6; }
#regular-paper-size { color: var(--muted); font-size: .81rem; }
#regular-shapes {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 13px;
}
#regular-shapes button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 62px;
  gap: 7px;
  padding: 5px 7px;
  border: 1px solid var(--rule);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -.045em;
}
#regular-shapes button:hover { border-color: #76a794; }
#regular-shapes button[aria-pressed="true"] {
  color: #154e43;
  border-color: var(--green);
  background: #e4f1e9;
  box-shadow: inset 0 0 0 1px var(--green);
}
#regular-shapes canvas {
  width: 42px;
  height: 42px;
  flex: none;
  pointer-events: none;
}
#regular-facts {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1fr 1.55fr;
  gap: 0;
  margin: 0;
  padding: 10px 3px;
  border-radius: 9px;
  background: #f1f5ee;
}
#regular-facts > div {
  display: grid;
  align-content: start;
  gap: 1px;
  padding: 0 12px;
}
#regular-facts > div + div { border-inline-start: 1px solid #d4dfd3; }
#regular-facts dt { color: var(--muted); font-size: .87rem; }
#regular-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 740px) {
  .lab-modes { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lab-modes button, .lab-modes > a { min-height: 44px; padding: 6px 4px; font-size: .94rem; }
  #regular-shapes button { gap: 3px; font-size: .94rem; }
  #regular-shapes canvas { width: 32px; height: 32px; }
  #regular-facts > div { padding-inline: 8px; }
}
@media (max-width: 600px) {
  .regular-panel { margin-bottom: 12px; }
  .regular-head { display: grid; gap: 9px; }
  .regular-print-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
  #regular-shapes { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin: 12px 0; }
  #regular-shapes button { grid-column: span 2; min-height: 45px; padding: 5px 2px; }
  #regular-shapes button:nth-last-child(-n+2) { grid-column: span 3; }
  #regular-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 0; }
  #regular-facts > div:nth-child(4) { border-inline-start: 0; }
  #regular-facts > div:last-child { grid-column: span 2; }
}
@media (max-width: 365px) {
  #regular-shapes button { flex-direction: column; }
}
