/* A3 Inbox (inbox.a3styles.com). Since 22 Oct 2026 (owner: "design the a3 inbox app, like as the whatsapp app"): WhatsApp's
   arrangement and colours for the chats (white list, beige chat, green bubbles and buttons); the A3 badge stays in Outfit */
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/assets/fonts/outfit-latin-100-900.woff2') format('woff2'); }
:root { --ink: #11083c; --ink2: #241a63; --bg: #f4f5fa; --card: #fff; --line: #e9edef; --line2: #dfe2ec; --text: #111b21; --muted: #667781;
    --green: #00a884; --green-d: #008069; --green-l: #d9fdd3; --badge: #1daa61; --chatbg: #efeae2; --soft: #f0f2f5; --icon: #54656f;
    --ok: #146c3a; --warn: #8a5600; --bad: #a3191f; --sat: env(safe-area-inset-top); --sab: env(safe-area-inset-bottom); }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
/* no zoom (owner, 22 Oct 2026): no double-tap zoom, no pinch; typing boxes at 16 px, below that an iPhone zooms in on a tap
   and stays zoomed (the chat ran off the right edge) */
html { touch-action: pan-x pan-y; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
button, a, label, input, textarea { touch-action: manipulation; }
input:not([type=checkbox]):not([type=radio]), textarea, select { font-size: 16px !important; }
/* the phone's own font, as in WhatsApp (owner, 25 Oct 2026: "why the text fonts are different? make it like the same font as
   whatsapp"): Outfit drew the English and the phone drew the Bangla, so one message had two looks. iPhone: SF + its Bangla font;
   Android: Roboto + Noto Sans Bengali; Windows: Segoe UI + Nirmala UI. Outfit stays only on the A3 badge and the name "A3 Inbox" */
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, "Noto Sans Bengali", "Nirmala UI", sans-serif;
    background: var(--bg); color: var(--text); font-size: 15px; }
.ib-logo, .ib-brand-t { font-family: Outfit, -apple-system, "Segoe UI", Roboto, sans-serif; }
button, input, textarea { font: inherit; }
a { color: var(--green-d); }
[hidden] { display: none !important; }
.ib-muted { color: var(--muted); }
.ib-grow { flex: 1 1 auto; min-width: 0; }
.ib-pad { padding: 16px; }
.ib-center { text-align: center; }
.ib-inline { display: inline; margin: 0; }

/* buttons */
.ib-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 20px; border: 1px solid var(--line2);
    background: #fff; color: var(--green-d); font-weight: 500; cursor: pointer; text-decoration: none; }
.ib-btn-main { background: var(--green); border-color: var(--green); color: #fff; }
.ib-btn:disabled { opacity: .5; cursor: default; }
.ib-sm { height: 32px; padding: 0 12px; font-size: 13px; }
/* round header icons (WhatsApp grey) */
.ib-hic, .ib-ic { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%;
    background: transparent; color: var(--icon); cursor: pointer; flex: none; text-decoration: none; }
.ib-hic:active, .ib-ic:active { background: rgba(0, 0, 0, .06); }
.ib-hic svg, .ib-ic svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ib-hic circle { fill: currentColor; stroke: none; }

/* the A3 badge */
.ib-logo { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: #fff;
    font-weight: 800; font-size: 13px; letter-spacing: -.5px; flex: none; }
.ib-logo-lg { width: 64px; height: 64px; border-radius: 18px; font-size: 24px; }

/* top bar of the other pages (settings) */
.ib-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; padding: calc(8px + var(--sat)) 8px 8px;
    background: #fff; color: var(--text); border-bottom: 1px solid var(--line); }
.ib-title { font-size: 19px; font-weight: 600; }
.ib-back { display: none; }

/* login */
.ib-login { display: flex; align-items: center; justify-content: center; min-height: 100%; padding: 24px;
    background: radial-gradient(120% 90% at 0% 0%, #3a2c8f 0%, #241a63 38%, #11083c 100%); }
.ib-login-box { width: 100%; max-width: 380px; background: #fff; border-radius: 20px; padding: 26px 24px; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
.ib-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.ib-brand .ib-logo { width: 46px; height: 46px; font-size: 18px; border-radius: 12px; }
.ib-brand b { display: block; font-size: 20px; font-weight: 600; color: var(--ink); }
.ib-brand small { color: var(--muted); }
.ib-login label, .ib-set label { display: block; font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.ib-login input:not([type=checkbox]), .ib-set input { display: block; width: 100%; height: 44px; margin-top: 4px; padding: 0 12px; border: 1px solid var(--line2);
    border-radius: 10px; font-size: 15px; color: var(--text); background: #fff; }
.ib-check { display: flex !important; align-items: center; gap: 8px; }
.ib-login .ib-btn-main { width: 100%; height: 46px; margin-top: 4px; border-radius: 12px; background: var(--ink); border-color: var(--ink); }
.ib-err { background: #fdecec; color: var(--bad); padding: 10px 12px; border-radius: 10px; margin: 0 0 12px; }

/* ---- inbox: the list (left) + one chat (right; one at a time on a phone) ---- */
/* (--appvh: on an iPhone with the keyboard open, the part of the screen it leaves — assets/inbox.js) */
.ib-app { height: var(--appvh, 100%); background: #fff; }
.ib-main { height: 100%; display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); }
.ib-list { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: #fff; }
.ib-lhead { display: flex; align-items: center; gap: 2px; padding: calc(10px + var(--sat)) 6px 4px 16px; background: #fff; }
.ib-brand-t { display: inline-flex; align-items: center; gap: 8px; font-size: 24px; font-weight: 700; color: var(--ink); }
.ib-tools { padding: 6px 14px 8px; background: #fff; }
.ib-search { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border-radius: 21px; background: var(--soft); color: var(--muted); }
.ib-search svg { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ib-search input { flex: 1 1 auto; min-width: 0; height: 40px; border: 0; background: transparent; outline: none; color: var(--text); }
.ib-chips { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.ib-chips button { flex: none; height: 32px; padding: 0 14px; border-radius: 16px; border: 0; background: var(--soft); color: var(--icon); font-size: 14px; font-weight: 500; cursor: pointer; }
.ib-chips button.on { background: var(--green-l); color: var(--green-d); }
.ib-chips span:empty { display: none; }
.ib-archived { display: flex; align-items: center; gap: 22px; width: 100%; padding: 12px 18px 12px 28px; border: 0; background: #fff; cursor: pointer; color: var(--text); font-size: 16px; text-align: left; }
.ib-archived svg { width: 21px; height: 21px; fill: none; stroke: var(--green-d); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ib-archived b { flex: 1 1 auto; font-weight: 500; }
.ib-archived span { color: var(--green-d); font-size: 13px; font-weight: 600; }
.ib-archhead { display: flex; align-items: center; gap: 10px; padding: 4px 8px 8px; font-size: 18px; }
/* (contain: scrolling to the end of the list / chat does not pull the page or reload the app) */
.ib-threads { flex: 1 1 auto; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; }
.ib-row { display: flex; gap: 14px; align-items: center; width: 100%; padding: 0 0 0 14px; border: 0; background: #fff; text-align: left; cursor: pointer; color: var(--text); }
.ib-row:active, .ib-row.on { background: var(--soft); }
.ib-rowtxt { display: flex; flex-direction: column; justify-content: center; gap: 3px; min-height: 74px; padding-right: 16px; border-bottom: 1px solid var(--line); }
.ib-rowtop, .ib-rowbot { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ib-rowtop b { flex: 1 1 auto; min-width: 0; font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-rowtop time { flex: none; font-size: 12px; color: var(--muted); }
.ib-row.new .ib-rowtop time { color: var(--badge); font-weight: 600; }
.ib-prev { flex: 1 1 auto; min-width: 0; color: var(--muted); font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-prev .ib-tick { width: 16px; height: 11px; margin-right: 3px; vertical-align: -1px; }
.ib-badge { flex: none; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--badge); color: #fff; font-size: 12px; font-weight: 700; line-height: 22px; text-align: center; }
.ib-av { position: relative; width: 50px; height: 50px; border-radius: 50%; background: #dfe5e7 center / cover no-repeat; color: #fff; flex: none;
    display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 18px; }
.ib-av:not([style]) { background: #8696a0; }
/* the customer's picture lies over the initials; when Meta's link has expired it is taken away and the initials show */
.ib-av .ib-avimg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #8696a0; }
@media (hover: hover) { .ib-row:hover { background: #f5f6f6; } .ib-row.on:hover { background: var(--soft); } }
/* a short note that goes by itself, and the "No internet" bar */
.ib-toast { position: fixed; left: 50%; bottom: calc(96px + var(--sab)); z-index: 95; transform: translateX(-50%); max-width: min(92vw, 420px); padding: 10px 16px;
    border-radius: 10px; background: rgba(17, 27, 33, .92); color: #fff; font-size: 14px; line-height: 1.35; text-align: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
    transition: opacity .35s; }
.ib-toast.out { opacity: 0; }
.ib-offline { position: fixed; left: 0; right: 0; top: 0; z-index: 96; padding: calc(6px + var(--sat)) 12px 6px; background: #8a5600; color: #fff; font-size: 13.5px; text-align: center; }
/* the iPhone's home bar does not cover the last chat; the install / alerts bars stay off an open chat's typing bar */
.ib-threads { padding-bottom: var(--sab); }
body.ib-open .ib-ask { display: none !important; }
/* a narrow phone: 📷 leaves the typing box (📎 → Photo does the same), the words get the room */
@media (max-width: 380px) { #ib_attach { display: none; } }
/* a sticker: the picture itself, small, without a bubble */
.ib-m.sticker { background: transparent !important; box-shadow: none; padding: 0; }
.ib-m.sticker::before { display: none; }
.ib-m img.ib-sticker { width: 120px; min-height: 0; background: transparent; border-radius: 0; }
.ib-m.sticker .ib-mt { float: none; display: block; text-align: right; top: 0; }
.ib-av i { position: absolute; right: -2px; bottom: -2px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; }
.ib-k-facebook i { background: #0866ff; } .ib-k-instagram i { background: linear-gradient(45deg, #f9ce34, #ee2a7b 55%, #6228d7); } .ib-k-whatsapp i { background: var(--badge); }
.ib-empty { padding: 28px 18px; text-align: center; }
.ib-empty p { color: var(--muted); }

/* one chat */
.ib-chat { display: flex; flex-direction: column; min-height: 0; background: var(--chatbg); }
.ib-chat-empty { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 24px; }
.ib-chat-empty b { font-size: 26px; font-weight: 500; color: var(--text); }
.ib-chat-in { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.ib-chat-head { display: flex; align-items: center; gap: 6px; padding: calc(8px + var(--sat)) 4px 8px 8px; background: #fff; border-bottom: 1px solid var(--line); }
.ib-chat-head .ib-av { width: 40px; height: 40px; font-size: 15px; }
.ib-chat-head .ib-av i { width: 15px; height: 15px; }
.ib-chat-who { padding-left: 6px; }
.ib-chat-who b { display: block; font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-chat-who small { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the beige background with a faint pattern */
.ib-msgs { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch;
    padding: 10px 14px 12px; display: flex; flex-direction: column; gap: 2px;
    background-color: var(--chatbg);
    background-image: radial-gradient(rgba(0, 0, 0, .035) 1.2px, transparent 1.3px), radial-gradient(rgba(0, 0, 0, .025) 1px, transparent 1.1px);
    background-size: 26px 26px, 18px 18px; background-position: 0 0, 9px 13px; }
.ib-day { align-self: center; margin: 10px 0 8px; }
.ib-day span { display: inline-block; padding: 5px 12px; border-radius: 8px; background: #fff; color: var(--muted); font-size: 12.5px; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }
/* the bubbles */
.ib-m { position: relative; max-width: min(78%, 520px); padding: 6px 8px 8px 9px; border-radius: 8px; line-height: 1.38; overflow-wrap: anywhere;
    box-shadow: 0 1px .5px rgba(11, 20, 26, .13); font-size: 15.5px; margin-top: 2px; }
.ib-m.tail { margin-top: 8px; }
.ib-m.in { align-self: flex-start; background: #fff; }
.ib-m.out { align-self: flex-end; background: var(--green-l); }
.ib-m.in.tail { border-top-left-radius: 0; }
.ib-m.out.tail { border-top-right-radius: 0; }
.ib-m.tail::before { content: ''; position: absolute; top: 0; width: 8px; height: 13px; }
.ib-m.in.tail::before { left: -8px; background: linear-gradient(225deg, #fff 50%, transparent 50%); }
.ib-m.out.tail::before { right: -8px; background: linear-gradient(135deg, var(--green-l) 50%, transparent 50%); }
.ib-mtxt { white-space: pre-wrap; }
.ib-mtxt a { color: #027eb5; text-decoration: underline; }
/* the time (and ✓) sits in the bubble's bottom-right corner, the text flows around it */
.ib-mt { float: right; position: relative; top: 6px; margin: 0 0 0 10px; font-size: 11px; color: var(--muted); white-space: nowrap; line-height: 1.2; }
/* (grey ✓✓: sent and taken by Meta — the inbox does not know when the customer read it, so never WhatsApp's blue "seen") */
.ib-tick { width: 16px; height: 11px; margin-left: 3px; vertical-align: -1px; fill: none; stroke: #8696a0; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ib-prev .ib-tick { stroke: #8696a0; }
.ib-m.failed { background: #fdecec; }
.ib-m.pending { opacity: .8; }
.ib-m.failed.tail::before { display: none; }
.ib-merr { display: block; clear: both; font-style: normal; font-size: 12px; color: var(--bad); padding-top: 4px; }
/* pictures and videos fill the bubble, the time lies on them */
.ib-m.pic { padding: 3px; }
.ib-media { display: block; position: relative; }
.ib-m img, .ib-m video { display: block; max-width: 280px; width: 100%; height: auto; max-height: 360px; border-radius: 6px; object-fit: cover; background: #000; }
/* (a fixed width: a picture's own size then sets its height before it has loaded, and the chat does not jump) */
.ib-m img { width: 280px; max-width: 100%; min-height: 80px; background: #d9dee0; }
.ib-m video { width: 280px; max-width: 100%; object-fit: contain; }
.ib-noimg { display: flex; align-items: center; justify-content: center; width: 280px; max-width: 100%; height: 150px; padding: 0 14px; border-radius: 6px;
    background: #d9dee0; color: var(--icon); font-size: 13px; text-align: center; }
/* on its way: a ring over the picture fills as it uploads, then turns while Meta takes it */
.ib-up { position: absolute; top: 3px; right: 3px; bottom: 3px; left: 3px; display: flex; align-items: center; justify-content: center; border-radius: 6px; background: rgba(11, 20, 26, .32); pointer-events: none; }
.ib-up i { width: 46px; height: 46px; border-radius: 50%; background: conic-gradient(#fff var(--p, 4%), rgba(255, 255, 255, .28) 0);
    -webkit-mask: radial-gradient(circle, transparent 17px, #000 18px); mask: radial-gradient(circle, transparent 17px, #000 18px); }
.ib-up.spin i { background: conic-gradient(#fff 28%, rgba(255, 255, 255, .28) 0); animation: ib-turn .9s linear infinite; }
@keyframes ib-turn { to { transform: rotate(360deg); } }
.ib-m.voice .ib-up { position: static; display: inline-flex; vertical-align: middle; margin-left: 8px; background: none; }
.ib-m.voice .ib-up i { width: 22px; height: 22px; background: conic-gradient(var(--green) var(--p, 4%), rgba(0, 168, 132, .2) 0);
    -webkit-mask: radial-gradient(circle, transparent 7px, #000 8px); mask: radial-gradient(circle, transparent 7px, #000 8px); }
.ib-m.voice .ib-up.spin i { background: conic-gradient(var(--green) 28%, rgba(0, 168, 132, .2) 0); }
.ib-m.failed.retry { cursor: pointer; }
.ib-m.failed.retry .ib-merr { text-decoration: underline; }
/* a picture opened over the app: ← (or the phone's Back) closes it; a tap zooms in */
.ib-viewer { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 80; display: flex; flex-direction: column; background: #0b141a; }
.ib-viewer header { flex: none; display: flex; align-items: center; padding: calc(6px + var(--sat)) 6px 6px; }
.ib-viewer header .ib-hic { color: #fff; }
.ib-vbox { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: auto; padding-bottom: var(--sab); }
.ib-vbox img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; }
.ib-viewer.zoom .ib-vbox { display: block; }
.ib-viewer.zoom .ib-vbox img { max-width: none; max-height: none; width: 250%; cursor: zoom-out; }
/* loading: grey shapes that shine where the chats / messages will be (as respond.io) */
@keyframes ib-shine { from { background-position: -320px 0; } to { background-position: 320px 0; } }
.ib-skrow { display: flex; gap: 14px; align-items: center; height: 74px; padding: 0 16px 0 14px; }
.ib-skrow i, .ib-skrow b, .ib-skm { background: linear-gradient(90deg, #eceff1 0, #f7f8f9 160px, #eceff1 320px) #eceff1; background-size: 640px 100%; animation: ib-shine 1.3s linear infinite; }
.ib-skrow i { flex: none; width: 50px; height: 50px; border-radius: 50%; }
.ib-skrow span { flex: 1 1 auto; display: flex; flex-direction: column; gap: 10px; }
.ib-skrow b { display: block; width: 52%; height: 13px; border-radius: 7px; }
.ib-skrow b + b { width: 78%; height: 11px; }
.ib-skrow:nth-child(3n) b { width: 38%; } .ib-skrow:nth-child(3n) b + b { width: 64%; }
.ib-skrow:nth-child(3n+2) b { width: 60%; } .ib-skrow:nth-child(3n+2) b + b { width: 70%; }
.ib-skm { height: 36px; max-width: 75%; margin-top: 8px; border-radius: 8px; }
.ib-skm.in { align-self: flex-start; background-color: #f4f4f4; background-image: linear-gradient(90deg, #f4f4f4 0, #fff 160px, #f4f4f4 320px); }
.ib-skm.out { align-self: flex-end; background-color: #cfeac8; background-image: linear-gradient(90deg, #cfeac8 0, #e4f6df 160px, #cfeac8 320px); }
.ib-m.pic .ib-mtxt { display: block; padding: 4px 6px 2px; }
/* (the time on a picture / video lets taps through to the video's own buttons) */
.ib-m.pic.only .ib-mt { position: absolute; right: 9px; bottom: 7px; top: auto; float: none; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); pointer-events: none; }
.ib-m.pic.only .ib-media:has(video) + .ib-mt { bottom: auto; top: 9px; }
.ib-m.pic.only .ib-mt .ib-tick { stroke: #fff; }
.ib-m.pic:not(.only) .ib-mt { margin-right: 4px; }
.ib-m.voice { padding: 6px 8px 8px; }
.ib-m audio { display: block; width: 250px; max-width: 100%; height: 40px; }
.ib-m a img { cursor: pointer; }
/* a call's line, and the 24-hour notice: WhatsApp's small centred notes */
.ib-callline { align-self: center; max-width: 90%; margin: 6px 0; padding: 5px 12px; border-radius: 8px; background: #fff; color: var(--muted); font-size: 12.5px; text-align: center;
    box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }
.ib-callline.missed { color: var(--bad); }
.ib-callline.failed { color: var(--warn); }
/* call recordings (owner, 3 Nov 2026): the player on the call's line in the chat, and under each call of the 🎙 Recordings chip */
.ib-callrec { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 6px; }
.ib-callrec audio { width: 240px; max-width: 100%; height: 36px; }
.ib-recplay { padding: 0 14px 10px 76px; border-bottom: 1px solid #e9edef; }
.ib-recplay audio { width: 100%; height: 36px; }
.ib-window { margin: 0; padding: 6px 14px; font-size: 12.5px; text-align: center; background: #fff8e1; color: #7a5b00; }

/* the typing bar: a rounded white box (📎 📷 inside) and the round green 🎤 / send button */
.ib-compose { display: flex; gap: 6px; align-items: flex-end; padding: 6px 8px calc(8px + var(--sab)); background: transparent; }
.ib-compose[hidden] { display: none !important; }
.ib-pill { flex: 1 1 auto; min-width: 0; display: flex; align-items: flex-end; min-height: 48px; padding: 0 4px 0 16px; border-radius: 24px; background: #fff;
    box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }
.ib-pill textarea { flex: 1 1 auto; min-width: 0; min-height: 48px; max-height: 140px; padding: 13px 0 11px; border: 0; outline: none; background: transparent; resize: none; color: var(--text); line-height: 1.3; }
.ib-pic { flex: none; width: 40px; height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; background: transparent; color: var(--icon); cursor: pointer; }
.ib-pic svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ib-round { flex: none; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%;
    background: var(--green); color: #fff; cursor: pointer; box-shadow: 0 1px 2px rgba(11, 20, 26, .2); }
.ib-round[hidden] { display: none; }
.ib-round svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ib-round:disabled { opacity: .5; }
/* a file on its way */
.ib-pick { display: flex; align-items: center; gap: 10px; margin: 0 8px 4px; padding: 8px 12px; border-radius: 12px; background: #fff; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }
.ib-pick-thumb { width: 48px; height: 48px; border-radius: 8px; flex: none; background: var(--soft); overflow: hidden; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; }
.ib-pick-thumb img, .ib-pick-thumb video { width: 100%; height: 100%; object-fit: cover; }
.ib-pick b { display: block; font-size: 14px; font-weight: 600; }
.ib-pick small { display: block; font-size: 12px; }
.ib-bar { display: block; height: 4px; margin-top: 6px; border-radius: 2px; background: var(--line); overflow: hidden; }
.ib-bar i { display: block; height: 100%; width: 0; background: var(--green); transition: width .2s; }
/* recording a voice message */
.ib-rec { display: flex; align-items: center; gap: 8px; margin: 6px 8px calc(8px + var(--sab)); padding: 0 0 0 4px; min-height: 48px; border-radius: 24px; background: #fff;
    box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }
.ib-rec[hidden] { display: none; }
.ib-rec-x { color: var(--bad); }
.ib-rec-on { display: flex; align-items: center; gap: 8px; font-size: 16px; color: var(--text); }
.ib-rec-on i { width: 11px; height: 11px; border-radius: 50%; background: #e0242c; animation: ib-blink 1s infinite; }
@keyframes ib-blink { 50% { opacity: .25; } }

/* comments: the list's post picture and green dot, the post on top of the conversation, names on the customers' bubbles,
   the Reply in comment / Private message switch */
.ib-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--badge); }
.ib-postthumb { flex: none; width: 34px; height: 34px; border-radius: 6px; object-fit: cover; background: var(--soft); }
.ib-post { display: flex; gap: 10px; align-self: center; width: min(100%, 460px); margin: 6px 0 10px; padding: 8px; border-radius: 10px; background: #fff;
    box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }
.ib-post img { flex: none; width: 72px; height: 72px; border-radius: 8px; object-fit: cover; background: var(--soft); }
.ib-post div { min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.ib-post p { margin: 0; font-size: 13.5px; color: var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; }
.ib-post a { font-size: 13px; font-weight: 500; text-decoration: none; margin-top: 4px; }
.ib-mname { display: block; font-size: 13px; font-weight: 600; color: #1f7aec; margin-bottom: 1px; }
.ib-m.hid { opacity: .55; }
.ib-mnote { display: block; clear: both; font-style: normal; font-size: 12px; color: var(--green-d); padding-top: 3px; }
.ib-cmode { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding: 6px 8px 0; }
.ib-cmode button { height: 32px; padding: 0 11px; border-radius: 16px; border: 0; background: rgba(255, 255, 255, .85); color: var(--icon); font-size: 13.5px; font-weight: 500; cursor: pointer;
    box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }
/* a comment the Page has answered: blue ✓✓ in the list (✉ = a private message went too) */
.ib-prev .ib-tick.ib-done { stroke: #53bdeb; }
.ib-pm { font-style: normal; margin-right: 4px; }
/* ✨ the AI's reply in its own box above the typing box: the staff note in yellow, the reply scrolls when long */
.ib-aibox { margin: 6px 8px 0; padding: 6px 8px 10px 12px; border-radius: 12px; background: #fff; border-left: 4px solid #8b5cf6; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }
.ib-aibox[hidden] { display: none; }
.ib-aibox header { display: flex; align-items: center; gap: 6px; }
.ib-aibox header b { font-size: 13.5px; font-weight: 600; color: #6d28d9; }
.ib-aibox .ib-sm { height: 30px; padding: 0 16px; }
.ib-aicheck { margin: 4px 0 6px; padding: 6px 10px; border-radius: 8px; background: #fff7d6; color: #7a5b00; font-size: 13px; }
.ib-aicheck[hidden] { display: none; }
.ib-aitext { max-height: 32vh; overflow-y: auto; white-space: pre-wrap; font-size: 15px; line-height: 1.4; color: var(--text); padding-right: 4px; }
.ib-aibox.busy .ib-aitext { color: var(--muted); animation: ib-blink 1.2s infinite; }
/* a draft that says the order is complete: Send makes it (25 Oct 2026) */
.ib-aiorder { margin: 4px 0 6px; padding: 6px 10px; border-radius: 8px; background: #e3f4ea; color: var(--ok); font-size: 13px; }
.ib-aiorder[hidden] { display: none; }
/* 👑 has bought from us */
.ib-crown { margin-left: 4px; font-size: .9em; font-weight: 400; }
/* the order form's special discount and paid amount, side by side */
.ib-ord-money { display: flex; gap: 10px; }
.ib-ord-money label { flex: 1 1 0; min-width: 0; }
.ib-ord-money input { width: 100%; }
.ib-ord-paidnote { margin: -2px 0 8px; }
/* ✍️ Instruct under the draft (25 Oct 2026): the instruction on its own line, then "teach" and Rewrite */
.ib-ai-ins { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ib-ai-ins[hidden] { display: none; }
.ib-ai-ins input { flex: 1 1 100%; min-width: 0; height: 38px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 19px; background: var(--soft);
    color: var(--text); outline: none; }
.ib-ai-ins input:focus { border-color: #8b5cf6; background: #fff; }
.ib-ai-ins select { flex: 1 1 auto; min-width: 0; height: 32px; padding: 0 8px; border: 1px solid var(--line2); border-radius: 16px; background: #fff; color: var(--icon); }
.ib-ai-ins .ib-btn { flex: none; height: 32px; background: #7c3aed; border-color: #7c3aed; }
/* ↩ Reply: the message being answered, above the typing box and quoted on top of a bubble (tap it to see the original) */
.ib-replybar { display: flex; align-items: center; gap: 6px; margin: 6px 8px 0; padding: 6px 2px 6px 6px; border-radius: 12px; background: #fff; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }
.ib-replybar[hidden] { display: none; }
.ib-replybar > span, .ib-quote { min-width: 0; border-left: 4px solid #1f7aec; border-radius: 6px; background: rgba(11, 20, 26, .05); padding: 4px 9px; }
.ib-replybar > span { flex: 1 1 auto; }
.ib-replybar b, .ib-quote b { display: block; font-size: 13px; font-weight: 600; color: #1f7aec; }
.ib-replybar small { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-replybar.mine > span, .ib-quote.mine { border-left-color: var(--green); }
.ib-replybar.mine b, .ib-quote.mine b { color: var(--green-d); }
.ib-quote { display: block; margin: 0 0 4px; cursor: pointer; }
.ib-quote span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; color: var(--muted); white-space: pre-wrap; }
.ib-m.pic .ib-quote { margin: 0 0 3px; }
.ib-m.flash { animation: ib-flash 1.4s; }
@keyframes ib-flash { 0%, 55% { box-shadow: 0 0 0 3px rgba(0, 168, 132, .5); } 100% { box-shadow: 0 1px .5px rgba(11, 20, 26, .13); } }
.ib-cmode button.on { background: var(--green-l); color: var(--green-d); }
body.ib-cm #ib_call, body.ib-cm #ib_clip, body.ib-cm #ib_attach, body.ib-cm #ib_mic { display: none !important; }
body.ib-cm .ib-pill { padding-right: 12px; }

/* the choices that slide up (📞, ⋮, 📎) */
/* the slide-up menus (inbox.js sheet()): one card — the chat on top, rows with an icon tile, a title and a line on what it does,
   groups split by a soft band — and Cancel apart; in the middle of the screen on a computer */
.ib-sheet { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center;
    background: rgba(11, 20, 26, .42); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); animation: ib-sheet-fade .18s ease-out; }
.ib-sheet-in { width: 100%; max-width: 460px; max-height: calc(100% - 24px - var(--sat)); margin: 0 8px calc(8px + var(--sab)); display: flex; flex-direction: column; gap: 8px;
    animation: ib-sheet-up .26s cubic-bezier(.2, .9, .25, 1); }
.ib-sheet-card { flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; border-radius: 22px; background: #fff; box-shadow: 0 10px 40px rgba(11, 20, 26, .22); }
.ib-sheet-grab { display: block; width: 38px; height: 4px; margin: 8px auto 2px; border-radius: 2px; background: #d6dbde; }
.ib-sheet-head { display: flex; align-items: center; gap: 12px; padding: 8px 18px 12px; border-bottom: 1px solid var(--line); }
.ib-sheet-head .ib-av { width: 42px; height: 42px; font-size: 15px; }
.ib-sheet-head b, .ib-sheet-head small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-sheet-head b { font-size: 16px; font-weight: 600; color: var(--text); }
.ib-sheet-head small { margin-top: 1px; font-size: 12.5px; color: var(--muted); }
.ib-sheet-grp { padding: 6px 0; }
.ib-sheet-grp + .ib-sheet-grp { border-top: 6px solid var(--soft); }
.ib-srow { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 58px; padding: 8px 18px; border: 0; background: none; color: var(--text);
    font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ib-srow:active { background: #f2f4f5; }
@media (hover: hover) { .ib-srow:hover { background: #f6f7f8; } }
.ib-sic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--sic-bg); color: var(--sic); }
.ib-sic svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ib-sic-em { font-size: 19px; line-height: 1; }
.ib-stx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ib-stx b { font-size: 15.5px; font-weight: 500; line-height: 1.25; }
.ib-stx small { font-size: 12.5px; line-height: 1.3; color: var(--muted); }
.ib-srow.danger .ib-stx b { color: #c62828; }
.ib-sheet .t-green { --sic-bg: #e3f7ec; --sic: #0b8a47; }
.ib-sheet .t-teal { --sic-bg: #dff5f1; --sic: #00806a; }
.ib-sheet .t-indigo { --sic-bg: #ecebff; --sic: #4338ca; }
.ib-sheet .t-blue { --sic-bg: #e6f0fd; --sic: #1d5fd1; }
.ib-sheet .t-amber { --sic-bg: #fff2d9; --sic: #b45309; }
.ib-sheet .t-violet { --sic-bg: #f3e8ff; --sic: #7e22ce; }
.ib-sheet .t-red { --sic-bg: #fde8e8; --sic: #c62828; }
.ib-sheet .t-grey { --sic-bg: #eef1f3; --sic: #54656f; }
.ib-sheet-x { flex: none; height: 54px; border: 0; border-radius: 18px; background: #fff; color: var(--green-d); font: inherit; font-size: 16px; font-weight: 600;
    cursor: pointer; box-shadow: 0 10px 40px rgba(11, 20, 26, .18); }
.ib-sheet-x:active { background: #f2f4f5; }
@keyframes ib-sheet-up { from { transform: translateY(28px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes ib-sheet-fade { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 900px) { .ib-sheet { align-items: center; } .ib-sheet-in { margin: 0 8px; } .ib-sheet-grab { visibility: hidden; height: 4px; margin: 4px auto 0; } }
@media (prefers-reduced-motion: reduce) { .ib-sheet, .ib-sheet-in { animation: none; } }
/* the call screen (assets/calls.js) */
.ib-callbox { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
    padding: calc(70px + var(--sat)) 24px calc(56px + var(--sab)); color: #fff; background: linear-gradient(180deg, #0b3d36 0%, #0b141a 100%); }
.ib-callbox[hidden] { display: none; }
.ib-callwho { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.ib-callav { width: 112px; height: 112px; border-radius: 50%; background: #b8c3c8 center / cover no-repeat; color: #fff; display: inline-flex;
    align-items: center; justify-content: center; font-size: 38px; font-weight: 600; box-shadow: 0 0 0 8px rgba(255, 255, 255, .08); }
.ib-callav { position: relative; overflow: hidden; }
.ib-callavimg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.ib-callwho b { font-size: 26px; font-weight: 600; margin-top: 8px; }
.ib-callwho small { font-size: 16px; opacity: .8; }
.ib-callbtns { display: flex; gap: 56px; justify-content: center; }
.ib-cb { display: flex; flex-direction: column; align-items: center; gap: 8px; border: 0; background: none; color: #fff; cursor: pointer; padding: 0; }
.ib-cb span { width: 70px; height: 70px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .16); }
.ib-cb svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ib-cb small { font-size: 13px; opacity: .9; }
.ib-cb-ok span { background: var(--badge); }
.ib-cb-end span { background: #e0242c; }
.ib-cb-end svg { fill: currentColor; stroke-width: 1; }
.ib-cb-mute.on span { background: #fff; color: var(--text); }
/* (25 Oct 2026) three buttons in a row while it rings / on the call; Silence and Loud lit when on; ⌄ makes the screen a small bar */
.ib-callbtns { gap: 34px; }
.ib-cb-silent.on span, .ib-cb-loud.on span { background: #fff; color: var(--text); }
.ib-callmin { position: absolute; top: calc(14px + var(--sat)); left: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .14); color: #fff; }
.ib-callmin svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ib-callpill { display: none; }
.ib-callbox.min { top: calc(74px + var(--sat)); bottom: auto; left: auto; right: 8px; height: 36px; padding: 0; border-radius: 18px; flex-direction: row;
    justify-content: flex-start; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); cursor: pointer; }
.ib-callbox.min .ib-callwho, .ib-callbox.min .ib-callbtns, .ib-callbox.min .ib-callmin { display: none; }
/* (1 Nov 2026) the small bar moved by a finger: calls.js sets --cx / --cy; the top stays clear of the notch and the bottom of the home bar */
.ib-callbox.min.placed { top: min(max(calc(6px + var(--sat)), var(--cy)), calc(100% - 42px - var(--sab))); left: var(--cx); right: auto; }
.ib-callbox.min .ib-callpill { display: flex; align-items: center; gap: 7px; height: 100%; max-width: 190px; padding: 0 12px; min-width: 0; touch-action: none; -webkit-user-select: none; user-select: none; }
.ib-callpill b { max-width: 84px; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-callpill small { margin-left: auto; font-size: 12px; opacity: .85; white-space: nowrap; }
.ib-callpill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--badge); flex: none; animation: ib-blink 1.4s infinite; }

/* phone: one pane at a time, as in WhatsApp */
@media (max-width: 899px) {
    .ib-main { grid-template-columns: minmax(0, 1fr); }
    .ib-list { border-right: 0; }
    .ib-chat { display: none; }
    body.ib-open .ib-list { display: none; }
    body.ib-open .ib-chat { display: flex; }
    body.ib-open .ib-back { display: inline-flex; }
}
/* a computer: WhatsApp Web's grey heads */
@media (min-width: 900px) {
    .ib-lhead, .ib-chat-head { background: var(--soft); }
    .ib-lhead { padding-top: 12px; padding-bottom: 10px; }
    .ib-tools { padding-top: 8px; border-bottom: 1px solid var(--line); }
}

/* the app's bars at the bottom: install, message alerts (assets/app.js) */
.ib-ask { position: fixed; left: 12px; right: 12px; bottom: calc(16px + var(--sab)); z-index: 50; max-width: 440px; margin: 0 auto;
    display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 16px; background: var(--ink); color: #fff;
    box-shadow: 0 14px 34px rgba(17, 8, 60, .35); }
.ib-ask.up { bottom: calc(100px + var(--sab)); }
.ib-ask img { width: 42px; height: 42px; border-radius: 10px; flex: none; }
.ib-ask div { flex: 1 1 auto; min-width: 0; line-height: 1.3; }
.ib-ask b { display: block; font-size: 14.5px; font-weight: 600; }
.ib-ask small { display: block; font-size: 12px; opacity: .78; margin-top: 2px; }
.ib-ask button { border: 0; border-radius: 10px; padding: 9px 13px; font-size: 13px; font-weight: 600; cursor: pointer; flex: none; }
.ib-ask .go { background: #fff; color: var(--ink); }
.ib-ask .go:disabled { opacity: .6; }
.ib-ask .no { background: transparent; color: #fff; opacity: .75; padding: 9px 6px; }

/* settings */
.ib-page { min-height: 100%; background: var(--soft); }
.ib-set { max-width: 720px; margin: 0 auto; padding: 14px; }
.ib-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; }
.ib-card h2 { font-size: 16px; font-weight: 600; margin: 4px 0 8px; color: var(--text); }
.ib-card p { margin: 4px 0 10px; }
.ib-note { background: #e7f6ec; color: var(--ok); padding: 10px 12px; border-radius: 10px; }
.ib-note-bad { background: #fdecea; color: var(--bad); }
/* chats from ads: the time range, the table per campaign, the "Ad" mark in the chat list */
.ib-adsrange { display: flex; gap: 6px; flex-wrap: wrap; }
.ib-adsrange a { padding: 6px 14px; border-radius: 16px; background: var(--soft); color: var(--icon); font-size: 14px; font-weight: 500; text-decoration: none; }
.ib-adsrange a.on { background: var(--green-l); color: var(--green-d); }
.ib-adstable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ib-adstable th, .ib-adstable td { padding: 8px 6px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.ib-adstable th:not(:first-child), .ib-adstable td:not(:first-child) { text-align: right; width: 64px; }
/* the ad card at the top of an ad chat (respond.io's): a centred note, then the card — source, View ad, when; the ad's picture
   (▶ for a video), its headline and two lines of its words; the ad / campaign name small */
.ib-adcard { align-self: stretch; display: flex; flex-direction: column; align-items: center; margin: 4px 0 10px; }
.ib-adline span { display: inline-block; padding: 5px 12px; border-radius: 8px; background: #fff; color: var(--muted); font-size: 12.5px; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }
.ib-adbox { width: min(100%, 440px); margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }
.ib-adbox header { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); }
.ib-adbox header a { color: #1f6feb; font-weight: 600; text-decoration: none; white-space: nowrap; }
.ib-adbox header time { flex: none; font-size: 12px; color: var(--muted); }
.ib-adic { flex: none; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff;
    font: 700 14px/1 Arial, sans-serif; background: #0866ff; }
.ib-adic-instagram { background: linear-gradient(45deg, #f9ce34, #ee2a7b 55%, #6228d7); }
.ib-adin { display: flex; gap: 10px; align-items: center; margin-top: 8px; padding: 8px; border-radius: 8px; background: var(--soft); }
/* (a picture only: "View ad" is the card's one link) */
.ib-adthumb { flex: none; width: 64px; height: 64px; border-radius: 6px; overflow: hidden; background: #d9dee0; }
.ib-adthumb img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ib-adtxt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ib-adtxt b { font-size: 14px; font-weight: 600; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ib-adtxt small { font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.ib-adname { display: block; margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.ib-adfoot { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.ib-adfoot .ib-adname { margin-top: 0; min-width: 0; }
.ib-adview { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 16px; background: #1877f2;
    color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; }
.ib-adview { border: 0; cursor: pointer; font-family: inherit; }
/* the ad over the chat (openAd) */
.ib-adov-media { margin: 10px 0 6px; border-radius: 10px; overflow: hidden; background: #000; text-align: center; }
.ib-adov-media img, .ib-adov-media video { display: block; width: 100%; max-height: 62vh; object-fit: contain; margin: 0 auto; }
.ib-adov-media p { margin: 0; padding: 14px; color: #ddd; }
.ib-adov-txt { margin: 6px 0; font-size: 14px; white-space: pre-line; max-height: 22vh; overflow: auto; }
.ib-adov-foot { display: flex; align-items: center; gap: 10px; margin: 8px 0 0; }
.ib-adov-foot a { flex: none; color: #1f6feb; font-weight: 600; text-decoration: none; font-size: 13px; }
.ib-adtag { flex: none; padding: 1px 7px; border-radius: 9px; background: #e7f0ff; color: #1f5fd6; font-size: 11.5px; font-weight: 600; }
.ib-ok { color: var(--ok); font-size: 13px; font-weight: 500; }
.ib-set .ib-check { color: var(--text); font-size: 15px; margin-bottom: 8px; }
.ib-set details summary { cursor: pointer; }
.ib-set .ib-select, .ib-set .ib-know { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 10px; background: #fff; color: var(--text); }
.ib-set .ib-know { min-height: 260px; font-family: ui-monospace, Consolas, monospace; line-height: 1.45; resize: vertical; }
/* AI auto-reply: the Settings card, the green "AI" chip on the inbox, the list's "Needs staff" */
.ib-auto.on { border-color: var(--green); background: #f3fbf6; }
.ib-btn-on { height: 46px; padding: 0 22px; font-size: 16px; }
.ib-btn-off { height: 46px; padding: 0 22px; font-size: 16px; color: var(--bad); border-color: #f0c4c4; }
.ib-btn-off.ib-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.ib-aichip { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px; margin-left: 8px; border: 0; border-radius: 14px;
    background: var(--green); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.ib-aichip i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: ib-blink 1.6s infinite; }
.ib-staff { flex: none; padding: 2px 8px; border-radius: 10px; background: #fff1e0; color: #a55a00; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.ib-staff.ib-has { background: #eef2ff; color: #3730a3; }
/* 💳 the customer's order waits for its advance (the 💳 Pending payment chip); purple: a payment was sent, to check in Approvals */
.ib-paytag { flex: none; padding: 2px 8px; border-radius: 10px; background: #fde8ea; color: #b42318; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.ib-paytag.ib-check { background: #f3e8ff; color: #7e22ce; }
#ib_name .ib-paytag { display: inline-block; margin-left: 6px; vertical-align: 2px; }
/* who has the chat (A3InboxHandoff): the bar under the head with ✅ Issue solved, the history's lines among the messages, the
   ⋮ history list */
.ib-asg { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 14px; background: #fff1e0; color: #7a4300; font-size: 13px; line-height: 1.3; }
.ib-asg[hidden] { display: none; }
.ib-asg .ib-sm { flex: none; }
.ib-evline { align-self: center; max-width: 90%; margin: 6px 0; padding: 5px 12px; border-radius: 8px; background: #fff8ec; color: #7a4300; font-size: 12.5px; text-align: center;
    box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }
.ib-evline.ib-ev-solved, .ib-evline.ib-ev-ai { background: #eefaf2; color: #146c2e; }
.ib-evline.ib-flash { outline: 2px solid var(--green); }
/* teaching the AI: the 🎓 count on the list's head, the Teach sheet (it opens at the top, so an iPhone's keyboard leaves it in
   sight), the Teach page */
.ib-askchip { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 11px; margin-left: 8px; border-radius: 14px;
    background: #ede7ff; color: #5b21b6; font-size: 13px; font-weight: 600; text-decoration: none; }
.ib-askchip[hidden] { display: none; }
.ib-snips.ib-teach { align-items: flex-start; }
.ib-teach .ib-snips-in { margin: calc(10px + var(--sat)) 8px 0; max-height: 86vh; }
.ib-teach .ib-snips-in header b { font-size: 16px; font-weight: 600; }
.ib-teach-body { padding: 12px 14px 14px; overflow-y: auto; }
.ib-teach-body label { display: block; font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.ib-teach-body textarea { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 10px; resize: vertical;
    color: var(--text); background: #fff; line-height: 1.4; font-family: inherit; }
.ib-small { font-size: 12.5px; margin: 0 0 10px; }
.ib-row-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ib-set .ib-know.ib-short { min-height: 0; font-family: inherit; }
.ib-ask-q { border-top: 1px solid var(--line); padding: 12px 0 4px; }
.ib-ask-q:first-of-type { border-top: 0; }
.ib-q { margin: 0 0 4px; font-size: 15.5px; }
.ib-ctx { font-size: 13px; margin: 0 0 8px; }
.ib-tag { display: inline-block; padding: 1px 8px; border-radius: 9px; font-size: 11.5px; font-weight: 600; background: var(--soft); color: var(--icon); }
.ib-tag-taught { background: #ede7ff; color: #5b21b6; }
.ib-tag-answer { background: #e7f6ec; color: var(--ok); }
.ib-tag-edit { background: #e7f0ff; color: #1f5fd6; }
.ib-off-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }

/* saved replies: Settings list, the ⚡ picker, the "/" suggestions */
.ib-snip { border-top: 1px solid var(--line); padding: 10px 0; }
.ib-snip summary { cursor: pointer; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ib-snip code { background: var(--soft); border-radius: 6px; padding: 1px 6px; font-size: 13px; color: var(--green-d); }
.ib-snip form { margin-top: 10px; }
.ib-snip form + form { margin-top: 6px; }
.ib-snipimg { max-width: 120px; max-height: 120px; border-radius: 8px; vertical-align: middle; }
.ib-snipimgs { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.ib-set .ib-snipimgbox { display: flex !important; flex-direction: column; align-items: center; gap: 2px; width: 84px; margin: 0; font-size: 12px; }
.ib-snipimgbox img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; background: var(--soft); }
.ib-set .ib-snipimgbox input { display: inline; width: auto; height: auto; margin: 0 3px 0 0; }
/* the "/" suggestions float over the chat, just above the typing bar, as tall as the chat allows */
.ib-chat-in { position: relative; }
.ib-chat-in .ib-sugg { position: absolute; left: 8px; right: 8px; z-index: 30; margin: 0; }
.ib-pic.ib-snipbtn { color: #e6a700; }
.ib-snips { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 60; background: rgba(11, 20, 26, .4); display: flex; align-items: flex-end; justify-content: center; }
.ib-snips-in { width: 100%; max-width: 520px; max-height: 75vh; display: flex; flex-direction: column; margin: 0 8px calc(8px + var(--sab)); border-radius: 16px; background: #fff; overflow: hidden; }
.ib-snips-in header { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.ib-snips-in header input { flex: 1 1 auto; height: 40px; border: 0; border-radius: 20px; background: var(--soft); padding: 0 14px; outline: none; }
.ib-snips-list { overflow-y: auto; }
/* "＋ New" in the ⚡ list: a saved reply made from the chat (25 Oct 2026) */
.ib-snip-new { flex: none; height: 36px; padding: 0 12px; border: 0; border-radius: 18px; background: var(--green); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.ib-teach-body input.ib-in { display: block; width: 100%; height: 40px; margin-top: 4px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 10px;
    color: var(--text); background: #fff; font-family: inherit; font-size: 15px; }
.ib-teach-body input[type=file] { display: block; margin-top: 4px; font-size: 13px; color: var(--text); }
.ib-snips-list button, .ib-sugg button { display: block; width: 100%; text-align: left; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--text); }
.ib-snips-list button:active, .ib-sugg button:active, .ib-sugg button.on { background: var(--soft); }
.ib-snips-list b, .ib-sugg b { display: block; font-size: 15px; font-weight: 600; }
.ib-snips-list b code, .ib-sugg b code { font-weight: 500; font-size: 12.5px; color: var(--green-d); margin-left: 6px; }
.ib-snips-list small, .ib-sugg small { display: block; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-sugg { margin: 0 8px 4px; border-radius: 12px; background: #fff; overflow: hidden; box-shadow: 0 4px 18px rgba(11, 20, 26, .25); overflow-y: auto; }

/* ✨ AI draft button (in the typing box) and its "writing…" state */
.ib-pic.ib-ai { color: #7c4dff; }
/* ✍️ Instruct the AI beside ✨ (chats only — a comment has no instruct) */
.ib-pic.ib-insbtn { width: 34px; color: #7c3aed; }
body.ib-cm #ib_ins { display: none !important; }
/* ✨ is pressed and held for ✍️ Instruct the AI: no copy / select pop-up on the phone */
#ib_ai { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.ib-pic.ib-ai.busy svg { animation: ib-spin 1s linear infinite; }
@keyframes ib-spin { to { transform: rotate(360deg); } }
body.ib-cm #ib_ai { display: inline-flex !important; }

/* 🧾 orders from the chat (App\Utils\A3InboxOrders, 22 Oct 2026): the strip under the head, and the order form */
.ib-ords { background: #f3f8ff; border-bottom: 1px solid var(--line); font-size: 13px; }
.ib-ords-row { display: flex; align-items: center; gap: 8px; padding: 6px 12px; }
.ib-ords-row + .ib-ords-row { border-top: 1px solid var(--line); }
.ib-ords-row small { color: var(--muted); }
.ib-ords-buy { flex: none; height: 28px; padding: 0 10px; border: 1px solid var(--green); border-radius: 14px; background: #fff; color: var(--green-d); font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ib-ords-ok { flex: none; color: var(--ok); font-weight: 600; white-space: nowrap; }
body.ib-cm #ib_order, body.ib-cm .ib-ords { display: none; }
.ib-ord { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 70; background: rgba(11, 20, 26, .45); display: flex; align-items: flex-end; justify-content: center; }
.ib-ord-in { width: 100%; max-width: 560px; max-height: calc(100% - 20px - var(--sat)); display: flex; flex-direction: column; background: #fff; border-radius: 16px 16px 0 0; overflow: hidden; padding-bottom: var(--sab); }
@media (min-width: 700px) { .ib-ord { align-items: center; } .ib-ord-in { border-radius: 16px; padding-bottom: 0; max-height: 90%; } }
.ib-ord-in header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 8px 10px 16px; border-bottom: 1px solid var(--line); font-size: 16px; }
.ib-ord-x { width: 38px; height: 38px; border: 0; border-radius: 50%; background: none; color: var(--icon); font-size: 18px; cursor: pointer; }
.ib-ord-body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.ib-ord-body label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.ib-ord-body input, .ib-ord-body textarea, .ib-ord-body select { font: inherit; font-size: 16px; color: var(--text); border: 1px solid var(--line2); border-radius: 10px; padding: 8px 10px; background: #fff; }
.ib-ord-body textarea { resize: vertical; }
.ib-ord-warn { margin: 0; padding: 8px 10px; border-radius: 10px; background: #fff8e1; color: #7a5b00; font-size: 13px; }
.ib-ord-wait { margin: 28px 0; text-align: center; color: var(--muted); }
.ib-ord-spin { display: inline-block; width: 16px; height: 16px; margin-right: 8px; vertical-align: -3px; border: 2px solid var(--line2); border-top-color: var(--green); border-radius: 50%; animation: ib-spin .8s linear infinite; }
.ib-ord-ship { display: flex; flex-wrap: wrap; gap: 6px; }
.ib-ord-ship button { flex: 1 1 100px; height: 40px; border: 1px solid var(--line2); border-radius: 20px; background: #fff; color: var(--text); font-size: 13.5px; cursor: pointer; }
.ib-ord-ship button.on { background: var(--green-l); border-color: var(--green); color: var(--green-d); font-weight: 600; }
.ib-ord-items { display: flex; flex-direction: column; gap: 8px; }
.ib-ord-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; }
.ib-ord-item.bad { border-color: #f0c4c4; background: #fff7f7; }
.ib-ord-item img, .ib-ord-item > i { flex: none; width: 48px; height: 60px; border-radius: 8px; object-fit: cover; background: var(--soft); }
.ib-ord-item .ib-grow { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.ib-ord-item small { color: var(--muted); font-size: 12.5px; }
.ib-ord-item em { color: var(--bad); font-style: normal; font-size: 12.5px; }
.ib-ord-item q { color: var(--muted); font-size: 12px; }
.ib-ord-item select { margin-top: 4px; }
/* a product's SKU, editable */
.ib-ord-body .ib-ord-skuin { width: 100%; max-width: 13em; margin: 2px 0; padding: 4px 8px; border-radius: 8px; font-family: ui-monospace, Consolas, monospace; letter-spacing: .02em; }
.ib-ord-body .ib-ord-skuin:focus { border-color: var(--green); outline: none; }
.ib-ord-body .ib-ord-skuin.busy { opacity: .55; }
.ib-ord-item input[type=number] { flex: none; width: 58px; padding: 6px; text-align: center; }
.ib-ord-item > button { flex: none; width: 30px; height: 36px; border: 0; background: none; color: var(--muted); font-size: 16px; cursor: pointer; }
.ib-ord-add { display: flex; gap: 8px; }
.ib-ord-add input { flex: 1 1 auto; min-width: 0; }
.ib-ord-add button { flex: none; padding: 0 14px; border: 1px solid var(--green); border-radius: 10px; background: #fff; color: var(--green-d); font-weight: 600; cursor: pointer; }
.ib-ord-tot { margin: 0; text-align: right; font-size: 14px; }
.ib-ord-in footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line); }
.ib-ord-done { margin: 6px 0 0; font-size: 17px; }
.ib-ord-sum { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--green-l); font: inherit; font-size: 14px; white-space: pre-wrap; }
.ib-ords-sum { border-color: var(--line2); color: var(--text); font-weight: 500; }

/* each platform's logo (owner, 23 Oct 2026: "for each platform … the logo should be seen"): on the customer's picture and on
   the Ad tag — Messenger, Facebook (comments), Instagram, WhatsApp, TikTok */
.ib-lg { display: inline-grid; place-items: center; border-radius: 50%; overflow: hidden; }
.ib-lg svg { width: 100%; height: 100%; display: block; }
i.ib-l-messenger { background: linear-gradient(45deg, #0695ff 10%, #a334fa 60%, #ff6968); }
i.ib-l-facebook { background: #0866ff; }
i.ib-l-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
i.ib-l-whatsapp { background: #25d366; }
i.ib-l-tiktok { background: #000; box-shadow: inset 1px 1px 0 #25f4ee, inset -1px -1px 0 #fe2c55; }
.ib-adtag { display: inline-flex; align-items: center; gap: 4px; padding-left: 3px; }
.ib-adtag .ib-lg { width: 15px; height: 15px; }

/* the Calls chip's list (owner, 23 Oct 2026: "for call create an separe option") */
.ib-callrow .ib-callbad { color: var(--bad); }
.ib-call-bad { color: var(--bad); }
.ib-call-in { color: var(--green-d); }
.ib-call-live { color: var(--green-d); font-weight: 600; }
.ib-callic { flex: none; width: 22px; height: 22px; color: var(--green-d); }
.ib-callic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* the Calls list's phone that calls back: a round tap target, no taller row */
.ib-callic[data-callback] { width: 36px; height: 36px; margin: -8px -6px -8px 0; padding: 8px; border-radius: 50%; cursor: pointer; }
.ib-callic[data-callback]:active, .ib-callic[data-callback]:hover { background: rgba(0, 0, 0, .06); }
/* the customer's profile (inbox.js openProfile, A3InboxPeople): a drawer on the right on a computer, a sheet from below on a phone */
.ib-prof { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center;
    background: rgba(11, 20, 26, .42); animation: ib-sheet-fade .18s ease-out; }
.ib-prof-in { width: 100%; max-width: 560px; max-height: calc(100% - 16px - var(--sat)); display: flex; flex-direction: column; background: var(--bg);
    border-radius: 22px 22px 0 0; overflow: hidden; padding-bottom: var(--sab); animation: ib-sheet-up .26s cubic-bezier(.2, .9, .25, 1); }
@media (min-width: 900px) {
    .ib-prof { justify-content: flex-end; align-items: stretch; }
    .ib-prof-in { max-width: 420px; max-height: none; border-radius: 0; padding-bottom: 0; box-shadow: -10px 0 40px rgba(11, 20, 26, .2); animation: ib-prof-in .24s cubic-bezier(.2, .9, .25, 1); }
}
@keyframes ib-prof-in { from { transform: translateX(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.ib-prof-in > header { display: flex; align-items: center; gap: 8px; padding: 10px 6px 10px 18px; background: #fff; border-bottom: 1px solid var(--line); font-size: 16px; }
.ib-prof-body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 14px 16px 22px; }
.ib-prof-body h3 { margin: 18px 2px 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ib-prof-body h3 small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.ib-pf-who { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.ib-pf-who b { display: block; font-size: 17px; font-weight: 600; }
.ib-pf-who small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.ib-pf-chats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ib-pf-chats button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 6px; border: 1px solid var(--line2); border-radius: 16px; background: #fff;
    color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.ib-pf-chats .ib-lg { width: 20px; height: 20px; }
.ib-pf-chats small { color: var(--muted); }
.ib-pf-stages { display: flex; flex-wrap: wrap; gap: 6px; }
.ib-pf-stages button, .ib-pf-tags input { height: 34px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 17px; background: #fff; color: var(--icon); font: inherit; font-size: 14px; cursor: pointer; }
.ib-pf-stages button.on { color: #fff; border-color: transparent; font-weight: 600; }
.ib-pf-stages .s-new.on { background: #1d5fd1; }
.ib-pf-stages .s-hot.on { background: #e8590c; }
.ib-pf-stages .s-customer.on { background: var(--green-d); }
.ib-pf-stages .s-cold.on { background: #6b7c86; }
.ib-pf-stages .auto { border-style: dashed; }
.ib-pf-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ib-pf-tags span { display: inline-flex; align-items: center; gap: 2px; height: 30px; padding: 0 4px 0 12px; border-radius: 15px; background: #ecebff; color: #3730a3; font-size: 13.5px; font-weight: 500; }
.ib-pf-tags span button { width: 24px; height: 24px; border: 0; border-radius: 50%; background: none; color: inherit; font-size: 12px; cursor: pointer; }
.ib-pf-tags input { width: 130px; cursor: text; font-size: 16px; }
.ib-pf-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ib-pf-fields label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
.ib-pf-fields input { height: 38px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 10px; background: #fff; color: var(--text); font: inherit; font-size: 16px; }
.ib-pf-hint { margin: 6px 2px; font-size: 12.5px; }
.ib-pf-sf { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green); }
.ib-pf-sf b, .ib-pf-sf small { display: block; }
.ib-pf-sf b { font-size: 16px; }
.ib-pf-sf small { margin-top: 2px; color: var(--muted); font-size: 13px; }
.ib-pf-sf .ib-btn, .ib-pf-none .ib-btn { flex: none; }
.ib-pf-none { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 10px 14px; border-radius: 14px; background: #fff;
    border: 1px dashed var(--line2); color: var(--muted); font-size: 14px; }
.ib-pf-sf.l-risky, .ib-pf-sf.l-medium { border-left-color: #e8a10c; }
.ib-pf-sf.l-danger, .ib-pf-sf.l-high { border-left-color: var(--bad); }
.ib-pf-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ib-pf-stats div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.ib-pf-stats b { font-size: 16px; font-weight: 600; white-space: nowrap; }
.ib-pf-stats small { font-size: 11.5px; color: var(--muted); }
.ib-pf-stats .bad b { color: var(--bad); }
.ib-pf-ord { margin-top: 8px; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.ib-pf-ord header { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.ib-pf-ord > small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; }
.ib-pf-ord ul { margin: 6px 0 0; padding: 0; list-style: none; font-size: 13px; }
.ib-pf-ord li { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.ib-pf-ord li span { color: var(--muted); white-space: nowrap; }
.ib-pf-st { padding: 2px 8px; border-radius: 10px; font-size: 11.5px; font-weight: 600; }
.ib-pf-st.st-green { background: #e3f7ec; color: #0b7a3f; }
.ib-pf-st.st-blue { background: #e6f0fd; color: #1d5fd1; }
.ib-pf-st.st-amber { background: #fff2d9; color: #a35a00; }
.ib-pf-st.st-red { background: #fde8e8; color: #c62828; }
.ib-pf-st.st-grey { background: #eef1f3; color: #54656f; }

/* notes for the team (A3InboxNotes): a yellow card among the messages; the note box */
.ib-noteline { align-self: center; width: min(92%, 520px); margin: 8px 0; padding: 8px 12px 9px; border-radius: 10px; background: #fff8dc; border: 1px solid #f3dd8f;
    box-shadow: 0 1px .5px rgba(11, 20, 26, .1); font-size: 14px; color: #3d3200; }
.ib-noteline header { display: flex; gap: 4px; align-items: baseline; font-size: 12.5px; color: #8a6d00; }
.ib-noteline header span { margin-left: auto; font-size: 11.5px; }
.ib-noteline p { margin: 3px 0 0; white-space: pre-wrap; word-wrap: break-word; }
.ib-noteline p b { color: #4338ca; }
.ib-noteline.ib-flash { outline: 2px solid var(--green); }
.ib-notebox textarea { display: block; width: calc(100% - 32px); margin: 12px 16px 6px; min-height: 96px; padding: 10px 12px; border: 1px solid #f3dd8f; border-radius: 12px;
    background: #fffbea; color: var(--text); font: inherit; font-size: 16px; resize: vertical; }
.ib-note-for { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 4px 16px; }
.ib-note-for small { color: var(--muted); font-size: 12.5px; }
.ib-note-for button { height: 30px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 15px; background: #fff; color: #4338ca; font: inherit; font-size: 13.5px; cursor: pointer; }
.ib-note-for button.on { background: #4338ca; border-color: #4338ca; color: #fff; }
.ib-notebox footer { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 16px 14px; }

/* the Reports page (reports.blade.php) */
.ib-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 12px; }
@media (min-width: 640px) { .ib-tiles { grid-template-columns: repeat(4, 1fr); } }
.ib-tiles > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.ib-tiles b { font-size: 22px; font-weight: 600; color: var(--text); }
.ib-tiles small { font-size: 12px; color: var(--muted); }
.ib-tiles .bad b { color: var(--bad); }
.ib-tiles-in { margin: 4px 0 6px; }
.ib-tiles-in > div { background: var(--soft); border-color: transparent; }
.ib-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ib-rep .ib-adstable td small { white-space: nowrap; }
.ib-bar-row { display: grid; grid-template-columns: minmax(110px, 38%) 1fr auto; align-items: center; gap: 8px; margin: 6px 0; font-size: 13.5px; }
.ib-bar-row i { display: block; height: 10px; border-radius: 5px; background: #9fb3c8; }
.ib-bar-row i.ok { background: var(--green); }
.ib-bar-row b { min-width: 28px; text-align: right; font-weight: 600; }
.ib-hours { display: flex; align-items: flex-end; gap: 3px; height: 140px; padding-top: 6px; }
.ib-hours div { flex: 1 1 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.ib-hours i { display: block; width: 100%; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--green); }
.ib-hours small { height: 16px; margin-top: 4px; font-size: 10.5px; color: var(--muted); }
/* WhatsApp templates and bulk sends (templates / broadcasts / broadcast pages, assets/wa.js): the form beside a WhatsApp-like preview */
.ib-set.ib-wa { max-width: 1040px; }
.ib-wa .ib-top .ib-btn { flex: none; }
.ib-set input[type=file] { height: auto; padding: 8px; }
.wa-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 820px) { .wa-grid { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; } .wa-phone { position: sticky; top: 76px; } }
.wa-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .wa-two { grid-template-columns: 1fr; gap: 0; } }
.wa-h3 { margin: 16px 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.wa-h3 small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.wa-h2row { display: flex; align-items: center; gap: 8px; }
.wa-brow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.ib-set .wa-brow input { flex: 1 1 150px; width: auto; height: 40px; margin: 0; }
.wa-btype { flex: none; padding: 4px 10px; border-radius: 12px; background: var(--soft); color: var(--icon); font-size: 12px; font-weight: 500; }
.wa-btnadd { display: flex; flex-wrap: wrap; gap: 6px; }
.wa-msg { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: #e7f6ec; color: var(--ok); }
.wa-msg.bad { background: #fdecea; color: var(--bad); }
.wa-count { margin: 4px 0 8px; font-size: 15px; }
.wa-count small { color: var(--muted); font-size: 12.5px; }
.wa-btnrow { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.wa-phone > small { display: block; margin-bottom: 6px; }
.wa-chat { padding: 16px 12px; border-radius: 16px; background: var(--chatbg); min-height: 170px; }
.wa-chat-in { min-height: 0; }
.wa-bubble { position: relative; max-width: 300px; padding: 4px 4px 6px; border-radius: 0 10px 10px 10px; background: #fff; box-shadow: 0 1px .5px rgba(11, 20, 26, .13);
    color: var(--text); font-size: 14.5px; line-height: 1.42; word-wrap: break-word; }
.wa-bubble img, .wa-imgph { display: block; width: 100%; margin-bottom: 4px; border-radius: 8px; }
.wa-imgph { display: grid; place-items: center; height: 150px; background: #dfe5e7; color: #8696a0; font-size: 13px; }
.wa-bubble > span, .wa-title, .wa-foot { display: block; padding: 2px 6px; white-space: pre-wrap; }
.wa-title { font-weight: 600; }
.wa-foot { color: var(--muted); font-size: 12.5px; }
.wa-time { display: block; padding: 0 6px; text-align: right; font-style: normal; font-size: 11px; color: var(--muted); }
.wa-btns { margin: 4px -4px -6px; border-top: 1px solid var(--line); }
.wa-btns span { display: block; padding: 9px; border-top: 1px solid var(--line); text-align: center; color: #027eb5; font-size: 14px; font-weight: 500; }
.wa-btns span:first-child { border-top: 0; }
.wa-tpl { padding: 12px 0; border-top: 1px solid var(--line); }
.wa-tpl header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.wa-tpl header small { color: var(--muted); }
.wa-tpltext { margin: 6px 0 0; white-space: pre-wrap; color: var(--icon); font-size: 13.5px; }
.wa-st { margin-left: auto; padding: 2px 10px; border-radius: 10px; background: #eef1f3; color: #54656f; font-size: 12px; font-weight: 600; white-space: nowrap; }
.wa-st-approved, .wa-st-done, .wa-st-delivered, .wa-st-read { background: #e3f7ec; color: #0b7a3f; }
.wa-st-pending, .wa-st-scheduled, .wa-st-queued, .wa-st-in_appeal, .wa-st-draft { background: #fff2d9; color: #a35a00; }
.wa-st-sending, .wa-st-sent { background: #e6f0fd; color: #1d5fd1; }
.wa-st-rejected, .wa-st-failed, .wa-st-disabled, .wa-st-paused, .wa-st-stopped { background: #fde8e8; color: #c62828; }
.wa-bcrow { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
.wa-bcrow b, .wa-bcrow small { display: block; }
.wa-bcrow small { color: var(--muted); font-size: 12.5px; }
.wa-nums { color: var(--icon); font-size: 13px; white-space: nowrap; }
@media (max-width: 560px) { .wa-nums { display: none; } }
.wa-bar { height: 8px; margin: 10px 0 6px; border-radius: 4px; background: var(--soft); overflow: hidden; }
.wa-bar i { display: block; height: 100%; background: var(--green); transition: width .4s; }
.wa-actions { display: flex; gap: 8px; margin-top: 10px; }
.ib-set .wa-people td:last-child, .ib-set .wa-people th:last-child { width: 45%; text-align: left; }
/* "Send a template" in a WhatsApp chat (inbox.js templateFill) */
.ib-tplfill { padding: 6px 16px 0; }
.ib-tplfill label { display: flex; flex-direction: column; gap: 3px; margin-bottom: 8px; font-size: 12.5px; color: var(--muted); }
.ib-tplfill input { height: 40px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 10px; color: var(--text); font: inherit; font-size: 16px; }
.ib-tplprev { margin: 4px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--chatbg); white-space: pre-wrap; font-size: 14px; color: var(--text); }

/* the owner's ⋮ menu, "emerald glass" (inbox.js menuE(), 28 Oct 2026) */
.ib-sheet-card.ibe { background: radial-gradient(120% 55% at 90% 0%, #13957a 0%, rgba(19, 149, 122, 0) 60%), linear-gradient(180deg, #07443a 0%, #031f1a 100%); color: #fff; padding-bottom: 14px; }
.ibe .ib-sheet-grab { background: rgba(255, 255, 255, .4); }
.ibe svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ibe b, .ibe small { display: block; }
.ibe-head { display: flex; align-items: center; gap: 14px; padding: 10px 18px 14px; }
.ibe-head b { font-size: 18px; font-weight: 700; }
.ibe-head small { margin-top: 1px; font-size: 13px; color: rgba(255, 255, 255, .78); }
.ibe-av { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); font-size: 19px; font-weight: 700; }
.ibe-out { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; }
.ibe-out svg { width: 19px; height: 19px; }
.ibe-two { display: flex; gap: 10px; padding: 0 14px; }
.ibe-ai { flex: 1 1 0; min-width: 0; padding: 14px; border-radius: 20px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); color: #fff; font: inherit; text-align: left; cursor: pointer; }
.ibe-aitop { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12px; color: rgba(255, 255, 255, .85); }
.ibe-sw { flex: none; position: relative; width: 42px; height: 26px; border-radius: 13px; background: rgba(255, 255, 255, .28); }
.ibe-sw i { position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.ibe-ai.on .ibe-sw { background: #b8f2d8; }
.ibe-ai.on .ibe-sw i { transform: translateX(16px); background: #04302a; }
.ibe-ai b { margin-top: 12px; font-size: 18px; font-weight: 700; }
.ibe-ai small { margin-top: 2px; font-size: 12px; line-height: 1.35; color: rgba(255, 255, 255, .8); }
.ibe-teach { display: flex; align-items: center; gap: 14px; width: calc(100% - 28px); margin: 12px 14px 0; padding: 12px 16px; border: 0; border-radius: 20px; background: #fff; color: #0b2a23; font: inherit; text-align: left; cursor: pointer; }
.ibe-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #e3e0ff; color: #3730a3; }
.ibe-ic svg { width: 22px; height: 22px; }
.ibe-teach b { font-size: 15.5px; font-weight: 700; }
.ibe-teach small { font-size: 13px; color: #4a5b55; }
.ibe-n { flex: none; display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 10px; box-sizing: border-box; border-radius: 14px; background: #b42318; color: #fff; font-size: 14px; font-weight: 700; }
.ibe-teach .ibe-chev { color: #4a5b55; }
.ibe-list { margin: 12px 14px 0; border-radius: 20px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); overflow: hidden; }
.ibe-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 54px; padding: 6px 16px; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .1); background: none; color: #fff; font: inherit; text-align: left; cursor: pointer; }
.ibe-row:last-child { border-bottom: 0; }
.ibe-row > svg:first-child { flex: none; width: 21px; height: 21px; color: #b8f2d8; }
.ibe-row b { font-size: 15.5px; font-weight: 600; }
.ibe-row small { font-size: 12px; line-height: 1.3; color: rgba(255, 255, 255, .8); }
.ibe-chev { flex: none; width: 16px; height: 16px; opacity: .7; }
.ibe-cred { display: flex; align-items: center; gap: 14px; width: calc(100% - 28px); margin: 12px 14px 0; padding: 14px 18px; border: 0; border-radius: 20px; background: linear-gradient(135deg, #f6e3b4, #e2b95e); color: #2b1d00; font: inherit; text-align: left; cursor: pointer; }
.ibe-cred.low { background: linear-gradient(135deg, #ffd9d6, #f19a93); color: #4a0b06; }
.ibe-gauge { flex: none; width: 56px; height: 56px; }
.ibe-gauge circle { fill: none; stroke: rgba(43, 29, 0, .18); stroke-width: 6; }
.ibe-gauge circle.v { stroke: currentColor; stroke-linecap: round; }
.ibe-k { font-size: 11px; letter-spacing: .2em; font-weight: 700; }
.ibe-cred b { font-size: 26px; font-weight: 700; line-height: 1.15; }
.ibe-r { flex: none; font-size: 13px; font-weight: 600; text-align: right; line-height: 1.35; }

/* the home on a phone, "needs you first" (28 Oct 2026, his "for home I is nice"): a plain head with the search button beside the three
   dots, one small emerald status card (AI, Comments, Needs staff; the one pressed is lit, the others dim), the chips, then "Needs you"
   above "Recent"; a computer keeps WhatsApp Web's look */
.ib-stat, .ib-hsearch { display: none; }
.ib-sec { padding: 14px 18px 4px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #006b57; }
.ib-sec-need { color: #8a4500; }
@media all {
    .ib-lhead { padding: calc(12px + var(--sat)) 10px 6px 16px; gap: 4px; background: #fff; }
    .ib-lhead .ib-logo { width: 38px; height: 38px; border-radius: 12px; background: #06463b; color: #fff; }
    .ib-lhead .ib-brand-t { font-size: 26px; letter-spacing: -.01em; color: #04302a; }
    .ib-lhead .ib-aichip, .ib-lhead .ib-askchip { display: none; }
    .ib-lhead .ib-hic { width: 44px; height: 44px; border-radius: 14px; margin-left: 4px; background: #f0f4f2; color: #06463b; }
    .ib-lhead .ib-hsearch { display: inline-flex; }
    .ib-stat { display: flex; gap: 3px; margin: 2px 16px 0; padding: 4px; border-radius: 16px; color: #fff;
        background: radial-gradient(120% 120% at 100% 0%, #18a387 0%, rgba(24, 163, 135, 0) 60%), linear-gradient(135deg, #06463b, #04302a); }
    .ib-stat[hidden] { display: none; }
    .ib-st { flex: 1 1 0; min-width: 0; padding: 4px 9px; border: 0; border-radius: 12px; background: none; color: #fff; font: inherit; text-align: left; cursor: pointer;
        transition: background .15s, opacity .15s; }
    .ib-st-ai { flex: 1.6 1 0; cursor: default; }
    .ib-st small { display: block; font-size: 10.5px; line-height: 1.2; color: rgba(255, 255, 255, .85); }
    .ib-st > b { display: block; margin-top: 0; font-size: 16px; font-weight: 700; line-height: 1.15; }
    .ib-st-need > b { color: #f6e3b4; }
    .ib-st-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 1px; }
    .ib-st-v { display: flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: #fff; font: inherit; cursor: pointer; }
    .ib-st-v i { width: 8px; height: 8px; border-radius: 50%; background: #b8f2d8; }
    .ib-st-v.off i { background: rgba(255, 255, 255, .45); }
    .ib-st-v b { font-size: 15px; font-weight: 700; }
    .ib-st-ai a { padding: 2px 8px; border-radius: 9px; background: rgba(255, 255, 255, .16); font-size: 11px; font-weight: 600; color: #fff; text-decoration: none; }
    .ib-stat.pick .ib-st { opacity: .55; }
    .ib-stat.pick .ib-st.on { opacity: 1; background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .75); }
    .ib-tools { padding: 8px 16px 4px; background: #fff; }
    .ib-tools .ib-search { display: none; height: 42px; border-radius: 21px; background: #f0f4f2; }
    .ib-tools.srch .ib-search { display: flex; }
    .ib-tools.srch .ib-chips { margin-top: 8px; }
    .ib-tools:not(.srch) .ib-chips { margin-top: 0; }
    .ib-chips button { background: #f0f4f2; color: #3b4a54; }
    .ib-chips button.on { background: #d9fdd3; color: #04302a; font-weight: 700; }
    .ib-row.new { background: #f4fbf8; }
}

/* the voice bar, drawn by inbox.js dressVoice() (28 Oct 2026): the <audio> stays but hidden */
.ib-m audio.ibv-a { display: none; }
.ibv { display: flex; align-items: center; gap: 10px; width: 262px; max-width: 100%; padding: 2px 0; }
.ibv-p { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--green-d); color: #fff; cursor: pointer; }
.ibv-p svg { width: 22px; height: 22px; fill: currentColor; }
.ibv-p .pa, .ibv.on .ibv-p .pl { display: none; }
.ibv.on .ibv-p .pa { display: block; }
.ibv.wait .ibv-p { opacity: .55; animation: ib-blink 1.2s infinite; }
.ibv-m { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ibv-w { position: relative; display: flex; align-items: center; gap: 2px; height: 30px; cursor: pointer; }
.ibv-w i { flex: 1 1 0; min-width: 2px; border-radius: 2px; background: rgba(17, 27, 33, .26); }
.ibv-w i.d { background: var(--green-d); }
.ibv-k { position: absolute; top: 50%; left: calc(var(--p, 0) * (100% - 10px)); width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--green-d); box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); opacity: 0; }
.ibv.st .ibv-k { opacity: 1; }
.ibv-t { font-size: 12px; line-height: 1; color: var(--muted); font-variant-numeric: tabular-nums; }
.ibv-s { flex: none; visibility: hidden; min-width: 42px; height: 30px; padding: 0 8px; border: 0; border-radius: 15px; background: rgba(17, 27, 33, .09); color: #3b4a54; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.ibv.st .ibv-s { visibility: visible; }

/* the chat on a phone, "emerald glass" (28 Oct 2026, his "implement the version J"): an emerald head with rounded corners, round soft
   bubbles with a dark "AI" badge on the AI's, a floating typing pill and a deep-green mic; a computer keeps WhatsApp Web's look */
.ib-aib { display: inline-block; height: 16px; margin-right: 6px; padding: 0 6px; border-radius: 8px; background: #06463b; color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; vertical-align: 1px; }
.ib-chat-sub { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ib-aitag { flex: none; height: 18px; padding: 0 8px; border-radius: 9px; background: #b8f2d8; color: #04302a; font-size: 11px; font-weight: 700; line-height: 18px; }
.ib-aitag[hidden] { display: none; }
@media all {
    .ib-chat { background: #eaf1ee; }
    .ib-chat-head { position: relative; z-index: 2; gap: 4px; padding: calc(10px + var(--sat)) 8px 14px 4px; border-bottom: 0; border-radius: 0 0 24px 24px; color: #fff;
        background: radial-gradient(110% 120% at 100% 0%, #18a387 0%, rgba(24, 163, 135, 0) 60%), linear-gradient(180deg, #06463b, #04332b); }
    .ib-chat-head .ib-hic { width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, .12); color: #fff; }
    .ib-chat-head .ib-back { background: transparent; }
    .ib-chat-head .ib-av { width: 42px; height: 42px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .3); }
    .ib-chat-head .ib-av .ib-avimg { border-radius: 14px; }
    .ib-chat-head .ib-av i { right: -3px; bottom: -3px; border-color: #05392f; }
    .ib-chat-who b { color: #fff; font-size: 16px; font-weight: 700; }
    .ib-chat-who small { color: rgba(255, 255, 255, .85); font-size: 12px; }
    .ib-msgs { background-image: none; background-color: #eaf1ee; padding-top: 14px; gap: 6px; }
    .ib-m { padding: 9px 14px 8px; border-radius: 20px; box-shadow: 0 1px 2px rgba(4, 51, 43, .1); line-height: 1.5; }
    .ib-m.in, .ib-m.in.tail { border-radius: 20px 20px 20px 4px; }
    .ib-m.out, .ib-m.out.tail { border-radius: 20px 20px 4px 20px; }
    .ib-m.tail::before { display: none; }
    .ib-m.pic { padding: 5px; }
    .ib-m img, .ib-m video { border-radius: 16px; }
    .ib-day span { border-radius: 12px; box-shadow: 0 1px 2px rgba(4, 51, 43, .08); }
    .ib-compose { align-items: flex-end; gap: 10px; padding: 8px 12px calc(14px + var(--sab)); }
    .ib-pill { min-height: 52px; border-radius: 26px; box-shadow: 0 6px 20px rgba(4, 51, 43, .16); }
    .ib-pill textarea { min-height: 52px; padding: 16px 0 13px; }
    .ib-pic { height: 52px; }
    .ib-round { width: 52px; height: 52px; background: #06463b; box-shadow: 0 6px 16px rgba(4, 51, 43, .3); }
}

/* the chips on a phone (28 Oct 2026): All, Human Reply and Comments are the top card's now; Purchased and Calls come first, Archived is last */
.ib-chips [data-f="closed"] { display: none; }
@media all {
    .ib-chips [data-f="open"], .ib-chips [data-f="human"], .ib-chips [data-f="comments"] { display: none; }
    .ib-chips [data-f="closed"] { display: block; }
    .ib-chips [data-f="buyers"] { order: 4; }
    .ib-chips [data-f="calls"] { order: 3; }
    .ib-chips [data-f="recs"] { order: 3; }
    .ib-chips [data-f="pending"] { order: 2; }
    .ib-chips [data-f="unread"] { order: 5; }
    .ib-chips [data-f="mine"] { order: 1; }
    .ib-chips [data-f="closed"] { order: 9; }
    .ib-archived { display: none !important; }
}

@media all {
    #ib_st_all > b::after { content: ' new'; font-size: 9.5px; font-weight: 600; opacity: .85; }
    .ib-st > b { white-space: nowrap; }
    .ib-st-ai a, .ib-st-v { white-space: nowrap; }
    .ib-st-ai { flex: 1.35 1 0; }
}

/* the chat's ⋮ menu, "emerald glass" (inbox.js menuChat(), 29 Oct 2026) */
.ibo-head { display: flex; align-items: center; gap: 14px; padding: 10px 20px 14px; }
.ibo-head b { font-size: 18px; font-weight: 700; }
.ibo-head small { margin-top: 1px; font-size: 13px; color: rgba(255, 255, 255, .8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ibo-av { flex: none; }
.ibo-av .ib-av { width: 48px; height: 48px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .28); }
.ibo-av .ib-av .ib-avimg { border-radius: 16px; }
.ibo-av .ib-av i { right: -3px; bottom: -3px; border-color: #05392f; }
.ibo-pill { flex: none; height: 28px; padding: 0 12px; border-radius: 14px; background: #b8f2d8; color: #04302a; font-size: 12px; font-weight: 700; line-height: 28px; white-space: nowrap; }
.ibo-pill.off { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); color: #f6e3b4; line-height: 26px; }
.ibo-btns { display: flex; gap: 10px; padding: 0 14px; }
.ibo-btn { flex: 1 1 0; min-width: 0; padding: 14px; border: 0; border-radius: 20px; font: inherit; text-align: left; cursor: pointer; }
.ibo-btn svg { width: 22px; height: 22px; }
.ibo-btn b { margin-top: 8px; font-size: 15px; font-weight: 700; }
.ibo-btn small { margin-top: 2px; font-size: 12px; line-height: 1.35; }
.ibo-btn.p { background: #b8f2d8; color: #04302a; }
.ibo-btn.p small { color: #0b4a3d; }
.ibo-btn.g { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); color: #fff; }
.ibo-btn.g small { color: rgba(255, 255, 255, .8); }
.ibo-btn.stop svg { color: #f6e3b4; }
.ibo-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px 14px 0; }
.ibo-tile { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px; border-radius: 18px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); color: #fff; font: inherit; text-align: left; cursor: pointer; }
.ibo-tile svg { flex: none; width: 22px; height: 22px; color: #b8f2d8; }
.ibo-tile b { font-size: 14.5px; font-weight: 700; line-height: 1.25; }
.ibo-tile small { font-size: 11.5px; line-height: 1.3; color: rgba(255, 255, 255, .78); }
.ibe-row.ibo-warm > svg:first-child { color: #f6e3b4; }

/* "Own AI": a DeepSeek reply in the 50/50 test (30 Oct 2026) */
.ib-aib.own { background: #7c3aed; }

/* Settings as modules (set-modules.js; owner, 2 Nov 2026: "for every function keep different different module") */
.ib-set.ib-modready > .ib-card.ib-modoff { display: none; }
.ib-modhome[hidden], .ib-modbar[hidden], .ib-mod[hidden], .ib-modgroup[hidden] { display: none; }
.ib-modfind { width: 100%; box-sizing: border-box; height: 44px; padding: 0 16px; margin: 0 0 8px; font-size: 16px; color: var(--text); background: #fff; border: 1px solid var(--line2); border-radius: 22px; outline: 0; }
.ib-modfind:focus { border-color: var(--green-d); }
.ib-modgroup { margin: 18px 0 0; }
.ib-modgroup h3 { margin: 0 0 8px 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.ib-modgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.ib-mod { position: relative; display: flex; align-items: flex-start; gap: 12px; min-height: 76px; box-sizing: border-box; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; color: var(--text); text-decoration: none; transition: border-color .12s, box-shadow .12s; }
.ib-mod:hover, .ib-mod:focus-visible { border-color: var(--green-d); box-shadow: 0 2px 10px rgba(0, 128, 105, .12); outline: 0; }
.ib-modic { flex: none; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; font-size: 21px; line-height: 1; }
.ib-modbody { flex: 1; min-width: 0; display: block; }
.ib-modbody b { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; padding-right: 76px; }
.ib-modbody small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.ib-modst { position: absolute; top: 12px; right: 12px; max-width: 74px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-style: normal; font-size: 11px; font-weight: 600; color: var(--muted); }
.ib-modst.on { color: var(--ok); }
.ib-modst.bad { color: var(--bad); }
.ib-modbar { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.ib-modbar b { font-size: 17px; font-weight: 600; color: var(--text); }
.ib-modback { flex: none; padding: 7px 12px; font-size: 14px; color: var(--green-d); background: #fff; border: 1px solid var(--line2); border-radius: 18px; text-decoration: none; }
.ib-modback:hover { border-color: var(--green-d); }
@media (max-width: 560px) { .ib-modgrid { grid-template-columns: 1fr; } }
.ib-mod { min-width: 0; }
.ib-modbar b { display: none; }
.ib-set input[type=checkbox], .ib-set input[type=radio] { flex: none; width: 20px; height: 20px; margin: 0; padding: 0; accent-color: var(--green-d); }
.ib-set .ib-check { flex-wrap: wrap; justify-content: flex-start; column-gap: 8px; row-gap: 2px; }

/* a computer has the same home and chat as the phone (owner, 2 Nov 2026: "at apps its following old design"); only the search stays open */
@media (min-width: 900px) {
.ib-tools .ib-search { display: flex; }
.ib-tools:not(.srch) .ib-chips { margin-top: 8px; }
.ib-lhead .ib-hsearch { display: none; }
.ib-list { background: #fff; }
}
/* Orders page (A3InboxOrdersPageController; owner, 2 Nov 2026) */
.ib-otabs { display: flex; gap: 6px; margin: 0 0 10px; overflow-x: auto; }
.ib-otabs a { flex: none; padding: 8px 14px; border-radius: 18px; background: #fff; border: 1px solid var(--line2); color: var(--text); font-size: 14px; text-decoration: none; }
.ib-otabs a span { margin-left: 3px; color: var(--muted); font-size: 12.5px; }
.ib-otabs a.on { background: var(--green-d); border-color: var(--green-d); color: #fff; }
.ib-otabs a.on span { color: #dff3ee; }
.ib-ofind input { height: 42px; margin: 0 0 6px; border-radius: 21px; }
.ib-ord-row { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 11px 14px; margin-bottom: 8px; }
.ib-ord-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ib-ord-top b { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 15px; font-weight: 600; }
.ib-ostat { flex: none; padding: 2px 9px; border-radius: 10px; background: #fff1e0; color: #a55a00; font-size: 12px; font-weight: 600; }
.ib-ostat.on { background: #e3f6ec; color: var(--ok); }
.ib-ord-items { margin: 4px 0 0; font-size: 14px; white-space: pre-line; }
.ib-ord-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 4px; font-size: 13px; color: var(--muted); }
.ib-ord-acts { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: 14px; }
.ib-ord-acts:empty { display: none; }
.ib-ord-acts a { color: var(--green-d); }
.ib-opager { display: flex; justify-content: space-between; margin: 12px 4px; }
.ib-opager a { color: var(--green-d); }
.ib-hic.ib-horders { display: inline-flex; align-items: center; justify-content: center; color: var(--icon); text-decoration: none; }

/* orders list as cards (2 Nov 2026): avatar, amount + status on the right, day headings, phone + Open chat row */
.ib-otabs a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; font-weight: 500; }
.ib-otabs a span { margin: 0; font-variant-numeric: tabular-nums; }
.ib-otabs a.on { font-weight: 600; }
.ib-ofind input { height: 48px; border-radius: 24px; }
.ib-oinfo { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 6px; padding: 10px 12px; border-radius: 12px; background: #e1f0ec; color: #26443d; font-size: 12.5px; line-height: 1.45; }
.ib-oinfo svg { flex: none; width: 16px; height: 16px; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ib-oday { margin: 14px 4px 6px; font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #566370; }
.ib-oc { display: flex; flex-direction: column; margin: 0 0 10px; padding: 14px 14px 6px; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(17, 27, 33, .08); }
.ib-oc-top { display: flex; align-items: center; gap: 12px; }
.ib-oav { flex: none; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: #e5e9ed; color: #3c4a57; font-style: normal; font-size: 17px; font-weight: 600; }
.ib-oav.t-v { background: #ece6fa; color: #52399a; }
.ib-oav.t-b { background: #e2ecfb; color: #1f4e9e; }
.ib-oav.t-r { background: #fbe4ea; color: #9a2447; }
.ib-oav.t-g { background: #ddf0ea; color: #00604c; }
.ib-oc-who { flex: 1 1 auto; min-width: 0; }
.ib-oc-who b { display: block; font-size: 16px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.ib-oc-who small { display: block; margin-top: 2px; font-size: 13px; color: #566370; font-variant-numeric: tabular-nums; }
.ib-oc-amt { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.ib-oc-amt strong { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ib-oc .ib-ostat { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 11px; background: #fdebd3; color: #7a4300; font-size: 11.5px; font-weight: 600; }
.ib-oc .ib-ostat::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #c77700; }
.ib-oc .ib-ostat.on { background: #e3f6ec; color: var(--ok); }
.ib-oc .ib-ostat.on::before { background: var(--ok); }
.ib-oc-what { margin: 8px 0 0; font-size: 14px; white-space: pre-line; }
.ib-oc-acts { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; border-top: 1px solid #edf0f3; }
.ib-oc-acts form { margin: 0; }
.ib-oc-tel, .ib-oc-chat { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; text-decoration: none; }
.ib-oc-tel { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.ib-oc-tel svg, .ib-oc-chat svg { flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ib-oc-tel svg { width: 16px; height: 16px; color: var(--green-d); }
.ib-oc-chat { margin-left: auto; padding: 0 16px; border-radius: 22px; background: #e1f0ec; color: #00604c; font-weight: 600; }
.ib-oc-chat svg { width: 18px; height: 18px; }

/* Channels in the respond.io layout (2 Nov 2026) */
.ib-chn [hidden] { display: none !important; }
.ib-chn-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px 0; }
.ib-set .ib-chn-find { width: 220px; max-width: 100%; height: 40px; margin: 0; }
.ib-chn-add { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 8px; background: #2f5fd8; color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; }
.ib-chn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.ib-chn-c { background: #f6f7f9; border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 12px; min-height: 124px; }
.ib-chn-c.off { opacity: .6; }
.ib-chn-h { display: flex; justify-content: space-between; gap: 10px; }
.ib-chn-h b { display: block; font-size: 14px; }
.ib-chn-h small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.45; word-break: break-word; }
.ib-chn-lg { flex: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 17px; }
.ib-chn-f { margin-top: auto; border-top: 1px solid #e5e7eb; padding-top: 10px; display: flex; justify-content: flex-end; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.ib-chn-f a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid #d1d5db; border-radius: 7px; background: #fff; color: #374151; font-size: 12px; font-weight: 500; text-decoration: none; }
.ib-chn-f a.go { background: #2f5fd8; border-color: #2f5fd8; color: #fff; }
.ib-chn-more { padding: 14px; font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 10px; line-height: 1.6; }
.ib-chn-more a { align-self: flex-end; margin-top: auto; font-weight: 600; color: #374151; text-decoration: none; }
.ib-chn-cat h3 { margin: 24px 0 10px; font-size: 15px; }
.ib-chn-whatsapp { background: #25d366; } .ib-chn-facebook { background: #0866ff; } .ib-chn-instagram { background: linear-gradient(45deg, #f9ce34, #ee2a7b 55%, #6228d7); }
.ib-chn-lg svg { display: block; }
.ib-fb-h { margin: 18px 0 8px; font-size: 15px; }
.ib-set form.ib-chn-f { margin: 0; }
.ib-chn-f button { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid #d1d5db; border-radius: 7px; background: #fff; color: #374151; font: inherit; font-size: 12px; font-weight: 500; cursor: pointer; }
.ib-chn-f button.rm { color: var(--bad); border-color: #f0c4c4; }

/* 🎓 AI Teaching, the button at the top of a chat (3 Nov 2026) */
.ib-learn .ib-learn-out { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.ib-learn textarea[data-k=l] { background: #effaf4; border-color: #9fd8bb; }
.ib-learn [hidden] { display: none !important; }

/* 💬 the comment a chat began from (3 Nov 2026) */
.ib-cmq { margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--soft); border-left: 3px solid #1877f2; white-space: pre-wrap; font-size: 14.5px; color: var(--text); overflow-wrap: anywhere; }
.ib-cmcard .ib-adin { margin-top: 6px; }
