:root {
  font-size: 16px;
  --muted: #4d5c73;
}

h1 { font-size: 30px; letter-spacing: normal; }
h2 { font-size: 19px; font-weight: 600; }
h3 { font-size: 16px; font-weight: 600; }
strong { font-weight: 600; }
small { font-size: 14px; }
.brand { font-size: 20px; font-weight: 600; }
.brand-mark { transform: none; }
.brand-secondary, .nav-group h2, .sidebar-bottom,
.page-title p, .section-heading p, .section-heading a,
.blue-strip span, .metrics span, .store-heading p, .score span,
.trend-head span, .trend-dates, .trend-axis, .list-toolbar,
.product-card p, .order-columns, .order-card header { font-size: 14px; }
.nav-group a { padding-block: 10px; }
.metrics strong, .score strong { letter-spacing: normal; }
.topbar, .store-panel, .opportunity-banner { background: #f4f7fc; }
.store-panel { background: white; }
.notification::after { content: none; }
td, th { padding: 10px 12px; font-size: 15px; }
.order-body { font-size: 15px; padding-block: 12px; }
.panel, .opportunity-banner { padding: 18px; }
.page.stack, .home > .home-grid > .stack { grid-template-columns: minmax(0, 1fr); }
.panel, .opportunity-banner, .underline-nav { min-width: 0; }
.button, .field { min-height: 38px; }
:is(input, select, textarea):focus-visible, form button:focus-visible, .filters button:focus-visible {
  outline: 2px solid #838b96;
  outline-offset: 2px;
}
.field :where(input, select, textarea):focus-visible { outline: none; }
.field:focus-within, .login-form input:focus { border-color: #838b96; }
.neutral-select { position: relative; }
.neutral-select .neutral-select-trigger { width: auto; background: transparent; }
.neutral-select-trigger strong { color: #263142; font-weight: 500; }
.neutral-options {
  position: absolute;
  z-index: 3;
  top: calc(100% + 5px);
  left: 0;
  min-width: 100%;
  width: max-content;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: #fff;
  border: 1px solid #dce0e5;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgb(29 40 57 / 11%);
}
.neutral-options li { padding: 6px 10px; border-radius: 5px; cursor: pointer; }
.neutral-options li[aria-selected=true] { background: #e9ebee; font-weight: 600; }
.neutral-options li.is-active { background: #f1f2f4; box-shadow: inset 0 0 0 1px #b5bac2; }
.topbar { gap: 18px; }
.header-breadcrumb { display: flex; align-items: center; flex: none; padding-left: 14px; border-left: 1px solid #dae3f0; }
.header-breadcrumb ol { display: flex; align-items: center; gap: 9px; min-height: 34px; margin: 0; padding: 0 10px; border-radius: 8px; background: rgb(222 232 247 / 36%); list-style: none; white-space: nowrap; }
.header-breadcrumb li { display: flex; align-items: center; gap: 10px; color: #6b788c; font-size: 14px; line-height: 20px; }
.header-breadcrumb li[aria-current=page] { color: #48566c; font-weight: 400; }
.header-breadcrumb a { color: inherit; }
.header-breadcrumb a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb-divider { width: 5px; height: 5px; margin-right: 2px; border-top: 1px solid #8b99ad; border-right: 1px solid #8b99ad; transform: rotate(45deg); }
.header-shortcuts { display: flex; align-items: center; gap: 12px; }
.header-shortcuts a { display: flex; align-items: center; min-height: 34px; padding: 0 8px; border-radius: 6px; color: #68758a; font-size: 16px; line-height: 20px; white-space: nowrap; }
.header-shortcuts a:hover, .header-shortcuts .router-link-exact-active { color: #46566e; background: rgb(255 255 255 / 58%); }
@media (max-width: 1050px) { .header-shortcuts { display: none; } }
.topbar .search {
  height: 34px;
  padding: 0 12px;
  gap: 7px;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 72%);
  color: #637592;
  transition: background .18s;
}
.topbar .search > svg { width: 15px; height: 15px; }
.topbar .search input { padding: 0; font-size: 14px; }
.topbar .search input::placeholder { color: #667895; }
.topbar .search input:focus-visible { outline: none; }
.topbar .search:focus-within { background: #fff; }
.topbar .search-menu { border-radius: 12px; }

.account-control { position: relative; }
.merchant-avatar { display: block; flex: none; border-radius: 50%; object-fit: cover; }
.account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 196px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 20px #253a651c;
}
.account-summary { display: grid; gap: 2px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.account-menu button {
  display: block;
  width: 100%;
  padding: 8px 10px;
  text-align: left;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 6px;
}
.account-menu button:hover { background: #eef3fc; }
.account-menu .logout-button, .login-error { color: #a71e35; }
.login-screen {
  display: grid;
  place-items: center;
  min-height: calc(100dvh - 64px);
  padding: 24px;
}
.login-panel { width: min(100%, 420px); padding: 24px; }
.login-hint { margin-top: 8px; color: var(--muted); font-size: 14px; }
.login-form { display: grid; gap: 8px; margin-top: 20px; }
.login-form input { min-width: 0; width: 100%; min-height: 42px; padding: 8px 12px; border: 1px solid #d8e0ed; border-radius: 6px; }
.login-form label:not(:first-child), .login-form button { margin-top: 8px; }

.frame { grid-template-columns: 266px minmax(0, 1fr); }
.split-sidebar {
  display: grid;
  grid-template-columns: 101px minmax(0, 1fr);
  justify-content: stretch;
  grid-template-rows: minmax(min-content, 1fr);
  align-items: stretch;
  padding: 16px 10px;
  overflow: auto;
  border-radius: 14px;
  scrollbar-width: thin;
  scrollbar-color: #acbdd7 transparent;
}
.split-sidebar:hover { scrollbar-color: #849bbd transparent; }
@supports selector(::-webkit-scrollbar) {
  .split-sidebar, .split-sidebar:hover { scrollbar-width: auto; scrollbar-color: auto; }
  .split-sidebar::-webkit-scrollbar { width: 8px; height: 8px; }
  .split-sidebar::-webkit-scrollbar-track { background: transparent; margin-block: 10px; }
  .split-sidebar::-webkit-scrollbar-thumb {
    background: #acbdd7;
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 999px;
  }
  .split-sidebar::-webkit-scrollbar-thumb:hover { background-color: #849bbd; }
}
@media (forced-colors: active) {
  .split-sidebar, .split-sidebar:hover { scrollbar-color: auto; }
  .split-sidebar::-webkit-scrollbar-thumb, .split-sidebar::-webkit-scrollbar-thumb:hover { background-color: ButtonText; }
}
.module-rail { display: grid; align-content: start; gap: 4px; padding-right: 10px; border-right: 1px solid var(--line); }
.module-rail button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 7px 9px;
  font-size: 17px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #495974;
  white-space: nowrap;
}
.module-rail svg { width: 21px; height: 21px; }
.module-rail button:hover, .module-links a:hover, .module-group:hover { background: #f3f6fc; color: var(--blue); }
.module-rail button[aria-pressed=true] { background: #eaf1ff; color: var(--blue); font-weight: 600; }
.module-links { padding-left: 12px; }
.module-links h2 { padding: 8px 9px 14px; font-size: 20px; font-weight: 650; }
.module-links a, .module-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  width: 100%;
  padding: 10px 9px;
  color: #34445e;
  background: transparent;
  border: 0;
  border-radius: 6px;
  text-align: left;
  font-size: 17px;
}
.module-group { margin-top: 4px; font-weight: 600; }
.module-group svg { width: 13px; height: 13px; color: var(--muted); }
.module-group[aria-expanded=true] svg { transform: rotate(180deg); }
.module-children a { padding-left: 16px; font-size: 16px; }
.module-links a[aria-current=page] { position: relative; color: var(--blue); font-weight: 600; }
.module-links a[aria-current=page]::before { content: ''; position: absolute; left: 2px; width: 3px; height: 13px; border-radius: 2px; background: var(--blue); }

@media(max-width: 1100px) {
  .topbar { gap: 10px; }
  .topnav a { padding-inline: 6px; }
  .home-grid { grid-template-columns: minmax(0, 1fr); }
  .context { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media(max-width: 700px) {
  .topbar { gap: 6px; }
  .header-breadcrumb { display: none; }
  .brand { font-size: 17px; }
  .page-title h1 { font-size: 24px; }
  .panel, .opportunity-banner { padding: 12px; }
  .login-panel { padding: 20px; }
  .home-title { flex-wrap: wrap; }
  .trend-dates, .trend-axis { font-size: 12px; }
  .order-card header { gap: 6px 10px; }
  .order-body .product-cell { align-items: flex-start; }
  .split-sidebar { width: min(280px, 86vw); border-radius: 0 14px 14px 0; }
}
@media(max-width: 420px) {
  .context { grid-template-columns: minmax(0,1fr); }
  .blue-strip a { flex-direction: column; align-items: flex-start; }
  .blue-strip span { font-size: 14px; }
  .blue-strip strong { font-size: 20px; }
  .trend-dates span:nth-child(even) { display: none; }
}
