:root {
  color-scheme: light;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

html {
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

#app {
  min-height: 100vh;
}

.app-shell {
  --app-bg: #e7edf4;
  --app-bg-soft: #f2f6fb;
  --text: #07193d;
  --muted: #4d6488;
  --border: #c7d4e4;
  --card: #f8fbff;
  --panel: #edf3fb;
  --accent: #1b9be0;
  --accent-soft: #cfeeff;
  --sidebar-bg: linear-gradient(180deg, #0a1736 0%, #0a1430 55%, #0b1228 100%);
  --sidebar-border: rgba(170, 196, 230, 0.14);
  --sidebar-card: rgba(255, 255, 255, 0.05);
  --danger: #d93838;
  --success: #1d9661;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  background:
    radial-gradient(circle at 16% 12%, rgba(43, 160, 225, 0.2), transparent 44%),
    radial-gradient(circle at 86% 100%, rgba(10, 38, 80, 0.14), transparent 40%),
    var(--app-bg);
  color: var(--text);
}

.app-shell.dark {
  --app-bg: #0f172b;
  --app-bg-soft: #0f2035;
  --text: #ebf3ff;
  --muted: #a4bad9;
  --border: #2d4265;
  --card: #12253f;
  --panel: #0d1d33;
  --accent: #2eb7ff;
  --accent-soft: rgba(46, 183, 255, 0.2);
  --sidebar-bg: linear-gradient(180deg, #050c1d 0%, #08142d 100%);
  --sidebar-border: rgba(124, 167, 220, 0.2);
  --sidebar-card: rgba(255, 255, 255, 0.06);
  --danger: #ff7f7f;
  --success: #45d594;
}

.sidebar {
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  min-height: 100vh;
  height: 100vh;
  padding: 20px 18px 20px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 22px;
  position: fixed;
  top: 0;
  left: 0;
  width: 290px;
  transition: width 0.2s ease, padding 0.2s ease;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.03);
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  align-self: stretch;
}

.sidebar-top {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.logo-block {
  display: grid;
  gap: 10px;
  padding: 12px 10px 18px;
  border-bottom: 1px solid var(--sidebar-border);
  min-width: 0;
}

.logo-wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
}

.logo-wordmark img {
  display: block;
  width: auto;
  height: 34px;
  object-fit: contain;
}

.logo-note {
  color: rgba(226, 236, 252, 0.72);
  font-size: 13px;
}

.menu {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
  scrollbar-width: thin;
}

.menu-button {
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  color: #ebf4ff;
  padding: 13px 14px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  min-width: 0;
}

.menu-button:hover {
  border-color: rgba(123, 182, 244, 0.45);
  background: var(--sidebar-card);
  transform: translateY(-1px);
}

.menu-button.active {
  background: linear-gradient(135deg, rgba(17, 106, 166, 0.68), rgba(15, 73, 122, 0.95));
  border-color: rgba(89, 190, 255, 0.7);
  box-shadow: 0 18px 30px rgba(8, 49, 87, 0.32);
}

.menu-icon {
  min-width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: #d9ebff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(177, 202, 236, 0.25);
}

.menu-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.menu-label {
  font-size: 16px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.menu-subtitle {
  font-size: 13px;
  color: rgba(216, 231, 252, 0.78);
  overflow-wrap: anywhere;
}

.menu-indicator {
  margin-left: auto;
  min-width: 16px;
  color: #9edcff;
  font-size: 10px;
  text-align: right;
}

.sidebar-footer {
  display: grid;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(171, 196, 232, 0.12);
  background: linear-gradient(180deg, rgba(8, 18, 41, 0.14), rgba(8, 18, 41, 0));
}

.sidebar-footnote {
  color: rgba(216, 231, 252, 0.56);
  font-size: 12px;
  line-height: 1.6;
  padding: 0 2px;
}

.menu-toggle {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #6eb8ef;
  background: linear-gradient(140deg, #1d89cb, #126ba0);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(16, 89, 148, 0.4);
}

.sidebar-collapse {
  position: absolute;
  top: 10px;
  right: 8px;
  z-index: 2;
}

.menu-toggle:hover {
  transform: translateY(-1px);
}

.app-shell.collapsed {
  grid-template-columns: 94px 1fr;
}

.app-shell.collapsed .content {
  margin-left: 94px;
}

.app-shell.collapsed .sidebar {
  padding-left: 12px;
  padding-right: 12px;
  width: 94px;
}

.app-shell.collapsed .logo-note,
.app-shell.collapsed .menu-copy,
.app-shell.collapsed .logout-link,
.app-shell.collapsed .sidebar-footnote,
.app-shell.collapsed .menu-indicator {
  display: none;
}

.app-shell.collapsed .logo-wordmark {
  justify-content: center;
}

.app-shell.collapsed .menu-button {
  justify-content: center;
}

.app-shell.collapsed .menu {
  overflow: visible;
}

.content {
  padding: 28px clamp(18px, 3.2vw, 44px) 52px;
  display: grid;
  gap: 22px;
  min-width: 0;
  margin-left: 290px;
}

.content-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 4px 0 2px;
}

.header-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
  flex: 1 1 420px;
}

.header-kicker {
  color: #58749e;
  font-size: 14px;
  font-weight: 700;
}

.header-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.content-header h1 {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.02;
  color: #051a44;
  letter-spacing: -0.06em;
}

.app-shell.dark .content-header h1 {
  color: #eef5ff;
}

.content-header p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 16px;
}

.content-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  background: #f2f7ff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
}

