/* =====================================================================
   Wiseo design system — navy #082552 + mint #02CEAB, Geist type
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700;800&family=Geist+Mono:wght@500&display=swap');

:root {
  --font: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --canvas: #f5f6f8;
  --panel: #ffffff;
  --panel-2: #f8f9fb;
  --hover: #f2f4f7;
  --border: #e6e8ec;
  --border-strong: #d5d9e0;
  --text: #0b1628;
  --text-2: #3a4556;
  --muted: #697386;
  --faint: #9aa3b2;

  --navy: #082552;
  --navy-2: #0e3270;
  --mint: #02ceab;
  --mint-2: #21fcd2;
  --accent: #02ceab;
  --accent-dark: #007a65;
  --accent-soft: #e5f9f4;
  --accent-ring: rgba(2, 206, 171, .28);
  --primary: #082552;
  --primary-2: #123f86;
  --on-primary: #ffffff;

  --blue: #2f6fed; --violet: #7c5cfc; --amber: #e8a317; --red: #e5484d; --green: #12a150; --sky: #0ea5e9;
  --danger: #e5484d;
  --warn: #a15c07; --warn-soft: #fff6e5;
  --bot: #082552; --bot-soft: #eef2f9;

  --out: #e3f8f2; --out-text: #0b1628; --in: #ffffff; --chat-bg: #f5f6f8;

  --r-sm: 7px; --r: 10px; --r-lg: 14px; --r-xl: 18px;
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 2px 8px -2px rgba(16, 24, 40, .06);
  --shadow-lg: 0 18px 48px -12px rgba(8, 20, 45, .28), 0 0 0 1px rgba(8, 20, 45, .06);

  --side-bg: #061837; --side-bg-2: #0a2250; --side-text: rgba(226, 236, 255, .66); --side-strong: #ffffff; --side-hover: rgba(255, 255, 255, .06); --side-border: rgba(255, 255, 255, .08);

  font-family: var(--font);
  font-size: 13.5px;
  line-height: 1.45;
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #080d17; --panel: #0e1523; --panel-2: #121a2a; --hover: #172133; --border: #1d2738; --border-strong: #2a364b;
    --text: #e9eef6; --text-2: #c2cbd9; --muted: #8894a7; --faint: #5f6b80;
    --accent: #21fcd2; --accent-dark: #3de8c8; --accent-soft: rgba(33, 252, 210, .09); --accent-ring: rgba(33, 252, 210, .25);
    --primary: #21fcd2; --primary-2: #6affe3; --on-primary: #06172f;
    --warn: #f5b454; --warn-soft: rgba(245, 180, 84, .1); --bot: #1d3b78; --bot-soft: rgba(90, 130, 220, .12);
    --out: #0f3b3a; --out-text: #e6fffa; --in: #141d2e; --chat-bg: #0a101c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4); --shadow-lg: 0 18px 48px -12px rgba(0, 0, 0, .7), 0 0 0 1px var(--border);
    --side-bg: #050b17; --side-bg-2: #07142b;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--canvas); color: var(--text); }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
code, kbd { font-family: var(--mono); font-size: 11.5px; }
code { background: var(--hover); padding: 1px 6px; border-radius: 5px; }
kbd { background: var(--panel); border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; color: var(--muted); }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; gap: 8px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
::selection { background: var(--accent-ring); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }
svg { flex: none; }

/* ------------------------------------------------------------------ controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--panel); color: var(--text); font-weight: 550; font-size: 13px; cursor: pointer; white-space: nowrap;
  box-shadow: var(--shadow-xs); transition: background .12s, border-color .12s, transform .06s; }
.btn:hover { background: var(--hover); text-decoration: none; }
.btn:active { transform: translateY(.5px); }
.btn:disabled { opacity: .45; cursor: default; }
.btn svg { width: 15px; height: 15px; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); box-shadow: 0 1px 2px rgba(8, 37, 82, .3), inset 0 1px 0 rgba(255, 255, 255, .08); }
.btn.primary:hover { background: var(--primary-2); border-color: var(--primary-2); }
.btn.mint { background: var(--mint); border-color: var(--mint); color: #062a24; }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: rgba(229, 72, 77, .08); }
.btn.ghost { border-color: transparent; background: transparent; box-shadow: none; color: var(--text-2); }
.btn.ghost:hover { background: var(--hover); }
.btn.sm { height: 26px; padding: 0 9px; font-size: 12px; border-radius: 6px; }
.btn.icon { width: 32px; padding: 0; }
.btn.icon.sm { width: 26px; }
.btn.primary-soft { background: var(--accent-soft); color: var(--accent-dark); border-color: transparent; box-shadow: none; font-size: 17px; }
.btn.icon.starred { color: var(--amber); }
.btn.icon.starred svg { fill: var(--amber); }
.input, select, textarea { width: 100%; border: 1px solid var(--border); background: var(--panel); border-radius: var(--r-sm); padding: 7px 10px; outline: none;
  transition: border-color .12s, box-shadow .12s; box-shadow: var(--shadow-xs); }
.input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
select { appearance: none; padding-right: 28px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23697386' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center; }
textarea { resize: vertical; line-height: 1.5; }
label { display: block; font-size: 12px; font-weight: 550; color: var(--text-2); margin: 14px 0 6px; }
input[type=checkbox] { accent-color: var(--navy); }
.switch { position: relative; width: 34px; height: 20px; flex: none; margin: 0; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--border-strong); border-radius: 20px; cursor: pointer; transition: .18s; }
.switch span::before { content: ''; position: absolute; width: 16px; height: 16px; left: 2px; top: 2px; background: #fff; border-radius: 50%; transition: .18s; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.switch input:checked + span { background: var(--mint); }
.switch input:checked + span::before { transform: translateX(14px); }
.seg { display: inline-grid; grid-auto-flow: column; background: var(--hover); border-radius: 8px; padding: 2px; gap: 2px; }
.seg button { border: 0; background: none; border-radius: 6px; padding: 4px 10px; font-weight: 550; font-size: 12px; cursor: pointer; color: var(--muted); }
.seg button.active { background: var(--panel); color: var(--text); box-shadow: var(--shadow-xs), 0 0 0 1px var(--border); }

.pill { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; height: 20px; border-radius: 99px; font-size: 11px; font-weight: 600; background: var(--hover); color: var(--text-2); }
.pill.open { background: var(--accent-soft); color: var(--accent-dark); }
.pill.bot { background: var(--bot-soft); color: var(--navy); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill svg { width: 12px; height: 12px; }
@media (prefers-color-scheme: dark) { .pill.bot { color: #9fb7ff; } }
.badge { background: var(--mint); color: #062a24; border-radius: 99px; font-size: 10.5px; font-weight: 700; padding: 0 6px; min-width: 18px; height: 18px; display: inline-grid; place-items: center; }
.tag { display: inline-flex; gap: 4px; align-items: center; background: var(--hover); border: 1px solid var(--border); border-radius: 6px; padding: 1px 7px; font-size: 12px; color: var(--text-2); margin: 0 4px 4px 0; }
.tag button { border: 0; background: none; cursor: pointer; color: var(--faint); padding: 0; }

.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 650; flex: none; font-size: 12.5px; letter-spacing: .02em; position: relative; }
.avatar.sm { width: 28px; height: 28px; font-size: 10.5px; }
.avatar.xs { width: 20px; height: 20px; font-size: 8.5px; }
.avatar.xl { width: 64px; height: 64px; font-size: 21px; }

.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow); }
.banner { padding: 9px 12px; font-size: 12.5px; border-radius: var(--r); margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.banner svg { width: 15px; height: 15px; }
.banner.warn { background: var(--warn-soft); color: var(--warn); }
.banner.bot { background: var(--bot-soft); color: var(--text-2); }
.empty { display: grid; place-items: center; height: 100%; color: var(--muted); text-align: center; padding: 28px; }
.empty b { color: var(--text); font-size: 14px; }
.empty p { margin: 6px 0 0; }
.empty-ico { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; margin: 0 auto 12px; }
.empty-ico svg { width: 22px; height: 22px; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: 11.5px; color: var(--muted); font-weight: 600; background: var(--panel-2); }
tr:last-child td { border-bottom: 0; }
tr:hover td { background: var(--panel-2); }

/* ------------------------------------------------------------------ shell */
.shell { display: grid; grid-template-columns: 236px 1fr; height: 100vh; }
.nav { background: linear-gradient(180deg, var(--side-bg), var(--side-bg-2)); color: var(--side-text); display: flex; flex-direction: column; padding: 14px 10px; gap: 1px; overflow: auto; border-right: 1px solid var(--side-border); }
.nav .brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; }
.nav .brand img.brand-logo { height: 24px; }
.nav .brand .brand-logo.light { display: none !important; }
.nav .brand .brand-logo.dark { display: block !important; }
.nav .brand .icon { width: 30px; height: 30px; border-radius: 9px; display: none; }
.nav-search { display: flex; align-items: center; gap: 8px; margin: 0 2px 10px; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--side-border); background: rgba(255, 255, 255, .04); color: var(--side-text); cursor: pointer; font-size: 12.5px; }
.nav-search:hover { background: rgba(255, 255, 255, .07); }
.nav-search svg { width: 14px; height: 14px; }
.nav-search kbd { margin-left: auto; background: rgba(255, 255, 255, .06); border-color: var(--side-border); color: var(--side-text); }
.nav-group { font-size: 11px; font-weight: 600; color: rgba(226, 236, 255, .38); padding: 16px 10px 5px; letter-spacing: .02em; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--side-text); font-weight: 500; font-size: 13.5px; position: relative; transition: background .12s, color .12s; }
.nav a:hover { background: var(--side-hover); color: var(--side-strong); text-decoration: none; }
.nav a.active { background: rgba(33, 252, 210, .1); color: var(--side-strong); }
.nav a.active::before { content: ''; position: absolute; left: -10px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--mint-2); }
.nav a.active svg { color: var(--mint-2); }
.nav a svg { width: 17px; height: 17px; opacity: .9; }
.nav a span { flex: 1; }
.nav-count:empty { display: none; }
.nav-count { background: var(--mint); color: #062a24; border-radius: 99px; font-size: 10.5px; font-weight: 700; min-width: 19px; height: 18px; display: grid; place-items: center; padding: 0 5px; }
.nav .spacer { flex: 1; min-height: 16px; }
.me { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; border: 1px solid var(--side-border); background: rgba(255, 255, 255, .03); }
.me b { display: block; font-size: 13px; color: var(--side-strong); font-weight: 600; }
.me .muted { color: var(--side-text); }
.me a { padding: 6px; border-radius: 7px; display: grid; }
.me a svg { width: 16px; height: 16px; }
.me .avatar { background: var(--mint); color: #062a24; }

.main { overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.topbar { height: 52px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 18px; border-bottom: 1px solid var(--border); background: var(--panel); }
.topbar .crumb { font-weight: 650; font-size: 14px; letter-spacing: -.01em; }
.topbar .crumb span { color: var(--faint); font-weight: 500; }
.topbar .status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); padding: 0 10px; height: 28px; border: 1px solid var(--border); border-radius: 99px; background: var(--panel); cursor: pointer; }
.topbar .status i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(18, 161, 80, .15); }
.topbar .status.off i { background: var(--faint); box-shadow: none; }
.bell { position: relative; }
.bell .dot-count { position: absolute; top: 2px; right: 2px; min-width: 15px; height: 15px; border-radius: 99px; background: var(--red); color: #fff; font-size: 9.5px; font-weight: 700; display: grid; place-items: center; padding: 0 3px; border: 2px solid var(--panel); }
.view { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.page { padding: 26px 30px 40px; overflow: auto; height: 100%; }
.page > * { max-width: 1240px; margin-left: auto; margin-right: auto; }
.page.wide > * { max-width: 1400px; }
.page h1 { font-size: 22px; font-weight: 700; letter-spacing: -.025em; margin: 0 auto 18px; }
.page h2 { font-size: 14px; font-weight: 650; margin: 30px auto 12px; letter-spacing: -.01em; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.page-head h1 { margin-bottom: 4px !important; }
.page-head p { margin: 0; }

.dropdown { position: fixed; z-index: 80; width: 360px; max-height: 460px; overflow: auto; background: var(--panel); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); animation: pop .14s ease-out; }
.dropdown-head { display: flex; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--border); font-weight: 650; }
.dd-item { display: flex; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); cursor: pointer; font-size: 13px; }
.dd-item:hover { background: var(--panel-2); }
.dd-item:last-child { border-bottom: 0; }
.dd-item .ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-dark); flex: none; }
.dd-item .ico svg { width: 15px; height: 15px; }

