/* Host home on phones: the OBN Meet app look (StreamPort colours), one screen, bottom menu. */
@media (max-width: 760px) {
  :root, :root[data-theme] {
    --bg: #0b0c0e; --surface: #1a1c20; --line: #2a2d33; --text: #f2f3f5; --muted: #9a9fa8;
    --blue: #2997ff; --blue-hover: #2997ff; --blue-grad: #2997ff; --radius: 16px;
    --shadow-sm: none; --shadow-md: none;
  }
  html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
  body { display: flex; flex-direction: column; height: 100dvh; margin: 0; background: #0b0c0e !important; color: #f2f3f5;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; }

  /* Top bar */
  .nav { flex: none; position: static !important; height: auto !important; padding: calc(env(safe-area-inset-top, 0px) + 8px) 16px 8px !important;
    background: #0b0c0e !important; border: 0 !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .nav .brand-full { height: 28px; width: auto; filter: brightness(0) invert(1); opacity: .9; }
  .nav-right { gap: 8px !important; }
  .nav-right .btn.ghost { height: 40px; padding: 0 12px; border: 0 !important; border-radius: 10px; background: #1a1c20 !important; color: #f2f3f5 !important; box-shadow: none !important; }
  .nav-right .watch-link, .nav-right .cmdk-btn, .nav-right #theme-btn, .nav-right .theme-btn { display: none !important; }
  .profile { width: 40px; height: 40px; background: #2997ff !important; }
  .menu { background: #1a1c20 !important; border: 1px solid #2a2d33 !important; color: #f2f3f5; box-shadow: 0 16px 40px rgba(0, 0, 0, .6) !important; }
  .menu-item { color: #f2f3f5 !important; }
  .menu-item:hover, .menu-item:active { background: #2a2d33 !important; }

  /* Page */
  .home { flex: 1; min-height: 0; display: flex !important; flex-direction: column; gap: 14px !important; width: 100%; max-width: 520px;
    margin: 0 auto; padding: 4px 16px 12px !important; overflow: hidden; }

  /* Four actions in one row, like app buttons */
  .actions { flex: none; display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 8px !important; width: 100%; align-self: stretch !important; }
  .action { min-width: 0; gap: 6px !important; animation: none !important; }
  .action > span { max-width: 100%; font-size: 12px; font-weight: 600; color: #9a9fa8 !important; white-space: nowrap; }
  .home > * { min-width: 0; max-width: 100%; }
  .action > span .caret { width: 18px; height: 18px; padding: 0; color: #9a9fa8; }
  .tile { width: 60px !important; height: 60px !important; border-radius: 18px !important; background: #2997ff !important; box-shadow: none !important; }
  .tile::after { display: none; }
  .tile svg { width: 28px !important; height: 28px !important; }
  .tile.orange { background: #e8101a !important; }
  .tile:hover { transform: none !important; }
  .tile:active { transform: scale(.94) !important; filter: brightness(1.15); }
  #new-menu { left: 0; right: auto; min-width: 260px; }

  /* Clock card and upcoming meetings fill the rest; the list scrolls inside if long. */
  .agenda { flex: 1; min-height: 0; display: flex; flex-direction: column; background: #1a1c20 !important; border: 0 !important; border-radius: 16px; }
  .clock { flex: none; padding: 16px 18px !important; }
  .clock .greet { font-size: 14px; margin-bottom: 2px; }
  .clock .time { font-size: 40px; }
  .clock .date { margin-top: 4px; font-size: 14px; }
  .clock .next-up { margin-top: 10px; }
  .upcoming { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 0 0 6px; }
  .upcoming-head { flex: none; padding: 12px 16px 2px; }
  #upcoming-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
  #upcoming-list::-webkit-scrollbar { display: none; }
  .day { padding: 10px 16px 2px; color: #9a9fa8; }
  .meeting-row { padding: 10px 16px; border-top-color: #2a2d33 !important; }
  .meeting-row:hover { background: none; }
  .meeting-row .topic { color: #f2f3f5; }
  .meeting-row .btn.primary { background: #2997ff !important; border: 0; box-shadow: none !important; }
  .meeting-row .kind { color: #f5b83d; }
  .upcoming .empty { padding: 16px; color: #9a9fa8; }
  .upcoming .empty svg { width: 40px; height: 40px; }
  .recent, .guest-intro { display: none !important; }

  /* Dialogs: dark, rising from the bottom like the app's sheets */
  .overlay { background: rgba(0, 0, 0, .6) !important; place-items: end center !important; padding: 0 !important; }
  .modal { width: 100% !important; max-width: 560px; max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 24px) !important;
    border-radius: 24px 24px 0 0 !important; padding: 18px 16px calc(env(safe-area-inset-bottom, 0px) + 16px) !important;
    background: #1a1c20 !important; color: #f2f3f5; box-shadow: none !important; }
  .modal h3 { color: #f2f3f5; }
  .modal input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), .modal select, .modal textarea {
    min-height: 46px; border: 1px solid #2a2d33 !important; border-radius: 12px !important; background: #2a2d33 !important; color: #f2f3f5 !important; font-size: 16px; }
  .modal input::placeholder, .modal textarea::placeholder { color: #6e737c; }
  .modal .btn { min-height: 46px; border-radius: 12px; box-shadow: none !important; }
  .modal .btn.primary { background: #2997ff !important; color: #fff !important; border: 0; }
  .modal .btn.ghost { background: #2a2d33 !important; color: #f2f3f5 !important; border: 0 !important; }
  .seg span { border-color: #2a2d33; color: #f2f3f5; }
  .seg input:checked + span { border-color: #2997ff; background: rgba(41, 151, 255, .12); }


  @media (max-height: 640px) {
    .clock .time { font-size: 32px; }
    .clock .greet { display: none; }
    .tile { width: 54px !important; height: 54px !important; }
    .action > span { font-size: 11px; }
  }
}
