/* ==========================================================================
   css/iba-p45.css — 15.0.0 patch 45
   1. No scrollbar visuals anywhere (desktop, phone, assistant). Scrolling by
      wheel, touch, keys and trackpad still works.
   2. Samsung Z Flip 7 cover screen (a small, almost square screen, about
      360 x 400): a compact phone workspace and assistant.
   ========================================================================== */
@layer iba-ui {
  :is(#iba-x#iba-x#iba-x, html, body, *) {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }
  :is(html, body, *)::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
    background: transparent !important;
  }
}

/* ---------- Z Flip 7 cover screen ---------- */
/* 17.0.2: also any small, roughly square screen (same rule as js/iba-phone.js COVER_MQ) */
@media (max-width: 480px) and (max-height: 560px), (max-width: 600px) and (max-height: 700px) and (min-aspect-ratio: 3/4) and (max-aspect-ratio: 4/3) {
  @layer iba-ui {
    body.iba-phone #iba-phone#iba-phone { font-size: 13.5px !important; }
    body.iba-phone #iba-phone .iba-ph-head { padding: calc(4px + env(safe-area-inset-top, 0px)) 10px 4px !important; gap: 8px !important; }
    body.iba-phone #iba-phone .iba-ph-brand { gap: 8px !important; }
    body.iba-phone #iba-phone .iba-ph-mark { width: 30px !important; height: 30px !important; border-radius: 9px !important; font-size: 10px !important; }
    body.iba-phone #iba-phone .iba-ph-who strong { font-size: 14px !important; }
    body.iba-phone #iba-phone .iba-ph-who small { display: none !important; }
    body.iba-phone #iba-phone .iba-ph-icon { width: 32px !important; height: 32px !important; border-radius: 10px !important; font-size: 13px !important; }
    body.iba-phone #iba-phone .iba-ph-switch { margin: 0 10px 4px !important; padding: 3px !important; border-radius: 11px !important; }
    body.iba-phone #iba-phone .iba-ph-switch button { min-height: 30px !important; font-size: 12.5px !important; gap: 5px !important; }
    body.iba-phone #iba-phone .iba-ph-count { min-width: 17px !important; height: 17px !important; line-height: 17px !important; font-size: 10.5px !important; padding: 0 5px !important; }
    body.iba-phone #iba-phone .iba-ph-main { padding: 2px 10px 12px !important; }
    body.iba-phone #iba-phone .iba-ph-title { margin: 4px 2px 8px !important; }
    body.iba-phone #iba-phone .iba-ph-title h2 { font-size: 16px !important; }
    body.iba-phone #iba-phone .iba-ph-title span { font-size: 12px !important; }
    body.iba-phone #iba-phone .iba-ph-empty { padding: 22px 12px !important; gap: 6px !important; }
    body.iba-phone #iba-phone .iba-ph-card { margin-bottom: 8px !important; padding: 10px 10px 8px !important; border-radius: 13px !important; }
    body.iba-phone #iba-phone .iba-ph-card-top { gap: 8px !important; }
    body.iba-phone #iba-phone .iba-ph-card h3 { font-size: 14px !important; }
    body.iba-phone #iba-phone .iba-ph-meta { font-size: 12px !important; gap: 2px 8px !important; }
    body.iba-phone #iba-phone .iba-ph-amount strong { font-size: 14.5px !important; }
    body.iba-phone #iba-phone .iba-ph-note { margin-top: 6px !important; padding: 6px 8px !important; font-size: 12px !important; }
    body.iba-phone #iba-phone .iba-ph-card-foot { margin-top: 8px !important; padding-top: 6px !important; flex-wrap: wrap !important; gap: 6px !important; }
    body.iba-phone #iba-phone .iba-ph-btn { min-height: 34px !important; padding-left: 10px !important; padding-right: 10px !important; font-size: 13px !important; }
    body.iba-phone #iba-phone .iba-ph-link { font-size: 12.5px !important; }
    body.iba-phone #iba-phone .iba-ph-bulk { padding: 5px 6px 5px 10px !important; margin-bottom: 6px !important; }
    body.iba-phone #iba-phone .iba-ph-bulk-text { font-size: 12.5px !important; }
    body.iba-phone #iba-phone .iba-ph-tick, body.iba-phone #iba-phone .iba-ph-tick span { width: 22px !important; height: 22px !important; }
    body.iba-phone #iba-phone .iba-ph-tabs button { min-height: 44px !important; padding-top: 4px !important; padding-bottom: 4px !important; }
    body.iba-phone #iba-phone .iba-ph-tab-label { font-size: 10.5px !important; }
    body.iba-phone #iba-phone .iba-ph-sheet-body { padding-left: 12px !important; padding-right: 12px !important; }

    /* the robot bubble is smaller and sits clear of the tabs */
    body.iba-phone .iba-ai-fab.iba-ai-fab, body.iba-phone .iba-ai-fab.iba-ai-fab.is-bot { width: 48px !important; height: 48px !important; bottom: var(--iba-ph-b, calc(60px + env(safe-area-inset-bottom, 0px))) !important; }
    body.iba-phone .iba-ai-fab.iba-ai-fab svg.iba-ai-bot { width: 42px !important; height: 42px !important; }

    /* the assistant on the cover screen */
    body.iba-phone #iba-ai-panel .iba-ai-head { padding: 6px 8px !important; gap: 4px !important; }
    body.iba-phone .iba-ai-phone .iba-ai-pane { padding: 8px 10px 16px !important; gap: 8px !important; }
    body.iba-phone .iba-aph-hero { padding: 8px 10px !important; gap: 8px !important; border-radius: 14px !important; }
    body.iba-phone .iba-aph-bot, body.iba-phone .iba-aph-bot svg { flex-basis: 40px !important; width: 40px !important; height: 48px !important; }
    body.iba-phone .iba-aph-hi strong { font-size: 16px !important; }
    body.iba-phone .iba-aph-hi small { font-size: 11px !important; }
    body.iba-phone .iba-aph-search { padding: 4px 4px 4px 10px !important; }
    body.iba-phone .iba-aph-go { flex-basis: 34px !important; width: 34px !important; height: 34px !important; }
    body.iba-phone .iba-aph-tiles { gap: 6px !important; }
    body.iba-phone .iba-aph-tiles button { padding: 8px !important; min-height: 0 !important; border-radius: 12px !important; }
    body.iba-phone .iba-aph-tiles button[data-aph-mode="inv"] { min-height: 54px !important; }
    body.iba-phone .iba-aph-tiles button i { width: 26px !important; height: 26px !important; border-radius: 8px !important; font-size: 12px !important; }
    body.iba-phone .iba-aph-tiles button b { font-size: 13px !important; }
    body.iba-phone .iba-aph-tiles button small { display: none !important; }
    body.iba-phone .iba-aph-foot { font-size: 11px !important; }
    body.iba-phone #iba-ai-panel .iba-ai-card { padding: 10px 11px !important; font-size: 13px !important; }
  }
}

/* 15.0.0 patch 49: phone workspace - grey detail text in warm gold / light
   so it reads at a glance */
body.iba-phone #iba-phone#iba-phone {
  --ph-text-2: #EBD8A8;
  --ph-text-3: #E3C98A;
}
/* the whole system (dark glass theme): the grey "detail" text colours become
   warm gold so dates, vendors, who-has-it, counts and hints stand out */
@layer iba-ui {
  html:root, html body {
    --ui-text-2: #EBD8A8 !important;
    --ui-text-3: #E3C98A !important;
    --iba-muted: rgba(235, 216, 168, 0.95) !important;
  }
}
