/* ============================================================
   Shopify Integration page — extras on top of styles.css
============================================================ */

:root {
  --shop: #008060;       /* official Shopify brand green */
  --shop-bright: #95BF47;
  --shop-tint: color-mix(in srgb, #008060 14%, transparent);
}

.nav-links a.active { color: var(--ink); font-weight: 500; }
.nav-links a.active::after {
  content: "";
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ink);
  margin-left: 6px;
  vertical-align: middle;
}

.hero-narrow .display { font-size: clamp(48px, 8vw, 104px); }

/* shopify kicker */
.kicker.shopify { background: var(--shop-tint); border-color: rgba(0,128,96,0.35); color: #5FC99B; }
.kicker.shopify .dot.shop { background: var(--shop); box-shadow: 0 0 0 3px rgba(0,128,96,0.22); }

.btn-shopify {
  background: var(--shop);
  color: #fff;
  border-color: var(--shop);
}
.btn-shopify:hover { background: #009970; transform: translateY(-1px); }
.btn-shopify .shop-mark { color: #fff; }
.btn-shopify.full { width: 100%; justify-content: center; margin-top: 12px; }

.shop-mark {
  display: inline-grid;
  place-items: center;
  width: 20px; height: 20px;
  border-radius: 5px;
  background: var(--shop-bright);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}
.shop-mark.sm { width: 18px; height: 18px; font-size: 11px; border-radius: 4px; }

/* ====================== SYNC DASHBOARD PEEK ====================== */
.shopify-peek .peek-frame { background: var(--bg-card); }
.sync-dash {
  padding: 22px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sd-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.sd-stat {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sd-label {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.sd-num {
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.025em;
  line-height: 1;
}
.sd-num .unit { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.sd-bar {
  height: 3px;
  background: rgba(var(--ink-rgb),0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}
.sd-bar > span {
  display: block;
  height: 100%;
  background: var(--shop);
}

.sd-chart {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  background: var(--bg-card);
}
.sd-chart-h {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--ink-mid);
  margin-bottom: 10px;
}
.sd-legend { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.sw { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 4px; vertical-align: middle; }
.sw.ok { background: var(--shop); }
.sw.fail { background: var(--err); }
.sd-svg { width: 100%; height: 80px; display: block; }
.sd-svg .bars rect { fill: var(--shop); }
.sd-svg .fail-marks rect { fill: var(--err); }

.sd-jobs {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.sd-job-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.link-arrow { font-family: var(--f-sans); text-transform: none; letter-spacing: 0; color: var(--ink-mid); font-size: 12px; }
.sd-job-row {
  display: grid;
  grid-template-columns: 1.3fr auto 1.4fr 1fr;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.sd-job-row:last-child { border-bottom: none; }
.sd-type { font-weight: 500; }
.sd-items { color: var(--ink-mid); }
.sd-time { color: var(--muted); text-align: right; }

@media (max-width: 720px) {
  .sd-stats { grid-template-columns: repeat(2, 1fr); }
  .sd-job-row { grid-template-columns: 1.4fr auto; }
  .sd-job-row .sd-items, .sd-job-row .sd-time { display: none; }
}

/* ====================== CONNECT STEPS ====================== */
.section-head.center-head { margin-left: auto; margin-right: auto; text-align: center; max-width: 720px; }

.connect-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}
@media (max-width: 920px){ .connect-steps { grid-template-columns: 1fr; } }
.cstep {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 28px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.cstep-num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 14px;
}
.cstep h4 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.022em;
  margin: 0 0 10px;
}
.cstep p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0 0 22px;
  flex: 1;
}
.cstep-mock {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}
.oauth-card { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.oauth-h {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.oauth-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-mid);
  padding: 3px 0;
}
.hook-card { display: flex; flex-direction: column; gap: 0; font-size: 13px; }
.hook-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-mid);
}
.hook-row:last-child { border-bottom: none; }
.hook-row.ok .mono { color: var(--ink); font-size: 12px; }

.map-card { display: flex; flex-direction: column; gap: 0; font-size: 13px; }
.map-row {
  display: grid;
  grid-template-columns: 60px 30px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.map-row .arr { color: var(--muted); }
.map-foot {
  padding-top: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
}

/* ====================== FIVE TABS FEATURE ====================== */
.tabs-feature {
  padding: 0;
  overflow: hidden;
}
.tabs-strip {
  display: flex;
  gap: 4px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  overflow-x: auto;
}
.tabbtn {
  background: transparent;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  letter-spacing: -0.005em;
  transition: background .15s ease, color .15s ease;
}
.tabbtn:hover { color: var(--ink); }
.tabbtn.active {
  background: var(--ink);
  color: var(--bg);
  font-weight: 500;
}

.tabpane { display: none; padding: 32px 36px 32px; }
.tabpane.active { display: block; }
.pane-head { margin-bottom: 22px; max-width: 720px; }
.pane-head h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.pane-head p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
  line-height: 1.5;
}
.pane-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* mapping table */
.map-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.map-table th {
  text-align: left;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 500;
  padding: 0 14px 12px;
  border-bottom: 1px solid var(--line);
}
.map-table td {
  padding: 14px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.map-table tr:last-child td { border-bottom: none; }
.map-table td.arr { color: var(--muted); padding: 14px 0; }
.map-table td.mono { font-size: 12.5px; }
.map-table.compact td { padding: 10px 14px; }

.lt-pill {
  font-family: var(--f-mono);
  font-size: 11px;
  background: var(--ink);
  color: var(--bg);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.pill-tech {
  font-family: var(--f-mono);
  font-size: 11px;
  background: rgba(var(--ink-rgb),0.07);
  color: var(--ink-mid);
  padding: 3px 8px;
  border-radius: 5px;
  letter-spacing: 0.02em;
  margin-right: 6px;
}
.pill-tech.meta { background: rgba(0,128,96,0.18); color: #5FC99B; }
.pill-tech.mobj { background: rgba(149,191,72,0.18); color: #B2D470; }
.pill-tech.custom { background: rgba(149,191,72,0.18); color: #B2D470; }

/* toggle */
.tog {
  display: inline-flex;
  align-items: center;
  width: 30px; height: 18px;
  background: rgba(var(--ink-rgb),0.18);
  border-radius: 999px;
  padding: 2px;
  cursor: default;
  transition: background .2s ease;
}
.tog i {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg-card);
  transition: transform .2s ease;
}
.tog.on { background: var(--shop); }
.tog.on i { transform: translateX(12px); }

/* collections */
.coll-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 920px){ .coll-grid { grid-template-columns: 1fr; } }
.coll-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.coll-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.coll-h b { font-size: 15px; font-weight: 600; letter-spacing: -0.015em; }
.coll-meta {
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
}
.coll-rule {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12.5px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rule-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}
.coll-rule.manual { color: var(--muted); font-family: var(--f-mono); font-size: 11.5px; }
.coll-foot { color: var(--muted); }

/* webhooks toggles row */
.wh-toggles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
@media (max-width: 720px){ .wh-toggles { grid-template-columns: 1fr; } }
.wh-tog {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.wh-tog b { display: block; font-weight: 600; font-size: 14px; letter-spacing: -0.01em; }
.wh-tog .muted { font-size: 12.5px; }

/* general grid */
.gen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 720px){ .gen-grid { grid-template-columns: 1fr 1fr; } }
.gen-card {
  padding: 16px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gen-label {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.gen-val {
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.018em;
}

/* ====================== METAFIELDS ====================== */
.mf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 920px){ .mf-grid { grid-template-columns: 1fr; } }
.mf-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  padding: 26px 26px 24px;
}
.mf-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
}
.mf-key {
  font-size: 17px;
  color: #fff;
  margin-bottom: 12px;
  word-break: break-all;
}
.mf-type {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-light);
}
.mf-type-pill {
  font-family: var(--f-mono);
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(110,210,122,0.10);
  color: #6ED27A;
}
.mf-render { display: flex; flex-direction: column; gap: 14px; }
.mf-rh {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 4px;
}
.mf-rv { font-size: 14.5px; color: rgba(255,255,255,0.85); line-height: 1.45; }
.mf-rv.mono { font-size: 16px; color: #fff; }
.mf-rv.small { font-size: 13px; }
.mf-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.mobj {
  font-family: var(--f-mono);
  font-size: 11.5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(149,191,72,0.16);
  color: #B2D470;
}
.mf-list { display: flex; flex-direction: column; gap: 7px; }
.mf-list > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  padding-bottom: 5px;
  border-bottom: 1px dashed var(--line-light);
}
.mf-list > div:last-child { border-bottom: none; }

/* ====================== FLOW (IN/OUT) ====================== */
.flow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  position: relative;
}
@media (max-width: 860px){ .flow-grid { grid-template-columns: 1fr; } }
.flow-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 32px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.flow-card.out { border-left: 3px solid var(--shop); }
.flow-card.in  { border-left: 3px solid var(--ink); }

/* card boot-in */
.flow-card {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1);
}
[data-flow-anim].is-in .flow-card { opacity: 1; transform: translateY(0); }
[data-flow-anim].is-in .flow-card.out { transition-delay: .05s; }
[data-flow-anim].is-in .flow-card.in  { transition-delay: .15s; }

/* scan line that sweeps across each card once on reveal */
.flow-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg,
    transparent 0%, transparent 38%,
    rgba(var(--ink-rgb), .045) 50%,
    transparent 62%, transparent 100%);
  transform: translateX(-110%);
  transition: none;
}
[data-flow-anim].is-in .flow-card::after {
  transition: transform 1.6s cubic-bezier(.2,.7,.3,1);
  transform: translateX(110%);
}
[data-flow-anim].is-in .flow-card.in::after { transition-delay: .25s; }

.flow-tag {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  position: relative;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .55s ease, transform .55s ease;
  transition-delay: .25s;
}
[data-flow-anim].is-in .flow-tag { opacity: 1; transform: translateY(0); }
.flow-card.out .flow-tag { color: #5FC99B; }

/* subtle "drawing" of the underline beneath the tag */
.flow-tag::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: currentColor;
  opacity: .35;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.1s cubic-bezier(.2,.7,.3,1);
  transition-delay: .4s;
}
[data-flow-anim].is-in .flow-tag::before { transform: scaleX(1); }
.flow-card.in .flow-tag::before { transform-origin: right center; }

.flow-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.flow-list li {
  padding: 11px 0 11px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--ink-mid);
  line-height: 1.45;
  position: relative;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .55s ease, transform .55s ease;
  transition-delay: calc(.45s + var(--i, 0) * 70ms);
}
.flow-card.in .flow-list li {
  transition-delay: calc(.55s + var(--i, 0) * 70ms);
}
[data-flow-anim].is-in .flow-list li { opacity: 1; transform: translateY(0); }
.flow-list li:last-child { border-bottom: none; }
.flow-list b {
  font-weight: 600;
  color: var(--ink);
  margin-right: 6px;
}
/* row dot — pulses once when revealed */
.flow-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px; height: 5px;
  border-radius: 99px;
  background: currentColor;
  opacity: .35;
  transform: translateY(-50%) scale(0);
  transition: transform .5s cubic-bezier(.2,.7,.3,1), opacity .5s ease, box-shadow .5s ease;
  transition-delay: calc(.55s + var(--i, 0) * 70ms);
}
.flow-card.out .flow-list li::before { color: var(--shop); }
.flow-card.in  .flow-list li::before { color: var(--ink); }
[data-flow-anim].is-in .flow-list li::before {
  transform: translateY(-50%) scale(1);
  opacity: 1;
  box-shadow: 0 0 0 4px rgba(var(--ink-rgb), .06);
}

