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

:root {
  --bg: #f6f3ee;
  --bg-elevated: rgba(255, 255, 255, 0.82);
  --surface: #ffffff;
  --surface-muted: #f7f4ef;
  --surface-strong: #fffdf9;
  --sidebar: #10212f;
  --sidebar-strong: #0a1824;
  --text: #13212d;
  --text-soft: #5a6773;
  --text-faint: #7f8a94;
  --border: rgba(19, 33, 45, 0.1);
  --border-strong: rgba(19, 33, 45, 0.16);
  --primary: #0f766e;
  --primary-strong: #0a5c56;
  --primary-soft: rgba(15, 118, 110, 0.12);
  --accent: #d97706;
  --accent-soft: rgba(217, 119, 6, 0.14);
  --danger: #d9485f;
  --danger-soft: rgba(217, 72, 95, 0.14);
  --success: #1f8f62;
  --success-soft: rgba(31, 143, 98, 0.14);
  --info: #2563eb;
  --info-soft: rgba(37, 99, 235, 0.14);
  --shadow-xl: 0 32px 80px rgba(16, 33, 47, 0.14);
  --shadow-lg: 0 22px 56px rgba(16, 33, 47, 0.1);
  --shadow-md: 0 12px 28px rgba(16, 33, 47, 0.08);
  --shadow-sm: 0 6px 18px rgba(16, 33, 47, 0.05);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --ring: 0 0 0 4px rgba(15, 118, 110, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(217, 119, 6, 0.1), transparent 24%),
    linear-gradient(180deg, #fbfaf7 0%, #f3efe8 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.app-page::before,
body.login-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(19, 33, 45, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 33, 45, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 70%);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--text);
  font-family: "Space Grotesk", "Manrope", sans-serif;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(2rem, 2.4vw, 3rem);
}

h2 {
  font-size: clamp(1.45rem, 1.8vw, 2rem);
}

h3 {
  font-size: 1.05rem;
}

p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

button,
.btn,
.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary) 0%, #139387 100%);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(15, 118, 110, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease, filter 0.18s ease;
}

button:hover,
.btn:hover,
.nav-links a:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(15, 118, 110, 0.24);
  filter: saturate(1.02);
}

button:active,
.btn:active,
.nav-links a:active {
  transform: translateY(0);
}

