/* 88 Leads — plochý korporátní návrh (Bootstrap 5)
   Zásady: plochost, zarovnání, hustota. Světlý default, tmavý a kompaktní režim.
   Animace jemné a funkční — podtrhují, neruší. */

@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@600;700;800&display=swap");

:root {
  --crm-primary: #1e5eaa;
  --crm-primary-dark: #174a87;
  --crm-primary-soft: #e8f0fa;
  --crm-bg: #f2f4f7;
  --crm-surface: #ffffff;
  --crm-card-border: #dde3ea;
  --crm-row-border: #eaeef3;
  --crm-hover: #f4f7fa;
  --crm-thead-bg: #f8fafc;
  --crm-text: #1e2836;
  --crm-text-2: #5b6b7c;
  --crm-text-3: #8494a5;
  --crm-sidebar-bg: #1c2b3a;
  --crm-sidebar-text: #b9c5d1;
  --crm-sidebar-active: #ffffff;
  --crm-green: #157347;
  --crm-green-bg: #dcf3e6;
  --crm-amber: #9a5b00;
  --crm-amber-bg: #fdeed3;
  --crm-red: #b02a37;
  --crm-red-bg: #fbe1e3;
  --crm-teal: #0f6674;
  --crm-teal-bg: #d9f0f4;
  --crm-indigo: #4a3fa3;
  --crm-indigo-bg: #e7e4f7;
  --crm-gray-bg: #eceff3;
  --bs-body-bg: var(--crm-bg);
  --bs-body-color: var(--crm-text);
  --bs-body-font-size: .875rem;
  --bs-border-radius: .5rem;
  --bs-primary: var(--crm-primary);
  --bs-primary-rgb: 30, 94, 170;
  --bs-link-color: var(--crm-primary);
  --bs-link-hover-color: var(--crm-primary-dark);
  --crm-pad-y: .5rem;
  --crm-pad-x: .75rem;
  --crm-font-table: .82rem;
}

/* Tmavý režim */
[data-theme="dark"] {
  --crm-primary: #4d8fd6;
  --crm-primary-dark: #6ba3e0;
  --crm-primary-soft: #1d3a54;
  --crm-bg: #10161d;
  --crm-surface: #1a232e;
  --crm-card-border: #2a3644;
  --crm-row-border: #232e3b;
  --crm-hover: #212c39;
  --crm-thead-bg: #16202a;
  --crm-text: #e4eaf1;
  --crm-text-2: #9daebf;
  --crm-text-3: #728296;
  --crm-sidebar-bg: #0d141b;
  --crm-sidebar-text: #93a3b3;
  --crm-green: #4ade80;  --crm-green-bg: #123324;
  --crm-amber: #fbbf24;  --crm-amber-bg: #3a2c10;
  --crm-red: #f87171;    --crm-red-bg: #3b1a1e;
  --crm-teal: #38cfd9;   --crm-teal-bg: #0e3236;
  --crm-indigo: #a5b4fc; --crm-indigo-bg: #272348;
  --crm-gray-bg: #232e3b;
  --bs-primary-rgb: 77, 143, 214;
}
[data-theme="dark"] .bg-white { background-color: var(--crm-surface) !important; }
[data-theme="dark"] .text-dark { color: var(--crm-text) !important; }
[data-theme="dark"] .topbar-search .kbd-hint { background: var(--crm-surface); }

/* Kompaktní režim */
[data-density="compact"] {
  --crm-pad-y: .32rem;
  --crm-pad-x: .6rem;
  --crm-font-table: .78rem;
  --bs-body-font-size: .82rem;
}
[data-density="compact"] .app-content { padding-top: .85rem; }
[data-density="compact"] .card-header { padding: .45rem .75rem; }
[data-density="compact"] .kpi-tile { padding: .6rem .8rem; }
[data-density="compact"] .kpi-tile .kpi-value { font-size: 1.3rem; }
[data-density="compact"] .list-group-item { padding-top: .4rem; padding-bottom: .4rem; }
[data-density="compact"] .page-header { margin-bottom: .65rem; }

html, body { height: 100%; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--crm-bg);
  color: var(--crm-text);
  font-size: var(--bs-body-font-size);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, .kpi-value, .sidebar-brand, .modal-title {
  font-family: "Manrope", "Inter", system-ui, sans-serif;
}

