﻿:root {
  --bg: #eef3f5;
  --surface: #ffffff;
  --surface-soft: #f8fafb;
  --ink: #15232b;
  --muted: #687782;
  --line: #d9e3e8;
  --primary: #0874df;
  --primary-dark: #062d59;
  --accent: #1f88ff;
  --danger: #b42318;
  --good: #137a4d;
  --warning: #8a6500;
  --nav: #071f3d;
  --nav-2: #0c315e;
  --shadow: 0 16px 38px rgba(24, 44, 52, 0.1);
  --shadow-soft: 0 8px 22px rgba(24, 44, 52, 0.07);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f8fbff 0, var(--bg) 320px);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  display: block;
}

body.auth-mode,
body.admin-mode {
  display: block;
}

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select {
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.hidden {
  display: none !important;
}

.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background:
    radial-gradient(circle at 20% 18%, rgba(31, 136, 255, 0.2), transparent 30%),
    linear-gradient(135deg, #061a33 0%, #0b315c 54%, #0b5d78 100%);
}

.auth-card {
  width: min(100%, 430px);
  background: #ffffff;
  border: 1px solid rgba(213, 226, 235, 0.92);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(3, 15, 31, 0.28);
  padding: 30px;
  display: grid;
  gap: 18px;
}

.login-card {
  width: min(100%, 460px);
}

.wide-auth-card {
  width: min(100%, 980px);
}

.auth-brand {
  margin-bottom: 8px;
  color: var(--ink);
}

.login-brand {
  display: grid;
  gap: 20px;
  margin-bottom: 8px;
  justify-items: center;
  text-align: center;
}

.login-logo {
  width: 188px;
  height: auto;
  display: block;
}

.login-heading {
  display: grid;
  gap: 8px;
}

.login-heading h1 {
  font-size: 28px;
  line-height: 1.1;
}

.login-heading span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.auth-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.auth-card input {
  border-radius: 8px;
  min-height: 50px;
  font-weight: 600;
}

.auth-card .button {
  min-height: 52px;
  margin-top: 2px;
  font-size: 16px;
}

.form-message {
  min-height: 18px;
  margin: 0;
  color: var(--danger);
  font-size: 13px;
}

.sidebar {
  background: linear-gradient(180deg, var(--nav), #0c1d22);
  color: white;
  padding: 24px 18px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 280px;
  max-width: calc(100vw - 28px);
  height: 100vh;
  box-shadow: 10px 0 28px rgba(10, 24, 28, 0.16);
  transform: translateX(-104%);
  transition: transform 180ms ease;
}

body.menu-open .sidebar {
  transform: translateX(0);
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(4, 18, 34, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

body.menu-open .menu-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.sidebar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 34px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 0;
}

.menu-close {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #d8e4e5;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-weight: 800;
}

.menu-close.light {
  color: var(--ink);
  background: #f4f8fb;
  border-color: var(--line);
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 8px;
  background: white;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 22px rgba(7, 31, 61, 0.18);
}

.auth-brand .brand-logo {
  width: 82px;
  height: 82px;
  box-shadow: 0 14px 32px rgba(8, 116, 223, 0.12);
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #10262c;
  background: linear-gradient(135deg, #f0c76b, #c7942f);
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(240, 199, 107, 0.22);
}

.brand small,
.eyebrow {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin: 4px 0 0;
  font-weight: 700;
  text-transform: uppercase;
}

.sidebar .brand small {
  color: #a7b7b9;
  text-transform: none;
  font-weight: 400;
}

nav {
  display: grid;
  gap: 8px;
}

.nav-button {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 14px;
  color: #d8e4e5;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-weight: 700;
}

.nav-button:hover,
.nav-button.active {
  background: var(--nav-2);
  border-color: rgba(255, 255, 255, 0.08);
  color: white;
}

.main {
  padding: 28px;
  min-width: 0;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.menu-toggle {
  min-width: 88px;
  min-height: 44px;
  border: 1px solid #cfe0ee;
  border-radius: 8px;
  color: #081f3d;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(7, 31, 61, 0.07);
  cursor: pointer;
  font-weight: 800;
}

.topbar,
.admin-topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
  padding: 22px 24px;
  background:
    linear-gradient(135deg, rgba(8, 116, 223, 0.12), rgba(255, 255, 255, 0.94) 42%),
    #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(7, 31, 61, 0.09);
  position: relative;
  overflow: hidden;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}

.topbar-title {
  padding-left: 4px;
}

.topbar-title h1 {
  color: #081f3d;
  font-size: 34px;
  text-transform: uppercase;
}

.admin-topbar {
  margin: 0;
  border-radius: 0;
  border-width: 0 0 1px;
  padding: 24px 28px;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(28px, 4vw, 38px);
}

h2 {
  font-size: 20px;
}

.top-actions {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: end;
  gap: 10px;
  justify-content: flex-end;
}

.user-pill {
  align-self: end;
  color: var(--primary-dark);
  font-size: 13px;
  white-space: nowrap;
  background: #eef7ff;
  border: 1px solid #cfe5fb;
  border-radius: 999px;
  min-height: 44px;
  padding: 11px 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.search {
  display: grid;
  gap: 6px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
}

.search input {
  width: 100%;
  min-width: 0;
  border-color: #cfe0ee;
  background: #fbfdff;
}

.search input,
input,
select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: white;
  min-height: 44px;
  color: var(--ink);
  outline: none;
}

input:focus,
select:focus {
  border-color: rgba(15, 118, 110, 0.7);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.button {
  border: 0;
  border-radius: 8px;
  padding: 11px 16px;
  min-height: 44px;
  color: white;
  background: var(--primary);
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.18);
}

.button:hover {
  background: var(--primary-dark);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
}

.button.secondary {
  background: #ffffff;
  border: 1px solid #cfe0ee;
  color: #081f3d;
  box-shadow: none;
}

.button.secondary:hover {
  border-color: #b7c7ce;
  background: #f8fbfb;
}

.button.danger-button {
  background: var(--danger);
}

.button.danger-button:hover {
  background: #8f1c14;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.metrics,
.admin-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.admin-summary {
  padding: 24px 28px 0;
}

.admin-menu {
  margin: 18px 28px 0;
  padding: 6px;
  display: flex;
  gap: 6px;
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.admin-menu-button {
  border: 0;
  border-radius: 8px;
  padding: 11px 14px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
}

.admin-menu-button:hover,
.admin-menu-button.active {
  background: #e9f4f2;
  color: var(--primary-dark);
}

.admin-view {
  display: none;
}

.admin-view.active {
  display: block;
}

.metric,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.metric {
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.metric::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--primary);
}

.admin-metric::before {
  background: var(--accent);
}

.metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 10px;
  font-size: 30px;
  letter-spacing: 0;
}

.panel {
  padding: 20px;
}

.admin-screen {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #f8fbfb 0, var(--bg) 280px);
}

.admin-main {
  padding: 0 28px 36px;
  display: block;
}

.admin-main > .panel {
  max-width: 1180px;
  margin: 18px auto 0;
}

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

.overview-grid > .panel {
  max-width: none;
  margin: 0;
}

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.toolbar-inline {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: end;
  gap: 10px;
}

.toolbar-inline select {
  min-width: 190px;
}

.dashboard-search input {
  min-width: 280px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.table-wrap.compact {
  margin-top: 10px;
}

.table-wrap.compact table {
  min-width: 720px;
}

.table-wrap.compact th,
.table-wrap.compact td {
  padding: 9px 10px;
  font-size: 12px;
}

.live-preview {
  margin-top: 12px;
}

.live-preview > strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.comparison-table {
  min-width: 1420px;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  background: #f5f8f9;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
  white-space: nowrap;
}

.comparison-table th,
.comparison-table td {
  padding: 11px 10px;
  font-size: 13px;
}

.comparison-table tbody tr:nth-child(odd) {
  background: #f7f9fb;
}

.price-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 5px;
  font-weight: 800;
  white-space: nowrap;
  background: #eef3f5;
  color: var(--ink);
}

.price-badge.good {
  background: #dff7eb;
  color: var(--good);
}

.price-badge.bad {
  background: #ffe4e1;
  color: var(--danger);
}

.price-badge.neutral {
  background: #eef3f5;
  color: var(--ink);
}

tbody tr:hover {
  background: #fbfdfd;
}

tr:last-child td {
  border-bottom: 0;
}

.status {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.status.good {
  color: var(--good);
  background: #e8f6ef;
}

.status.bad {
  color: var(--danger);
  background: #fdebea;
}

.status.neutral {
  color: var(--warning);
  background: #fff6d7;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.editor-form {
  max-width: 880px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.list-tools {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.list-tools input {
  width: min(100%, 520px);
}

.form-grid .wide {
  grid-column: span 2;
}

.list {
  display: grid;
  gap: 10px;
}

.list-item,
.client-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface-soft);
}

.list-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.list-item small {
  color: var(--muted);
}

.competitor-card {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(8, 116, 223, 0.06), rgba(255, 255, 255, 0.92)),
    var(--surface-soft);
}

.competitor-info {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 10px;
}

.competitor-title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.script-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.script-summary span {
  padding: 6px 9px;
  border: 1px solid #d8e7ef;
  border-radius: 999px;
  background: #ffffff;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
}

.error-text {
  color: var(--danger) !important;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.competitor-card .row-actions {
  flex: 0 0 auto;
  min-width: 420px;
}

.competitor-card .row-actions .button {
  width: 132px;
  min-height: 44px;
  padding: 10px 12px;
  white-space: nowrap;
}

.run-panel {
  margin: 0 0 14px;
  padding: 16px;
  border: 1px solid #b8d8ec;
  border-radius: 8px;
  background: #f4fbff;
  box-shadow: 0 12px 26px rgba(8, 116, 223, 0.08);
}

.run-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.run-panel-head strong,
.run-panel-head small {
  display: block;
}

.run-panel-head small {
  margin-top: 4px;
  color: var(--muted);
}

.run-panel .run-log {
  max-height: 280px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 18, 34, 0.52);
}

.modal-card {
  width: min(100%, 960px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 28px 70px rgba(3, 15, 31, 0.3);
}

.modal-card .form-grid {
  margin-bottom: 0;
}

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

.client-card {
  text-align: left;
  cursor: pointer;
}

.client-card:hover {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.12);
}

.client-card strong,
.client-card small {
  display: block;
}

.client-card small {
  color: var(--muted);
  margin-top: 8px;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.report-card {
  min-height: 128px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(20, 124, 255, 0.08), rgba(15, 118, 110, 0.08)),
    white;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(13, 34, 43, 0.06);
}

.report-card:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(15, 118, 110, 0.13);
}

.report-card strong,
.report-card small {
  display: block;
}

.report-card strong {
  font-size: 16px;
}

.report-card small {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.45;
}

.link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.link:hover {
  text-decoration: underline;
}

.import-box {
  border: 1px dashed #b6c8ce;
  border-radius: 8px;
  padding: 18px;
  display: grid;
  gap: 12px;
  background: #fbfcfc;
}

.operation-panel {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fbfdff;
}

.operation-panel strong,
.operation-panel small {
  display: block;
}

.operation-panel small {
  margin-top: 6px;
  color: var(--muted);
}

.preview {
  background: #10262c;
  color: #e9f2f1;
  border-radius: 8px;
  padding: 14px;
  overflow: auto;
  min-height: 80px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.run-log {
  margin: 10px 0 0;
  max-height: 180px;
  overflow: auto;
  white-space: pre-wrap;
  background: #10262c;
  color: #e9f2f1;
  border-radius: 8px;
  padding: 12px;
  font-size: 12px;
  line-height: 1.5;
}

.run-log.live {
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.check-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  background: #fbfcfc;
}

.check-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 1050px) {
  .metrics,
  .admin-summary {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .admin-main {
    grid-template-columns: 1fr;
  }

  .overview-grid {
    display: block;
  }

  .overview-grid > .panel {
    margin-top: 18px;
  }
}

@media (max-width: 900px) {
  body {
    display: block;
  }

  .topbar,
  .admin-topbar,
  .top-actions,
  .section-title {
    align-items: stretch;
    flex-direction: column;
  }

  .top-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .metrics,
  .admin-summary,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .list-item,
  .competitor-title {
    align-items: stretch;
    flex-direction: column;
  }

  .competitor-card .row-actions {
    min-width: 0;
    justify-content: flex-start;
  }

  .form-grid .wide {
    grid-column: auto;
  }

  .main,
  .admin-main,
  .admin-summary,
  .admin-menu {
    padding-left: 18px;
    padding-right: 18px;
  }

  .admin-menu {
    margin-left: 18px;
    margin-right: 18px;
  }
}

.executive-metrics {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.good-metric::before {
  background: var(--good);
}

.bad-metric::before {
  background: var(--danger);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.05fr) minmax(260px, 1fr) minmax(260px, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.compact-panel {
  padding: 18px;
  min-height: 280px;
}

.tight-title {
  margin-bottom: 12px;
}

.health-list,
.insight-list {
  display: grid;
  gap: 10px;
}

.health-row,
.insight-row {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.health-row {
  grid-template-columns: minmax(150px, 1fr) minmax(120px, 0.8fr) 54px;
  align-items: center;
}

.health-row strong,
.health-row span,
.insight-row strong,
.insight-row span,
.insight-row small {
  display: block;
}

.health-row span,
.insight-row span,
.insight-row small,
.muted-text {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.health-row b,
.insight-row b {
  color: var(--primary-dark);
  font-size: 14px;
}

.progress {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6edf1;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.progress span.good {
  background: var(--good);
}

.progress span.bad {
  background: var(--danger);
}

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

.product-cell {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-width: 280px;
}

.product-cell img,
.image-fallback {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #eef3f5;
  object-fit: cover;
}

.image-fallback {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

@media (max-width: 1200px) {
  .executive-metrics,
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 760px) {
  .executive-metrics,
  .dashboard-grid,
  .health-row,
  .insight-row {
    grid-template-columns: 1fr;
  }
}

.submenu-hero {
  margin: 0 0 16px;
  padding: 22px 24px;
  border: 1px solid #cfe0ee;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(8, 116, 223, 0.12), rgba(19, 122, 77, 0.08)),
    #ffffff;
  box-shadow: var(--shadow-soft);
}

.submenu-hero h2 {
  margin: 4px 0 8px;
  font-size: 24px;
  line-height: 1.2;
}

.submenu-hero span {
  color: var(--muted);
  line-height: 1.5;
}

.compact-hero {
  padding: 20px 22px;
}

.submenu-panel {
  border-color: #d6e4ec;
}

.entity-list {
  gap: 8px;
}

.entity-list .list-item {
  background: #ffffff;
  border-color: #dce8ee;
  box-shadow: 0 8px 18px rgba(15, 36, 46, 0.04);
}

.entity-list .list-item:hover {
  border-color: #b7d5e9;
  background: #fbfdff;
}

.pagination-bar {
  margin-top: 14px;
  min-height: 48px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  color: var(--muted);
  font-size: 13px;
}

.pagination-bar strong {
  color: var(--ink);
}

.pagination-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.pagination-actions span {
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.pagination-actions .button {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 13px;
}

@media (max-width: 760px) {
  .submenu-hero {
    padding: 18px;
  }

  .submenu-hero h2 {
    font-size: 20px;
  }

  .pagination-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .pagination-actions {
    justify-content: space-between;
  }

  .pagination-actions .button {
    flex: 1 1 110px;
  }
}
