:root {
  --bg: #f7f9fc;
  --bg-soft: #eef4fb;
  --panel: #ffffff;
  --panel-tint: #f8fbfe;
  --panel-soft: #eef4ff;
  --ink: #102635;
  --ink-soft: #2d4b5b;
  --muted: #6b7f8d;
  --line: #dbe7ed;
  --line-strong: #c8d9e2;
  --green: #20a66a;
  --green-dark: #14724f;
  --green-soft: #e7f6ee;
  --blue: #2f72e6;
  --blue-dark: #1b4fb4;
  --blue-soft: #eaf1ff;
  --cyan: #10a9d8;
  --amber: #f0a928;
  --red: #dc5a5a;
  --purple: #6d66d8;
  --shadow: 0 18px 45px rgba(22, 45, 62, 0.09);
  --shadow-soft: 0 8px 24px rgba(22, 45, 62, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% -10%, rgba(47, 114, 230, 0.13), transparent 30%),
    radial-gradient(circle at 96% 0%, rgba(109, 102, 216, 0.09), transparent 26%),
    linear-gradient(135deg, #fbfcff 0%, #f1f5fb 52%, #f8fafc 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 28% 18%, rgba(16, 169, 216, 0.16), transparent 30%),
    radial-gradient(circle at 82% 74%, rgba(32, 166, 106, 0.12), transparent 28%),
    linear-gradient(135deg, #f8fbff 0%, #eef5fb 52%, #f9fbfd 100%);
  transition: opacity 320ms ease, visibility 320ms ease;
}

.app-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-card {
  position: relative;
  width: min(440px, 100%);
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(200, 217, 226, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 70px rgba(16, 38, 53, 0.14);
  backdrop-filter: blur(18px);
}

.loader-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(47, 114, 230, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 114, 230, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 58%);
  pointer-events: none;
}

.loader-logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  margin-bottom: 20px;
  padding: 0 10px;
}

.loader-logo {
  display: block;
  max-width: min(330px, 92%);
  max-height: 64px;
  object-fit: contain;
}

.loader-map {
  position: relative;
  height: 116px;
  margin-bottom: 20px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(47, 114, 230, 0.12), rgba(16, 169, 216, 0.08)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(238, 246, 251, 0.9));
  border: 1px solid rgba(200, 217, 226, 0.76);
}

.loader-map::before {
  content: "";
  position: absolute;
  left: 52px;
  right: 52px;
  top: 58px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--blue) 0 12px, transparent 12px 22px);
  opacity: 0.45;
}

.loader-pin,
.loader-plane {
  position: absolute;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #ffffff;
  color: var(--blue);
  box-shadow: 0 12px 26px rgba(16, 38, 53, 0.13);
}

.loader-pin.is-start {
  left: 30px;
  top: 39px;
  color: var(--green-dark);
}

.loader-pin.is-end {
  right: 30px;
  top: 39px;
  color: var(--amber);
}

.loader-plane {
  left: 50%;
  top: 39px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  animation: loader-flight 1800ms ease-in-out infinite;
}

.loader-copy {
  position: relative;
}

.loader-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 650;
}

.loader-copy strong {
  display: block;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.15;
  font-weight: 660;
}

.loader-copy p {
  min-height: 22px;
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.loader-progress {
  position: relative;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(200, 217, 226, 0.58);
}

.loader-progress span {
  display: block;
  width: 28%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green));
  box-shadow: 0 0 18px rgba(47, 114, 230, 0.26);
  transition: width 240ms ease;
}

@keyframes loader-flight {
  0% {
    transform: translateX(-94px) translateY(6px) rotate(-8deg);
  }
  50% {
    transform: translateX(-6px) translateY(-8px) rotate(4deg);
  }
  100% {
    transform: translateX(84px) translateY(5px) rotate(10deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .loader-plane {
    animation: none;
  }

  .app-loader,
  .loader-progress span {
    transition: none;
  }
}

@media (max-width: 560px) {
  .app-loader {
    padding: 16px;
  }

  .loader-card {
    padding: 18px;
  }

  .loader-map {
    height: 92px;
    margin-bottom: 16px;
  }

  .loader-map::before {
    left: 42px;
    right: 42px;
    top: 46px;
  }

  .loader-pin,
  .loader-plane {
    width: 34px;
    height: 34px;
  }

  .loader-pin.is-start,
  .loader-pin.is-end,
  .loader-plane {
    top: 29px;
  }

  .loader-pin.is-start {
    left: 20px;
  }

  .loader-pin.is-end {
    right: 20px;
  }

  .loader-copy strong {
    font-size: 21px;
  }

  .loader-copy p {
    font-size: 13px;
  }
}

.app-shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 22px 18px 18px;
  color: #ecfbff;
  background:
    linear-gradient(180deg, rgba(25, 48, 84, 0.99), rgba(16, 31, 55, 0.99)),
    linear-gradient(135deg, rgba(47, 114, 230, 0.22), rgba(109, 102, 216, 0.12));
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 10px 0 32px rgba(16, 38, 53, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 78px;
  margin-top: -15px;
  margin-bottom: 0;
}

.brand-mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  height: 52px;
}

.brand-mark img {
  display: block;
  width: auto;
  height: auto;
  max-width: 200px;
  max-height: 60px;
  object-fit: contain;
  margin-bottom: 8px;
}

.brand-badge {
  position: absolute;
  right: 12px;
  bottom: 3px;
  display: inline-flex;
  align-items: center;
  min-height: 16px;
  padding: 2px 5px;
  border-radius: 999px;
  background: #ffffff;
  color: #102635;
  box-shadow: 0 6px 14px rgba(16, 38, 53, 0.18);
  font-size: 9px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand > div {
  display: none;
}

.brand strong {
  font-weight: 650;
}

.brand small {
  color: #b9cae1;
  margin-top: 2px;
  font-weight: 450;
}

.nav {
  display: grid;
  gap: 12px;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  width: auto;
  min-width: 0;
  max-width: 100%;
  min-height: 46px;
  padding: 8px 12px;
  border-radius: 8px;
  color: #dce8fb;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.nav a span:first-child {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  color: #a9c7ff;
  background: rgba(255, 255, 255, 0.09);
  font-size: 15px;
}

.nav a.active,
.nav a:hover {
  background: rgba(124, 145, 178, 0.34);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav a.active span:first-child {
  color: #ffffff;
  background: linear-gradient(135deg, #4e83f1, #2f72e6);
}

.sidebar-return {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  margin-top: auto;
  padding: 10px 12px;
  border: 1px solid rgba(158, 195, 255, 0.2);
  border-radius: 8px;
  color: #eef7ff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.sidebar-return:hover {
  background: rgba(47, 114, 230, 0.22);
  border-color: rgba(158, 195, 255, 0.38);
  transform: translateY(-1px);
}

.sidebar-return > span:first-child {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.sidebar-return strong,
.sidebar-return small {
  display: block;
}

.sidebar-return strong {
  font-size: 13px;
  font-weight: 620;
}

.sidebar-return small {
  max-width: 158px;
  margin-top: 2px;
  overflow: hidden;
  color: #b9cae1;
  font-size: 12px;
  font-weight: 450;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 86px;
  padding: 18px 28px;
  background: rgba(247, 251, 253, 0.88);
  border-bottom: 1px solid rgba(200, 217, 226, 0.75);
  backdrop-filter: blur(14px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 5px;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(47, 114, 230, 0.13);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 28px;
  line-height: 1.12;
  font-weight: 660;
}

h2 {
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 620;
}

h2 i {
  margin-right: 9px;
  color: var(--blue);
  font-size: 15px;
}

h3 {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
}

.filters {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding: 4px;
  border-radius: 8px;
  background: rgba(234, 241, 248, 0.56);
}

.filter-control {
  position: relative;
  min-width: 126px;
}

.date-range {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-left: 2px;
}

.date-range[hidden] {
  display: none;
}

.date-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 124px;
  min-height: 34px;
  border: 1px solid rgba(202, 216, 225, 0.78);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 1px 2px rgba(16, 38, 53, 0.04);
  font: inherit;
  font-size: 13px;
  font-weight: 540;
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease, color 140ms ease;
}

.date-trigger i {
  color: var(--blue);
  font-size: 12px;
}

.date-trigger:hover {
  border-color: rgba(47, 114, 230, 0.42);
  background: #ffffff;
}

.date-trigger:focus,
.date-trigger[aria-expanded="true"] {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(47, 114, 230, 0.12), 0 6px 14px rgba(47, 114, 230, 0.08);
}

.date-picker {
  position: fixed;
  z-index: 80;
  padding: 12px;
  border: 1px solid rgba(200, 217, 226, 0.95);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 60px rgba(16, 38, 53, 0.2);
}

.date-picker[hidden] {
  display: none;
}

.date-picker-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.date-picker-head strong {
  text-align: center;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.date-picker-head button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  cursor: pointer;
}

.date-picker-weekdays,
.date-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.date-picker-weekdays {
  margin-bottom: 6px;
}

.date-picker-weekdays span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 620;
  text-align: center;
}

.date-picker-grid button {
  height: 34px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
  font-weight: 560;
  cursor: pointer;
}

.date-picker-grid button:hover {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.date-picker-grid button.is-outside {
  color: #a9b8c3;
}

.date-picker-grid button.is-in-range {
  background: rgba(47, 114, 230, 0.09);
  color: var(--blue-dark);
}

.date-picker-grid button.is-selected {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 8px 18px rgba(47, 114, 230, 0.24);
}

.date-picker-grid button:disabled {
  color: #c9d4dc;
  background: transparent;
  cursor: not-allowed;
  opacity: 0.65;
}

label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 560;
  letter-spacing: 0;
}

select,
input,
textarea {
  min-height: 34px;
  border: 1px solid rgba(202, 216, 225, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  padding: 0 10px;
  outline: none;
  box-shadow: 0 1px 2px rgba(16, 38, 53, 0.04);
  font-size: 13px;
  font-weight: 540;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease, color 140ms ease;
}

select {
  width: 100%;
  min-width: 126px;
  padding-right: 30px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%),
    linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.86));
  background-position:
    calc(100% - 15px) 15px,
    calc(100% - 10px) 15px,
    0 0;
  background-size:
    5px 5px,
    5px 5px,
    100% 100%;
  background-repeat: no-repeat;
}

select:hover,
input:hover,
textarea:hover {
  border-color: rgba(47, 114, 230, 0.36);
  background-color: #ffffff;
}

select:focus,
input:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(47, 114, 230, 0.12), 0 6px 14px rgba(47, 114, 230, 0.08);
}

.content {
  display: grid;
  gap: 18px;
  padding: 24px 28px 96px;
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

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

.panel,
.metric,
.table-card,
.insight {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(219, 231, 237, 0.92);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

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

.metric::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--blue), var(--cyan));
}

