/* MeatTracking — high-contrast kiosk theme, mobile-first, tablet-primary.
   See DESIGN.md. No framework, no CDN. */
:root {
  --bg: #0c0a09;
  --panel: #17120e;
  --panel-2: #221b15;
  --line: #352c24;
  --ink: #f7f1ea;
  --muted: #a99a8a;
  --brisket: #ff7e47;   /* probe 1 / primary meat */
  --pork: #ffd15c;      /* probe 2 */
  --pit: #5cc1ea;       /* pit / fire */
  --target: #8fd84f;    /* target */
  --ambient: #a596ff;   /* outside air */
  --critical: #ff4d35;
  --warning: #ffb02e;
  --success: #8fd84f;
}

* { box-sizing: border-box; }

/* The `hidden` attribute must always win over component display rules
   (e.g. .btn/.field set display, which would otherwise override it). */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-variant-numeric: tabular-nums;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

/* --- top nav ------------------------------------------------------------ */
.topnav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 16px; background: var(--panel); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
}
.topnav .brand { font-weight: 800; letter-spacing: .3px; }
.topnav .tabs { display: flex; gap: 6px; }
.topnav .tab {
  padding: 9px 16px; border-radius: 999px; color: var(--muted); text-decoration: none;
  font-size: .92rem; font-weight: 700; border: 1px solid transparent; min-height: 40px;
  display: inline-flex; align-items: center;
}
.topnav .tab:hover { color: var(--ink); background: var(--panel-2); }
.topnav .tab.active { color: var(--ink); background: var(--panel-2); border-color: var(--line); }

/* --- kiosk layout ------------------------------------------------------- */
.kiosk { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 12px 16px 20px; }

.statusbar { display: flex; align-items: center; gap: 12px; }
.statusbar .cook { font-size: 1.1rem; font-weight: 700; min-width: 0; }
.statusbar .cook .muted { font-weight: 400; font-size: .9rem; }
.statusbar .status-right { margin-left: auto; text-align: right; display: flex; align-items: baseline; gap: 12px; }
.statusbar .elapsed { font-size: 1.25rem; font-weight: 700; }
.muted { color: var(--muted); }