/* center connector — glowing data packets flowing both ways between the cards */
.flow-connector {
  position: absolute;
  top: 26px; bottom: 26px;
  left: 50%;
  width: 40px;
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .8s ease;
  transition-delay: .35s;
  z-index: 1;
}
[data-flow-anim].is-in .flow-connector { opacity: 1; }
@media (max-width: 860px){ .flow-connector { display: none; } }

.fc-beam {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 1.5px;
  margin-left: -0.75px;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(var(--ink-rgb), .12) 15%,
    rgba(var(--ink-rgb), .12) 85%,
    transparent 100%);
}
.fc-packet {
  position: absolute;
  left: 50%;
  width: 9px; height: 9px;
  margin-left: -4.5px;
  border-radius: 50%;
  opacity: 0;
  will-change: top, opacity, transform;
}
[data-flow-anim].is-in .fc-out {
  background: var(--shop);
  box-shadow: 0 0 0 3px rgba(95, 201, 155, .15), 0 0 14px 2px rgba(95, 201, 155, .55);
  animation: fcDown 3.4s cubic-bezier(.45, 0, .55, 1) infinite;
}
[data-flow-anim].is-in .fc-in {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 61, 124, .15), 0 0 14px 2px rgba(201, 61, 124, .55);
  animation: fcUp 3.4s cubic-bezier(.45, 0, .55, 1) infinite;
}
.fc-out.fc-d2 { animation-delay: 1.13s; }
.fc-out.fc-d3 { animation-delay: 2.26s; }
.fc-in.fc-d2  { animation-delay: 0.57s; }
.fc-in.fc-d3  { animation-delay: 1.70s; }