.metric small {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
  margin-bottom: 10px;
}

.metric small i {
  color: var(--blue);
}

.metric strong {
  display: block;
  font-size: 26px;
  line-height: 1.08;
  font-weight: 680;
}

.metric em {
  display: block;
  margin-top: 9px;
  color: var(--blue-dark);
  font-size: 13px;
  font-style: normal;
  font-weight: 520;
}

.panel {
  min-width: 0;
  padding: 18px;
}

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

.panel-head h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 0;
}

.panel-head h2 i {
  color: var(--blue);
  font-size: 15px;
  margin-right: 0;
}

.panel-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.panel-head.compact {
  margin-bottom: 12px;
}

.panel-link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(200, 217, 226, 0.78);
  border-radius: 8px;
  color: var(--blue-dark);
  background: rgba(238, 244, 251, 0.72);
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

.overview-signals-panel {
  align-content: start;
}

.overview-summary-grid {
  align-items: start;
}

.overview-signal-list {
  display: grid;
  gap: 7px;
}

.overview-signal {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(219, 231, 237, 0.78);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 252, 255, 0.94));
}

.overview-signal > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--blue);
  background: rgba(47, 114, 230, 0.1);
  font-size: 13px;
}

.overview-signal.is-risk > span {
  color: #be4b4b;
  background: rgba(220, 90, 90, 0.1);
}

.overview-signal.is-growth > span {
  color: var(--green-dark);
  background: var(--green-soft);
}

.overview-signal.is-action > span {
  color: #b97808;
  background: rgba(240, 169, 40, 0.12);
}

.overview-signal strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 13.2px;
  line-height: 1.3;
  font-weight: 680;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.overview-signal small {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 5px;
  padding: 2px 7px;
  border: 1px solid rgba(47, 114, 230, 0.16);
  border-radius: 999px;
  color: var(--blue-dark);
  background: rgba(47, 114, 230, 0.07);
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.overview-signal.is-risk small {
  border-color: rgba(190, 75, 75, 0.18);
  color: #9e3f3f;
  background: rgba(220, 90, 90, 0.08);
}

.overview-signal.is-growth small {
  border-color: rgba(44, 146, 99, 0.18);
  color: var(--green-dark);
  background: rgba(72, 187, 120, 0.11);
}

.overview-signal.is-action small {
  border-color: rgba(185, 120, 8, 0.18);
  color: #8c5c06;
  background: rgba(240, 169, 40, 0.1);
}

.data-capture-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1.55fr);
  align-items: center;
  gap: 16px;
}

.data-capture-panel p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.capture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 7px;
}

.capture-grid span {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 7px 9px;
  color: var(--ink-soft);
  background: rgba(248, 251, 254, 0.78);
  border: 1px solid rgba(200, 217, 226, 0.62);
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.2;
  font-weight: 540;
}

.capture-grid i {
  color: var(--blue);
  font-size: 13px;
}

.chart {
  width: 100%;
  height: 292px;
}

.chart.tall {
  height: 372px;
}

.chart-tooltip {
  position: fixed;
  z-index: 80;
  display: grid;
  gap: 7px;
  min-width: 178px;
  max-width: min(280px, calc(100vw - 24px));
  padding: 11px 12px;
  border: 1px solid rgba(200, 217, 226, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 38px rgba(16, 38, 53, 0.18);
  color: var(--ink);
  font-size: 12px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 120ms ease, transform 120ms ease;
  backdrop-filter: blur(10px);
}

.chart-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.chart-tooltip strong {
  font-size: 13px;
  font-weight: 650;
}

.chart-tooltip div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

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

.chart-tooltip b {
  color: var(--ink);
  font-weight: 640;
  text-align: right;
}

.status-row,
.score-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.status-row:last-child,
.score-row:last-child {
  border-bottom: 0;
}

.status-row span,
.score-row span {
  color: var(--muted);
}

.score-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
  font-weight: 620;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 600;
}

.table-card {
  overflow: auto;
}

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

.products-table {
  table-layout: fixed;
  min-width: 820px;
}

.products-table-name {
  width: 32%;
}

.products-table-service {
  width: 13%;
}

.products-table-destination {
  width: 16%;
}

.products-table-orders {
  width: 8%;
}

.products-table-money {
  width: 12%;
}

