@font-face {
  font-family: "Geologica Roman";
  src: url("./assets/fonts/GeologicaRoman-Thin.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geologica Roman";
  src: url("./assets/fonts/GeologicaRoman-ExtraLight.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geologica Roman";
  src: url("./assets/fonts/GeologicaRoman-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geologica Roman";
  src: url("./assets/fonts/GeologicaRoman-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geologica Roman";
  src: url("./assets/fonts/GeologicaRoman-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geologica Roman";
  src: url("./assets/fonts/GeologicaRoman-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geologica Roman";
  src: url("./assets/fonts/GeologicaRoman-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geologica Roman";
  src: url("./assets/fonts/GeologicaRoman-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geologica Roman";
  src: url("./assets/fonts/GeologicaRoman-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-family-base: "Geologica Roman", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --color-white: #ffffff;
  --color-black: #000000;
  --color-darkest-gray: #323232;
  --color-dark-gray: #828282;
  --color-middle-gray: #dcdcdc;
  --color-light-gray: #fdfdfd;
  --color-light-gray-2: #f1f1f1;
  --color-done: #6865ff;
  --color-done-hover: #5753e6;
  --color-done-background: #f4f4fd;
  --color-alert-action: #ff5a5a;
  --color-alert-background: #fae9e9;
  --color-alert-background-hover: #f2d4d4;
  --color-hover-gray: #e2e2e2;
  --color-hover-done-background: #e6e6f5;
  --color-chart-line: #1c1c1d;
  --color-chart-grid: #e9e9e9;
  --color-chart-grid-soft: #eeeeee;
  --color-chart-label: #666666;
  --color-tooltip-background: #0a0a0a;
  --color-surface-soft: #f8f8f8;
  --color-shadow-page: rgba(10, 20, 47, 0.08);
  --color-shadow-card: rgba(10, 20, 47, 0.04);
  --color-focus-done-ring: rgba(104, 101, 255, 0.12);
  --color-active-done-shadow: rgba(104, 101, 255, 0.18);
  --color-border-soft: rgba(220, 220, 220, 0.35);
  --color-chart-muted-fill: rgba(130, 130, 130, 0.08);
  --color-shadow-black-soft: rgba(0, 0, 0, 0.08);

  --type-p1-family: var(--font-family-base);
  --type-p1-size: 14px;
  --type-p1-weight: 300;
  --type-p1-line-height: 100%;
  --type-caption-size: 10px;
  --type-caption-weight: 300;
  --type-small-size: 12px;
  --type-small-weight: 300;
  --type-table-size: 12px;
  --type-table-weight: 300;
  --type-button-small-size: 14px;
  --type-button-medium-size: 16px;
  --type-heading-weight: 400;
  --type-display-size: 60px;
  --type-display-weight: 650;
  --type-display-mobile-size: 42px;
  --type-title-xl-size: 34px;
  --type-title-lg-size: 24px;
  --type-title-md-size: 20px;
  --type-title-sm-size: 18px;
  --type-title-xs-size: 17px;
  --type-title-mobile-size: 15px;
  --type-nav-mark-size: 13px;
  --type-nav-mark-weight: 800;
  --type-bold-weight: 700;

  --bg: var(--color-light-gray);
  --panel: var(--color-done-background);
  --text: var(--color-black);
  --text-soft: var(--color-darkest-gray);
  --muted: var(--color-dark-gray);
  --border: var(--color-middle-gray);
  --line: var(--color-light-gray-2);
  --chart: var(--color-chart-line);
  --accent: var(--color-done);
  --accent-hover: var(--color-done-hover);
  --danger: var(--color-alert-action);
  --danger-bg: var(--color-alert-background);
  --danger-bg-hover: var(--color-alert-background-hover);
  --hover-light: var(--color-hover-gray);
  --hover-blue-light: var(--color-hover-done-background);
  --radius: 12px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --shadow: 0 18px 60px var(--color-shadow-page);
  --button-gap: 8px;
  --button-small-padding-x: 16px;
  --button-small-padding-y: 8px;
  --button-medium-padding-x: 16px;
  --button-medium-padding-y: 12px;
  --button-medium-subtitle-padding-y: 5px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-family-base);
  font-size: var(--type-p1-size);
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.gf-button {
  min-width: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--button-gap);
  background: var(--gf-button-bg, var(--color-black));
  color: var(--gf-button-fg, var(--color-white));
  font-family: var(--font-family-base);
  font-weight: var(--type-p1-weight);
  letter-spacing: 0;
  line-height: normal;
  white-space: nowrap;
  appearance: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.gf-button--small {
  min-height: 34px;
  padding: var(--button-small-padding-y) var(--button-small-padding-x);
  font-size: var(--type-p1-size);
}

.gf-button--medium {
  min-height: 44px;
  padding: var(--button-medium-padding-y) var(--button-medium-padding-x);
  font-size: var(--type-button-medium-size);
  line-height: 1.2;
}

.gf-button--subtitle {
  min-height: 44px;
  padding-block: var(--button-medium-subtitle-padding-y);
}

.gf-button__label,
.gf-button__stack {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gf-button__stack {
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
}

.gf-button__stack small {
  color: inherit;
  font: inherit;
  font-size: var(--type-small-size);
}

.gf-button__icon {
  width: 18px;
  height: 18px;
  border: 1px solid currentColor;
  border-radius: var(--radius-sm);
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--gf-button-icon, currentColor);
}

.gf-button__icon::before,
.gf-button__icon::after {
  content: "";
  grid-area: 1 / 1;
  width: 8px;
  height: 1px;
  border-radius: 1px;
  background: currentColor;
}

.gf-button__icon::after {
  transform: rotate(90deg);
}

.gf-button__loader {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.gf-button__loader i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: gf-loader-pulse 900ms ease-in-out infinite;
}

.gf-button__loader i:nth-child(2) {
  animation-delay: 120ms;
}

.gf-button__loader i:nth-child(3) {
  animation-delay: 240ms;
}

.gf-button.is-loading {
  gap: 0;
}

.gf-button.is-loading.gf-button--small {
  min-width: 78px;
}

.gf-button.is-loading.gf-button--medium {
  min-width: 86px;
}

.gf-button:disabled,
.gf-button.is-disabled {
  --gf-button-bg: var(--line);
  --gf-button-fg: var(--muted);
  --gf-button-icon: var(--muted);
  cursor: not-allowed;
}

.gf-button--primary-black {
  --gf-button-bg: var(--color-black);
  --gf-button-fg: var(--color-white);
  --gf-button-icon: var(--color-white);
}

.gf-button--primary-black:hover:not(:disabled, .is-disabled, .is-loading),
.gf-button--primary-black.is-hover {
  --gf-button-bg: var(--text-soft);
}

.gf-button--primary-blue {
  --gf-button-bg: var(--accent);
  --gf-button-fg: var(--color-white);
  --gf-button-icon: var(--color-white);
}

.gf-button--primary-blue:hover:not(:disabled, .is-disabled, .is-loading),
.gf-button--primary-blue.is-hover {
  --gf-button-bg: var(--accent-hover);
}

.gf-button--primary-delete {
  --gf-button-bg: var(--danger-bg);
  --gf-button-fg: var(--danger);
  --gf-button-icon: var(--danger);
}

.gf-button--primary-delete:hover:not(:disabled, .is-disabled, .is-loading),
.gf-button--primary-delete.is-hover {
  --gf-button-bg: var(--danger-bg-hover);
}

.gf-button--secondary-lightblue {
  --gf-button-bg: var(--panel);
  --gf-button-fg: var(--accent);
  --gf-button-icon: var(--accent);
}

.gf-button--secondary-lightblue:hover:not(:disabled, .is-disabled, .is-loading),
.gf-button--secondary-lightblue.is-hover {
  --gf-button-bg: var(--hover-blue-light);
}

.gf-button--secondary-lightgray {
  --gf-button-bg: var(--line);
  --gf-button-fg: var(--color-black);
  --gf-button-icon: var(--color-black);
}

.gf-button--secondary-lightgray:hover:not(:disabled, .is-disabled, .is-loading),
.gf-button--secondary-lightgray.is-hover,
.gf-button--secondary-delete:hover:not(:disabled, .is-disabled, .is-loading),
.gf-button--secondary-delete.is-hover {
  --gf-button-bg: var(--hover-light);
}

.gf-button--secondary-outline {
  --gf-button-bg: transparent;
  --gf-button-fg: var(--color-black);
  --gf-button-icon: var(--color-black);
  border-color: var(--border);
}

.gf-button--secondary-outline:hover:not(:disabled, .is-disabled, .is-loading),
.gf-button--secondary-outline.is-hover {
  --gf-button-bg: var(--bg);
}

.gf-button--secondary-delete {
  --gf-button-bg: var(--line);
  --gf-button-fg: var(--danger);
  --gf-button-icon: var(--danger);
}

.gf-button--secondary-outline:disabled,
.gf-button--secondary-outline.is-disabled {
  --gf-button-bg: transparent;
  border-color: var(--border);
}

@keyframes gf-loader-pulse {
  0%,
  100% {
    opacity: 0.35;
  }

  50% {
    opacity: 1;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 80px;
  background: var(--bg);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: var(--type-bold-weight);
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  background: var(--color-tooltip-background);
  color: var(--color-white);
  font-size: var(--type-caption-size);
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 40px;
  color: var(--text-soft);
  font-size: var(--type-p1-size);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--text-soft);
  padding: 8px 0;
}

.hero {
  width: min(950px, calc(100% - 32px));
  margin: 86px auto 0;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: var(--type-display-size);
  line-height: 1.1;
  font-weight: var(--type-display-weight);
}

.hero p {
  width: min(760px, 100%);
  margin: 30px auto 0;
  color: var(--color-chart-line);
  font-size: var(--type-title-md-size);
  line-height: 1.5;
}

.workspace {
  position: relative;
  width: min(1080px, calc(100% - 40px));
  margin: 74px auto 80px;
}

.controls-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 28px;
}

.select-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  color: var(--muted);
  font-size: var(--type-caption-size);
}

.select-label span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

select,
input {
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--color-white);
  color: var(--text-soft);
  outline: none;
}

select {
  height: 28px;
  min-width: 82px;
  padding: 0 25px 0 10px;
  font-size: var(--type-caption-size);
}

input[type="search"] {
  width: 300px;
  height: 30px;
  padding: 0 12px;
  font-size: var(--type-caption-size);
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  appearance: none;
  display: none;
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--color-focus-done-ring);
}

.search {
  position: relative;
  display: inline-flex;
  width: 338px;
  max-width: 100%;
}

.search input[type="search"] {
  width: 100%;
  height: 34px;
  border: 1px solid var(--color-dark-gray);
  border-radius: 8px;
  background: var(--color-white);
  color: var(--color-black);
  padding: 8px 42px 8px 12px;
  font-size: var(--type-p1-size);
  font-weight: var(--type-p1-weight);
  line-height: 1;
}

.search input[type="search"]::placeholder {
  color: var(--color-dark-gray);
}

.search input[type="search"]:focus {
  border-color: var(--color-black);
  box-shadow: none;
  outline: none;
}

.search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  display: grid;
  place-items: center;
  padding: 0;
  transform: translateY(-50%);
}

.search-clear[hidden] {
  display: none;
}

.search-clear img {
  width: 18px;
  height: 18px;
  display: block;
}

.search-clear:focus,
.search-clear:focus-visible {
  outline: none;
  box-shadow: none;
}

.store-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-bottom: 28px;
}

.store-button {
  width: 54px;
  height: 54px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--color-white);
  display: grid;
  place-items: center;
  padding: 0;
  box-shadow: 0 6px 20px var(--color-shadow-card);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.store-button:hover,
.store-button.is-active {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 12px 28px var(--color-active-done-shadow);
}

.store-logo {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--color-white);
  font-size: var(--type-nav-mark-size);
  font-weight: var(--type-nav-mark-weight);
}

.chart-panel {
  position: relative;
  min-height: 318px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--color-border-soft);
}

#priceChart {
  width: 100%;
  height: 318px;
  display: block;
  overflow: visible;
}

