/* Avenstra Suite — design system. The brand colours are the four in the logo (wwwroot/img/avenstra-mark.svg):
   blue #2A54BA (brand, buttons), blue #0074BF (--blue: info, open), green #289E6B (--green: done, success)
   and orange #FE930D (--orange: the AI mark). Text on a tint uses a darker shade of the same colour. */
:root {
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e2e8f0;
  --line-2: #eef2f6;
  --bg: #f5f7fa;
  --panel: #ffffff;
  --side: #0f172a;
  --side-2: #1e293b;
  --side-ink: #c7d2e0;
  --brand: #2a54ba;
  --brand-2: #21439a;
  --brand-soft: #e9eefb;
  --green: #289e6b;
  --green-ink: #17694a;
  --green-soft: #e6f5ee;
  --orange: #fe930d;
  --wa: #25d366;
  --wa-bubble: #d9fdd3;
  --wa-bg: #efeae2;
  --blue: #0074bf;
  --blue-soft: #e3f1fb;
  --amber: #d97706;
  --amber-soft: #fff4e0;
  --red: #dc2626;
  --red-soft: #fdecec;
  --violet: #7c3aed;
  --violet-soft: #f1eafe;
  --slate-soft: #eef1f5;
  --radius: 10px;
  --radius-sm: 7px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .05);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, .14);
  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-primary: var(--brand);
  --bs-primary-rgb: 42, 84, 186;
  --bs-body-font-family: var(--font);
  --bs-body-color: var(--ink);
  --bs-border-color: var(--line);
}