.products-table-margin {
  width: 7%;
}

th,
td {
  position: relative;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
  min-width: 0;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 620;
  text-transform: uppercase;
}

td {
  color: var(--ink-soft);
  font-size: 14px;
}

.table-truncate {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  outline: none;
}

.table-truncate:hover,
.table-truncate:focus-visible {
  color: var(--blue-dark);
}

.table-truncate:hover::after,
.table-truncate:focus-visible::after {
  content: attr(data-full);
  position: absolute;
  left: 10px;
  top: calc(100% - 4px);
  z-index: 20;
  width: max-content;
  max-width: min(460px, calc(100vw - 72px));
  padding: 8px 10px;
  border: 1px solid rgba(200, 217, 226, 0.95);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 16px 34px rgba(16, 38, 53, 0.16);
  font-size: 12px;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

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

.insight {
  position: relative;
  overflow: hidden;
  padding: 16px;
}

.insight::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--amber));
}

.insight strong {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-weight: 620;
}

.insight p {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0;
}

.advice-list {
  display: grid;
  gap: 9px;
}

.advice-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px 13px 13px;
  border: 1px solid rgba(219, 231, 237, 0.78);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 252, 255, 0.94));
  box-shadow: 0 8px 18px rgba(16, 38, 53, 0.035);
}

.advice-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border-top: 3px solid rgba(47, 114, 230, 0.42);
  pointer-events: none;
}

.advice-top {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.advice-icon,
.advice-label,
.advice-hint {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.advice-icon {
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  color: var(--blue);
  background: rgba(47, 114, 230, 0.1);
  font-size: 11px;
}

.advice-label {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 640;
  letter-spacing: 0;
  text-transform: uppercase;
}

.advice-hint {
  min-width: 0;
  margin-left: auto;
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
}

.advice-card strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.38;
  font-weight: 620;
}

.advice-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12.8px;
  line-height: 1.5;
}

.advice-action {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 1px;
  padding: 9px 10px;
  border: 1px solid rgba(200, 217, 226, 0.62);
  border-radius: 8px;
  color: var(--ink-soft);
  background: rgba(248, 251, 254, 0.9);
  font-size: 12.5px;
  line-height: 1.42;
}

.advice-action i {
  margin-top: 2px;
  color: var(--blue);
  font-size: 11px;
}

.advice-card.is-risk::before {
  border-top-color: rgba(220, 90, 90, 0.5);
}

.advice-card.is-risk .advice-icon {
  color: #be4b4b;
  background: rgba(220, 90, 90, 0.1);
}

.advice-card.is-growth::before {
  border-top-color: rgba(32, 166, 106, 0.5);
}

.advice-card.is-growth .advice-icon {
  color: #158055;
  background: rgba(32, 166, 106, 0.1);
}

.advice-card.is-action::before {
  border-top-color: rgba(240, 169, 40, 0.58);
}

.advice-card.is-action .advice-icon {
  color: #b97808;
  background: rgba(240, 169, 40, 0.12);
}

.advice-card.is-signal::before {
  border-top-color: rgba(47, 114, 230, 0.5);
}

.market-panel {
  display: grid;
  gap: 14px;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.market-factor {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(219, 231, 237, 0.8);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbfe);
}

.market-factor small,
.market-factor div {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
}

.market-factor small i {
  color: var(--blue);
}

.market-factor strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.32;
  font-weight: 660;
}

.market-factor p,
.market-factor b {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.45;
  font-weight: 500;
}

.market-factor b {
  padding-top: 8px;
  border-top: 1px solid rgba(219, 231, 237, 0.75);
}

.market-factor div {
  justify-content: space-between;
  text-transform: none;
}

.market-factor em {
  color: var(--ink);
  font-style: normal;
}

.market-factor.is-up {
  border-top: 3px solid rgba(32, 166, 106, 0.55);
}

.market-factor.is-down {
  border-top: 3px solid rgba(220, 90, 90, 0.55);
}

.market-factor.is-neutral {
  border-top: 3px solid rgba(47, 114, 230, 0.45);
}

.market-advice {
  margin-top: 0;
}

.market-segments-panel {
  display: grid;
  gap: 14px;
}

.package-panel,
.comparison-panel {
  display: grid;
  gap: 14px;
}

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

.package-column,
.comparison-card {
  display: grid;
  align-content: start;
  gap: 9px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(219, 231, 237, 0.8);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbfe);
}

.package-column > strong,
.comparison-card > strong {
  color: var(--ink);
  font-size: 14px;
}

.package-row {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(219, 231, 237, 0.76);
}

.package-row span {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 12.8px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.package-row small,
.comparison-card small {
  color: var(--muted);
  font-size: 11.8px;
  line-height: 1.35;
}

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

.comparison-card span {
  color: var(--blue-dark);
  font-size: 20px;
  font-weight: 720;
}

.empty.compact {
  padding: 14px;
  border: 1px dashed rgba(200, 217, 226, 0.92);
  border-radius: 8px;
  background: rgba(248, 251, 253, 0.72);
  font-size: 12px;
}

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

.market-segment-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(219, 231, 237, 0.82);
  border-top: 3px solid rgba(47, 114, 230, 0.5);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbfe);
}

.market-segment-card.is-domestic,
.market-segment-card.is-internal {
  border-top-color: rgba(32, 166, 106, 0.58);
}

.market-segment-card.is-outbound,
.market-segment-card.is-external {
  border-top-color: rgba(47, 114, 230, 0.62);
}

.market-segment-card small {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.market-segment-card strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.3;
}

.market-segment-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.segment-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.segment-stats span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px;
  border-radius: 8px;
  background: rgba(238, 244, 251, 0.72);
}

.segment-stats b {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.segment-stats em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.forecast-board {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(280px, 0.52fr);
  gap: 16px;
  align-items: stretch;
}

.forecast-board-main,
.forecast-board-side,
.forecast-details-stack {
  display: grid;
  gap: 16px;
}

.forecast-board-side {
  align-content: start;
}

.forecast-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 20px 20px 18px;
  border: 1px solid rgba(214, 228, 236, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 253, 0.98));
  box-shadow: var(--shadow-soft);
}

.forecast-hero.is-risk {
  border-color: rgba(220, 90, 90, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 247, 0.94));
}

.forecast-hero.is-growth {
  border-color: rgba(72, 187, 120, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 253, 249, 0.94));
}

.forecast-primary-chart {
  min-height: 430px;
}

.forecast-primary-chart .chart {
  height: 344px;
}

.forecast-target-panel {
  display: grid;
  gap: 12px;
}

.panel-head.compact {
  margin-bottom: 0;
}

.forecast-gauge {
  height: 206px;
}

.forecast-target-facts {
  display: grid;
  gap: 8px;
}

.forecast-target-facts div {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid rgba(200, 217, 226, 0.72);
  border-radius: 8px;
  background: rgba(248, 251, 254, 0.86);
}

.forecast-target-facts span {
  color: var(--muted);
  font-size: 12px;
}

.forecast-target-facts strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.forecast-metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.forecast-metric {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(219, 231, 237, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.forecast-metric span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.forecast-metric span i {
  color: var(--blue);
}

.forecast-metric strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.1;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forecast-metric small {
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 560;
}

.forecast-model-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 14px;
  align-items: stretch;
  border-color: rgba(47, 114, 230, 0.22);
  background:
    linear-gradient(135deg, rgba(234, 241, 255, 0.9), rgba(255, 255, 255, 0.96));
}

.forecast-focus-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 16px;
  align-items: start;
}