@keyframes fcDown {
  0%   { opacity: 0; top: 0;                 transform: scale(.5); }
  12%  { opacity: 1; top: 10%;               transform: scale(1); }
  88%  { opacity: 1; top: calc(100% - 14px); transform: scale(1); }
  100% { opacity: 0; top: 100%;              transform: scale(.5); }
}
@keyframes fcUp {
  0%   { opacity: 0; top: calc(100% - 9px);  transform: scale(.5); }
  12%  { opacity: 1; top: calc(100% - 14px); transform: scale(1); }
  88%  { opacity: 1; top: 10%;               transform: scale(1); }
  100% { opacity: 0; top: 0;                 transform: scale(.5); }
}

@media (prefers-reduced-motion: reduce) {
  .flow-card,
  .flow-card::after,
  .flow-tag,
  .flow-tag::before,
  .flow-list li,
  .flow-list li::before,
  .flow-connector { opacity: 1; transform: none; transition: none; }
  .fc-packet { animation: none !important; opacity: 0; }
}

/* ====================== HEALTH ====================== */
.health-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 920px){ .health-grid { grid-template-columns: 1fr; } }
.health-card {
  padding: 26px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hc-label {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.hc-num {
  font-weight: 500;
  font-size: 36px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.hc-num.small { font-size: 17px; letter-spacing: -0.018em; }
.hc-num .unit { font-size: 12px; color: var(--muted); margin-left: 5px; letter-spacing: 0; }
.hc-bar {
  height: 6px;
  background: rgba(var(--ink-rgb),0.08);
  border-radius: 3px;
  overflow: hidden;
}
.hc-bar > span {
  display: block; height: 100%;
  background: var(--shop);
  border-radius: 3px;
}
.hc-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--muted);
}
.err-list { display: flex; flex-direction: column; gap: 6px; }
.err-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
}
.err-code { color: var(--err); font-size: 11.5px; }
.err-c { color: var(--muted); font-family: var(--f-mono); }
.hc-foot { font-size: 13px; line-height: 1.45; margin-top: auto; }
.rb-actions { display: flex; gap: 8px; margin-top: auto; }

