/* Build/Patch 2026-07-03 10:20:00 +03:00 | Pin availability heatmap headers to the scrollport and show product names. */
/* Build/Patch 2026-06-24 12:05:00 +03:00 | Style expandable manager cases and full availability map controls. */
/* Build/Patch 2026-06-24 10:35:00 +03:00 | Add market controllability cards and seller profile layout. */
/* Build/Patch 2026-06-23 16:54:00 +03:00 | Add focused product banner and visible local filter reset controls. */
/* Build/Patch 2026-06-23 14:12:00 +03:00 | Role control panels, object intros, and mobile section menu. */
/* Build/Patch 2026-06-23 11:42:00 +03:00 | Action cockpit cards and research route grouping. */
/* Build/Patch 2026-06-22 16:10:12 +03:00 | Decision-queue object links use the existing compact secondary-action language. */
/* Build/Patch 2026-06-23 10:18:00 +03:00 | Style compact Today cases and visible case states. */
/* Build/Patch 2026-05-06 02:02:00 +03:00 | Control Center UI styles. */
/* Build/Patch 2026-05-06 13:21:06 +03:00 | Risk Center UI styles. */
/* Build/Patch 2026-05-06 14:13:59 +03:00 | Aggregate daily brief evidence layout. */
/* Build/Patch 2026-05-06 19:05:06 +03:00 | Market position dashboard styles. */
/* Build/Patch 2026-05-06 21:41:14 +03:00 | Filters, decision queue, and causal distance UI. */
/* Build/Patch 2026-06-02 16:00:45 +03:00 | Market-based tooltips and seller rating UI. */
/* Build/Patch 2026-06-02 17:23:03 +03:00 | Responsive table wrapping and influence column alignment. */
/* Build/Patch 2026-06-03 10:52:53 +03:00 | Fix influence table columns, numeric headers, and transition wrapping. */
/* Build/Patch 2026-06-03 11:21:04 +03:00 | Preserve table-cell display for influence transition cells. */
/* Build/Patch 2026-06-03 11:43:01 +03:00 | Give reaction proximity details enough table width. */
/* Build/Patch 2026-06-03 12:04:56 +03:00 | Balance reaction table column spacing. */
/* Build/Patch 2026-06-03 12:28:11 +03:00 | Prevent reaction headers from wrapping and even narrow-column spacing. */
/* Build/Patch 2026-06-03 12:45:13 +03:00 | Align seller rating table and normalize table header labels. */
/* Build/Patch 2026-06-05 15:46:57 +03:00 | Refine market structure contrast and cards. */
/* Build/Patch 2026-06-08 11:28:41 +03:00 | Contextual filter visibility and market structure filter controls. */
/* Build/Patch 2026-06-08 12:35:00 +03:00 | Respect hidden controls and stabilize risk table text layout. */
/* Build/Patch 2026-06-08 15:11:54 +03:00 | Manager overview accordion and compact brief drill-down. */
/* Build/Patch 2026-06-08 15:49:10 +03:00 | Add timestamp/evidence columns to overview brief detail rows. */
/* Build/Patch 2026-06-08 16:40:58 +03:00 | Event price timeline chart and brief-to-graph actions. */
/* Build/Patch 2026-06-08 17:28:00 +03:00 | Event timeline date range controls and axis polish. */
/* Build/Patch 2026-06-11 15:06:47 +03:00 | Product lifecycle analysis tab layout. */
/* Build/Patch 2026-06-11 16:53:45 +03:00 | Gap-tolerant product analysis table labels and layout. */
/* Build/Patch 2026-06-12 12:28:00 +03:00 | Product-first labels, clickable KPI cards, and full table text wrapping. */
/* Build/Patch 2026-06-12 12:47:00 +03:00 | Scope table min-widths and tighten compact table alignment. */
/* Build/Patch 2026-06-12 13:18:00 +03:00 | Graph explanation notes and builder preset layout. */
/* Build/Patch 2026-06-12 14:05:00 +03:00 | Section guidance in topbar and sidebar help markers. */
/* Build/Patch 2026-06-15 13:35:00 +03:00 | Mobile table cards and touch help popovers. */
/* Build/Patch 2026-06-15 14:20:00 +03:00 | Prevent brief/event text truncation across desktop and mobile. */
/* Build/Patch 2026-06-15 16:35:00 +03:00 | Stack operational brief evidence on phones and enlarge help popovers. */
/* Build/Patch 2026-06-15 17:42:00 +03:00 | Add readable chart tooltips and mobile hit targets for graph points. */
/* Build/Patch 2026-06-16 10:15:00 +03:00 | Use dark chart tooltips and keep desktop hover precise. */
/* Build/Patch 2026-06-16 10:42:00 +03:00 | Pin chart tooltip position and emphasize section labels only. */
/* Build/Patch 2026-06-16 11:42:00 +03:00 | Add responsive local search controls to large table headings. */
/* Build/Patch 2026-06-16 12:18:00 +03:00 | Align data/product analysis columns and readable date formats. */
/* Build/Patch 2026-06-16 12:44:00 +03:00 | Enlarge help popovers and improve desktop readability. */
/* Build/Patch 2026-06-18 17:20:01 +03:00 | Replace green-led dashboard styling with a coherent blue spectrum. */
/* Build/Patch 2026-06-19 11:18:13 +03:00 | Keep every table header readable and give seller risk more useful width. */
/* Build/Patch 2026-06-24 14:37:07 +03:00 | Style authenticated login and account controls. */
/* Build/Patch 2026-06-24 15:48:53 +03:00 | Style registration and admin approval queue. */
/* Build/Patch 2026-06-25 10:18:00 +03:00 | Style remember-me controls in auth forms. */
/* Build/Patch 2026-06-25 11:05:00 +03:00 | Style the Price Waves analysis route. */
/* Build/Patch 2026-06-25 11:42:00 +03:00 | Compact price-wave cards and add mini flow diagrams. */
/* Build/Patch 2026-06-25 12:24:00 +03:00 | Add synced price-wave evidence controls and sequence badges. */
/* Build/Patch 2026-06-26 11:17:22 +03:00 | Keep price-wave sequence badges beside seller names and add rank lines. */
/* Build/Patch 2026-06-26 14:12:59 +03:00 | Color-code price-wave evidence strength and hide weak causality noise. */
/* Build/Patch 2026-06-26 17:22:15 +03:00 | Add dashboard FX background cards and chart styles. */
/* Build/Patch 2026-06-30 10:27:12 +03:00 | Style price-wave graph action button. */
/* Build/Patch 2026-06-30 11:06:22 +03:00 | Style seller price-rank badges in the graph picker. */
/* Build/Patch 2026-06-30 14:50:25 +03:00 | Style the Google Trends analysis route. */
/* Build/Patch 2026-07-01 16:03:27 +03:00 | Style FX overlay picker for the event price chart. */
/* Build/Patch 2026-07-01 16:39:24 +03:00 | Replace broken picker glyphs and stabilize event chart control layout. */
/* Build/Patch 2026-07-01 17:06:18 +03:00 | Make graph picker popovers distinct and prevent seller names from collapsing. */
/* Build/Patch 2026-07-02 14:28:42 +03:00 | Keep event price timeline SVG height stable after seller filtering. */
/* Build/Patch 2026-07-02 15:44:59 +03:00 | Let the event price timeline fill the panel width and keep axes visible without seller lines. */
/* Build/Patch 2026-07-02 21:10 +03:00 | Normalize product availability heatmap rows and keep date headers sticky. */

:root {
  color-scheme: light;
  --bg: #f3f6fb;
  --surface: #ffffff;
  --surface-2: #f8faff;
  --ink: #172033;
  --muted: #64748b;
  --line: #d9e2f0;
  --teal: #2563eb;
  --teal-2: #dbeafe;
  --red: #c64d4d;
  --green: #3b82f6;
  --violet: #7756a8;
  --amber: #b9862f;
  --blue: #3f6f9f;
  --shadow: 0 16px 42px rgba(30, 64, 175, 0.08);
}

[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}

.login-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.94), rgba(30, 58, 95, 0.9)),
    var(--bg);
}

.login-panel {
  display: grid;
  gap: 16px;
  width: min(100%, 420px);
  padding: 28px;
  border: 1px solid rgba(219, 234, 254, 0.2);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.login-brand {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 4px;
}

.login-brand .brand-mark {
  width: 48px;
  height: 48px;
}

.login-brand h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.login-brand p {
  margin: 4px 0 0;
  color: var(--muted);
}

.login-panel label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
}

.login-panel input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  color: var(--ink);
  background: #ffffff;
}

.login-panel input:focus {
  border-color: #2563eb;
  outline: 3px solid rgba(37, 99, 235, 0.18);
}

.login-panel .remember-option {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
}

.login-panel .remember-option input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  accent-color: #2563eb;
}

.login-error {
  min-height: 20px;
  margin: 0;
  color: #b91c1c;
  font-weight: 700;
}

.login-panel .secondary-button {
  width: 100%;
  justify-content: center;
}

.auth-admin-panel {
  margin: 0 0 18px;
  border-color: #bfd3f7;
  background: #f8fbff;
}

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

.pending-user-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.pending-user-card strong,
.pending-user-card span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.pending-user-card span {
  margin-top: 3px;
  color: var(--muted);
}

.pending-user-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

button,
select,
input {
  font: inherit;
  letter-spacing: 0;
}

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

