/* sb-ai-readable.css — VERSION 1.0.2 (2026-10-15)
 * Kitchen (ai.html) readability looks. Picked by ?look=old|1|2 (saved in localStorage sb_ai_look, default 2).
 *   html.sb-look-1 : 15px minimum text, trimmed button padding, bigger bold labels.
 *   html.sb-look-2 : look 1 + darker neutral backgrounds, brighter text, icons on familiar buttons.
 *   (old)          : no class — page looks as before.
 * js/sb-ai-readable.js raises any remaining text under 15px (incl. panels built later).
 *
 * Z-layer map (ai.html + loaded scripts). The site menu must sit above everything except big tips.
 *   2147483647  progress bar, top timer, big tips (hover help)
 *   2147483600  .sidebar (site menu)              <- set in ai.html
 *   2147483590  .sidebar-overlay (menu backdrop) <- set in ai.html
 *   2147483000  save light, helper-needed backdrop, handoff dialog
 *   2147482500  sb-ai-welcome (signed-out landing)
 *   2147482000  mux dialogs
 *   100060      show-message
 *   100000      mux bar
 *   99999       web-fsm
 *   12010/12000 mux toasts
 *   10050/10000 tripwire gate / privacy notice
 *   9999        scroll arrows, sync instructions
 *   9600        mux card
 *   9200-9050   header quick-start buttons
 *   9000        how-to dialog, Create-a-Query, Make panel
 *   8000        guide overlay
 *   1000        site modals (About/Disclaimer/Help)
 *   900         site header
 */

/* ---------- LOOK 1: size + padding ---------- */

html.sb-look-1 body.kitchen-ui,
html.sb-look-2 body.kitchen-ui { -webkit-text-size-adjust: 100%; }

/* Composer tool row */
html.sb-look-1 body.kitchen-ui .composer button,
html.sb-look-2 body.kitchen-ui .composer button {
  font-size: 15px !important;
  font-weight: 800 !important;
  padding: 4px 8px !important;
  min-height: 36px;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
}
html.sb-look-1 body.kitchen-ui .composer-actions,
html.sb-look-2 body.kitchen-ui .composer-actions {
  flex-wrap: wrap !important;
  justify-content: flex-end;
  row-gap: 6px !important;
  min-width: 0 !important;
  max-width: 100%;
}
html.sb-look-1 body.kitchen-ui #composerSendBtn,
html.sb-look-2 body.kitchen-ui #composerSendBtn {
  font-size: 16px !important;
  padding: 4px 14px !important;
}

/* Bottom control row: Create-a-Query, Make, Save, Save & close, CANCEL */
html.sb-look-1 body.kitchen-ui #caqOpenBtn,
html.sb-look-1 body.kitchen-ui #kmMakeBtn,
html.sb-look-1 body.kitchen-ui .hobb-ctrl,
html.sb-look-2 body.kitchen-ui #caqOpenBtn,
html.sb-look-2 body.kitchen-ui #kmMakeBtn,
html.sb-look-2 body.kitchen-ui .hobb-ctrl {
  font-size: 15px !important;
  font-weight: 800 !important;
  padding: 4px 9px !important;
  min-height: 36px;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
}
html.sb-look-1 body.kitchen-ui .caq-free-tag,
html.sb-look-2 body.kitchen-ui .caq-free-tag { font-size: 15px !important; line-height: 1 !important; }

/* CHATS / SETUP tabs, "Now in", chat list rows */
html.sb-look-1 body.kitchen-ui .chat-view-bar__side,
html.sb-look-2 body.kitchen-ui .chat-view-bar__side {
  font-size: 15px !important;
  font-weight: 800 !important;
  padding: 4px 10px !important;
  letter-spacing: 0 !important;
}
html.sb-look-1 body.kitchen-ui #muxNowIn,
html.sb-look-2 body.kitchen-ui #muxNowIn {
  font-size: 15px !important;
  padding: 4px 8px !important;
  flex: 1 1 0 !important;
  min-width: 0 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html.sb-look-1 body.kitchen-ui .chat-col,
html.sb-look-2 body.kitchen-ui .chat-col { min-width: 0 !important; }
html.sb-look-1 body.kitchen-ui .conv-row-open,
html.sb-look-2 body.kitchen-ui .conv-row-open { font-size: 15px !important; padding: 7px 8px !important; }