.grid-line {
  stroke: var(--color-light-gray-2);
  stroke-width: 1;
}

.axis-text {
  fill: var(--color-dark-gray);
  font-size: var(--type-caption-size);
  font-weight: var(--type-p1-weight);
}

.chart-path {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-dot {
  stroke: var(--color-white);
  stroke-width: 2;
}

.chart-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-darkest-gray);
  text-align: center;
  pointer-events: none;
}

.chart-empty strong {
  font-size: var(--type-title-sm-size);
  line-height: 1.3;
}

.chart-empty span {
  margin-top: 6px;
  color: var(--text-soft);
  font-size: var(--type-p1-size);
  line-height: 1.2;
}

.catalog-layout {
  display: grid;
  grid-template-columns: minmax(0, 620px) 334px;
  align-items: start;
  gap: 72px;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 12px;
}

.catalog-toolbar p {
  max-width: 250px;
  margin: 0;
  color: var(--muted);
  font-size: var(--type-caption-size);
  line-height: 1.2;
}

.category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.category-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--color-white);
  color: var(--text-soft);
  padding: 6px 10px;
  font-size: var(--type-caption-size);
}

.category-chip.is-active {
  border-color: var(--accent);
  background: var(--panel);
  color: var(--accent);
}

.table-wrap {
  max-height: 430px;
  overflow: auto;
  border-top: 1px solid var(--border);
}

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

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--bg);
  color: var(--muted);
  text-align: left;
  font-size: var(--type-caption-size);
  font-weight: var(--type-p1-weight);
  padding: 9px 8px;
  border-bottom: 1px solid var(--border);
}