/* ====================== MULTI STORE ====================== */
.ms-list {
  padding: 0;
  overflow: hidden;
}
.ms-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.ms-row:last-child { border-bottom: none; }
.ms-row.ghost { background: var(--bg-soft); color: var(--muted); }
.ms-meta { display: flex; flex-direction: column; gap: 2px; }
.ms-meta b { font-family: var(--f-mono); font-size: 13.5px; font-weight: 500; }
.ms-meta .muted { font-size: 12px; }

/* compare-table reused from brands.css if loaded — define minimal here so it works standalone */
.compare-table { padding: 0; overflow: hidden; }
.cmp-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.cmp-row:last-child { border-bottom: none; }
.cmp-row > span { display: inline-flex; align-items: center; gap: 8px; }
.cmp-row .hl {
  background: rgba(0,128,96,0.14);
  margin: -16px 0;
  padding: 16px 14px;
  font-weight: 500;
}
.cmp-row.cmp-head {
  background: var(--bg-soft);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 24px;
}
.cmp-row.cmp-head .hl {
  background: var(--shop);
  color: #fff;
  margin: -14px 0;
  padding: 14px 14px;
}
.cmp-row .dim { color: var(--muted-2); }
.cmp-row .dim.partial { color: var(--warn); }
.cmp-row .dt { width: 9px; height: 9px; }
.foot-cols a.on { color: #fff; }

@media (max-width: 720px){
  .cmp-row { grid-template-columns: 1.4fr 1fr 1fr 1fr; padding: 12px 14px; font-size: 12.5px; }
  .cmp-row.cmp-head { padding: 12px 14px; }
  .cmp-row .hl { padding: 12px 8px; margin: -12px 0; }
}

/* ── White mode (html[data-theme="light"]) overrides ── */
html[data-theme="light"] {
  --shop-tint: #E6F2EC;
}
html[data-theme="light"] .kicker.shopify {
  border-color: rgba(0,128,96,0.20);
  color: #1A4030;
}
html[data-theme="light"] .btn-shopify:hover { background: #006e52; }
html[data-theme="light"] .pill-tech.meta { background: rgba(0,128,96,0.10); color: var(--shop); }
html[data-theme="light"] .pill-tech.mobj,
html[data-theme="light"] .pill-tech.custom { color: #4F6F22; }
html[data-theme="light"] .flow-card.out .flow-tag { color: var(--shop); }
html[data-theme="light"] .cmp-row:not(.cmp-head) .hl { background: rgba(0,128,96,0.06); }