/* Left rail cloud buttons (Send / Sync / Backup) */
html.sb-look-1 body.kitchen-ui .cloud-lib-btn,
html.sb-look-2 body.kitchen-ui .cloud-lib-btn { padding: 4px 2px !important; }
html.sb-look-1 body.kitchen-ui .cloud-lib-btn-label,
html.sb-look-2 body.kitchen-ui .cloud-lib-btn-label { font-size: 15px !important; letter-spacing: 0 !important; }
html.sb-look-1 body.kitchen-ui #syncInstructionsBtn,
html.sb-look-2 body.kitchen-ui #syncInstructionsBtn {
  font-size: 15px !important;
  padding: 3px 6px !important;
  letter-spacing: 0 !important;
}

/* Setup panel: AI picker */
html.sb-look-1 body.kitchen-ui .prov-opt,
html.sb-look-2 body.kitchen-ui .prov-opt { padding: 6px 4px !important; }
html.sb-look-1 body.kitchen-ui .prov-request,
html.sb-look-2 body.kitchen-ui .prov-request {
  box-sizing: border-box !important;
  padding: 4px !important;
  font-size: 15px !important;
  text-align: center;
  line-height: 1.1 !important;
  min-width: 0 !important;
}
html.sb-look-1 body.kitchen-ui .prov-request *,
html.sb-look-2 body.kitchen-ui .prov-request * { white-space: normal !important; letter-spacing: 0 !important; }
html.sb-look-1 body.kitchen-ui .prov-name,
html.sb-look-2 body.kitchen-ui .prov-name { font-size: 15px !important; white-space: nowrap !important; letter-spacing: 0 !important; }
html.sb-look-1 body.kitchen-ui .sec-question,
html.sb-look-2 body.kitchen-ui .sec-question { font-size: 16px !important; }

/* Status LEDs: the row wraps to a second line instead of shrinking the labels */
html.sb-look-1 body.kitchen-ui .c5-scope-traces,
html.sb-look-2 body.kitchen-ui .c5-scope-traces {
  flex-wrap: wrap !important;
  justify-content: center;
  column-gap: 8px !important;
  row-gap: 6px !important;
  max-width: 100%;
}
html.sb-look-1 body.kitchen-ui .c5-led,
html.sb-look-2 body.kitchen-ui .c5-led { flex: 0 0 auto !important; width: auto !important; min-width: 0 !important; }
html.sb-look-1 body.kitchen-ui .c5-led-label,
html.sb-look-2 body.kitchen-ui .c5-led-label {
  font-size: 15px !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  line-height: 1.1 !important;
}

/* Log + top-strip badges */
html.sb-look-1 body.kitchen-ui #hobbFsmLog,
html.sb-look-2 body.kitchen-ui #hobbFsmLog { font-size: 15px !important; line-height: 1.35 !important; white-space: pre-wrap !important; }

/* Header quick buttons (Why? / New Here? / Speak Out) and their small captions */
html.sb-look-1 body.kitchen-ui .start-here-btn,
html.sb-look-2 body.kitchen-ui .start-here-btn { font-size: 15px !important; padding-top: 3px !important; padding-bottom: 3px !important; }
html.sb-look-1 body.kitchen-ui .start-here-sub,
html.sb-look-2 body.kitchen-ui .start-here-sub { font-size: 15px !important; letter-spacing: 0 !important; line-height: 1.1 !important; }

/* Panel buttons: Create-a-Query, Make, AI Board, mux dialogs */
html.sb-look-1 body.kitchen-ui :is(.caq-pill,.caq-pick,.caq-fill,.caq-run,.caq-cancel,.caq-leave,
  .km-btn,.km-start,.km-cancel,.km-go,.km-kind,
  .ab-btn,.ab-copy,.ab-finalBtn,.ab-pillOpt,.ab-tipOk,
  .mux-btn-accept,.mux-btn-continue,.mux-chip,.ai-outbox-actions button),
html.sb-look-2 body.kitchen-ui :is(.caq-pill,.caq-pick,.caq-fill,.caq-run,.caq-cancel,.caq-leave,
  .km-btn,.km-start,.km-cancel,.km-go,.km-kind,
  .ab-btn,.ab-copy,.ab-finalBtn,.ab-pillOpt,.ab-tipOk,
  .mux-btn-accept,.mux-btn-continue,.mux-chip,.ai-outbox-actions button) {
  font-size: 15px !important;
  font-weight: 800 !important;
  padding: 4px 9px !important;
  letter-spacing: 0 !important;
}