.app-shell.dark .content-chip {
  background: rgba(103, 177, 235, 0.15);
}

.content-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.header-range {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  color: #345078;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(11, 33, 68, 0.06);
}

.alert {
  border-radius: 12px;
  padding: 11px 14px;
  border: 1px solid;
  font-weight: 600;
}

.alert.success {
  background: #edf9f3;
  border-color: #8bd8b4;
  color: #0f7750;
}

.alert.error {
  background: #fff0f0;
  border-color: #f1abab;
  color: #b03131;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: clamp(18px, 2.2vw, 28px);
  box-shadow: 0 24px 48px rgba(8, 29, 67, 0.08);
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.overview-card {
  display: grid;
  gap: 14px;
  background:
    radial-gradient(circle at top right, rgba(82, 194, 255, 0.14), transparent 34%),
    linear-gradient(180deg, #ffffff, #f7fbff);
}

.overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.overview-head span {
  color: #0d2a59;
  font-weight: 800;
  font-size: 21px;
}

.overview-head small {
  color: #5a7ba7;
  font-weight: 700;
}

.overview-card strong {
  color: #051a44;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.overview-card p {
  color: var(--muted);
  line-height: 1.65;
}

.app-shell.dark .header-range {
  background: rgba(17, 36, 61, 0.9);
  color: #dceaff;
}

.app-shell.dark .overview-card {
  background:
    radial-gradient(circle at top right, rgba(46, 183, 255, 0.12), transparent 34%),
    linear-gradient(180deg, #132947, #10243f);
}

.app-shell.dark .overview-head span,
.app-shell.dark .overview-card strong {
  color: #eef5ff;
}

.section-title {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: 24px;
  margin-bottom: 16px;
}

.dashboard {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
}

.stats {
  display: grid;
  gap: 11px;
}

.stat {
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(172, 193, 223, 0.56);
  background: linear-gradient(180deg, #f8fbff, #eff5fc);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.app-shell.dark .stat {
  border-color: #2f4d77;
  background: linear-gradient(180deg, #142949, #10243f);
}

.stat span {
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 13px;
}

.timeline-item {
  display: flex;
  gap: 10px;
  color: var(--muted);
}

.timeline-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  margin-top: 6px;
  background: #31b1ff;
  box-shadow: 0 0 0 4px rgba(49, 177, 255, 0.18);
}

.quick-tips p {
  color: var(--muted);
  line-height: 1.7;
}

form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.compact {
  gap: 6px;
}

.field-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.field-row input {
  flex: 1;
}

label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  border-radius: 13px;
  padding: 12px 13px;
  font-size: 15px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #67b9ec;
  box-shadow: 0 0 0 4px rgba(65, 160, 224, 0.15);
}

button {
  border: 0;
  border-radius: 12px;
  padding: 11px 16px;
  background: linear-gradient(135deg, #1ea5ea, #1381c8);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  transform: translateY(-1px);
}

button.ghost,
a.ghost {
  background: #f3f8ff;
  color: #06214f;
  border: 1px solid var(--border);
  padding: 9px 14px;
  border-radius: 12px;
  text-decoration: none;
}

.app-shell.dark button.ghost,
.app-shell.dark a.ghost {
  background: #132947;
  color: #dbe9ff;
}

button.ghost.danger {
  color: var(--danger);
  border-color: rgba(225, 105, 105, 0.45);
  background: #fff6f6;
}

button.ghost.soft,
a.ghost.soft {
  background: rgba(177, 220, 245, 0.2);
  border-color: rgba(130, 189, 234, 0.5);
}

button.compact,
a.compact {
  padding: 8px 12px;
  font-size: 13px;
}

.sidebar-shortcut {
  min-width: 130px;
}

.notification-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.notification-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.notification-icon svg {
  width: 18px;
  height: 18px;
}

.notification-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #2eb7ff;
  color: #0a1b34;
  font-size: 11px;
  font-weight: 700;
}

.app-shell.dark .notification-badge {
  background: #7bd5ff;
  color: #0a1428;
}

.notification-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 12, 20, 0.5);
  backdrop-filter: blur(2px);
  z-index: 2200;
}

.notification-popover {
  position: fixed;
  top: 84px;
  right: 34px;
  width: min(360px, calc(100vw - 48px));
  background: #f7faff;
  border: 1px solid rgba(15, 32, 64, 0.18);
  border-radius: 18px;
  box-shadow: 0 22px 50px rgba(8, 29, 67, 0.3);
  z-index: 2300;
  display: grid;
  grid-template-rows: auto 1fr;
  max-height: min(480px, calc(100vh - 140px));
}

.notification-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.notification-body {
  padding: 14px 16px 18px;
  overflow-y: auto;
}

.app-shell.dark .notification-popover {
  background: #0f1d30;
  border-color: rgba(255, 255, 255, 0.12);
}

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  background: #f0f5fc;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 13px;
}

