/* ==========================================================================
   Arthmitra Connect — WhatsApp-inspired UI
   ========================================================================== */

:root {
  --green: #00a884;
  --green-dark: #008069;
  --green-deep: #075e54;
  --bubble-out: #005c4b;
  --bubble-in: #202c33;
  --bg: #0b141a;
  --panel: #111b21;
  --panel-2: #202c33;
  --panel-3: #2a3942;
  --text: #e9edef;
  --text-2: #8696a0;
  --line: #222d34;
  --blue: #53bdeb;
  --danger: #f15c6d;
  --shadow: 0 8px 30px rgba(0, 0, 0, .45);
  --radius: 10px;
  --side-w: 400px;
  --header-h: 60px;
  color-scheme: dark;
}

html[data-theme="light"] {
  --bubble-out: #d9fdd3;
  --bubble-in: #ffffff;
  --bg: #efeae2;
  --panel: #ffffff;
  --panel-2: #f0f2f5;
  --panel-3: #e9edef;
  --text: #111b21;
  --text-2: #667781;
  --line: #e9edef;
  --shadow: 0 8px 30px rgba(11, 20, 26, .15);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
.hidden { display: none !important; }
.muted { color: var(--text-2); }
.small { font-size: 12.5px; }
svg { width: 22px; height: 22px; fill: currentColor; }
button { font: inherit; color: inherit; }

/* ------------------------------------------------------------ splash ---- */
.splash {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-content: center; justify-items: center; gap: 18px;
  background: var(--panel);
}
.splash-mark img { border-radius: 20px; }
.splash-name { font-weight: 600; letter-spacing: .3px; }
.splash-bar { width: 180px; height: 4px; border-radius: 4px; background: var(--panel-3); overflow: hidden; }
.splash-bar span { display: block; height: 100%; width: 40%; background: var(--green); animation: slide 1.1s infinite ease-in-out; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }

/* -------------------------------------------------------------- auth ---- */
.auth {
  min-height: 100dvh; padding: 24px 16px 40px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  background: linear-gradient(180deg, var(--green-deep) 0 220px, var(--bg) 220px);
}
.auth-brand { display: flex; align-items: center; gap: 14px; color: #fff; width: min(440px, 100%); }
.auth-brand img { border-radius: 14px; }
.auth-brand h1 { font-size: 20px; margin: 0; font-weight: 600; }
.auth-brand p { margin: 2px 0 0; font-size: 13px; opacity: .85; }
.auth-card {
  width: min(440px, 100%); background: var(--panel); border-radius: 14px;
  padding: 18px; box-shadow: var(--shadow);
}
.auth-foot { color: var(--text-2); font-size: 12px; }
.tabs { display: flex; gap: 4px; background: var(--panel-2); padding: 4px; border-radius: 10px; margin-bottom: 16px; }
.tab { flex: 1; border: 0; background: transparent; padding: 9px; border-radius: 8px; cursor: pointer; color: var(--text-2); }
.tab.active { background: var(--green-dark); color: #fff; font-weight: 600; }
.pane { display: none; flex-direction: column; gap: 14px; }
.pane.active { display: flex; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); }
input, textarea, select {
  font: inherit; color: var(--text); background: var(--panel-2);
  border: 1px solid transparent; border-radius: 8px; padding: 11px 12px; width: 100%;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--green); }
.phone-input { display: flex; gap: 8px; }
.phone-input .cc { width: 74px; text-align: center; flex: none; }
.otp-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.invite-callout {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
  background: rgba(0, 168, 132, .12); border: 1px solid rgba(0, 168, 132, .35);
  border-radius: 10px; padding: 12px;
}
.invite-callout .invite-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center;
  color: #fff; font-weight: 600; background: var(--green-dark); text-transform: uppercase;
}
.invite-callout div:last-child { display: flex; flex-direction: column; min-width: 0; }
.invite-callout strong { font-size: 15px; }
.invite-callout span { font-size: 12.5px; color: var(--text-2); }