/* Typing boxes: 16px stops phones zooming in on tap */
html.sb-look-1 body.kitchen-ui :is(textarea, input[type="text"], input[type="search"], input:not([type]), select),
html.sb-look-2 body.kitchen-ui :is(textarea, input[type="text"], input[type="search"], input:not([type]), select) {
  font-size: 16px !important;
}

/* ---------- LOOK 2: contrast (dark = neutral and darker, light = brighter) ---------- */

html.sb-look-2 {
  --teal: #8fc7ff;
  --teal-dim: #1d6bff;
  --chat-bg: #0b0e13;
  --chat-surface: #161b22;
  --chat-border: #4b5768;
  --chat-text: #f6f8fb;
  --chat-muted: #d3dbe5;
  --conv-bg: #0d1117;
  --conv-hover: #1b222c;
  --conv-active: #222b37;
  --side-bg: #0d1117;
  --side-border: #4b5768;
  --side-text: #f6f8fb;
  --side-muted: #d3dbe5;
}
html.sb-look-2 body.kitchen-ui { background: #07090c !important; }

/* Composer tool buttons: neutral dark face, bright label, visible edge */
html.sb-look-2 body.kitchen-ui .composer :is(.btn-append-txt,.btn-append-file,.btn-append-photo,.btn-find,.btn-grow) {
  background: #1f2630 !important;
  color: #e3f0ff !important;
  border: 1px solid #6b7a90 !important;
}
html.sb-look-2 body.kitchen-ui #composerSendBtn { background: #1d6bff !important; color: #fff !important; }

html.sb-look-2 body.kitchen-ui .chat-view-bar__side {
  background: #161b22 !important;
  color: #e3f0ff !important;
  border-color: #6b7a90 !important;
}
html.sb-look-2 body.kitchen-ui .hobb-ctrl:not(#hobbCancelBtn) {
  background: #222a35 !important;
  color: #ffffff !important;
  border: 1px solid #6b7a90 !important;
}
html.sb-look-2 body.kitchen-ui #hobbCancelBtn { background: #5a0f0f !important; color: #ffd6d6 !important; border-color: #ff6b6b !important; }
html.sb-look-2 body.kitchen-ui #caqOpenBtn { color: #ffe27a !important; border-color: #ffd23f !important; }
html.sb-look-2 body.kitchen-ui #kmMakeBtn { color: #e2d4ff !important; border-color: #b794ff !important; }
html.sb-look-2 body.kitchen-ui .caq-free-tag { color: #7dffc0 !important; }
html.sb-look-2 body.kitchen-ui .conv-row-open { color: #f6f8fb !important; }
html.sb-look-2 body.kitchen-ui .start-here-sub { color: #d3dbe5 !important; }
html.sb-look-2 body.kitchen-ui #chatViewQuietToggle { color: #e3f0ff !important; }
html.sb-look-2 body.kitchen-ui .caq-pill.is-off { opacity: 0.8 !important; }
html.sb-look-2 body.kitchen-ui :is(.caq-item-text,.caq-sub,.caq-blurb,.km-sub,.mux-sec-sub) { font-weight: 600 !important; }

/* Icons on familiar buttons (labels stay; hover shows the existing tooltip) */
html.sb-look-2 body.kitchen-ui :is(#composerFindBtn,#composerAppendTxtBtn,#composerAppendFileBtn,#kmPhotoBtn,#hobbCancelBtn)::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 5px;
  display: inline-block;
}
html.sb-look-2 body.kitchen-ui #composerFindBtn::before { content: "\f002"; }
html.sb-look-2 body.kitchen-ui #composerAppendTxtBtn::before { content: "\f15c"; }
html.sb-look-2 body.kitchen-ui #composerAppendFileBtn::before { content: "\f0c6"; }
html.sb-look-2 body.kitchen-ui #kmPhotoBtn::before { content: "\f030"; }
html.sb-look-2 body.kitchen-ui #hobbCancelBtn::before { content: "\f00d"; }

/* Phones: composer tools show the icon only so the row stays on one line */
@media (max-width: 600px) {
  html.sb-look-2 body.kitchen-ui :is(#composerFindBtn,#composerAppendTxtBtn,#composerAppendFileBtn,#kmPhotoBtn) {
    font-size: 0 !important;
    min-width: 42px;
    padding: 4px 10px !important;
  }
  html.sb-look-2 body.kitchen-ui :is(#composerFindBtn,#composerAppendTxtBtn,#composerAppendFileBtn,#kmPhotoBtn)::before {
    font-size: 18px;
    margin-right: 0;
  }
}