button[disabled],
.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.btn-secondary,
.icon-btn,
.btn-ghost {
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  border: 1px solid rgba(19, 33, 45, 0.08);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover,
.icon-btn:hover,
.btn-ghost:hover {
  box-shadow: var(--shadow-md);
}

.btn-success {
  background: linear-gradient(135deg, var(--success) 0%, #24a36f 100%);
  box-shadow: 0 12px 26px rgba(31, 143, 98, 0.18);
}

.btn-danger,
.logout-btn {
  background: linear-gradient(135deg, var(--danger) 0%, #c9364d 100%);
  box-shadow: 0 12px 26px rgba(217, 72, 95, 0.18);
}

.btn-warning {
  background: linear-gradient(135deg, var(--accent) 0%, #ea8b17 100%);
  box-shadow: 0 12px 26px rgba(217, 119, 6, 0.18);
}

input,
select,
textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid rgba(19, 33, 45, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #97a1aa;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--border-strong);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(15, 118, 110, 0.5);
  background: #fff;
  box-shadow: var(--ring);
}

input.is-invalid,
select.is-invalid,
textarea.is-invalid,
input:invalid,
select:invalid,
textarea:invalid {
  border-color: rgba(217, 72, 95, 0.48);
  background: rgba(255, 244, 246, 0.8);
}

input.is-invalid:focus,
select.is-invalid:focus,
textarea.is-invalid:focus,
input:invalid:focus,
select:invalid:focus,
textarea:invalid:focus {
  box-shadow: 0 0 0 4px rgba(217, 72, 95, 0.16);
}

label {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

hr,
.divider {
  border: 0;
  height: 1px;
  margin: 0;
  background: linear-gradient(90deg, transparent, rgba(19, 33, 45, 0.12), transparent);
}

.container,
.panel,
.table-wrapper,
.dashboard-card,
.card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 253, 249, 0.9));
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.container,
.panel,
.card {
  padding: 28px;
}

.panel::after,
.container::after,
.dashboard-card::after,
.card::after,
.table-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.stack,
.page-stack {
  display: grid;
  gap: 24px;
}

.stack-lg {
  display: grid;
  gap: 32px;
}

.section-header,
.split-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.section-heading {
  font-size: 1.35rem;
}

.section-note,
.muted-text {
  color: var(--text-soft);
  font-size: 14px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 6px rgba(15, 118, 110, 0.1);
}

.hero-panel {
  padding: 34px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(217, 119, 6, 0.12), transparent 32%),
    radial-gradient(circle at left center, rgba(15, 118, 110, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(252, 248, 242, 0.92));
}

.hero-grid,
.shortcut-grid,
.insight-grid,
.detail-grid,
.form-grid,
.dashboard-grid {
  display: grid;
  gap: 18px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  align-items: stretch;
}

.hero-copy,
.hero-side {
  display: grid;
  gap: 18px;
}

.hero-copy h1 {
  max-width: 12ch;
}

.hero-actions,
.action-row,
.preset-row,
.table-actions,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-stats,
.mini-stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-pill,
.shortcut-card,
.insight-card,
.detail-item {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(19, 33, 45, 0.08);
  box-shadow: var(--shadow-sm);
}

.stat-pill strong,
.insight-value,
.detail-value {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
}

.shortcut-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.shortcut-card {
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.shortcut-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 118, 110, 0.22);
  box-shadow: var(--shadow-md);
}

.shortcut-card span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 20px;
  font-weight: 800;
}

.shortcut-card strong {
  display: block;
  margin-top: 16px;
  font-size: 16px;
}

.shortcut-card p {
  margin-top: 6px;
  font-size: 13px;
}

.insight-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

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

.insight-card strong,
.stat-label {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.dashboard-card,
.stat-card {
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dashboard-card:hover,
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(15, 118, 110, 0.16);
}

.dashboard-card p,
.stat-value {
  margin-top: 14px;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1;
}

.stat-note {
  margin-top: 10px;
  font-size: 13px;
}

.filters-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  align-items: end;
}

.filters-box .action-row,
.filters-box .preset-row {
  grid-column: 1 / -1;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-span-2 {
  grid-column: 1 / -1;
}

.field-readonly input {
  background: var(--surface-muted);
}

.table-wrapper {
  padding: 14px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

table th,
table td {
  padding: 16px 14px;
  border-bottom: 1px solid rgba(19, 33, 45, 0.08);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

table th {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(247, 244, 239, 0.8);
}

table tbody tr {
  transition: background 0.18s ease;
}

table tbody tr:hover {
  background: rgba(247, 244, 239, 0.72);
}

.badge,
.status-pill,
.priority-badge,
.role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.role-badge {
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.priority-badge.closed,
.badge.lost {
  background: rgba(90, 103, 115, 0.12);
  color: #4b5563;
}

.priority-badge.overdue {
  background: var(--danger-soft);
  color: #b42341;
}

.priority-badge.today,
.badge.followup {
  background: var(--accent-soft);
  color: #b45309;
}

.priority-badge.hot,
.badge.won {
  background: var(--success-soft);
  color: #15704d;
}

.priority-badge.warm,
.badge.new {
  background: rgba(234, 179, 8, 0.16);
  color: #a16207;
}

.priority-badge.cold,
.status-pill.info {
  background: var(--info-soft);
  color: #1d4ed8;
}

.timeline-box {
  display: grid;
  gap: 16px;
  margin-top: 4px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  margin-top: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #2ec3b7);
  box-shadow: 0 0 0 8px rgba(15, 118, 110, 0.1);
}

.timeline-content {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(19, 33, 45, 0.08);
  box-shadow: var(--shadow-sm);
}

.timeline-content h4 {
  margin-bottom: 10px;
}

.timeline-content p + p {
  margin-top: 6px;
}

.detail-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.detail-label {
  color: var(--text-faint);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead-profile-sections {
  display: grid;
  gap: 24px;
}

.profile-section {
  display: grid;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(19, 33, 45, 0.08);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-section:hover {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(15, 118, 110, 0.12);
}

.profile-section-title {
  margin: 0 0 4px 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

.profile-field {
  display: grid;
  gap: 6px;
}

.profile-field-full {
  grid-column: 1 / -1;
}

.profile-label {
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-value {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  word-break: break-word;
}

.profile-value-text {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
}

.notice,
.empty-state,
.access-denied,
.login-error {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(19, 33, 45, 0.08);
  background: rgba(255, 255, 255, 0.8);
}

.notice strong,
.access-denied strong {
  display: block;
  margin-bottom: 6px;
}

.notice-danger,
.access-denied,
.login-error {
  border-color: rgba(217, 72, 95, 0.22);
  background: rgba(255, 244, 246, 0.92);
  color: #a91d3a;
}

.notice-warning {
  border-color: rgba(217, 119, 6, 0.22);
  background: rgba(255, 248, 235, 0.95);
  color: #9a530a;
}

.empty-state {
  color: var(--text-soft);
  text-align: center;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px 28px;
  margin: 18px 18px 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 252, 248, 0.82));
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.page-title {
  font-size: clamp(1.75rem, 2.2vw, 2.4rem);
}

.page-subtitle {
  margin-top: 4px;
}

.topbar-user {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 14px;
  border-radius: 999px;
  background: rgba(247, 244, 239, 0.88);
  border: 1px solid rgba(19, 33, 45, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.topbar-user #topbarUsername {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.icon-btn {
  min-width: 46px;
  padding: 0;
  border-radius: 14px;
  color: var(--text);
}

.app-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar-backdrop {
  display: none;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 286px;
  height: 100vh;
  min-height: 100vh;
  padding: 22px 18px;
  color: #f7fafc;
  background:
    radial-gradient(circle at top right, rgba(46, 195, 183, 0.18), transparent 28%),
    linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-strong) 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 10px 22px;
}

.sidebar-logo h2,
.sidebar-mini {
  color: #f8fafc;
}

.sidebar-logo h2 {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
}

.sidebar-logo h2::before,
.sidebar-mini::before {
  content: "LM";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(46, 195, 183, 0.28), rgba(217, 119, 6, 0.34));
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.sidebar-mini {
  display: none;
  font-size: 0;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
  align-content: start;
  margin-top: 6px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 14px 16px;
  border-radius: 16px;
  color: rgba(240, 246, 252, 0.9);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.sidebar-nav a::before {
  content: none;
}

.sidebar-nav a .nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  flex-shrink: 0;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.sidebar-nav a .nav-icon svg {
  width: 18px;
  height: 18px;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
}

.sidebar-nav a.active .nav-icon {
  background: linear-gradient(135deg, rgba(46, 195, 183, 0.32), rgba(217, 119, 6, 0.34));
}

.sidebar-footer {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  align-content: end;
}

.logout-btn {
  width: 100%;
}

.shell-credit {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.shell-credit strong {
  display: block;
  color: #f8fafc;
  font-size: 13px;
  margin-bottom: 6px;
}

.shell-credit p,
.shell-credit a {
  color: rgba(240, 246, 252, 0.72);
  font-size: 12px;
  word-break: break-word;
}

.shell-credit a {
  font-weight: 700;
}

.main-wrapper {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.page-content {
  padding: 24px 18px 28px;
}

.page-content .container {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.page-content .container-wide {
  width: 100%;
  max-width: none;
}

body.sidebar-collapsed .sidebar {
  width: 96px;
  padding-inline: 12px;
}

body.sidebar-collapsed .sidebar-logo h2,
body.sidebar-collapsed .sidebar-footer .shell-credit {
  font-size: 0;
}

body.sidebar-collapsed .sidebar-mini {
  display: inline-flex;
}

body.sidebar-collapsed .sidebar-nav a {
  justify-content: center;
  gap: 0;
  color: transparent;
  padding-inline: 10px;
}

body.sidebar-collapsed .sidebar-nav a .nav-icon {
  width: 38px;
  height: 38px;
}

body.sidebar-collapsed .sidebar-footer {
  justify-items: center;
}

body.sidebar-collapsed .logout-btn {
  width: 52px;
  min-width: 52px;
  padding: 0;
  font-size: 0;
}

body.sidebar-collapsed .logout-btn::before {
  content: "⎋";
  font-size: 20px;
}

.login-page {
  display: grid;
  place-items: center;
  padding: 28px;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(320px, 1.15fr) minmax(320px, 0.85fr);
  width: min(1120px, 100%);
  border-radius: 36px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(20px);
}

.login-panel,
.login-card {
  padding: 44px;
}

.login-panel {
  display: grid;
  gap: 24px;
  background:
    radial-gradient(circle at top left, rgba(46, 195, 183, 0.2), transparent 34%),
    linear-gradient(180deg, #123043 0%, #0b1d29 100%);
  color: #fff;
}

.login-panel h1,
.login-panel h2,
.login-panel p,
.login-panel strong {
  color: inherit;
}

.login-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(46, 195, 183, 0.38), rgba(217, 119, 6, 0.4));
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

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

.login-feature {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.login-card {
  display: grid;
  align-content: center;
  gap: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 252, 248, 0.92));
}

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

.login-card button {
  width: 100%;
}

.login-footnote {
  font-size: 13px;
  color: var(--text-soft);
}

.login-footnote a {
  color: var(--primary-strong);
  font-weight: 800;
}

@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 900px) {
  .sidebar {
    position: sticky;
    top: 0;
    left: auto;
    bottom: auto;
    width: 286px;
    height: 100vh;
    min-height: 100vh;
    transform: none;
    z-index: auto;
  }

  .topbar {
    margin-inline: 14px;
    padding: 18px;
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-left,
  .topbar-user {
    width: 100%;
  }

  .topbar-user {
    justify-content: space-between;
  }

  .page-content {
    padding: 20px 14px 24px;
  }

  .container,
  .panel,
  .card,
  .hero-panel,
  .login-panel,
  .login-card {
    padding: 22px;
  }

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

  .field-span-2 {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .hero-stats,
  .mini-stats,
  .insight-grid,
  .dashboard-grid,
  .detail-grid,
  .shortcut-grid {
    grid-template-columns: 1fr;
  }

  .page-title {
    font-size: 1.6rem;
  }

  .hero-actions,
  .action-row,
  .table-actions,
  .preset-row,
  .nav-links {
    flex-direction: column;
  }

  button,
  .btn,
  .nav-links a {
    width: 100%;
  }

  .table-wrapper {
    padding: 10px;
  }

  table th,
  table td {
    padding: 14px 10px;
  }
}

/* Force desktop view on all devices */
html,
body {
  min-width: 1280px;
}

.app-layout {
  flex-direction: row;
}

.sidebar {
  position: sticky;
  top: 0;
  left: auto;
  bottom: auto;
  width: 286px;
  height: 100vh;
  min-height: 100vh;
  transform: none;
  z-index: auto;
}

.main-wrapper {
  width: auto;
}

.topbar {
  flex-direction: row;
  align-items: center;
}

.topbar-left,
.topbar-user {
  width: auto;
}

.topbar-user {
  justify-content: flex-start;
}

.container,
.panel,
.card,
.hero-panel,
.login-panel,
.login-card {
  padding: 28px;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-span-2 {
  grid-column: 1 / -1;
}

.hero-stats,
.mini-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.insight-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.dashboard-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.detail-grid,
.shortcut-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.hero-actions,
.action-row,
.table-actions,
.preset-row,
.nav-links {
  flex-direction: row;
}

button,
.btn,
.nav-links a {
  width: auto;
}