.invite-row {
  display: flex; gap: 8px; align-items: center; background: var(--panel);
  border-radius: 8px; padding: 8px 10px; margin-bottom: 8px;
}
.invite-row .invite-url {
  flex: 1; min-width: 0; font-family: ui-monospace, Consolas, monospace; font-size: 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-2);
}

.auth-error { background: rgba(241, 92, 109, .12); color: var(--danger); padding: 10px 12px; border-radius: 8px; font-size: 13px; margin: 14px 0 0; }

.btn {
  border: 0; border-radius: 8px; padding: 11px 16px; cursor: pointer;
  background: var(--panel-3); color: var(--text); font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: var(--green-dark); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--green); }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn.link { background: none; color: var(--green); padding: 4px; }
.btn.danger { background: rgba(241, 92, 109, .15); color: var(--danger); }
.btn.small { padding: 7px 12px; font-size: 13px; }
.btn.block { width: 100%; }

/* --------------------------------------------------------------- app ---- */
.app { display: grid; grid-template-columns: var(--side-w) 1fr; height: 100dvh; background: var(--bg); }
.icon-btn {
  border: 0; background: transparent; color: var(--text-2); cursor: pointer;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
}
.icon-btn:hover { background: var(--panel-3); color: var(--text); }
.icon-btn.danger { color: var(--danger); }

/* sidebar */
.sidebar { background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.side-head { height: var(--header-h); display: flex; align-items: center; gap: 10px; padding: 0 12px; background: var(--panel-2); }
.side-title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.side-title strong { font-size: 15px; }
.conn { font-size: 11.5px; color: var(--text-2); }
.conn.online { color: var(--green); }
.conn.offline { color: var(--danger); }
.side-actions { display: flex; }
.side-tabs { display: flex; gap: 6px; padding: 8px 12px 0; }
.stab { flex: 1; border: 0; background: transparent; color: var(--text-2); padding: 8px; border-radius: 8px; cursor: pointer; font-size: 13.5px; }
.stab.active { background: var(--panel-3); color: var(--text); font-weight: 600; }
.search-wrap { padding: 10px 12px; }
.search-wrap input { background: var(--panel-2); border-radius: 8px; padding: 9px 12px; font-size: 14px; }
.side-list { flex: 1; overflow-y: auto; overscroll-behavior: contain; }

.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 16px;
  background: var(--green-dark); text-transform: uppercase; letter-spacing: .5px;
}
.avatar.sm { width: 34px; height: 34px; font-size: 13px; }
.avatar.me { width: 40px; height: 40px; font-size: 14px; }

