/* ESPsoup app shell: tab bar / rail, Home dashboard (mockup B), Settings. Layout + light palette.
   The instrument (Spectrum/Decode) styles live in style.css. */

/* ---- light "app" palette (mockup B) for Home, Settings and their tab bar ---- */
.v-light, body[data-tab=home] #tabbar, body[data-tab=settings] #tabbar {
  --bg: #f3f5f8; --panel: #fff; --panel2: #eef1f5; --line: #e3e8ee; --text: #17202a; --muted: #687684;
  --accent: #d9480f; --accent2: #3b5bdb; --ok: #2f9e44; --shadow: 0 1px 3px #0000000d, 0 4px 14px #0000000a;
  --cal-bg: #ebfbee; --cal-line: #b2f2bb; --cal-text: #2b6b39;
  color-scheme: light; color: var(--text);
}
@media (prefers-color-scheme: dark) {
  .v-light, body[data-tab=home] #tabbar, body[data-tab=settings] #tabbar {
    --bg: #0f1419; --panel: #182027; --panel2: #202a33; --line: #2a3640; --text: #e8eef2; --muted: #93a1ad;
    --accent: #ff8a3d; --accent2: #748ffc; --ok: #51cf66; --shadow: 0 1px 2px #0006;
    --cal-bg: #12291a; --cal-line: #24542f; --cal-text: #8ce99a;
    color-scheme: dark;
  }
}

/* ---- tab bar (phone) / navigation rail (wide) ---- */
#tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; height: var(--bar-h); display: flex; align-items: stretch;
  padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  background: var(--panel); border-top: 1px solid var(--line); }
#tabbar button { flex: 1; min-height: 0; padding: 6px 0 4px; border: 0; border-radius: 0; background: none; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11.5px; font-weight: 500; }
#tabbar button svg { width: 56px; height: 30px; padding: 3px 16px; border-radius: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: background .2s; }
#tabbar button[aria-selected=true] { color: var(--accent); font-weight: 650; }
#tabbar button[aria-selected=true] svg { background: color-mix(in srgb, var(--accent) 15%, transparent); }
#tabbar button:hover:not(:disabled) { border: 0; color: var(--text); }
#tabbar button[aria-selected=true]:hover { color: var(--accent); }
#tabbar .rail-logo { display: none; }
@media (min-width: 900px), (orientation: landscape) and (max-height: 560px) {
  #tabbar { top: 0; right: auto; width: var(--rail-w); height: auto; flex-direction: column; justify-content: flex-start; gap: 4px;
    padding: calc(10px + env(safe-area-inset-top)) 0 12px env(safe-area-inset-left); border-top: 0; border-right: 1px solid var(--line); }
  #tabbar button { flex: none; height: 64px; }
  #tabbar .rail-logo { display: flex; justify-content: center; color: var(--accent); padding: 4px 0 14px; }
}
@media (orientation: landscape) and (max-height: 560px) {
  #tabbar { gap: 0; padding-top: 4px; } #tabbar .rail-logo { display: none; } #tabbar button { height: 58px; font-size: 10px; letter-spacing: -.02em; }   /* "Vorratskammer" fits the 72 px phone rail */
}

/* ---- views ---- */
#view-home, #view-settings { z-index: 2; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; background: var(--bg); }
body:not([data-tab=home]) #view-home, body:not([data-tab=settings]) #view-settings { display: none; }
.v-light button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.v-light a { color: var(--accent); }

