/* GrowLab demo shell (Fraunces + Manrope, dark green / lime) around SRK's own look (navy + green). */
:root {
  --gl-green: #172B24; --gl-green-2: #22392F; --gl-bg: #FAFBF8; --gl-lime: #C4F567; --gl-ink: #172B24;
  --gl-muted: #4B5A54; --gl-line: #DDE3DD; --gl-card: #FFFFFF;
  --srk-navy: #002866; --srk-green: #178740; --srk-green-dark: #126A32; --srk-teal: #ECF8F8; --srk-line: #D5E1EE;
  --wa-head: #075E54; --wa-bg: #EFEAE2; --wa-out: #D9FDD3; --wa-in: #FFFFFF; --wa-send: #00A884; --wa-ink: #111B21; --wa-muted: #667781;
  --st-ai: #E8F1EC; --st-ai-fg: #1F5135; --st-booked: #E3EDFB; --st-booked-fg: #12407A; --st-confirmed: #DDF5E3; --st-confirmed-fg: #11612E;
  --st-team: #FEF0D6; --st-team-fg: #8A4B04; --st-active: #EDE8FB; --st-active-fg: #4B2F96; --st-done: #EEF0EE; --st-done-fg: #4B5A54;
  --danger: #B42318; --danger-bg: #FDECEA; --night: #24305E; --night-bg: #E9ECF8;
  --font-head: 'Fraunces', Georgia, serif; --font-body: 'Manrope', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-ar: 'IBM Plex Sans Arabic', 'Manrope', system-ui, sans-serif;
  --r: 14px; --bar-h: 64px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font-body); font-size: 15px; line-height: 1.5; color: var(--gl-ink); background: var(--gl-bg); }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #2F7DE1; outline-offset: 2px; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[lang="ar"], [dir="rtl"] { font-family: var(--font-ar); }
[hidden] { display: none !important; }