.row {
  display: flex; gap: 12px; padding: 10px 14px; cursor: pointer; align-items: center;
  border-bottom: 1px solid var(--line);
}
.row:hover { background: var(--panel-2); }
.row.active { background: var(--panel-3); }
.row-main { flex: 1; min-width: 0; }
.row-top { display: flex; align-items: baseline; gap: 8px; }
.row-top strong { flex: 1; min-width: 0; font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-time { font-size: 11.5px; color: var(--text-2); flex: none; }
.row-bottom { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13.5px; }
.row-preview { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge {
  background: var(--green); color: #04140f; border-radius: 999px; min-width: 20px; height: 20px;
  padding: 0 6px; font-size: 11.5px; font-weight: 700; display: grid; place-items: center;
}
.pill { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--panel-3); color: var(--text-2); }
.pill.green { background: rgba(0, 168, 132, .18); color: var(--green); }
.pill.blue { background: rgba(83, 189, 235, .16); color: var(--blue); }
.pill.red { background: rgba(241, 92, 109, .16); color: var(--danger); }

/* main */
.main { position: relative; min-width: 0; display: flex; flex-direction: column; }
.empty-state {
  flex: 1; display: grid; place-content: center; justify-items: center; text-align: center;
  gap: 10px; padding: 40px; color: var(--text-2); border-bottom: 6px solid var(--green-dark);
}
.empty-state img { opacity: .35; border-radius: 24px; }
.empty-state h2 { color: var(--text); font-weight: 400; margin: 8px 0 0; }
.empty-state .lock { font-size: 12.5px; margin-top: 22px; }

/* chat */
.chat { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.chat-head { height: var(--header-h); display: flex; align-items: center; gap: 12px; padding: 0 12px; background: var(--panel-2); border-left: 1px solid var(--line); }
.chat-head .back { display: none; }
.chat-title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; cursor: pointer; }
.chat-title strong { font-size: 16px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-title span { font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-actions { display: flex; }

.messages {
  flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px 6%;
  background-color: var(--bg);
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .035) 1px, transparent 0);
  background-size: 22px 22px;
  display: flex; flex-direction: column;
}
html[data-theme="light"] .messages { background-image: radial-gradient(circle at 1px 1px, rgba(11, 20, 26, .05) 1px, transparent 0); }
.load-more { text-align: center; padding: 8px; }

.day-sep { align-self: center; margin: 12px 0; }
.day-sep span { background: var(--panel-2); color: var(--text-2); font-size: 12px; padding: 5px 12px; border-radius: 8px; }
.sys-msg { align-self: center; margin: 5px 0; max-width: 80%; text-align: center; }
.sys-msg span { background: var(--panel-2); color: var(--text-2); font-size: 12.5px; padding: 6px 12px; border-radius: 8px; display: inline-block; }

.msg { max-width: min(75%, 560px); margin: 2px 0; display: flex; flex-direction: column; }
.msg.out { align-self: flex-end; }
.msg.in { align-self: flex-start; }
.bubble {
  background: var(--bubble-in); border-radius: 8px; padding: 7px 9px 5px; position: relative;
  box-shadow: 0 1px 1px rgba(11, 20, 26, .18); word-wrap: break-word; overflow-wrap: anywhere;
}
.msg.out .bubble { background: var(--bubble-out); }
html[data-theme="light"] .msg.out .bubble { color: #111b21; }
.msg.first-of-group .bubble { border-top-left-radius: 0; }
.msg.out.first-of-group .bubble { border-top-left-radius: 8px; border-top-right-radius: 0; }
.msg-sender { font-size: 12.5px; font-weight: 600; margin-bottom: 2px; }
.msg-text { white-space: pre-wrap; font-size: 14.5px; }
.msg-meta { display: flex; align-items: center; justify-content: flex-end; gap: 4px; font-size: 11px; color: var(--text-2); margin-top: 2px; }
.ticks { display: inline-flex; }
.ticks svg { width: 16px; height: 16px; }
.ticks.read { color: var(--blue); }
.msg-actions { position: absolute; top: 2px; right: 4px; opacity: 0; transition: opacity .12s; }
.msg:hover .msg-actions { opacity: 1; }
.msg-actions button { width: 26px; height: 26px; }

.reply-quote {
  border-left: 3px solid var(--green); background: rgba(0, 0, 0, .18); border-radius: 5px;
  padding: 4px 8px; margin-bottom: 4px; font-size: 13px;
}
.reply-quote strong { display: block; color: var(--green); font-size: 12.5px; }
.reply-quote span { color: var(--text-2); }

/* attachments */
.att-image img, .att-video video { display: block; max-width: 100%; border-radius: 6px; cursor: pointer; background: #000; }
.att-image img { max-height: 380px; object-fit: cover; }
.att-doc { display: flex; align-items: center; gap: 10px; background: rgba(0, 0, 0, .18); border-radius: 6px; padding: 10px; min-width: 240px; }
.att-doc .fi { width: 38px; height: 44px; border-radius: 4px; background: var(--panel-3); display: grid; place-items: center; font-size: 10px; font-weight: 700; letter-spacing: .5px; }
.att-doc .fname { flex: 1; min-width: 0; }
.att-doc .fname b { display: block; font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att-doc .fname span { font-size: 12px; color: var(--text-2); }
.att-audio { min-width: 260px; }
.att-audio audio { width: 100%; height: 38px; }
.att-caption { margin-top: 5px; font-size: 14.5px; white-space: pre-wrap; }

/* meeting card */
.meet-card { background: rgba(0, 0, 0, .2); border-radius: 8px; padding: 12px; min-width: 260px; }
.meet-card h4 { margin: 0 0 4px; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.meet-card .when { color: var(--text-2); font-size: 13px; }
.meet-card .desc { font-size: 13px; margin-top: 6px; }
.meet-card .cta { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.meet-card .cta .btn { padding: 8px 12px; font-size: 13px; }
.meet-join { background: #1a73e8 !important; color: #fff !important; text-decoration: none; }
.meet-card.cancelled { opacity: .6; }

/* typing / composer */
.typing-line { min-height: 18px; padding: 0 6%; font-size: 12.5px; color: var(--green); background: var(--bg); }
.reply-bar { display: flex; align-items: center; gap: 10px; background: var(--panel-2); padding: 8px 12px; border-left: 4px solid var(--green); }
.reply-body { flex: 1; min-width: 0; font-size: 13px; }
.reply-body strong { display: block; color: var(--green); }
.reply-body span { color: var(--text-2); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.composer { display: flex; align-items: flex-end; gap: 6px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--panel-2); position: relative; }
.input-wrap { flex: 1; background: var(--panel); border-radius: 10px; padding: 6px 12px; }
.input-wrap textarea { background: transparent; border: 0; padding: 4px 0; resize: none; max-height: 120px; font-size: 15px; }
.composer .send { background: var(--green-dark); color: #fff; }
.composer .send:hover { background: var(--green); }
.attach-menu {
  position: absolute; bottom: 62px; left: 12px; background: var(--panel-2); border-radius: 12px;
  padding: 8px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; z-index: 20;
}
.attach-menu button { border: 0; background: transparent; padding: 10px 18px 10px 12px; border-radius: 8px; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.attach-menu button:hover { background: var(--panel-3); }
.dot { width: 30px; height: 30px; border-radius: 50%; display: inline-block; }
.dot.img { background: #bf59cf; } .dot.vid { background: #d3396d; }
.dot.doc { background: #5157ae; } .dot.aud { background: #d3702c; }

.recorder { display: flex; align-items: center; gap: 12px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--panel-2); }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.recorder .send { margin-left: auto; background: var(--green-dark); color: #fff; }
.blocked-note { padding: 14px; text-align: center; color: var(--text-2); background: var(--panel-2); font-size: 13.5px; }

/* drawer */
.drawer { position: absolute; top: 0; right: 0; width: min(400px, 100%); height: 100%; background: var(--panel); border-left: 1px solid var(--line); z-index: 30; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.drawer-head { height: var(--header-h); display: flex; align-items: center; gap: 14px; padding: 0 12px; background: var(--panel-2); }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.section { background: var(--panel-2); border-radius: 10px; padding: 14px; }
.section h4 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--text-2); font-weight: 600; }
.member { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.member .m-main { flex: 1; min-width: 0; }
.member .m-main b { font-weight: 500; display: block; font-size: 14.5px; }
.field-row { display: flex; gap: 8px; }
.field-row input { flex: 1; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.kv:last-child { border-bottom: 0; }

/* calendar & admin views */
.calendar-view, .admin-view { flex: 1; overflow-y: auto; padding: 18px 20px 40px; }
.view-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.view-head h2 { margin: 0; font-size: 20px; font-weight: 500; flex: 1; }
.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.card h3 { margin: 0 0 4px; font-size: 15.5px; font-weight: 600; }
.card .meta { color: var(--text-2); font-size: 13px; }
.card .cta { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; background: var(--panel); border-radius: 12px; padding: 10px; }
.cal-grid .dow { text-align: center; font-size: 12px; color: var(--text-2); padding: 6px 0; }
.cal-day { aspect-ratio: 1; border: 0; background: transparent; border-radius: 8px; color: var(--text); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 13.5px; }
.cal-day:hover { background: var(--panel-2); }
.cal-day.other { color: var(--text-2); opacity: .45; }
.cal-day.today { outline: 1px solid var(--green); }
.cal-day.selected { background: var(--green-dark); color: #fff; }
.cal-day .dots { display: flex; gap: 2px; }
.cal-day .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); display: block; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.slot { border: 1px solid var(--line); background: var(--panel); border-radius: 8px; padding: 10px 8px; cursor: pointer; font-size: 13.5px; text-align: center; }
.slot:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.slot.selected { background: var(--green-dark); color: #fff; border-color: var(--green); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.table th { color: var(--text-2); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .4px; }

/* overlays */
.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, .93); z-index: 80; display: grid; place-items: center; }
.lb-body { max-width: 92vw; max-height: 88vh; display: grid; place-items: center; }
.lb-body img, .lb-body video { max-width: 92vw; max-height: 88vh; border-radius: 6px; }
.lb-close { position: absolute; top: 14px; right: 14px; color: #fff; }
.lb-download { position: absolute; top: 14px; right: 66px; color: #fff; text-decoration: none; }

.modal-root { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); }
.modal { position: relative; width: min(520px, 100%); max-height: 88dvh; background: var(--panel); border-radius: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.modal header { display: flex; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.modal header strong { flex: 1; font-size: 16px; font-weight: 600; }
.modal-body { padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.modal footer { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }

.toast-stack { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--panel-3); color: var(--text); padding: 11px 18px; border-radius: 10px; box-shadow: var(--shadow); font-size: 14px; max-width: 90vw; animation: rise .18s ease-out; }
.toast.err { background: var(--danger); color: #fff; }
.toast.ok { background: var(--green-dark); color: #fff; }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } }

.install-banner {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 60;
  display: flex; align-items: center; gap: 12px; background: var(--panel-2);
  padding: 10px 12px; border-radius: 12px; box-shadow: var(--shadow); width: min(460px, calc(100% - 24px));
}
.install-banner img { border-radius: 8px; }
.install-banner div { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.install-banner span { font-size: 12.5px; color: var(--text-2); }
.offline-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 65; background: #8a6d00; color: #fff; text-align: center; font-size: 13px; padding: 6px; }

.chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--panel-3); border-radius: 999px; padding: 5px 8px 5px 12px; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.chip button { border: 0; background: transparent; cursor: pointer; color: var(--text-2); }
.spinner { width: 18px; height: 18px; border: 2px solid var(--panel-3); border-top-color: var(--green); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress { height: 3px; background: var(--panel-3); border-radius: 3px; overflow: hidden; margin-top: 6px; }
.progress i { display: block; height: 100%; background: var(--green); width: 0; transition: width .15s; }

/* --------------------------------------------------------- responsive --- */
@media (max-width: 900px) {
  :root { --side-w: 100%; }
  .app { grid-template-columns: 1fr; }
  .main { position: absolute; inset: 0; z-index: 10; transform: translateX(100%); transition: transform .2s ease; background: var(--bg); }
  .app.show-main .main { transform: translateX(0); }
  .app.show-main .sidebar { display: none; }
  .chat-head .back { display: grid; }
  .empty-state { display: none; }
  .messages { padding: 12px 10px; }
  .typing-line { padding: 0 12px; }
  .msg { max-width: 86%; }
  .drawer { width: 100%; }
  .install-banner { bottom: 8px; }
}
@media (min-width: 901px) {
  .app.show-main .main { transform: none; }
}