/* ================= HOME (mockup B) ================= */
.h-wrap { max-width: 1180px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 20px) 20px 28px; }
.h-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.h-head h1 { margin: 0; font-size: 28px; line-height: 1.15; letter-spacing: -.6px; font-weight: 750; }
.h-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.h-dot { width: 8px; height: 8px; border-radius: 50%; background: #adb5bd; display: inline-block; vertical-align: 1px; margin-right: 7px; }
.h-dot.on { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }
.h-dot.busy { background: var(--accent2); }
.h-av { width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; border: 0; flex: none; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 12%, var(--panel)); color: var(--accent); }
.h-av svg, .h-pulse svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.h-scan { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; width: 100%; margin: 18px 0 4px; padding: 16px 18px; min-height: 82px;
  text-align: left; color: #fff; border: 0; border-radius: 22px; background: linear-gradient(135deg, #13202c, #274660); box-shadow: 0 10px 24px #13202c40; transition: transform .12s, box-shadow .2s; }
.h-scan:hover:not(:disabled) { border: 0; box-shadow: 0 12px 28px #13202c55; }
.h-scan:active:not(:disabled) { transform: scale(.985); }
.h-scan:disabled { opacity: 1; background: linear-gradient(135deg, #868e96, #adb5bd); box-shadow: none; }
.h-scan.running { background: linear-gradient(135deg, #13202c, #3a3040 60%, #7a3412); }
.h-scan.connect { background: linear-gradient(135deg, #495057, #6c7a89); box-shadow: 0 10px 24px #49505740; }
.h-pulse { width: 54px; height: 54px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; background: #ffffff14; box-shadow: 0 0 0 8px #ffffff0d; }
.h-pulse svg { width: 26px; height: 26px; stroke: #fff; }
.h-pulse img { width: 44px; height: 44px; }
.h-scan.running .h-pulse img { animation: hStir 2.4s ease-in-out infinite; transform-origin: 50% 60%; }
@keyframes hStir { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@media (prefers-reduced-motion: reduce) { .h-scan.running .h-pulse img { animation: none; } }
.h-brand { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.h-brand img { width: 30px; height: 30px; }
.h-brand b { font-size: 17px; font-weight: 800; letter-spacing: -.3px; color: var(--accent); }  /* "ESP" orange, "soup" ink */
.h-brand b span { color: var(--text); }
#tabbar .rail-logo img { width: 34px; height: 34px; }
.brand img { flex: none; }
@media (min-width: 900px) { .brand img { display: none; } }  /* the rail shows the logo on wide screens */
.h-scan.running .h-pulse { animation: hPulse 1.6s ease-out infinite; }
@keyframes hPulse { 0% { box-shadow: 0 0 0 0 #ffffff66, 0 0 0 8px #ffffff17; } 100% { box-shadow: 0 0 0 18px #ffffff00, 0 0 0 8px #ffffff17; } }
.h-scan-t { flex: 1; min-width: 0; }
.h-scan-t b { display: block; font-size: 17.5px; letter-spacing: -.2px; }
.h-scan-t span { display: block; font-size: 12.5px; opacity: .9; margin-top: 2px; }
.h-scan-go { font-size: 30px; line-height: 1; opacity: .75; flex: none; }
.h-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: #ffffff22; opacity: 0; transition: opacity .3s; }
.h-scan.running .h-prog { opacity: 1; }
.h-prog i { display: block; height: 100%; width: 0; background: #fff; border-radius: 0 2px 2px 0; transition: width .35s; }
.h-err { margin: 8px 2px 0; padding: 9px 12px; border-radius: 12px; font-size: 13px; background: #fde8ea; color: #a51d24; border: 1px solid #f7c1c5; }
@media (prefers-color-scheme: dark) { .h-err { background: #3b1518; color: #ffc9cc; border-color: #6b2227; } }

.h-sec { display: flex; align-items: baseline; justify-content: space-between; margin: 20px 2px 10px; }
.h-sec h3 { margin: 0; font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 650; }
.h-sec span { color: var(--muted); font-size: 12px; }

.h-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; width: 100%; min-height: 126px; padding: 14px; text-align: left;
  color: var(--text); background: var(--panel); border: 0; border-radius: 20px; box-shadow: var(--shadow); transition: transform .12s, box-shadow .2s; }
.tile:hover:not(:disabled) { border: 0; box-shadow: 0 2px 6px #00000014, 0 8px 22px #0000000f; }
.tile:active { transform: scale(.98); }
.tile .i { font-size: 22px; line-height: 1.1; }
.tile .n { font-size: 26px; font-weight: 750; letter-spacing: -.5px; line-height: 1.1; margin-top: 8px; display: flex; align-items: center; gap: 7px; }
.tile .l { font-size: 13px; font-weight: 650; margin-top: 1px; }
.tile .s { font-size: 11.5px; color: var(--muted); margin-top: 2px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .spark { position: absolute; right: 12px; top: 14px; width: 60px; height: 24px; overflow: visible; }
.tile.idle .n { color: var(--muted); }
.tile.off { opacity: .62; }
.tile.off .n { font-size: 14.5px; font-weight: 650; color: var(--muted); margin: 12px 0 3px; letter-spacing: 0; }
.tile-more { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 14px; border: 1.5px dashed var(--line);
  border-radius: 14px; background: transparent; color: var(--accent); font-weight: 650; font-size: 13.5px; }
.tile-more span { color: var(--muted); font-weight: 500; font-size: 12px; }
@media (max-width: 599px) {   /* 12+ categories on a phone: compact tiles */
  .h-grid { gap: 10px; }
  .tile { min-height: 104px; padding: 12px 13px; border-radius: 18px; }
  .tile .i { font-size: 20px; }
  .tile .n { font-size: 22px; margin-top: 5px; }
  .tile.off .n { font-size: 13.5px; margin: 8px 0 2px; }
  .tile .spark { top: 12px; width: 52px; height: 22px; }
}
.s-sub { margin: 16px 0 2px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; }
.nb { font-size: 10px; font-weight: 750; letter-spacing: .04em; color: #fff; background: var(--accent2); border-radius: 8px; padding: 2px 6px; line-height: 1.3; }

.h-feed { display: flex; flex-direction: column; gap: 8px; }
.ev, .it { display: flex; align-items: center; gap: 12px; background: var(--panel); border-radius: 16px; padding: 11px 13px; box-shadow: var(--shadow); min-width: 0; }
.ev.fresh { animation: evIn .5s ease-out; }
@keyframes evIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.op { width: 40px; height: 40px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 19px; background: var(--c-bg, #3b5bdb1f); }
.ct { flex: 1; min-width: 0; }
.ct b { display: flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 650; min-width: 0; }
.ct b .tt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct .m { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev .t, .it .t { flex: none; text-align: right; font-size: 11.5px; color: var(--muted); line-height: 1.35; font-variant-numeric: tabular-nums; }
.it .t b { display: block; color: var(--text); font-size: 12.5px; }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent); }
.h-empty { text-align: center; color: var(--muted); font-size: 13px; padding: 20px 14px; border: 1.5px dashed var(--line); border-radius: 16px; }
.h-export { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }   /* long labels (German) wrap instead of pushing "Clear" off-screen */
.h-export button { flex: 1 1 auto; white-space: nowrap; padding: 7px 8px; min-height: 42px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--accent); font-weight: 650; font-size: 13px; }
.h-export button.ghost { flex: .7 1 auto; color: var(--muted); }

/* detail view */
.h-back { display: flex; align-items: center; gap: 12px; margin: 2px 0 14px; }
.h-back button { width: 42px; height: 42px; min-height: 42px; padding: 0 0 3px; border: 0; border-radius: 50%; background: var(--panel); box-shadow: var(--shadow); font-size: 28px; line-height: 1; color: var(--text); flex: none; }
.h-back h2 { margin: 0; font-size: 22px; letter-spacing: -.3px; }
.h-back p { margin: 1px 0 0; color: var(--muted); font-size: 13px; }
.h-list { display: flex; flex-direction: column; gap: 9px; }
.h-list .op { color: #fff; font-weight: 750; font-size: 14px; background: var(--c, #3b5bdb); }
.cal { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 13px 14px; border-radius: 18px; background: var(--cal-bg); border: 1px solid var(--cal-line); }
.cal .ic { font-size: 24px; }
.cal b { display: block; } .cal span { font-size: 12px; color: var(--cal-text); }
.cal button { margin-left: auto; flex: none; background: var(--ok); color: #fff; border: 0; border-radius: 12px; padding: 8px 14px; font-weight: 650; }
.cal.no { background: var(--panel); border-color: var(--line); } .cal.no span { color: var(--muted); } .cal.no button { background: var(--accent); }   /* not calibrated yet: neutral, not "success" green */
.h-note { color: var(--muted); font-size: 12.5px; margin: 12px 4px; }

@media (min-width: 900px) {
  .h-wrap { padding: 32px 36px 36px; }
  .h-head h1 { font-size: 32px; }
  .h-cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
  .h-side { position: sticky; top: 0; }
  #homeDetail { max-width: 760px; }
}
@media (min-width: 600px) and (max-width: 899px), (min-width: 1200px) { .h-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (orientation: landscape) and (max-height: 560px) {
  .h-wrap { padding-top: 14px; }
  .h-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ================= SETTINGS ================= */
.s-wrap { max-width: 1100px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 20px) 16px 28px; }
.s-title { margin: 0 4px 14px; font-size: 28px; letter-spacing: -.6px; font-weight: 750; }
.s-conn { display: flex; align-items: center; gap: 12px; background: var(--panel); border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow); }
.s-conn b { display: block; font-size: 15px; } .s-conn span:not(.s-dot) { display: block; color: var(--muted); font-size: 12.5px; }
.s-conn > div { flex: 1; min-width: 0; }
.s-conn button { flex: none; border-radius: 12px; }
.s-dot { width: 10px; height: 10px; border-radius: 50%; background: #adb5bd; flex: none; }
.s-dot.on { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }
.v-light details { background: var(--panel); border: 0; border-radius: 18px; padding: 4px 16px 12px; margin: 12px 0; box-shadow: var(--shadow); break-inside: avoid; }
.v-light summary { color: var(--text); font-size: 12.5px; padding-top: 12px; }
.v-light .note { line-height: 1.45; }
@media (min-width: 900px) {
  .s-wrap { padding: 32px 36px; }
  .s-grid { columns: 2; column-gap: 16px; }
  .s-grid details { display: inline-block; width: 100%; margin: 14px 0 0; }
}

/* ================= step 2b: 5-tab bar, Pot tools, Map tab, Pantry sections, QO-100 views ================= */
body[data-tab=map] #tabbar { --bg: #f3f5f8; --panel: #fff; --panel2: #eef1f5; --line: #e3e8ee; --text: #17202a; --muted: #687684; --accent: #d9480f; color-scheme: light; }
@media (prefers-color-scheme: dark) { body[data-tab=map] #tabbar { --bg: #0f1419; --panel: #182027; --panel2: #202a33; --line: #2a3640; --text: #e8eef2; --muted: #93a1ad; --accent: #ff8a3d; color-scheme: dark; } }
body[data-tab=map] #instrument { visibility: hidden; pointer-events: none; }
body:not([data-tab=map]) #view-map { display: none; }
#tabbar button span { max-width: 100%; padding: 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 899px) and (orientation: portrait), (max-width: 899px) and (min-height: 561px) {
  #tabbar button { font-size: 11px; letter-spacing: -.1px; }
  #tabbar button svg { width: 50px; padding: 3px 13px; }
}
@media (max-width: 380px) { #tabbar button { font-size: 10.5px; letter-spacing: -.2px; } #tabbar button svg { width: 46px; padding: 3px 11px; } }

/* Pot: tool launcher (side panel / sheet) */
.tool-list { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 6px; }
.tool-list button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 9px 12px; text-align: left; border-radius: 14px;
  background: var(--panel2); border: 1px solid var(--line); color: var(--text); }
.tool-list button:hover:not(:disabled) { border-color: var(--accent); }
.tool-list .ti { flex: none; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 21px; background: color-mix(in srgb, var(--accent) 14%, transparent); }
.tool-list b { display: block; font-size: 14px; } .tool-list small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }

/* Pot: tool view (full height over the instrument) */
.tool-view { position: absolute; inset: 0; z-index: 7; display: flex; flex-direction: column; background: var(--bg); padding-top: env(safe-area-inset-top); }
.tool-view[hidden] { display: none; }
.tv-head { flex: none; display: flex; align-items: center; gap: 12px; padding: 10px 14px 8px; border-bottom: 1px solid var(--line); }
.tv-back { width: 40px; height: 40px; min-height: 40px; padding: 0 0 3px; border-radius: 50%; font-size: 26px; line-height: 1; flex: none; }
.tv-t { min-width: 0; } .tv-t h2 { margin: 0; font-size: 19px; letter-spacing: -.2px; } .tv-t p { margin: 1px 0 0; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-busy { flex: none; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 14px 0; padding: 10px 12px; border-radius: 12px; font-size: 13px;
  background: color-mix(in srgb, var(--accent2) 16%, var(--panel)); border: 1px solid color-mix(in srgb, var(--accent2) 45%, transparent); }
.tv-busy[hidden] { display: none; }
.tv-busy span { flex: 1 1 200px; } .tv-busy button { flex: none; }
.tv-busy button[hidden] { display: none; }
.tv-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px 28px; }
.tv-tool { max-width: 760px; margin: 0 auto; }
.tv-tool[hidden] { display: none; }
.tv-tool > .fx > .fx-head b { display: none; }   /* the tool view header already shows the title */
.tv-extra:empty { display: none; } .tv-extra { margin-bottom: 10px; }
.fx-src { font-size: 12.5px; font-weight: 650; color: var(--accent2); }
.fx-src[hidden] { display: none; }
.fx-row[hidden], .fx-actions button[hidden] { display: none; }
.fx-recwf { width: 100%; height: 220px; border-radius: 12px; background: #0b1114; }
.fx-recwf[hidden] { display: none; }
.fx-rec-i { flex: none; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; background: var(--panel2); }
.fx-rec-n { margin-left: auto; flex: none; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .tv-body { padding: 22px 28px 36px; } }

/* Kitchen detail: map / QO-100 shortcuts, camera "Find it" */
.det-act { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.det-act button { flex: 1 1 auto; min-height: 44px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); color: var(--accent); font-weight: 650; box-shadow: var(--shadow); }
.it .find { flex: none; min-height: 36px; padding: 4px 12px; border-radius: 12px; border: 0; background: var(--accent); color: #fff; font-weight: 650; font-size: 13px; }

/* ================= MAP ================= */
#view-map { z-index: 2; overflow-y: auto; overscroll-behavior: contain; background: var(--bg); }
.m-wrap { max-width: 1400px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 18px) 16px 24px; display: flex; flex-direction: column; min-height: 100%; }
.m-head h1 { margin: 0; font-size: 28px; letter-spacing: -.6px; font-weight: 750; }
.m-head p { margin: 3px 0 12px; color: var(--muted); font-size: 13px; }
.m-map { height: min(62vh, 560px); min-height: 300px; }
.m-map .fm-map { height: 100%; }
.m-map .fm-btn { background: var(--panel); color: var(--text); border-color: var(--line); box-shadow: var(--shadow); }
.m-map .fm-btn[aria-pressed=true] { background: var(--accent); border-color: var(--accent); color: #fff; }
.m-map .fm-stage { border-radius: 18px; border: 0; box-shadow: var(--shadow); }
.m-sky { max-width: 320px; margin: 0 auto; }
.m-side .h-sec:first-child { margin-top: 18px; }
@media (min-width: 900px) {
  .m-wrap { padding: 28px 32px 32px; height: 100%; }
  .m-cols { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; }
  .m-map { height: auto; min-height: 420px; }
  .m-side { overflow-y: auto; min-height: 0; }
  .m-side .h-sec:first-child { margin-top: 0; }
}

/* ================= Pantry additions ================= */
.burners { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 10px; }
.burner { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--panel2); }
.burner > div { flex: 1; min-width: 0; } .burner b { display: block; font-size: 14px; } .burner span:not(.s-dot) { display: block; color: var(--muted); font-size: 12px; }
.burner button { flex: none; border-radius: 12px; }
.lnb-check { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 4px; }
.lnb-check:empty { display: none; }
.lnb-row { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.lnb-row i { font-style: normal; font-weight: 800; width: 16px; text-align: center; flex: none; }
.lnb-row b { flex: none; }
.lnb-row.ok i { color: var(--ok); } .lnb-row.bad i { color: #e03131; } .lnb-row.warn i { color: #f08c00; }
.lnb-row span { color: var(--muted); font-variant-numeric: tabular-nums; }
.lnb-warn { display: flex; flex-direction: column; gap: 2px; margin: 10px 0; padding: 10px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.4;
  background: color-mix(in srgb, #f59f00 12%, var(--panel)); border: 1px solid color-mix(in srgb, #f59f00 40%, transparent); }
.lnb-warn b { font-size: 13px; }
#setLnbLoRow[hidden] { display: none; }
#langSel { width: 100%; }
.pwa-update { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--bar-h) + 12px); z-index: 50; border-radius: 14px; }

/* ================= Recipes: QO-100 views ================= */
.qo-sel { display: none !important; }
.qo-views { margin: 4px 0 8px; }
.qo-views[hidden] { display: none; }
.qo-seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px; border-radius: 12px; background: var(--panel2); }
.qo-seg button { flex: 1 1 auto; min-height: 34px; padding: 4px 10px; border: 0; border-radius: 9px; background: none; color: var(--muted); font-weight: 600; font-size: 13px; }
.qo-seg button.on { background: var(--bg); color: var(--text); box-shadow: 0 1px 3px #0004; }
.qo-seg button[data-qo=point] { color: var(--accent2); }
.qo-status[hidden], .qo-chan[hidden] { display: none; }
.qo-lock { display: flex; align-items: center; gap: 14px; margin: 8px 0; padding: 10px 14px; border-radius: 14px; background: var(--panel2); border: 1px solid var(--line); flex-wrap: wrap; }
.qo-lock b { display: block; font-size: 14px; } .qo-lock span { display: block; color: var(--muted); font-size: 12px; }
.qo-lock > div:last-child { flex: 1 1 180px; min-width: 0; }
.qo-lock.ok { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.qo-lock.ok b { color: var(--accent); }
.qo-lock.search b { color: var(--accent2); }
.qo-lock.bad { border-color: #e5484d88; }
.qo-lock.bad button { margin-left: auto; }
.qo-big { font: 700 26px/1 var(--mono); letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.qo-ch-h { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; margin: 10px 0 6px; }
.qo-ch-h b { font-size: 13px; } .qo-ch-h span { color: var(--muted); font-size: 12px; }
.qo-ch-w { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; max-height: 320px; overflow-y: auto; }
.qo-ch { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.qo-ch th { position: sticky; top: 0; background: var(--panel2); color: var(--muted); font-weight: 600; text-align: left; padding: 5px 6px; white-space: nowrap; }
.qo-ch td { padding: 5px 6px; border-top: 1px solid var(--line); white-space: nowrap; color: var(--muted); }
.qo-ch tr.on td { color: var(--text); } .qo-ch tr.on td:first-child { color: var(--accent); font-weight: 650; }