.forecast-model-copy {
  display: grid;
  align-content: center;
  gap: 8px;
  min-width: 0;
}

.forecast-model-copy span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.forecast-model-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.16;
}

.forecast-model-copy p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.forecast-model-score {
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 118px;
  border: 1px solid rgba(200, 217, 226, 0.76);
  border-radius: 8px;
  background: #ffffff;
}

.forecast-model-score small,
.forecast-model-score em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.forecast-model-score strong {
  color: var(--blue-dark);
  font-size: 30px;
  line-height: 1;
}

.forecast-model-facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.forecast-model-facts div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(200, 217, 226, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.forecast-model-facts span {
  color: var(--muted);
  font-size: 12px;
}

.forecast-model-facts strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.forecast-help-panel {
  overflow: visible;
  padding: 0;
}

.forecast-help-trigger {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 16px;
  border-radius: 8px;
  outline: none;
}

.forecast-help-trigger > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 700;
}

.forecast-help-trigger > span i {
  color: var(--blue);
}

.forecast-help-trigger > strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.12;
}

.forecast-help-trigger > small {
  color: var(--muted);
  font-size: 12px;
}

.forecast-help-popover {
  position: absolute;
  top: auto;
  bottom: calc(100% + 8px);
  right: 0;
  z-index: 30;
  width: min(520px, calc(100vw - 64px));
  padding: 14px;
  border: 1px solid rgba(200, 217, 226, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 60px rgba(16, 38, 53, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.forecast-help-trigger:hover .forecast-help-popover,
.forecast-help-trigger:focus-within .forecast-help-popover,
.forecast-help-trigger:focus .forecast-help-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.forecast-action-panel {
  display: grid;
  gap: 12px;
}

.forecast-action-list {
  display: grid;
  gap: 10px;
}

.forecast-action-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.forecast-action-item > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  font-size: 12px;
  font-weight: 760;
}

.forecast-action-item .advice-card {
  box-shadow: none;
}

.forecast-detail {
  border: 1px solid rgba(219, 231, 237, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.forecast-detail summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 16px;
  color: var(--ink);
  font-weight: 680;
  list-style: none;
  cursor: pointer;
}

.forecast-detail summary::-webkit-details-marker {
  display: none;
}

.forecast-detail summary i:first-child {
  color: var(--blue);
}

.forecast-detail summary i:last-child {
  margin-left: auto;
  color: var(--muted);
  transition: transform 140ms ease;
}

.forecast-detail[open] summary i:last-child {
  transform: rotate(180deg);
}

.forecast-detail-body {
  display: grid;
  gap: 14px;
  padding: 0 16px 16px;
}

.forecast-detail-body > .panel {
  box-shadow: none;
}

.forecast-detail-body .market-panel,
.forecast-detail-body .package-panel,
.forecast-detail-body .comparison-panel,
.forecast-detail-body .market-segments-panel {
  background: rgba(248, 251, 254, 0.7);
}

.driver-list {
  display: grid;
  gap: 9px;
}

.driver-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid rgba(219, 231, 237, 0.78);
  border-radius: 8px;
  background: #ffffff;
}

.driver-row > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--blue);
  background: rgba(47, 114, 230, 0.1);
}

.driver-row.is-up > span {
  color: var(--green-dark);
  background: var(--green-soft);
}

.driver-row.is-down > span {
  color: #be4b4b;
  background: rgba(220, 90, 90, 0.1);
}

.driver-row strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.driver-row p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.driver-row em {
  color: var(--ink-soft);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.forecast-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.forecast-notes > div {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.forecast-notes strong {
  color: var(--ink);
  font-size: 13px;
}

.forecast-notes p {
  display: flex;
  gap: 8px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.45;
}

.forecast-notes i {
  margin-top: 2px;
  color: var(--blue);
}

.forecast-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 8px 0 0 8px;
  background: var(--blue);
}

.forecast-hero.is-growth::before {
  background: var(--green);
}

.forecast-hero.is-risk::before {
  background: var(--red);
}

.forecast-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 650;
}

.forecast-hero strong {
  display: block;
  color: var(--ink);
  font-size: 32px;
  line-height: 1.05;
  font-weight: 670;
}

.forecast-hero p {
  max-width: 420px;
  margin: 8px 0 0;
  color: var(--ink-soft);
  line-height: 1.45;
}

.forecast-hero em {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid rgba(47, 114, 230, 0.16);
  border-radius: 999px;
  color: var(--blue-dark);
  background: rgba(47, 114, 230, 0.07);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.2;
}

.forecast-hero.is-risk em {
  border-color: rgba(220, 90, 90, 0.2);
  color: #9e3f3f;
  background: rgba(220, 90, 90, 0.08);
}

.forecast-hero.is-growth em {
  border-color: rgba(72, 187, 120, 0.2);
  color: var(--green-dark);
  background: rgba(72, 187, 120, 0.1);
}

.forecast-ring {
  display: grid;
  place-items: center;
  align-content: center;
  width: 104px;
  height: 104px;
  border: 10px solid rgba(47, 114, 230, 0.16);
  border-top-color: var(--blue);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
}

.forecast-ring span {
  color: var(--ink);
  font-size: 23px;
  font-weight: 680;
}

.forecast-ring small {
  color: var(--muted);
  font-size: 11px;
}

.forecast-panel h2 {
  margin-bottom: 14px;
}

.forecast-explain {
  display: grid;
  gap: 10px;
}

.forecast-fact {
  display: grid;
  grid-template-columns: minmax(96px, 0.42fr) minmax(96px, 0.32fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.forecast-fact:last-child {
  border-bottom: 0;
}

.forecast-fact span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.forecast-fact strong {
  color: var(--ink);
  font-weight: 650;
}

.forecast-fact p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}

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

.scenario-row {
  display: grid;
  grid-template-columns: minmax(90px, 0.72fr) minmax(110px, 0.72fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(219, 231, 237, 0.9);
  border-radius: 8px;
  background: rgba(248, 251, 254, 0.88);
}

.scenario-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
}

.scenario-row strong {
  color: var(--ink);
  font-weight: 660;
}

.scenario-row small {
  color: var(--ink-soft);
  font-size: 12px;
}

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

.bar-line {
  display: grid;
  gap: 6px;
}

.bar-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 520;
}

.bar-meta strong {
  color: var(--ink);
  font-weight: 620;
}

.bar-track {
  height: 9px;
  border-radius: 999px;
  background: #e3edf2;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.assistant-toggle {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 65px;
  height: 65px;
  padding: 0;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: #ffffff;
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(47, 114, 230, 0.34);
  font-size: 13px;
  overflow: visible;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.assistant-toggle:hover,
.assistant-toggle:focus-visible {
  transform: scale(1.08);
  box-shadow: 0 22px 46px rgba(47, 114, 230, 0.42);
}

.assistant-toggle img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.assistant-toggle i {
  position: absolute;
  right: 5px;
  bottom: 1px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  box-shadow: 0 6px 14px rgba(47, 114, 230, 0.3);
}

.analysis-status {
  position: fixed;
  right: 96px;
  bottom: 26px;
  z-index: 32;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  max-width: min(520px, calc(100vw - 132px));
  padding: 10px 12px;
  border: 1px solid rgba(200, 217, 226, 0.88);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  font-size: 13px;
}

.analysis-status[hidden] {
  display: none;
}

.analysis-status i {
  color: var(--blue);
}

.analysis-status.is-refreshing i,
.analysis-status.is-building i {
  animation: spin 900ms linear infinite;
}

.analysis-status.is-error i,
.analysis-status.is-fallback i {
  color: var(--amber);
}

.analysis-status strong {
  white-space: nowrap;
  font-weight: 680;
}

.analysis-status span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

body.assistant-active .app-shell {
  filter: saturate(0.86) contrast(0.98);
}

body.assistant-active {
  overflow: hidden;
  overscroll-behavior: none;
}

body.assistant-active .assistant-toggle {
  display: none;
}

.assistant {
  position: fixed;
  inset: 18px;
  z-index: 40;
  display: none;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(247, 251, 255, 0.82), rgba(234, 241, 255, 0.68)),
    rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(200, 217, 226, 0.84);
  border-radius: 12px;
  box-shadow: 0 28px 90px rgba(16, 38, 53, 0.25);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.assistant.open {
  display: grid;
}

.assistant-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(219, 231, 237, 0.92);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}

