/* Compact frame. Same ink, lime and amber as the site, without the full stylesheet or webfont. */
:root {
  --paper: #f4f6f2;
  --ink: #14261e;
  --ink-soft: #53615b;
  --lime: #d8f36a;
  --amber: #785611;
  --amber-bg: #fcf5df;
  --rule: #dce3da;
  --water: #285b45;
  --font: system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 400 0.95rem/1.4 var(--font);
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 0.5rem; top: 0.5rem; background: #fff; padding: 0.4rem 0.6rem; z-index: 2; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
main { flex: 1; overflow: auto; padding: 0.75rem 0.75rem 0.35rem; }
h1 { font-size: 1.15rem; line-height: 1.2; letter-spacing: -0.03em; margin: 0 0 0.65rem; }
form { display: grid; gap: 0.45rem; }
label, legend { font-size: 0.75rem; font-weight: 700; }
.field { display: grid; gap: 0.2rem; }
input, select, button { font: inherit; color: inherit; }
input, select {
  width: 100%;
  min-height: 44px;
  font-size: 1rem;
  border: 1px solid #d5ded3;
  border-radius: 8px;
  background: #fff;
  padding: 0.35rem 0.55rem;
}
input:focus, select:focus, button:focus-visible { outline: 3px solid #447a5c; outline-offset: 2px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; }
fieldset { border: 0; margin: 0; padding: 0; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
.choice label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0.3rem 0.45rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 600;
}
.choice input { width: 1.05rem; height: 1.05rem; min-height: 0; accent-color: var(--ink); }
.choice label:has(input:checked) { border-color: var(--ink); background: var(--lime); }
button.add, .chips button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: var(--lime);
  font-weight: 700;
  cursor: pointer;
}
button.add:disabled { opacity: 0.45; cursor: default; }
.chips { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; margin: 0; padding: 0; }
.chips:empty { display: none; }
.chips li { display: flex; align-items: stretch; background: #fff; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.chips span { padding: 0.45rem 0.15rem 0.45rem 0.55rem; font-size: 0.82rem; font-weight: 700; }
.chips button { min-height: 44px; width: 2.2rem; background: transparent; color: var(--ink-soft); font-size: 1.1rem; }
.status { min-height: 0; margin: 0; color: var(--amber); font-size: 0.75rem; }
.status:empty { display: none; }
.best { background: var(--ink); color: #fff; border-radius: 12px; padding: 0.75rem 0.85rem 0.55rem; margin-top: 0.75rem; }
.kicker { margin: 0; color: var(--lime); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.name { margin: 0.15rem 0 0; font-size: 1.02rem; font-weight: 800; letter-spacing: -0.03em; }
.total { margin: 0.1rem 0 0; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.lines, .compare { list-style: none; margin: 0.45rem 0 0; padding: 0; }
.lines li, .compare li { display: flex; justify-content: space-between; gap: 0.6rem; align-items: baseline; }
.lines { color: #c6d5c9; font-size: 0.75rem; }
.lines li { padding: 0.28rem 0; border-top: 1px solid #ffffff22; }
.lines small { display: block; font-size: 0.7rem; font-weight: 400; }
.lines li span:last-child, .compare .amt { white-space: nowrap; font-weight: 700; }
.compare li span:first-child, .name, .lines small { overflow-wrap: anywhere; }
.compare li { padding: 0.42rem 0.1rem; border-top: 1px solid var(--rule); font-size: 0.82rem; flex-wrap: wrap; }
.compare li:not(:has(.amt)) { flex-direction: column; align-items: stretch; gap: 0.15rem; }
.compare li:not(:has(.amt)) span:last-child { font-weight: 400; color: var(--ink-soft); }
.compare .is-best { font-weight: 800; }
.mark { color: var(--amber); font-weight: 800; }
.best .mark { color: var(--lime); }
.caution { margin-top: 0.55rem; padding: 0.55rem 0.65rem; background: var(--amber-bg); border-radius: 8px; font-size: 0.75rem; line-height: 1.45; }
.caution p { margin: 0.35rem 0 0; }
.caution p:first-child { margin-top: 0; }
.tag-open { display: inline-block; background: #fff; color: var(--amber); font-weight: 700; font-size: 0.68rem; padding: 0.05rem 0.35rem; border-radius: 3px; }
.caution a, .scope a, .credit a { color: var(--water); }
.empty { margin: 0.75rem 0 0; color: var(--ink-soft); font-size: 0.85rem; }
.sources, .scope { margin: 0.55rem 0 0; color: var(--ink-soft); font-size: 0.72rem; line-height: 1.4; }
.sources a { color: var(--water); }
.sources, .tie { overflow-wrap: anywhere; }
.tie { margin: 0.35rem 0 0; color: var(--lime); font-size: 0.75rem; font-weight: 700; }
.credit {
  flex: none;
  margin: 0;
  padding: 0.45rem 0.75rem calc(0.45rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule);
  background: #fff;
  font-size: 0.75rem;
}
@media (max-width: 280px) {
  .pair, .choice { grid-template-columns: 1fr; }
}