/* == Layout ================================================= */
.app { display: flex; min-height: 100vh; }
.app-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.app-content { flex: 1 1 auto; padding: 1.25rem 1.5rem 3rem; max-width: 1520px; width: 100%; margin: 0 auto; animation: crmFadeUp .28s ease both; }
@keyframes crmFadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* == Sidebar ================================================ */
.sidebar {
  width: 232px; flex: 0 0 232px;
  background: var(--crm-sidebar-bg);
  color: var(--crm-sidebar-text);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: #3a4d61 transparent;
}
.sidebar-brand {
  display: flex; align-items: center; gap: .55rem;
  padding: .95rem 1rem; color: #fff; text-decoration: none;
  font-weight: 800; font-size: .95rem; letter-spacing: .01em;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-brand .brand-mark {
  width: 26px; height: 26px; border-radius: 6px; flex: 0 0 26px;
  background: linear-gradient(135deg, #2f7fd4, #1e5eaa); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 800;
}
.sidebar-group-label {
  padding: .9rem 1rem .3rem;
  font-size: .655rem; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: #72869b;
}
.sidebar-nav { list-style: none; margin: 0; padding: 0 .5rem; }
.sidebar-nav a {
  display: flex; align-items: center; gap: .6rem;
  padding: .42rem .6rem; margin-bottom: 1px;
  color: var(--crm-sidebar-text); text-decoration: none;
  font-size: .82rem; border-radius: .375rem;
  border-left: 3px solid transparent;
  transition: background-color .12s ease, color .12s ease;
}
.sidebar-nav a i { font-size: .95rem; width: 18px; text-align: center; flex: 0 0 18px; }
.sidebar-nav a:hover { background: rgba(255,255,255,.06); color: #e8eef4; }
.sidebar-nav a.active {
  background: rgba(255,255,255,.09);
  color: var(--crm-sidebar-active);
  border-left-color: #5b9bd9;
  font-weight: 600;
}
.sidebar-footer {
  margin-top: auto; padding: .8rem 1rem;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .72rem; color: #72869b;
}

/* == Topbar ================================================= */
.topbar {
  background: var(--crm-surface); border-bottom: 1px solid var(--crm-card-border);
  display: flex; align-items: center; gap: .75rem;
  padding: 0 1.5rem; height: 54px;
  position: sticky; top: 0; z-index: 1020;
}
.topbar-search { flex: 0 1 420px; position: relative; }
.topbar-search input {
  background: var(--crm-bg); border: 1px solid var(--crm-card-border);
  color: var(--crm-text);
  font-size: .82rem; padding-left: 2.1rem;
}
.topbar-search .bi-search {
  position: absolute; left: .7rem; top: 50%; transform: translateY(-50%);
  color: var(--crm-text-3); font-size: .85rem;
}
.topbar-search .kbd-hint {
  position: absolute; right: .55rem; top: 50%; transform: translateY(-50%);
  font-size: .68rem; color: var(--crm-text-3);
  border: 1px solid var(--crm-card-border); border-radius: 4px;
  padding: 0 .3rem; background: var(--crm-surface);
}
.topbar .avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--crm-primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 700;
}
.topbar-icon-btn {
  background: none; border: 0; color: var(--crm-text-2);
  width: 32px; height: 32px; border-radius: .375rem;
  display: inline-flex; align-items: center; justify-content: center;
  position: relative; font-size: .95rem;
  transition: background-color .12s ease, color .12s ease;
}
.topbar-icon-btn:hover { background: var(--crm-gray-bg); color: var(--crm-text); }
.topbar-icon-btn .dot {
  position: absolute; top: 4px; right: 5px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--crm-red); border: 1.5px solid var(--crm-surface);
}
.topbar-icon-btn .dot.ok { background: #22c55e; }

/* Notifikační dropdown */
.notif-menu { width: 360px; padding: 0; }
.notif-head { display: flex; justify-content: space-between; align-items: center; padding: .6rem .9rem; border-bottom: 1px solid var(--crm-card-border); font-weight: 700; font-size: .8rem; }
.notif-item { display: flex; gap: .6rem; padding: .55rem .9rem; border-bottom: 1px solid var(--crm-row-border); font-size: .78rem; color: var(--crm-text); text-decoration: none; align-items: flex-start; }
.notif-item:hover { background: var(--crm-hover); }
.notif-item.unread { background: var(--crm-primary-soft); }
.notif-item i { margin-top: .1rem; }
.notif-item .nt-time { font-size: .68rem; color: var(--crm-text-3); }

/* Stav systému dropdown */
.status-menu { width: 330px; padding: 0; }
.status-row { display: flex; align-items: center; gap: .6rem; padding: .5rem .9rem; font-size: .78rem; border-bottom: 1px solid var(--crm-row-border); }
.status-row:last-child { border-bottom: 0; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; }
.status-dot.ok { background: #22c55e; }
.status-dot.warn { background: #f59e0b; }
.status-dot.err { background: #ef4444; }
.status-row .st-meta { margin-left: auto; font-size: .68rem; color: var(--crm-text-3); white-space: nowrap; }

/* == Page header ============================================ */
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.page-header h1 { font-size: 1.25rem; font-weight: 800; margin: 0; letter-spacing: -.01em; }
.page-header .breadcrumb { margin: 0 0 .15rem; font-size: .72rem; --bs-breadcrumb-divider-color: var(--crm-text-3); }
.page-header .breadcrumb a { text-decoration: none; color: var(--crm-text-3); }
.page-header .breadcrumb .active { color: var(--crm-text-2); }

/* == Cards ================================================== */
.card { border: 1px solid var(--crm-card-border); border-radius: .5rem; box-shadow: none; background: var(--crm-surface); transition: border-color .15s ease; }
.card:hover { border-color: #c7d2de; }
[data-theme="dark"] .card:hover { border-color: #3b4a5c; }
.card-header {
  background: var(--crm-surface); border-bottom: 1px solid var(--crm-card-border);
  font-weight: 700; font-size: .85rem; padding: .65rem 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  border-radius: .5rem .5rem 0 0 !important;
}
.card-header .card-tools { display: flex; align-items: center; gap: .4rem; font-weight: 400; }

/* KPI dlaždice */
.kpi-tile { padding: .85rem 1rem; }
.kpi-tile .kpi-label { font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--crm-text-3); margin-bottom: .2rem; }
.kpi-tile .kpi-value { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.kpi-tile .kpi-sub { font-size: .74rem; color: var(--crm-text-2); margin-top: .15rem; }

/* == Tabulky ================================================ */
.table-crm { margin: 0; font-size: var(--crm-font-table); --bs-table-bg: transparent; color: var(--crm-text); }
.table-crm thead th {
  background: var(--crm-thead-bg); color: var(--crm-text-3);
  font-size: .67rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  border-bottom: 1px solid var(--crm-card-border); padding: var(--crm-pad-y) var(--crm-pad-x);
  white-space: nowrap; position: sticky; top: 54px; z-index: 5;
  cursor: pointer; user-select: none;
}
.table-crm thead th.no-sort { cursor: default; }
.table-crm thead th .sort-ind { opacity: 0; margin-left: .25rem; font-size: .6rem; transition: opacity .12s; }
.table-crm thead th:hover .sort-ind { opacity: .55; }
.table-crm thead th.sorted .sort-ind { opacity: 1; color: var(--crm-primary); }
.table-crm tbody td { padding: var(--crm-pad-y) var(--crm-pad-x); vertical-align: middle; border-bottom: 1px solid var(--crm-row-border); color: var(--crm-text); }
.table-crm tbody tr { transition: background-color .1s ease; }
.table-crm tbody tr:hover { background: var(--crm-hover); }
.table-crm .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-crm a { text-decoration: none; font-weight: 600; }
.table-responsive { border-radius: .5rem; }
.card > .table-responsive .table-crm thead th { top: 0; }

/* == Badge / stavy ========================================== */
.badge-stav { font-size: .68rem; font-weight: 600; padding: .28em .55em; border-radius: .3rem; display: inline-block; }
.stav-novy      { background: var(--crm-primary-soft); color: var(--crm-primary-dark); }
.stav-kontakt   { background: var(--crm-teal-bg);   color: var(--crm-teal); }
.stav-schuzka   { background: var(--crm-indigo-bg); color: var(--crm-indigo); }
.stav-nabidka   { background: var(--crm-amber-bg);  color: var(--crm-amber); }
.stav-vyhrano   { background: var(--crm-green-bg);  color: var(--crm-green); }
.stav-ztraceno  { background: var(--crm-red-bg);    color: var(--crm-red); }
.stav-neutral   { background: var(--crm-gray-bg);   color: var(--crm-text-2); }

/* == Zdraví leadu =========================================== */
.health-ring { position: relative; width: 52px; height: 52px; flex: 0 0 52px; }
.health-ring svg { transform: rotate(-90deg); }
.health-ring .hr-val { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .8rem; font-variant-numeric: tabular-nums; }
.health-bar { height: 6px; border-radius: 3px; background: var(--crm-gray-bg); overflow: hidden; }
.health-bar > span { display: block; height: 100%; border-radius: 3px; }
.h-good { background: #22c55e; } .h-mid { background: #f59e0b; } .h-bad { background: #ef4444; }

/* == Filtry ================================================= */
.filter-bar { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .75rem; }
.filter-bar .form-select, .filter-bar .form-control { width: auto; font-size: .8rem; }
.filter-chip {
  display: inline-flex; align-items: center; gap: .3rem;
  border: 1px solid var(--crm-card-border); background: var(--crm-surface);
  border-radius: 999px; padding: .22rem .7rem; font-size: .76rem;
  color: var(--crm-text-2); cursor: pointer; text-decoration: none;
  transition: background-color .12s ease, color .12s ease;
}
.filter-chip:hover { background: var(--crm-gray-bg); color: var(--crm-text); }
.filter-chip.active { background: var(--crm-primary); border-color: var(--crm-primary); color: #fff; }

/* == Kanban ================================================= */
.kanban { display: flex; gap: .75rem; overflow-x: auto; padding-bottom: .75rem; align-items: flex-start; }
.kanban-col { flex: 0 0 268px; background: var(--crm-gray-bg); border: 1px solid var(--crm-card-border); border-radius: .5rem; }
.kanban-col-header { padding: .6rem .75rem; font-size: .75rem; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.kanban-col-body { padding: 0 .5rem .5rem; display: flex; flex-direction: column; gap: .5rem; min-height: 60px; }
.kanban-card { background: var(--crm-surface); border: 1px solid var(--crm-card-border); border-radius: .4rem; padding: .55rem .65rem; font-size: .78rem; cursor: grab; transition: border-color .12s ease, transform .12s ease; }
.kanban-card:hover { border-color: #b9c8d8; transform: translateY(-1px); }
.kanban-card .kc-firm { font-weight: 600; display: block; text-decoration: none; color: var(--crm-text); }
.kanban-card .kc-meta { display: flex; justify-content: space-between; color: var(--crm-text-3); font-size: .72rem; margin-top: .3rem; }
.rotting { color: var(--crm-red); font-weight: 600; }

/* == Avatar mini ============================================ */
.avatar-xs {
  width: 22px; height: 22px; border-radius: 50%; flex: 0 0 22px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .6rem; font-weight: 700; color: #fff; background: var(--crm-text-3);
  vertical-align: middle;
}
.avatar-xs.u-karel { background: #1e5eaa; }
.avatar-xs.u-patrik { background: #157347; }
.avatar-xs.u-krystof { background: #4a3fa3; }

/* == Inbox 3-panel ========================================== */
.inbox-grid { display: grid; grid-template-columns: 320px 1fr 300px; gap: 0; border: 1px solid var(--crm-card-border); border-radius: .5rem; background: var(--crm-surface); overflow: hidden; min-height: 620px; }
.inbox-list { border-right: 1px solid var(--crm-card-border); overflow-y: auto; }
.inbox-item { display: block; padding: .65rem .85rem; border-bottom: 1px solid var(--crm-row-border); text-decoration: none; color: var(--crm-text); }
.inbox-item:hover { background: var(--crm-hover); }
.inbox-item.active { background: var(--crm-primary-soft); border-left: 3px solid var(--crm-primary); }
.inbox-item.unread .ii-from { font-weight: 700; }
.inbox-side { border-left: 1px solid var(--crm-card-border); }

/* == Timeline aktivit ======================================= */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 14px; top: 6px; bottom: 6px; width: 2px; background: var(--crm-row-border); }
.timeline-item { position: relative; padding: 0 0 1rem 2.4rem; }
.timeline-item .tl-icon {
  position: absolute; left: 2px; top: 0;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--crm-surface); border: 1px solid var(--crm-card-border);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .72rem; color: var(--crm-text-2); z-index: 1;
}
.timeline-item .tl-time { font-size: .7rem; color: var(--crm-text-3); }

/* == Detail: dl mřížka ====================================== */
.dl-grid { display: grid; grid-template-columns: 140px 1fr; row-gap: .45rem; column-gap: .8rem; margin: 0; font-size: .82rem; }
.dl-grid dt { font-weight: 500; color: var(--crm-text-3); }
.dl-grid dd { margin: 0; }

/* == Nastavení: boční taby ================================== */
.settings-nav .list-group-item { border: 0; border-radius: .375rem; font-size: .82rem; padding: .5rem .75rem; color: var(--crm-text-2); background: transparent; }
.settings-nav .list-group-item.active { background: var(--crm-primary-soft); color: var(--crm-primary-dark); font-weight: 600; }

/* == Drobnosti ============================================== */
.text-muted-2 { color: var(--crm-text-3) !important; }
.fw-num { font-variant-numeric: tabular-nums; }
.btn { font-size: .82rem; }
.btn-sm { font-size: .76rem; }
.btn-primary { --bs-btn-bg: var(--crm-primary); --bs-btn-border-color: var(--crm-primary); --bs-btn-hover-bg: var(--crm-primary-dark); --bs-btn-hover-border-color: var(--crm-primary-dark); --bs-btn-active-bg: var(--crm-primary-dark); --bs-btn-active-border-color: var(--crm-primary-dark); }
.btn-outline-primary { --bs-btn-color: var(--crm-primary); --bs-btn-border-color: var(--crm-primary); --bs-btn-hover-bg: var(--crm-primary); --bs-btn-hover-border-color: var(--crm-primary); --bs-btn-active-bg: var(--crm-primary-dark); --bs-btn-active-border-color: var(--crm-primary-dark); }
.nav-tabs { --bs-nav-tabs-link-active-color: var(--crm-primary-dark); font-size: .82rem; }
.nav-tabs .nav-link { color: var(--crm-text-2); }
.form-label { font-size: .78rem; font-weight: 600; color: var(--crm-text-2); margin-bottom: .25rem; }
.progress { border-radius: .25rem; }
.modal-title { font-size: 1rem; font-weight: 700; }
.dropdown-menu { font-size: .82rem; }
.toast { font-size: .82rem; }

/* Command palette */
.cmdk-list { max-height: 320px; overflow-y: auto; }
.cmdk-item { display: flex; align-items: center; gap: .6rem; padding: .5rem .75rem; border-radius: .375rem; color: var(--crm-text); text-decoration: none; font-size: .84rem; }
.cmdk-item:hover, .cmdk-item.focus { background: var(--crm-primary-soft); }
.cmdk-item i { color: var(--crm-text-3); width: 18px; text-align: center; }

/* == Chatbot ================================================ */
.chatbot-fab {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1050;
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: var(--crm-primary); color: #fff; font-size: 1.15rem;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  transition: transform .15s ease, background-color .15s ease;
}
.chatbot-fab:hover { transform: translateY(-2px); background: var(--crm-primary-dark); }
.chatbot-panel {
  position: fixed; right: 1.25rem; bottom: 5.25rem; z-index: 1050;
  width: 372px; max-width: calc(100vw - 2rem); height: 540px; max-height: calc(100vh - 8rem);
  background: var(--crm-surface); border: 1px solid var(--crm-card-border); border-radius: .6rem;
  display: none; flex-direction: column; overflow: hidden;
  box-shadow: 0 10px 34px rgba(0,0,0,.16);
}
.chatbot-panel.open { display: flex; animation: crmFadeUp .2s ease both; }
.chatbot-head { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border-bottom: 1px solid var(--crm-card-border); background: var(--crm-sidebar-bg); color: #fff; }
.chatbot-head .cb-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }
.chatbot-body { flex: 1 1 auto; overflow-y: auto; padding: .9rem; display: flex; flex-direction: column; gap: .55rem; }
.chat-msg { max-width: 86%; padding: .5rem .7rem; border-radius: .55rem; font-size: .8rem; line-height: 1.45; }
.chat-msg.bot { background: var(--crm-gray-bg); color: var(--crm-text); align-self: flex-start; border-bottom-left-radius: .15rem; }
.chat-msg.user { background: var(--crm-primary); color: #fff; align-self: flex-end; border-bottom-right-radius: .15rem; }
.chat-msg.typing span { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--crm-text-3); margin-right: 3px; animation: cbBlink 1s infinite; }
.chat-msg.typing span:nth-child(2) { animation-delay: .2s; }
.chat-msg.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes cbBlink { 0%,80%,100% { opacity: .25; } 40% { opacity: 1; } }
.chat-chips { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0 .9rem .5rem; }
.chat-foot { display: flex; gap: .5rem; padding: .6rem .9rem; border-top: 1px solid var(--crm-card-border); }
.chat-foot input { flex: 1 1 auto; }

/* Login */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--crm-bg); }

/* Mobil */
@media (max-width: 992px) {
  .sidebar { position: fixed; z-index: 1040; left: -240px; transition: left .18s ease; }
  .sidebar.open { left: 0; }
  .app-content { padding: 1rem; }
  .inbox-grid { grid-template-columns: 1fr; min-height: 0; }
  .inbox-list, .inbox-side { border: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