.dashboard-filters {
  margin: 16px 0 8px;
}

.app-shell.dark .dashboard-filters {
  background: rgba(10, 22, 44, 0.6);
}

.lead-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 12, 20, 0.82);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 2000;
}

.modal-card {
  width: min(520px, 92vw);
  background: #ffffff;
  color: #0f1b2d;
  border-radius: 20px;
  border: 1px solid rgba(18, 42, 73, 0.12);
  padding: 20px;
  box-shadow: 0 30px 60px rgba(9, 31, 72, 0.28);
  max-width: 100%;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.modal-form {
  display: grid;
  gap: 12px;
}

.modal-actions {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.modal-card label {
  color: #233456;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.modal-card input,
.modal-card select {
  background: #f1f5fb;
  border: 1px solid rgba(18, 42, 73, 0.12);
  color: #0f1b2d;
}

.modal-card .ghost {
  color: #0f1b2d;
}

.app-shell.dark .modal-card {
  background: #0f1d30;
  color: #f2f7ff;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.app-shell.dark .modal-card label {
  color: rgba(226, 236, 252, 0.75);
}

.app-shell.dark .modal-card input,
.app-shell.dark .modal-card select {
  background: #11243c;
  border-color: rgba(255, 255, 255, 0.14);
  color: #f2f7ff;
}

.app-shell.dark .modal-card .ghost {
  color: #f2f7ff;
}

.app-shell.dark .filters {
  background: #10233e;
}

.leads {
  display: grid;
  gap: 14px;
}

.lead-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  background: linear-gradient(180deg, #f8fbff, #f0f6ff);
  display: grid;
  gap: 10px;
  min-width: 0;
}

.app-shell.dark .lead-card {
  background: linear-gradient(180deg, #132a49, #102440);
}

.lead-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.lead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.lead-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  list-style: none;
}

.lead-meta span,
.lead-meta li,
.lead-title h3,
.lead-title small {
  overflow-wrap: anywhere;
}

.lead-value {
  font-weight: 700;
  color: #0f5b9c;
  background: rgba(46, 183, 255, 0.15);
  border: 1px solid rgba(46, 183, 255, 0.35);
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
}

.app-shell.dark .lead-value {
  color: #cfeaff;
  background: rgba(46, 183, 255, 0.12);
  border-color: rgba(46, 183, 255, 0.28);
}

.lead-edit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.lead-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.badge {
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
}

.badge.hot {
  color: #115a3e;
  background: #d9f6e9;
  border-color: #95d7b9;
}

.badge.warm {
  color: #72520a;
  background: #fff1c7;
  border-color: #e9cc77;
}

.badge.cold {
  color: #154372;
  background: #dfeeff;
  border-color: #9ec1eb;
}

.procedure-card {
  border-radius: 18px;
  background: #f0f5fc;
  border: 1px solid var(--border);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.app-shell.dark .procedure-card {
  background: #10233e;
}

.procedure-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px auto;
  gap: 10px;
  align-items: center;
}

.procedure-list-grid {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.procedure-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f7fbff;
  padding: 12px;
  min-width: 0;
}

.app-shell.dark .procedure-item {
  background: #122947;
}

.empty-state {
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 14px;
  color: var(--muted);
}

.logout-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 18px;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(51, 81, 121, 0.88), rgba(36, 58, 93, 0.98));
  border: 1px solid rgba(122, 174, 236, 0.34);
  color: #eef6ff;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(4, 15, 35, 0.18);
}

.logout-link:hover {
  background: linear-gradient(180deg, rgba(69, 108, 160, 0.9), rgba(42, 69, 110, 1));
  border-color: rgba(151, 200, 255, 0.56);
}

.logout-link svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: currentColor;
  opacity: 0.92;
}

