/* Silicon-carbon lock-capacity calculator — page styles on top of lab-tool-theme. */
:root {
  color-scheme: light;
  --ink: #191919;
  --muted: #494944;
  --paper: #f3f0e8;
  --line: #191919;
  --accent: #6234d8;
}

* { box-sizing: border-box; }

body.lab-batch {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.lab-batch a { color: var(--accent); text-underline-offset: 4px; }

.lab-batch header,
.lab-batch main,
.lab-batch footer {
  width: min(1256px, calc(100% - 64px));
  margin: auto;
}

.lab-batch header { padding-top: 26px; }

.lab-batch nav.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  padding: 16px 20px;
  margin: 0 !important;
  background: #ed5a50;
  border: 2px solid var(--ink);
  border-radius: 5px;
  box-shadow: 5px 5px 0 var(--ink);
}

.lab-batch nav .brand {
  font-size: 25px !important;
  letter-spacing: -0.5px;
  text-decoration: none;
  white-space: nowrap;
}

.lab-batch nav .brand:before {
  width: 32px;
  height: 32px;
  font-size: 24px;
  margin-right: 12px;
}

.lab-batch .language {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  flex-shrink: 0;
}

.lab-batch .language a {
  display: inline-flex;
  padding: 7px 12px;
  text-decoration: none;
  font-size: 13px;
  min-height: 36px;
  align-items: center;
}

.lab-batch .language a:hover {
  background: white !important;
  color: var(--ink) !important;
}

.lab-batch .hero {
  padding: 38px 0 28px;
  max-width: 760px;
  margin-bottom: 0 !important;
}

.lab-batch .eyebrow {
  font-size: 11px;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  font-weight: 750;
  color: #4d6048;
}

.lab-batch h1 {
  font-size: 34px;
  line-height: 1.35;
  letter-spacing: -1px;
  font-weight: 850;
  margin: 12px 0;
}

.lab-batch h2 {
  font-size: 21px;
  line-height: 1.4;
  margin-top: 0;
}

.lab-batch h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.lab-batch .intro {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.lab-batch .workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.lab-batch .panel {
  background: #fff !important;
  border: 2px solid var(--ink);
  border-radius: 5px;
  padding: 26px;
  box-shadow: 4px 4px 0 var(--ink);
  min-width: 0;
}

.lab-batch .step {
  color: #43219c;
  font-size: 12px;
  letter-spacing: 1px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.lab-batch .field {
  display: block;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 750;
  min-width: 0;
}

.lab-batch .field small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.7;
}

.lab-batch .field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.lab-batch input[type="text"],
.lab-batch input[type="number"],
.lab-batch select,
.lab-batch textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font: inherit;
  margin-top: 7px;
  padding: 11px 12px;
  border: 2px solid #b9b6ad;
  border-radius: 4px;
  background: white;
  color: var(--ink);
}

.lab-batch select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #191919 50%),
    linear-gradient(135deg, #191919 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.lab-batch input:focus,
.lab-batch select:focus,
.lab-batch button:focus-visible,
.lab-batch a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.lab-batch .hint {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 14px;
}

.lab-batch .privacy {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px dashed #bbb6ad;
}

.lab-batch .disclaimer {
  font-size: 12px;
  line-height: 1.75;
  background: #fff9dd;
  border: 1px solid #e0c84a;
  border-left: 4px solid #ed5a50;
  border-radius: 4px;
  padding: 12px 14px;
  margin: 0 0 18px;
  color: #393934;
}

.lab-batch .row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin: 12px 0 18px;
}

.lab-batch button {
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: white;
  color: var(--ink);
  padding: 10px 14px;
  box-shadow: 2px 2px 0 var(--ink);
  cursor: pointer;
  min-height: 44px;
}

.lab-batch button:hover { background: #ffe372; }

.lab-batch .primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--ink);
}

.lab-batch .primary:hover {
  background: #4e24b8;
  color: #fff;
}

.lab-batch .error {
  color: #b42318;
  font-size: 13px;
  font-weight: 700;
  min-height: 1.2em;
  margin: 8px 0 0;
}

.lab-batch .metrics {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin: 0 0 18px;
}

