/* ============================================================================
   KMT Auth - application stylesheet
   Ported from the approved mockups (login-v2, dashboard-v2, console).
   Styles the real template class names. Design language: indigo->violet brand
   gradient, KMT ribbon logo, amber CTA, soft tinted cards, collapsible
   left-rail launcher. No em-dashes anywhere.
   ============================================================================ */

/* ---- design tokens -------------------------------------------------------- */
:root {
  --indigo:   #4F5F9E;
  --indigo-2: #6172b4;
  --violet:   #7d5fae;
  --gold:     #FDCB33;
  --amber:    #ec8c39;
  --amber-2:  #f0a85c;

  --ink:    #2b2f38;
  --muted:  #6a7186;
  --faint:  #9aa1b2;
  --rail-ink: #46506b;

  --page:   #eef0f4;
  --panel:  #f4f5f8;
  --card:   #ffffff;
  --field:  #f8f9fb;
  --line:   #e8eaef;
  --line-2: #eef0f4;

  --up:     #1a9d54;
  --down:   #d2603a;

  --radius:   14px;
  --radius-s: 10px;
  --shadow:    0 2px 10px rgba(40, 50, 90, .06);
  --shadow-up: 0 6px 16px rgba(79, 95, 158, .35);
  --shadow-amber: 0 6px 16px rgba(236, 140, 57, .35);
  --grad-brand: linear-gradient(90deg, var(--indigo), var(--indigo-2));
  --grad-login: linear-gradient(150deg, var(--indigo), var(--indigo-2) 55%, var(--violet));
  --grad-amber: linear-gradient(135deg, var(--amber), var(--amber-2));
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
[x-cloak] { display: none !important; }

html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--page);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a { color: inherit; }