.logout-link span {
  line-height: 1;
}

/* Login */
.login-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 20%, rgba(135, 210, 255, 0.42), transparent 26%),
    radial-gradient(circle at 78% 20%, rgba(18, 47, 95, 0.08), transparent 28%),
    linear-gradient(135deg, #edf7ff 0%, #f7fbff 48%, #eef3f9 100%);
  color: #061b42;
}

.landing-header {
  background: linear-gradient(90deg, #14284d, #182d55 42%, #193360 100%);
  border-bottom: 1px solid rgba(160, 194, 236, 0.16);
}

.landing-header-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.landing-logo {
  color: #ffffff;
  text-decoration: none;
  font-weight: 900;
  font-size: 28px;
  letter-spacing: 0.08em;
  font-style: italic;
}

.landing-logo span {
  color: #1eb0ff;
}

.landing-actions,
.landing-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.landing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 124px;
  padding: 13px 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, #16a8ef, #1a71b6);
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 16px 30px rgba(17, 114, 180, 0.22);
}

.landing-button-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(169, 197, 235, 0.2);
  box-shadow: none;
}

.landing-button-large {
  min-width: 160px;
}

.landing-link {
  color: #dceeff;
  text-decoration: none;
  font-weight: 700;
  padding: 13px 4px;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 26px;
  padding: clamp(16px, 3vw, 34px);
}

.role-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: clamp(28px, 4vw, 60px);
  padding: clamp(28px, 5vw, 56px) 0 24px;
  align-items: center;
}

.landing-copy {
  display: grid;
  gap: 22px;
  align-content: center;
}

.landing-copy .brand-pill {
  color: #245ad4;
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(174, 206, 244, 0.9);
  box-shadow: 0 12px 24px rgba(42, 117, 192, 0.08);
}

.landing-copy h1 {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: clamp(56px, 7vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  color: #122552;
  max-width: 720px;
}

.landing-description {
  max-width: 620px;
  font-size: 20px;
  line-height: 1.75;
  color: #607495;
}

.landing-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 8px;
}

.landing-highlights article {
  border-radius: 24px;
  padding: 18px 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(187, 209, 234, 0.78);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(15, 39, 79, 0.05);
  display: grid;
  gap: 8px;
}

.landing-highlights strong {
  color: #122552;
  font-size: 20px;
  line-height: 1.2;
}

.landing-highlights span {
  color: #617696;
  font-size: 14px;
  line-height: 1.6;
}

.landing-visual {
  display: grid;
  place-items: center;
}

