/* Round 52 — OG chat shell (Brent's design, 2026-10-10): the layout of
   his reference (Muse iOS app) in OG's black-and-gold skin. Floating
   top cluster (avatar center, name + live status under it, round corner
   buttons), a floating composer pill, and a floating five-seat pill
   under it: Chat · Library · All actions · Approvals · Menu.
   Layout only — every control keeps its existing id and wiring. */

/* --- Top cluster ---------------------------------------------------- */
.og-topbar {
    position: fixed; top: 0; left: 50%; transform: translateX(-50%);
    width: min(880px, 100%); z-index: 7600;
    max-width: none; margin: 0;
    padding: calc(10px + env(safe-area-inset-top)) 14px 0;
    background: transparent; pointer-events: none;
}
.og-topbar .og-circle-btn { pointer-events: auto; box-shadow: 0 6px 18px rgba(0,0,0,.5); }

.og-top-avatar-bar {
    position: fixed; top: 0; left: 50%; transform: translateX(-50%);
    width: min(880px, 100%); z-index: 7500;
    padding: calc(8px + env(safe-area-inset-top)) 12px 10px;
    pointer-events: none;
    background: radial-gradient(ellipse 75% 115% at 50% 0%, rgba(8,8,8,.88), rgba(8,8,8,0) 78%);
}
.og-top-avatar-bar .og-top-ava { pointer-events: auto; }

/* The chat column clears the floating cluster above and the dock below.
   Turn-pipeline fix (2026-11-01): the reserve was 148px, but the
   cluster's measured height is ~222px (avatar block + the name
   bubble carrying the live status pill) — the shortfall is exactly
   the overlap in the owner's drill, where the "Thinking…/
   Answering…" pill painted over his own message for the whole
   first segment. The reserve is now the measured cluster height
   plus headroom, so the pill can never cover message content;
   both sides carry the same safe-area term, so the clearance
   holds on notched phones too. Measured at 430px and 390px in
   the turn-pipeline proof (overlap 46px/45px before, none after).

   TEXT-BOARD ROUND (owner drill 2026-11-05: "his text follows
   his text to the bottom — but it needs to be bigger"): the
   ~222px cluster measurement above predates the small top
   avatar (PR #55, 2026-11-04). The cluster as it ships now:
   avatar bar padding 8 + avatar 84 + name bubble ~48 (name +
   status pill) + bar padding-bottom 10 ≈ 156px, and the
   corner-button row (52px) floats INSIDE that extent. The
   bottom dock as it ships: composer pill 54 + status line
   ~25 + token line ~18 + gap 8 + five-seat pill 57 + dock
   padding 10 ≈ 172px. The old reserves (238/198) therefore
   held ~74px of DEAD space at 430x932 — board 496px — which
   is the small board the drill shows. The reserves now ride
   the shipped measurements + headroom (22 top / 12 bottom —
   the top keeps MORE than the 16px headroom the 2026-11-01
   fix added, so the pill-coverage invariant is preserved):
   board at 430x932 = 932 - 178 - 184 = 570px (+74). The
   safe-area terms are unchanged and appear on both sides,
   so the trim is inset-neutral on notched phones.
   og_talking.css carries the same values (it wins the
   cascade — keep the pair in step). */
.chat-container {
    padding-top: calc(178px + env(safe-area-inset-top));
    padding-bottom: calc(184px + env(safe-area-inset-bottom));
}

/* --- Bottom dock: composer pill + seat pill -------------------------- */
#ogShellDock {
    position: fixed; left: 50%; transform: translateX(-50%); bottom: 0;
    width: min(880px, 100%); z-index: 7600;
    padding: 0 12px calc(10px + env(safe-area-inset-bottom));
    display: flex; flex-direction: column; gap: 8px;
    pointer-events: none;
}
#ogShellDock > * { pointer-events: auto; }
#ogShellComposerSlot { display: flex; flex-direction: column; }

#ogShellDock .input-area {
    background: transparent; border-top: none; padding: 0;
}
#ogShellDock .input-wrapper {
    border-radius: 999px; padding: 6px 8px; gap: 6px;
    background: rgba(22,22,22,.97);
    box-shadow: 0 14px 36px rgba(0,0,0,.6), 0 2px 8px rgba(0,0,0,.5);
}
#ogShellDock .og-status-line { margin-top: 7px; text-shadow: 0 1px 6px #000; }
#ogShellDock .og-token-line { margin-top: 2px; text-shadow: 0 1px 6px #000; }

