@font-face {
  font-family: Geist;
  src: url("/fonts/geist.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  font-family: Geist, Inter, system-ui, sans-serif;
  color: #272e17;
  background: #f4f6f2;
  font-size: 16px;
  font-synthesis: weight;
  --ink: #272e17;
  --muted: #696e5f;
  --green: #4b6416;
  --line: #e1e3dc;
  --yellow: #8cbe23;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button {
  border: none;
  background: none;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
a {
  color: var(--green);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #5f8a12;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button svg,
a svg {
  flex: none;
}
svg {
  vertical-align: middle;
}
b,
strong,
h1,
h2 {
  font-weight: 650;
}
small {
  display: block;
  color: var(--muted);
  font-size: 0.825rem;
}
button:disabled:hover {
  transform: none;
}
a {
  text-underline-offset: 3px;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
}
.sidebar {
  background: #2e3c12;
  color: #f3f6ed;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 34px 16px 19px;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  color: #fdfff9;
  text-decoration: none;
  font-size: 1.12rem;
  letter-spacing: -0.6px;
  white-space: nowrap;
  padding: 0 5px 26px;
}
.brand img {
  width: 104px;
  height: 104px;
}
.brand span {
  font-weight: 400;
}
.brand strong {
  font-weight: 750;
}
.sidebar nav {
  display: grid;
  gap: 6px;
  padding-top: 20px;
  border-top: 1px solid #ffffff29;
}
.sidebar nav button,
.side-connect {
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  padding: 13px 15px;
  border-radius: 9px;
  color: #dfe5d3;
  font-size: 0.95rem;
  line-height: 1.2;
}
.sidebar nav button:hover,
.side-connect:hover {
  background: #ffffff0e;
  color: #fff;
}
.sidebar nav button[aria-current="page"],
.side-connect.chosen {
  background: #45512b;
  color: #b9de66;
  box-shadow: inset 3px 0 #8cbe23;
}
.side-bottom {
  margin-top: auto;
}
.side-connect {
  width: 100%;
  margin-bottom: 17px;
}
.account-mini {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 21px 5px 3px;
  border-top: 1px solid #ffffff29;
}
.account-mini b {
  font-size: 0.9rem;
}
.account-mini small {
  color: #ccd3be;
  font-size: 0.77rem;
  margin-top: 3px;
}
.avatar {
  width: 34px;
  height: 34px;
  border: 1px solid #7f8969;
  display: grid;
  place-items: center;
  color: #c4e382;
  background: #424e28;
  border-radius: 9px;
}
.workspace {
  min-width: 0;
}
.topbar {
  min-height: 66px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 clamp(20px, 3.2vw, 54px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.top-left,
.top-actions,
.top-link,
.toolbar,
.source,
.button,
.history-title,
.connected-line,
.compare-tools,
.watch-select,
.legend,
.filters,
.search-form,
.segmented,
.pager,
.select-wrap,
.search-input {
  display: flex;
  align-items: center;
}
.top-left {
  gap: 12px;
  font-size: 0.85rem;
  color: #6e7365;
}
.top-left i {
  font-style: normal;
  color: #a7aaa0;
}
.top-left b {
  color: #394029;
  font-size: 0.86rem;
}
.top-actions {
  gap: 15px;
}
.top-link,
.button,
.icon-btn.outlined {
  justify-content: center;
  gap: 8px;
  border: 1px solid #d8dbd3;
  border-radius: 8px;
  background: white;
  color: #333b21;
  font-size: 0.875rem;
  line-height: 1.1;
  font-weight: 650;
  text-decoration: none;
  min-height: 38px;
  padding: 9px 12px;
  white-space: nowrap;
}
.top-link {
  font-size: 0.81rem;
  min-height: 33px;
}
.button:hover,
.top-link:hover,
.icon-btn.outlined:hover {
  background: #f2f4ef;
  border-color: #b3b8a7;
}
.source,
.pill,
.badge,
.change,
.count {
  font-size: 0.78rem;
  line-height: 1.15;
  border-radius: 99px;
  font-weight: 600;
  white-space: nowrap;
}
.source,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
}
.source.demo {
  background: #fbefc9;
  color: #705216;
}
.source.real,
.pill,
.badge.green {
  background: #eef3e3;
  color: #4f6226;
}
.source i,
.pill i {
  height: 7px;
  width: 7px;
  border-radius: 99px;
  display: block;
}
.source.demo i {
  background: #a87519;
}
.source.real i,
.pill .on {
  background: #698136;
}
.pill .off {
  background: #919589;
}
.burger.icon-btn,
.shade {
  display: none;
}
main {
  max-width: 1580px;
  margin: 0 auto;
  padding: clamp(26px, 2.8vw, 42px) clamp(20px, 3.2vw, 54px) 40px;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 25px;
}
.page-head h1 {
  font-size: clamp(1.97rem, 2.6vw, 2.85rem);
  line-height: 1.13;
  letter-spacing: -0.065em;
  font-weight: 720;
  color: #2f3a19;
}
.page-head p,
.section-head p {
  color: var(--muted);
  line-height: 1.5;
}
.page-head p {
  margin-top: 7px;
  font-size: 0.98rem;
}
.toolbar {
  gap: 9px;
  flex-wrap: wrap;
}
.product-form fieldset {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0 0 6px;
  padding: 14px 0 4px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px 16px;
}
.product-form legend {
  font-weight: 650;
  font-size: 0.86rem;
  color: #425123;
  padding: 0 8px 0 0;
}
.product-form label,
.settings-box label {
  display: grid;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #536559;
}
.product-form input,
.product-form textarea,
.settings-box input {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  min-width: 0;
  background: #fff;
  font: inherit;
  font-weight: 400;
  color: var(--ink);
}
.product-form input:disabled {
  background: #f3f4f0;
  color: var(--muted);
}
.product-form label small {
  font-weight: 400;
  color: var(--muted);
}
.product-form label small.bad {
  color: #a33a2f;
}
.product-form .notes {
  margin-top: 8px;
}
.sku-line {
  display: flex;
  gap: 6px;
}
.sku-line input {
  flex: 1;
}
.form-problems {
  margin: 12px 0 0;
  padding: 10px 14px 10px 30px;
  background: #f6e3e1;
  color: #a33a2f;
  border-radius: 8px;
  font-size: 0.85rem;
}
.form-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  align-items: center;
}
.form-actions > span {
  flex: 1;
}
.button.danger {
  color: #a33a2f;
  border-color: #ebc6c1;
}
.settings-box {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px 16px;
  padding: 14px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafcf9;
}
.settings-box .form-actions,
.settings-box .footnote {
  grid-column: 1 / -1;
  margin: 0;
}
.match-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.match-head .footnote {
  margin: 0;
}
.review-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-bottom: 14px;
}
.review-fields > b {
  font-size: 0.84rem;
  margin-right: 4px;
}
.review-fields .footnote {
  flex-basis: 100%;
  margin: 2px 0 0;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 4px 10px;
  font-size: 0.82rem;
  background: #fafcf9;
  color: #6e7365;
  cursor: pointer;
}
.chip.on,
.chip.fixed {
  border-color: #8a9b67;
  background: #f3f6ed;
  color: #425123;
}
.chip.fixed {
  cursor: default;
}
.chip input {
  margin: 0;
}
.review-table td.changed,
.review-table small span.changed {
  background: #fff1c7;
}
.review-table small span + span::before {
  content: " · ";
}
.review-table tr.unpicked td {
  opacity: 0.45;
}
.review-table small.bad,
.bad {
  color: #a33a2f;
}
.plain-list {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 0.86rem;
  line-height: 1.7;
}
.toolbar-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.updated-at {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.updated-at.warn {
  color: #a33a2f;
}
@media (max-width: 720px) {
  .toolbar-col {
    align-items: flex-start;
  }
}
.period-picker {
  position: relative;
}
.period-button {
  gap: 8px;
}
.period-button > svg:first-child {
  color: #596049;
}
.period-button > svg:last-child {
  color: #616655;
}
.period-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  width: min(320px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 30px #1a200c24;
  padding: 14px;
}
.period-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.period-presets button {
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 5px 11px;
  background: #fafcf9;
  font-size: 0.84rem;
  color: #536559;
}
.period-presets button.active,
.period-presets button:hover {
  border-color: #8a9b67;
  background: #f3f6ed;
  color: #425123;
}
.period-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.period-fields label {
  display: grid;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #536559;
}
.period-fields input {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 9px;
  min-width: 0;
  background: #fff;
}
.period-error {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.82rem;
  color: #a33a2f;
}
.period-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}
.date-select,
.select-wrap {
  position: relative;
  gap: 8px;
}
.select-wrap > svg:last-child {
  position: absolute;
  right: 10px;
  pointer-events: none;
  color: #616655;
}
.select-wrap select {
  min-height: 38px;
  border: 1px solid #d3d6cc;
  appearance: none;
  background: #fff;
  border-radius: 8px;
  padding: 8px 31px 8px 12px;
  font-size: 0.875rem;
  font-weight: 550;
  max-width: 100%;
  cursor: pointer;
}
.date-select > svg:first-child {
  position: absolute;
  left: 12px;
  color: #596049;
  pointer-events: none;
}
.date-select select {
  padding-left: 37px;
}
.button.primary {
  background: var(--yellow);
  border-color: #7aa81c;
  color: #333b23;
}
.button.primary:hover {
  background: #9bca35;
}
.button.dark {
  background: #495b22;
  border-color: #495b22;
  color: #fff;
}
.button.dark:hover {
  background: #3b4b19;
}
.stack {
  display: grid;
  gap: 21px;
  min-width: 0;
}
.metrics {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.metric {
  padding: 17px 18px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  text-align: left;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  min-width: 0;
  box-shadow: 0 2px 3px #353e2210;
  transition:
    border 0.15s,
    transform 0.15s;
}
.metric:hover {
  border-color: #a6ad98;
  transform: translateY(-2px);
}
.metric-top {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.22;
  color: #4f5443;
}
.metric-top i,
.tile,
.mini-icon {
  width: 33px;
  height: 33px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-style: normal;
  flex: none;
}
.sales .metric-top i,
.tile {
  background: #e9eee0;
  color: #5b722b;
}
.buys .metric-top i {
  background: #fbefd7;
  color: #8d641d;
}
.visits .metric-top i {
  background: #e6ecf3;
  color: #496781;
}
.danger .metric-top i {
  background: #f6e3e1;
  color: #a33a2f;
}
.warn .metric-top i {
  background: #fff1c7;
  color: #7a5a00;
}
div.metric {
  cursor: default;
}
.badge.full-empty {
  background: #f6e3e1;
  color: #a33a2f;
}
.badge.full-low {
  background: #fff1c7;
  color: #7a5a00;
}
.badge.full-ok {
  background: #eef3e3;
  color: #4f6226;
}
td.numeric small {
  display: block;
  margin-top: 3px;
  font-size: 0.74rem;
  color: var(--muted);
  white-space: normal;
}
.monitors .metric-top i {
  background: #eee9f3;
  color: #78608c;
}
.metric > b {
  display: block;
  margin: 15px 0 5px;
  font-size: clamp(1.35rem, 2.05vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.065em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.metric small {
  font-size: 0.8rem;
}
.card {
  border-radius: 14px;
  background: white;
  border: 1px solid var(--line);
  padding: 22px 23px;
  min-width: 0;
  box-shadow: 0 2px 4px #353e2208;
}
.chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.53fr) minmax(0, 1fr);
  gap: 18px;
}
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.section-head h2 {
  font-size: 1.17rem;
  letter-spacing: -0.038em;
  line-height: 1.25;
  color: #353e21;
}
.section-head p {
  font-size: 0.86rem;
  margin-top: 5px;
}
.section-symbol {
  width: 20px;
  height: 20px;
  color: #929982;
}
.flow-card {
  display: flex;
  flex-direction: column;
}
.plot {
  width: 100%;
  min-width: 0;
}
.plot > svg {
  width: 100%;
  display: block;
  overflow: visible;
  min-height: 150px;
}
.plot text {
  font-family: Geist, system-ui, sans-serif;
  font-size: 13px;
  fill: #666b5c;
}
.legend {
  min-height: 26px;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  color: #545949;
  font-size: 0.825rem;
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.legend i {
  width: 15px;
  height: 3px;
  border-radius: 3px;
}
.under-chart {
  border-top: 1px solid #e8eae4;
  padding-top: 13px;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 12px;
}
.under-chart span {
  color: var(--muted);
  font-size: 0.78rem;
}
.under-chart b {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
  margin-top: 3px;
}
.rank-card {
  display: flex;
  flex-direction: column;
}
.ranks {
  display: grid;
  gap: 15px;
  margin-bottom: 18px;
}
.rank {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  width: 100%;
  padding: 0;
  text-align: left;
}
.rank-num {
  margin-top: 1px;
  font-size: 0.78rem;
  color: #777e68;
  font-weight: bold;
  font-variant-numeric: tabular-nums;
}
.rank-content {
  flex: 1;
  min-width: 0;
}
.rank-content > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.84rem;
  line-height: 1.3;
}
.rank-content b {
  font-weight: 550;
}
.rank-content strong {
  font-variant-numeric: tabular-nums;
}
.rank-content > i {
  display: block;
  margin-top: 6px;
  border-radius: 9px;
  height: 5px;
  background: #eff1eb;
  overflow: hidden;
}
.rank-content em {
  height: 100%;
  display: block;
  border-radius: 9px;
  background: #8ea363;
}
.rank:first-child .rank-content em {
  background: #5b7428;
}
.text-action,
.inline-btn {
  color: #4d651c;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.875rem;
}
.inline-btn,
.plain {
  padding: 0;
}
.text-action:hover,
.inline-btn:hover {
  text-decoration: underline;
}
.rank-card > .text-action {
  margin-top: auto;
  text-align: left;
  border-top: 1px solid #e8eae4;
  padding: 13px 0 0;
}
.mini-list {
  border-top: 1px solid #e4e6df;
}
.mini-row {
  width: 100%;
  display: grid;
  grid-template-columns:
    minmax(0, 1.7fr) minmax(62px, 0.6fr) minmax(94px, 0.55fr)
    78px;
  gap: 15px;
  align-items: center;
  padding: 13px 2px;
  text-align: right;
  border-bottom: 1px solid #eaece6;
  font-size: 0.9rem;
}
.mini-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.mini-row:hover .mini-title b {
  color: var(--green);
  text-decoration: underline;
}
.mini-title {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 11px;
  min-width: 0;
}
.mini-title small {
  margin-top: 2px;
}
.mini-icon {
  background: #eef2e9;
  color: #6a7552;
  border: 1px solid #e5e9de;
  width: 33px;
  height: 33px;
}
.spark {
  height: 25px;
  width: 75px;
  max-width: 100%;
  justify-self: end;
  color: #7b8d56;
}
.change {
  justify-self: end;
  padding: 5px 9px;
}
.down {
  color: #50681e;
  background: #edf1e4;
}
.up {
  color: #86501d;
  background: #f7ead9;
}
.flat {
  color: #5e6355;
  background: #eff1ec;
}
.footnote,
.hint {
  font-size: 0.815rem;
  color: #656b59;
  line-height: 1.55;
}
.footnote {
  margin-top: 14px;
}
.main-note {
  margin-top: -5px;
}
.small {
  width: 33px;
  height: 33px;
}
.notice,
.confirm {
  background: #fff7dd;
  border: 1px solid #efdc9c;
  color: #604d1f;
  border-radius: 9px;
  padding: 11px 15px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.notice > button {
  flex: none;
  padding: 3px;
  color: inherit;
}
.loading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  margin: 0 0 14px;
  font-size: 0.9rem;
}
.workspace main > .notice {
  margin: 0 0 15px;
}
.empty {
  padding: 27px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  gap: 8px;
  line-height: 1.5;
  color: var(--muted);
  font-size: 0.93rem;
}
.count {
  background: #edefe8;
  color: #536135;
  padding: 7px 11px;
}
.section-head:has(.section-symbol) {
  align-items: flex-start;
}
.search-form,
.filters {
  gap: 10px;
}
.search-input {
  border: 1px solid #d4d8cd;
  background: #fcfdfb;
  color: #737965;
  border-radius: 8px;
  gap: 9px;
  padding: 0 12px;
  min-height: 42px;
  flex: 1;
  min-width: 0;
}
.search-input:focus-within {
  border-color: #6d7e49;
}
.search-input input {
  padding: 9px 0;
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: 0 !important;
  font-size: 0.93rem;
}
.hint {
  margin-top: 12px;
}
.hint button {
  font-size: inherit;
}
.search-results,
.result {
  width: 100%;
}
.search-results {
  margin-top: 14px;
}
.result {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  text-align: left;
  padding: 12px 0;
}
.result small,
td small {
  margin-top: 3px;
}
.overline {
  margin-bottom: 5px;
  letter-spacing: 0.02em;
}
.compare-tools,
.connected-line,
.history-title,
.watch-select {
  gap: 13px;
  flex-wrap: wrap;
}
.compare-tools {
  justify-content: space-between;
}
.compare-tools label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
}
.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 18px;
  background: #f6f8f3;
  padding: 15px;
  border-radius: 9px;
}
.summary-strip small {
  margin-bottom: 5px;
}
.summary-strip b {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
}
.table-wrap {
  overflow: auto;
  max-width: 100%;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.88rem;
}
th,
td {
  text-align: left;
  padding: 12px 9px;
  border-bottom: 1px solid #e6e9e1;
  vertical-align: middle;
}
th {
  font-size: 0.77rem;
  color: #6a705d;
  white-space: nowrap;
  background: #f8f9f6;
  font-weight: 600;
}
td:first-child,
th:first-child {
  padding-left: 6px;
}
.right {
  text-align: right;
}
.numeric,
.rank-number {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.rank-number {
  color: #6c7658;
}
.badge {
  display: inline-block;
  color: #63665c;
  background: #edf1ea;
  padding: 5px 8px;
}
.sort-head {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.sort-head .idle {
  opacity: 0.35;
}
.sort-head:hover .idle {
  opacity: 0.8;
}
.crumb {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.crumb:hover {
  color: #394029;
  text-decoration: underline;
}
.crumb-title {
  max-width: 34ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
tr.clickable {
  cursor: pointer;
}
tr.clickable:hover td,
tr.clickable:focus-visible td {
  background: #f6f8f3;
}
.muted {
  color: var(--muted);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
}
.listing-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 20px;
  align-items: center;
}
.listing-head h2 {
  margin: 0 0 6px;
}
.listing-head p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.88rem;
}
.listing-head p a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: inherit;
}
.listing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.listing-facts {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 6px 22px;
  margin: 0;
}
.listing-facts dt {
  font-size: 0.76rem;
  color: var(--muted);
}
.listing-facts dd {
  margin: 2px 0 0;
  font-weight: 650;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}
.listing-charts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 1170px) {
  .listing-head {
    grid-template-columns: 1fr;
  }
  .listing-charts {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .listing-facts {
    grid-template-columns: repeat(2, auto);
  }
}
.stage-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.stage-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 6px 12px;
  background: #fbfcf9;
  color: #5f6553;
  font-size: 0.86rem;
  cursor: pointer;
}
.stage-tabs button span {
  font-size: 0.76rem;
  font-weight: 650;
  color: #767b6c;
  background: #edf1ea;
  border-radius: 99px;
  padding: 1px 7px;
}
.stage-tabs button.active {
  border-color: #8a9b67;
  background: #f3f6ed;
  color: #425123;
  font-weight: 650;
}
.stage-tabs button.active span {
  background: #e3ead4;
  color: #425123;
}
.badge.stage-to_ship {
  background: #fff1c7;
  color: #7a5a00;
}
.badge.stage-shipped {
  background: #e2ecf7;
  color: #2d5680;
}
.badge.stage-delivered,
.badge.stage-paid {
  background: #eef3e3;
  color: #4f6226;
}
.badge.stage-not_delivered,
.badge.stage-cancelled {
  background: #f6e3e1;
  color: #a33a2f;
}
.segmented {
  background: #f1f3ed;
  padding: 3px;
  border-radius: 9px;
  gap: 3px;
}
.segmented button {
  border-radius: 7px;
  padding: 8px 15px;
  color: #5f6553;
  font-size: 0.9rem;
}
.segmented .active {
  background: white;
  color: #425123;
  box-shadow: 0 1px 4px #333d1e24;
  font-weight: 650;
}
.filters,
.card > .search-input {
  margin-bottom: 17px;
}
.pager {
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
  font-size: 0.85rem;
}
.pager span:first-child {
  margin-right: auto;
  color: var(--muted);
}
.card .toolbar {
  margin-top: 14px;
}
.watch-select {
  margin: 13px 0;
}
.watch-select label {
  font-size: 0.86rem;
  color: var(--muted);
}
.watch-select .select-wrap {
  max-width: 100%;
}
.history-title {
  margin: 14px 0;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  color: #6f7561;
  padding: 6px;
  border-radius: 6px;
}
.icon-btn:hover {
  background: #f0f4ed;
}
.settings {
  max-width: 950px;
}
.setup-steps {
  padding-left: 23px;
  line-height: 1.55;
}
.setup-steps li {
  margin: 19px 0;
  padding-left: 4px;
}
.setup-steps li::marker {
  color: #687252;
  font-weight: bold;
}
.setup-steps p,
.confirm p {
  font-size: 0.94rem;
  color: #606654;
  margin: 4px 0 7px;
}
.url-box {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  background: #f2f4ef;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 10px;
}
.url-box code {
  overflow-wrap: anywhere;
  font-size: 0.83rem;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-grid label {
  font-size: 0.85rem;
  font-weight: 630;
}
.form-grid input {
  display: block;
  width: 100%;
  border: 1px solid #ccd0c5;
  border-radius: 7px;
  margin-top: 6px;
  padding: 10px 11px;
  font-size: 0.95rem;
}
.connected-line {
  padding: 8px 0 4px;
}
.confirm {
  margin: 15px 0;
}
@media (min-width: 1550px) {
  .shell {
    grid-template-columns: 246px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 22px;
    padding-right: 22px;
  }
}
@media (max-width: 1170px) {
  .shell {
    grid-template-columns: 197px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 12px;
    padding-right: 12px;
  }
  .brand {
    font-size: 1.05rem;
  }
  .metrics {
    gap: 9px;
  }
  .metric {
    padding: 14px;
  }
  .metric-top {
    gap: 7px;
    font-size: 0.81rem;
  }
  .card {
    padding: 18px;
  }
  .chart-grid {
    gap: 12px;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
  .rank-content > span {
    font-size: 0.79rem;
  }
  main,
  .topbar {
    padding-left: 23px;
    padding-right: 23px;
  }
}
@media (max-width: 960px) {
  .shell {
    grid-template-columns: 172px minmax(0, 1fr);
  }
  .brand {
    gap: 9px;
    font-size: 0.98rem;
  }
  .brand img {
    width: 76px;
    height: 76px;
  }
  .sidebar nav button {
    padding: 12px 9px;
    gap: 8px;
  }
  .chart-grid {
    grid-template-columns: 1fr;
  }
  .ranks {
    grid-template-columns: 1fr 1fr;
    gap: 18px 23px;
  }
  .metric-top {
    align-items: flex-start;
    flex-direction: column;
  }
  .metric > b {
    font-size: 1.37rem;
  }
  .top-left {
    gap: 7px;
  }
  .card {
    padding: 20px;
  }
}
@media (max-width: 720px) {
  .period-pop {
    left: 0;
    right: auto;
  }
  .shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    z-index: 8;
    left: 0;
    top: 0;
    width: 225px;
    transform: translateX(-101%);
    transition: transform 0.18s;
  }
  .sidebar.visible {
    transform: translateX(0);
  }
  .shade {
    position: fixed;
    display: block;
    background: #1a200c66;
    inset: 0;
    z-index: 7;
  }
  .burger.icon-btn {
    display: inline-grid;
  }
  .brand {
    font-size: 1.08rem;
    gap: 10px;
  }
  .brand img {
    width: 88px;
    height: 88px;
  }
  .top-left > svg,
  .top-left > span,
  .top-left > .crumb,
  .top-left > i {
    display: none;
  }
  .topbar {
    padding: 0 16px;
    min-height: 57px;
  }
  .top-actions {
    gap: 8px;
  }
  .top-link {
    font-size: 0.75rem;
    padding: 7px 8px;
    gap: 5px;
  }
  .source {
    font-size: 0.73rem;
    padding: 5px 8px;
  }
  .page-head {
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 17px;
  }
  .page-head h1 {
    font-size: 2.08rem;
  }
  .page-head p {
    font-size: 0.93rem;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .metric-top {
    flex-direction: row;
    align-items: center;
  }
  .metric > b {
    font-size: 1.65rem;
    margin: 12px 0 5px;
  }
  .metric small {
    font-size: 0.75rem;
  }
  .stack {
    gap: 14px;
  }
  main {
    padding: 22px 15px 36px;
  }
  .card {
    padding: 16px;
  }
  .ranks {
    grid-template-columns: 1fr;
  }
  .rank-content > span {
    font-size: 0.9rem;
  }
  .section-head h2 {
    font-size: 1.08rem;
  }
  .section-head p {
    font-size: 0.82rem;
  }
  .mini-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 9px;
  }
  .mini-row .spark {
    display: none;
  }
  .mini-title {
    grid-row: span 2;
  }
  .mini-title b {
    font-size: 0.85rem;
  }
  .mini-icon {
    display: none;
  }
  .mini-row .change {
    font-size: 0.72rem;
  }
  .section-head .button {
    font-size: 0.8rem;
    padding: 9px;
  }
  .summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .filters {
    flex-wrap: wrap;
  }
  .filters .search-input {
    flex-basis: 100%;
  }
  .under-chart {
    margin-top: 13px;
  }
  .plot > svg {
    min-height: unset;
  }
  .plot text {
    font-size: 15px;
  }
  .rank-card > .text-action {
    padding-top: 10px;
  }
  .watch-select .select-wrap {
    width: 100%;
  }
  .watch-select select {
    width: 100%;
  }
  .settings .setup-steps {
    padding-left: 18px;
  }
  .section-head {
    margin-bottom: 15px;
  }
  .result .text-action {
    white-space: nowrap;
  }
  .compare-tools {
    align-items: flex-start;
  }
  .under-chart {
    justify-content: space-between;
  }
  .sidebar nav button {
    font-size: 0.98rem;
    padding: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.saved-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 8px;
}
.saved-item {
  position: relative;
  display: flex;
}
.saved-item .saved-choice {
  flex: 1;
  padding-right: 40px;
}
.saved-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted, #757a6b);
  cursor: pointer;
}
.saved-remove:hover,
.saved-remove:focus-visible {
  background: #f6e3e1;
  color: #a33a2f;
}
.saved-choice {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  padding: 10px 12px;
  gap: 10px;
  background: #fbfcf9;
}
.saved-choice:hover,
.saved-choice.selected {
  border-color: #8a9b67;
  background: #f3f6ed;
}
.saved-choice b {
  font-size: 0.9rem;
}
.saved-choice small {
  margin-top: 3px;
}
.quote-date {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 15px;
}
.login-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 18px;
}
.login-card {
  width: min(100%, 400px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  padding: 30px;
}
.login-card h1 {
  font-size: 1.8rem;
  letter-spacing: -0.04em;
  margin: 15px 0 5px;
}
.login-card p {
  font-size: 0.93rem;
  color: var(--muted);
}
.login-card form {
  display: grid;
  gap: 15px;
  margin-top: 20px;
}
.login-card label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}
.login-card input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.login-card .button {
  margin-top: 4px;
}
