/* sb-mobile-fold.css - phone Show / Hide bar (see js/sb-mobile-fold.js). v fold12 */
.sbf-bar,
.sbf-help { display: none; }

.sbf-leave { position: fixed; inset: 0; z-index: 2147483600; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.sbf-leave-card { background: #1e293b; color: #f1f5f9; border: 3px solid #93c5fd; border-radius: 14px; padding: 18px 20px; width: min(88vw, 320px); text-align: center; font: 700 1.15rem/1.3 system-ui, sans-serif; }
.sbf-leave-card p { margin: 0 0 16px; }
.sbf-leave-btns { display: flex; gap: 12px; }
.sbf-leave-btns button { flex: 1; min-height: 46px; border-radius: 10px; font: 800 1.05rem system-ui, sans-serif; cursor: pointer; }
.sbf-leave-btns [data-l="yes"] { background: #334155; color: #fff; border: 2px solid #64748b; }
.sbf-leave-btns [data-l="no"] { background: #2563eb; color: #fff; border: 2px solid #93c5fd; }

@media (max-width: 768px) {
  /* Save disk: icon only on phones so it never covers the third Show / Hide button */
  #hobbSaveLight span { display: none !important; }

  /* First thing on the page and pinned there: the header opens below it */
  .sbf-bar {
    display: flex;
    gap: 6px;
    justify-content: center;
    padding: 6px 48px 6px 8px;
    background: #0b0f14;
    border-bottom: 1px solid var(--chat-border, #333);
    position: sticky;
    top: 0;
    z-index: 10050;
  }
  .sbf-pill {
    flex: 1 1 0;
    min-width: 0;
    max-width: 140px;
    min-height: 36px;
    padding: 6px 4px;
    border-radius: 18px;
    border: 0;
    background: linear-gradient(135deg, #6d5bd0, #3f3398);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
  }
  .sbf-pill[data-sbf="ans"] {
    background: linear-gradient(135deg, #e9c46a, #b48a4c);
    color: #1f1a10;
  }

  /* Header Why? / New Here? / Speak Out: three equal buttons in one even row
     (the page's 15px readability minimum made New Here? wrap and stagger) */
  html body.kitchen-ui .start-here-strip {
    align-items: flex-start !important;
    gap: 6px !important;
    padding: 6px 8px 6px 8px !important;
  }
  html body.kitchen-ui .start-here-strip .sh-strip-divider { display: none !important; }
  html body.kitchen-ui .start-here-strip .sh-btn-group {
    flex: 1 1 0;
    min-width: 0;
  }
  html body.kitchen-ui .start-here-strip .start-here-btn {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    text-align: center !important;
    font-size: 14px !important;
    letter-spacing: 0.02em !important;
    padding: 7px 4px !important;
    line-height: 1.2 !important;
  }
  html body.kitchen-ui .start-here-strip .start-here-sub {
    font-size: 11px !important;
    line-height: 1.15 !important;
    text-align: center !important;
    margin-top: 4px !important;
  }
  /* save disk sits at the top right; keep Speak Out clear of it */
  html body.kitchen-ui .start-here-strip { padding-right: 46px !important; }

  /* Top = site header (Why? / New Here? / Speak Out strip and the logo bar) */
  body.sbf-top-off site-header { display: none !important; }
  /* CHATS and SETUP panels open just under the Show / Hide bar so their Done buttons are never covered */
  .conv-rail,
  .setup-col { top: var(--sbf-bar-h, 50px) !important; z-index: 10040 !important; }

  /* Answers = the chat readback */
  body.sbf-ans-off #muxThread { display: none !important; }
  body.sbf-ans-off .chat-col,
  body.sbf-ans-off .app { min-height: 0 !important; }

  /* Typing = message box and the notes under it; Create-a-Query / CANCEL row stays */
  body.sbf-type-off #composer,
  body.sbf-type-off #composerAppendHint,
  body.sbf-type-off #composerAdviceNote,
  body.sbf-type-off #fsPathStrip { display: none !important; }

  /* Answers hidden, typing showing: the typing box takes the spare room */
  body.sbf-ans-off:not(.sbf-type-off) .composer-wrap {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  body.sbf-ans-off:not(.sbf-type-off) #composer {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
  }
  body.sbf-ans-off:not(.sbf-type-off) #composerInput {
    flex: 1 1 auto;
    max-height: none !important;
  }

  /* All three hidden: how-to in the empty space */
  body.sbf-top-off.sbf-ans-off.sbf-type-off .sbf-help {
    display: block;
    padding: 14px 16px 24px;
    color: #f1f5f9;
    font-size: 1.05rem;
    line-height: 1.45;
  }
  .sbf-help p { margin: 0 0 14px; }
  .sbf-help b { color: #e9c46a; }
}