.assistant-head strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 640;
}

.assistant-head strong i {
  color: var(--blue);
}

.assistant-head small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.assistant-head button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: 16px;
}

.agent-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr) minmax(220px, 270px);
  gap: 12px;
}

.agent-chat-panel,
.agent-stage,
.agent-tools {
  min-width: 0;
  min-height: 0;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(219, 231, 237, 0.94);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}

.agent-chat-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  overflow: hidden;
}

.agent-panel-title {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 15px 14px;
  border-bottom: 1px solid var(--line);
}

.agent-title-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 10px 22px rgba(47, 114, 230, 0.2);
}

.agent-title-icon i {
  font-size: 16px;
}

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

.agent-title-copy strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.12;
  font-weight: 650;
}

.agent-title-copy small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  font-weight: 520;
}

.assistant-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  padding: 14px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.72)),
    radial-gradient(circle at 12px 12px, rgba(47, 114, 230, 0.12) 1px, transparent 1.5px);
  background-size: auto, 18px 18px;
}

.message {
  max-width: 88%;
  min-width: 0;
  padding: 11px 12px;
  border-radius: 8px;
  line-height: 1.45;
  font-size: 14px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.message.assistant:has(.assistant-widgets) {
  width: min(100%, 720px);
}

.message.user {
  align-self: flex-end;
  background: var(--blue);
  color: #ffffff;
}

.message.assistant {
  align-self: flex-start;
  background: #ffffff;
  border: 1px solid var(--line);
}

.message-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.assistant-widgets {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.assistant-widgets.is-chat {
  grid-template-columns: minmax(0, 1fr);
}

.assistant-widgets.is-stage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
}

.assistant-widget-stage {
  display: block;
  margin-top: 10px;
  container-type: inline-size;
}

.assistant-widget {
  min-width: 0;
  max-width: 100%;
  padding: 10px;
  border: 1px solid rgba(219, 231, 237, 0.95);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.assistant-widget.is-wide {
  grid-column: 1 / -1;
}

.assistant-widget.is-large {
  grid-column: span 2;
}

.assistant-widget h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
  min-width: 0;
  overflow-wrap: anywhere;
}

.assistant-widget h3 i {
  color: var(--blue);
}

.assistant-widget-chart {
  width: 100%;
  height: 190px;
}

@container (max-width: 1040px) {
  .assistant-widgets.is-stage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container (max-width: 560px) {
  .assistant-widgets.is-stage {
    grid-template-columns: minmax(0, 1fr);
  }

  .assistant-widget.is-large,
  .assistant-widget.is-wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1280px) {
  .agent-layout {
    grid-template-columns: minmax(260px, 310px) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .agent-tools {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 0 14px 14px;
  }

  .agent-tools .agent-panel-title {
    grid-column: 1 / -1;
    margin: 0 -14px;
  }

  .agent-tools button {
    margin: 0;
  }
}

.assistant-widget-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.assistant-widget-table {
  width: 100%;
  min-width: 680px;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 12px;
}

.assistant-widget-table th,
.assistant-widget-table td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  white-space: normal;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.assistant-widget-table th {
  color: var(--muted);
  font-weight: 700;
}

.assistant-widget-table .is-text {
  width: 38%;
}

.assistant-widget-table .is-count {
  width: 10%;
}

.assistant-widget-table .is-money {
  width: 17%;
}

.assistant-widget-table .is-percent {
  width: 14%;
}

.assistant-widget-table th.is-numeric,
.assistant-widget-table td.is-numeric {
  text-align: right;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.assistant-widget-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.assistant-widget-kpi {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 9px;
  border-radius: 8px;
  background: #f5f9fc;
}

.assistant-widget-kpi span,
.assistant-widget-kpi small {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.25;
}

.assistant-widget-kpi strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.assistant-widget-notes {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.4;
}

.assistant-widget-alert {
  border-left: 3px solid var(--blue);
}

.assistant-widget-alert.is-risk,
.assistant-widget-alert.is-warning {
  border-left-color: var(--amber);
  background: #fff9ec;
}

.assistant-widget-alert.is-success {
  border-left-color: var(--green);
  background: #f0fbf5;
}

.assistant-widget-alert p,
.assistant-widget-recommendation {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.45;
}

.assistant-action-list,
.assistant-ranking,
.assistant-scenarios {
  display: grid;
  gap: 8px;
}

.assistant-action-item,
.assistant-ranking-row,
.assistant-scenarios > div,
.assistant-scenario-base,
.assistant-comparison-side,
.assistant-comparison-delta {
  min-width: 0;
  max-width: 100%;
  border: 1px solid rgba(219, 231, 237, 0.9);
  border-radius: 8px;
  padding: 9px;
  background: #f8fbfd;
  overflow-wrap: anywhere;
}

.assistant-action-item {
  display: grid;
  gap: 4px;
  border-left: 3px solid var(--blue);
}

.assistant-action-item.is-high {
  border-left-color: var(--red);
}

.assistant-action-item.is-low {
  border-left-color: var(--green);
}

.assistant-action-item span,
.assistant-ranking-row span,
.assistant-scenario-base span,
.assistant-scenarios span,
.assistant-comparison-side span,
.assistant-comparison-delta span {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 650;
}

.assistant-action-item strong,
.assistant-ranking-row strong,
.assistant-scenario-base strong,
.assistant-scenarios strong,
.assistant-comparison-side strong,
.assistant-comparison-delta strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.assistant-action-item small,
.assistant-action-item em,
.assistant-ranking-row small,
.assistant-scenario-base small,
.assistant-scenarios small,
.assistant-scenarios em,
.assistant-comparison-side small {
  color: var(--muted);
  font-size: 11.5px;
  font-style: normal;
  line-height: 1.35;
}

.assistant-ranking-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) minmax(72px, auto);
  align-items: center;
  gap: 8px;
}

.assistant-ranking-row > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: var(--blue);
  background: #eaf3ff;
}

.assistant-ranking-row div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.assistant-ranking-row em {
  color: var(--ink);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  text-align: right;
  overflow-wrap: anywhere;
}

.assistant-ranking-row em.is-up,
.assistant-comparison-delta.is-up strong {
  color: var(--green);
}

.assistant-ranking-row em.is-down,
.assistant-comparison-delta.is-down strong {
  color: var(--red);
}

.assistant-comparison {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
}

.assistant-comparison-side,
.assistant-comparison-delta,
.assistant-scenario-base,
.assistant-scenarios > div {
  display: grid;
  gap: 4px;
}

.assistant-comparison-delta {
  justify-items: center;
  align-content: center;
  min-width: 94px;
}

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

.assistant-funnel {
  display: grid;
  gap: 9px;
}

.assistant-funnel-step {
  display: grid;
  gap: 5px;
}

.assistant-funnel-step > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.assistant-funnel-step strong,
.assistant-insight-card > strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.assistant-funnel-step span,
.assistant-funnel-step small,
.assistant-insight-meta,
.assistant-insight-card p,
.assistant-data-quality-grid span {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
}

.assistant-funnel-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8f1f6;
}

