/* inbox.css (17 Nov 2026): the Inbox button in the right rail (above light/dark) and its panel. See inbox.js. */
.ibx-ic{fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex:none}
.prail-item.ibx-btn{position:relative}
/* Like Help's dot (support.css .sup-dot): up and to the right of the icon, ringed in the page colour. The 18px icon
   is centred, so its right edge is at 50% + 9px; the badge starts just past it and sits above the icon's top. */
.ibx-badge{position:absolute;top:3px;left:calc(50% + 7px);right:auto;min-width:15px;height:15px;padding:0 4px;box-sizing:border-box;border-radius:8px;background:#e5484d;color:#fff;font:600 9.5px/15px system-ui,sans-serif;text-align:center;box-shadow:0 0 0 2px var(--page,#fff);pointer-events:none}
.ibx-badge[hidden]{display:none}
.ibx-head-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;margin-right:6px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--secondary,var(--text));cursor:pointer}
.ibx-head-btn:hover{background:var(--hover)}
.ibx-head-btn[hidden]{display:none}
.ibx-head-btn .ibx-badge{top:-5px;left:auto;right:-5px;box-shadow:0 0 0 2px var(--surface,#fff)}
.ibx-btn:focus-visible,.ibx-head-btn:focus-visible,.ibx-panel button:focus-visible,.ibx-panel a:focus-visible{outline:2px solid var(--accent-text,#1d4fb8);outline-offset:2px}

.ibx-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.35);z-index:22}
.ibx-backdrop[hidden]{display:none}
.ibx-panel{position:fixed;top:0;bottom:0;right:0;width:var(--prail-panel,360px);max-width:100vw;display:flex;flex-direction:column;background:var(--surface);color:var(--text);border-left:1px solid var(--border);box-shadow:-8px 0 24px var(--shade,rgba(0,0,0,.08));z-index:23;outline:none}
.ibx-panel.ibx-by-rail{right:var(--prail-w,56px)}
.ibx-panel[hidden]{display:none}
/* 24 Nov 2026: full screen (inbox.js / messages.js fullBtn). The panel covers the page up to the right rail; the
   content stays in a readable centred column (the header's line still spans the width). Not on phones (below). */
.ibx-panel.ibx-full{left:0;width:auto;max-width:none;border-left:0;box-shadow:none;z-index:40}
.ibx-panel.ibx-full>.ibx-head{padding-left:max(14px,calc((100% - 880px)/2 + 14px));padding-right:max(14px,calc((100% - 880px)/2 + 14px))}
.ibx-panel.ibx-full>.ibx-body{width:100%;max-width:880px;margin:0 auto;box-sizing:border-box}
.ibx-full-btn[aria-pressed="true"]{color:var(--text)}
.ibx-head{display:flex;align-items:center;gap:8px;padding:14px 14px 12px;border-bottom:1px solid var(--border);flex:none}
.ibx-title{flex:1;margin:0;font-size:15px;font-weight:600}
.ibx-actions{display:flex;align-items:center;gap:6px}
.ibx-x{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border:0;border-radius:6px;background:transparent;color:var(--muted);cursor:pointer}
.ibx-x:hover{background:var(--hover);color:var(--text)}
.ibx-link{border:0;background:none;padding:4px 6px;color:var(--accent-text,#1d4fb8);font:inherit;font-size:12.5px;cursor:pointer;text-decoration:none;border-radius:4px}
.ibx-link:hover{text-decoration:underline}
.ibx-link:disabled{color:var(--muted);cursor:default;text-decoration:none}
.ibx-body{flex:1;overflow:auto;overscroll-behavior:contain}
/* 18 Nov 2026: a tab per kind of email. Each kind has one colour (--g), used for the tab's dot and underline, the
   row's tag and a thin bar on the row's left edge. Light and dark pairs below; text on the tags passes 4.5:1. */
.ibx-g-digest{--g:#1d4fb8;--g-bg:#e6effc}
.ibx-g-alert{--g:#a14b00;--g-bg:#fdeedb}
.ibx-g-monitor{--g:#6d28b9;--g-bg:#f1e8fb}
.ibx-g-support{--g:#b4232f;--g-bg:#fde8e8}
.ibx-g-other{--g:#5b6270;--g-bg:#eef0f3}
/* the tabs are chips that wrap (six do not fit one 360px row); the chosen one fills with its kind's colour */
.ibx-g-all{--g:var(--text);--g-bg:var(--hover)}
.ibx-tabs{display:flex;flex-wrap:wrap;gap:6px;padding:10px 12px;border-bottom:1px solid var(--border);position:sticky;top:0;background:var(--surface);z-index:1}
.ibx-tab{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 10px;border:1px solid var(--border);border-radius:999px;background:transparent;color:var(--secondary,var(--text));font:inherit;font-size:12.5px;cursor:pointer;white-space:nowrap;flex:none;box-sizing:border-box}
.ibx-tab:hover{background:var(--hover)}
.ibx-tab[aria-selected="true"]{background:var(--g-bg);border-color:var(--g);color:var(--g);font-weight:600}
.ibx-tdot{width:7px;height:7px;border-radius:50%;background:var(--g);flex:none}
.ibx-tab .ibx-count{min-width:16px;line-height:16px;font-size:10px;padding:0 4px}
.ibx-tab[data-g]:not([data-g="all"]) .ibx-count{background:var(--g)}
.ibx-sec{margin:0;padding:10px 14px 6px;font-size:11.5px;font-weight:600;color:var(--muted);text-transform:none;letter-spacing:0;border-bottom:1px solid var(--border)}
.ibx-row[data-g],.ibx-row.ibx-g-support{position:relative}
.ibx-row[class*="ibx-g-"]::before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:3px;border-radius:0 3px 3px 0;background:var(--g);opacity:.85}
.ibx-tag[class*="ibx-tag-"]{background:var(--g-bg);color:var(--g);font-weight:600}
/* credits added (18 Nov 2026): listed under Alerts, in green */
.ibx-row.ibx-credit{--g:#17703a;--g-bg:#e3f4e8}
/* the credits pop-up: top right, clear of the rail and of the cookie banner at the bottom */
.ibx-toasts{position:fixed;top:16px;right:calc(var(--prail-w,56px) + 16px);z-index:60;display:flex;flex-direction:column;gap:8px;width:min(340px,calc(100vw - 32px));pointer-events:none}
.ibx-toast{--g:#17703a;--g-bg:#e3f4e8;display:flex;align-items:flex-start;gap:10px;padding:12px 10px 12px 12px;border:1px solid var(--border);border-left:3px solid var(--g);border-radius:10px;background:var(--surface);color:var(--text);box-shadow:0 8px 24px var(--shade,rgba(0,0,0,.12));pointer-events:auto;animation:ibx-in .18s ease-out}
.ibx-toast-out{opacity:0;transform:translateY(-6px);transition:opacity .2s,transform .2s}
.ibx-toast-ic{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:var(--g-bg);color:var(--g);font:700 15px/1 system-ui,sans-serif;flex:none}
.ibx-toast-main{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1;font-size:12.5px;color:var(--muted)}
.ibx-toast-main strong{font-size:13.5px;color:var(--text);font-weight:600}
.ibx-toast-view{align-self:center;border:1px solid var(--border);border-radius:6px;background:transparent;color:var(--text);font:inherit;font-size:12.5px;padding:4px 10px;cursor:pointer}
.ibx-toast-view:hover{background:var(--hover)}
.ibx-toast-x{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border:0;border-radius:6px;background:transparent;color:var(--muted);cursor:pointer;flex:none}
.ibx-toast-x:hover{background:var(--hover);color:var(--text)}
.ibx-toast button:focus-visible{outline:2px solid var(--accent-text,#1d4fb8);outline-offset:2px}
@keyframes ibx-in{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.ibx-toast{animation:none}.ibx-toast-out{transition:none}}
@media (max-width:640px){.ibx-toasts{top:12px;right:12px;left:12px;width:auto}}
.ibx-count{min-width:18px;padding:0 5px;border-radius:9px;background:#d93025;color:#fff;font-size:10.5px;line-height:18px;text-align:center}
.ibx-list{list-style:none;margin:0;padding:0}
.ibx-row{display:flex;gap:10px;width:100%;padding:12px 14px;border:0;border-bottom:1px solid var(--border);background:transparent;color:inherit;text-align:left;font:inherit;cursor:pointer;text-decoration:none;box-sizing:border-box}
.ibx-row:hover{background:var(--hover)}
.ibx-dot{width:8px;height:8px;margin-top:6px;border-radius:50%;flex:none;background:transparent}
.ibx-unread .ibx-dot{background:var(--accent-text,#1d4fb8)}
.ibx-main{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.ibx-top{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted);min-width:0}
.ibx-from{color:var(--secondary,var(--text));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ibx-unread .ibx-from{color:var(--text);font-weight:600}
.ibx-when{margin-left:auto;white-space:nowrap;flex:none}
.ibx-tag{padding:1px 6px;border-radius:4px;background:var(--soft,var(--hover));color:var(--secondary,var(--muted));font-size:10.5px;white-space:nowrap;flex:none}

.ibx-ref{white-space:nowrap;flex:none}
.ibx-subj{font-size:13.5px;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ibx-unread .ibx-subj{font-weight:600}
.ibx-prev{font-size:12.5px;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ibx-pill{padding:1px 7px;border-radius:10px;font-size:10.5px;font-weight:600;white-space:nowrap;flex:none}
.ibx-pill[data-s="open"]{background:#e6effc;color:#1d4fb8}
.ibx-pill[data-s="in_progress"]{background:#fdf0dc;color:#8a4b00}
.ibx-pill[data-s="waiting"]{background:#f1e8fb;color:#6d28b9}
.ibx-pill[data-s="resolved"]{background:#e3f4e8;color:#17703a}
.ibx-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ibx-empty{padding:32px 20px;text-align:center;color:var(--muted);font-size:13px;line-height:1.5}
.ibx-empty p{margin:0 0 6px}
.ibx-strong{color:var(--text);font-weight:600}
.ibx-foot{padding:12px 14px;margin:0;text-align:center}
.ibx-read{padding:16px}
.ibx-read-subj{margin:0 0 6px;font-size:16px;line-height:1.35}
.ibx-meta{margin:0 0 14px;font-size:12px;color:var(--muted)}
.ibx-logo{width:32px;height:32px;border-radius:50%;flex:none;display:block;object-fit:cover}
.ibx-meta .ibx-logo{display:inline-block;width:20px;height:20px;margin-right:6px;vertical-align:-5px}
.ibx-note{margin:0 0 12px;padding:10px 12px;border-radius:6px;background:var(--soft,var(--hover));color:var(--secondary,var(--muted));font-size:12.5px}
.ibx-frame{display:block;width:100%;height:520px;border:1px solid var(--border);border-radius:6px;background:#fff}
.ibx-frame.ibx-frame-app{border:0;border-radius:0;background:transparent}
.ibx-text{margin:0;white-space:pre-wrap;word-break:break-word;font:13px/1.55 system-ui,sans-serif;color:var(--text)}
.ibx-loading{display:flex;justify-content:center;gap:6px;padding:28px}
.ibx-loading span{width:6px;height:6px;border-radius:50%;background:var(--muted);animation:ibx-b 1s infinite ease-in-out}
.ibx-loading span:nth-child(2){animation-delay:.15s}.ibx-loading span:nth-child(3){animation-delay:.3s}
@keyframes ibx-b{0%,80%,100%{opacity:.25}40%{opacity:1}}
@media (prefers-reduced-motion:reduce){.ibx-loading span{animation:none;opacity:.6}}

:root[data-theme="dark"] .ibx-badge,:root[data-theme="dark"] .ibx-count{background:#e5534b}
:root[data-theme="dark"] .ibx-g-digest{--g:#8ab4ff;--g-bg:#16264a}
:root[data-theme="dark"] .ibx-g-alert{--g:#f5b45b;--g-bg:#3a2810}
:root[data-theme="dark"] .ibx-g-monitor{--g:#c9a6fa;--g-bg:#2d1d45}
:root[data-theme="dark"] .ibx-g-support{--g:#ff9e9e;--g-bg:#3d1a1c}
:root[data-theme="dark"] .ibx-g-other{--g:#aab1bd;--g-bg:#262a31}
:root[data-theme="dark"] .ibx-row.ibx-credit,:root[data-theme="dark"] .ibx-toast{--g:#7ddc9c;--g-bg:#12331f}
:root[data-theme="dark"] .ibx-tab[data-g]:not([data-g="all"]) .ibx-count{color:#111}
:root[data-theme="dark"] .ibx-pill[data-s="open"]{background:#16264a;color:#a8c5ff}
:root[data-theme="dark"] .ibx-pill[data-s="in_progress"]{background:#3a2a10;color:#f5c26b}
:root[data-theme="dark"] .ibx-pill[data-s="waiting"]{background:#2d1d45;color:#d3b5fb}
:root[data-theme="dark"] .ibx-pill[data-s="resolved"]{background:#12331f;color:#7ddc9c}
:root[data-theme="dark"] .ibx-unread .ibx-dot{background:#8ab4ff}
:root[data-theme="dark"] .ibx-backdrop{background:rgba(0,0,0,.55)}

@media (max-width:640px){
 .ibx-full-btn{display:none}
 .ibx-backdrop{z-index:58}
 .ibx-panel,.ibx-panel.ibx-by-rail{z-index:59;right:0;left:0;width:auto;top:auto;height:88vh;height:88dvh;border-left:0;border-top:1px solid var(--border);border-radius:14px 14px 0 0;box-shadow:0 -8px 24px var(--shade,rgba(0,0,0,.15))}
 .ibx-row{padding:14px}
 .ibx-x{width:40px;height:40px}
 .ibx-frame{height:60vh}
}

/* 19 Nov 2026 (Ranjot, "make sure it's the full size"): an open message fills the panel's height, not a fixed 520px box.
   The frame is sandboxed (its height can't be measured), so it grows to the space under the subject and scrolls inside. */
.ibx-read{display:flex;flex-direction:column;min-height:0;box-sizing:border-box}
.ibx-read .ibx-frame{flex:1 1 auto;height:auto;min-height:320px}

/* 19 Nov 2026: conversations on team messages (inbox.js threadBox; Settings > Messages uses the same bubbles).
   The person's own lines on the right in navy, the other side on the left in grey; the reply box under them. */
.ibx-read.ibx-has-thread .ibx-frame{flex:none;height:min(44vh,380px);min-height:200px}
.ibx-thread{display:flex;flex-direction:column;gap:8px;margin-top:14px}
.ibx-thread-h{margin:0;font-size:12px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.ibx-bubble{max-width:85%;padding:8px 11px;border-radius:12px;background:var(--hover,#f1f3f6);color:var(--text);font-size:13.5px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;align-self:flex-start}
.ibx-bubble.mine{align-self:flex-end;background:var(--pui-send-bg,#0F2A4A);color:var(--pui-send-ink,#fff)}
.ibx-bubble-meta{display:block;margin-bottom:2px;font-size:11px;opacity:.75}
.ibx-reply{display:grid;gap:8px;margin-top:6px}
.ibx-reply textarea{width:100%;min-height:70px;box-sizing:border-box;padding:8px 10px;border:1px solid var(--border);border-radius:8px;background:var(--page,#fff);color:var(--text);font:13.5px/1.5 Inter,Arial,sans-serif;resize:vertical}
.ibx-reply textarea:focus{outline:none;border-color:#8fb6de;box-shadow:0 0 0 3px var(--ring,#2189c933)}
.ibx-reply-row{display:flex;align-items:center;gap:10px;justify-content:space-between}
.ibx-reply-send{height:32px;padding:0 14px;border:0;border-radius:7px;background:var(--pui-send-bg,#0F2A4A);color:var(--pui-send-ink,#fff);font:600 13px Inter,Arial,sans-serif;cursor:pointer}
.ibx-reply-send:disabled{opacity:.6;cursor:default}
.ibx-reply-msg{margin:0;font-size:12px;color:var(--muted)}
.ibx-reply-msg.err{color:#c0392b}
.ibx-thread-off{margin:0;font-size:12px;color:var(--muted)}
:root[data-theme="dark"] .ibx-bubble:not(.mine){background:#262a31}
@media(max-width:640px),(pointer:coarse){.ibx-reply textarea{font-size:16px}.ibx-reply-send{height:38px}}
/* 24 Nov 2026: group invites under an invite note (inbox.js groupInvites) */
.ibx-invites{padding:0 16px 16px}
.ibx-invites .ibx-reply-row{padding:10px 0;border-top:1px solid var(--border)}
.ibx-reply-btns{display:flex;align-items:center;gap:8px;flex:none}
.ibx-err{color:#c0392b}
