/* Infrared atlas design tokens (see DESIGN.md). 8 px grid, Helvetica Neue, one teal accent.
   Use the variables and the shared classes (.ir-panel, .eyebrow, .small, .btn, .icon-btn) in every module, also the live tools. */
:root {
  --ink: #142629; --ink-2: #4c5f62; --mut: #7a8a8c; --line: #e3e8e9; --line-2: #d3dbdc;
  --subtle: #f4f7f7; --surface: rgba(255, 255, 255, .97); --teal: #1f7a85; --teal-d: #17626b; --teal-t: #e7f2f3;
  --live: #d6452b;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --r1: 6px; --r2: 8px; --r3: 12px;
  --h-ctl: 32px; --h-row: 40px;
  --shadow: 0 1px 2px rgba(20, 38, 41, .06), 0 4px 16px rgba(20, 38, 41, .08);
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-family: var(--font);
}
.ir-panel { background: var(--surface); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: var(--r3); box-shadow: var(--shadow); }
.ic { width: 18px; height: 18px; display: block; flex: none; }
i[data-icon] { display: inline-flex; }
body .eyebrow { font-family: var(--font); font-size: 11px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); font-weight: 600; }
.small, small { font-size: 12px; line-height: 16px; color: var(--mut); font-weight: 400; }
body .num { font-family: var(--font); font-variant-numeric: tabular-nums; }
/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); height: var(--h-ctl); padding: 0 var(--s3); border: 1px solid var(--line-2); border-radius: var(--r2); background: #fff; color: var(--ink); font: 500 13px/1 var(--font); cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--subtle); }
.btn.primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn.primary:hover { background: var(--teal-d); }
.btn.quiet { border-color: transparent; background: transparent; color: var(--teal); padding: 0 var(--s2); }
.btn.quiet:hover { background: var(--teal-t); }
.btn:disabled { opacity: .4; cursor: default; }
.icon-btn { width: var(--h-ctl); height: var(--h-ctl); display: inline-grid; place-items: center; border: 0; border-radius: var(--r1); background: transparent; color: var(--ink-2); cursor: pointer; padding: 0; }
.icon-btn:hover { background: var(--subtle); color: var(--ink); }
.icon-btn.on { background: var(--teal-t); color: var(--teal); }
/* tooltips: data-tip on any element; data-tip-pos="left|bottom|right" */
[data-tip] { position: relative; }
[data-tip]:hover::after { content: attr(data-tip); position: absolute; z-index: 20; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); background: var(--ink); color: #fff; font: 500 12px/16px var(--font); padding: 4px 8px; border-radius: var(--r1); white-space: nowrap; pointer-events: none; }
[data-tip-pos="left"]:hover::after { left: auto; right: calc(100% + 8px); bottom: 50%; transform: translateY(50%); }
[data-tip-pos="bottom"]:hover::after { bottom: auto; top: calc(100% + 6px); }
@media (hover: none) { [data-tip]:hover::after { display: none; } }