td {
  height: 34px;
  border-bottom: 1px solid var(--border);
  color: var(--color-black);
  font-size: var(--type-small-size);
  font-weight: var(--type-p1-weight);
  line-height: 1.2;
  padding: 8px;
  vertical-align: middle;
}

.check-col {
  width: 34px;
}

.dot-col {
  width: 28px;
}

.product-check {
  appearance: none;
  width: 24px;
  height: 24px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background:
    url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3.5' y='3.5' width='17' height='17' rx='3.5' fill='white' stroke='%23323232'/%3E%3C/svg%3E")
    center / 24px 24px
    no-repeat;
  cursor: pointer;
}

.product-check:checked {
  background:
    url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3.5' y='3.5' width='17' height='17' rx='3.5' fill='white' stroke='%23323232'/%3E%3Cpath d='M7.5 12.2L10.5 15.2L16.5 8.8' stroke='%23323232' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 24px 24px
    no-repeat;
}

.product-check:focus,
.product-check:focus-visible {
  outline: none;
  box-shadow: none;
}

.product-dot {
  width: 8px;
  height: 8px;
  display: block;
  border-radius: 50%;
}

.price-cell {
  width: 96px;
  white-space: nowrap;
}

.empty-row td,
.loading-row td {
  height: 68px;
  color: var(--muted);
  text-align: center;
}