.assistant-funnel-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.assistant-insight-card {
  display: grid;
  gap: 8px;
  border-left: 3px solid var(--blue);
}

.assistant-insight-card.is-down {
  border-left-color: var(--red);
  background: #fff6f5;
}

.assistant-insight-card.is-up {
  border-left-color: var(--green);
  background: #f0fbf5;
}

.assistant-insight-card p {
  margin: 0;
}

.assistant-insight-meta {
  display: grid;
  gap: 4px;
}

.assistant-insight-meta em {
  color: var(--ink-soft);
  font-style: normal;
}

.assistant-data-quality {
  border-left: 3px solid var(--amber);
}

.assistant-data-quality.is-good {
  border-left-color: var(--green);
}

.assistant-data-quality.is-poor {
  border-left-color: var(--red);
  background: #fff6f5;
}

.assistant-data-quality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 8px;
}

.assistant-data-quality-grid > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid rgba(219, 231, 237, 0.9);
  border-radius: 8px;
  padding: 8px;
  background: #f8fbfd;
}

.assistant-data-quality-grid strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.assistant-data-quality-grid .is-good strong {
  color: var(--green);
}

.assistant-data-quality-grid .is-poor strong {
  color: var(--red);
}

.assistant-prompts {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
}

.assistant-prompts button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 11px;
  font-size: 12px;
  font-weight: 560;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.assistant-prompts button i {
  transition: color 140ms ease;
}

.assistant-prompts button:hover,
.assistant-prompts button:focus-visible {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue-dark);
  box-shadow: 0 10px 22px rgba(47, 114, 230, 0.16);
  transform: translateY(-1px);
}

.assistant-prompts button:hover i,
.assistant-prompts button:focus-visible i {
  color: var(--blue);
}

.assistant-prompts button:focus-visible {
  outline: 2px solid rgba(47, 114, 230, 0.22);
  outline-offset: 2px;
}

.assistant-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.assistant-form textarea {
  min-height: 56px;
  max-height: 200px;
  resize: none;
  overflow-y: hidden;
  line-height: 1.45;
  padding: 13px 15px;
}

.assistant-form textarea.scrollable {
  overflow-y: auto;
}

.assistant-form-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: max-content;
}

.assistant-form button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  font-size: 15px;
  transition: box-shadow 140ms ease, border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.assistant-form button:hover {
  box-shadow: 0 12px 24px rgba(47, 114, 230, 0.18);
}

.assistant-send-button {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(47, 114, 230, 0.22);
}

.assistant-form .assistant-voice-button {
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--blue);
}

.assistant-form .assistant-voice-button:hover {
  border-color: rgba(47, 114, 230, 0.42);
  background: #f8fbff;
}

.assistant-form .assistant-voice-button.is-recording {
  border-color: rgba(220, 64, 73, 0.34);
  background: #fff5f6;
  color: var(--red);
  animation: assistantVoicePulse 1.2s ease-in-out infinite;
}

@keyframes assistantVoicePulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(220, 64, 73, 0.18);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(220, 64, 73, 0.06);
  }
}

@media (max-width: 420px) {
  .assistant-form {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
  }

  .assistant-form-actions {
    gap: 5px;
  }

  .assistant-form button {
    width: 40px;
    height: 40px;
    min-height: 40px;
  }
}

.agent-stage {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.agent-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
}

.agent-stage-head span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 640;
}

.agent-stage-head i {
  color: var(--blue);
}

.agent-stage-head small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.agent-stage-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.agent-stage-actions button,
.agent-tools button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 9px;
  font-size: 12px;
  font-weight: 560;
  transition: border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.agent-stage-actions button:hover,
.agent-tools button:hover {
  border-color: var(--blue);
  color: var(--blue-dark);
  box-shadow: var(--shadow-soft);
}

.agent-workspace {
  min-height: 0;
  overflow: auto;
  padding: 12px;
  background:
    radial-gradient(circle at 18px 18px, rgba(47, 114, 230, 0.12) 1px, transparent 1.5px),
    linear-gradient(135deg, rgba(248, 251, 254, 0.94), rgba(238, 244, 251, 0.88));
  background-size: 22px 22px, auto;
}

.agent-empty,
.agent-result,
.agent-live-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(219, 231, 237, 0.95);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}

.agent-empty {
  display: grid;
  align-content: center;
  gap: 12px;
  min-height: 100%;
  padding: 30px;
  text-align: center;
}

.agent-empty i {
  color: var(--blue);
  font-size: 28px;
}

.agent-empty strong {
  font-size: 22px;
  font-weight: 650;
}

.agent-empty p,
.agent-result p,
.agent-live-card p {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0;
}

.agent-empty.is-loading {
  position: relative;
  justify-items: center;
  gap: 16px;
  overflow: hidden;
}

.agent-empty.is-loading::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(47, 114, 230, 0.08);
  border-radius: 10px;
  pointer-events: none;
}

.agent-loader-orbit {
  position: relative;
  width: 82px;
  height: 82px;
  border-radius: 50%;
}

.agent-loader-orbit::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg, rgba(47, 114, 230, 0.08), rgba(47, 114, 230, 0.72), rgba(41, 194, 183, 0.42), rgba(47, 114, 230, 0.08));
  animation: agentOrbitSpin 1.8s linear infinite;
}

.agent-loader-orbit::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(219, 231, 237, 0.9);
}

.agent-loader-ai {
  position: absolute;
  inset: 23px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #5f8ff0, var(--blue));
  color: #ffffff;
  box-shadow:
    0 0 0 8px rgba(47, 114, 230, 0.1),
    0 10px 24px rgba(47, 114, 230, 0.2);
  animation: agentCorePulse 1.6s ease-in-out infinite;
}

.agent-loader-ai i {
  font-size: 13px;
}

.agent-loader-ai b {
  margin-top: 1px;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0;
}

.agent-loader-orbit span {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 4px 14px rgba(47, 114, 230, 0.28);
}

.agent-loader-orbit span:nth-child(1) {
  top: 2px;
  left: 36px;
}

.agent-loader-orbit span:nth-child(2) {
  right: 7px;
  top: 51px;
  background: var(--cyan);
}

.agent-loader-orbit span:nth-child(3) {
  left: 13px;
  bottom: 10px;
  background: #5d6fe8;
}

.agent-loader-orbit span:nth-child(4) {
  left: 7px;
  top: 21px;
  background: #1d4ed8;
}

.agent-empty.is-loading strong {
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.08;
  color: var(--ink);
}

.agent-empty.is-loading p {
  max-width: 520px;
  margin: 0 auto;
  color: #6e7d89;
  font-size: clamp(15px, 2vw, 19px);
}

.agent-loader-steps {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.agent-loader-steps span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(47, 114, 230, 0.12);
  border-radius: 999px;
  background: rgba(247, 251, 255, 0.82);
  color: #5d6b78;
  font-size: 12px;
  font-weight: 650;
  animation: agentStepFade 1.8s ease-in-out infinite;
}

.agent-loader-steps span:nth-child(2) {
  animation-delay: 0.22s;
}

.agent-loader-steps span:nth-child(3) {
  animation-delay: 0.44s;
}

@keyframes agentOrbitSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes agentCorePulse {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.78;
  }

  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