/* command palette */
.cmdk-bg { position: fixed; inset: 0; z-index: 90; background: rgba(6, 14, 30, .45); backdrop-filter: blur(3px); display: flex; justify-content: center; align-items: flex-start; padding-top: 12vh; animation: fade .12s; }
.cmdk { width: 620px; max-width: calc(100% - 32px); max-height: 460px; background: var(--panel); border-radius: 16px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; animation: pop .15s ease-out; }
.cmdk-input { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.cmdk-input svg { width: 18px; height: 18px; color: var(--muted); }
.cmdk-input input { border: 0; outline: none; background: none; font-size: 15px; width: 100%; }
.cmdk-list { overflow: auto; padding: 6px; }
.cmdk-group { font-size: 11px; font-weight: 600; color: var(--faint); padding: 10px 10px 4px; }
.cmdk-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; cursor: pointer; }
.cmdk-item svg { width: 16px; height: 16px; color: var(--muted); }
.cmdk-item.sel { background: var(--hover); }
.cmdk-item.sel svg { color: var(--accent-dark); }
.cmdk-item .hint { margin-left: auto; color: var(--faint); font-size: 12px; }
.cmdk-foot { display: flex; gap: 14px; padding: 8px 14px; border-top: 1px solid var(--border); color: var(--faint); font-size: 11.5px; }