.device-frame {
  width: min(100%, 430px);
  aspect-ratio: 0.72;
  border-radius: 36px;
  padding: 12px;
  background: linear-gradient(180deg, #1f3567, #0f1d3b);
  box-shadow: 0 40px 70px rgba(15, 34, 69, 0.22);
  position: relative;
}

.device-notch {
  width: 108px;
  height: 18px;
  border-radius: 0 0 14px 14px;
  background: #10192d;
  position: absolute;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  z-index: 2;
}

.device-screen {
  height: 100%;
  border-radius: 28px;
  padding: 26px 18px 20px;
  background:
    radial-gradient(circle at top left, rgba(144, 170, 255, 0.6), transparent 38%),
    linear-gradient(180deg, #eef5ff, #f8fbff 58%, #eff4ff);
  display: grid;
  align-content: start;
  gap: 16px;
}

.device-app-badge {
  justify-self: center;
  background: linear-gradient(180deg, #f9fcff, #edf4ff);
  color: #40639b;
  border: 1px solid rgba(115, 147, 202, 0.2);
  border-radius: 18px;
  padding: 10px 22px;
  font-weight: 800;
  font-size: 14px;
}

.device-card {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(170, 194, 227, 0.48);
  padding: 18px;
  box-shadow: 0 18px 40px rgba(43, 74, 133, 0.14);
  display: grid;
  gap: 14px;
}

.device-tag {
  color: #3568d8;
  font-size: 12px;
  font-weight: 800;
}

.device-card h2 {
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.1;
  color: #233d72;
}

.device-card p,
.device-footnote {
  color: #7183a5;
  line-height: 1.65;
  font-size: 14px;
}

.device-fields {
  display: grid;
  gap: 10px;
}

.device-fields > div {
  border-radius: 16px;
  border: 1px solid #d8e3f2;
  background: #f8fbff;
  padding: 12px 14px;
  display: grid;
  gap: 4px;
}

.device-fields strong {
  color: #203a6a;
  font-size: 14px;
}

.device-fields span {
  color: #7082a5;
  font-size: 13px;
}

.device-access {
  display: grid;
  gap: 10px;
}

.device-access .role-card {
  grid-template-columns: auto 1fr;
  padding: 14px 15px;
  border-radius: 18px;
  box-shadow: none;
}

.device-primary {
  width: 100%;
  border-radius: 16px;
  padding: 14px 16px;
}

.landing-bottom {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 36px;
}

.landing-bottom-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 18px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(185, 207, 232, 0.78);
  color: #587092;
}

.auth-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: clamp(28px, 4vw, 54px);
  align-items: center;
  padding: clamp(30px, 5vw, 56px) 0 36px;
}

.auth-copy {
  display: grid;
  gap: 22px;
}

.auth-copy h1 {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  color: #122552;
  max-width: 760px;
}

.auth-description {
  max-width: 620px;
  color: #607495;
  font-size: 18px;
  line-height: 1.75;
}

.auth-feature-list {
  display: grid;
  gap: 14px;
}

.auth-feature-list article {
  border-radius: 24px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(187, 209, 234, 0.78);
  box-shadow: 0 14px 28px rgba(15, 39, 79, 0.05);
  display: grid;
  gap: 6px;
}

.auth-feature-list strong {
  color: #132a58;
  font-size: 19px;
}

.auth-feature-list span {
  color: #617696;
  line-height: 1.6;
}

.auth-card {
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(193, 212, 235, 0.78);
  box-shadow: 0 24px 60px rgba(14, 35, 69, 0.12);
  padding: clamp(22px, 3vw, 34px);
  display: grid;
  gap: 18px;
}

.auth-card-centered {
  align-content: center;
}

.auth-card-head {
  display: grid;
  gap: 8px;
}

.auth-actions {
  display: grid;
  gap: 10px;
}

.auth-actions .login-secondary {
  text-align: center;
}

.login-brand {
  border-radius: 34px;
  padding: clamp(24px, 3vw, 40px);
  background:
    radial-gradient(circle at top right, rgba(47, 171, 240, 0.28), transparent 45%),
    radial-gradient(circle at 20% 100%, rgba(111, 199, 255, 0.12), transparent 28%),
    linear-gradient(150deg, #08162f 0%, #0d2246 44%, #12376b 100%);
  box-shadow: 0 28px 70px rgba(7, 23, 58, 0.28);
  display: grid;
  align-content: start;
  gap: 20px;
  color: #eaf3ff;
  position: relative;
  overflow: hidden;
}

.login-brand::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(76, 182, 247, 0.22), transparent 70%);
  pointer-events: none;
}

.brand-logo {
  width: 74px;
  height: 74px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(181, 213, 252, 0.35);
  font-weight: 800;
  letter-spacing: 0.09em;
}

.brand-topline {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.brand-signature {
  display: grid;
  gap: 4px;
}

.brand-signature-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8ed7ff;
}

.brand-signature-copy {
  color: rgba(227, 238, 255, 0.75);
  font-size: 14px;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  border: 1px solid rgba(174, 211, 253, 0.4);
  background: rgba(131, 178, 236, 0.2);
  padding: 7px 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-brand h1 {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.04;
}

.login-brand p {
  color: rgba(228, 238, 255, 0.86);
  line-height: 1.65;
}

.brand-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.9fr);
  gap: 16px;
}

.showcase-card {
  border-radius: 24px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.07));
  border: 1px solid rgba(169, 205, 246, 0.26);
  display: grid;
  gap: 10px;
}

.showcase-label {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(91, 191, 252, 0.15);
  border: 1px solid rgba(145, 213, 255, 0.24);
  color: #9bdcff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.showcase-card strong {
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.2;
}