.loading-row td {
  color: var(--text-soft);
}

.loader {
  width: 16px;
  height: 16px;
  display: inline-block;
  margin-right: 8px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  vertical-align: -3px;
  animation: spin 800ms linear infinite;
}

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

.insight-card {
  margin-top: 18px;
  border-radius: var(--radius);
  background: var(--panel);
  padding: 20px;
  box-shadow: var(--shadow);
}

.insight-card p {
  margin: 0 0 12px;
  color: var(--color-black);
  font-size: var(--type-p1-size);
  font-weight: var(--type-p1-weight);
  line-height: 1.35;
}

.insight-card .gf-button {
  width: fit-content;
}

.selection-toast {
  position: fixed;
  right: 8vw;
  bottom: 34vh;
  min-width: 126px;
  border-radius: 12px;
  background: var(--color-darkest-gray);
  color: var(--color-white);
  padding: 20px 18px;
  text-align: center;
  box-shadow: var(--shadow);
}

.footer {
  background: var(--panel);
  padding: 80px 0 36px;
}

.footer-grid {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 70px;
}

.footer h2 {
  margin: 0 0 16px;
  color: var(--color-darkest-gray);
  font-size: var(--type-title-sm-size);
  line-height: 28px;
}

.footer a {
  display: block;
  margin-bottom: 13px;
  color: var(--color-darkest-gray);
  font-size: var(--type-button-medium-size);
  line-height: 1.25;
}