/* ------------------------------------------------------------------ dashboard */
.hero { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.hero h1 { margin: 0 0 4px !important; }
.hero p { margin: 0; }
.eyebrow { font-size: 11.5px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.big { font-size: 17px; font-weight: 700; letter-spacing: -.02em; display: block; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.cards.four { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.kpi { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 15px 16px 13px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; position: relative; overflow: hidden; min-height: 108px; }
.kpi .l { color: var(--muted); font-size: 12.5px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.kpi .l svg { width: 14px; height: 14px; }
.kpi .n { font-size: 26px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.kpi .delta { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.kpi .delta.up { color: var(--green); }
.kpi .delta.down { color: var(--red); }
.kpi svg.spark { position: absolute; right: 12px; bottom: 14px; width: 96px; height: 34px; }
.card.mini { padding: 16px; }
.stat .n { font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
.stat .l { color: var(--muted); font-size: 12px; }
.stat.open .n { color: var(--accent-dark); }
.dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; margin-top: 12px; }
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 16px 18px; min-width: 0; }
.panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.panel-head b { font-size: 13.5px; font-weight: 650; }
.chart { width: 100%; height: 230px; display: block; overflow: visible; }
.chart text { font-size: 10.5px; fill: var(--faint); font-family: var(--font); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }
.bars .bar-row { display: grid; grid-template-columns: 100px 1fr 34px; gap: 10px; align-items: center; padding: 6px 0; font-size: 12.5px; }
.bars .track { height: 8px; background: var(--hover); border-radius: 99px; overflow: hidden; }
.bars .fill { height: 100%; border-radius: 99px; }
.bars .v { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); font-weight: 600; }
.tasks { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 10px; }
.task { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 13px 15px; box-shadow: var(--shadow); }
.task .num { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--border-strong); display: grid; place-items: center; font-size: 11.5px; font-weight: 700; color: var(--muted); flex: none; }
.task.done .num { background: var(--mint); border-color: var(--mint); color: #062a24; }
.task .num svg { width: 13px; height: 13px; }
.task b { display: block; font-weight: 600; }
.task.done b { color: var(--muted); }
.progress { height: 6px; background: var(--hover); border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--mint), var(--mint-2)); border-radius: 99px; }
.account { gap: 16px; }
.feed-row { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 12.5px; align-items: flex-start; }
.feed-row:last-child { border-bottom: 0; }

/* ------------------------------------------------------------------ inbox */
.pro-inbox { display: grid; grid-template-columns: 220px 350px 1fr 320px; height: 100%; min-height: 0; background: var(--panel); }
.pro-inbox > * { min-height: 0; border-right: 1px solid var(--border); }
.pro-inbox > *:last-child { border-right: 0; }
.ib-nav { padding: 14px 8px; overflow: auto; background: var(--panel-2); }
.ib-nav-title { font-weight: 650; font-size: 12px; color: var(--muted); padding: 0 10px 8px; }
.ib-nav a { display: flex; align-items: center; gap: 9px; padding: 6px 10px; border-radius: 7px; cursor: pointer; color: var(--text-2); font-size: 13px; font-weight: 500; }
.ib-nav a:hover { background: var(--hover); text-decoration: none; }
.ib-nav a.active { background: var(--panel); color: var(--text); font-weight: 600; box-shadow: var(--shadow-xs), 0 0 0 1px var(--border); }
.ib-nav a svg { width: 15px; height: 15px; color: var(--muted); }
.ib-nav a.active svg { color: var(--accent-dark); }
.ib-nav a span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ib-nav .cnt { font-size: 11px; color: var(--faint); font-weight: 600; font-variant-numeric: tabular-nums; }
.ib-nav .cnt.hot { background: var(--red); color: #fff; border-radius: 99px; padding: 0 6px; }
.ib-nav-group { font-size: 11px; font-weight: 600; color: var(--faint); padding: 16px 10px 5px; }
.dot { width: 8px; height: 8px; border-radius: 3px; flex: none; margin: 0 3px; }

.ib-list { display: flex; flex-direction: column; background: var(--panel); }
.ib-list-head { padding: 12px 12px 8px; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--border); }
.ib-list-head h2 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -.015em; }
.ib-search { display: flex; align-items: center; gap: 8px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; padding: 0 10px; transition: .12s; }
.ib-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); background: var(--panel); }
.ib-search svg { width: 14px; height: 14px; color: var(--faint); }
.ib-search input { border: 0; background: transparent; outline: none; padding: 7px 0; width: 100%; font-size: 12.5px; }
.ib-tools select { width: auto; padding: 3px 26px 3px 8px; font-size: 12px; border-radius: 6px; box-shadow: none; }
.ib-bulkbar { display: flex; align-items: center; gap: 6px; background: var(--accent-soft); border-radius: 8px; padding: 6px 8px; flex-wrap: wrap; }
.ib-bulkbar label { margin: 0; }
.ib-bulkbar select { width: auto; flex: 1; padding: 3px 26px 3px 8px; font-size: 12px; }
.ib-convs { overflow: auto; flex: 1; }
.conv { display: flex; gap: 10px; padding: 11px 12px; cursor: pointer; border-bottom: 1px solid var(--border); position: relative; transition: background .1s; }
.conv:hover { background: var(--panel-2); }
.conv.active { background: var(--accent-soft); }
.conv.active::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--mint); }
.conv .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.conv .name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; }
.conv .time { font-size: 11px; color: var(--faint); flex: none; font-variant-numeric: tabular-nums; }
.conv .prev { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.conv.unread .name { font-weight: 750; }
.conv.unread .prev { color: var(--text); }
.conv .pick { margin-top: 10px; }
.ai-dot { position: absolute; right: -3px; bottom: -3px; width: 16px; height: 16px; border-radius: 50%; background: var(--navy); color: var(--mint-2); display: grid; place-items: center; border: 2px solid var(--panel); }
.ai-dot svg { width: 9px; height: 9px; }
.star-on svg { width: 11px; height: 11px; fill: var(--amber); color: var(--amber); margin-right: 4px; vertical-align: -1px; }
.chips { display: flex; align-items: center; gap: 5px; margin-top: 6px; flex-wrap: wrap; }
.stage { --c: #64748b; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--text-2); background: var(--panel); border: 1px solid var(--border); padding: 0 7px; height: 20px; border-radius: 6px; white-space: nowrap; }
.stage::before { content: ''; width: 6px; height: 6px; border-radius: 2px; background: var(--c); }
.lbl { font-size: 11px; background: var(--hover); padding: 0 7px; height: 20px; border-radius: 6px; color: var(--muted); display: inline-flex; align-items: center; gap: 3px; }
.lbl svg, .sla svg { width: 11px; height: 11px; }
.lbl.fu { color: var(--warn); background: var(--warn-soft); }
.sla { font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; gap: 3px; color: var(--muted); height: 20px; }
.sla.soon { color: var(--amber); }
.sla.late { color: #fff; background: var(--red); padding: 0 7px; border-radius: 6px; }
.assignee { width: 20px; height: 20px; border-radius: 50%; color: #fff; font-size: 8.5px; font-weight: 700; display: grid; place-items: center; flex: none; }
.ib-search-head { padding: 8px 12px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--border); }
mark { background: rgba(2, 206, 171, .25); color: inherit; border-radius: 3px; padding: 0 1px; }

.chat { display: flex; flex-direction: column; min-height: 0; background: var(--chat-bg); }
.chat-head { display: flex; align-items: center; gap: 8px; padding: 9px 14px; background: var(--panel); border-bottom: 1px solid var(--border); flex-wrap: wrap; min-height: 56px; }
.chat-head .who { flex: 1; min-width: 150px; }
.chat-head .who b { display: block; font-size: 14px; font-weight: 650; }
.win { display: inline-flex; align-items: center; gap: 3px; font-weight: 550; }
.win svg { width: 11px; height: 11px; }
.win.ok { color: var(--accent-dark); }
.win.closed { color: var(--red); }
.stage-select { --c: #64748b; width: auto; height: 30px; padding: 0 28px 0 10px; font-size: 12.5px; font-weight: 600; border-radius: 7px; box-shadow: none; border-left: 3px solid var(--c); }
.ai-seg { margin: 0; }
.back-btn { display: none !important; }
.msgs { flex: 1; overflow: auto; padding: 20px 6%; display: flex; flex-direction: column; gap: 3px; }
.msg { max-width: 66%; padding: 7px 11px 5px; border-radius: 12px; border-bottom-left-radius: 4px; background: var(--in); align-self: flex-start; box-shadow: 0 0 0 1px var(--border), var(--shadow-xs); word-wrap: break-word; line-height: 1.5; font-size: 13.5px; }
.msg .text { white-space: pre-wrap; }
.msg.out { align-self: flex-end; background: var(--out); color: var(--out-text); border-radius: 12px; border-bottom-right-radius: 4px; box-shadow: 0 0 0 1px rgba(2, 206, 171, .18); }
.msg.out.bot { background: var(--navy); color: #fff; box-shadow: none; }
.msg.out.bot a { color: var(--mint-2); }
.msg.out.bot .meta, .msg.out.bot .src { color: rgba(255, 255, 255, .6); }
.msg.system { align-self: center; background: transparent; color: var(--faint); font-size: 11.5px; box-shadow: none; padding: 4px 8px; max-width: 90%; text-align: center; }
.msg .meta { font-size: 10.5px; color: var(--faint); text-align: right; margin-top: 2px; display: flex; gap: 5px; justify-content: flex-end; font-variant-numeric: tabular-nums; }
.msg .src { font-size: 11px; font-weight: 650; color: var(--muted); margin-bottom: 2px; }
.msg img, .msg video { max-width: 280px; max-height: 320px; border-radius: 8px; display: block; margin: 2px 0 4px; }
.msg.failed { box-shadow: 0 0 0 1.5px var(--red); }
.msg .err { color: var(--red); font-size: 11px; }
.msg .doc { display: inline-flex; gap: 6px; align-items: center; }
.msg .doc svg { width: 15px; height: 15px; }
.msg.note { align-self: stretch; max-width: 100%; background: #fffbea; color: #5c4400; box-shadow: 0 0 0 1px #f5e3a1; border-radius: 10px; }
.msg.note .src { color: #8a6500; display: flex; align-items: center; gap: 5px; }
.msg.note .src svg { width: 12px; height: 12px; }
.msg.note .meta { color: #a88532; }
.mention { color: var(--blue); background: rgba(47, 111, 237, .1); border-radius: 4px; padding: 0 3px; font-weight: 600; }
.tick.read { color: var(--sky); }
.day { align-self: center; font-size: 11px; font-weight: 600; color: var(--faint); margin: 12px 0 6px; display: flex; align-items: center; gap: 10px; width: 100%; }
.day::before, .day::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.composer { background: var(--panel); border-top: 1px solid var(--border); padding: 10px 14px 12px; }
.composer-box { border: 1px solid var(--border-strong); border-radius: 12px; background: var(--panel); position: relative; transition: .12s; }
.composer-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.composer-box.note { background: #fffbea; border-color: #eed98a; }
.composer-box.note:focus-within { box-shadow: 0 0 0 3px rgba(238, 217, 138, .45); }
.composer-tabs { display: flex; align-items: center; gap: 2px; padding: 6px 6px 0; }
.composer-tabs button { border: 0; background: none; padding: 4px 9px; border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; display: inline-flex; gap: 5px; align-items: center; }
.composer-tabs button svg { width: 12px; height: 12px; }
.composer-tabs button.active { background: var(--hover); color: var(--text); }
.composer-box.note .composer-tabs button.active { background: #f7e8a8; color: #5c4400; }
.composer-box textarea { border: 0 !important; box-shadow: none !important; background: transparent !important; resize: none; min-height: 48px; max-height: 200px; padding: 8px 12px; border-radius: 0; }
.composer-actions { display: flex; align-items: center; gap: 2px; padding: 2px 6px 6px; }
.composer-actions .btn.icon { width: 30px; height: 30px; border-radius: 7px; font-weight: 700; color: var(--muted); }
.composer-actions .btn.primary { height: 30px; }
.ghost-link { border: 0; background: none; color: var(--accent-dark); font-weight: 600; font-size: 12px; cursor: pointer; display: inline-flex; gap: 5px; align-items: center; padding: 4px 8px; border-radius: 6px; }
.ghost-link:hover { background: var(--accent-soft); }
.ghost-link svg { width: 13px; height: 13px; }
.ai-draft { border: 1px solid rgba(2, 206, 171, .35); background: linear-gradient(135deg, var(--accent-soft), transparent 70%); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
.ai-draft b { display: inline-flex; gap: 6px; align-items: center; color: var(--accent-dark); font-size: 12.5px; }
.ai-draft b svg { width: 14px; height: 14px; }
.ai-draft-text { white-space: pre-wrap; margin-top: 6px; font-size: 13px; }
.popover { position: absolute; left: 8px; right: 8px; bottom: calc(100% + 6px); background: var(--panel); border-radius: 12px; box-shadow: var(--shadow-lg); max-height: 280px; overflow: auto; z-index: 20; padding: 5px; }
.pop-item { padding: 7px 9px; border-radius: 8px; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; }
.pop-item .muted { flex-basis: 100%; }
.pop-item.sel, .pop-item:hover { background: var(--hover); }

.side { background: var(--panel-2); overflow: auto; padding: 12px; }
.side-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px; margin-bottom: 10px; }
.side-card.center { text-align: center; }
.side-card .avatar.xl { margin: 4px auto 10px; }
.side h3 { font-size: 11.5px; margin: 14px 0 7px; color: var(--muted); font-weight: 600; }
.side-card > h3:first-child { margin-top: 0; }
.side select { font-size: 13px; }
.order { border: 1px solid var(--border); border-radius: var(--r); padding: 10px; margin-top: 8px; font-size: 12.5px; line-height: 1.5; }
.order b { display: flex; justify-content: space-between; }
.tagbox { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.tagbox input { border: 1px dashed var(--border-strong); background: transparent; border-radius: 6px; padding: 2px 8px; font-size: 12px; width: 84px; outline: none; }
.tagbox input:focus { border-color: var(--accent); width: 130px; }
.tagbox .tag { margin: 0; }
.fu-row { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.fu-row:last-child { border-bottom: 0; }
.fu-row svg { width: 15px; height: 15px; color: var(--warn); }
.fu-row.late b { color: var(--red); }
.note-card { display: flex; align-items: center; gap: 10px; border-radius: var(--r-lg); padding: 11px 13px; margin-bottom: 10px; font-size: 12.5px; }
.note-card svg { width: 15px; height: 15px; }
.note-card.warn { background: var(--warn-soft); color: var(--warn); border: 1px solid rgba(161, 92, 7, .15); }
.note-card.ok { background: var(--accent-soft); color: var(--accent-dark); }
.snooze-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }

/* ------------------------------------------------------------------ team */
.tabbar { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 18px !important; overflow-x: auto; }
.tabbar button { border: 0; background: none; padding: 9px 12px; font-weight: 550; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font-size: 13px; }
.tabbar button:hover { color: var(--text); }
.tabbar button.active { color: var(--text); border-bottom-color: var(--navy); font-weight: 650; }
@media (prefers-color-scheme: dark) { .tabbar button.active { border-bottom-color: var(--mint); } }
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.member-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.member-card.inactive { opacity: .55; }
.member-card select { font-size: 13px; }
.online { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: var(--green); border: 2px solid var(--panel); }
.member-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.matrix-wrap { overflow: auto; }
.matrix td.c, .matrix th { text-align: center; }
.matrix th:first-child, .matrix td:first-child { text-align: left; position: sticky; left: 0; background: var(--panel); z-index: 1; min-width: 240px; }
.matrix th a { color: var(--text); font-weight: 650; }
.matrix tr.grp td { background: var(--panel-2) !important; font-size: 11px; font-weight: 650; color: var(--muted); }
.matrix input { width: 16px; height: 16px; cursor: pointer; }
.perm-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.perm-group { border: 1px solid var(--border); border-radius: var(--r); padding: 10px 12px; }
.perm-group-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.perm { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 6px 4px; color: var(--text); font-size: 13px; cursor: pointer; border-radius: 6px; font-weight: 400; }
.perm:hover { background: var(--panel-2); }
.perm input { margin-top: 3px; }
.perm b { font-weight: 550; }
.perm small { display: block; color: var(--muted); font-size: 11.5px; }
.reply-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.reply-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px; box-shadow: var(--shadow); }
.reply-card p { white-space: pre-wrap; color: var(--muted); font-size: 13px; margin: 8px 0 10px; }
.timeline { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.tl-row { display: flex; gap: 12px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--border); font-size: 13px; }
.tl-row:last-child { border-bottom: 0; }

/* ------------------------------------------------------------------ modal / toast */
.modal-bg { position: fixed; inset: 0; background: rgba(6, 14, 30, .45); backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 50; padding: 16px; animation: fade .12s; }
.modal { background: var(--panel); border-radius: 16px; padding: 22px; width: 520px; max-width: 100%; max-height: 90vh; overflow: auto; box-shadow: var(--shadow-lg); animation: pop .16s ease-out; }
.modal.wide { width: 760px; }
.modal h2 { margin: 0 0 6px; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.modal .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.tpl-preview { background: var(--chat-bg); padding: 12px 14px; border-radius: var(--r); white-space: pre-wrap; font-size: 13px; margin-top: 10px; border: 1px solid var(--border); }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 22px; background: #0b1628; color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; max-width: 90%; font-weight: 500; box-shadow: var(--shadow-lg); animation: toastin .18s; font-size: 13px; }
.toast.error { background: var(--red); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.985); } }
@keyframes toastin { from { opacity: 0; transform: translate(-50%, 8px); } }
.skeleton { height: 120px; border-radius: var(--r-lg); background: linear-gradient(90deg, var(--hover), var(--panel-2), var(--hover)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ------------------------------------------------------------------ calls */
.call { position: fixed; right: 22px; bottom: 22px; z-index: 60; animation: pop .2s ease-out; }
.call-card { background: radial-gradient(120% 120% at 0% 0%, #123f86, #061837 60%); color: #fff; border-radius: 20px; padding: 26px 24px 22px; width: 300px; text-align: center; box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .08); }
.call-avatar { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, var(--mint-2), var(--mint)); color: #062a24; margin: 0 auto 12px; display: grid; place-items: center; font-size: 26px; font-weight: 800; }
.call-name { font-size: 18px; font-weight: 700; }
.call-state { opacity: .7; margin: 4px 0 20px; font-size: 13px; }
.call-actions { display: flex; gap: 10px; justify-content: center; }
.call-actions button { border: 0; border-radius: 99px; padding: 10px 18px; cursor: pointer; color: #fff; font-weight: 650; }
.call-actions .accept { background: var(--mint); color: #062a24; }
.call-actions .reject { background: var(--red); }
.call-actions .mute { background: rgba(255, 255, 255, .14); }
.ringing .call-avatar { animation: pulse 1.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(33, 252, 210, .55); } 100% { box-shadow: 0 0 0 22px rgba(33, 252, 210, 0); } }

/* ------------------------------------------------------------------ login */
.auth { position: relative; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; overflow: hidden;
  background: radial-gradient(1100px 650px at 50% -18%, #133f88 0%, #082552 45%, #041330 100%); }
.auth-glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.auth-glow.g1 { width: 520px; height: 520px; background: #02ceab; top: -180px; left: -140px; opacity: .3; }
.auth-glow.g2 { width: 460px; height: 460px; background: #21fcd2; bottom: -200px; right: -120px; opacity: .18; }
.auth-grid { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 70%); }
.auth-card { position: relative; z-index: 1; width: 420px; max-width: 100%; background: var(--panel); border-radius: 24px; padding: 62px 34px 30px; text-align: center;
  box-shadow: 0 30px 80px rgba(2, 10, 30, .45), 0 0 0 1px rgba(255, 255, 255, .06); animation: pop .35s ease-out; margin-top: 44px; }
.auth-icon { position: absolute; top: -46px; left: 50%; transform: translateX(-50%); width: 92px; height: 92px; border-radius: 24px;
  box-shadow: 0 16px 40px rgba(2, 206, 171, .35), 0 0 0 6px var(--panel); animation: float 5s ease-in-out infinite; }
.auth-icon img { width: 100%; height: 100%; border-radius: 24px; display: block; }
@keyframes float { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -6px); } }
.auth-logo { display: block; height: 38px; margin: 6px auto 10px; }
.auth-sub { color: var(--muted); margin: 0 0 24px; font-size: 14px; }
.auth-sub b { color: var(--text); font-weight: 600; }
.auth .google-btn { display: flex; justify-content: center; margin: 0 auto; min-height: 44px; }
.auth .divider { margin: 20px 0 14px; }
.auth-form { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.field { display: flex; align-items: center; gap: 10px; margin: 0; border: 1px solid var(--border); background: var(--panel-2); border-radius: 12px; padding: 0 14px; transition: .15s; font-weight: 400; }
.field:focus-within { border-color: var(--accent); background: var(--panel); box-shadow: 0 0 0 3px var(--accent-ring); }
.field span { color: var(--faint); display: grid; place-items: center; }
.field svg { width: 17px; height: 17px; }
.field input { border: 0; background: transparent; outline: none; padding: 12px 0; width: 100%; font-size: 14.5px; }
.auth-submit { width: 100%; height: 44px; font-size: 14.5px; border-radius: 12px; margin-top: 4px; }
.auth-submit span { transition: transform .15s; }
.auth-submit:hover span { transform: translateX(3px); }
.auth-foot { position: relative; z-index: 1; margin-top: 24px; color: rgba(255, 255, 255, .55); font-size: 12.5px; text-align: center; }
.brand-logo.dark { display: none; }
@media (prefers-color-scheme: dark) {
  .brand-logo.light { display: none !important; }
  .brand-logo.dark { display: block; }
  .msg.note { background: #2b2410; color: #f8e7a8; box-shadow: 0 0 0 1px #4d3f14; }
  .msg.note .src, .msg.note .meta { color: #d9b650; }
  .composer-box.note { background: #221d0c; border-color: #4d3f14; }
  .composer-box.note .composer-tabs button.active { background: #4d3f14; color: #f8e7a8; }
  .mention { color: #93b4ff; }
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1500px) { .pro-inbox { grid-template-columns: 210px 330px 1fr; } .pro-inbox > .side { display: none; } }
@media (max-width: 1180px) {
  .shell { grid-template-columns: 64px 1fr; }
  .nav .brand img.brand-logo { display: none !important; } .nav .brand .icon { display: block; } .nav .brand { justify-content: center; padding: 4px 0 14px; }
  .nav a span, .nav-group, .me .grow, .nav-search span, .nav-search kbd { display: none; }
  .nav a { justify-content: center; } .nav-search { justify-content: center; } .me { flex-direction: column; border: 0; background: none; padding: 0; }
  .nav-count { position: absolute; top: 2px; right: 4px; }
  .pro-inbox { grid-template-columns: 320px 1fr; } .ib-nav { display: none; }
  .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: 1fr 60px; }
  .nav { order: 2; flex-direction: row; justify-content: space-around; padding: 0 4px; overflow: hidden; background: var(--side-bg); }
  .nav .brand, .nav-group, .me, .nav .spacer, .nav-search, .nav a[data-nav="bot"], .nav a[data-nav="contacts"], .nav a[data-nav="team"] { display: none; }
  .nav a { flex-direction: column; gap: 2px; font-size: 10px; padding: 8px 6px; }
  .nav a.active::before { display: none; }
  .topbar { padding: 0 12px; } .topbar .status { display: none; }
  .pro-inbox { grid-template-columns: 1fr; }
  .pro-inbox > * { border: 0; }
  .pro-inbox.has-chat .ib-list { display: none; }
  .pro-inbox:not(.has-chat) .chat { display: none; }
  .back-btn { display: inline-flex !important; }
  .ai-seg, #snooze-btn, #star-btn { display: none !important; }
  .msgs { padding: 12px; } .msg { max-width: 86%; }
  .page { padding: 18px 14px; }
  .perm-list { grid-template-columns: 1fr; }
  .call { left: 14px; right: 14px; bottom: 72px; } .call-card { width: auto; }
  .auth-card { padding: 58px 22px 26px; border-radius: 20px; }
}
.cards.kpis { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .cards.kpis { grid-template-columns: repeat(2, 1fr); } }
