body,button,input,select,textarea{font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif}





:root {
  --bg: #f1f1f1;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --text: #303030;
  --muted: #616161;
  --faint: #8a8a8a;
  --line: #e3e3e3;
  --line-strong: #c9cccf;
  --fill: #f7f7f7;
  --fill-hover: #f0f0f0;
  --nav: #ebebeb;
  --primary: #1a1a1a;
  --primary-hover: #2c2c2c;
  --on-primary: #ffffff;
  --success-bg: #cdfee1;
  --success-ink: #0c5132;
  --warn-bg: #fff5d5;
  --warn-ink: #4f4700;
  --critical: #8e1f0b;
  --critical-bg: #fed9d5;
  --purple: #5c4e8e;
  --purple-bg: #f1eeff;
  --accent: #8c6ff0;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 0 rgba(26, 26, 26, 0.05);
  --topbar: 56px;
  --sidenav: 220px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 13px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

/* —— Shopify admin chrome —— */
.shopify-top {
  height: var(--topbar);
  background: #1a1a1a;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.shopify-mark {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
  min-width: 120px;
}
.shopify-mark svg { display: block; }
.search {
  flex: 1;
  max-width: 480px;
  height: 32px;
  background: #303030;
  border: 1px solid #3f3f3f;
  border-radius: 8px;
  color: #b5b5b5;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  font-size: 13px;
}
.search svg { opacity: 0.7; }
.top-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.store-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #303030;
  border-radius: 8px;
  padding: 4px 10px 4px 4px;
  color: #fff;
}
.store-dot {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #3d4a38;
  color: #f4efe6;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
}
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #5c4e8e;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 11px;
}

.shell {
  display: flex;
  align-items: stretch;
}
.sidenav {
  width: var(--sidenav);
  background: var(--nav);
  padding: 16px 12px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid var(--line);
}
.app-wordmark {
  font-weight: 650;
  font-size: 14px;
  letter-spacing: -0.03em;
  color: var(--ink);
  padding: 8px 10px 14px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 550;
  font-size: 13px;
}
.nav-item svg { opacity: 0.85; flex-shrink: 0; }
.nav-item:hover { background: rgba(255,255,255,0.55); }
.nav-item.active {
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-weight: 600;
}
.nav-spacer { flex: 1; }
.nav-help {
  font-size: 12px;
  color: var(--muted);
  padding: 12px 10px 0;
  line-height: 1.4;
}
.nav-help a { color: var(--ink); }