.lab-batch .metric {
  background: #f4f1e9;
  border: 1px solid #bbb6ab;
  border-radius: 4px;
  padding: 14px 14px 12px;
  min-width: 0;
}

.lab-batch .metric .label {
  display: block;
  font-size: 12px;
  font-weight: 750;
  color: var(--muted);
  margin-bottom: 6px;
}

.lab-batch .metric .value {
  display: block;
  color: #6234d8;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 850;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.lab-batch .metric .unit {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-left: 4px;
}

.lab-batch .metric .note {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.6;
}

.lab-batch .result-intro {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 14px;
}

.lab-batch .formula-box {
  font: 13px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace;
  background: #f5f0ff;
  border: 1px solid #b7a2e4;
  border-radius: 4px;
  padding: 12px;
  margin: 0 0 16px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.lab-batch .compare-wrap {
  overflow-x: auto;
  margin-top: 8px;
  border: 1px solid #bbb6ab;
  border-radius: 4px;
}

.lab-batch table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 520px;
}

.lab-batch table.compare th,
.lab-batch table.compare td {
  border-bottom: 1px solid #ddd8cc;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.lab-batch table.compare th {
  background: #f4f1e9;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.3px;
}

.lab-batch table.compare tr.current {
  background: #fff6e8;
}

.lab-batch table.compare tr.current td:first-child {
  font-weight: 800;
}

.lab-batch .preset-note {
  font-size: 11px;
  color: var(--muted);
  margin: 10px 0 0;
  line-height: 1.7;
}

.lab-batch .guide {
  margin: 36px 0 24px;
  display: grid;
  gap: 16px;
}

.lab-batch .guide article {
  background: #fffdf8;
  border: 2px solid var(--ink);
  border-radius: 5px;
  box-shadow: 4px 4px 0 var(--ink);
  padding: 22px 24px;
}

.lab-batch .guide h2 { font-size: 19px; margin-bottom: 10px; }

.lab-batch .guide p,
.lab-batch .guide li {
  font-size: 14px;
  line-height: 1.8;
  color: #333;
}

.lab-batch .guide ol { margin: 0; padding-left: 1.25em; }

.lab-batch footer {
  display: flex;
  gap: 8px 20px;
  flex-wrap: wrap;
  padding: 10px 0 48px;
  font-size: 14px;
  font-weight: 700;
}

.lab-batch footer a { text-decoration: none; }
.lab-batch footer a:hover { text-decoration: underline; }

.lab-batch .skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 2;
  background: #fff;
  border: 2px solid #191919;
  padding: 8px 12px;
  color: #191919;
}

.lab-batch .skip-link:focus { top: 10px; }

.lab-batch .is-hidden { display: none !important; }

.lab-batch .status {
  font-size: 12px;
  color: var(--muted);
  min-height: 1.2em;
  margin: 8px 0 0;
}

@media (max-width: 900px) {
  .lab-batch .workspace { grid-template-columns: minmax(0, 1fr); }
  .lab-batch header,
  .lab-batch main,
  .lab-batch footer { width: min(1256px, calc(100% - 32px)); }
}

@media (max-width: 640px) {
  .lab-batch .field-grid,
  .lab-batch .metrics { grid-template-columns: minmax(0, 1fr); }
  .lab-batch h1 { font-size: 28px; }
}


/* --- agent-phone-compare extras --- */
.lab-batch .scenario-picks { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0 16px; }
.lab-batch .scenario-picks button[aria-pressed="true"] {
  background:#6234d8; color:#fff;
}
.lab-batch .fit-card {
  border:2px solid #191919; border-radius:5px; padding:16px; background:#fff9dd; margin-bottom:14px;
}
.lab-batch .fit-card h3 { margin:0 0 8px; font-size:18px; }
.lab-batch .score-grid {
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-top:12px;
}
.lab-batch .score-grid .metric .value { font-size:clamp(18px,2.4vw,26px); }
@media (max-width:720px){ .lab-batch .score-grid { grid-template-columns:1fr; } }
.lab-batch table.compare td.highlight { background:#fff6e8; font-weight:800; }
