/* CR-1510 phase 8b: the mailbox writer's on-screen keyboard (keyboardArea.js; the panel's own look is in
   /indic-keyboard/src/indic-keyboard.css). email59 marks dark with data-theme="dark" and light with no attribute,
   so a light page on a dark computer keeps the light panel. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="dark"]) .ikb-toggle, :root:not([data-theme="dark"]) .ikb, :root:not([data-theme="dark"]) .ikb * {
    --ikb-ink: #193038; --ikb-paper: #ffffff; --ikb-soft: #f4f6f2; --ikb-edge: #c9d3cf; --ikb-muted: #4a5d63;
  }
}
.mb-compose .xlit-pick .ikb-toggle { flex: 0 0 auto; }
.mb-compose .ikb { margin: 4px 0 14px; }
.mb-compose .ikb label, .mb-compose .ikb select { margin: 0; }
.mb-compose .ikb select.ikb-lang { min-height: 44px; font-size: 16px; width: auto; }
.kmw-page-trailer { display: none !important; } /* Keyman pads the page for a keyboard docked at the bottom; ours is inline */
/* On a phone the panel stays at the bottom of the screen while Message is on it, so the caret and the keys show
   together (Message is 12 lines tall; the keys would otherwise sit below the fold). */
@media (max-width: 700px) {
  .mb-compose .ikb:not([hidden]) { position: sticky; bottom: 0; z-index: 70; max-height: 75vh; overflow: auto;
    box-shadow: 0 -8px 24px rgba(16, 18, 30, .18); }
}