.sidebar {
  background: #111827;
  color: #f8fafc;
  padding: 20px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  margin-bottom: 22px;
  color: inherit;
  text-decoration: none;
  border-radius: 8px;
}

.sidebar-head {
  display: block;
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid rgba(219, 234, 254, 0.25);
  border-radius: 8px;
  background: #17233b;
  color: #ffffff;
  padding: 8px 10px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.menu-bars {
  display: grid;
  gap: 3px;
  width: 18px;
}

.menu-bars span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #05070a;
  color: white;
  font-weight: 800;
  overflow: hidden;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand:hover .brand-title,
.brand:focus-visible .brand-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.brand:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 3px;
}

.brand-title {
  font-weight: 720;
  line-height: 1.2;
}

.brand-subtitle {
  color: #94a3b8;
  font-size: 12px;
  margin-top: 3px;
}

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

.nav-button {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  color: #dbeafe;
  background: transparent;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.nav-button:hover,
.nav-button.active {
  background: #1e3a5f;
  border-color: #315b8d;
  color: #ffffff;
}

.nav-button > span:first-child {
  min-width: 0;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
}

.user-menu span {
  max-width: 180px;
  overflow: hidden;
  color: var(--muted);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-help {
  /* Build/Patch 2026-06-18 15:02:00 +03:00 | Larger sidebar help hover target with unchanged visual marker. */
  /* Build/Patch 2026-06-18 16:17:00 +03:00 | Keep the full hit target above its decorative circle. */
  display: inline-grid;
  flex: 0 0 30px;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: -6px;
  border: 0;
  border-radius: 999px;
  color: #dbeafe;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  opacity: 0.82;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  user-select: none;
  position: relative;
}

.nav-help::before {
  content: "";
  position: absolute;
  inset: 6px;
  box-sizing: border-box;
  border: 1px solid rgba(219, 228, 221, 0.45);
  border-radius: 999px;
  pointer-events: none;
}

.nav-button:hover .nav-help,
.nav-button.active .nav-help {
  color: #ffffff;
  opacity: 1;
}

.nav-button:hover .nav-help::before,
.nav-button.active .nav-help::before,
.nav-help:hover::before,
.nav-help:focus-visible::before {
  border-color: rgba(255, 255, 255, 0.7);
}

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

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

h1,
h2 {
  margin: 0;
  font-weight: 760;
}

h1 {
  font-size: 28px;
  line-height: 1.15;
}

.section-description {
  max-width: 760px;
  margin-top: 7px;
  color: #475569;
  font-size: 14px;
  line-height: 1.45;
}

/* Build/Patch 2026-06-19 16:52:00 +03:00 | Persistent latest-price snapshot summary on every section. */
.snapshot-meta {
  max-width: 980px;
  margin-top: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.snapshot-meta.is-error {
  color: var(--red);
}

/* Build/Patch 2026-06-19 18:34:00 +03:00 | Add responsive checkbox controls for event-timeline sellers. */
/* Build/Patch 2026-06-19 18:02:00 +03:00 | Explain overview metric scope and support paired risk/graph actions. */
/* Build/Patch 2026-06-19 17:34:00 +03:00 | Decision-first overview with role-specific progressive disclosure. */
.overview-command {
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid #bfd3f4;
  border-radius: 10px;
  background: linear-gradient(135deg, #ffffff 0%, #f4f8ff 100%);
  box-shadow: var(--shadow);
}

.overview-command-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.overview-command-head h2 {
  font-size: 19px;
}

.overview-command-head p {
  font-size: 13px;
}

.overview-role-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #eef3fa;
}

.overview-role-tab {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #475569;
  padding: 0 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.overview-role-tab:hover,
.overview-role-tab:focus-visible {
  color: #1d4ed8;
  background: #ffffff;
}

.overview-role-tab.active {
  color: #ffffff;
  background: #2563eb;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.overview-plain-summary {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border-left: 4px solid #2563eb;
  background: #eff6ff;
}

.overview-plain-summary strong {
  color: #172033;
  font-size: 17px;
  line-height: 1.35;
}

.overview-plain-summary span {
  color: #52627a;
  font-size: 13px;
  line-height: 1.45;
}

.overview-method-note {
  margin: -5px 0 13px;
  padding: 0 2px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.overview-action-list {
  display: grid;
  gap: 8px;
}

.overview-action {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 4px solid #93c5fd;
  border-radius: 8px;
  background: #ffffff;
}

.overview-action.p0 { border-left-color: var(--red); }
.overview-action.p1 { border-left-color: var(--amber); }
.overview-action.p2 { border-left-color: #60a5fa; }

.overview-action-number {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #e8f0fe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 850;
}

.overview-action-body h3 {
  margin: 1px 0 4px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.3;
}

.overview-action-body > p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
}

.overview-action details {
  margin-top: 7px;
}

.overview-action summary {
  color: #2563eb;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.overview-action-detail {
  display: grid;
  gap: 4px;
  margin-top: 7px;
  padding: 9px 11px;
  border-radius: 6px;
  background: #f8fafc;
}

.overview-action-detail p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.overview-action-link {
  align-self: center;
  white-space: nowrap;
}

.overview-action-buttons {
  display: flex;
  align-self: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}

h2 {
  font-size: 15px;
}

h2 .help,
th .help,
.kpi-label .help,
.detail-metric .help {
  margin-left: 5px;
}

.help {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: help;
  padding: 0;
  touch-action: manipulation;
  user-select: none;
  vertical-align: middle;
}

.help.small {
  width: 15px;
  height: 15px;
  font-size: 10px;
}

.help:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-2);
}

.help-popover {
  position: fixed;
  inset: 0;
  z-index: 96;
  pointer-events: none;
}

.help-popover-card {
  /* Build/Patch 2026-06-18 16:17:00 +03:00 | Content-width desktop popovers; mobile remains a touch dialog. */
  position: fixed;
  top: var(--popover-top, 72px);
  left: var(--popover-left, 20px);
  width: max-content;
  max-width: min(620px, calc(100vw - 24px));
  box-sizing: border-box;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(24, 26, 25, 0.96);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
  color: #e2e8f0;
  pointer-events: auto;
}

.help-popover-text {
  color: #e2e8f0;
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.help-popover-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: none;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

p {
  margin: 6px 0 0;
  color: var(--muted);
}

.toolbar,
.builder-grid {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.filterbar {
  display: grid;
  grid-template-columns: repeat(6, minmax(136px, 1fr));
  gap: 10px;
  align-items: end;
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.filterbar.hidden {
  display: none;
}

.filterbar [data-filter-control][hidden] {
  display: none;
}

.filter-hint {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.section-filterbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(138px, 1fr));
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px 16px 0;
  border-top: 1px solid var(--line);
}

label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  min-width: 136px;
}

select,
input[type="search"] {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 0 10px;
}

.inline-select {
  display: inline-grid;
  grid-template-columns: auto minmax(130px, 160px);
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.check-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  color: var(--ink);
  font-weight: 700;
}

.check-filter input {
  width: 16px;
  height: 16px;
}

.primary-button {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  padding: 0 14px;
  cursor: pointer;
}

.primary-button:hover {
  background: #1d4ed8;
}

.secondary-button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 12px;
  cursor: pointer;
  font-weight: 700;
}

.secondary-button:hover {
  border-color: #93c5fd;
  background: #eff6ff;
}

.secondary-button.subtle {
  color: var(--muted);
  background: #f8faff;
}

.tab {
  display: none;
}

.tab.active {
  display: block;
}

.tab.today-merged {
  margin-top: 14px;
}

.tab.research-merged {
  display: block;
  margin-top: 14px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

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

.kpi-grid.compact {
  grid-template-columns: repeat(5, minmax(130px, 1fr));
}

.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  min-height: 84px;
  box-shadow: var(--shadow);
}

.kpi-action {
  cursor: pointer;
  color: inherit;
}

.kpi-action:hover,
.kpi-action:focus-visible {
  border-color: #93c5fd;
  background: #f8fbff;
  outline: none;
  transform: translateY(-1px);
}

.kpi-label {
  color: var(--muted);
  font-size: 12px;
}

.kpi-value {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 780;
}

.kpi-value.status-list {
  font-size: 18px;
  line-height: 1.25;
  overflow-wrap: break-word;
}

.kpi-sub {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.position-band {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.position-card {
  display: grid;
  gap: 7px;
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 12px;
}

.position-card.deep_pressure {
  border-color: #e8b1b1;
  background: #fff7f7;
}

.position-card.under_pressure {
  border-color: #dec28b;
  background: #fffaf0;
}

.position-card.near_official {
  border-color: #93c5fd;
  background: #eff6ff;
}

.position-card.official_below_market {
  border-color: #a9c4ef;
  background: #f6f9ff;
}

.position-label {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.position-value {
  color: var(--ink);
  font-size: 28px;
  font-weight: 820;
  font-variant-numeric: tabular-nums;
}

.position-share {
  color: var(--muted);
  font-size: 12px;
}

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

.position-track span,
.position-bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.position-bar-track span.official {
  background: #2563eb;
}

.position-bar-track span.unofficial {
  background: #c64d4d;
}

.position-bar-track span.total {
  background: #64748b;
}

.source.official {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #93c5fd;
}

.source.unofficial {
  background: #ffdada;
  color: #8e1515;
  border-color: #f19b9b;
}

.source.store {
  background: var(--teal-2);
  color: #1e40af;
  border-color: #93c5fd;
}

.deep_pressure .position-track span {
  background: var(--red);
}

.under_pressure .position-track span {
  background: var(--amber);
}

.official_below_market .position-track span {
  background: var(--blue);
}

.position-bars {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.position-bar-row {
  display: grid;
  grid-template-columns: minmax(100px, 150px) minmax(120px, 1fr) 70px 58px;
  align-items: center;
  gap: 10px;
}

.position-bar-name {
  font-weight: 700;
}

.position-bar-value,
.position-bar-index {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.position-bar-row.total-row {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

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

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

.panel-grid.two.risk-overview-grid {
  grid-template-columns: minmax(0, 1fr);
}

.risk-overview-grid .risk-bars {
  /* Build/Patch 2026-06-19 12:02:22 +03:00 | One compact ranked pressure list for direct seller comparison. */
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  padding: 10px 14px;
}

.inner-grid {
  padding: 14px;
}

.subhead {
  margin: 0;
  padding: 0 14px 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

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

.panel-head {
  min-height: 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

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

.local-search {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex: 0 1 280px;
  min-width: min(280px, 100%);
  max-width: 520px;
  margin-right: auto;
  color: var(--muted);
}

.local-search input {
  width: min(320px, 100%);
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
  border-color: #d8e1ef;
  background: #ffffff;
}

.local-search input:focus {
  outline: 2px solid rgba(15, 139, 126, 0.2);
  border-color: var(--accent);
}

.local-search-hidden {
  display: none !important;
}

.local-search-reset {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #d8e1ef;
  border-radius: 9px;
  background: #f8fbff;
  color: #245db8;
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
  white-space: nowrap;
}

.local-search-reset:hover {
  border-color: #9fb8df;
  background: #edf5ff;
}

.axis-chip {
  min-width: 0;
  color: var(--muted);
  background: #edf2f9;
  border: 1px solid #dbe4f0;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
}

.axis-chip-button {
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: default;
}

.axis-chip-button.is-clickable {
  color: #1d4ed8;
  background: #eaf1ff;
  border-color: #b9cdf2;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.10);
  cursor: pointer;
}

.axis-chip-button.is-clickable:hover,
.axis-chip-button.is-clickable:focus-visible {
  background: #dbeafe;
  border-color: #2f6fed;
  outline: none;
}

.axis-chip-button:disabled {
  cursor: default;
}

.section-jumpbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.action-jumpbar {
  position: static;
}

.action-case-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 12px;
}

.action-case-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #d7e3f5;
  border-left: 4px solid #60a5fa;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: var(--shadow);
}

.action-case-card.p0 {
  border-left-color: #ef4444;
}

.action-case-card.p1 {
  border-left-color: #f59e0b;
}

.action-case-card.p2 {
  border-left-color: #3b82f6;
}

/* Build/Patch 2026-07-06 16:40:00 +03:00 | Dealer interaction case cards and draft letter layout. */
.dealer-interaction-panel {
  display: grid;
  gap: 14px;
}

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

.dealer-case-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 5px solid #bfdbfe;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.dealer-case-card.p0 {
  border-left-color: #dc2626;
}

.dealer-case-card.p1 {
  border-left-color: #2563eb;
}

.dealer-case-card.p2 {
  border-left-color: #93c5fd;
}

.dealer-case-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 14px;
  align-items: start;
}

.dealer-case-head h3 {
  margin: 7px 0 5px;
  font-size: 18px;
  line-height: 1.25;
}

.dealer-case-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.dealer-case-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.dealer-case-side {
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.dealer-profile-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid #dbe7f5;
  border-radius: 8px;
  background: #f8fbff;
}

.dealer-profile-form button {
  min-height: 34px;
}

.dealer-profile-form label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

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

.dealer-profile-form span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.dealer-profile-form input {
  width: 100%;
  min-width: 0;
  height: 34px;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 9px;
  color: var(--ink);
  background: #ffffff;
  font-size: 12px;
}

.dealer-case-items-wrap {
  max-height: 320px;
}

.dealer-case-items-table .sku-cell {
  min-width: 220px;
}

.dealer-case-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.dealer-case-footer strong,
.dealer-case-footer span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.dealer-case-footer span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.dealer-draft {
  width: 100%;
  min-height: 160px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: #172033;
  background: #f8fbff;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre;
}

.action-case-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.action-case-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #eaf1ff;
  color: #245db8;
  font-weight: 800;
}

.role-card-label {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef5ff;
  color: #245db8;
  font-size: 12px;
  font-weight: 800;
}

.action-case-body {
  min-width: 0;
}

.action-case-object,
.action-case-target span,
.status-card-label,
.status-card-unit {
  color: var(--muted);
  font-size: 12px;
}

.action-case-body h3 {
  margin: 4px 0 6px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.action-case-target {
  display: grid;
  gap: 2px;
  margin: 0 0 8px;
  color: var(--ink);
  font-weight: 780;
  overflow-wrap: anywhere;
}

.action-case-why {
  margin: 0 0 10px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.action-case-evidence {
  margin: 8px 0;
  padding: 9px 10px;
  border: 1px solid #dbe6f7;
  border-radius: 10px;
  background: #f8fbff;
}

.action-case-evidence summary {
  cursor: pointer;
  color: #245db8;
  font-weight: 800;
}

.action-case-evidence ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.action-case-recommendation {
  margin: 10px 0 0;
  color: var(--ink);
  line-height: 1.45;
}

.action-case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.action-case-actions button {
  white-space: normal;
}

.action-case-expand-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border: 1px dashed #b9cdf2;
  border-radius: 12px;
  background: #f8fbff;
}

.action-case-expand-row span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.action-data-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.status-card {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.status-card-value {
  margin-top: 7px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 820;
  overflow-wrap: anywhere;
}

.object-intro-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.object-page-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.object-focus-banner {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff, #f8fbff);
}

.object-focus-banner strong,
.object-focus-banner span {
  display: block;
}

.object-focus-banner strong {
  color: var(--ink);
  font-size: 14px;
}

.object-focus-banner span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.object-page-kicker {
  margin: 0 0 4px;
  color: #245db8;
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.object-page-intro h2 {
  margin-bottom: 6px;
}

.object-page-intro p:not(.object-page-kicker) {
  max-width: 820px;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.45;
}

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

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

.object-signal-card {
  min-width: 0;
  padding: 13px;
  border: 1px solid #d7e3f5;
  border-left: 4px solid #60a5fa;
  border-radius: 10px;
  background: #f8fbff;
}

.object-signal-card.p0 {
  border-left-color: #ef4444;
}

.object-signal-card.p1 {
  border-left-color: #f59e0b;
}

.object-signal-card p,
.object-signal-card small {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.object-signal-card h3 {
  margin: 6px 0 4px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
}

.object-signal-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 820;
}

.market-control-brief,
.seller-control-grid,
.seller-profile-content {
  display: grid;
  gap: 14px;
}

.market-control-summary {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(320px, 1.4fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #d7e3f5;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
}

.market-control-main h3,
.market-control-main p {
  margin: 0;
}

.market-control-main h3 {
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 18px;
}

.market-control-main p:not(.object-page-kicker) {
  color: var(--ink-soft);
  line-height: 1.45;
}

.market-control-metrics,
.seller-control-overview,
.seller-profile-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

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

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

.market-control-metrics > div,
.seller-control-overview > div,
.seller-profile-kpis > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid #dbe7f8;
  border-radius: 10px;
  background: #ffffff;
}

.market-control-metrics span,
.market-control-metrics small,
.seller-control-overview span,
.seller-control-overview small,
.seller-profile-kpis span,
.seller-profile-kpis small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.market-control-metrics strong,
.seller-control-overview strong,
.seller-profile-kpis strong {
  display: block;
  margin: 4px 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.1;
}

.market-control-sellers,
.seller-control-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.fx-background-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(360px, 1.28fr);
  gap: 14px;
  padding: 14px;
  align-items: stretch;
}

.fx-summary-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.fx-card {
  min-width: 0;
  min-height: 112px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.fx-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.fx-card strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: clamp(18px, 1.4vw, 23px);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.fx-change-row {
  display: grid;
  gap: 4px;
  margin-top: 10px;
}

.fx-change-row small {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
}

.fx-change-row b {
  font-weight: 820;
}

.fx-up {
  color: #b45309;
}

.fx-down {
  color: #2563eb;
}

.fx-flat {
  color: var(--muted);
}

.fx-insight {
  margin: 12px 0 0;
  color: #334155;
  font-size: 13px;
  line-height: 1.45;
}

.fx-chart {
  min-height: 280px;
}

.trends-controls {
  align-items: end;
}

.trends-insight {
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid #d7e3f5;
  border-radius: 8px;
  background: #f8fbff;
  color: #334155;
  font-size: 13px;
  line-height: 1.45;
}

.trends-chart {
  min-height: 300px;
}

.trends-table-panel {
  /* Build/Patch 2026-06-30 16:48:00 +03:00 | Keep Trends ranking readable below the two chart views. */
  grid-column: 1 / -1;
}

#trendsTopTable .sku-cell {
  gap: 2px;
}

#trendsTopTable .muted-line {
  margin-top: 4px;
}

.seller-control-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid #d7e3f5;
  border-left: 4px solid #60a5fa;
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 12px 24px rgba(30, 64, 175, 0.06);
}

button.seller-control-card {
  cursor: pointer;
}

.seller-control-card.compact {
  display: grid;
  gap: 5px;
  width: 100%;
}

.seller-control-card.p0 {
  border-left-color: #ef4444;
}

.seller-control-card.p1 {
  border-left-color: #f59e0b;
}

.seller-control-card:hover,
.seller-control-card:focus-visible {
  border-color: #93b7f1;
  outline: none;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.12);
}

.seller-control-card-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.seller-control-card h3,
.seller-control-card p {
  margin: 0;
}

.seller-control-card h3,
.seller-control-card strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}

.seller-control-card p,
.seller-control-card small {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.4;
}

.seller-control-label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 5px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eaf1ff;
  color: #245db8;
  font-size: 11px;
  font-weight: 760;
}

.seller-control-card-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.seller-control-card-metrics span,
.seller-profile-tags span {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 720;
}

.seller-view-tabs .secondary-button.active {
  border-color: #2f6fed;
  background: #2f6fed;
  color: #ffffff;
}

.seller-profile-hero {
  display: grid;
  grid-template-columns: minmax(280px, 1.3fr) minmax(280px, 0.9fr);
  gap: 14px;
  align-items: stretch;
  padding: 16px;
  border: 1px solid #cfe0fa;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
}

.seller-profile-hero h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 24px;
}

.seller-profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.seller-profile-action {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 14px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #ffffff;
}

.seller-profile-action span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.seller-profile-action strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}

.seller-profile-section {
  padding: 14px;
  border: 1px solid #d7e3f5;
  border-radius: 12px;
  background: #ffffff;
}

.seller-profile-section h3,
.seller-profile-section p {
  margin: 0;
}

.seller-profile-section h3 {
  margin-bottom: 6px;
  color: var(--ink);
}

.seller-profile-section p {
  color: var(--ink-soft);
  line-height: 1.45;
}

.seller-profile-section-head {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.seller-profile-section-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.seller-profile-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.seller-profile-product {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #93c5fd;
  border-radius: 10px;
  background: #f8fbff;
}

.seller-profile-product.attention {
  border-left-color: #f59e0b;
  background: #fffaf0;
}

.seller-profile-product strong,
.seller-profile-product span {
  display: block;
}

.seller-profile-product strong {
  color: var(--ink);
  line-height: 1.25;
}

.seller-profile-product span,
.seller-profile-product p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.35;
}

.seller-profile-product-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 10px;
}