@keyframes agentStepFade {
  0%,
  100% {
    border-color: rgba(47, 114, 230, 0.12);
    color: #5d6b78;
    transform: translateY(0);
  }

  50% {
    border-color: rgba(47, 114, 230, 0.38);
    color: var(--blue-dark);
    transform: translateY(-2px);
  }
}

.agent-result {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  overflow-wrap: anywhere;
}

.agent-result strong {
  font-size: 18px;
  font-weight: 640;
  overflow-wrap: anywhere;
}

.agent-live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.agent-live-card {
  min-width: 0;
  padding: 10px;
}

.agent-live-card small {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 560;
  line-height: 1.25;
}

.agent-live-card small i {
  color: var(--blue);
}

.agent-live-card strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.08;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.agent-live-card em {
  display: block;
  margin-top: 6px;
  color: var(--blue-dark);
  font-style: normal;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 520;
  overflow-wrap: anywhere;
}

.agent-live-main {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.agent-live-panel {
  min-width: 0;
  min-height: 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(219, 231, 237, 0.95);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}

.agent-live-panel:has(canvas) {
  background:
    radial-gradient(circle at 12px 12px, rgba(47, 114, 230, 0.08) 1px, transparent 1.5px),
    rgba(255, 255, 255, 0.95);
  background-size: 18px 18px, auto;
}

.agent-live-panel.is-wide {
  grid-column: 1 / -1;
}

.agent-live-panel h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.25;
}

.agent-live-panel h3 i {
  color: var(--blue);
}

.agent-live-panel p {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 0;
}

.agent-mini-chart {
  width: 100%;
  height: 188px;
}

.agent-live-panel.is-wide .agent-mini-chart {
  height: 230px;
}

.agent-stage .split-list {
  display: grid;
  gap: 0;
}

.agent-stage .score-row {
  display: grid;
  grid-template-columns: minmax(78px, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 8px;
  padding: 8px 0;
}

.agent-stage .score-row span {
  min-width: 0;
  font-size: 12px;
  line-height: 1.3;
}

.agent-stage .score-row strong {
  min-width: 0;
  font-size: 12.5px;
  line-height: 1.25;
  text-align: right;
  overflow-wrap: anywhere;
}

.agent-tools {
  display: grid;
  grid-template-rows: auto;
  align-content: start;
  gap: 10px;
  padding-bottom: 14px;
  overflow: auto;
}

.agent-tools button {
  justify-content: flex-start;
  margin: 0 14px;
  min-height: 44px;
}

.agent-tools button i {
  color: var(--blue);
  width: 18px;
}

.empty {
  padding: 32px;
  color: var(--muted);
  text-align: center;
}

.wide-action {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 12px;
  text-align: left;
  font-weight: 540;
}

.wide-action i {
  color: var(--blue);
}

.wide-action:hover {
  border-color: var(--blue);
  color: var(--blue-dark);
  box-shadow: var(--shadow-soft);
}

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

.quick-question-group {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(219, 231, 237, 0.9);
  border-radius: 8px;
  background: rgba(248, 251, 253, 0.72);
}

.quick-question-group h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
  font-weight: 680;
}

.quick-question-group h3 i {
  color: var(--blue);
}

.quick-question-group .wide-action {
  min-height: 40px;
  padding: 8px 10px;
  line-height: 1.25;
}

.schema {
  overflow: auto;
  margin: 0;
  color: #244756;
  background: var(--panel-tint);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  line-height: 1.5;
}

.dev-login-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1fr);
  align-items: start;
  gap: 18px;
  max-width: 820px;
}

.dev-login-panel p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

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

.dev-login-form button,
.logs-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  border: 1px solid rgba(200, 217, 226, 0.82);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #ffffff;
  font-weight: 560;
}

.dev-login-form button {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.dev-login-form button:disabled {
  opacity: 0.72;
  cursor: wait;
}

.dev-login-error {
  margin: 0;
  color: #be4b4b;
  font-size: 13px;
}

.logs-panel {
  display: grid;
  gap: 14px;
}

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

.logs-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.logs-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

.dev-tabs,
.model-history-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  padding: 4px;
  border: 1px solid rgba(200, 217, 226, 0.82);
  border-radius: 8px;
  background: rgba(248, 251, 253, 0.8);
}

.dev-tabs {
  position: sticky;
  top: 0;
  z-index: 4;
  box-shadow: var(--shadow-soft);
}

.dev-tabs button,
.model-history-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 11px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 12px;
  font-weight: 680;
  white-space: nowrap;
}

.dev-tabs button i,
.model-history-tabs button i {
  color: var(--blue);
}

.dev-tabs button:hover,
.model-history-tabs button:hover {
  color: var(--blue-dark);
  background: rgba(47, 114, 230, 0.07);
}

.dev-tabs button.is-active,
.model-history-tabs button.is-active {
  border-color: rgba(47, 114, 230, 0.18);
  color: var(--blue-dark);
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(35, 76, 112, 0.08);
}

.model-history-panel,
.model-history-list,
.model-actions-panel,
.model-actions-list,
.security-logs-panel,
.security-logs-list {
  display: grid;
  gap: 12px;
}

.security-logs-panel {
  border-left: 3px solid var(--amber);
}

.security-summary,
.security-log-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.security-summary span,
.security-log-tags span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  border: 1px solid rgba(200, 217, 226, 0.82);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--ink-soft);
  background: var(--panel-tint);
  font-size: 12px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.security-summary b {
  color: var(--ink);
}

.security-log-tags {
  margin-top: 8px;
}

.security-log-tags span.is-danger {
  border-color: rgba(220, 64, 73, 0.22);
  color: var(--red);
  background: #fff5f6;
}

.security-log-item {
  border-left-color: var(--amber);
}

.model-history-search {
  min-width: min(320px, 100%);
  height: 36px;
  border: 1px solid rgba(200, 217, 226, 0.82);
  border-radius: 8px;
  padding: 0 11px;
  color: var(--ink);
  background: #ffffff;
}

.model-history-item {
  border: 1px solid rgba(200, 217, 226, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  overflow: hidden;
}

.model-history-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  cursor: pointer;
  list-style: none;
}

.model-history-item summary::-webkit-details-marker {
  display: none;
}

.model-history-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.model-history-meta strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.model-history-meta small,
.model-history-badges em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.model-history-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.model-history-badges em {
  display: inline-flex;
  border: 1px solid rgba(200, 217, 226, 0.82);
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--panel-tint);
}

.model-history-body {
  display: grid;
  gap: 12px;
  border-top: 1px solid rgba(219, 231, 237, 0.8);
  padding: 12px;
}

.model-conversation-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 10px;
}

.model-conversation-strip section {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  border: 1px solid rgba(219, 231, 237, 0.92);
  border-radius: 8px;
  padding: 11px;
  background: rgba(248, 251, 253, 0.74);
}

.model-conversation-strip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.model-conversation-strip span i {
  color: var(--blue);
}

.model-conversation-strip p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}

.model-history-tab-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
}

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

.model-history-body h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 14px;
}

.model-history-body p {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.model-history-body pre {
  overflow: auto;
  max-height: 420px;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(219, 231, 237, 0.8);
  border-radius: 8px;
  color: #244756;
  background: var(--panel-tint);
  font-size: 12px;
  line-height: 1.45;
}

.model-action-item {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.9fr) auto;
  gap: 12px;
  align-items: start;
  min-width: 0;
  max-width: 100%;
  border: 1px solid rgba(200, 217, 226, 0.82);
  border-left: 3px solid var(--blue);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.86);
  overflow-wrap: anywhere;
}

.model-action-item.is-completed {
  border-left-color: var(--green);
}

