/* OG chat board room round (2026-11-07, Brent's live order:
   "make more room at the top... do it like how yours is where
   you can see almost everything"). This sheet is linked after
   og_duo.css and is the final word for the chat board's
   geometry only — no persona, no behaviour, no script.

   What was wrong, measured at 430x932 on the shipped cascade:
   the presence cluster was a 156px fixed column (84px medallion
   + name/status bubble stacked under it) floating over a
   container that reserved 178px at the top and 184px at the
   bottom, while the real composer dock measures 135px — so
   the board the owner actually reads was a 570px strip and
   ~70px of the screen was dead reserve. OG's bubbles also
   stopped at 88% of a 406px row inside a 430px board.

   The fix: the presence header becomes one slim IN-FLOW row
   at the head of the chat column (small medallion + name +
   live status pill, one row, 56px). Because it is in flow,
   the height it takes is exactly the height the board gives
   up — no floating cluster, no guessed reserve, and the
   topbar's corner buttons (menu / call / new chat, all still
   live in their own fixed bar) share its band without ever
   covering a message. The container's bottom reserve now
   matches the shipped dock's measured height (135px at phone
   width, 140px above it), so the board runs from the header
   to the dock: 741px at 430x932, up from 570px.

   OG's bubbles take the board's full row; the visitor's keep
   their narrower contrast width. No message body is
   height-capped or clipped anywhere in this sheet: a reply
   grows to its full length and the BOARD scrolls — the tail
   of a long reply is always present and reachable.

   SUPERSEDED IN PART (2026-11-14, Brent's text-screen order):
   the slim row is gone. OG now stands CENTERED in a column
   header at the big 63px size the call button used to have,
   his name in the bubble directly under him, and the live
   status pill under the name — visible ONLY while he is
   actually doing something, display:none at rest. The call
   button shrank to the pencil's 42px (og_talking.css). The
   header stays in flow at a fixed height, so the pill
   appearing/disappearing never moves the board. */

/* The board's frame: header in flow (below), dock reserve
   trimmed to the dock's measured height. */
.chat-wrapper .chat-container {
    padding-top: 0;
    padding-bottom: calc(140px + env(safe-area-inset-bottom));
}

/* The centered presence column (2026-11-14). OG's medallion
   is pinned at the top (justify-content:flex-start) so it
   never moves when the status pill comes and goes; the pill
   shows only in the bubble's busy state — at rest it is
   display:none (rule below), flipped live by the pill
   observer script in index_epic.html (og-pill-visibility-js),
   the same data-state swap the hero bubble already uses. A
   long live status truncates with an ellipsis inside its
   pill instead of pushing the header wider or taller. */
#ogTopAvatarBar {
    position: relative; left: auto; top: auto; transform: none;
    width: 100%; max-width: none; z-index: auto;
    height: calc(130px + env(safe-area-inset-top));
    flex: 0 0 auto;
    flex-direction: column; align-items: center; justify-content: flex-start;
    gap: 6px;
    padding: calc(6px + env(safe-area-inset-top)) 12px 6px;
}
#ogTopAvatarBar .og-top-ava { width: 63px; height: 63px; }
#ogTopAvatarBar .og-name-bubble {
    flex-direction: column; align-items: center; gap: 4px;
    min-width: 0; max-width: 100%; margin: 0; padding: 5px 12px;
}
#ogTopAvatarBar .og-top-name { margin: 0; white-space: nowrap; }
#ogTopAvatarBar .og-task-pill {
    margin: 0; min-width: 0; max-width: 100%;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#ogTopAvatarBar .og-name-bubble[data-state="rest"] .og-task-pill { display: none; }

/* The board itself: full width of the chat column, and OG's
   messages run its full row. */
#messagesArea {
    width: 100%; max-width: none;
    padding: 16px clamp(12px, 3vw, 26px) 28px;
}
#messagesArea .message { width: 100%; max-width: none; }
#messagesArea .message.ai .message-content {
    flex: 1 1 auto; width: 100%; max-width: 100%;
    height: auto; max-height: none; overflow: visible;
}
#messagesArea .message .message-text {
    height: auto; max-height: none; overflow: visible;
}
#messagesArea .message.user .message-content { max-width: 82%; }

@media (max-width: 768px) {
    .chat-wrapper .chat-container {
        padding-bottom: calc(135px + env(safe-area-inset-bottom));
    }
    #messagesArea { padding: 14px 6px 24px; }
    #messagesArea .message.user .message-content { max-width: 82%; }
}