/* Top bar */
.bar { position: sticky; top: 0; z-index: 30; height: var(--bar-h); display: flex; align-items: center; gap: 16px; padding: 0 20px; background: var(--gl-green); color: #fff; }
.bar-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.bar-logo { height: 26px; width: auto; }
.bar-for { font-size: 14px; color: #CFE0D6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-inline-start: 1px solid #3C5448; padding-inline-start: 14px; }
.bar-for strong { color: #fff; font-weight: 700; }
.tabs { display: flex; gap: 4px; margin-inline: auto; background: var(--gl-green-2); padding: 4px; border-radius: 999px; }
.tabs button { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; color: #DCE8E1; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; min-height: 40px; white-space: nowrap; }
.tabs button:hover { color: #fff; }
.tabs button[aria-selected="true"] { background: var(--gl-lime); color: var(--gl-green); }
.tab-n { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 11px; font-weight: 800; }
.tab-badge { background: #E5484D; color: #fff; border-radius: 999px; font-size: 11px; font-weight: 800; padding: 1px 7px; }
.bar-tools { display: flex; gap: 8px; }
.clock, .reset { display: flex; align-items: center; gap: 8px; border: 1px solid #3C5448; background: transparent; color: #fff; border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 13px; min-height: 40px; white-space: nowrap; }
.clock[aria-pressed="true"] { background: var(--night-bg); color: var(--night); border-color: var(--night-bg); }
.reset { color: #CFE0D6; }

main { height: calc(100dvh - var(--bar-h)); }
.view { height: 100%; }

/* Side panels shared by tabs 1 and 2 */
.side { display: flex; flex-direction: column; gap: 12px; padding: 4px 4px 16px; overflow: auto; }
.eyebrow { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--srk-green-dark); }
h1 { font-family: var(--font-head); font-weight: 600; font-size: 26px; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
.lede { margin: 0; color: var(--gl-muted); }
.points { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.points li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.points .ic { color: var(--srk-green); margin-top: 2px; }
.try-label { margin: 8px 0 0; font-weight: 800; font-size: 13px; }
.scen { display: flex; flex-wrap: wrap; gap: 8px; }
.scen button { text-align: start; border: 1px solid var(--gl-line); background: var(--gl-card); border-radius: 12px; padding: 9px 12px; font-size: 13.5px; line-height: 1.35; min-height: 44px; width: 100%; display: flex; gap: 10px; align-items: center; }
.scen button:hover { border-color: var(--srk-green); background: #F3FAF5; }
.scen button:disabled { opacity: .55; cursor: wait; }
.scen .flag { font-size: 11px; font-weight: 800; color: var(--gl-muted); border: 1px solid var(--gl-line); border-radius: 6px; padding: 1px 6px; flex: none; }
.ghost-btn { align-self: flex-start; display: flex; align-items: center; gap: 8px; border: 1px solid var(--gl-ink); background: transparent; border-radius: 999px; padding: 9px 16px; font-weight: 700; min-height: 44px; margin-top: 4px; }

/* 1. Website */
.web-stage { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; padding: 16px 20px; }
.browser { position: relative; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--gl-line); box-shadow: 0 10px 30px rgba(23, 43, 36, .10); min-height: 0; }
.browser-top { flex: none; display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 14px; background: #EEF1EE; border-bottom: 1px solid var(--gl-line); }
.dots { display: flex; gap: 6px; } .dots i { width: 11px; height: 11px; border-radius: 50%; background: #C9D0CB; }
.url { display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 999px; padding: 4px 14px; font-size: 13px; color: #3A463F; flex: 0 1 420px; }
.url .ic { width: 13px; height: 13px; color: var(--srk-green); }
.site { flex: 1; overflow-y: auto; overflow-x: hidden; background: #fff; }
.site img { display: block; width: 100%; height: auto; }

.widget { position: absolute; inset-inline-end: 18px; bottom: 18px; z-index: 5; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.launcher { width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--srk-green); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0, 40, 102, .28); }
.launcher .ic { width: 28px; height: 28px; }
.launcher:hover { background: var(--srk-green-dark); }
.greet { position: relative; max-width: 270px; background: #fff; border-radius: 16px 16px 4px 16px; padding: 12px 34px 12px 14px; box-shadow: 0 8px 24px rgba(0, 40, 102, .18); font-size: 14px; color: var(--srk-navy); }
.greet p { margin: 0; }
.greet-x { position: absolute; top: 6px; inset-inline-end: 6px; border: 0; background: transparent; color: #64748B; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; }
.greet-x .ic { width: 14px; height: 14px; }

.panel { width: 384px; height: min(600px, calc(100dvh - var(--bar-h) - 110px)); display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 50px rgba(0, 40, 102, .28); border: 1px solid var(--srk-line); }
.panel[dir="rtl"] .panel-head, .panel[dir="rtl"] .compose { direction: rtl; }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; background: var(--srk-navy); color: #fff; }
.avatar { border-radius: 50%; background: #fff; flex: none; }
.panel-head .avatar { width: 40px; height: 40px; }
.panel-title { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.panel-title strong { font-size: 15px; }
.panel-title span { font-size: 12px; color: #C9D6EE; }
.lang { display: flex; flex: none; margin-inline-start: auto; background: #fff; border: 1px solid var(--srk-line); border-radius: 999px; padding: 2px; }
.lang button { border: 0; background: transparent; color: var(--srk-navy); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; min-height: 28px; }
.lang button[aria-pressed="true"] { background: var(--srk-navy); color: #fff; }
.icon-btn { width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: #fff; display: grid; place-items: center; flex: none; }
.icon-btn:hover { background: rgba(255,255,255,.14); }
.panel-info { font-size: 12px; padding: 6px 10px 6px 14px; background: var(--srk-teal); color: #0B3B3B; display: flex; gap: 8px; align-items: center; }
.panel-info.night { background: var(--night-bg); color: var(--night); }
.info-text { display: flex; gap: 6px; align-items: center; min-width: 0; }
.panel-info .ic { width: 15px; height: 15px; }
.msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #F7FAFC; }
.msg { display: flex; gap: 8px; align-items: flex-end; max-width: 92%; }
.msg .avatar { width: 26px; height: 26px; }
.bubble { padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.ai .bubble { background: #fff; border: 1px solid var(--srk-line); border-end-start-radius: 4px; color: #0F1F3A; }
.msg.customer { align-self: flex-end; }
.msg.customer .bubble { background: var(--srk-navy); color: #fff; border-end-end-radius: 4px; }
.msg.team .bubble { background: #E7F6EC; border: 1px solid #BFE5CB; border-end-start-radius: 4px; color: #0E3B20; }
.who { display: block; font-size: 11px; font-weight: 800; margin-bottom: 2px; color: var(--srk-green-dark); }
.note { align-self: center; text-align: center; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--st-team); color: var(--st-team-fg); max-width: 95%; }
.note.ok { background: var(--st-confirmed); color: var(--st-confirmed-fg); }
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #94A3B8; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.picker { margin-top: 8px; display: grid; gap: 8px; }
.picker-title { font-size: 12px; font-weight: 800; color: var(--srk-navy); display: flex; gap: 6px; align-items: center; }
.picker-title .ic { width: 15px; height: 15px; }
.mode { display: flex; gap: 6px; }
.mode button, .slot { border: 1px solid var(--srk-line); background: #fff; border-radius: 10px; font-size: 13px; padding: 6px 10px; min-height: 36px; font-weight: 600; color: var(--srk-navy); }
.mode button[aria-pressed="true"] { background: var(--srk-navy); color: #fff; border-color: var(--srk-navy); }
.slots-day { font-size: 12px; color: #475569; font-weight: 700; }
.slots { display: flex; flex-wrap: wrap; gap: 6px; }
.slot:hover { border-color: var(--srk-green); color: var(--srk-green-dark); }
.picked { font-size: 13px; font-weight: 700; color: var(--st-confirmed-fg); display: flex; gap: 6px; align-items: center; }
.picked .ic { width: 15px; height: 15px; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px 2px; background: #fff; scrollbar-width: thin; }
.chips button { flex: none; border: 1px solid var(--srk-green); color: var(--srk-green-dark); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; min-height: 34px; }
.chips button:hover { background: #F0F9F3; }
.compose { display: flex; gap: 8px; padding: 10px 12px; background: #fff; }
.compose input { flex: 1; border: 1px solid var(--srk-line); border-radius: 999px; padding: 10px 14px; min-height: 44px; min-width: 0; }
.compose input:focus { outline: 2px solid var(--srk-navy); outline-offset: 0; }
.send { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--srk-green); color: #fff; display: grid; place-items: center; flex: none; }
.panel[dir="rtl"] .send .ic, [dir="rtl"] .wa-send .ic { transform: scaleX(-1); }
.panel-foot { margin: 0; text-align: center; font-size: 11px; color: #64748B; padding: 0 12px 10px; background: #fff; }

/* 2. WhatsApp */
.wa-stage { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; padding: 16px 28px; align-items: start; }
.phone-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; min-height: 0; }
.phone-cap { margin: 0; font-size: 13px; font-weight: 700; color: var(--gl-muted); }
.phone { width: min(390px, 100%); flex: 1; max-height: 800px; min-height: 0; display: flex; flex-direction: column; border-radius: 40px; border: 10px solid #1B1F1D; background: var(--wa-bg); overflow: hidden; box-shadow: 0 18px 40px rgba(23, 43, 36, .22); color: var(--wa-ink); }
.wa-status { display: flex; justify-content: space-between; align-items: center; padding: 8px 22px 4px; background: var(--wa-head); color: #fff; font-size: 13px; font-weight: 700; }
.wa-sig { width: 46px; height: 10px; border-radius: 3px; background: linear-gradient(90deg, #fff 0 70%, rgba(255,255,255,.4) 70%); }
.wa-head { display: flex; align-items: center; gap: 10px; padding: 8px 12px 10px; background: var(--wa-head); color: #fff; }
.wa-back { width: 22px; height: 22px; }
.wa-head .avatar { width: 36px; height: 36px; }
.wa-name { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.wa-name strong { font-size: 15px; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.wa-name span { font-size: 12px; color: #CFE9E4; }
.verified { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #25D366; }
.verified .ic { width: 11px; height: 11px; stroke-width: 3.5; color: #fff; }
.wa-msgs { flex: 1; overflow-y: auto; padding: 12px 12px 8px; display: flex; flex-direction: column; gap: 6px;
  background-color: var(--wa-bg); background-image: radial-gradient(rgba(0,0,0,.035) 1px, transparent 1px); background-size: 18px 18px; }
.wa-day { align-self: center; background: #fff; color: var(--wa-muted); font-size: 12px; padding: 4px 10px; border-radius: 8px; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.wa-hint { align-self: center; text-align: center; background: #FFF6D8; color: #5C4A00; font-size: 12.5px; padding: 8px 12px; border-radius: 8px; max-width: 90%; }
.wa-msg { max-width: 82%; padding: 6px 9px 4px; border-radius: 9px; font-size: 14.5px; line-height: 1.4; box-shadow: 0 1px 1px rgba(0,0,0,.08); white-space: pre-wrap; overflow-wrap: anywhere; position: relative; }
.wa-msg.out { align-self: flex-end; background: var(--wa-out); border-start-end-radius: 2px; }
.wa-msg.in { align-self: flex-start; background: var(--wa-in); border-start-start-radius: 2px; }
.wa-msg .who { color: #1F7A6C; }
.wa-msg.team .who { color: #A05A00; }
.wa-meta { display: block; text-align: end; font-size: 11px; color: var(--wa-muted); margin-top: 1px; }
.wa-meta .ic { width: 14px; height: 14px; color: #53BDEB; vertical-align: -3px; stroke-width: 2.5; }
.wa-msg .picker { margin-top: 6px; }
.wa-msg .slot, .wa-msg .mode button { color: #027EB5; border-color: #E2E8EC; }
.wa-msg .mode button[aria-pressed="true"] { background: #027EB5; color: #fff; border-color: #027EB5; }
.wa-note { align-self: center; text-align: center; background: #FFF6D8; color: #5C4A00; font-size: 12px; padding: 5px 10px; border-radius: 8px; max-width: 92%; }
.wa-note.ok { background: #E1F5E7; color: #11612E; }
.wa-typing { align-self: flex-start; background: #fff; border-radius: 9px; padding: 2px 6px; }
.wa-compose { display: flex; gap: 8px; padding: 8px 10px 12px; background: transparent; }
.wa-compose input { flex: 1; border: 0; border-radius: 999px; padding: 11px 16px; min-height: 44px; min-width: 0; background: #fff; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.wa-send { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--wa-send); color: #fff; display: grid; place-items: center; flex: none; }

/* 3. Team inbox */
.inbox { height: 100%; display: flex; flex-direction: column; gap: 14px; padding: 16px 20px; }
.inbox-head { display: flex; gap: 24px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.inbox-head > div:first-child { max-width: 560px; display: grid; gap: 6px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(118px, 1fr)); gap: 10px; }
.stat { background: var(--gl-card); border: 1px solid var(--gl-line); border-radius: 12px; padding: 10px 14px; }
.stat b { display: block; font-family: var(--font-head); font-size: 26px; line-height: 1.1; }
.stat span { font-size: 12px; color: var(--gl-muted); font-weight: 600; }
.stat.hl { background: var(--gl-green); color: #fff; border-color: var(--gl-green); }
.stat.hl span { color: #CFE0D6; }
.inbox-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 16px; }
.list-col { display: flex; flex-direction: column; min-height: 0; gap: 10px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { border: 1px solid var(--gl-line); background: var(--gl-card); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; min-height: 36px; }
.filters button[aria-pressed="true"] { background: var(--gl-green); color: #fff; border-color: var(--gl-green); }
.list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; display: grid; gap: 8px; align-content: start; }
.item { width: 100%; text-align: start; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--gl-line); background: var(--gl-card); }
.item:hover { border-color: #9DB3A6; }
.item[aria-current="true"] { border-color: var(--gl-green); box-shadow: 0 0 0 2px var(--gl-green) inset; }
.ch { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; }
.ch.website { background: #E3EDFB; color: var(--srk-navy); }
.ch.whatsapp { background: #DCF5E7; color: #0F7A4A; }
.ch.email { background: #F1E9FB; color: #5B2E9C; }
.ch.call { background: #FDEFD9; color: #8A4B04; }
.item-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.item-top strong { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-top time { font-size: 12px; color: var(--gl-muted); white-space: nowrap; }
.item-sum { margin: 3px 0 6px; font-size: 13px; color: #33433B; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: #F0F2F0; color: #3C4A43; display: inline-flex; align-items: center; gap: 4px; }
.tag .ic { width: 12px; height: 12px; }
.tag.night { background: var(--night-bg); color: var(--night); }
.tag.urgent { background: var(--danger-bg); color: var(--danger); }
.tag.live { background: var(--gl-lime); color: var(--gl-green); }
.tag.sample { background: transparent; border: 1px solid #C9D0CB; color: #66746D; }
.st { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.st.ai { background: var(--st-ai); color: var(--st-ai-fg); } .st.booked { background: var(--st-booked); color: var(--st-booked-fg); }
.st.confirmed { background: var(--st-confirmed); color: var(--st-confirmed-fg); } .st.team { background: var(--st-team); color: var(--st-team-fg); }
.st.active { background: var(--st-active); color: var(--st-active-fg); } .st.done { background: var(--st-done); color: var(--st-done-fg); }
.sample-note { margin: 0; font-size: 12px; color: var(--gl-muted); }
.empty { color: var(--gl-muted); font-size: 14px; padding: 16px; }

.detail { min-height: 0; overflow-y: auto; background: var(--gl-card); border: 1px solid var(--gl-line); border-radius: var(--r); padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.d-head { display: flex; gap: 12px; align-items: center; }
.d-head .ch { width: 46px; height: 46px; }
.d-who { flex: 1; min-width: 0; }
.d-who h2 { margin: 0; font-family: var(--font-head); font-size: 22px; font-weight: 600; }
.d-who p { margin: 0; font-size: 13px; color: var(--gl-muted); }
.detail .d-back { display: none; align-self: flex-start; }
.summary { background: #F4FBE6; border: 1px solid #D9EFB0; border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; }
.summary-label { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #3C6B10; display: flex; gap: 6px; align-items: center; }
.summary-label .ic { width: 14px; height: 14px; }
.summary p { margin: 0; font-size: 14.5px; }
.booking { display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: 14px; color: var(--st-booked-fg); }
.transcript { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: #F7F9F7; }
.transcript .msg { max-width: 85%; }
.transcript .bubble { font-size: 13.5px; }
.transcript time { font-size: 10.5px; color: var(--gl-muted); display: block; margin-top: 2px; }
.transcript .msg.customer time { text-align: end; }
.email-body { white-space: pre-wrap; font-size: 14px; background: #fff; border: 1px solid var(--gl-line); border-radius: 10px; padding: 12px 14px; margin: 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 9px 16px; font-weight: 700; font-size: 14px; min-height: 44px; border: 1px solid var(--gl-green); background: var(--gl-green); color: #fff; }
.btn.alt { background: #fff; color: var(--gl-green); }
.btn:disabled { opacity: .45; cursor: default; }
.reply-box { display: grid; gap: 8px; }
.reply-box textarea { width: 100%; min-height: 72px; border: 1px solid var(--gl-line); border-radius: 12px; padding: 10px 12px; resize: vertical; }
.reply-box label { font-size: 13px; font-weight: 700; }

.toast { position: fixed; z-index: 40; inset-inline-end: 20px; bottom: 20px; display: flex; gap: 12px; align-items: center; background: var(--gl-green); color: #fff; border-radius: 14px; padding: 12px 14px 12px 16px; box-shadow: 0 12px 30px rgba(0,0,0,.25); max-width: min(420px, calc(100vw - 32px)); font-size: 14px; }
.toast .ic { color: var(--gl-lime); }
.toast button { border: 0; background: var(--gl-lime); color: var(--gl-green); font-weight: 800; border-radius: 999px; padding: 6px 12px; min-height: 36px; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) { .typing i { animation: none; opacity: .6; } * { scroll-behavior: auto !important; } }

/* Smaller laptops and tablets */
@media (max-width: 1180px) {
  .bar-for { display: none; }
  .web-stage { grid-template-columns: minmax(0, 1fr) 270px; }
  .wa-stage { grid-template-columns: minmax(0, 1fr) 300px; padding: 16px 20px; }
  .inbox-body { grid-template-columns: 340px minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(4, minmax(96px, 1fr)); }
}
@media (max-width: 900px) {
  :root { --bar-h: 112px; }
  .bar { flex-wrap: wrap; height: auto; min-height: var(--bar-h); padding: 10px 14px; row-gap: 8px; }
  .tabs { order: 3; width: 100%; margin: 0; overflow-x: auto; }
  .tabs button { flex: 1; justify-content: center; padding: 8px 10px; }
  .bar-tools { margin-inline-start: auto; }
  main { height: auto; }
  .view { height: auto; }
  .web-stage, .wa-stage { grid-template-columns: 1fr; padding: 12px; }
  .browser { height: calc(100dvh - var(--bar-h) - 24px); }
  .phone-wrap { height: auto; }
  .phone { height: min(720px, calc(100dvh - var(--bar-h) - 60px)); flex: none; }
  .inbox { height: auto; padding: 12px; }
  .inbox-body { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); width: 100%; }
  .list { max-height: none; }
  .detail { max-height: none; }
  body.show-detail .list-col { display: none; }
  body:not(.show-detail) .detail { display: none; }
  .detail .d-back { display: inline-flex; }
}
@media (max-width: 520px) {
  .tabs button .ic, .tab-n { display: none; }
  .clock span, .reset span { display: none; }
  .clock, .reset { padding: 7px 10px; }
  .widget { inset-inline-end: 10px; bottom: 10px; }
  .panel { width: calc(100vw - 44px); height: calc(100dvh - var(--bar-h) - 120px); }
  .greet { max-width: 220px; }
  h1 { font-size: 22px; }
}
