/* ============================================================
   PANEL KAS MW GROUP — Dark Glassmorphism Theme
   Palette: slate/zinc dark, emerald (uang masuk), rose (uang keluar),
            cyan (float coin), amber (warning/mistake)
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }
* { scrollbar-width: thin; scrollbar-color: #334155 #0F172A; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0F172A; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

html { color-scheme: dark; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(1100px 560px at 15% -10%, rgba(6,182,212,.09), transparent 60%),
    radial-gradient(900px 480px at 95% 0%, rgba(16,185,129,.07), transparent 60%),
    #0F172A;
  color: #E2E8F0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ---------- NAVBAR (top bar) ---------- */
nav.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(15, 23, 42, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(51, 65, 85, .6);
  color: #E2E8F0;
  padding: 10px 18px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 50;
}
nav.topbar .brand {
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: 16px;
  white-space: nowrap;
}
nav.topbar .brand .accent { color: #06B6D4; }
nav.topbar .links { display: flex; gap: 4px; flex-wrap: wrap; }
nav.topbar .links a {
  color: #94A3B8;
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all .15s ease;
  white-space: nowrap;
}
nav.topbar .links a:hover { background: rgba(30, 41, 59, .7); color: #E2E8F0; border-color: #334155; }
nav.topbar .links a.active {
  background: rgba(6, 182, 212, .12);
  border-color: rgba(6, 182, 212, .45);
  color: #22D3EE;
}
nav.topbar .user { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; }
nav.topbar .user .uname { font-weight: 600; color: #CBD5E1; }

.badge { padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .03em; }
.badge.owner { background: rgba(245, 158, 11, .15); color: #FBBF24; border: 1px solid rgba(245, 158, 11, .4); }
.badge.admin { background: rgba(59, 130, 246, .15); color: #60A5FA; border: 1px solid rgba(59, 130, 246, .4); }
.badge.agent { background: rgba(16, 185, 129, .15); color: #34D399; border: 1px solid rgba(16, 185, 129, .4); }
.badge.mkt { background: rgba(217, 70, 239, .15); color: #E879F9; border: 1px solid rgba(217, 70, 239, .4); }

/* ---------- MOBILE BOTTOM NAV (single source, tidak menumpuk) ---------- */
.bottom-nav {
  display: none;
}
@media (max-width: 767px) {
  .bottom-nav {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    z-index: 60;
    background: rgba(15, 23, 42, .88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(51, 65, 85, .7);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .bottom-nav .grid {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
    justify-content: flex-start;
  }
  .bottom-nav .grid::-webkit-scrollbar { display: none; }
  .bottom-nav a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    flex: 0 0 auto;
    min-width: 72px;
    padding: 9px 8px 8px;
    text-decoration: none;
    color: #64748B;
    font-size: 10px; font-weight: 700;
    transition: color .15s;
  }
  .bottom-nav a svg { width: 20px; height: 20px; }
  .bottom-nav a.active { color: #06B6D4; }
  .bottom-nav a.active .dot { opacity: 1; }
  .bottom-nav .dot { width: 4px; height: 4px; border-radius: 999px; background: #06B6D4; opacity: 0; }
  /* Petunjuk visual: item yang belum terlihat bisa digeser */
  .bottom-nav::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 30px;
    background: linear-gradient(to left, rgba(15, 23, 42, .95), transparent);
    pointer-events: none;
    border-top-right-radius: 0;
  }
  body { padding-bottom: 80px; }
  /* Nav desktop: cukup brand + user; link navbar disediakan bottom nav */
  nav.topbar .links { display: none; }
  nav.topbar { gap: 8px; }
  nav.topbar .user { gap: 6px; }
  /* Form jadi satu kolom penuh di HP agar input nyaman */
  .form-row { grid-template-columns: 1fr; }
  .page-head { gap: 8px; }
  .page-head h1 { font-size: 18px; }
  .card { padding: 14px; }
  .close-bar .actions { margin-left: 0; width: 100%; }
  .close-bar .actions form { flex: 1; }
  .close-bar .actions .btn { width: 100%; }
  /* KPI 2 kolom di HP */
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  /* Kartu rekening: geser ke samping (swipe) */
  .grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; gap: 12px; padding-bottom: 6px; flex-wrap: nowrap; }
  .grid > .card { flex: 0 0 76%; scroll-snap-align: start; min-width: 0; }
  /* Form bar jadi bertumpuk penuh */
  .bar { flex-direction: column; align-items: stretch; }
  .bar .field, .bar form.inline-form { width: 100%; }
  /* Tabel lebar jadi scrollable di dalam kartu, tidak mendorong halaman */
  .table-wrap table { min-width: 560px; }
  h1 { font-size: 19px; }
  .login-wrap { margin: 4vh auto; }
}

/* ---------- MAIN / TYPO ---------- */
main { max-width: 1150px; margin: 22px auto; padding: 0 14px; }
h1 { font-size: 22px; margin-bottom: 14px; color: #F8FAFC; letter-spacing: -.01em; }
h2 { font-size: 16px; margin: 20px 0 12px; color: #E2E8F0; }
h3 { font-size: 14px; margin: 12px 0 8px; color: #CBD5E1; }

.page-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.page-head h1 { margin: 0; }
.page-head .spacer { margin-left: auto; }
.page-sub { font-size: 12px; color: #64748B; margin-top: -10px; margin-bottom: 14px; }

/* ---------- FLASH ---------- */
.flash { padding: 11px 15px; border-radius: 12px; margin-bottom: 14px; font-size: 14px; border: 1px solid; }
.flash.ok { background: rgba(16, 185, 129, .12); color: #6EE7B7; border-color: rgba(16, 185, 129, .4); }
.flash.error { background: rgba(244, 63, 94, .12); color: #FDA4AF; border-color: rgba(244, 63, 94, .4); }

/* ---------- GRID & CARDS ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }

.card {
  background: #1E293B;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.card-hover { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card-hover:hover {
  transform: translateY(-3px);
  border-color: #475569;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.55);
}
.card .lbl { font-size: 11px; color: #94A3B8; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.card .val { font-size: 20px; font-weight: 800; margin-top: 5px; color: #F1F5F9; font-variant-numeric: tabular-nums; }
.card .sub { font-size: 12px; color: #64748B; margin-top: 4px; }
.card .val.usd { color: #38BDF8; }

/* Accent value colors */
.v-in  { color: #34D399 !important; }
.v-out { color: #FB7185 !important; }
.v-float { color: #22D3EE !important; }
.v-warn { color: #FBBF24 !important; }
.v-owner { color: #A3E635 !important; }

/* KPI card chips */
.kpi-chip {
  font-size: 10px; font-weight: 800;
  padding: 2px 8px; border-radius: 999px;
  white-space: nowrap;
}
.kpi-chip.emerald { background: rgba(16,185,129,.15); color: #34D399; }
.kpi-chip.rose { background: rgba(244,63,94,.15); color: #FB7185; }
.kpi-chip.cyan { background: rgba(6,182,212,.15); color: #22D3EE; }
.kpi-chip.amber { background: rgba(245,158,11,.15); color: #FBBF24; }
.kpi-chip.slate { background: rgba(100,116,139,.15); color: #94A3B8; }

.pos { color: #34D399; }
.neg { color: #FB7185; }
.muted { color: #64748B; font-size: 12px; }

/* ---------- TABLES ---------- */
table { width: 100%; border-collapse: collapse; background: #1E293B; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.25); border: 1px solid #334155; }
th, td { padding: 9px 11px; text-align: left; font-size: 13px; border-bottom: 1px solid rgba(51, 65, 85, .55); }
th { background: #16213A; font-size: 10px; text-transform: uppercase; color: #64748B; letter-spacing: .06em; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #243450; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Bungkus tabel agar bisa scroll horizontal di layar kecil (tidak merusak layout) */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 14px; width: 100%; max-width: 100%; }
.table-wrap table { min-width: 100%; }

/* ---------- PILLS ---------- */
.kind-pill { padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; display: inline-block; border: 1px solid transparent; }
.kind-pill.IN, .kind-pill.COIN_IN { background: rgba(16,185,129,.12); color: #34D399; border-color: rgba(16,185,129,.35); }
.kind-pill.OUT, .kind-pill.COIN_OUT { background: rgba(244,63,94,.12); color: #FB7185; border-color: rgba(244,63,94,.35); }
.kind-pill.TRANSFER { background: rgba(6,182,212,.12); color: #22D3EE; border-color: rgba(6,182,212,.35); }
.kind-pill.FEE { background: rgba(245,158,11,.12); color: #FBBF24; border-color: rgba(245,158,11,.35); }

.status { padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; display: inline-block; border: 1px solid transparent; }
.status.CLOSED { background: rgba(16,185,129,.12); color: #34D399; border-color: rgba(16,185,129,.35); }
.status.BALANCE { background: rgba(245,158,11,.12); color: #FBBF24; border-color: rgba(245,158,11,.35); }
.status.DRAFT { background: rgba(100,116,139,.15); color: #94A3B8; border-color: rgba(100,116,139,.35); }
.status.OPEN { background: rgba(245,158,11,.12); color: #FBBF24; border-color: rgba(245,158,11,.35); }
.status.PAID { background: rgba(16,185,129,.12); color: #34D399; border-color: rgba(16,185,129,.35); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  background: #2563EB;
  color: #fff;
  border: none;
  padding: 9px 15px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all .15s ease;
}
.btn:hover { background: #1D4ED8; box-shadow: 0 4px 14px -4px rgba(37,99,235,.5); }
.btn.small { padding: 5px 11px; font-size: 12px; border-radius: 8px; }
.btn.ghost { background: transparent; color: #38BDF8; border: 1px solid rgba(56,189,248,.5); }
.btn.ghost:hover { background: rgba(6,182,212,.1); }
.btn.danger { background: #E11D48; }
.btn.danger:hover { background: #BE123C; box-shadow: 0 4px 14px -4px rgba(244,63,94,.5); }
.btn.green { background: #10B981; }
.btn.green:hover { background: #059669; box-shadow: 0 0 22px -4px rgba(16,185,129,.7); }
.btn.disabled { background: rgba(71,85,105,.5); color: #94A3B8; cursor: not-allowed; box-shadow: none; }
.btn.disabled:hover { background: rgba(71,85,105,.5); box-shadow: none; }

/* ---------- FORMS ---------- */
form.card { display: grid; gap: 12px; }
label { font-size: 11px; font-weight: 700; color: #94A3B8; text-transform: uppercase; letter-spacing: .04em; }
input, select, textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #334155;
  border-radius: 10px;
  font-size: 14px;
  background: #0F172A;
  color: #E2E8F0;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  border-color: #06B6D4;
  box-shadow: 0 0 0 3px rgba(6,182,212,.15);
}
input[type=number] { font-variant-numeric: tabular-nums; }
input::placeholder, textarea::placeholder { color: #475569; }
input:disabled, select:disabled, textarea:disabled { opacity: .55; cursor: not-allowed; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.check { display: flex; align-items: center; gap: 8px; }
.check input { width: auto; }

/* ---------- ALERTS ---------- */
.alert { padding: 13px 16px; border-radius: 12px; margin-bottom: 14px; font-size: 14px; border: 1px solid; }
.alert.ok { background: rgba(16,185,129,.12); border-color: rgba(16,185,129,.4); color: #6EE7B7; }
.alert.warn { background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.45); color: #FCD34D; }
.alert.err { background: rgba(244,63,94,.12); border-color: rgba(244,63,94,.45); color: #FDA4AF; }
.alert .big { font-size: 24px; font-weight: 800; display: block; margin-top: 4px; color: #F1F5F9; }

/* ---------- DIFF ---------- */
.diff-ok { color: #34D399; font-weight: 700; }
.diff-bad { color: #FB7185; font-weight: 700; }

/* ---------- BAR / FIELD ---------- */
.bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; margin-bottom: 12px; }
.bar .field { display: grid; gap: 4px; }
.field { display: grid; gap: 4px; }
.field .hint { font-size: 11px; color: #64748B; font-weight: 500; text-transform: none; letter-spacing: 0; }

/* ---------- UTILITIES ---------- */
.mt { margin-top: 12px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }
.inline-form { display: inline; }
.big-num { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- LOGIN ---------- */
.login-wrap { max-width: 400px; margin: 8vh auto; }
.login-wrap .card {
  padding: 30px;
  border-radius: 20px;
  background: rgba(30,41,59,.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(51,65,85,.8);
  box-shadow: 0 25px 60px -15px rgba(0,0,0,.6);
}
.login-wrap h1 { font-size: 20px; text-align: center; margin-bottom: 20px; }
.login-wrap form { display: grid; gap: 12px; }

/* ---------- SECTION NUMBER BADGE (recap) ---------- */
.section-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.section-num {
  width: 28px; height: 28px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900; flex-shrink: 0;
}
.section-num.cyan { background: rgba(6,182,212,.15); color: #22D3EE; border: 1px solid rgba(6,182,212,.35); }
.section-num.rose { background: rgba(244,63,94,.15); color: #FB7185; border: 1px solid rgba(244,63,94,.35); }
.section-num.emerald { background: rgba(16,185,129,.15); color: #34D399; border: 1px solid rgba(16,185,129,.35); }
.section-num.amber { background: rgba(245,158,11,.15); color: #FBBF24; border: 1px solid rgba(245,158,11,.35); }
.section-num.slate { background: rgba(100,116,139,.15); color: #94A3B8; border: 1px solid rgba(100,116,139,.35); }

/* ---------- LIVE FEE PANEL (recap) ---------- */
.live-fee {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  background: rgba(15,23,42,.7); border: 1px solid #334155;
  border-radius: 12px; padding: 10px 14px; font-size: 12px; margin-top: 10px;
}
.live-fee .tag { color: #94A3B8; }
.live-fee b.num { font-variant-numeric: tabular-nums; }
.live-fee .live { margin-left: auto; color: #22D3EE; font-weight: 800; font-size: 10px; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- CLOSING BAR ---------- */
.close-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  background: rgba(30,41,59,.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid #475569;
  border-radius: 16px;
  padding: 14px 18px;
  margin-top: 16px;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.5);
}
.close-bar .info { font-size: 13px; color: #94A3B8; }
.close-bar .info b { color: #F1F5F9; }
.close-bar .actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.glow-green { box-shadow: 0 0 0 1px #10B981, 0 0 26px -6px rgba(16,185,129,.75); }

/* ---------- SMALL HELPERS ---------- */
.emp-pill { padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; border: 1px solid #334155; color: #94A3B8; background: transparent; }
.row-green { background: rgba(16,185,129,.07); }
.row-red { background: rgba(244,63,94,.07); }

/* ============================================================
   CHATBOT PRIA SOLO
   ============================================================ */
.chatbot-root { position: fixed; right: 18px; bottom: 18px; z-index: 90; font-family: 'Segoe UI', system-ui, sans-serif; }
.chatbot-fab {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #0e7490, #06b6d4);
  color: #fff; border: none; border-radius: 999px;
  padding: 12px 18px; cursor: pointer;
  box-shadow: 0 10px 30px -6px rgba(6,182,212,.55);
  transition: transform .15s ease, box-shadow .15s ease;
}
.chatbot-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -6px rgba(6,182,212,.7); }
.chatbot-fab-tag { font-weight: 800; font-size: 13px; }

.chatbot-panel {
  display: none; flex-direction: column;
  width: min(380px, calc(100vw - 24px));
  height: min(520px, calc(100vh - 140px));
  background: rgba(15,23,42,.96);
  border: 1px solid #334155; border-radius: 18px;
  box-shadow: 0 24px 70px -12px rgba(0,0,0,.7);
  overflow: hidden;
}
.chatbot-root.open .chatbot-panel { display: flex; }
.chatbot-root.open .chatbot-fab { display: none; }

.chatbot-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; background: rgba(30,41,59,.8);
  border-bottom: 1px solid #334155;
}
.chatbot-ava {
  width: 38px; height: 38px; border-radius: 999px;
  background: linear-gradient(135deg,#0e7490,#06b6d4);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.chatbot-meta { flex: 1; }
.chatbot-name { font-weight: 800; color: #F8FAFC; font-size: 14px; }
.chatbot-status { font-size: 11px; color: #94A3B8; display: flex; align-items: center; gap: 5px; }
.chatbot-dot { width: 7px; height: 7px; border-radius: 999px; background: #34D399; animation: pulse 1.6s infinite; }
.chatbot-x { background: none; border: none; color: #94A3B8; font-size: 22px; cursor: pointer; line-height: 1; }
.chatbot-x:hover { color: #fff; }

.chatbot-body { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.chatbot-body::-webkit-scrollbar { width: 6px; }
.chatbot-body::-webkit-scrollbar-thumb { background: #334155; border-radius: 6px; }

.chatbot-msg {
  max-width: 88%; padding: 9px 12px; border-radius: 14px;
  font-size: 13px; line-height: 1.5; white-space: normal; word-wrap: break-word;
}
.chatbot-msg p { margin: 0 0 6px; }
.chatbot-msg p:last-child { margin-bottom: 0; }
.chatbot-msg ul, .chatbot-msg ol { margin: 2px 0 6px; padding-left: 18px; }
.chatbot-msg li { margin: 1px 0; }
.chatbot-msg code { background: rgba(15,23,42,.7); border: 1px solid #334155; border-radius: 4px; padding: 0 4px; font-size: 12px; }
.chatbot-msg pre { background: #0F172A; border: 1px solid #334155; border-radius: 8px; padding: 8px; overflow-x: auto; font-size: 12px; margin: 4px 0 8px; }
.chatbot-msg .md-table { width: 100%; border-collapse: collapse; margin: 4px 0 8px; font-size: 12px; }
.chatbot-msg .md-table th, .chatbot-msg .md-table td { border: 1px solid #334155; padding: 4px 7px; text-align: left; }
.chatbot-msg .md-table th { background: #243450; color: #CBD5E1; }
.chatbot-msg .md-table td { color: #E2E8F0; }
.chatbot-msg.bot { background: #1E293B; border: 1px solid #334155; color: #E2E8F0; align-self: flex-start; border-bottom-left-radius: 4px; }
.chatbot-msg.user { background: #0E7490; color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chatbot-msg.error { background: rgba(244,63,94,.15); border-color: rgba(244,63,94,.4); color: #FDA4AF; }

.chatbot-typing { padding: 0 14px 6px; font-size: 12px; color: #64748B; font-style: italic; }
.chatbot-foot { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid #334155; }
.chatbot-foot input {
  flex: 1; background: #0F172A; border: 1px solid #334155; color: #E2E8F0;
  border-radius: 999px; padding: 9px 14px; font-size: 13px; outline: none;
}
.chatbot-foot input:focus { border-color: #06B6D4; }
.chatbot-foot button {
  width: 40px; height: 40px; border-radius: 999px; border: none;
  background: #06B6D4; color: #fff; font-size: 16px; cursor: pointer;
}
.chatbot-foot button:hover { background: #0E7490; }
.chatbot-note { font-size: 10px; color: #475569; text-align: center; padding: 4px 8px 8px; }

@media (max-width: 767px) {
  .chatbot-root { right: 14px; bottom: calc(80px + env(safe-area-inset-bottom)); }
  .chatbot-panel { height: min(520px, calc(100vh - 190px)); }
}
.chatbot-foot button[aria-label="Screenshot"] {
  width: 40px; height: 40px; border-radius: 999px; border: none;
  background: #1E293B; color: #E2E8F0; font-size: 16px; cursor: pointer; flex: 0 0 auto;
}
.chatbot-foot button[aria-label="Screenshot"]:hover { background: #243450; }