html, body { height: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 14px; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }
h1, h2, h3, h4 { font-weight: 650; letter-spacing: -.01em; color: var(--ink); }
h1:focus { outline: none; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12.5px; }
.mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.row-gap { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── Buttons & forms (Bootstrap, restyled) ── */
.btn { font-weight: 550; font-size: 13.5px; border-radius: var(--radius-sm); padding: 7px 14px; display: inline-flex; align-items: center; gap: 7px; }
.btn-sm { padding: 4px 10px; font-size: 12.5px; }
.btn-primary { background: var(--brand); border-color: var(--brand); }
.btn-primary:hover, .btn-primary:focus { background: var(--brand-2); border-color: var(--brand-2); }
.btn-light { background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.btn-light:hover { background: var(--bg); border-color: #cfd8e3; }
.btn-ghost { background: transparent; border: 0; color: var(--muted); }
.btn-ghost:hover { background: var(--slate-soft); color: var(--ink); }
.btn-danger-soft { background: var(--red-soft); color: var(--red); border: 0; }
.btn-danger-soft:hover { background: #fadada; color: var(--red); }
.btn-wa { background: #1877f2; color: #fff; border: 0; }
.btn-wa:hover { background: #166fe0; color: #fff; }
.form-control, .form-select { border-radius: var(--radius-sm); border-color: var(--line); font-size: 13.5px; padding: 7px 10px; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(42, 84, 186, .16); }
.form-label { font-weight: 550; font-size: 12.5px; color: var(--ink-2); margin-bottom: 5px; }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.field { margin-bottom: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }

/* ── App shell ── */
.shell { display: grid; grid-template-columns: 232px 1fr; height: 100vh; }
.side { background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; padding: 16px 12px; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; color: #fff; font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
/* The Avenstra mark (img/avenstra-mark.svg, the same file as the website) */
.brand-mark { width: 34px; height: 34px; flex: 0 0 auto; display: block; object-fit: contain; }
/* On the green sign-in panel the mark's green side would fade, so it sits on a white tile there */
.auth-art .brand-mark, .auth-hero .brand-mark, .side .brand-mark { background: #fff; border-radius: 9px; padding: 4px; }
.brand small { display: block; font-weight: 500; font-size: 11px; color: #7f93ab; letter-spacing: .02em; white-space: nowrap; }
.nav-group { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: #5f7590; padding: 14px 10px 6px; font-weight: 650; }
.nav-item-x { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 8px; color: var(--side-ink); font-weight: 520; font-size: 13.5px; margin-bottom: 2px; }
.nav-item-x:hover { background: var(--side-2); color: #fff; }
.nav-item-x.active { background: rgba(77, 140, 255, .18); color: #fff; }
.nav-item-x.active svg { color: #7fb2ff; }
.nav-item-x .count { margin-left: auto; background: var(--orange); color: #3d2200; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; }
.nav-item-x.soon { color: #5f7590; cursor: default; }
.nav-item-x.soon:hover { background: none; color: #5f7590; }
.nav-item-x .soon-tag { margin-left: auto; font-size: 10px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: #9ec5ff; background: #1d3a5c; border-radius: 999px; padding: 1px 7px; }
.side-foot { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid #1e293b; }
.ws-pill { display: flex; align-items: center; gap: 9px; color: #fff; font-weight: 600; font-size: 13px; }
.ws-pill .sq { width: 28px; height: 28px; border-radius: 7px; background: #1d3a5c; display: grid; place-items: center; font-weight: 700; font-size: 12px; color: #9ec5ff; }
.ws-select { width: 100%; margin-top: 8px; background: var(--side-2); border: 1px solid #334155; color: var(--side-ink); border-radius: 7px; padding: 6px 8px; font-size: 12.5px; }

.main { display: flex; flex-direction: column; min-width: 0; height: 100vh; }
.topbar { height: 56px; flex: 0 0 56px; display: flex; align-items: center; gap: 14px; padding: 0 22px; background: var(--panel); border-bottom: 1px solid var(--line); }
.topbar h1 { font-size: 17px; margin: 0; }
.topbar .spacer { flex: 1; }
.user-chip { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink-2); }
.content { flex: 1; overflow-y: auto; padding: 22px; }
.content.flush { padding: 0; overflow: hidden; display: flex; }

/* ── Panels & stats ── */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-h { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.panel-h h2, .panel-h h3 { font-size: 14.5px; margin: 0; }
.panel-b { padding: 16px 18px; }
.page-head { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h2 { font-size: 20px; margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.kpi { padding: 16px 18px; }
.kpi .label { font-size: 12.5px; color: var(--muted); font-weight: 550; display: flex; align-items: center; gap: 7px; }
.kpi .value { font-size: 26px; font-weight: 700; margin-top: 6px; letter-spacing: -.02em; }
.kpi .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.kpi .ic { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; }
.dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 16px; }
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Tables ── */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fafbfc; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.click:hover td { background: #f8fafc; cursor: pointer; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ── Pills, avatars, tags ── */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.pill.no-dot::before { display: none; }
.s-open { background: var(--blue-soft); color: var(--blue); }
.s-pending { background: var(--amber-soft); color: var(--amber); }
.s-onhold { background: var(--violet-soft); color: var(--violet); }
.s-resolved { background: var(--green-soft); color: var(--green-ink); }
.s-closed { background: var(--slate-soft); color: var(--muted); }
.t-approved { background: var(--green-soft); color: var(--green-ink); }
.t-pending { background: var(--amber-soft); color: var(--amber); }
.t-rejected, .t-disabled { background: var(--red-soft); color: var(--red); }
.t-paused { background: var(--slate-soft); color: var(--muted); }
.prio { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.prio i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.p-low i { background: #94a3b8; } .p-medium i { background: #3b82f6; } .p-high i { background: #f59e0b; } .p-urgent i { background: #ef4444; }
.tag { display: inline-block; background: var(--slate-soft); color: var(--ink-2); border-radius: 5px; padding: 1px 7px; font-size: 11.5px; font-weight: 550; margin: 1px 3px 1px 0; }
.av { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 650; font-size: 12px; color: #fff; flex: 0 0 auto; }
.av.sm { width: 24px; height: 24px; font-size: 10px; }
.av.lg { width: 52px; height: 52px; font-size: 18px; }
.badge-n { background: var(--wa); color: #04261d; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 1px 7px; min-width: 20px; text-align: center; }
.demo-badge { background: var(--amber-soft); color: var(--amber); font-size: 11px; font-weight: 700; border-radius: 5px; padding: 2px 7px; letter-spacing: .02em; }

/* ── Alerts & empty states ── */
.note { border-radius: var(--radius-sm); padding: 10px 14px; font-size: 13px; display: flex; gap: 10px; align-items: flex-start; }
.note.info { background: var(--blue-soft); color: #1e40af; }
.note.warn { background: var(--amber-soft); color: #92400e; }
.note.err { background: var(--red-soft); color: #991b1b; }
.note.ok { background: var(--green-soft); color: var(--green-ink); }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty h3 { font-size: 15px; color: var(--ink); margin: 12px 0 4px; }
.empty .ic { width: 48px; height: 48px; border-radius: 12px; background: var(--slate-soft); display: inline-grid; place-items: center; color: var(--muted); }

/* ── Tabs ── */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs a { padding: 9px 14px; color: var(--muted); font-weight: 550; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--brand); border-color: var(--brand); }

/* ── Drawer ── */
.drawer-back { position: fixed; inset: 0; background: rgba(15, 23, 42, .35); z-index: 50; animation: fade .15s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); background: #fff; z-index: 51; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slide .18s ease-out; }
.drawer.wide { width: min(860px, 100vw); }
.drawer-h { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.drawer-h h3 { margin: 0; font-size: 16px; }
.drawer-b { padding: 20px; overflow-y: auto; flex: 1; }
.drawer-f { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; }
@keyframes slide { from { transform: translateX(24px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ── Inbox ── */
.inbox { display: grid; grid-template-columns: 340px 1fr 300px; flex: 1; min-height: 0; }
.inbox.no-detail { grid-template-columns: 340px 1fr; }
.tlist { border-right: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; min-height: 0; }
.tlist-h { padding: 12px 14px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.views { display: flex; gap: 4px; flex-wrap: wrap; }
.views button { border: 0; background: transparent; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.views button.on { background: var(--brand-soft); color: var(--brand); }
.views button .n { color: var(--faint); font-weight: 600; margin-left: 3px; }
.tlist-items { overflow-y: auto; flex: 1; }
.titem { display: flex; gap: 11px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); cursor: pointer; position: relative; }
.titem:hover { background: #f8fafc; }
.titem.sel { background: var(--brand-soft); }
.titem.sel::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand); }
.titem .top { display: flex; gap: 6px; align-items: baseline; }
.titem .name { font-weight: 650; font-size: 13.5px; }
.titem.unread .name { color: var(--ink); }
.titem .when { margin-left: auto; font-size: 11.5px; color: var(--faint); white-space: nowrap; }
.titem .subj { font-size: 12.5px; color: var(--ink-2); font-weight: 550; }
.titem .prev { font-size: 12.5px; color: var(--muted); }
.titem .meta { display: flex; gap: 6px; align-items: center; margin-top: 5px; }

.convo { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--wa-bg); }
.convo-h { background: #fff; border-bottom: 1px solid var(--line); padding: 12px 18px; display: flex; align-items: center; gap: 12px; }
.convo-h .t { font-weight: 650; font-size: 15px; }
.convo-h .s { font-size: 12.5px; color: var(--muted); }
.thread { flex: 1; overflow-y: auto; padding: 18px 8% 10px; display: flex; flex-direction: column; gap: 4px;
  background-image: radial-gradient(rgba(0,0,0,.035) 1px, transparent 1px); background-size: 18px 18px; }
.day { align-self: center; background: #fff; color: var(--muted); font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 6px; margin: 10px 0; box-shadow: var(--shadow); }
.bub { max-width: min(560px, 78%); padding: 7px 10px 6px; border-radius: 9px; font-size: 13.8px; line-height: 1.42; position: relative; box-shadow: 0 1px .5px rgba(0,0,0,.12); white-space: pre-wrap; word-wrap: break-word; }
.bub.in { align-self: flex-start; background: #fff; border-top-left-radius: 2px; }
.bub.out { align-self: flex-end; background: var(--wa-bubble); border-top-right-radius: 2px; }
.bub.internal { align-self: center; background: #fff8db; border: 1px dashed #e6c34a; max-width: 80%; font-size: 13px; }
.bub .meta { display: flex; gap: 5px; justify-content: flex-end; align-items: center; font-size: 10.5px; color: #667781; margin-top: 2px; }
.bub .who { font-size: 11.5px; font-weight: 650; color: var(--brand); margin-bottom: 2px; }
.bub .tpl { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #667781; margin-bottom: 3px; display: flex; gap: 5px; align-items: center; }
.bub .err { color: var(--red); font-size: 11.5px; margin-top: 3px; }
.bub img.media { max-width: 260px; border-radius: 6px; display: block; margin-bottom: 4px; }
.tick { width: 16px; height: 11px; }
.tick.read { color: #53bdeb; } .tick.sent, .tick.delivered { color: #8696a0; } .tick.failed { color: var(--red); }
.act { align-self: center; font-size: 11.5px; color: var(--muted); padding: 2px 0; }

.composer { background: #f0f2f5; padding: 10px 14px 12px; border-top: 1px solid var(--line); }
.composer .modes { display: flex; gap: 4px; margin-bottom: 8px; }
.composer .modes button { border: 0; background: transparent; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 4px 10px; border-radius: 6px; }
.composer .modes button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.composer .modes button.note-on { background: #fff8db; color: #8a6d00; }
.composer .box { display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { flex: 1; resize: none; border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; font-size: 14px; line-height: 1.45; min-height: 42px; max-height: 60vh; font-family: inherit; }
/* The reply box grows with its text (desk.fitComposer); this bar above it is dragged to set the height by hand */
.composer-grip { height: 10px; margin: -4px 0 2px; cursor: ns-resize; display: flex; align-items: center; justify-content: center; touch-action: none; }
.composer-grip::before { content: ""; width: 44px; height: 4px; border-radius: 999px; background: #c9d1db; }
.composer-grip:hover::before { background: var(--brand); }
.composer textarea:focus { outline: none; border-color: var(--brand); }
.composer textarea.note { background: #fffdf2; border-color: #ecd77a; }
.send-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; flex: 0 0 auto; }
.send-btn:disabled { background: #a7b6c2; }
.window-bar { font-size: 12px; display: flex; align-items: center; gap: 6px; margin-bottom: 8px; color: var(--muted); }
.window-bar.closed { color: var(--amber); }
.canned { position: absolute; bottom: 100%; left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 9px; box-shadow: var(--shadow-lg); max-height: 240px; overflow-y: auto; margin-bottom: 6px; }
.canned button { display: block; width: 100%; text-align: left; border: 0; background: #fff; padding: 8px 12px; border-bottom: 1px solid var(--line-2); }
.canned button:hover { background: #f8fafc; }

.details { border-left: 1px solid var(--line); background: #fff; overflow-y: auto; }
.details section { padding: 16px 18px; border-bottom: 1px solid var(--line-2); }
.details h4 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; font-weight: 650; }
.kv { display: grid; grid-template-columns: 90px 1fr; gap: 7px 10px; font-size: 13px; }
.kv dt { color: var(--muted); font-weight: 500; }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.activity { font-size: 12.5px; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }
.activity b { color: var(--ink-2); font-weight: 600; }

/* ── Templates ── */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.tpl-card { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.tpl-card .nm { font-weight: 650; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.wa-preview { background: var(--wa-bg); border-radius: 9px; padding: 14px; background-image: radial-gradient(rgba(0,0,0,.04) 1px, transparent 1px); background-size: 16px 16px; }
.wa-card { background: #fff; border-radius: 8px; padding: 8px 10px; font-size: 13px; box-shadow: 0 1px .5px rgba(0,0,0,.13); max-width: 320px; }
.wa-card .h { font-weight: 700; margin-bottom: 4px; }
.wa-card .b { white-space: pre-wrap; line-height: 1.42; }
.wa-card .f { color: #8696a0; font-size: 12px; margin-top: 4px; }
.wa-card .v { background: #e7f7ef; color: var(--green-ink); border-radius: 4px; padding: 0 3px; font-weight: 600; }
.wa-btns { display: flex; flex-direction: column; gap: 3px; margin-top: 4px; max-width: 320px; }
.wa-btns div { background: #fff; border-radius: 8px; text-align: center; color: #0a84c6; font-weight: 550; font-size: 13px; padding: 7px; box-shadow: 0 1px .5px rgba(0,0,0,.13); }

/* ── Channels ── */
.chan { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line-2); }
.chan:last-child { border-bottom: 0; }
.chan .wa-ic { width: 42px; height: 42px; border-radius: 10px; background: #e8faef; color: #128c4a; display: grid; place-items: center; }
.connect-card { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.connect-card .panel { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.connect-card h3 { font-size: 15px; margin: 0; }
.connect-card p { color: var(--muted); font-size: 13px; margin: 0; flex: 1; }
.key-box { background: #0f172a; color: #bfdbfe; border-radius: 8px; padding: 12px 14px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; word-break: break-all; }
pre.code { background: #0f172a; color: #e2e8f0; border-radius: 8px; padding: 14px 16px; font-size: 12.5px; overflow-x: auto; }

/* ── Chart ── */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding-top: 10px; }
.bars .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.bars .stk { width: 100%; display: flex; flex-direction: column-reverse; border-radius: 4px 4px 0 0; overflow: hidden; max-width: 30px; }
.bars .in { background: #9db7ee; } .bars .out { background: var(--brand); }
.bars .lbl { font-size: 10.5px; color: var(--faint); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 5px; vertical-align: -1px; }
.meter { height: 8px; background: var(--slate-soft); border-radius: 999px; overflow: hidden; display: flex; }
.meter span { display: block; height: 100%; }
.status-rows { display: flex; flex-direction: column; gap: 12px; }
.status-rows .r { display: grid; grid-template-columns: 90px 1fr 34px; gap: 10px; align-items: center; font-size: 13px; }

/* ── Auth pages ── */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { background: radial-gradient(1200px 600px at -10% -20%, #2a54ba 0%, transparent 55%), linear-gradient(160deg, #0f172a, #12306b); color: #fff; padding: 48px; display: flex; flex-direction: column; }
.auth-art h2 { color: #fff; font-size: 30px; line-height: 1.2; margin: auto 0 14px; max-width: 440px; }
.auth-art p { color: #b7c7d9; max-width: 420px; font-size: 15px; }
.auth-art ul { list-style: none; padding: 0; margin: 22px 0 auto; color: #d5e2ef; display: flex; flex-direction: column; gap: 10px; }
.auth-art li::before { content: "✓"; color: var(--orange); font-weight: 800; margin-right: 10px; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: #fff; }
.auth-form > div { width: 100%; max-width: 400px; }
.auth-form h1 { font-size: 24px; margin-bottom: 6px; }
.auth-form h2 { font-size: 13px; color: var(--muted); font-weight: 500; margin-bottom: 18px; }
.auth-form hr { display: none; }
.auth-form .col-md-4, .auth-form .col-md-6, .auth-form .col-lg-6, .auth-form .col-md-8, .auth-form .col-xl-6 { width: 100%; flex: 1 1 100%; max-width: 100%; margin: 0; }
.auth-form .row { margin: 0; }
.auth-form .btn-lg { padding: 10px; font-size: 15px; justify-content: center; }
.auth-manage { max-width: 760px; }
/* Your account, inside the app: the stock Identity forms, sized like the rest of the product */
.account-manage { max-width: 760px; }
.account-manage h3 { font-size: 16px; margin-bottom: 14px; }
.account-manage h4 { font-size: 14px; }
.account-manage .row { margin: 0; }
.account-manage .col-md-6, .account-manage .col-xl-6, .account-manage .col-lg-6 { width: 100%; max-width: 440px; padding: 0; flex: none; }
.account-manage .btn-lg { padding: 8px 18px; font-size: 14px; width: auto !important; }
.account-manage hr { display: none; }

@media (max-width: 1200px) {
  .inbox { grid-template-columns: 300px 1fr; }
  .details { display: none; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .connect-card { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .dash-grid, .split-2, .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* Blazor */
#blazor-error-ui { background: #fff4e0; bottom: 0; box-shadow: 0 -1px 2px rgba(0,0,0,.2); display: none; left: 0; padding: .6rem 1.25rem .7rem; position: fixed; width: 100%; z-index: 1000; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }
.blazor-error-boundary { background: var(--red-soft); padding: 1rem; color: var(--red); border-radius: 8px; }
.blazor-error-boundary::after { content: "Something went wrong on this panel."; }
.validation-message { color: var(--red); font-size: 12px; }
.invalid { outline: 1px solid var(--red); }

/* ── AI: anything written or suggested by AI is amber, so it never looks like a person wrote it ── */
.ai-mark { color: var(--orange); }
.btn-ai { background: var(--amber-soft); border: 1px solid #f3d9a4; color: #7a4300; }
.btn-ai:hover { background: #ffe9c2; color: #7a4300; }
.composer .modes button.ai { background: var(--amber-soft); color: #7a4300; display: inline-flex; align-items: center; gap: 5px; }
.composer .modes { align-items: center; }
.composer .modes button { white-space: nowrap; }
.composer .modes .window-bar { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.convo-h .btn { flex: 0 0 auto; }
.composer .modes button.ai:hover { background: #ffe9c2; }
.ai-box { background: #fff8ec; border: 1px solid #f3d9a4; color: #7a4300; border-radius: var(--radius-sm); font-size: 12.5px; }
.ai-box.draft { display: flex; gap: 7px; align-items: center; padding: 6px 10px; margin-bottom: 6px; }
.ai-box.summary { margin: 10px 16px 0; padding: 10px 14px; font-size: 13px; }
.ai-box .ai-h { display: flex; align-items: center; gap: 7px; font-weight: 650; margin-bottom: 4px; }
.ai-box .ai-text { white-space: pre-line; color: #5c3a00; }
.ai-box.ai-row { display: flex; align-items: center; gap: 9px; }
.ai-pill { display: inline-flex; align-items: center; gap: 3px; background: var(--amber-soft); color: #7a4300; border-radius: 999px; padding: 1px 7px; font-size: 11px; font-weight: 650; }
.bub.by-ai { box-shadow: inset 3px 0 0 #e6a93a; }
.tag.ai { background: var(--amber-soft); color: #7a4300; }
.mood-pill { display: inline-flex; align-items: center; gap: 3px; background: var(--red-soft); color: #991b1b; border-radius: 999px; padding: 1px 7px; font-size: 11px; font-weight: 650; white-space: nowrap; }
.views button.warn .n { background: var(--red-soft); color: #991b1b; }
.ai-row .btn { white-space: nowrap; flex: 0 0 auto; }

/* Ask Avenstra: the question box on the dashboard */
.ask { margin-bottom: 16px; }
.ask-bar { display: flex; gap: 10px; align-items: center; padding: 12px 14px; }
.ask-bar .ai-mark { display: inline-flex; flex: 0 0 auto; }
.ask-bar input { border: 0; box-shadow: none !important; padding-left: 0; font-size: 14.5px; background: transparent; }
.ask-bar .btn { flex: 0 0 auto; white-space: nowrap; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 12px 40px; }
.ask-chips button { border: 1px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 999px; padding: 3px 11px; font-size: 12.5px; }
.ask-chips button:hover { background: var(--amber-soft); border-color: #f3d9a4; color: #7a4300; }
.ask-log { border-top: 1px solid var(--line-2); padding: 12px 14px 4px; }
.ask-q { font-weight: 650; margin-bottom: 5px; }
.ask-a { padding: 10px 14px; margin-bottom: 12px; font-size: 13.5px; }
.ask-a .ai-text { white-space: pre-line; }
.ask-a a { color: #7a4300; font-weight: 650; text-decoration: underline; }
.ask-foot { display: flex; align-items: center; gap: 10px; padding: 0 14px 10px; }

/* Daily briefing: the owner's morning read at the top of the home screen */
.brief { margin-bottom: 16px; }
.brief-h { display: flex; align-items: center; gap: 10px; padding: 12px 14px 0; }
.brief-h h3 { font-size: 15px; margin: 0; }
.brief-h .ai-mark { display: inline-flex; flex: 0 0 auto; }
.brief-h .btn { flex: 0 0 auto; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.brief-b { padding: 10px 14px 4px 42px; font-size: 13.5px; }
.brief-lead { font-weight: 600; font-size: 14.5px; margin-bottom: 6px; }
.brief-pt { position: relative; padding-left: 14px; margin-bottom: 4px; color: var(--ink-2); }
.brief-pt::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.brief-today { margin: 10px 0 6px; padding: 8px 12px; background: #fff8ec; border: 1px solid #f3d9a4; color: #5c3a00; border-radius: var(--radius-sm); font-weight: 600; }
.brief-b a { font-weight: 650; text-decoration: underline; }
.brief-today a { color: #7a4300; }
.brief-foot { padding: 0 14px 12px 42px; }
@media (max-width: 640px) { .brief-b, .brief-foot { padding-left: 14px; } }

/* ── CRM: pipeline board, deal page ── */
.board { display: flex; gap: 12px; align-items: flex-start; overflow-x: auto; padding-bottom: 12px; }
.board-col { flex: 1 0 250px; max-width: 340px; background: #eef2f6; border: 1px solid transparent; border-radius: var(--radius); padding: 10px; min-height: 180px; }
.board-col.over { border-color: var(--brand); background: var(--brand-soft); }
.board-h { display: flex; align-items: center; gap: 7px; font-size: 13.5px; }
.board-h .n { background: #fff; border-radius: 999px; padding: 0 7px; font-size: 11.5px; font-weight: 650; color: var(--muted); }
.board-sum { margin: 2px 0 8px; }
.board-empty { border: 1px dashed #c9d1db; border-radius: 9px; padding: 18px 8px; text-align: center; color: var(--faint); font-size: 12.5px; }
.deal-card { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; margin-bottom: 8px; cursor: grab; box-shadow: var(--shadow); }
.deal-card:hover { border-color: #b9c4d2; }
.deal-card.dragging { opacity: .45; }
.deal-card .t { font-weight: 650; font-size: 13.5px; line-height: 1.3; margin-bottom: 2px; }
.deal-card .v { font-weight: 650; margin-top: 5px; font-variant-numeric: tabular-nums; }
.deal-card .f { display: flex; align-items: center; gap: 6px; margin-top: 7px; min-height: 24px; }
.due { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--muted); background: var(--slate-soft); border-radius: 999px; padding: 1px 7px; white-space: nowrap; }
.due.late { background: var(--red-soft); color: #991b1b; }
.due.none { background: transparent; color: var(--faint); padding-left: 0; }
.late { color: #b91c1c; }
.heat { display: inline-flex; align-items: center; gap: 3px; border-radius: 999px; padding: 1px 7px; font-size: 11px; font-weight: 650; white-space: nowrap; background: var(--amber-soft); color: #7a4300; }
.heat.h-hot { background: #ffe1d6; color: #9a2c00; }
.heat.h-cold { background: var(--slate-soft); color: var(--muted); }
.board-close { position: fixed; left: 232px; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px 22px; background: rgba(255, 255, 255, .92); border-top: 1px solid var(--line); z-index: 40; }
.board-close > div { border: 2px dashed; border-radius: 10px; padding: 16px; text-align: center; font-weight: 650; display: flex; align-items: center; justify-content: center; gap: 8px; }
.board-close .won { border-color: var(--green); color: var(--green-ink); background: var(--green-soft); }
.board-close .lost { border-color: #e5a3a3; color: #991b1b; background: var(--red-soft); }
.stage-bar { display: flex; gap: 4px; flex-wrap: wrap; }
.stage-bar button { flex: 1 1 120px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-weight: 600; font-size: 12.5px; padding: 7px 10px; border-radius: 7px; }
.stage-bar button:hover { border-color: var(--brand); color: var(--brand); }
.stage-bar button.done { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.stage-bar button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.deal-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 16px; align-items: start; }
.deal-ai { padding: 12px 14px; font-size: 13.5px; }
.deal-ai .ai-h { flex-wrap: wrap; }
.deal-draft { margin-top: 10px; padding-top: 10px; border-top: 1px solid #f3d9a4; }
.deal-facts dl { display: grid; grid-template-columns: 120px 1fr; gap: 8px 10px; margin: 10px 0 0; }
.deal-facts dt { color: var(--muted); font-weight: 500; }
.deal-facts dd { margin: 0; }
.timeline { padding: 6px 18px 12px; }
.tl-row { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.tl-row:last-child { border-bottom: 0; }
.tl-row .dot { width: 8px; height: 8px; border-radius: 50%; background: #c9d1db; margin: 6px 4px 0; flex: 0 0 auto; }
.tl-row.open { background: #fffdf5; margin: 0 -18px; padding: 9px 18px; }
@media (max-width: 900px) { .deal-grid { grid-template-columns: 1fr; } .board-close { left: 0; } }

/* ── People ── */
.ai-box.pad { padding: 12px 14px; }
.sub-h { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; margin: 18px 0 10px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.bal { padding: 10px 0; border-top: 1px solid var(--line-2); }
.bal:first-of-type { border-top: 0; }
.bal .meter { margin: 6px 0 4px; }
.bal .meter span { background: var(--brand); }

/* ── Plans ── */
.trial-bar { display: flex; align-items: center; gap: 10px; padding: 8px 22px; background: var(--amber-soft); color: #7a4300; font-size: 13px; border-bottom: 1px solid #f3d9a4; }
.trial-bar a { margin-left: auto; font-weight: 650; color: #7a4300; text-decoration: underline; white-space: nowrap; }
.plan-chip { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; margin-bottom: 8px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .08); color: inherit; font-size: 12.5px; }
.plan-chip b { color: var(--orange); font-weight: 650; }
.plan-chip:hover { background: rgba(255, 255, 255, .14); color: inherit; }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.plan-card.current { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.plan-price { font-size: 15px; margin: 10px 0 2px; }
.plan-price b { font-size: 28px; letter-spacing: -.02em; }
.plan-price s { color: var(--muted); margin-right: 8px; font-size: 16px; }
.plan-list { list-style: none; padding: 0; margin: 12px 0 16px; }
.plan-list li { padding: 6px 0 6px 24px; border-top: 1px solid var(--line-2); position: relative; font-size: 13.5px; }
.plan-list li::before { content: "✓"; position: absolute; left: 2px; color: var(--green); font-weight: 700; }
.plan-list li.off { color: var(--muted); }
.plan-list li.off::before { content: "–"; color: var(--muted); }
.usage-text { font-size: 13px; font-variant-numeric: tabular-nums; }
.usage-bar { height: 6px; border-radius: 999px; background: var(--line-2); margin-top: 5px; overflow: hidden; }
.usage-bar i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.usage-bar.near i { background: var(--amber); }
.usage-bar.full i { background: #dc2626; }
@media (max-width: 900px) { .plan-grid { grid-template-columns: 1fr; } }

/* ── Glass ──
   Frosted surfaces over a soft backdrop in the logo colours. Used where there is little text: the sign-in page,
   the sidebar, the top bar and the home screen's cards (.home). Working screens with dense text (inbox, tables,
   boards, forms, drawers) keep solid panels on purpose: they read better and scroll faster. */
:root {
  --glass: rgba(255, 255, 255, .58);
  --glass-line: rgba(255, 255, 255, .75);
  --glass-blur: blur(16px) saturate(160%);
  --glass-shadow: 0 10px 30px rgba(30, 50, 110, .10), inset 0 1px 0 rgba(255, 255, 255, .65);
}
.shell {
  background:
    radial-gradient(900px 520px at 14% -12%, rgba(42, 84, 186, .26), transparent 62%),
    radial-gradient(720px 480px at 98% 2%, rgba(0, 116, 191, .18), transparent 60%),
    radial-gradient(760px 560px at 84% 112%, rgba(254, 147, 13, .15), transparent 60%),
    radial-gradient(700px 520px at 34% 112%, rgba(40, 158, 107, .13), transparent 60%),
    #eef2f9;
}
/* The sidebar is solid on purpose: see-through navy over the pale backdrop washed out to a flat grey-blue */
.side { background: linear-gradient(180deg, #0a1433 0%, #0f2152 62%, #14306f 100%); border-right: 1px solid rgba(255, 255, 255, .06); }
.side .nav-group { color: #8fa6d6; }
.side .nav-item-x { color: #dbe5fa; }
.side .nav-item-x:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.side .nav-item-x.active { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(4, 12, 40, .35); }
.side .nav-item-x.active svg { color: #fff; }
.side .brand small { color: #9fb4e0; }
.side .side-foot { border-top-color: rgba(255, 255, 255, .10); }
.side .ws-select { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #dbe5fa; }
.topbar { background: rgba(255, 255, 255, .62); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border-bottom: 1px solid rgba(255, 255, 255, .8); box-shadow: 0 1px 0 rgba(15, 23, 42, .05); }
.home .panel { background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); border-radius: 14px; }
.home .panel-h { border-bottom-color: rgba(15, 23, 42, .06); }
.home .tbl th { background: rgba(255, 255, 255, .35); }
.home .tbl td { border-bottom-color: rgba(15, 23, 42, .05); }
.home .ask-chips button { background: rgba(255, 255, 255, .6); }

.auth {
  background:
    radial-gradient(1100px 620px at -8% -18%, #2a54ba 0%, transparent 58%),
    radial-gradient(760px 520px at 104% 8%, rgba(0, 116, 191, .55), transparent 60%),
    radial-gradient(700px 520px at 92% 108%, rgba(254, 147, 13, .30), transparent 60%),
    radial-gradient(640px 480px at 40% 112%, rgba(40, 158, 107, .28), transparent 60%),
    linear-gradient(160deg, #0f172a, #12306b);
}
/* The glass Avenstra mark behind the sign-in pages (img/avenstra-glass.webp): its edges fade into the backdrop */
.auth { position: relative; overflow: hidden; }
.auth::before { content: ""; position: absolute; z-index: 0; pointer-events: none; left: 47.5%; top: 50%; width: min(33vw, 520px); aspect-ratio: 1; transform: translate(-50%, -50%);
  background: url(img/avenstra-glass.webp) center / cover no-repeat; opacity: .8; mix-blend-mode: lighten;
  -webkit-mask-image: radial-gradient(closest-side, #000 52%, transparent 96%); mask-image: radial-gradient(closest-side, #000 52%, transparent 96%); }
.auth > * { position: relative; z-index: 1; }
.auth-hero { display: none; }
@media (max-width: 1200px) { .auth::before { opacity: .45; } }
@media (max-width: 860px) {
  .auth { grid-template-rows: auto 1fr; }
  .auth::before { left: 50%; top: 0; width: min(92vw, 430px); transform: translate(-50%, 44px); opacity: .95; }
  .auth-hero { display: flex; flex-direction: column; color: #fff; padding: 22px 22px 0; min-height: min(100vw, 460px); }
  .auth-hero h2 { color: #fff; font-size: 21px; line-height: 1.25; margin: auto 0 0; text-align: center; text-shadow: 0 2px 14px rgba(4, 12, 40, .7); }
  .auth-hero .brand small { color: #9fb4e0; }
  .auth-form { align-items: flex-start; padding: 18px 16px 32px; }
  .auth-form > div { padding: 26px 22px; }
}
.auth-art { background: transparent; }
.auth-art ul { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; padding: 18px 20px; max-width: 540px; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.auth-form { background: transparent; }
.auth-form > div { background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%); border: 1px solid rgba(255, 255, 255, .6); border-radius: 18px; padding: 34px 32px; box-shadow: 0 24px 60px rgba(4, 12, 40, .35), inset 0 1px 0 rgba(255, 255, 255, .7); }
.auth-form .form-control { background: rgba(255, 255, 255, .8); }

/* Browsers without backdrop-filter, and people who ask for less transparency, get near-solid surfaces */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar, .home .panel { background: rgba(255, 255, 255, .94); }
  .auth-form > div { background: #fff; }
}
@media (prefers-reduced-transparency: reduce) {
  .topbar, .home .panel, .auth-form > div { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ── Suite home: each module's cards (IHomeSource) and one needs-attention list ── */
.tone-blue { background: var(--blue-soft); color: var(--blue); }
.tone-green { background: var(--green-soft); color: var(--green); }
.tone-amber { background: var(--amber-soft); color: var(--amber); }
.tone-red { background: var(--red-soft); color: var(--red); }
.tone-violet { background: var(--violet-soft); color: var(--violet); }
.tone-brand { background: var(--brand-soft); color: var(--brand); }
.home-h { display: flex; align-items: baseline; gap: 12px; margin: 20px 2px 10px; }
.home-h h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin: 0; }
.kpi .value.long { font-size: 19px; line-height: 1.35; margin-top: 10px; }
a.kpi-link { display: block; color: inherit; transition: transform .12s ease, box-shadow .12s ease; }
a.kpi-link:hover { color: inherit; transform: translateY(-1px); box-shadow: 0 14px 34px rgba(30, 50, 110, .16), inset 0 1px 0 rgba(255, 255, 255, .65); }
.attention { margin-bottom: 4px; }
.attn { display: flex; align-items: center; gap: 12px; padding: 10px 18px; color: var(--ink); border-top: 1px solid rgba(15, 23, 42, .05); }
.attn:first-child { border-top: 0; }
.attn:hover { background: rgba(255, 255, 255, .55); color: var(--ink); }
.attn .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: 0 0 auto; }
.attn .grow { display: flex; flex-direction: column; min-width: 0; }
.attn .grow b { font-weight: 600; font-size: 13.5px; }
.attn .grow .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.attn > svg { color: var(--faint); flex: 0 0 auto; }

/* ── Scrollbars ──
   Thin and quiet everywhere, in place of the browser's wide grey bar. In the sidebar the bar is hidden until the
   pointer is over the menu, and its space is always reserved so the menu does not shift when it appears. */
* { scrollbar-width: thin; scrollbar-color: rgba(100, 116, 139, .38) transparent; }
.side { scrollbar-gutter: stable; scrollbar-color: transparent transparent; padding-right: 4px; }
.side:hover, .side:focus-within { scrollbar-color: rgba(255, 255, 255, .30) transparent; }
/* Safari and older Chrome and Edge, which do not know scrollbar-color */
@supports not (scrollbar-color: auto) {
  ::-webkit-scrollbar { width: 8px; height: 8px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: rgba(100, 116, 139, .38); border-radius: 999px; }
  .side::-webkit-scrollbar-thumb { background: transparent; }
  .side:hover::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .30); }
}