.app {
  flex: 1;
  padding: 20px 24px 40px;
  max-width: 1080px;
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.page-head h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.page-head .sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  font: 550 13px/1 Inter, sans-serif;
  cursor: default;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-plain {
  background: transparent;
  color: var(--ink);
  height: auto;
  padding: 0;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 550;
}
.btn-danger {
  background: var(--surface);
  color: var(--critical);
  border-color: #e0b3ad;
}
.btn[disabled], .btn.is-disabled {
  opacity: 0.45;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}
.card-pad { padding: 16px 16px 18px; }
.card h2 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.helper {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 0;
}
.card-head + .card-pad { padding-top: 12px; }

.row { display: flex; align-items: center; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 12px; }

/* Toggle */
.toggle {
  width: 32px;
  height: 20px;
  border-radius: 10px;
  background: #b5b5b5;
  position: relative;
  flex-shrink: 0;
}
.toggle.on { background: var(--ink); }
.toggle i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.toggle.on i { left: 14px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  background: var(--fill);
  color: var(--text);
}
.pill-on { background: var(--success-bg); color: var(--success-ink); }
.pill-lock { background: var(--fill); color: var(--muted); }
.pill-pack { background: var(--purple-bg); color: var(--purple); }
.pill-cancel { background: var(--critical-bg); color: var(--critical); }
.pill-you { background: var(--ink); color: #fff; }
.pill-year { background: var(--purple-bg); color: var(--purple); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px 16px;
  box-shadow: var(--shadow);
}
.stat .num {
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1.1;
}
.stat .lbl {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.meter {
  height: 8px;
  background: #e4e4e4;
  border-radius: 99px;
  overflow: hidden;
  margin: 8px 0;
}
.meter > span {
  display: block;
  height: 100%;
  background: var(--ink);
  border-radius: 99px;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.data th {
  text-align: left;
  font-weight: 550;
  color: var(--muted);
  font-size: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
table.data td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  color: var(--text);
}
table.data tr:last-child td { border-bottom: 0; }
table.data .order {
  font-weight: 650;
  color: var(--ink);
}
table.data .muted { color: var(--muted); font-size: 12px; }
.time-left {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--ink);
}
.actions { display: flex; gap: 8px; align-items: center; }
.actions a, .link {
  color: var(--ink);
  font-weight: 550;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.activity { list-style: none; margin: 0; padding: 0; }
.activity li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.activity li:last-child { border-bottom: 0; }
.activity .when { color: var(--muted); font-size: 12px; white-space: nowrap; }

.field { display: flex; flex-direction: column; gap: 4px; }
.field label {
  font-size: 13px;
  font-weight: 550;
  color: var(--ink);
}
.field .hint { font-size: 12px; color: var(--muted); }
.input, select.input, textarea.input {
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 10px;
  font: 400 13px/1 Inter, sans-serif;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
textarea.input { height: auto; padding: 8px 10px; resize: none; line-height: 1.4; }
.swatch-row { display: flex; align-items: center; gap: 8px; }
.swatch {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.logo-ph {
  width: 72px;
  height: 72px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: #f4efe6;
  display: grid;
  place-items: center;
  color: #3d4a38;
}

.preview-phone {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 16px;
  max-width: 280px;
}
.preview-phone .store {
  font-weight: 650;
  letter-spacing: -0.03em;
  font-size: 15px;
  color: #1a1714;
}
.preview-phone .tiny { color: var(--muted); font-size: 12px; margin-top: 2px; }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.plan-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  box-shadow: var(--shadow);
}
.plan-card .btn,
.plan-card .stay,
.plan-card .cap,
.plan-card .alt,
.plan-card .price,
.plan-card h3 { align-self: stretch; }
.plan-card.current {
  border: 2px solid var(--ink);
  padding: 15px;
}
.plan-card h3 {
  margin: 4px 0 0;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.plan-card .price {
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 8px 0 0;
}
.plan-card .price small {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.plan-card .alt { color: var(--muted); font-size: 12px; margin: 0; }
.plan-card .cap { margin: 8px 0 12px; font-size: 13px; }
.plan-card .btn { margin-top: auto; width: 100%; }
.plan-card .stay { margin-top: auto; color: var(--muted); font-size: 12px; }

.seg {
  display: inline-flex;
  background: var(--fill);
  border-radius: 8px;
  padding: 2px;
  border: 1px solid var(--line);
}
.seg span {
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 550;
  font-size: 13px;
  color: var(--muted);
}
.seg span.on {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.fine {
  color: var(--muted);
  font-size: 12px;
  margin: 8px 0 0;
  max-width: 52rem;
}

.usage-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.usage-line strong { font-size: 16px; letter-spacing: -0.02em; color: var(--ink); }

.footer-help {
  margin-top: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.footer-help a { color: var(--muted); }

.split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
}
.color-chip {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #3d4a38;
  border: 1px solid #2a3327;
  display: inline-block;
  vertical-align: middle;
}

.invoice-thumb {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  font-size: 11px;
  color: #303030;
}
.invoice-thumb .bar {
  height: 36px;
  background: #3d4a38;
  color: #f4efe6;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.invoice-thumb .body { padding: 10px; }
.invoice-thumb .muted { color: #6d7175; }
.invoice-thumb table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.invoice-thumb td { padding: 3px 0; }
.invoice-thumb .prices td:last-child, .invoice-thumb .right { text-align: right; }
.slip .prices { display: none; }
.slip .bar { background: #f4efe6; color: #3d4a38; border-bottom: 1px solid var(--line); }

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0c5132;
  box-shadow: 0 0 0 3px #cdfee1;
}

@media (max-width: 900px) {
  .stats, .plan-grid, .grid-2, .grid-3, .split { grid-template-columns: 1fr; }
  .sidenav { width: 180px; }
}