.model-action-item.is-dismissed {
  border-left-color: var(--muted);
  opacity: 0.76;
}

.model-action-main,
.model-action-effect {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.model-action-main > span {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--blue-dark);
  background: #eaf3ff;
  font-size: 11px;
  font-weight: 700;
}

.model-action-main strong,
.model-action-effect strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.model-action-main small,
.model-action-main p,
.model-action-main em {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.model-action-effect-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.model-action-effect-grid > div {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(219, 231, 237, 0.9);
  border-radius: 8px;
  padding: 8px;
  background: var(--panel-tint);
}

.model-action-effect-grid span {
  color: var(--muted);
  font-size: 11px;
}

.model-action-effect-grid strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}

.model-action-effect-grid .is-up strong {
  color: var(--green);
}

.model-action-effect-grid .is-down strong {
  color: var(--red);
}

.model-action-controls {
  display: grid;
  gap: 7px;
}

.model-action-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  border: 1px solid rgba(200, 217, 226, 0.82);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--ink);
  background: #ffffff;
  font-size: 12px;
  font-weight: 650;
  white-space: normal;
  overflow-wrap: anywhere;
}

.log-item {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(200, 217, 226, 0.78);
  border-left: 3px solid var(--red);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
}

.log-item.is-info {
  border-left-color: var(--blue);
}

.log-item.is-warning {
  border-left-color: var(--amber);
}

.log-item span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 5px;
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(235, 243, 248, 0.9);
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
}

.log-item strong,
.log-item small {
  display: block;
}

.log-item strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 620;
}

.log-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.log-item pre {
  overflow: auto;
  max-height: 220px;
  margin: 0;
  padding: 10px;
  border-radius: 8px;
  color: #244756;
  background: var(--panel-tint);
  border: 1px solid rgba(219, 231, 237, 0.8);
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .brand div,
  .nav a span:last-child,
  .sidebar-return span:last-child {
    display: none;
  }

  .sidebar {
    padding-inline: 12px;
  }

  .brand {
    min-height: 48px;
    margin-bottom: 10px;
  }

  .brand-mark {
    width: 42px;
    min-width: 42px;
    height: 42px;
  }

  .brand-mark img {
    max-width: 42px;
    max-height: 32px;
  }

  .brand-badge {
    right: -4px;
    bottom: -1px;
    min-height: 13px;
    padding: 2px 4px;
    font-size: 7px;
  }

  .nav a {
    justify-content: center;
    min-height: 42px;
    padding: 8px;
  }

  .nav a span:first-child {
    width: 32px;
    height: 32px;
  }

  .sidebar-return {
    justify-content: center;
    min-height: 46px;
    padding: 8px;
  }

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

  .data-capture-panel {
    grid-template-columns: 1fr;
  }

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

  .forecast-board,
  .forecast-focus-grid {
    grid-template-columns: 1fr;
  }

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

  .model-history-columns,
  .model-conversation-strip,
  .model-action-item,
  .assistant-comparison,
  .assistant-scenarios,
  .assistant-data-quality-grid {
    grid-template-columns: 1fr;
  }

  .model-action-controls {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .model-history-item summary {
    align-items: stretch;
    flex-direction: column;
  }

  .model-history-badges {
    justify-content: flex-start;
  }

  .assistant {
    inset: 12px;
  }

  .agent-layout {
    grid-template-columns: minmax(260px, 310px) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .agent-tools {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 0 14px 14px;
  }

  .agent-tools .agent-panel-title {
    grid-column: 1 / -1;
    margin: 0 -14px;
  }

  .agent-tools button {
    margin: 0;
  }

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

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

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

@media (max-width: 760px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: static;
    display: block;
    height: auto;
    padding: 12px;
  }

  .brand {
    justify-content: flex-start;
    min-height: 64px;
    margin-bottom: 10px;
  }

  .brand-mark {
    width: 186px;
    min-width: 186px;
    height: 56px;
  }

  .brand-mark img {
    max-width: 100%;
    max-height: 48px;
  }

  .brand-badge {
    right: 8px;
    bottom: 2px;
    min-height: 16px;
    padding: 2px 5px;
    font-size: 9px;
  }

  .nav a span:last-child,
  .sidebar-return span:last-child {
    display: block;
  }

  .nav {
    display: flex;
    overflow-x: auto;
  }

  .nav a {
    flex: 0 0 auto;
  }

  .sidebar-return {
    width: fit-content;
    margin-top: 10px;
  }

  .topbar {
    position: static;
    display: grid;
    padding: 16px;
  }

  .filters {
    justify-content: stretch;
  }

  .filters > .filter-control {
    flex: 1 1 118px;
  }

  .date-range {
    flex: 1 1 100%;
    justify-content: stretch;
  }

  .date-range .filter-control {
    flex: 1 1 124px;
  }

  .date-trigger {
    width: 100%;
  }

  .content {
    padding: 16px 16px 92px;
  }

	  .grid.kpis,
	  .grid.two,
	  .grid.three,
	  .market-grid,
	  .market-segments-grid,
	  .package-grid,
	  .comparison-grid,
	  .segment-stats,
	  .forecast-board,
	  .forecast-focus-grid,
	  .forecast-metric-strip,
	  .forecast-model-facts {
	    grid-template-columns: 1fr;
	  }

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

  .logs-head {
    display: grid;
  }

  .logs-actions {
    justify-content: stretch;
  }

  .logs-actions button {
    flex: 1 1 120px;
  }

	  .forecast-hero {
	    grid-template-columns: 1fr;
	  }

	  .forecast-model-panel,
	  .forecast-notes {
	    grid-template-columns: 1fr;
	  }

  .assistant-widgets.is-stage,
  .assistant-widget-kpis {
    grid-template-columns: 1fr;
  }

  .assistant-widget.is-large,
  .assistant-widget.is-wide {
    grid-column: 1 / -1;
  }

	  .forecast-ring {
    width: 96px;
    height: 96px;
  }

  .forecast-primary-chart {
    min-height: auto;
  }

  .forecast-primary-chart .chart {
    height: 300px;
  }

  .forecast-help-popover {
    position: absolute;
    top: calc(100% + 8px);
    bottom: auto;
    left: 0;
    right: auto;
    width: 100%;
    margin-top: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    box-shadow: 0 18px 44px rgba(16, 38, 53, 0.18);
  }

  .forecast-fact,
  .scenario-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .chart {
    height: 280px;
  }

	  .assistant-toggle {
	    right: 16px;
	  }

	  .analysis-status {
	    right: 84px;
	    bottom: 18px;
	    grid-template-columns: auto minmax(0, 1fr);
	    max-width: calc(100vw - 108px);
	  }

	  .analysis-status span {
	    grid-column: 1 / -1;
	  }

	  .assistant {
    inset: 8px;
    padding: 10px;
    overflow: auto;
  }

  .assistant.open {
    display: block;
  }

  .assistant-head {
    margin-bottom: 10px;
  }

  .agent-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .agent-chat-panel,
  .agent-stage,
  .agent-tools {
    min-height: auto;
  }

  .agent-chat-panel {
    grid-template-rows: auto minmax(180px, 32vh) auto auto;
  }

  .agent-stage {
    min-height: 520px;
  }

  .agent-stage-head {
    display: grid;
  }

  .agent-stage-actions {
    justify-content: start;
  }

  .agent-tools {
    grid-template-columns: 1fr;
    padding: 0 0 12px;
  }

  .agent-live-grid {
    grid-template-columns: 1fr;
  }

  .quick-question-grid {
    grid-template-columns: 1fr;
  }
}