.showcase-card small,
.showcase-list span {
  color: rgba(229, 239, 255, 0.78);
  font-size: 13px;
  line-height: 1.55;
}

.showcase-list {
  display: grid;
  gap: 12px;
}

.showcase-list > div {
  border-radius: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(169, 205, 246, 0.22);
  display: grid;
  gap: 6px;
}

.showcase-list strong {
  font-size: 15px;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.brand-grid > div {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(164, 200, 242, 0.3);
  border-radius: 16px;
  padding: 14px;
}

.brand-grid h3 {
  font-size: 15px;
  margin-bottom: 5px;
}

.brand-grid p {
  font-size: 13px;
}

.login-card {
  border-radius: 32px;
  background: rgba(250, 252, 255, 0.96);
  border: 1px solid #c7d5e7;
  box-shadow: 0 24px 60px rgba(9, 31, 72, 0.16);
  padding: clamp(22px, 3vw, 34px);
  display: grid;
  align-content: start;
  gap: 16px;
}

.login-card h2 {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: clamp(30px, 3vw, 40px);
}

.login-card p {
  color: #4d6488;
}

.login-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.role-card-panel {
  position: sticky;
  top: 18px;
  min-height: fit-content;
}

.role-panel-head {
  display: grid;
  gap: 8px;
}

.role-panel-kicker {
  color: #237fd8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.role-panel-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.role-panel-summary > div {
  border-radius: 18px;
  border: 1px solid #d7e2ef;
  background: linear-gradient(180deg, #f9fbff, #f2f6fd);
  padding: 14px;
  display: grid;
  gap: 4px;
}

.role-panel-summary strong {
  color: #102d5c;
  font-size: 14px;
}

.role-panel-summary span {
  color: #5a7194;
  font-size: 13px;
  line-height: 1.5;
}

.login-actions .login-secondary {
  width: 100%;
  border-radius: 14px;
  padding: 12px 18px;
  border: 1px solid #8fc5ff;
  color: #2f93ff;
  background: #ffffff;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(47, 147, 255, 0.12);
}

.login-actions .login-secondary:hover {
  border-color: #2f93ff;
  box-shadow: 0 12px 24px rgba(47, 147, 255, 0.2);
}

.login-back {
  width: 100%;
  margin-top: 8px;
  text-align: center;
}

.login-default,
.login-error {
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
}

.login-default {
  border: 1px solid #9ac9ef;
  background: #ebf6ff;
  color: #0e4d84;
}

.muted-note {
  color: #6b7fa1;
  font-size: 12px;
}

.login-error {
  border: 1px solid #f0b5b5;
  background: #fff1f1;
  color: #a43232;
}

.login-default {
  border: 1px solid #9ac9ef;
  background: #ebf6ff;
  color: #0e4d84;
}

.login-error {
  border: 1px solid #f0b5b5;
  background: #fff1f1;
  color: #a43232;
}

.login-form {
  display: grid;
  gap: 14px;
}

.role-select {
  display: grid;
  gap: 12px;
}

.role-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 14px;
}

.role-option input {
  display: none;
}

.role-option span {
  display: grid;
  gap: 4px;
}

.role-option small {
  color: rgba(27, 35, 41, 0.6);
  font-size: 12px;
}

.link-card {
  text-decoration: none;
  color: inherit;
}

.role-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(27, 35, 41, 0.1);
  background: linear-gradient(180deg, #f9fbff, #f2f6fd);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease, background 0.2s ease;
}

.role-card:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 147, 255, 0.28);
  box-shadow: 0 18px 34px rgba(47, 147, 255, 0.14);
  background: linear-gradient(180deg, #ffffff, #f1f7ff);
}

.role-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(47, 147, 255, 0.15);
  color: #1766b7;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.role-card-copy {
  display: grid;
  gap: 4px;
}

.role-card-copy strong {
  color: #082656;
  font-size: 17px;
}

.role-card-copy small {
  color: #5d7497;
  font-size: 13px;
  line-height: 1.55;
}

.role-arrow {
  color: #1f84de;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.role-option input:checked + .role-card {
  border-color: rgba(47, 147, 255, 0.65);
  box-shadow: 0 14px 28px rgba(47, 147, 255, 0.25);
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(47, 147, 255, 0.12), rgba(47, 210, 195, 0.16));
}