.scroll-section {
  scroll-margin-top: 16px;
  margin-bottom: 14px;
}

.chart {
  width: 100%;
  min-height: 320px;
  padding: 12px;
}

.chart.tall {
  min-height: 410px;
}

.chart svg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 292px;
}

.chart [data-chart-tooltip] {
  cursor: pointer;
  outline: none;
}

.chart [data-chart-tooltip]:focus-visible {
  filter: drop-shadow(0 0 3px rgba(37, 99, 235, 0.65));
}

.influence-edge-hit {
  fill: none;
  stroke: transparent;
  stroke-width: 18;
  pointer-events: stroke;
  cursor: pointer;
  outline: none;
}

.influence-edge:hover,
.influence-edge:focus-visible {
  opacity: 0.72;
}

.chart-hit-target {
  fill: transparent;
  stroke: transparent;
  pointer-events: none;
}

.chart-tooltip {
  position: fixed;
  z-index: 90;
  display: grid;
  gap: 2px;
  max-width: min(980px, calc(100vw - 24px));
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  background: rgba(24, 26, 25, 0.96);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
  color: #e2e8f0;
  font-size: 15px;
  line-height: 1.42;
  overflow-wrap: anywhere;
  pointer-events: none;
}

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

.chart-tooltip strong {
  color: #e2e8f0;
  font-size: 15px;
  font-weight: 800;
}