/* --- Five-seat pill --------------------------------------------------- */
#ogSeatBar {
    display: flex; gap: 2px; padding: 6px;
    /* Solid, no backdrop-filter (2026-11-04 scroll-ghosting
       hardening): the bar floats over the scrolling thread,
       and a translucent blurred layer over moving content
       is a standing iOS compositing smear — the same class
       Ticket L2 convicted under the sheets. The .95 alpha
       read as solid at rest; the blur did the damage. */
    background: #111111;
    border: 1px solid #2c2c2c; border-radius: 999px;
    box-shadow: 0 14px 36px rgba(0,0,0,.6), 0 2px 8px rgba(0,0,0,.5);
}
.og-seat {
    flex: 1 1 0; min-width: 0; position: relative;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 7px 2px 5px; border: none; border-radius: 999px;
    background: transparent; color: #cfcfcf;
    font-family: inherit; cursor: pointer;
}
.og-seat svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.og-seat-label { font-size: .6rem; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.og-seat:hover { color: #ffc107; }
.og-seat.is-on { background: linear-gradient(135deg, #ffc107, #ff8f00); color: #151515; }
.og-seat.is-on:hover { color: #151515; }
/* Round 95: the Feed seat's dot is a COUNT badge now —
   the bell is deleted and its unread count lives here,
   the same number from the same payloads. */
.og-seat-dot {
    position: absolute; top: 2px; left: calc(50% + 3px);
    min-width: 19px; height: 19px; border-radius: 999px;
    background: #ffc107; border: 2px solid #111;
    color: #111; font-size: 11px; font-weight: 700; line-height: 1;
    display: grid; place-items: center; padding: 0 4px;
}
.og-seat-dot[hidden] { display: none !important; }
.og-seat.is-on .og-seat-dot { background: #151515; border-color: #ffc107; color: #ffc107; }

/* --- Approvals panel --------------------------------------------------- */
.og-appr-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 8199; }
.og-appr-scrim[hidden] { display: none !important; }
.og-appr-panel {
    position: fixed; top: 0; right: 0; z-index: 8200;
    height: 100vh; height: 100dvh; width: min(400px, 94vw);
    background: #0c0c0c; border-left: 1px solid rgba(255,193,7,.38);
    display: flex; flex-direction: column;
    padding: calc(14px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));
    box-shadow: -12px 0 32px rgba(0,0,0,.5);
}
.og-appr-panel[hidden] { display: none !important; }
.og-appr-head { display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; padding: 0 2px 12px; }
.og-appr-title { font-size: 1.32rem; font-weight: 700; color: #f5f5f5; }
.og-appr-scroll { flex: 1 1 auto; overflow-y: auto; min-height: 0; }
.og-appr-card { border: 2px solid #ffc107; border-radius: 14px; background: linear-gradient(180deg, #1d1703, #121212); padding: 12px 14px; color: #f2f2f2; }
.og-appr-card[hidden] { display: none !important; }
.og-appr-sec { margin: 20px 4px 8px; font-size: .74rem; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: #8f8f8f; }
.og-appr-sec[hidden] { display: none !important; }
.og-appr-item { display: flex; gap: 12px; padding: 13px 14px; background: #171717; border: 1px solid #262626; border-radius: 16px; margin: 0 0 10px; }
.og-appr-item.unread { border-color: rgba(255,193,7,.55); }
.og-appr-ico { font-size: 1.25rem; line-height: 1.3; flex: 0 0 auto; }
.og-appr-main { flex: 1 1 auto; min-width: 0; }
.og-appr-item-title { font-weight: 700; color: #f2f2f2; font-size: .98rem; line-height: 1.3; }
.og-appr-item-body { color: #bcbcbc; font-size: .9rem; line-height: 1.4; margin-top: 2px; overflow-wrap: anywhere; }
.og-appr-item-time { color: #8f8f8f; font-size: .76rem; margin-top: 4px; }
.og-appr-empty { color: #a8a8a8; line-height: 1.5; padding: 10px 4px; }
.og-appr-empty[hidden] { display: none !important; }
#ogApprYesBtn { border: 1px solid #ffc107; background: #ffc107; color: #151515; }
#ogApprNoBtn { border: 1px solid rgba(255,120,120,.7); background: transparent; color: #ff9c9c; }
#ogApprAlwaysBtn { border: 1px solid rgba(255,193,7,.55); background: transparent; color: #e8c95a; }
#ogApprAlwaysBtn[hidden] { display: none !important; }

/* Round 53: fix-proposal rows in the Approvals panel */
.og-appr-fix-btns { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.og-appr-fix-btns button { border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: .88rem; cursor: pointer; }
.og-appr-fix-btns button[disabled] { opacity: .5; cursor: default; }
.og-appr-fix-yes { border: 1px solid #ffc107; background: #ffc107; color: #151515; }
.og-appr-fix-no { border: 1px solid rgba(255,120,120,.7); background: transparent; color: #ff9c9c; }

/* --- Signed out: the shell hides with the auth wall up ----------------- */
body.og-shell-off .og-topbar,
body.og-shell-off .og-top-avatar-bar,
body.og-shell-off #ogShellDock { display: none !important; }

/* --- Phones: keep the pill in one row (reference layout) --------------- */
@media (max-width: 768px) {
    #ogShellDock { padding: 0 10px calc(8px + env(safe-area-inset-bottom)); }
    #ogShellDock .input-wrapper { flex-direction: row; flex-wrap: nowrap; border-radius: 999px; gap: 4px; }
    #ogShellDock #messageInput { flex: 1 1 auto; order: 0; padding: 8px 6px; font-size: 16px; }
    .input-wrapper #voiceBtn { flex: 0 0 auto; width: 40px; min-height: 0; }
    .input-wrapper #sendBtn { flex: 0 0 auto; width: 42px; min-height: 0; }
    .og-seat-label { font-size: .56rem; }
}

/* --- Round 59: four seats + the content-area seat screen ---------------
   The seat screen lives BETWEEN the top cluster and the dock: fixed in
   the same centered column, its bottom edge stops above the dock and
   its z-index (7400) sits BELOW the dock/avatar bars (7500/7600), so
   the composer dock + seat pill stay pinned and visible while any
   seat is the active context. Full-screen takeovers that legitimately
   cover (browser Take control, the side menu) are unchanged. */
#ogSeatScreen {
    position: fixed; left: 50%; transform: translateX(-50%);
    width: min(880px, 100%); z-index: 7400;
    top: calc(148px + env(safe-area-inset-top));
    bottom: calc(202px + env(safe-area-inset-bottom));
    background: rgba(10,10,10,.98);
    border-top: 1px solid rgba(255,193,7,.35);
    border-bottom: 1px solid rgba(255,193,7,.35);
    display: flex; flex-direction: column; color: #f2f2f2;
}
#ogSeatScreen[hidden] { display: none !important; }
body.og-shell-off #ogSeatScreen { display: none !important; }
.og-seat-screen-head {
    display: flex; align-items: center; justify-content: space-between;
    flex: 0 0 auto; padding: 12px 16px 8px;
}
.og-seat-screen-title { font-size: 1.15rem; font-weight: 700; color: #f5f5f5; }
.og-seat-view { flex: 1 1 auto; overflow-y: auto; min-height: 0; padding: 4px 16px 16px; }
.og-seat-view[hidden] { display: none !important; }
.og-seat-summary { color: #a8a8a8; line-height: 1.5; padding: 6px 4px 2px; }
.og-seat-summary[hidden] { display: none !important; }
.og-seat-notice {
    flex: 0 0 auto; margin: 0 16px 8px; padding: 9px 12px;
    border: 1px solid rgba(255,193,7,.5); border-radius: 12px;
    background: rgba(255,193,7,.1); color: #ffe082;
    font-size: .9rem; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere;
}
.og-seat-notice[hidden] { display: none !important; }
.og-seat-notice-pulse { animation: ogSeatNoticePulse 1.2s ease; }
@keyframes ogSeatNoticePulse {
    0% { background: rgba(255,193,7,.32); }
    100% { background: rgba(255,193,7,.1); }
}
#ogIdeasApprBtn { border: 1px solid #ffc107; background: #ffc107; color: #151515; }

/* Feed: library tabs + merged rows */
.og-feed-tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px 0 12px; }
.og-feed-tab {
    border: 1px solid #2c2c2c; background: #171717; color: #cfcfcf;
    border-radius: 999px; padding: 7px 14px; font-family: inherit;
    font-size: .85rem; font-weight: 600; cursor: pointer;
}
.og-feed-tab:hover { color: #ffc107; }
.og-feed-tab.is-on { background: linear-gradient(135deg, #ffc107, #ff8f00); color: #151515; border-color: transparent; }
/* NEWS-REPORT LOOK (Brent, 2026-11-11): Ideas and Feed
   entries are newspaper articles, not tip cards. The
   .og-article treatment strips the .og-appr-item card
   box (fill, border, radius) down to a hairline
   divider, and typography carries the page: a
   small-caps kicker in muted gray, a headline in the
   page's own text color, the why-line as a quiet
   italic sub-line, and a byline (source · time). The
   art is the real picture the payload carries or
   nothing at all — a hero on the top story and above
   each idea entry, one consistent thumbnail size
   beside the other posts. No per-card accent
   lettering, no drawn figures, no icon slots, no pill
   buttons. (Supersedes the 2026-11-10 redesign/remodel
   treatments, which Brent's drill rejected.) */
/* The compound selector is deliberate: og_look.css's
   seat polish restyles .og-appr-item globally (card
   fill, 18px radius) and loads after this file — the
   article treatment must outrank it for these two
   panels' entries only, never for Approvals rows. */
.og-appr-item.og-article { background: none; border: none; border-bottom: 1px solid #262626; border-radius: 0; margin: 0; padding: 16px 2px 18px; align-items: flex-start; gap: 0; }
.og-appr-item.og-article.unread { box-shadow: inset 3px 0 0 #ffc107; }
/* Ideas entries: art above the headline, stacked. */
.og-idea-card.og-article { flex-direction: column; }
.og-idea-card .og-appr-main { width: 100%; }
.og-idea-img { width: 100%; height: auto; max-height: 300px; object-fit: contain; border: none; background: none; margin-bottom: 12px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.55)); }
.og-idea-card .og-appr-item-title { color: #f2f2f2; font-size: 1.14rem; line-height: 1.3; }
.og-idea-byline { color: #8f8f8f; font-size: .78rem; margin-top: 4px; }
/* Feed entries: day heads read as section heads; the
   top story stacks its hero over a larger headline,
   the rest run text-first with the thumbnail beside. */
.og-feed-dayhead { color: #e8e8e8; font-weight: 700; font-size: .92rem; letter-spacing: .02em; margin: 18px 2px 2px; }
.og-feed-dayhead:first-child { margin-top: 2px; }
.og-post-kicker { color: #9d9d9d; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 3px; }
.og-feed-row .og-appr-item-title { color: #f2f2f2; font-size: 1.06rem; line-height: 1.3; }
.og-article-lead { flex-direction: column; }
.og-article-lead .og-appr-main { width: 100%; }
.og-article-lead .og-appr-item-title { font-size: 1.42rem; line-height: 1.22; }
.og-feed-img { flex: 0 0 auto; width: 92px; height: 92px; object-fit: contain; border: none; background: none; margin-left: 12px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.55)); }
.og-article-lead .og-feed-img { width: 100%; height: auto; max-height: 320px; margin: 0 0 12px; }
.og-post-why { color: #9d9d9d; font-size: .84rem; font-style: italic; line-height: 1.35; margin-top: 2px; }
.og-post-byline { color: #8f8f8f; font-size: .78rem; margin-top: 6px; }
.og-post-source { color: #8ab4ff; text-decoration: none; }
.og-post-source:hover { text-decoration: underline; }
.og-feed-tappable { cursor: pointer; }
.og-feed-tappable:hover { background: rgba(255,255,255,.03); }
.og-feed-action {
    display: inline-block; margin-top: 8px; text-decoration: none;
    background: none; border: none; padding: 0; color: #ffc107;
    font-size: .86rem; font-weight: 700;
}
.og-feed-action:hover { text-decoration: underline; }
/* Round 95: the Feed seat's clear controls + the
   per-notification dismiss (the canonical 42px circle —
   the same button as every ✕ since Round 87). */
.og-feed-clear { display: flex; gap: 10px; padding: 8px 4px 2px; }
.og-feed-clear[hidden] { display: none !important; }
.og-feed-clear button {
    flex: 1 1 0; padding: 10px 12px; border-radius: 12px;
    border: 1px solid rgba(255,193,7,.45); background: transparent;
    color: #ffc107; font-weight: 700; font-family: inherit;
    font-size: .9rem; cursor: pointer;
}
.og-feed-dismiss {
    flex: 0 0 auto; align-self: center; width: 42px; height: 42px;
    border-radius: 50%; background: #1b1b1b; border: 1px solid #333;
    color: #e8e8e8; display: grid; place-items: center;
    cursor: pointer; padding: 0;
}
.og-feed-dismiss svg { width: 21px; height: 21px; }
.og-feed-dismiss:hover { border-color: rgba(255,193,7,.7); color: #ffc107; }
.og-feed-flash { animation: ogFeedFlash 1.8s ease; }
@keyframes ogFeedFlash {
    0%, 55% { background: rgba(255,193,7,.3); }
    100% { background: transparent; }
}

@media (max-width: 768px) {
    #ogSeatScreen {
        top: calc(140px + env(safe-area-inset-top));
        bottom: calc(186px + env(safe-area-inset-bottom));
    }
}

/* --- Round 70: the menu is a full-screen page --------------------------
   Brent (2026-10-11): "the 3 bar menu when you go to the menu needs to
   go full screen." The menu's own rules live inline in the page (a
   320px left panel); this sheet is linked AFTER that block, so these
   rules win the cascade and the page file stays untouched. The panel
   becomes the whole viewport — the same black-and-gold full page as
   the app's menu — carrying everything it carried before (header,
   plan + token cards, grouped rows, footer) in the shell's own 880px
   column. Open/close behavior is unchanged: the ✕ at the top right
   (and the scrim) still return the user to exactly where they were. */
.og-menu {
    width: 100%; max-width: none;
    border-right: none; box-shadow: none;
}
.og-menu-head, .og-menu-body, .og-menu-foot {
    width: min(880px, 100%);
    margin-left: auto; margin-right: auto;
}

/* --- Round 70 (addition): composer cleanup + full-screen seats --------
   Brent (2026-10-11, from his screen recording):
   A. The two status lines under the composer — the
      "Connected - OG-AI" line (#ogStatusLine) and the plan
      line under it (#tokenStatus) — go away entirely; the
      plan's home is the menu's plan card. The elements are
      the page's own (the page file is never edited), so
      they are removed from layout here. textContent is
      untouched, so the page's plan-bar logic that READS
      the line keeps working exactly as before. With the
      lines gone, the dock's flex column is just
      [composer][seat bar] — the composer pill docks
      directly above the seat bar, nothing between them.
   B. Goals / Ideas / Feed (and the new Progress seat)
      open as FULL-SCREEN pages, same pattern as the menu
      above: the seat screen covers the whole viewport
      (z 9000, above the dock/top cluster at 7500/7600,
      below the menu at 9001), opaque black-and-gold, its
      head + views in the shell's 880px column, the ✕ at
      the top right closing back to chat. The legacy
      between-the-bars geometry above stays in the file
      (older suites read it); these later rules win the
      cascade. The Approvals panel is raised above the
      seats (9300/9299) because it opens FROM the Ideas
      seat.
   Round 79 CORRECTS B's bottom edge (Brent, 2026-10-11
   22:01, from his next recording): the seat bar must
   STAY on screen — his older standing rule (the R59
   rule: the bar never disappears on the seats) wins
   over the full-screen presentation. The seat screen
   still starts at the very top (full-height content,
   ✕ head, 880px column, z 9000) but its bottom edge
   now stops above the dock at the R59 dock-clearing
   offsets (202px desktop / 186px phone, + safe-area),
   so the composer + seat bar are never covered and
   stay tappable while any seat is open. Nothing else
   about B changes; the Approvals panel keeps its
   raised 9300/9299 above the seats. */
#ogStatusLine, #tokenStatus { display: none !important; }

/* Footer line placement (Brent, 2026-10-11, corrected
   17:00): "No it's fine in the menu, I don't like it in
   chat though." The "🔞 OG AI is an 18+ AI — adults
   only. · Privacy · Terms" line STAYS in the menu
   (.og-menu-foot, untouched) and is REMOVED from the
   chat surface — its under-composer rendering
   (.age-footer) is hidden. The /privacy and /terms
   PAGES stay live at their URLs (store/Google
   requirements), and the age gate's own notices are
   untouched. */
.age-footer { display: none !important; }

#ogSeatScreen {
    top: 0; bottom: calc(202px + env(safe-area-inset-bottom));
    left: 0; transform: none;
    width: 100%; z-index: 9000;
    border-top: none; border-bottom: 1px solid rgba(255,193,7,.35);
    background: radial-gradient(120% 90% at 50% 0%, #171307 0%, #0b0b0b 55%);
    padding-top: calc(10px + env(safe-area-inset-top));
    padding-bottom: 10px;
}
#ogSeatScreen .og-seat-screen-head,
#ogSeatScreen .og-seat-view {
    width: min(880px, 100%);
    margin-left: auto; margin-right: auto;
}
#ogSeatScreen .og-seat-notice {
    width: min(848px, calc(100% - 32px));
    margin: 0 auto 8px;
}
@media (max-width: 768px) {
    #ogSeatScreen { top: 0; bottom: calc(186px + env(safe-area-inset-bottom)); }
}
.og-appr-scrim { z-index: 9299; }
.og-appr-panel { z-index: 9300; }

/* Progress seat: the live bar exists ONLY on rows the
   payload marks actively working (pct is a number) —
   queued / waiting / done rows render no bar at all
   (Brent, 2026-10-11: "Only tasks that are being worked
   on will have the live %."). */
.og-prog-bar {
    height: 8px; border-radius: 99px; background: #262626;
    overflow: hidden; margin-top: 8px;
}
.og-prog-bar span {
    display: block; height: 100%;
    background: linear-gradient(135deg, #ffc107, #ff8f00);
}
.og-prog-pct { color: #ffc107; font-weight: 700; }

/* Browser small bar (Round 70 addition, Brent
   2026-10-11): the browser window's small state is a
   compact bar in the MIDDLE of the screen carrying
   exactly the Open browser control + the ✕. The panel
   and its behavior are the page's own (auto-shows for a
   live session — including one parked at a login wall —
   per the existing rules; the ✕ dismisses the window
   only and NEVER ends the session; End task is still
   the only session end). This block only reshapes the
   SMALL state: centered, view/note/actions tucked away,
   [Open browser] [✕] in one row. The OPEN state
   (.og-panel-open, in-flow) and the take-control full
   state (.og-panel-full) are untouched. */
.og-browser-panel:not(.og-panel-open):not(.og-panel-full) {
    position: fixed; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: min(400px, 92vw); min-width: 0; max-width: none;
    margin: 0; z-index: 8900;
    display: flex; align-items: center; gap: 8px;
    padding: 10px 12px;
}
.og-browser-panel[hidden] { display: none !important; }
.og-browser-panel:not(.og-panel-open):not(.og-panel-full)
    .og-browser-view,
.og-browser-panel:not(.og-panel-open):not(.og-panel-full)
    .og-browser-note,
.og-browser-panel:not(.og-panel-open):not(.og-panel-full)
    .og-browser-actions { display: none !important; }
.og-browser-panel:not(.og-panel-open):not(.og-panel-full)
    .og-browser-open {
    order: 1; flex: 1 1 auto; width: auto; margin: 0;
}
.og-browser-panel:not(.og-panel-open):not(.og-panel-full)
    .og-browser-x {
    order: 2; position: static; flex: 0 0 auto;
}

/* The status pill is tappable (Round 70 addition): it
   routes to the thing it names. */
.og-task-pill { cursor: pointer; }

/* Approval lock (Round 70 addition): while a formal
   approval card is unanswered the composer is locked
   (og_shell.js disables input + send + talk and marks
   the body) — the pill dims and rings gold so the locked
   state is visible, and the swapped placeholder carries
   the instruction in gold. */
body.og-composer-locked #ogShellDock .input-wrapper {
    box-shadow: 0 0 0 2px rgba(255,193,7,.65), 0 14px 36px rgba(0,0,0,.6);
    opacity: .78;
}
body.og-composer-locked #messageInput::placeholder { color: #ffc107; }

/* Ideas seat: an entry's Ask / Dismiss ride as small
   subordinate TEXT actions (NEWS-REPORT LOOK) — no
   pill buttons under the article. */
.og-idea-btns { display: flex; gap: 22px; margin-top: 10px; flex-wrap: wrap; }
.og-idea-btns button {
    background: none; border: none; padding: 2px 0; font-weight: 700;
    font-size: .86rem; cursor: pointer; font-family: inherit;
}
.og-idea-ask { color: #ffc107; }
.og-idea-dismiss { color: #9d9d9d; }
.og-idea-btns button:hover { text-decoration: underline; }
.og-idea-btns button[disabled] { opacity: .5; cursor: default; }

/* --- Round 79: a server blink is not a sign-out ------------------------
   The page's own session check paints the auth wall on ANY
   failure of its /auth/me fetch — including a 502, whose
   HTML error page fails its JSON parse and lands in the
   same catch as a real sign-out (Brent's 2026-10-11
   recording: server blinked, the wall came up, his live
   Remember-me session was treated as dead). The shell's
   session-truth watcher (og_shell.js §2b) arbitrates:
   while the answer is only "the server isn't answering",
   body.og-auth-reconnecting hides the wall (the gate
   element, its hidden attribute, and the og-shell-off
   mirror are untouched — only the paint is suppressed)
   and the neutral chip below is the only surface, until
   a definitive /auth/me answer lands. A genuinely
   signed-out visitor's wall is never touched: on a
   definitive signed-out answer the class never goes on
   (or comes right back off). */
body.og-auth-reconnecting #ageGate { display: none !important; }
#ogReconnectChip {
    position: fixed; left: 50%; top: 50%;
    /* A notice, not a control (fix round 2, ticket 2026-10-31): it
       carries no buttons, so it must never eat a tap — on tall
       phones its centered box sat over the hero's call button and
       swallowed every touch aimed at it. */
    pointer-events: none;
    transform: translate(-50%, -50%);
    width: min(400px, 92vw); z-index: 9600;
    background: rgba(14,14,14,.97);
    border: 1px solid rgba(255,193,7,.55); border-radius: 16px;
    box-shadow: 0 18px 44px rgba(0,0,0,.65);
    padding: 18px 20px; text-align: center; color: #f2f2f2;
}
#ogReconnectChip[hidden] { display: none !important; }
.og-reconnect-title { display: block; font-size: 1.05rem; font-weight: 700; color: #ffd54f; }
.og-reconnect-sub { display: block; margin-top: 6px; font-size: .88rem; line-height: 1.45; color: #bcbcbc; }

/* --- Pair-this-device card (2026-11-10): one-tap self-pairing ---------
   Painted by og_shell.js §2c only for a signed-in browser
   that is not a paired device yet. Floats above the dock
   in the approvals card's palette; hides with the shell
   while the auth wall is up. */
.og-pair-card {
    position: fixed; left: 50%; transform: translateX(-50%);
    bottom: calc(188px + env(safe-area-inset-bottom));
    width: min(430px, 94vw); z-index: 7600;
    border: 2px solid #ffc107; border-radius: 14px;
    background: linear-gradient(180deg, #1d1703, #121212);
    padding: 14px 16px; color: #f2f2f2;
    box-shadow: 0 12px 32px rgba(0,0,0,.5);
}
.og-pair-head { font-size: 1.05rem; font-weight: 700; color: #f5f5f5; }
.og-pair-body { color: #bcbcbc; font-size: .92rem; line-height: 1.45; margin: 6px 0 0; }
.og-pair-body[hidden] { display: none !important; }
.og-pair-btns { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.og-pair-btns[hidden] { display: none !important; }
.og-pair-btns button { border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: .9rem; cursor: pointer; }
.og-pair-btns button[disabled] { opacity: .5; cursor: default; }
.og-pair-yes { border: 1px solid #ffc107; background: #ffc107; color: #151515; }
.og-pair-no { border: 1px solid rgba(255,255,255,.35); background: transparent; color: #e8e8e8; }
body.og-shell-off .og-pair-card { display: none !important; }

/* --- Round 87: every ✕ the same — the placement half -------------
   Brent (2026-10-12): "Make sure all the X buttons are the
   same." The canonical ✕ (the seat screens' og-circle-btn:
   42x42 circle, inline SVG glyph at 21px, top-right, close
   one level) was already the right button on the Library,
   Connections and profile pages — but those three head rows
   LEAD with the button, so their ✕ rendered at the top
   LEFT while every other surface (menu, seats, scaffold
   views, bell panel) carries it at the top right. These
   flex-order rules move the button to the right end of its
   own head row. DOM order, ids, wiring and behavior are
   untouched (the page's own suites pin the profile's DOM
   order; closeAllViews clicks by id). The look half of the
   round (sizes + glyphs) lives with each surface's own
   rules. On the profile the head is space-between, so the
   order swap alone lands the ✕ at the right; the two panel
   heads pack left, so their buttons also take the auto
   left margin that pushes them to the row's right end. */
.og-library-top .og-circle-btn { order: 2; margin-left: auto; }
.og-connections-top .og-circle-btn { order: 2; margin-left: auto; }
#profileCloseBtn { order: 2; }


/* --- Round 106: one clean typing bar + keyboard-up rules --------------
   Brent (2026-10-12): "the keyboard need to look like
   you keyboard" — clarified: "The typing bar where I
   talk to OG"; "There extra stuff on the keyboard";
   "And the bar that's underneath need to stay down
   there out of site when I keyboard up."
   Part 2 (LOOK ONLY): the dock's composer becomes ONE
   clean rounded bar — the text field takes the width,
   compact round buttons (40px) at the ends — in OG's
   black-and-gold skin. Every control keeps its id, job
   and wiring (the page's own restyle block is untouched;
   these dock-scoped rules win on specificity). K1: with
   the keyboard up, only the typing bar sits above it —
   the attach chip, the Add sheet, the picture preview
   and the generator cards clear out (visual only; their
   state is untouched and they return as they were). K2:
   the seat bar stays DOWN — out of sight — while the
   keyboard is up and returns when it closes. The
   body.og-kb-up class is driven by og_shell.js §8c off
   the real iOS visualViewport signal; with the keyboard
   down, no rule in this block applies and the shell is
   byte-for-byte the old behavior. */
#ogShellDock .input-wrapper {
    border-radius: 26px; border: 1px solid #333;
    padding: 6px; gap: 2px; align-items: center;
    background: rgba(20,20,20,.97);
    box-shadow: 0 14px 36px rgba(0,0,0,.6), 0 2px 8px rgba(0,0,0,.5);
}
#ogShellDock #messageInput { padding: 8px 6px; font-size: 16px; }
#ogShellDock .og-plus-btn { width: 40px; height: 40px; }
#ogShellDock .input-wrapper #voiceBtn {
    width: 40px; height: 40px; border: none; background: transparent;
}
#ogShellDock .input-wrapper #sendBtn { width: 40px; height: 40px; }
body.og-kb-up #ogSeatBar { display: none !important; }
body.og-kb-up #fileChip,
body.og-kb-up #plusSheet,
body.og-kb-up #attachPreview { display: none !important; }
body.og-kb-up #ogPodcastCard,
body.og-kb-up #ogMotionCard,
body.og-kb-up #ogVoiceCard { display: none !important; }

/* Explicit Progress destinations; preserve the existing dock and theme. */
#ogSeatBar a.og-seat { text-decoration: none; }
.og-progress-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(8rem, 100%), 1fr));
    gap: .65rem;
    margin: 0 0 1rem;
}
.og-progress-nav :is(button,a) {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    box-sizing: border-box; min-height: 44px; text-align: center;
    padding: .5rem .75rem; border-radius: .65rem;
    border: 1px solid currentColor; color: inherit; background: transparent;
    font: inherit; text-decoration: none; cursor: pointer;
}
.og-progress-nav [hidden] { display: none !important; }
.og-progress-count, .og-progress-indicator {
    border-radius: 999px; background: #365a82; color: #fff;
    flex: 0 0 auto; font-size: .8rem; line-height: 1.35;
}
.og-progress-count { padding: 0 .4em; }
.og-progress-indicator { width: .48rem; height: .48rem; }
.og-progress-nav :focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* The private five-seat dock keeps the longer destination readable on phones. */
html[data-og-agent-room-text="enabled"] #ogSeatBar .og-seat { box-sizing: border-box; min-height: 44px; justify-content: center; }
html[data-og-agent-room-text="enabled"] #ogSeatAgentRoom .og-seat-label {
    text-align: center; white-space: normal; letter-spacing: .15px; overflow-wrap: anywhere;
}
