/* July Oven components. All colour, space, radius and type come from tokens.css. */

.jo-row { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; padding: var(--space-6); }
.jo-stack { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6); }

/* --- Button ------------------------------------------------------------ */
.jo-btn {
  font-family: var(--font-sans); font-size: 18px; font-weight: 600; line-height: 24px;
  min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: 0 var(--space-6); border-radius: var(--radius-md);
  border: 1.5px solid var(--line-strong); background: var(--surface-raised); color: var(--ink);
  cursor: pointer; text-decoration: none; -webkit-tap-highlight-color: transparent;
  transition: background .12s ease, border-color .12s ease;
}
.jo-btn:hover { background: var(--surface-sunken); }
.jo-btn-primary { background: var(--ember); border-color: var(--ember); color: var(--on-ember); }
.jo-btn-primary:hover { filter: brightness(0.95); background: var(--ember); }
.jo-btn-quiet { background: transparent; border-color: transparent; color: var(--ember); padding: 0 var(--space-3); }
.jo-btn-quiet:hover { background: var(--ember-soft); }
.jo-btn:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring, 0 0 0 3px currentColor); }
.jo-btn[disabled] { opacity: .5; cursor: not-allowed; }
.jo-btn svg { width: 20px; height: 20px; }

/* --- StatusPill -------------------------------------------------------- */
.jo-pill {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 32px; padding: 0 var(--space-4) 0 var(--space-3);
  border-radius: var(--radius-full); font-family: var(--font-sans);
  font-size: 15px; font-weight: 600; line-height: 1;
  background: var(--surface-sunken); color: var(--ink-muted);
}
.jo-pill-dot { width: 10px; height: 10px; border-radius: var(--radius-full); background: currentColor; flex: none; }
.jo-pill-ready   { background: var(--ready-soft);  color: var(--ready); }
.jo-pill-heat    { background: var(--heat-soft);   color: var(--heat); }
.jo-pill-cooking { background: var(--ember-soft);  color: var(--ember); }
.jo-pill-fault   { background: var(--fault-soft);  color: var(--fault); }
.jo-pill-offline { background: var(--surface-sunken); color: var(--ink-muted); }

/* --- OvenCard ---------------------------------------------------------- */
.jo-oven {
  display: flex; flex-direction: column; gap: var(--space-4);
  max-width: 380px; padding: var(--space-5);
  background: var(--surface-raised); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); color: var(--ink);
}
.jo-oven-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.jo-oven-name { font-family: var(--font-sans); font-size: 18px; font-weight: 600; margin: 0; }
.jo-oven-cam {
  aspect-ratio: 16 / 9; border-radius: var(--radius-md); background: var(--surface-sunken);
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  color: var(--ink-muted); overflow: hidden;
}
.jo-oven-cam img { width: 100%; height: 100%; object-fit: cover; }
.jo-oven-readout { display: flex; align-items: baseline; gap: var(--space-4); }
.jo-oven-temp {
  font-family: var(--font-display); font-size: 52px; line-height: 1; font-weight: 600;
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--ink);
}
.jo-oven-temp sup { font-size: 22px; font-weight: 600; vertical-align: super; }
.jo-oven-target {
  font-family: var(--font-sans); font-size: 15px; line-height: 22px; color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}
.jo-oven-target b { color: var(--ink); font-weight: 600; }

/* --- SetupStep --------------------------------------------------------- */
.jo-step { display: flex; gap: var(--space-4); align-items: flex-start; max-width: 560px; }
.jo-step-num {
  flex: none; width: 40px; height: 40px; border-radius: var(--radius-full);
  background: var(--ember-soft); color: var(--ember);
  font-family: var(--font-sans); font-size: 18px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
}
.jo-step-body { display: flex; flex-direction: column; gap: var(--space-1); padding-top: 4px; }
.jo-step-title { font-family: var(--font-sans); font-size: 18px; font-weight: 600; margin: 0; color: var(--ink); }
.jo-step-text { font-family: var(--font-sans); font-size: 18px; line-height: 28px; margin: 0; color: var(--ink-muted); }

/* --- Notice ------------------------------------------------------------ */
.jo-notice {
  display: flex; gap: var(--space-3); align-items: flex-start;
  padding: var(--space-5); border-radius: var(--radius-md);
  border: 1px solid var(--line); background: var(--surface-raised); color: var(--ink);
  max-width: 560px;
}
.jo-notice-mark { flex: none; width: 24px; height: 24px; margin-top: 2px; }
.jo-notice-mark svg { width: 24px; height: 24px; }
.jo-notice-body { display: flex; flex-direction: column; gap: var(--space-1); }
.jo-notice-title { font-family: var(--font-sans); font-size: 18px; font-weight: 600; margin: 0; }
.jo-notice-text { font-family: var(--font-sans); font-size: 18px; line-height: 28px; margin: 0; color: var(--ink-muted); }
.jo-notice-info    { background: var(--surface-sunken); }
.jo-notice-info .jo-notice-mark    { color: var(--ink-muted); }
.jo-notice-success { background: var(--ready-soft); border-color: transparent; }
.jo-notice-success .jo-notice-mark { color: var(--ready); }
.jo-notice-warning { background: var(--fault-soft); border-color: transparent; }
.jo-notice-warning .jo-notice-mark { color: var(--fault); }

/* --- Field ------------------------------------------------------------- */
.jo-field { display: flex; flex-direction: column; gap: var(--space-2); max-width: 380px; }
.jo-field-label { font-family: var(--font-sans); font-size: 15px; font-weight: 600; color: var(--ink); }
.jo-input {
  font-family: var(--font-sans); font-size: 18px; line-height: 24px; color: var(--ink);
  min-height: 48px; padding: 0 var(--space-4); border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong); background: var(--surface-raised);
  width: 100%; box-sizing: border-box;
}
.jo-input::placeholder { color: var(--ink-muted); }
.jo-input:focus-visible { outline: 2px solid transparent; border-color: var(--ember); box-shadow: var(--focus-ring, 0 0 0 3px currentColor); }
.jo-input-code { font-family: var(--font-mono); font-size: 24px; letter-spacing: 0.3em; text-align: center; font-variant-numeric: tabular-nums; }
.jo-field-hint { font-family: var(--font-sans); font-size: 15px; line-height: 22px; color: var(--ink-muted); margin: 0; }

body { margin: 0; font-family: var(--font-sans); background: var(--surface); color: var(--ink); }
