body { margin: 0; font: 13px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
       background: var(--lattice-background, #fff); color: var(--lattice-foreground, #14171a); }
header { padding: 10px 14px 6px; border-bottom: 1px solid var(--line, #dfe3e6); }
h1 { font-size: 1.05rem; margin: 0 0 3px; }
.lede { margin: 0 0 6px; color: var(--lattice-foreground-muted, #5b6570); max-width: 110ch; font-size: 12.5px; }
.bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0; }
.bar select { font: inherit; padding: 2px 6px; }
#summary { font-variant-numeric: tabular-nums; font-weight: 600; }
.about { padding: 6px 14px; border-bottom: 1px solid var(--line, #dfe3e6); }
.about summary { cursor: pointer; font-size: 12.5px; font-weight: 600; }
.about p { margin: 6px 0 0; max-width: 110ch; color: var(--lattice-foreground-muted, #5b6570); font-size: 12.5px; }
.layout { display: grid; grid-template-columns: 1.7fr 1fr; grid-template-rows: 266px 266px 166px; gap: 8px; padding: 8px 14px; }
#grid-panel { grid-row: 1 / 4; }
.panel { border: 1px solid var(--line, #dfe3e6); border-radius: 6px; display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.panel__head { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; padding: 5px 8px;
               color: var(--lattice-foreground-muted, #5b6570); border-bottom: 1px solid var(--line, #dfe3e6); }
.panel__note { margin: 0; padding: 4px 8px; font-size: 11.5px; line-height: 1.35;
               color: var(--lattice-foreground-muted, #5b6570); border-bottom: 1px solid var(--line, #dfe3e6); }
.panel__body { flex: 1 1 auto; min-height: 0; position: relative; overflow: auto; }
#grid, #fit, #influence { position: absolute; inset: 0; }
#compare { padding: 8px 10px; line-height: 1.5; font-variant-numeric: tabular-nums; }
footer { font-size: 11px; color: var(--lattice-foreground-muted, #5b6570); padding: 0 14px 14px; }
footer a { color: var(--lattice-accent, #1f6feb); }
@media (max-width: 800px) {
  .layout { grid-template-columns: 1fr; grid-template-rows: 538px 278px 278px 188px; }
  #grid-panel { grid-row: auto; }
}
/* Links stay readable on the dark page. */
.about a { color: var(--lattice-accent, #1f6feb); }
:root[data-theme="dark"] .about a, :root[data-theme="dark"] footer a { color: #79b8ff; }