/* ---- top bar (base.html) -------------------------------------------------- */
.topbar {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .7rem 1.4rem;
  background: var(--grad-brand);
  color: #fff;
}
.brand-logo { height: 30px; width: auto; display: block; }
.brand-client {
  font-weight: 600;
  padding-left: .85rem;
  border-left: 1px solid rgba(255, 255, 255, .35);
}
.user-menu { margin-left: auto; position: relative; }
.user-menu > button {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .22);
  padding: .4rem .8rem;
  border-radius: 999px;
  font: inherit;
  font-size: .85rem;
  cursor: pointer;
  transition: background .15s;
}
.user-menu > button:hover { background: rgba(255, 255, 255, .24); }
.user-menu > button::before {
  content: "";
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.user-menu .menu {
  position: absolute;
  right: 0;
  top: calc(100% + .4rem);
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: .35rem;
  display: grid;
  gap: .1rem;
  min-width: 180px;
  box-shadow: 0 10px 30px rgba(40, 50, 90, .18);
  z-index: 30;
}
.user-menu .menu a {
  text-decoration: none;
  padding: .5rem .65rem;
  border-radius: 8px;
  font-size: .86rem;
  color: var(--ink);
}
.user-menu .menu a:hover { background: var(--panel); }

/* ---- main + footer -------------------------------------------------------- */
main {
  flex: 1;
  width: 100%;
  /* Fluid shell: the app pages span ~95% of the viewport (2.5% gutters each
     side) so there is room to grow without locking into a fixed max-width. The
     gutters keep the rounded card + border breathing. Login and the narrow auth
     forms re-center themselves via their own rules below. */
  max-width: none;
  margin: 0 auto;
  padding: 1.25rem 2.5%;
}
.cobrand {
  text-align: center;
  padding: 1rem 1.25rem 1.4rem;
  color: var(--faint);
  font-size: .8rem;
}

/* ============================================================================
   LOGIN  (login.html -> .login-split). App chrome suppressed on this page.
   ============================================================================ */
body:has(.login-split) { background: #e9ecf3; }
body:has(.login-split) .topbar,
body:has(.login-split) .cobrand { display: none; }
body:has(.login-split) main { display: grid; place-items: center; max-width: none; padding: 1.5rem; }

.login-split {
  display: flex;
  width: 860px;
  max-width: 100%;
  min-height: 480px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 18px 50px rgba(40, 50, 90, .22);
  animation: rise .5s cubic-bezier(.2, .7, .3, 1) both;
}
.login-left {
  width: 45%;
  background: var(--grad-login);
  color: #fff;
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.login-left::after {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  right: -120px; top: -90px;
  background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 70%);
  pointer-events: none;
}
.brand-logo-lg { height: 40px; width: auto; align-self: flex-start; position: relative; z-index: 1; }
#lottie { width: 230px; height: 230px; position: relative; z-index: 1; }
#lottie svg { display: block; }
.ws-name { align-self: flex-start; margin: 0; font-size: .82rem; opacity: .75; position: relative; z-index: 1; }

.login-form { width: 55%; padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; }
.login-form h1 { margin: 0 0 4px; font-size: 1.45rem; font-weight: 700; }
.login-form label { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); margin-top: 16px; }
.login-form input {
  width: 100%;
  margin-top: 6px;
  padding: 11px 13px;
  border: 1px solid #dfe2ea;
  border-radius: var(--radius-s);
  background: var(--field);
  font: inherit;
  font-size: .92rem;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.login-form input:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(236, 140, 57, .15);
  background: #fff;
}
.login-form .forgot { align-self: flex-end; margin: 12px 0 22px; font-size: .8rem; font-weight: 600; color: var(--amber); text-decoration: none; }
.login-form .forgot:hover { text-decoration: underline; }
.login-form .error { margin: 12px 0 0; padding: .6rem .75rem; border-radius: 8px; background: #fdecec; color: #b3261e; font-size: .82rem; }

/* shared amber CTA */
.login-form button[type="submit"],
.auth-form button[type="submit"],
.create-panel button[type="submit"] {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border: none;
  border-radius: var(--radius-s);
  background: var(--grad-amber);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  box-shadow: var(--shadow-amber);
  transition: transform .12s, filter .12s;
}
.login-form button[type="submit"]:hover,
.auth-form button[type="submit"]:hover,
.create-panel button[type="submit"]:hover { transform: translateY(-1px); filter: brightness(1.03); }

/* ============================================================================
   SHARED LAYOUT  (.layout = rail + main section). Used by dashboard + console.
   ============================================================================ */
.layout {
  display: flex;
  background: var(--panel);
  border-radius: var(--radius);
  min-height: 580px;
  overflow: visible;
  box-shadow: var(--shadow);
  animation: rise .4s cubic-bezier(.2, .7, .3, 1) both;
}

/* left rail launcher (partials/rail.html) */
.rail {
  width: 226px;
  flex-shrink: 0;
  padding: 14px 12px;
  transition: width .2s ease;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.railhead { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 6px; }
.railhead .eyebrow { font-size: .66rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--faint); }
.rail-toggle {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--faint);
  font-size: 1rem; line-height: 1;
  cursor: pointer;
  transition: color .15s;
}
.rail-toggle:hover { color: var(--indigo); }

.tile {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--rail-ink);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(40, 50, 90, .05);
  transition: transform .12s, box-shadow .12s;
}
.tile:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(40, 50, 90, .13); }
.tile.kind-assistant:hover { box-shadow: 0 4px 12px rgba(253, 203, 51, .4); }
.tile img,
.tile svg { width: 20px; height: 20px; flex-shrink: 0; }
.tile.active svg { color: #fff; }
.tile .lbl { font-size: .85rem; font-weight: 600; }
.tile.active { background: #4F5E9D; color: #fff; border-color: transparent; box-shadow: var(--shadow-up); }
.tile.active .lbl { color: #fff; }
.tile.active img { filter: brightness(0) invert(1); }
.tile.not-ready { opacity: .65; }
.tile .badge {
  margin-left: auto;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
  background: #fdf3e0;
  color: #c4702c;
}
.rail.collapsed { width: 66px; }
.rail.collapsed .railhead .eyebrow { display: none; }
.rail.collapsed .tile { justify-content: center; padding: 11px 0; }
.rail.collapsed .tile .lbl,
.rail.collapsed .tile .badge { display: none; }

/* ============================================================================
   DASHBOARD heartbeat
   ============================================================================ */
.heartbeat { flex: 1; min-width: 0; padding: 20px 24px; }
.dash-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; gap: 1rem; }
.dash-head h1 { margin: 0; font-size: 1.3rem; font-weight: 700; }
.dash-head .sub { margin: 2px 0 0; color: var(--faint); font-size: .85rem; }
.dash-head .updated { font-size: .8rem; color: var(--faint); white-space: nowrap; }

/* headline stat cards */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.stat { padding: 15px 16px; border-radius: var(--radius); }
.stat-visits   { background: #eef0fb; }
.stat-contacts { background: #fdf0e6; }
.stat-crm      { background: #fdf8e3; }
.stat-label { font-size: .78rem; color: var(--muted); }
.stat-value { font-size: 1.9rem; font-weight: 800; line-height: 1.1; margin: 2px 0; }
.stat-visits   .stat-value { color: #3a4a86; }
.stat-contacts .stat-value { color: #c4702c; }
.stat-crm      .stat-value { color: #9a7b1f; }
.delta { font-size: .78rem; font-weight: 600; }
.delta.up   { color: var(--up); }
.delta.down { color: var(--down); }
.delta.flat { color: var(--faint); }
.delta.up::before   { content: "\25B2 "; font-size: .7em; }
.delta.down::before { content: "\25BC "; font-size: .7em; }

/* three panels: funnel | top pages | top countries */
.panels { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.card { background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 12px; font-size: .95rem; font-weight: 700; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.card-head h3 { margin: 0; }
.donut { flex-shrink: 0; }

/* funnel bars */
.fbar {
  height: 32px;
  min-width: 34%;
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-size: .8rem;
}
.fbar b { font-weight: 700; }
.fbar-1 { background: linear-gradient(90deg, var(--indigo), var(--indigo-2)); }
.fbar-2 { background: var(--grad-amber); }
.fbar-3 { background: linear-gradient(90deg, var(--up), #36b56c); }
.fconv { text-align: center; font-size: .68rem; color: var(--faint); padding: 3px; }

/* horizontal bar lists (top pages / countries) */
.barrow { display: flex; align-items: center; gap: 8px; font-size: .8rem; margin-bottom: 9px; }
.barlabel { width: 84px; flex-shrink: 0; color: var(--rail-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bartrack { flex: 1; height: 7px; background: var(--line-2); border-radius: 4px; overflow: hidden; }
.bar { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--indigo-2), var(--amber)); min-width: 4px; }
.empty { color: var(--faint); font-size: .82rem; margin: 4px 0; }

/* trend charts */
.trends { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.trend { width: 100%; height: 92px; display: block; }
.trend-line { fill: none; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.trend-line.v { stroke: var(--indigo); }
.trend-line.c { stroke: var(--amber); }
.trend-fill { stroke: none; }
.trend-fill.v { fill: var(--indigo); opacity: .10; }
.trend-fill.c { fill: var(--amber); opacity: .12; }
.trend-axis { stroke: #e6e8ec; vector-effect: non-scaling-stroke; }
.trend-x { display: flex; justify-content: space-between; font-size: .68rem; color: var(--faint); margin-top: 2px; }

/* ============================================================================
   CONSOLE  (console.html -> .console = .user-list + .create-panel, beside rail)
   ============================================================================ */
.console { flex: 1; min-width: 0; display: flex; gap: 16px; align-items: flex-start; padding: 20px 24px; }
.console .user-list h1 { font-size: 1.3rem; font-weight: 700; margin: 0 0 16px; }

.user-list { flex: 1; min-width: 0; background: var(--card); border-radius: var(--radius); padding: 18px 18px 8px; box-shadow: var(--shadow); }
.user-list table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: .88rem; }
.user-list td { word-break: break-word; }
.user-list th:last-child, .user-list td.row-actions { width: 104px; padding-left: 4px; padding-right: 10px; }
.user-list th { text-align: left; font-size: .72rem; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--faint); padding: 10px 12px; border-bottom: 1px solid var(--line-2); }
.user-list td { padding: 12px 12px; border-bottom: 1px solid #f1f3f6; vertical-align: middle; }
.user-list tbody tr:last-child td { border-bottom: none; }
.user-list tbody tr:hover { background: #fafbfd; }

/* role + status badges */
.badge { display: inline-block; font-size: .7rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.role-operator     { background: #ece9fb; color: #5b46b0; }
.role-client_admin { background: #e7edfb; color: #3a5bbf; }
.role-marketer     { background: #fdeede; color: #c4702c; }
.role-analyst      { background: #e2f3ec; color: #1a8a55; }
.status-active   { background: #e2f3ec; color: var(--up); }
.status-pending  { background: #fdf3e0; color: #b9810f; }
.status-disabled { background: #eef0f4; color: var(--faint); }

/* row action menu (fixed: inline change-role row no longer overflows) */
.row-actions { position: relative; text-align: right; }
.row-actions > button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 8px;
  padding: .35rem .6rem;
  font: inherit;
  font-size: .8rem;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.row-actions > button:hover { background: var(--panel); border-color: #d7dbe4; }
.row-actions .menu {
  position: absolute;
  right: 0;
  top: calc(100% + .35rem);
  z-index: 20;
  width: 230px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: .5rem;
  display: grid;
  gap: .4rem;
  text-align: left;
  box-shadow: 0 12px 32px rgba(40, 50, 90, .18);
}
.row-actions .menu form { margin: 0; }
.row-actions .menu form.inline { display: flex; gap: .35rem; align-items: center; }
.row-actions .menu form.inline select {
  flex: 1;
  min-width: 0;
  padding: .35rem .4rem;
  border: 1px solid #dfe2ea;
  border-radius: 8px;
  font: inherit;
  font-size: .78rem;
  background: var(--field);
}
.row-actions .menu button {
  padding: .4rem .7rem;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  font: inherit;
  font-size: .8rem;
  cursor: pointer;
  transition: background .15s;
}
/* inline (change-role) button hugs its content; standalone buttons fill the row */
.row-actions .menu form.inline button { flex: 0 0 auto; white-space: nowrap; }
.row-actions .menu form:not(.inline) button { width: 100%; text-align: left; }
.row-actions .menu button:hover { background: var(--panel); }
.row-actions .menu button.warn   { color: #b9810f; border-color: #f0dcae; }
.row-actions .menu button.warn:hover   { background: #fdf3e0; }
.row-actions .menu button.danger { color: #b3261e; border-color: #f3c9c5; }
.row-actions .menu button.danger:hover { background: #fdecec; }

/* create-user panel */
.create-panel { width: 280px; flex-shrink: 0; background: var(--card); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.create-panel h2 { margin: 0 0 14px; font-size: 1rem; font-weight: 700; }
.create-panel label { display: block; font-size: .76rem; font-weight: 600; color: var(--muted); margin-bottom: 13px; }
.create-panel input,
.create-panel select {
  width: 100%;
  margin-top: 5px;
  padding: 9px 11px;
  border: 1px solid #dfe2ea;
  border-radius: 9px;
  background: var(--field);
  font: inherit;
  font-size: .85rem;
  color: var(--ink);
}
.create-panel label input + input { margin-top: 8px; }
.create-panel input:focus,
.create-panel select:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(236, 140, 57, .12); background: #fff; }
.create-panel button[type="submit"] { font-size: .85rem; padding: 10px; }

/* ============================================================================
   SUPPORTING FORMS (.auth-form) + no-access
   ============================================================================ */
.auth-form,
.no-access {
  max-width: 420px;
  margin: 3rem auto;
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: var(--shadow);
}
.auth-form h1,
.no-access h1 { margin: 0 0 6px; font-size: 1.35rem; font-weight: 700; }
.auth-form p, .no-access p { color: var(--muted); font-size: .88rem; margin: 0 0 6px; }
.auth-form label { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); margin: 16px 0 14px; }
.auth-form input {
  width: 100%;
  margin-top: 6px;
  padding: 11px 13px;
  border: 1px solid #dfe2ea;
  border-radius: var(--radius-s);
  background: var(--field);
  font: inherit;
  font-size: .92rem;
  color: var(--ink);
}
.auth-form input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(236, 140, 57, .15); background: #fff; }
.auth-form .form-msg { margin: 12px 0 0; padding: .6rem .75rem; border-radius: 8px; background: #fdecec; color: #b3261e; font-size: .82rem; }

/* ---- item-8 UI punch-list additions --------------------------------------- */
/* Bare buttons in the actions menu (Edit user, Delete) fill the row like the
   form buttons, so the menu reads as a clean single-column list. */
.row-actions .menu > button { width: 100%; text-align: left; }

/* Edit User panel (dual-mode create-panel): Save + Cancel row, secondary button */
.create-panel .edit-actions { display: flex; gap: .5rem; align-items: center; }
.create-panel .edit-actions button[type="submit"] { flex: 1; }
.create-panel button.secondary {
  background: #fff; color: var(--muted); border: 1px solid var(--line);
  border-radius: 9px; padding: 10px 14px; font: inherit; font-size: .85rem;
  cursor: pointer; transition: background .15s;
}
.create-panel button.secondary:hover { background: var(--panel); }
.create-panel input:disabled { color: var(--faint); background: var(--line-2); cursor: not-allowed; }

/* Re-enable button (mirrors .warn/.danger, in the "up"/green family) */
.row-actions .menu button.ok { color: var(--up); border-color: #bfe6cf; }
.row-actions .menu button.ok:hover { background: #e2f3ec; }

/* Inline edit-name inputs in the actions menu (match the inline select) */
.row-actions .menu form.inline input {
  flex: 1; min-width: 0; padding: .35rem .4rem;
  border: 1px solid #dfe2ea; border-radius: 8px;
  font: inherit; font-size: .78rem; background: var(--field);
}

/* Back-to-dashboard link above the Users heading */
.back-link {
  display: inline-block; margin-bottom: 8px;
  color: var(--indigo); font-size: .82rem; font-weight: 600; text-decoration: none;
}
.back-link:hover { color: var(--violet); text-decoration: underline; }

/* Rail "Admin Area" divider above the Users tile */
.rail-divider { margin: 10px 4px 6px; border-top: 1px solid var(--line); padding-top: 8px; }
.rail-divider span {
  font-size: .66rem; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; color: var(--faint);
}
.rail.collapsed .rail-divider span { display: none; }

/* Delete-confirm modal */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(33, 38, 54, .45);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.modal {
  width: 420px; max-width: 100%; background: var(--card);
  border-radius: var(--radius); padding: 24px 24px 20px; box-shadow: 0 18px 48px rgba(40, 50, 90, .28);
}
.modal h3 { margin: 0 0 8px; font-size: 1.1rem; font-weight: 700; }
.modal p { color: var(--muted); font-size: .86rem; margin: 0 0 12px; }
.modal label { display: block; font-size: .76rem; font-weight: 600; color: var(--muted); }
.modal-input {
  width: 100%; margin-top: 6px; padding: 10px 12px;
  border: 1px solid #dfe2ea; border-radius: var(--radius-s);
  background: var(--field); font: inherit; font-size: .9rem;
}
.modal-input:focus { outline: none; border-color: var(--down); box-shadow: 0 0 0 3px rgba(210, 96, 58, .15); background: #fff; }
.modal-err { color: #b3261e; font-size: .8rem; margin: 8px 0 0; font-weight: 600; }
.modal-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 16px; }
.modal-actions form { margin: 0; }
.modal-actions button {
  padding: .5rem .9rem; border: 1px solid var(--line); background: #fff;
  border-radius: 9px; font: inherit; font-size: .85rem; cursor: pointer; transition: background .15s;
}
.modal-actions button:hover { background: var(--panel); }
.modal-actions button.danger { color: #fff; background: var(--down); border-color: var(--down); }
.modal-actions button.danger:hover { filter: brightness(1.05); background: var(--down); }

/* ---- motion --------------------------------------------------------------- */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---- responsive ----------------------------------------------------------- */
@media (max-width: 980px) {
  .panels { grid-template-columns: 1fr; }
  .trends { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .login-split { flex-direction: column; width: 420px; }
  .login-left, .login-form { width: 100%; }
  .login-left { padding: 24px; }
  #lottie { width: 170px; height: 170px; }
  .layout { flex-direction: column; }
  .console { flex-direction: column; }
  .create-panel { width: 100%; }
  .stats { grid-template-columns: 1fr; }
}