.footer-bottom {
  width: min(1040px, calc(100% - 40px));
  margin: 74px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 42px;
  color: var(--color-darkest-gray);
  font-size: var(--type-small-size);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .topbar {
    height: auto;
    min-height: 72px;
    padding: 18px 20px;
    gap: 18px;
  }

  .nav {
    display: none;
  }

  .top-actions {
    gap: 12px;
  }

  .hero {
    margin-top: 52px;
  }

  .hero h1 {
    font-size: var(--type-display-mobile-size);
  }

  .hero p {
    font-size: var(--type-title-xs-size);
  }

  .catalog-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .catalog-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  input[type="search"] {
    width: min(100%, 340px);
  }

  .search {
    width: min(100%, 340px);
  }

  .selection-toast {
    position: sticky;
    right: auto;
    bottom: 16px;
    width: max-content;
    margin: 20px 0 0 auto;
  }

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

@media (max-width: 560px) {
  .topbar,
  .top-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero h1 {
    font-size: var(--type-title-xl-size);
  }

  .hero p {
    font-size: var(--type-title-mobile-size);
  }

  .workspace {
    width: calc(100% - 24px);
  }

  .store-switcher {
    gap: 10px;
  }

  .store-button {
    width: 48px;
    height: 48px;
  }

  .store-logo {
    width: 36px;
    height: 36px;
  }

  td:nth-child(3),
  th:nth-child(3) {
    min-width: 260px;
  }

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

body {
  min-width: 1180px;
  min-height: 100vh;
  background: var(--color-surface-soft);
  color: var(--color-black);
  overflow: auto;
}

.app-shell {
  position: relative;
  width: 1440px;
  min-height: 900px;
  background: var(--color-surface-soft);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
  padding: 20px;
  background: var(--color-surface-soft);
  z-index: 5;
}

.app-logo {
  display: block;
  width: 112px;
  height: 17px;
}

.app-logo img {
  display: block;
  width: 100%;
  height: 100%;
}

.main-menu {
  display: flex;
  flex-direction: column;
  margin-top: 50px;
}

.menu-item {
  width: 200px;
  min-height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  color: var(--color-dark-gray);
  font-size: var(--type-p1-size);
  font-weight: var(--type-p1-weight);
  line-height: normal;
}

.menu-item.is-active {
  background: var(--color-light-gray-2);
  color: var(--color-black);
}

.menu-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: block;
  object-fit: contain;
  opacity: 0.72;
}

.menu-item.is-active .menu-icon {
  opacity: 1;
}

.app-main {
  padding: 18px 40px 0 240px;
}

.monitor-card {
  position: relative;
  width: 1160px;
  min-height: 1368px;
  border: 1px solid var(--color-middle-gray);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  background: var(--color-light-gray);
  overflow: hidden;
}

.monitor-header {
  position: absolute;
  left: 39px;
  top: 39px;
  width: 1080px;
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.monitor-header h1 {
  margin: 0;
  color: var(--color-black);
  font-size: var(--type-title-lg-size);
  font-weight: var(--type-heading-weight);
  line-height: 1.2;
}

.monitor-card .controls-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.monitor-card .select-label {
  position: relative;
  height: 34px;
  display: block;
  color: var(--color-black);
  font-size: var(--type-p1-size);
}

.monitor-card .select-label span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.monitor-card select {
  width: 150px;
  height: 34px;
  border: 1px solid var(--color-middle-gray);
  border-radius: 8px;
  background-color: var(--color-light-gray);
  color: var(--color-black);
  padding: 8px 34px 8px 12px;
  font-size: var(--type-p1-size);
  font-weight: var(--type-p1-weight);
  line-height: normal;
  appearance: none;
  background-image: url("./assets/icons/small/chevron-small.svg");
  background-position: calc(100% - 12px) center;
  background-size: 14px 14px;
  background-repeat: no-repeat;
}

.monitor-card .store-switcher {
  position: absolute;
  left: 39px;
  top: 105px;
  width: 912px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.monitor-card .store-button {
  width: 72px;
  height: 72px;
  border: 1px solid var(--color-middle-gray);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.monitor-card .store-button:hover,
.monitor-card .store-button.is-active {
  border: 3px solid var(--color-black);
  box-shadow: none;
  transform: none;
}

.store-logo {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--color-white);
  font-size: var(--type-title-lg-size);
  font-weight: var(--type-bold-weight);
  line-height: 1;
}

.store-logo img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.store-logo--wide img { width: 46px; height: auto; }
.store-logo--perekrestok img { width: 60px; height: 60px; object-fit: cover; }
.store-logo--auchan img { width: 32px; height: 27px; object-fit: contain; }
.store-logo--magnit img { width: 42px; height: 42px; object-fit: cover; object-position: center; }

.monitor-card .chart-panel {
  position: absolute;
  left: 39px;
  top: 201px;
  width: 1080px;
  min-height: 402px;
  margin: 0;
  border: 0;
}

#priceChart {
  width: 1080px;
  height: 402px;
  display: block;
  overflow: visible;
  cursor: crosshair;
}

.grid-line,
.grid-line-vertical {
  stroke: var(--color-chart-grid);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.grid-line-vertical {
  stroke: var(--color-chart-grid-soft);
}

.axis-text {
  fill: var(--color-dark-gray);
  font-size: var(--type-caption-size);
  font-weight: var(--type-p1-weight);
}

.axis-text--x {
  fill: var(--color-chart-label);
}

.chart-path {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.chart-target {
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.chart-target.is-visible {
  opacity: 1;
}

.chart-target-line {
  stroke: var(--color-dark-gray);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  vector-effect: non-scaling-stroke;
}

.chart-target-ring {
  fill: var(--color-chart-muted-fill);
  stroke: var(--color-dark-gray);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.chart-target-dot {
  fill: var(--color-dark-gray);
}

.chart-target-label rect {
  fill: var(--color-white);
  stroke: var(--color-middle-gray);
  stroke-width: 1;
  filter: drop-shadow(0 2px 6px var(--color-shadow-black-soft));
}

.chart-target-label text {
  fill: var(--color-dark-gray);
  font-size: var(--type-caption-size);
  font-weight: var(--type-p1-weight);
  line-height: 1;
}

.chart-dot {
  stroke: var(--color-white);
  stroke-width: 2;
}

.chart-hover-hint,
.chart-summary {
  position: absolute;
  left: var(--chart-popup-left, 0);
  top: var(--chart-popup-top, 0);
  z-index: 3;
  border: 1px solid var(--color-middle-gray);
  border-radius: 8px;
  background: var(--color-white);
  box-shadow: 0 10px 24px var(--color-shadow-black-soft);
  color: var(--color-black);
}

.chart-hover-hint {
  width: 276px;
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  font-size: var(--type-small-size);
  font-weight: var(--type-p1-weight);
  line-height: 1.25;
  opacity: 0;
  pointer-events: none;
  transform: translateY(3px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.chart-hover-hint.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.chart-summary {
  width: 338px;
  max-height: 300px;
  padding: 12px;
  overflow: hidden;
}

.chart-summary[hidden] {
  display: none;
}

.chart-summary__date {
  margin: 0 0 10px;
  color: var(--color-dark-gray);
  font-size: var(--type-small-size);
  font-weight: var(--type-p1-weight);
  line-height: 1.2;
}

.chart-summary__body {
  display: grid;
  gap: 8px;
  max-height: 248px;
  overflow: auto;
}

.chart-summary__row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 22px;
}

.chart-summary__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.chart-summary__name,
.chart-summary__price {
  font-size: var(--type-small-size);
  font-weight: var(--type-p1-weight);
  line-height: 1.2;
}

.chart-summary__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-summary__price {
  color: var(--color-darkest-gray);
  white-space: nowrap;
}

.chart-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 42px;
  color: var(--color-black);
  text-align: center;
  pointer-events: none;
}

.chart-empty strong {
  margin: 0 0 18px;
  font-size: var(--type-title-lg-size);
  font-weight: var(--type-heading-weight);
  line-height: 1.2;
}

.chart-empty span {
  margin: 0;
  color: var(--color-darkest-gray);
  font-size: var(--type-title-sm-size);
  font-weight: var(--type-p1-weight);
  line-height: 1.2;
}

.monitor-card .catalog {
  position: absolute;
  left: 39px;
  top: 627px;
  width: 624px;
}

.monitor-card .catalog-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
}

.monitor-card .search {
  width: 338px;
}

.monitor-card input[type="search"] {
  width: 100%;
  height: 34px;
  border: 1px solid var(--color-dark-gray);
  border-radius: 8px;
  background: var(--color-white);
  color: var(--color-black);
  padding: 8px 42px 8px 12px;
  font-size: var(--type-p1-size);
  font-weight: var(--type-p1-weight);
  line-height: 1;
}

.monitor-card input[type="search"]::placeholder {
  color: var(--color-dark-gray);
}

.monitor-card input[type="search"]:focus {
  border-color: var(--color-black);
  box-shadow: none;
  outline: none;
}

.monitor-card .catalog-toolbar p {
  width: 211px;
  max-width: none;
  margin: 0 0 0 12px;
  color: var(--color-dark-gray);
  font-size: var(--type-small-size);
  font-weight: var(--type-p1-weight);
  line-height: 1.2;
}

.refresh-button {
  width: 114px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--color-light-gray-2);
  color: var(--color-black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: var(--type-p1-size);
  font-weight: var(--type-p1-weight);
  transition: background-color 160ms ease, color 160ms ease;
}

.refresh-button:hover:not(:disabled) {
  background: var(--color-hover-gray);
}

.refresh-button:disabled {
  background: var(--color-light-gray-2);
  color: var(--color-dark-gray);
  cursor: not-allowed;
}

.refresh-button__icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: block;
  object-fit: contain;
}

.refresh-button.is-loading .refresh-button__icon {
  animation: spin 800ms linear infinite;
}

.data-status {
  display: none;
  min-height: 0;
  width: 0;
  margin: 0;
  color: var(--color-dark-gray);
  font-size: var(--type-small-size);
  font-weight: var(--type-p1-weight);
  line-height: 1.2;
}

.monitor-card .category-row {
  display: none;
}

.monitor-card .table-wrap {
  width: 624px;
  max-height: 616px;
  overflow: auto;
  border: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--color-middle-gray) transparent;
}

.monitor-card .table-wrap::-webkit-scrollbar { width: 2px; }
.monitor-card .table-wrap::-webkit-scrollbar-thumb { border-radius: 24px; background: var(--color-middle-gray); }

.monitor-card table {
  width: 610px;
  border-collapse: collapse;
  table-layout: fixed;
}

.monitor-card th {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 38px;
  border-bottom: 1px solid var(--color-middle-gray);
  background: var(--color-light-gray);
  color: var(--color-dark-gray);
  padding: 8px;
  font-size: var(--type-small-size);
  font-weight: var(--type-p1-weight);
  line-height: 1.2;
  text-align: left;
}

.monitor-card th.check-col { width: 34px; padding: 0; }
.monitor-card th.dot-col { width: 28px; padding: 0; }
.monitor-card th:nth-child(3) { width: 450px; }
.monitor-card th:nth-child(4) { width: 98px; }

.monitor-card td {
  height: 34px;
  border-bottom: 1px solid var(--color-middle-gray);
  color: var(--color-black);
  padding: 8px;
  font-size: var(--type-small-size);
  font-weight: var(--type-p1-weight);
  line-height: 1.2;
  vertical-align: middle;
}

.monitor-card td:nth-child(1) { width: 34px; padding: 5px; }
.monitor-card td:nth-child(2) { width: 28px; padding: 8px; }
.monitor-card td:nth-child(3) { width: 450px; }
.monitor-card td:nth-child(4) { width: 98px; }

.monitor-card .product-check {
  appearance: none;
  width: 24px;
  height: 24px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background:
    url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3.5' y='3.5' width='17' height='17' rx='3.5' fill='white' stroke='%23323232'/%3E%3C/svg%3E")
    center / 24px 24px
    no-repeat;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.monitor-card .product-check:checked {
  background:
    url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3.5' y='3.5' width='17' height='17' rx='3.5' fill='white' stroke='%23323232'/%3E%3Cpath d='M7.5 12.2L10.5 15.2L16.5 8.8' stroke='%23323232' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 24px 24px
    no-repeat;
}

.monitor-card .product-check:focus,
.monitor-card .product-check:focus-visible {
  outline: none;
  box-shadow: none;
}

.monitor-card .product-dot {
  width: 12px;
  height: 12px;
  display: block;
  border-radius: 50%;
}

.monitor-card .price-cell {
  width: 98px;
  white-space: nowrap;
}

.monitor-card .empty-row td,
.monitor-card .loading-row td {
  height: 68px;
  color: var(--color-dark-gray);
  text-align: center;
}

.monitor-card .selection-toast {
  display: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