.chart-tooltip span {
  color: #e2e8f0;
  font-weight: 400;
}

@media (pointer: coarse) {
  .chart-hit-target {
    pointer-events: all;
  }
}

@media (max-width: 640px) {
  .pending-user-card {
    grid-template-columns: 1fr;
  }

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

.chart-note {
  padding: 0 14px 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.builder-grid + .chart-note {
  padding-top: 2px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 460px;
}

.table-wrap.compact {
  max-height: 410px;
}

.product-table-wrap {
  max-height: none;
}

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

th,
td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  line-height: 1.35;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow-wrap: normal;
}

.table-help-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

td.numeric,
th.numeric {
  text-align: right;
  white-space: nowrap;
}

.price {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.risk-sku-table,
.product-analysis-table,
.product-flow-table,
.product-retention-table,
.seller-rating-table {
  min-width: 860px;
}

.risk-seller-table {
  min-width: 820px;
}

.influence-edges-table {
  min-width: 1040px;
}

.influence-leaders-table {
  min-width: 720px;
}

.pressure-products-table th,
.pressure-products-table td,
.decision-queue-table th,
.decision-queue-table td {
  text-align: center;
  vertical-align: middle;
}

.pressure-products-table th:first-child,
.pressure-products-table td:first-child,
.pressure-products-table th:last-child,
.pressure-products-table td:last-child,
.decision-queue-table th:nth-child(3),
.decision-queue-table td:nth-child(3),
.decision-queue-table th:nth-child(7),
.decision-queue-table td:nth-child(7),
.decision-queue-table th:nth-child(8),
.decision-queue-table td:nth-child(8) {
  text-align: left;
}

.pressure-products-table th,
.pressure-products-table td,
.decision-queue-table th,
.decision-queue-table td {
  padding-left: 6px;
  padding-right: 6px;
}

.pressure-products-table th,
.decision-queue-table th {
  white-space: normal;
  line-height: 1.2;
}

.decision-queue-table th,
.decision-queue-table td {
  overflow-wrap: anywhere;
}

.decision-queue-table td.numeric {
  font-size: 12px;
}

.pressure-products-table th:nth-child(1) {
  width: 25%;
}

.pressure-products-table th:nth-child(2),
.pressure-products-table th:nth-child(3) {
  width: 13%;
}

.pressure-products-table th:nth-child(4) {
  width: 10%;
}

.pressure-products-table th:nth-child(5) {
  width: 9%;
}

.pressure-products-table th:nth-child(6) {
  width: 30%;
}

.decision-queue-table th:nth-child(1) {
  width: 11%;
}

.decision-queue-table th:nth-child(2) {
  width: 10%;
}

.decision-queue-table th:nth-child(3) {
  width: 18%;
}

.decision-queue-table th:nth-child(4) {
  width: 12%;
}

.decision-queue-table th:nth-child(5),
.decision-queue-table th:nth-child(6) {
  width: 10%;
}

.decision-queue-table th:nth-child(7) {
  width: 15%;
}

.decision-queue-table th:nth-child(8) {
  width: 15%;
}

.pressure-products-table .sku-cell,
.decision-queue-table .sku-cell,
.risk-seller-table .sku-cell {
  min-width: 0;
}

.pressure-products-table .badge,
.decision-queue-table .badge {
  max-width: 100%;
  justify-content: center;
  text-align: center;
  white-space: normal;
  line-height: 1.15;
}

.decision-queue-table .badge {
  padding: 2px 5px;
  font-size: 11px;
}

.decision-object-title {
  display: block;
}

.case-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #bfd3f4;
  background: #f5f8ff;
  color: #245db8;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.15;
  text-align: center;
}

.case-state.needs_owner {
  border-color: #fecaca;
  background: #fff1f2;
  color: #b91c1c;
}

.case-state.in_work {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c;
}

.case-state.watch,
.case-state.backlog {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.queue-object-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-top: 7px;
  padding: 5px 9px;
  border: 1px solid #b9cdf2;
  border-radius: 8px;
  background: #f5f8ff;
  color: #245db8;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.queue-object-link:hover,
.queue-object-link:focus-visible {
  border-color: #2f6fed;
  background: #eaf1ff;
  outline: none;
}

.risk-seller-table .col-priority {
  width: 10%;
}

.risk-seller-table .col-seller {
  width: 15%;
}

.risk-seller-table .col-status {
  width: 12%;
}

.risk-seller-table .col-score {
  width: 10%;
}

.risk-seller-table .col-count,
.risk-seller-table .col-jumps,
.risk-seller-table .col-drops {
  width: 10%;
}

.risk-seller-table .col-reason {
  width: 23%;
}

.risk-sku-table .col-priority {
  width: 10%;
}

.risk-sku-table .col-product {
  width: 24%;
}

.risk-sku-table .col-price,
.risk-sku-table .col-gap,
.risk-sku-table .col-new-min,
.risk-sku-table .col-jumps {
  width: 10%;
}

.risk-sku-table .col-reason {
  width: 16%;
}

.risk-seller-table td,
.risk-sku-table td {
  min-height: 44px;
}

.risk-seller-table th,
.risk-seller-table td {
  padding: 7px 6px;
  text-align: center;
}

.risk-seller-table td {
  font-size: 13px;
}

.risk-seller-table th:nth-child(1),
.risk-seller-table td:nth-child(1),
.risk-sku-table th:nth-child(1),
.risk-sku-table td:nth-child(1) {
  text-align: center;
}

.risk-seller-table th:nth-child(2),
.risk-seller-table td:nth-child(2),
.risk-seller-table th:nth-child(8),
.risk-seller-table td:nth-child(8) {
  text-align: left;
}

.risk-seller-table th:nth-child(4),
.risk-seller-table th:nth-child(5),
.risk-seller-table th:nth-child(6),
.risk-seller-table th:nth-child(7),
.risk-seller-table td:nth-child(4),
.risk-seller-table td:nth-child(5),
.risk-seller-table td:nth-child(6),
.risk-seller-table td:nth-child(7),
.risk-sku-table th:nth-child(3),
.risk-sku-table th:nth-child(4),
.risk-sku-table th:nth-child(5),
.risk-sku-table th:nth-child(6),
.risk-sku-table th:nth-child(7),
.risk-sku-table td:nth-child(3),
.risk-sku-table td:nth-child(4),
.risk-sku-table td:nth-child(5),
.risk-sku-table td:nth-child(6),
.risk-sku-table td:nth-child(7) {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.risk-seller-table th,
.risk-sku-table th {
  white-space: normal;
  line-height: 1.2;
}

.risk-seller-table td:nth-child(8),
.risk-sku-table td:nth-child(8) {
  color: var(--muted);
  font-size: 12px;
}

.risk-seller-table .badge {
  max-width: 100%;
  justify-content: center;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  padding: 2px 4px;
  font-size: 11px;
  line-height: 1.15;
}

.reason-cell,
.conclusion-cell,
.text-cell,
.products-cell {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: normal;
}

.product-analysis-table .col-product,
.product-flow-table .col-product,
.product-retention-table .col-product {
  width: 26%;
}

.product-analysis-table .col-status,
.product-flow-table .col-status {
  width: 12%;
}

.product-analysis-table .col-score {
  width: 7%;
}

.product-analysis-table .col-count,
.product-analysis-table .col-trend,
.product-flow-table .col-count,
.product-flow-table .col-trend,
.product-retention-table .col-count {
  width: 7%;
}

.product-analysis-table .col-reason {
  width: 27%;
}

.product-retention-table .col-sellers {
  width: 15%;
}

.product-analysis-table th,
.product-flow-table th,
.product-retention-table th {
  white-space: normal;
  line-height: 1.2;
}

.product-analysis-table th:first-child,
.product-analysis-table td:first-child,
.product-analysis-table th:last-child,
.product-analysis-table td:last-child {
  text-align: left;
}

.product-analysis-table th:nth-child(2),
.product-analysis-table td:nth-child(2) {
  text-align: center;
}

.product-analysis-table th:nth-child(n + 3):not(:last-child),
.product-analysis-table td:nth-child(n + 3):not(:last-child),
.product-flow-table th:nth-child(n + 2):not(:last-child),
.product-flow-table td:nth-child(n + 2):not(:last-child),
.product-retention-table th:nth-child(2),
.product-retention-table th:nth-child(3),
.product-retention-table th:nth-child(4),
.product-retention-table td:nth-child(2),
.product-retention-table td:nth-child(3),
.product-retention-table td:nth-child(4) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.data-products-table .col-product {
  width: 42%;
}

.data-products-table .col-category {
  width: 16%;
}

.data-products-table .col-price {
  width: 18%;
}

.data-products-table .col-gap {
  width: 24%;
}

.data-sellers-table .col-seller {
  width: 42%;
}

.data-sellers-table .col-count {
  width: 14%;
}

.data-sellers-table .col-price {
  width: 30%;
}

.data-products-table th,
.data-products-table td,
.data-sellers-table th,
.data-sellers-table td {
  vertical-align: middle;
}

.data-products-table th:first-child,
.data-products-table td:first-child,
.data-sellers-table th:first-child,
.data-sellers-table td:first-child {
  text-align: left;
}

.data-products-table th:nth-child(2),
.data-products-table td:nth-child(2) {
  text-align: center;
}

.data-products-table th:nth-child(3),
.data-products-table th:nth-child(4),
.data-products-table td:nth-child(3),
.data-products-table td:nth-child(4),
.data-sellers-table th:nth-child(n + 2),
.data-sellers-table td:nth-child(n + 2) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.seller-pill {
  display: inline-block;
  max-width: 100%;
  margin: 0 4px 4px 0;
  padding: 3px 6px;
  border: 1px solid #dbe4f0;
  border-radius: 999px;
  background: #edf2f9;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: break-word;
}

.product-bars {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.product-bar-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.6fr) minmax(160px, 3fr) minmax(108px, 0.8fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.product-bar-name {
  min-width: 0;
}

.product-bar-track {
  position: relative;
  height: 18px;
  border-radius: 999px;
  background: #edf2f9;
  overflow: hidden;
}

.product-bar-track span {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
}

.product-bar-current {
  z-index: 2;
  background: var(--teal);
}

.product-bar-average {
  z-index: 1;
  background: #bfdbfe;
}

.product-bar-value {
  display: grid;
  gap: 2px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.product-bar-value span {
  color: var(--muted);
  font-size: 12px;
}

.availability-heatmap {
  padding: 0;
  max-height: min(70vh, 720px);
  overflow: auto;
  overscroll-behavior: contain;
  background: #fff;
  position: relative;
}

.heatmap-grid {
  display: grid;
  grid-template-columns: minmax(206px, 232px) repeat(var(--day-count), minmax(48px, 1fr));
  grid-auto-rows: 80px;
  gap: 3px;
  align-items: stretch;
  min-width: max-content;
  padding: 0 14px 14px;
  background: #fff;
}

.heatmap-label,
.heatmap-day,
.heatmap-cell {
  min-width: 0;
  min-height: 0;
  height: 100%;
  box-sizing: border-box;
  border-radius: 4px;
  overflow: hidden;
}

.heatmap-label {
  padding: 5px 6px;
  background: #f1f5fb;
}

.heatmap-day {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 10px;
  writing-mode: vertical-rl;
}

.heatmap-head {
  position: sticky;
  top: 0;
  z-index: 30;
  font-weight: 700;
  background: var(--surface-2);
  box-shadow: 0 2px 0 #fff, 0 3px 0 var(--line);
}

.heatmap-cell {
  display: grid;
  place-items: center;
  color: #172033;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.heatmap-product-label {
  position: sticky;
  left: 0;
  z-index: 10;
}

.heatmap-product-label.heatmap-head {
  z-index: 40;
}

.heatmap-product-label .sku-cell {
  display: grid;
  align-content: start;
  gap: 3px;
  height: 100%;
  min-width: 0;
}

.heatmap-product-label .sku-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.heatmap-product-label .sku-code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.heatmap-cell.empty {
  background: #edf2f9;
  color: #94a3b8;
}

.heatmap-cell.low {
  background: #ffdada;
  color: #8e1515;
}

.heatmap-cell.medium {
  background: #fff0b8;
  color: #765300;
}

.heatmap-cell.healthy {
  background: #dbeafe;
  color: #1e40af;
}

.compact-cell {
  min-width: 0;
  overflow-wrap: normal;
}

.cell-stack {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.transition-line,
.muted-line {
  display: block;
  line-height: 1.25;
}

.muted-line {
  color: var(--muted);
  font-size: 12px;
}

.rank-transition,
.money-transition {
  white-space: nowrap;
  overflow-wrap: normal;
  font-variant-numeric: tabular-nums;
}

.products-cell {
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: break-word;
}

.influence-leaders-table .col-seller {
  width: 22%;
}

.influence-leaders-table .col-segment {
  width: 12%;
}

.influence-leaders-table .col-count,
.influence-leaders-table .col-jumps,
.influence-leaders-table .col-score {
  width: 14%;
}

.influence-leaders-table .col-repeat {
  width: 24%;
}

.influence-leaders-table th:nth-child(n + 3),
.influence-leaders-table td:nth-child(n + 3),
.influence-edges-table th:nth-child(3),
.influence-edges-table td:nth-child(3) {
  text-align: center;
}

.influence-edges-table .col-leader,
.influence-edges-table .col-follower {
  width: 11%;
}

.influence-edges-table .col-repeat {
  width: 8%;
}

.influence-edges-table .col-distance {
  width: 20%;
}

.influence-edges-table .col-rank-change {
  width: 16%;
}

.influence-edges-table .col-price-change {
  width: 19%;
}

.influence-edges-table .col-products {
  width: 15%;
}

.influence-edges-table th,
.influence-edges-table td {
  padding-left: 16px;
  padding-right: 16px;
}

.influence-edges-table th {
  white-space: nowrap;
  overflow-wrap: normal;
}

.seller-rating-table .col-group {
  width: 10%;
}

.seller-rating-table .col-seller {
  width: 13%;
}

.seller-rating-table .col-dealer {
  width: 11%;
}

.seller-rating-table .col-risk,
.seller-rating-table .col-reliability {
  width: 10%;
}

.seller-rating-table .col-skus,
.seller-rating-table .col-new-mins,
.seller-rating-table .col-patterns {
  width: 7%;
}

.seller-rating-table .col-reason {
  width: 25%;
}

.seller-rating-table th,
.seller-rating-table td {
  padding-left: 14px;
  padding-right: 14px;
}

.seller-rating-table th:nth-child(4),
.seller-rating-table th:nth-child(5),
.seller-rating-table th:nth-child(6),
.seller-rating-table th:nth-child(7),
.seller-rating-table th:nth-child(8),
.seller-rating-table td.score-cell,
.seller-rating-table td.count-cell {
  text-align: right;
}

.seller-rating-table .reason-cell {
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.negative {
  color: var(--red);
  font-weight: 700;
}

.positive {
  color: var(--green);
  font-weight: 700;
}

.source {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid #dbe4f0;
  background: #edf2f9;
  color: var(--muted);
}

.source.garmin {
  background: var(--teal-2);
  color: #1e40af;
}

.sort-button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
  font: inherit;
  font-weight: 700;
}

.sort-button:hover {
  color: var(--ink);
  text-decoration: underline;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #edf2f9;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.badge.high,
.badge.p0 {
  background: #ffdada;
  color: #8e1515;
  border: 1px solid #f19b9b;
}

.badge.medium,
.badge.price_down,
.badge.below_official,
.badge.p1 {
  background: #ffe5cc;
  color: #8a4300;
  border: 1px solid #efb071;
}

.badge.low,
.badge.new_offer,
.badge.p2 {
  background: #fff0b8;
  color: #765300;
  border: 1px solid #e0be4f;
}

.badge.data,
.badge.disappeared,
.badge.watch {
  background: #fff7d6;
  color: #7a5a00;
  border: 1px solid #e6cc72;
}

.badge.ok,
.badge.live,
.badge.added {
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid #93c5fd;
}

.badge.price_up,
.badge.partial {
  background: #e6edf8;
  color: #315e91;
  border: 1px solid #b7c9e7;
}

.badge.lifecycle.active_stable {
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid #93c5fd;
}

.badge.lifecycle.growing,
.badge.lifecycle.revived {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #93c5fd;
}

.badge.lifecycle.volatile,
.badge.lifecycle.declining {
  background: #ffe5cc;
  color: #8a4300;
  border: 1px solid #efb071;
}

.badge.lifecycle.shortage_risk,
.badge.lifecycle.near_dead {
  background: #ffdada;
  color: #8e1515;
  border: 1px solid #f19b9b;
}

.delta {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.link-button,
.sku-button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.link-button {
  color: var(--teal);
  font-weight: 760;
}

.link-button:hover,
.sku-button:hover .sku-title {
  text-decoration: underline;
}

.sku-cell {
  display: grid;
  gap: 2px;
  min-width: 170px;
}

.sku-code {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.sku-title {
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
  white-space: normal;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.risk-bars {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.risk-row {
  display: grid;
  grid-template-columns: 24px minmax(120px, 220px) minmax(120px, 1fr) 48px;
  gap: 8px;
  align-items: center;
  min-height: 24px;
}

.risk-rank {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.risk-name {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.risk-track {
  height: 12px;
  border-radius: 999px;
  background: #e9eff8;
  overflow: hidden;
}

.risk-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--amber);
}

.risk-fill.p0 {
  background: var(--red);
}

.risk-fill.p1 {
  background: var(--violet);
}

.risk-fill.p2 {
  background: var(--green);
}

.risk-value {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.brief-list {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.brief-accordion {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.brief-accordion-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  overflow: hidden;
}

.brief-accordion-item.open {
  background: #fff;
  border-color: #b9c6d8;
}

.brief-accordion-toggle {
  display: grid;
  grid-template-columns: minmax(132px, auto) minmax(0, 1fr) minmax(54px, auto);
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 64px;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
}

.brief-accordion-toggle:hover,
.brief-accordion-toggle:focus-visible {
  background: #eff6ff;
  outline: none;
}

.brief-priority {
  display: flex;
  align-items: center;
}

.brief-main {
  display: grid;
  gap: 3px;
  min-width: 0;
  overflow: visible;
}

.brief-count {
  color: var(--ink);
  font-size: 22px;
  font-weight: 820;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.brief-accordion-panel {
  border-top: 1px solid var(--line);
  padding: 10px 12px 12px;
}

.brief-detail-list {
  display: grid;
  gap: 7px;
}

.brief-detail-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) minmax(150px, 0.7fr) minmax(180px, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 46px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8faff;
  padding: 8px 10px;
}

.brief-detail-row.evidence-wide {
  grid-template-columns: minmax(220px, 1.25fr) minmax(150px, 0.75fr) minmax(160px, 0.8fr) minmax(170px, 0.9fr);
}

/* Build/Patch 2026-06-22 12:18:00 +03:00 | Add readable headers to operational brief detail grids. */
.brief-detail-header.evidence-wide {
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) minmax(150px, 0.75fr) minmax(160px, 0.8fr) minmax(170px, 0.9fr);
  gap: 12px;
  align-items: center;
  padding: 4px 10px 2px;
}

.brief-detail-header > div {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.2;
}

.brief-seller-name {
  font-weight: 800;
}

.brief-detail-row > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

.brief-detail-row strong,
.brief-detail-row span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.brief-detail-row strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.brief-detail-row span,
.brief-detail-row div {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.brief-detail-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.brief-detail-empty {
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 12px;
}

.brief-item {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) minmax(180px, 300px);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 10px;
}

.brief-list.compact {
  padding-bottom: 6px;
}

.brief-item.compact {
  grid-template-columns: auto minmax(180px, 1fr) minmax(160px, 360px);
}

.brief-title {
  font-weight: 760;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
}

.brief-meta,
.brief-action {
  color: var(--muted);
  line-height: 1.35;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
}

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

.brief-evidence-column {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.evidence-title {
  color: var(--ink);
  font-size: 12px;
  font-weight: 760;
  margin-bottom: 8px;
}

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

.evidence-line {
  display: grid;
  gap: 2px;
}

.evidence-line span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.evidence-line strong {
  color: var(--ink);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.brief-window-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 14px 14px;
}

.brief-window {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.brief-window-label {
  color: var(--muted);
  font-size: 12px;
}

.brief-window-value {
  margin-top: 4px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 820;
  font-variant-numeric: tabular-nums;
}

.brief-window-sub {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.overview-secondary {
  margin-top: 14px;
}

.detail-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-summary.compact {
  border-bottom: 0;
  margin-bottom: 8px;
}

.detail-metric {
  display: grid;
  gap: 6px;
  min-width: 0;
  background: var(--surface);
  padding: 12px 14px;
}

.detail-metric span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: normal;
}

.detail-metric strong {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  overflow-wrap: anywhere;
  white-space: normal;
}

.builder-grid {
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

#eventTimelineChart .event-timeline-plot {
  /* Build/Patch 2026-07-02 20:05 +03:00 | Anchor the event plot in a stable box so seller toggles cannot shift the SVG upward. */
  position: relative;
  width: 100%;
  height: 520px;
  min-height: 520px;
  max-height: 520px;
  overflow: visible;
}

#eventTimelineChart .event-timeline-svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  overflow: visible;
}

#eventTimelineChart .chart-inline-note {
  padding: 0 12px 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

#eventTimelineChart .legend {
  padding-top: 2px;
}

@media (max-width: 700px) {
  #eventTimelineChart.chart {
    padding: 8px 6px 10px;
  }

  #eventTimelineChart .event-timeline-plot {
    height: 340px;
    min-height: 340px;
    max-height: 340px;
  }
}

.timeline-rangebar {
  display: grid;
  grid-template-columns: repeat(2, minmax(145px, 180px)) auto auto minmax(180px, 1fr);
  gap: 10px;
  align-items: end;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #f8faff;
}

/* Build/Patch 2026-06-22 12:46:00 +03:00 | Make event-timeline choices explicit and easy to discover. */
.event-timeline-controls {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.event-timeline-controls > label {
  display: grid;
  gap: 4px;
  min-width: 150px;
}

.event-timeline-product-control {
  flex: 1 1 360px;
}

.event-timeline-controls select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 10px;
  font: inherit;
}

.timeline-rangebar label {
  min-width: 0;
}

.timeline-rangebar input[type="date"] {
  min-height: 34px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 9px;
  font: inherit;
  font-variant-numeric: tabular-nums;
}

.timeline-seller-picker {
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.event-timeline-controls .timeline-seller-picker.prominent {
  flex: 0 0 310px;
  width: 310px;
  min-width: 280px;
  border: 0;
  background: transparent;
  position: relative;
  align-self: end;
}

.event-timeline-controls .timeline-fx-picker.prominent {
  flex: 0 0 310px;
  width: 310px;
  min-width: 280px;
  border: 0;
  background: transparent;
  position: relative;
  align-self: end;
}

.event-timeline-controls .timeline-seller-picker.prominent[open],
.event-timeline-controls .timeline-fx-picker.prominent[open] {
  z-index: 35;
}

.timeline-seller-picker.prominent > summary,
.timeline-fx-picker.prominent > summary {
  height: 64px;
  min-height: 64px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 8px;
  padding: 8px 12px;
  list-style: none;
  cursor: pointer;
}

.timeline-seller-picker.prominent > summary {
  border: 1px solid #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

.timeline-fx-picker.prominent > summary {
  border: 1px solid #5eead4;
  background: #f0fdfa;
  color: #0f766e;
}

.timeline-seller-picker.prominent > summary::-webkit-details-marker {
  display: none;
}

.timeline-fx-picker.prominent > summary::-webkit-details-marker {
  display: none;
}

.timeline-seller-picker.prominent > summary::after,
.timeline-fx-picker.prominent > summary::after {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transition: transform 0.15s ease;
  transform: rotate(45deg);
}

.timeline-seller-picker.prominent[open] > summary::after,
.timeline-fx-picker.prominent[open] > summary::after {
  transform: translateY(3px) rotate(225deg);
}

.seller-picker-trigger-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.seller-picker-trigger-copy strong {
  font-size: 13px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.seller-picker-trigger-copy small {
  color: #64748b;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.seller-picker-count {
  margin-left: auto;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  padding: 3px 7px;
  font-size: 11px;
  white-space: nowrap;
}

.timeline-seller-picker.prominent .timeline-seller-picker-body {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  width: min(760px, calc(100vw - 32px));
  margin-top: 0;
  border: 2px solid #bfd3ee;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 12px;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.24), 0 0 0 1px rgba(255, 255, 255, 0.92) inset;
}

.timeline-fx-picker.prominent .timeline-fx-picker-body {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  width: min(760px, calc(100vw - 32px));
  margin-top: 0;
  border: 2px solid #99f6e4;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%);
  padding: 12px;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.92) inset;
}

.timeline-seller-picker > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  list-style-position: inside;
}

.timeline-fx-picker > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  list-style-position: inside;
}

.timeline-seller-picker-body {
  padding: 0 14px 14px;
}

.timeline-seller-picker-body > p {
  margin: 9px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.timeline-seller-picker-toolbar {
  display: flex;
  align-items: end;
  gap: 8px;
}

.timeline-seller-picker-toolbar label {
  display: grid;
  gap: 4px;
  min-width: 190px;
}

.timeline-seller-picker-toolbar select {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 9px;
  font: inherit;
}

.timeline-seller-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  max-height: 310px;
  overflow-y: auto;
  padding: 2px 6px 2px 2px;
}

.fx-picker-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.fx-picker-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faff;
  padding: 9px 10px;
  cursor: pointer;
}

.fx-picker-option > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.fx-picker-swatch {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
}

.fx-picker-option:has(input:checked) {
  border-color: #5eead4;
  background: #f0fdfa;
}

.fx-picker-option:focus-within {
  outline: 2px solid #5eead4;
  outline-offset: 1px;
}

.fx-picker-option strong,
.fx-picker-option small {
  display: block;
  overflow-wrap: anywhere;
}

.fx-picker-option strong {
  color: var(--ink);
  font-size: 12px;
}

.fx-picker-option small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.seller-picker-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faff;
  padding: 8px 9px;
  cursor: pointer;
  min-height: 58px;
}

.seller-picker-option > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.seller-picker-check {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid #94a3b8;
  border-radius: 5px;
  background: #ffffff;
}

.seller-picker-option > input:checked + .seller-picker-check {
  border-color: #2563eb;
  background: #2563eb;
}

.seller-picker-option > input:checked + .seller-picker-check::after {
  content: "✓";
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.seller-picker-option:focus-within {
  outline: 2px solid #93c5fd;
  outline-offset: 1px;
}

.seller-picker-copy {
  display: grid;
  min-width: 0;
  align-self: center;
  gap: 2px;
}

.seller-picker-copy strong,
.seller-picker-copy small {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
}

.seller-picker-copy strong {
  color: var(--ink);
  font-size: 12px;
}

.seller-picker-copy small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.28;
}

.seller-picker-badges {
  display: flex;
  grid-column: 2 / -1;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-start;
  min-width: 0;
}

.seller-picker-badge {
  border-radius: 999px;
  background: #e8f0fe;
  color: #1d4ed8;
  padding: 3px 6px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.seller-picker-badge.cheapest {
  background: #fef3c7;
  color: #92400e;
}

.seller-picker-badge.rank {
  background: #eef2ff;
  color: #3730a3;
}

.seller-picker-badge.official,
.seller-picker-badge.official-cheapest {
  background: #dcfce7;
  color: #166534;
}

.seller-picker-badge.official-cheapest {
  border: 1px solid #86efac;
}

.price-wave-controls {
  align-items: end;
}

.price-wave-controls .secondary-button {
  min-height: 38px;
}

.price-wave-evidence-head {
  align-items: end;
}

.price-wave-evidence-head h2 {
  align-self: center;
}

.price-wave-evidence-controls {
  display: grid;
  grid-template-columns: minmax(120px, 150px) minmax(260px, 1fr) auto auto;
  gap: 8px;
  align-items: end;
  flex: 1 1 620px;
  max-width: 980px;
}

.price-wave-evidence-controls label {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
}

.price-wave-evidence-controls select {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 10px;
  font: inherit;
}

.price-wave-evidence-controls .secondary-button {
  min-height: 36px;
}

.price-wave-evidence-controls .axis-chip {
  align-self: center;
  justify-self: end;
}

.price-wave-conclusions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.price-wave-conclusion {
  min-width: 0;
  border: 1px solid #d7e3f5;
  border-radius: 8px;
  background: #f8fbff;
  padding: 14px;
}

.price-wave-conclusion span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.price-wave-conclusion p {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
}

.price-wave-list {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.price-wave-card {
  min-width: 0;
  border: 1px solid #d7e3f5;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(30, 64, 175, 0.06);
}

.price-wave-card--strong {
  border-color: #fecaca;
  border-left-color: #dc2626;
  box-shadow: 0 12px 26px rgba(220, 38, 38, 0.1);
}

.price-wave-card--medium {
  border-color: #fed7aa;
  border-left-color: #f97316;
}

.price-wave-card--weak {
  border-color: #bfdbfe;
  border-left-color: #3b82f6;
}

.price-wave-card--sync {
  border-color: #cbd5e1;
  border-left-color: #64748b;
}

.price-wave-card-head {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(420px, 1.35fr);
  gap: 16px;
  align-items: center;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}

.price-wave-card-head h3 {
  margin: 0;
}

.price-wave-card-head h3 {
  margin-top: 5px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
}

.price-wave-card-head small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.price-wave-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.price-wave-card-meta > strong {
  color: #1d4ed8;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.price-wave-chart-button {
  min-height: 30px;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 780;
  white-space: nowrap;
}

.price-wave-eyebrow {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
}

.price-wave-card--strong .price-wave-eyebrow {
  background: #fee2e2;
  color: #991b1b;
}

.price-wave-card--strong .price-wave-card-meta > strong {
  color: #dc2626;
}

.price-wave-card--medium .price-wave-eyebrow {
  background: #ffedd5;
  color: #9a3412;
}

.price-wave-card--medium .price-wave-card-meta > strong {
  color: #ea580c;
}

.price-wave-card--weak .price-wave-eyebrow {
  background: #dbeafe;
  color: #1d4ed8;
}

.price-wave-card--sync .price-wave-eyebrow {
  background: #f1f5f9;
  color: #475569;
}

.price-wave-evidence {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 2.45fr);
  gap: 8px;
  padding: 10px 14px;
}

.price-wave-leader,
.price-wave-followers > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8faff;
  padding: 8px 10px;
}

.price-wave-leader {
  border-left: 3px solid #f59e0b;
}

.price-wave-card--strong .price-wave-leader {
  border-left-color: #dc2626;
}

.price-wave-card--medium .price-wave-leader {
  border-left-color: #f97316;
}

.price-wave-card--weak .price-wave-leader {
  border-left-color: #3b82f6;
}

.price-wave-card--sync .price-wave-leader {
  border-left-color: #64748b;
}

.price-wave-followers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 6px;
}

.price-wave-leader span,
.price-wave-followers span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.price-wave-leader strong,
.price-wave-followers strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.price-wave-leader small,
.price-wave-followers small,
.price-wave-followers em {
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.price-wave-followers em {
  color: #1d4ed8;
  font-style: normal;
  font-weight: 720;
}

.price-wave-relationship {
  color: #334155 !important;
  font-weight: 760;
}

.price-wave-follower-card--strong {
  border-color: #fecaca !important;
  background: #fff7f7 !important;
}

.price-wave-follower-card--medium {
  border-color: #fed7aa !important;
  background: #fff9f2 !important;
}

.price-wave-follower-card--weak {
  border-color: #bfdbfe !important;
}

.price-wave-seller-line {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.price-wave-seller-line strong {
  flex: 0 1 auto;
  min-width: 0;
}

.price-wave-sequence {
  display: inline-grid;
  flex: 0 0 21px;
  place-items: center;
  width: 21px;
  height: 21px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 820;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.price-wave-leader .price-wave-sequence {
  border-color: #f59e0b;
  background: #fef3c7;
  color: #92400e;
}

.price-wave-rank-line {
  color: var(--muted) !important;
}

.price-wave-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--flow-count), minmax(58px, 1fr));
  align-items: start;
  gap: 5px;
  min-height: 58px;
}

.price-wave-flow::before {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  top: 11px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f59e0b, #93c5fd);
}

.price-wave-flow-node {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 0;
  color: var(--muted);
  text-align: center;
}

.price-wave-flow-node span {
  width: 22px;
  height: 22px;
  border: 2px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  box-shadow: 0 0 0 3px #ffffff;
}

.price-wave-flow-node.leader span {
  border-color: #f59e0b;
  background: #fef3c7;
}

.price-wave-flow-node.more span {
  border-color: #94a3b8;
  background: #f1f5f9;
}

.price-wave-flow-node strong {
  max-width: 100%;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-wave-flow-node small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.15;
  white-space: nowrap;
}

.price-wave-note {
  margin: 0;
  border-top: 1px solid var(--line);
  padding: 8px 14px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.range-meta {
  align-self: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.event-list {
  display: grid;
  gap: 7px;
  padding: 0 14px 14px;
}

.event-list-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.75fr) minmax(160px, 1fr) minmax(128px, 0.65fr) minmax(260px, 1.6fr);
  gap: 10px;
  align-items: start;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8faff;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 12px;
}

.event-list-row span,
.event-list-row strong {
  min-width: 0;
  line-height: 1.35;
  white-space: normal;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.event-list-row span {
  color: var(--muted);
}

.brief-chart-button {
  margin-top: 4px;
  padding: 0;
  text-align: left;
}

.empty {
  display: grid;
  place-items: center;
  min-height: 230px;
  color: var(--muted);
  background: repeating-linear-gradient(
    45deg,
    #f8faff,
    #f8faff 12px,
    #f3f6fb 12px,
    #f3f6fb 24px
  );
  border-radius: 8px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 0 12px 12px;
  color: var(--muted);
  font-size: 12px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

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

  .sidebar {
    position: static;
    height: auto;
  }

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

  .brand {
    margin-bottom: 0;
  }

  .nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 14px;
  }

  .nav-button {
    text-align: left;
  }

  .topbar,
  .panel-grid.two {
    grid-template-columns: 1fr;
    display: grid;
  }

  .product-bar-row {
    grid-template-columns: minmax(180px, 1.2fr) minmax(140px, 2fr) minmax(92px, 0.8fr);
  }

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

  .kpi-grid.compact,
  .kpi-grid.manager,
  .object-signal-grid,
  .fx-background-grid,
  .market-control-summary,
  .market-control-sellers,
  .seller-control-list,
  .seller-profile-hero,
  .seller-profile-products,
  .position-band,
  .brief-evidence,
  .brief-window-grid,
  .filterbar,
  .section-filterbar,
  .detail-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-control-summary {
    grid-template-columns: 1fr;
  }

  .market-control-metrics,
  .fx-summary-cards,
  .seller-control-overview,
  .seller-profile-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brief-detail-row,
  .brief-detail-row.evidence-wide {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .brief-detail-header.evidence-wide {
    display: none;
  }

  .event-timeline-controls .timeline-seller-picker.prominent,
  .event-timeline-controls .timeline-fx-picker.prominent {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
  }

  .price-wave-evidence-head {
    align-items: stretch;
  }

  .price-wave-evidence-controls {
    grid-template-columns: 1fr;
    flex-basis: 100%;
    max-width: none;
  }

  .price-wave-evidence-controls .axis-chip {
    justify-self: start;
  }

  .price-wave-card-head,
  .price-wave-evidence {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .price-wave-flow {
    grid-template-columns: repeat(var(--flow-count), minmax(34px, 1fr));
    gap: 2px;
  }

  .price-wave-flow::before {
    left: 13px;
    right: 13px;
  }

  .price-wave-flow-node span {
    width: 18px;
    height: 18px;
  }

  .price-wave-flow-node strong {
    max-width: 42px;
    font-size: 9px;
  }

  .price-wave-flow-node small {
    font-size: 9px;
  }

  .price-wave-followers {
    grid-template-columns: 1fr;
  }

  .brief-detail-row {
    gap: 8px;
  }

  .help-popover.mobile {
    background: rgba(15, 23, 42, 0.25);
    pointer-events: auto;
  }

  .help-popover.mobile .help-popover-card {
    top: auto;
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    max-height: 60vh;
    padding: 18px 56px 18px 18px;
    overflow: auto;
  }

  .help-popover.mobile .help-popover-text {
    font-size: 18px;
    line-height: 1.6;
  }

  .help-popover.mobile .help-popover-close {
    display: grid;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
}

@media (max-width: 700px) {
  .chart-tooltip {
    max-width: calc(100vw - 20px);
    padding: 12px 14px;
    font-size: 15px;
    line-height: 1.42;
  }

  .chart-tooltip strong {
    font-size: 15px;
  }

  .main {
    padding: 12px;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 45;
    padding: 10px;
  }

  .brand {
    grid-template-columns: 36px 1fr;
    min-width: 0;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-title {
    font-size: 13px;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .nav {
    display: none;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid rgba(219, 234, 254, 0.18);
    border-radius: 10px;
    background: #0f172a;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.35);
  }

  .sidebar.nav-open .nav {
    display: grid;
  }

  .nav-button {
    min-height: 44px;
    padding: 9px 10px;
    gap: 8px;
  }

  .nav-help,
  .help {
    min-width: 32px;
    min-height: 32px;
  }

  .help.small {
    min-width: 28px;
    min-height: 28px;
  }

  h2 .help,
  th .help,
  .kpi-label .help,
  .detail-metric .help {
    margin-left: 3px;
  }

  .help-popover {
    background: rgba(15, 23, 42, 0.25);
    pointer-events: auto;
  }

  .help-popover.mobile .help-popover-card {
    top: auto;
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    max-height: 60vh;
    padding: 18px 56px 18px 18px;
    overflow: auto;
  }

  .help-popover.mobile .help-popover-text {
    font-size: 18px;
    line-height: 1.6;
  }

  .help-popover.mobile .help-popover-close {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .topbar {
    gap: 12px;
  }

  .panel-head {
    gap: 10px;
  }

  .local-search {
    order: 3;
    flex: 1 0 100%;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin-right: 0;
  }

  .local-search input {
    flex: 1 1 auto;
    width: auto;
    min-height: 40px;
    font-size: 16px;
  }

  .local-search-reset {
    min-height: 40px;
  }

  h1 {
    font-size: 23px;
  }

  .section-description {
    font-size: 13px;
  }

  .overview-command-head,
  .overview-action {
    display: grid;
    grid-template-columns: 1fr;
  }

  .overview-role-tabs {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .overview-action-number {
    display: none;
  }

  .overview-action-link {
    width: 100%;
  }

  .overview-action-buttons {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .object-page-intro {
    display: grid;
  }

  .object-focus-banner {
    display: grid;
  }

  .object-page-actions {
    justify-content: stretch;
  }

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

  .kpi-grid.compact,
  .kpi-grid.manager,
  .fx-background-grid,
  .fx-summary-cards,
  .market-control-summary,
  .market-control-metrics,
  .market-control-sellers,
  .seller-control-overview,
  .seller-control-list,
  .seller-profile-hero,
  .seller-profile-kpis,
  .seller-profile-products,
  .seller-profile-product-metrics,
  .price-wave-conclusions,
  .price-wave-evidence,
  .position-band,
  .brief-evidence,
  .brief-window-grid,
  .filterbar,
  .section-filterbar,
  .detail-summary {
    grid-template-columns: 1fr;
  }

  .seller-view-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .seller-profile-section-head {
    display: grid;
    align-items: start;
  }

  .toolbar,
  .builder-grid,
  .timeline-rangebar,
  .timeline-seller-picker-toolbar,
  .dealer-case-head,
  .dealer-case-footer,
  .dealer-profile-form,
  .brief-item,
  .brief-accordion-toggle,
  .brief-detail-row,
  .brief-detail-row.evidence-wide,
  .event-list-row,
  .price-wave-card-head,
  .position-bar-row,
  .risk-row,
  .product-bar-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .timeline-seller-list,
  .fx-picker-list {
    grid-template-columns: 1fr;
  }

  .timeline-seller-picker.prominent .timeline-seller-picker-body,
  .timeline-fx-picker.prominent .timeline-fx-picker-body {
    left: 50%;
    right: auto;
    width: min(760px, calc(100vw - 32px));
    transform: translateX(-50%);
  }

  .timeline-seller-picker-toolbar label {
    min-width: 0;
  }

  .dealer-case-side {
    text-align: left;
  }

  .dealer-profile-form label.wide {
    grid-column: auto;
  }

  .risk-overview-grid .risk-bars {
    grid-template-columns: 1fr;
  }

  /* Build/Patch 2026-06-18 17:20:01 +03:00 | Keep long SKU options inside narrow mobile viewports. */
  .toolbar,
  .toolbar label,
  .toolbar select {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }

  .section-jumpbar {
    position: static;
  }

  .heatmap-grid {
    grid-template-columns: minmax(176px, 208px) repeat(var(--day-count), minmax(38px, 1fr));
    grid-auto-rows: 76px;
    gap: 2px;
    padding: 0 10px 10px;
  }

  .heatmap-cell {
    font-size: 9px;
    min-height: 0;
  }

  label,
  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .brief-count {
    text-align: left;
  }

  .brief-detail-actions {
    justify-content: stretch;
  }

  .nav-help {
    display: none;
  }

  .table-wrap,
  .table-wrap.compact,
  .product-table-wrap {
    max-height: none;
    overflow: visible;
  }

  .table-wrap table,
  .table-wrap thead,
  .table-wrap tbody,
  .table-wrap tr,
  .table-wrap th,
  .table-wrap td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .table-wrap table {
    table-layout: auto;
    border-collapse: separate;
    border-spacing: 0;
  }

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

  .table-wrap tbody {
    display: grid;
    gap: 10px;
  }

  .table-wrap tr {
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(30, 64, 175, 0.05);
  }

  .table-wrap td {
    display: grid;
    grid-template-columns: minmax(96px, 36%) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-height: 0;
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
    text-align: left !important;
    white-space: normal;
    overflow: visible;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .table-wrap td:last-child {
    border-bottom: 0;
  }

  .table-wrap td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 760;
    line-height: 1.25;
    text-transform: none;
  }

  .table-wrap td[colspan] {
    display: block;
    text-align: center !important;
  }

  .table-wrap td[colspan]::before {
    content: none;
  }

  .table-help-label,
  .price,
  td.numeric,
  th.numeric {
    white-space: normal;
    text-align: left;
  }

  .badge,
  .risk-seller-table .badge,
  .pressure-products-table .badge,
  .decision-queue-table .badge {
    justify-content: flex-start;
  }

  .reason-cell,
  .conclusion-cell,
  .text-cell,
  .products-cell {
    font-size: 12px;
  }
}