.phase {
  text-transform: uppercase; letter-spacing: .08em; font-size: .74rem; font-weight: 800;
  padding: 4px 12px; border-radius: 999px; background: var(--panel-2); color: var(--muted);
  border: 1px solid var(--line); white-space: nowrap;
}
.phase.phase-ramp  { background: #13303d; color: #7fd4f0; border-color: #1d4a5e; }
.phase.phase-stall { background: #3d3112; color: #ffce6b; border-color: #5e4a1d; }
.phase.phase-climb { background: #3d2415; color: #ff9e6b; border-color: #5e3a25; }
.phase.phase-done  { background: #1f3d12; color: #a6f06b; border-color: #2f5e1d; }

.end-cook {
  padding: 7px 14px; min-height: 38px; font-size: .82rem; font-weight: 700; cursor: pointer;
  color: var(--ink); background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px;
}
.end-cook:hover { border-color: var(--critical); color: #ffd9d2; }
.conn { font-size: .8rem; color: var(--muted); }
.conn::before { content: "●"; margin-right: 5px; color: #c0653a; }
.conn.live::before { color: var(--success); }
.conn.stale::before { color: var(--warning); }

/* --- alerts ------------------------------------------------------------- */
.alerts { display: flex; flex-direction: column; gap: 8px; }
.alerts:empty { display: none; }
.alert {
  padding: 11px 14px; border-radius: 10px; font-size: 1rem; font-weight: 600;
  background: var(--panel-2); border-left: 5px solid var(--muted);
}
.alert.info     { border-left-color: var(--pit); }
.alert.success  { border-left-color: var(--success); background: #1c2e12; }
.alert.warning  { border-left-color: var(--warning); background: #332710; }
.alert.critical { border-left-color: var(--critical); background: #3a160f; color: #ffd9d2; }

/* --- hero (glanceable-first) -------------------------------------------- */
.hero { display: grid; grid-template-columns: 1fr; gap: 12px; }
.tile {
  background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--muted);
  border-radius: 14px; padding: 14px 16px; min-width: 0;
}
.tile .lbl { color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }
.tile .big {
  font-size: clamp(2.4rem, 8vw, 4rem); font-weight: 800; line-height: 1.05; margin: 4px 0 2px;
  letter-spacing: -.02em;
}
.tile .sub { color: var(--muted); font-size: .92rem; min-height: 1.1em; }
.tile.brisket { border-top-color: var(--brisket); }
.tile.brisket .big { color: var(--brisket); }
.tile.pit { border-top-color: var(--pit); }
.tile.pit .big { color: var(--pit); }
.tile.eta { border-top-color: var(--target); }
.tile.eta .big { color: var(--ink); }

/* --- cook main: thermometer probes to the LEFT of the timeline ---------- */
.cook-main { display: flex; gap: 12px; height: clamp(220px, 42vh, 420px); }
.probes {
  flex: 0 0 auto; display: flex; gap: 6px; align-items: stretch;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 8px;
}
.probe {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 0 6px; color: var(--muted);
}
.probe.brisket { color: var(--brisket); }
.probe.pork { color: var(--pork); }
.probe.pit { color: var(--pit); }
.probe-temp { font-size: 1.55rem; font-weight: 800; color: currentColor; line-height: 1; }
.probe-name { font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); text-align: center; }
.probe-sub { font-size: .68rem; color: var(--muted); text-align: center; min-height: 1em; }
/* the thermometer itself */
.thermo { position: relative; width: 26px; flex: 1; min-height: 90px; }
.thermo .tube {
  position: absolute; left: 50%; transform: translateX(-50%); top: 0; bottom: 24px; width: 12px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 7px; overflow: hidden;
}
.thermo .fill {
  position: absolute; left: 0; right: 0; bottom: 0; height: 0;
  background: currentColor; transition: height .4s ease;
}
.thermo .bulb {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 26px; height: 26px; border-radius: 50%; background: currentColor; border: 1px solid var(--line);
}

/* --- secondary minis ---------------------------------------------------- */
.secondary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini {
  background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--muted);
  border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px;
}
.mini .lbl { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.mini .val { font-size: 1.5rem; font-weight: 700; }
.mini.pork { border-left-color: var(--pork); }
.mini.target { border-left-color: var(--target); }
.mini.ambient { border-left-color: var(--ambient); }
.mini.pellet { border-left-color: var(--muted); }

/* --- library-driven guidance line --------------------------------------- */
.guide { color: var(--muted); font-size: .9rem; }
.guide:empty { display: none; }
.guide b { color: var(--ink); font-weight: 700; }

/* --- chart (capped — never the whole screen) ---------------------------- */
.chart-wrap {
  flex: 1; min-width: 0; height: 100%;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 8px;
}
#chart { width: 100%; height: 100%; display: block; }

/* --- Cook History page --------------------------------------------------- */
.history-wrap { max-width: 720px; margin: 0 auto; padding: 20px 16px 60px; width: 100%; }
.history-wrap h1 { margin: 0 0 4px; font-size: 1.5rem; }
.history-wrap > .muted { margin: 0 0 18px; }
.hist-empty { color: var(--muted); padding: 30px 0; text-align: center; }
.hist-empty a { color: var(--brisket); }
.hist-card {
  background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--brisket);
  border-radius: 12px; padding: 14px 16px; margin: 0 0 14px;
}
.hist-top { display: flex; align-items: center; gap: 10px; }
.hist-name { font-size: 1.15rem; font-weight: 700; flex: 1; min-width: 0; }
.hist-badge {
  text-transform: uppercase; letter-spacing: .06em; font-size: .68rem; font-weight: 800;
  padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line);
}
.hist-badge.done { background: #1f3d12; color: #a6f06b; border-color: #2f5e1d; }
.hist-badge.active { background: #3d2415; color: #ff9e6b; border-color: #5e3a25; }
.hist-when { font-size: .85rem; margin: 2px 0 10px; }
.hist-probes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.hist-probe {
  font-size: .9rem; font-weight: 600; padding: 4px 10px; border-radius: 8px;
  background: var(--panel-2); border-left: 3px solid var(--brisket);
}
.hist-probe.alt { border-left-color: var(--pork); }
.hist-meta { font-size: .85rem; }
.hist-setupnote { margin-top: 8px; font-size: .9rem; color: var(--muted); }
.hist-nonotes { margin-top: 10px; font-size: .85rem; }
.hist-notes { margin-top: 10px; }
.hist-notes summary {
  cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--pit); padding: 4px 0;
}
.hist-notes summary:hover { color: var(--ink); }
.hist-note-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hist-note {
  background: var(--panel-2); border-left: 3px solid var(--pit); border-radius: 8px; padding: 8px 12px;
}
.hist-add { display: flex; gap: 8px; margin-top: 10px; }
.hist-add .hist-note-in {
  flex: 1; min-width: 0; padding: 9px 11px; font-size: .95rem; font-family: inherit; resize: vertical;
  color: var(--ink); background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px;
}
.hist-add .hist-note-in:focus { outline: none; border-color: var(--brisket); box-shadow: 0 0 0 3px rgba(255,126,71,.2); }
.hist-add .hbtn.add { align-self: flex-end; }
.hist-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.hbtn {
  padding: 8px 14px; min-height: 40px; font-size: .85rem; font-weight: 600; cursor: pointer;
  color: var(--ink); background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px;
}
.hbtn:hover { border-color: var(--muted); }
.hbtn.danger { color: #ffd9d2; }
.hbtn.danger:hover { background: #3a160f; border-color: var(--critical); }

/* --- cook log: timestamped notes (F11) ---------------------------------- */
.notelog {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
}
.notelog-head {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700;
  color: var(--muted); margin-bottom: 10px;
}
.note-input { display: flex; gap: 10px; align-items: stretch; }
.note-input textarea {
  flex: 1; min-width: 0; padding: 11px 12px; font-size: 1rem; font-family: inherit; resize: vertical;
  color: var(--ink); background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px;
}
.note-input textarea:focus {
  outline: none; border-color: var(--brisket); box-shadow: 0 0 0 3px rgba(255, 126, 71, .2);
}
.note-input .btn { flex: 0 0 auto; align-self: flex-end; }
.note-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.note-list:empty { display: none; }
.note-item {
  background: var(--panel-2); border-left: 3px solid var(--brisket); border-radius: 8px; padding: 8px 12px;
}
.note-meta {
  font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; margin-bottom: 2px;
}
.note-body { font-size: .96rem; color: var(--ink); white-space: pre-wrap; word-break: break-word; }

/* --- glossary info buttons + popovers (shared) -------------------------- */
.term { position: relative; }
.info {
  cursor: pointer; border: 0; background: none; color: var(--pit);
  font-size: .95em; line-height: 1; padding: 0 1px 0 3px; vertical-align: baseline;
}
.info:hover { color: var(--ink); }
.tip {
  display: none; position: absolute; left: 0; top: 1.4em; z-index: 20;
  width: 280px; max-width: 74vw; background: #1a1613; border: 1px solid var(--line);
  border-radius: 9px; padding: 10px 12px; font-size: .82rem; font-weight: 400;
  color: var(--ink); line-height: 1.45; white-space: normal;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .5);
}
.term.open .tip { display: block; }

/* --- cook-setup screen (F1) --------------------------------------------- */
.setup-wrap { max-width: 580px; margin: 0 auto; padding: 20px 16px 60px; width: 100%; }
.setup-wrap h1 { margin: 0 0 4px; font-size: 1.5rem; }
.setup-wrap > .muted { margin: 0 0 18px; }
.field { display: block; margin: 0 0 16px; }
.field > span { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: 12px; font-size: 1rem; color: var(--ink); min-height: 46px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 9px;
}

/* Custom-styled dropdowns (kiosk look) — replaces the native select chrome. */
.setup-wrap select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  width: 100%; min-height: 46px; padding: 12px 40px 12px 13px;
  font-family: inherit; font-size: 1rem; font-weight: 600; color: var(--ink); cursor: pointer;
  background-color: var(--panel);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%3E%3Cpath%20d='M2.5%204.5L6%208l3.5-3.5'%20fill='none'%20stroke='%23a99a8a'%20stroke-width='1.6'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px;
  border: 1px solid var(--line); border-radius: 9px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.setup-wrap select:hover { border-color: var(--muted); }
.setup-wrap select:focus {
  outline: none; border-color: var(--brisket); box-shadow: 0 0 0 3px rgba(255, 126, 71, .22);
}
.setup-wrap select::-ms-expand { display: none; }
.setup-wrap option { background: var(--panel-2); color: var(--ink); font-weight: 600; }
fieldset.field { border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; }
fieldset.field legend { color: var(--muted); font-size: .85rem; padding: 0 6px; }
.radio { display: flex; align-items: center; gap: 10px; padding: 9px 2px; cursor: pointer; min-height: 44px; }
.radio input { width: auto; min-height: 0; transform: scale(1.2); }
.recs { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; }
.rec-row { display: flex; gap: 8px; align-items: baseline; padding: 4px 0; font-size: .95rem; }
.rec-row > span:first-child { color: var(--muted); min-width: 110px; }
.rec-row.safe b { color: var(--success); }
#time-est { margin-top: 6px; font-size: .92rem; }
#submit {
  width: 100%; padding: 14px; font-size: 1.05rem; font-weight: 800; cursor: pointer; min-height: 50px;
  color: #1a1410; background: var(--brisket); border: 0; border-radius: 10px;
}
#submit:disabled { opacity: .4; cursor: not-allowed; }
.form-error { color: var(--critical); font-size: .9rem; margin-top: 10px; min-height: 1em; }
.created { max-width: 580px; margin: 0 auto; }
.created h2 { margin: 0 0 8px; }
.created pre { background: var(--panel-2); padding: 12px 14px; border-radius: 9px; overflow-x: auto; font-size: .9rem; }
.created-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.btn { padding: 12px 18px; border-radius: 10px; text-decoration: none; font-weight: 700; min-height: 46px;
  display: inline-flex; align-items: center; background: var(--brisket); color: #1a1410; }
.btn.ghost { background: var(--panel-2); color: var(--ink); border: 1px solid var(--line); }
.btn.start { background: var(--brisket); color: #1a1410; font-weight: 800; }

/* --- cook-setup wizard --------------------------------------------------- */
.wiz-steps {
  list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 20px;
  counter-reset: step;
}
.wiz-steps li {
  flex: 1; display: flex; align-items: center; gap: 8px; justify-content: center;
  padding: 9px 6px; border-radius: 9px; background: var(--panel); border: 1px solid var(--line);
  color: var(--muted); font-size: .82rem; font-weight: 700; white-space: nowrap;
}
.wiz-steps li .n {
  display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px;
  border-radius: 50%; background: var(--panel-2); color: var(--muted); font-size: .8rem;
}
.wiz-steps li.clickable { cursor: pointer; }
.wiz-steps li.clickable:hover { border-color: var(--brisket); color: var(--ink); }
.wiz-steps li.active { color: var(--ink); border-color: var(--brisket); }
.wiz-steps li.active .n { background: var(--brisket); color: #1a1410; }
.wiz-steps li.done { color: var(--ink); }
.wiz-steps li.done .n { background: var(--success); color: #14210a; }
.wiz-steps li.done .n::after { content: "✓"; }
.wiz-steps li.done .n { font-size: 0; }
.wiz-steps li.done .n::after { font-size: .8rem; }

.step-lead { font-size: 1.05rem; margin: 0 0 14px; }
.wiz-nav { display: flex; gap: 10px; margin-top: 8px; }
.wiz-nav .btn { flex: 1; justify-content: center; }
.wiz-nav #back { flex: 0 0 auto; }
.field textarea {
  width: 100%; padding: 12px; font-size: 1rem; color: var(--ink); resize: vertical;
  background: var(--panel); border: 1px solid var(--line); border-radius: 9px;
  font-family: inherit;
}

/* step 1 — choosing meats */
.bird-note {
  margin: 4px 0 12px; padding: 9px 12px; border-radius: 9px;
  background: var(--panel-2); border-left: 3px solid var(--pork); font-size: .9rem;
}
.addmeat { width: 100%; justify-content: center; margin: 4px 0 8px; }
#meat2-block { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 14px; }
.meat2-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.meat2-head > span { font-weight: 700; }
.linklike { background: none; border: 0; color: var(--pit); cursor: pointer; font-size: .9rem; padding: 6px; }
.linklike:hover { color: var(--ink); text-decoration: underline; }

/* step 2 — per-meat doneness cards */
.done-card {
  background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--brisket);
  border-radius: 12px; padding: 14px 16px; margin: 0 0 14px;
}
.done-card + .done-card { border-left-color: var(--pork); }
.done-meat { font-weight: 700; font-size: 1.05rem; margin-bottom: 10px; }
.done-card .field { margin-bottom: 12px; }
.done-card .field:last-child, .done-card .ptarget:last-child { margin-bottom: 0; }
.done-card .ptarget { display: block; margin-bottom: 10px; }
.done-card .ptarget-name { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.done-card select { width: 100%; }
.temp-custom {
  display: block; width: 100%; margin-top: 8px; padding: 11px 12px; font-size: 1rem;
  color: var(--ink); background: var(--panel); border: 1px solid var(--brisket);
  border-radius: 9px; min-height: 44px;
}
/* spot-cut probe: placement + temp side by side */
.probe-assign { margin-bottom: 12px; }
.probe-assign:last-child { margin-bottom: 0; }
.assign-row { display: flex; gap: 8px; }
.assign-row select { flex: 1; min-width: 0; }
.done-card .probe-note {
  margin: 0 0 12px; padding: 9px 12px; border-radius: 9px;
  background: var(--panel-2); border-left: 3px solid var(--pork); font-size: .88rem;
}

/* probe TARGET assignment (step 2) */
.probe-targets .probe-note {
  margin: 0 0 12px; padding: 9px 12px; border-radius: 9px;
  background: var(--panel-2); border-left: 3px solid var(--brisket); font-size: .9rem;
}
.ptarget-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ptarget-row:last-child { border-bottom: 0; }
.ptarget-row .grow { flex: 1; min-width: 0; }
.ptarget { display: block; }
.ptarget-name { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.ptarget select { width: 100%; }
#p2-custom { margin-top: 8px; }

/* probe placement block (step 3, read-only) */
.probe-setup { display: flex; flex-direction: column; gap: 4px; }

/* Bluetooth probe-device picker */
.ble-setup { display: flex; flex-direction: column; gap: 8px; }
.ble-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ble-row .btn { flex: 0 0 auto; min-height: 40px; padding: 9px 16px; }
.ble-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ble-item { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2);
  cursor: pointer; min-height: 44px; }
.ble-item:hover { border-color: var(--brisket); }
.ble-item.is-probe { border-color: var(--brisket); background: color-mix(in srgb, var(--brisket) 12%, var(--panel-2)); }
.ble-name { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.ble-meta { font-size: 0.85em; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.ble-badge { font-size: 0.7em; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 2px 7px; border-radius: 999px; background: var(--brisket); color: #1a1410; }
.ble-sel { color: var(--brisket); font-weight: 700; }
.ble-sig { letter-spacing: 1px; color: var(--ink); }
.probe-row { display: flex; align-items: center; gap: 12px; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.probe-row:last-child { border-bottom: 0; }
.probe-row .grow { flex: 1; }
.probe-row .pnum {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--panel-2); border: 1px solid var(--line); font-weight: 800; color: var(--ink);
}
.probe-row.optional .pnum { color: var(--muted); }
.p2-inputs { display: flex; gap: 8px; }
.p2-inputs input:first-child { flex: 1; }
.p2-inputs input:last-child { flex: 0 0 90px; }
.p2-inputs input { padding: 10px; font-size: 1rem; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line); border-radius: 9px; min-height: 44px; }

/* --- the "your cook is on" hand-off -------------------------------------- */
.onfire { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--brisket);
  border-radius: 14px; padding: 18px 18px 14px; }
.onfire h2 { margin: 0 0 4px; font-size: 1.5rem; }
.onfire .serve { margin: 8px 0; }
.probe-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: .92rem; }
.probe-table th { text-align: left; color: var(--muted); font-size: .72rem; text-transform: uppercase;
  letter-spacing: .06em; padding: 4px 8px; border-bottom: 1px solid var(--line); }
.probe-table td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.probe-table td:first-child { width: 54px; color: var(--muted); font-weight: 700; }
.probe-table tr.muted td { color: var(--muted); }
.dev-feed { margin-top: 16px; color: var(--muted); }
.dev-feed summary { cursor: pointer; font-size: .9rem; }
.dev-feed pre { background: var(--panel-2); padding: 12px 14px; border-radius: 9px; overflow-x: auto; font-size: .88rem; }

/* --- responsive --------------------------------------------------------- */
@media (max-width: 640px) {
  .secondary { grid-template-columns: repeat(3, 1fr); }
  .cook-main { flex-direction: column; height: auto; }
  .cook-main .chart-wrap { height: clamp(180px, 30vh, 300px); }
  .probes { justify-content: space-around; min-height: 150px; }
  .topnav { flex-wrap: wrap; gap: 8px; }
  .statusbar { flex-wrap: wrap; }
  .statusbar .status-right { width: 100%; justify-content: space-between; margin-left: 0; }
}