.role-option input:checked + .role-card .role-icon {
  background: linear-gradient(135deg, #2f93ff, #2fd2c3);
  color: #ffffff;
  transform: scale(1.05);
}

.role-note {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 16px;
  padding: 14px 16px;
  background: #eef6ff;
  border: 1px solid #cae0f7;
}

.role-note p {
  color: #4f678d;
  font-size: 13px;
  line-height: 1.5;
}

.role-note-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #2f93ff;
  box-shadow: 0 0 0 5px rgba(47, 147, 255, 0.12);
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  min-width: 0;
  flex: 1 1 320px;
  justify-content: flex-end;
}

.card.hero-card {
  padding: clamp(24px, 3vw, 36px);
  background:
    radial-gradient(circle at top left, rgba(84, 191, 255, 0.16), transparent 30%),
    linear-gradient(180deg, #fbfdff, #f4f8fd);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: 20px;
  align-items: start;
}

.hero-copy {
  display: grid;
  gap: 14px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(33, 144, 214, 0.1);
  border: 1px solid rgba(33, 144, 214, 0.18);
  color: #1168a8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h2 {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-copy p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 16px;
  max-width: 700px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-side {
  border-radius: 24px;
  padding: 20px;
  background: linear-gradient(180deg, #13284c, #173663);
  color: #edf5ff;
  display: grid;
  gap: 12px;
  box-shadow: 0 18px 36px rgba(11, 32, 66, 0.18);
}

.hero-side span {
  color: rgba(233, 242, 255, 0.74);
  font-size: 13px;
}

.mini-stats {
  display: grid;
  gap: 10px;
}

.mini-stats div {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(174, 205, 243, 0.14);
  padding: 12px;
  display: grid;
  gap: 4px;
}

.dashboard-secondary {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 18px;
}

.dashboard-panel,
.insight-list,
.action-grid {
  display: grid;
  gap: 12px;
}

.insight-item,
.action-card {
  border-radius: 18px;
  border: 1px solid rgba(173, 194, 223, 0.58);
  background: linear-gradient(180deg, #fafdff, #f2f7fd);
  padding: 14px;
  display: grid;
  gap: 6px;
}

.action-card {
  padding: 16px;
  background: linear-gradient(180deg, #ffffff, #f3f8fd);
}

.insight-item span,
.action-card span,
.action-card p {
  color: var(--muted);
  line-height: 1.6;
}

.lead-card {
  border-radius: 22px;
  padding: 16px;
  background: linear-gradient(180deg, #fbfdff, #f1f7ff);
  gap: 12px;
  box-shadow: 0 12px 24px rgba(16, 40, 80, 0.05);
}

.lead-title {
  display: grid;
  gap: 4px;
}

.lead-title small {
  color: var(--muted);
}

.procedure-card {
  border-radius: 22px;
  background: linear-gradient(180deg, #f9fcff, #f0f6fd);
  padding: 16px;
}

.procedure-item {
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f4f8fd);
}

.app-shell.dark .card.hero-card {
  background:
    radial-gradient(circle at top left, rgba(46, 183, 255, 0.14), transparent 30%),
    linear-gradient(180deg, #11243d, #10233a);
}

.app-shell.dark .eyebrow {
  background: rgba(46, 183, 255, 0.12);
  border-color: rgba(46, 183, 255, 0.18);
  color: #8fddff;
}

.app-shell.dark .hero-side {
  background: linear-gradient(180deg, #071226, #0d1b35);
}

.app-shell.dark .mini-stats div,
.app-shell.dark .insight-item,
.app-shell.dark .action-card,
.app-shell.dark .procedure-card,
.app-shell.dark .procedure-item,
.app-shell.dark .lead-card {
  border-color: #2f4d77;
  background: linear-gradient(180deg, #132947, #10243f);
}

.app-shell.dark .hero-copy h2,
.app-shell.dark .lead-title small {
  color: #eef5ff;
}

.login-form label {
  text-transform: none;
  font-size: 14px;
  letter-spacing: normal;
  color: #1a3763;
  display: grid;
  gap: 8px;
}

.login-form input {
  border-radius: 12px;
  background: #f2f6fd;
}

.login-form button {
  margin-top: 4px;
  border-radius: 14px;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 232px 1fr;
  }

  .overview-grid,
  .dashboard {
    grid-template-columns: 1fr;
  }

  .landing-highlights,
  .hero-grid,
  .dashboard-secondary,
  .brand-showcase,
  .role-panel-summary {
    grid-template-columns: 1fr;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .content {
    margin-left: 0;
  }

  .sidebar {
    min-height: auto;
    height: auto;
    position: sticky;
    top: 0;
    z-index: 40;
    border-right: 0;
    border-bottom: 1px solid var(--sidebar-border);
    padding: 14px;
    overflow: visible;
    grid-template-rows: auto auto auto;
    width: 100%;
  }

  .app-shell.collapsed .content {
    margin-left: 0;
  }

  .sidebar-footer {
    position: static;
    padding-top: 10px;
    background: transparent;
    border-top: 0;
  }

  .sidebar-top {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .logo-block {
    width: 100%;
    border-bottom: 0;
    padding: 0 2px 10px;
  }

  .menu {
    grid-auto-flow: column;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    padding-right: 0;
  }

  .menu-button {
    min-width: 190px;
  }

  .sidebar-footer {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    position: static;
    width: auto;
    height: auto;
    border-radius: 10px;
    padding: 6px 10px;
  }

  .sidebar-collapse {
    justify-self: end;
    right: auto;
  }

  .app-shell.collapsed {
    grid-template-columns: 1fr;
  }

  .app-shell.collapsed .menu-copy,
  .app-shell.collapsed .logo-note,
  .app-shell.collapsed .logout-link,
  .app-shell.collapsed .sidebar-footnote,
  .app-shell.collapsed .menu-indicator {
    display: initial;
  }

  .app-shell.collapsed .menu-button {
    justify-content: flex-start;
  }
}

@media (max-width: 860px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .auth-shell {
    grid-template-columns: 1fr;
    width: min(1120px, calc(100% - 24px));
  }

  .role-shell {
    grid-template-columns: 1fr;
    padding-top: 24px;
  }

  .role-card-panel {
    position: static;
  }

  .landing-header-inner {
    width: min(1120px, calc(100% - 24px));
  }

  .landing-copy h1 {
    font-size: clamp(42px, 14vw, 64px);
  }

  .landing-description {
    font-size: 17px;
  }

  .auth-copy h1 {
    font-size: clamp(38px, 10vw, 58px);
  }

  .brand-showcase {
    grid-template-columns: 1fr;
  }

  .brand-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .content {
    padding: 18px 12px 32px;
  }

  .content-header {
    gap: 8px;
  }

  .content-header h1 {
    font-size: 34px;
  }

  .header-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .section-title {
    font-size: 24px;
  }

  .lead-header {
    flex-direction: column;
  }

  .lead-actions,
  .lead-header-row,
  .header-actions {
    width: 100%;
  }

  .procedure-row,
  .procedure-item {
    grid-template-columns: 1fr;
  }

  .filters,
  .lead-edit {
    grid-template-columns: 1fr;
  }

  .field-row {
    flex-direction: column;
    align-items: stretch;
  }

  .sidebar-footer {
    grid-template-columns: 1fr;
  }

  .sidebar-shortcut {
    width: 100%;
  }

  .role-shell {
    width: min(1120px, calc(100% - 24px));
    gap: 22px;
    padding: 20px 0 20px;
  }

  .auth-shell {
    padding: 22px 0 24px;
  }

  .login-brand,
  .login-card {
    border-radius: 24px;
    padding: 20px;
  }

  .brand-topline {
    align-items: flex-start;
  }

  .brand-logo {
    width: 62px;
    height: 62px;
    border-radius: 18px;
  }

  .role-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .role-arrow {
    margin-top: 2px;
  }

  .landing-header-inner,
  .landing-bottom {
    width: min(1120px, calc(100% - 24px));
  }

  .landing-header-inner {
    min-height: 72px;
  }

  .landing-actions {
    width: 100%;
  }

  .landing-button,
  .landing-button-secondary {
    flex: 1;
  }

  .landing-copy {
    gap: 18px;
  }

  .landing-copy h1 {
    letter-spacing: -0.05em;
  }

  .landing-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .landing-link {
    color: #315582;
    padding: 0;
  }

  .landing-highlights {
    grid-template-columns: 1fr;
  }

  .device-frame {
    width: min(100%, 360px);
  }

  .device-screen {
    padding: 22px 14px 16px;
  }

  .landing-bottom-card {
    display: flex;
  }

  .auth-card {
    border-radius: 24px;
    padding: 20px;
  }

  .auth-feature-list article {
    border-radius: 18px;
  }

  .header-actions,
  .hero-actions {
    width: 100%;
  }

  .header-actions > *,
  .hero-actions > * {
    flex: 1;
  }

  .header-range {
    width: 100%;
    text-align: center;
  }

  .modal-backdrop {
    padding: 12px;
  }

  .modal-card {
    width: 100%;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    border-radius: 18px;
    padding: 16px;
  }
}
