@font-face {
  font-family: Inter;
  src: url("./InterVariable-v4.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --tc-bg: #f1f1f1;
  --tc-surface: #fff;
  --tc-subdued: #f7f7f7;
  --tc-border: #e3e3e3;
  --tc-border-strong: #b5b5b5;
  --tc-text: #303030;
  --tc-muted: #616161;
  --tc-header: #1a1a1a;
  --tc-focus: #005bd3;
  --tc-success-bg: #e3f1df;
  --tc-success-text: #0c5132;
  --tc-warning-bg: #fff5cc;
  --tc-warning-text: #5e4200;
  --tc-progress-bg: #ffead6;
  --tc-progress-text: #8a3100;
  --tc-critical-bg: #fff0f0;
  --tc-critical-text: #8e1f0b;
  background: var(--tc-bg);
  color: var(--tc-text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
  font-synthesis: none;
  line-height: 1.45;
}
* {
  box-sizing: border-box;
}
body {
  min-width: 320px;
  margin: 0;
  background: var(--tc-bg);
}
[hidden] {
  display: none !important;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 2px;
}
:focus-visible {
  outline: 2px solid var(--tc-focus);
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: .55;
}
a {
  color: #005bd3;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  margin-bottom: 8px;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -.02em;
}
h2 {
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.35;
}
h3 {
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 1.4;
}
small {
  color: var(--tc-muted);
  font-size: 12px;
}
.muted {
  color: var(--tc-muted);
  font-size: 13px;
}
.skip-link {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  padding: 8px 12px;
  border: 2px solid var(--tc-focus);
  border-radius: 4px;
  background: #fff;
  color: var(--tc-text);
}
.skip-link:focus {
  transform: translateY(0);
}
.shell {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  grid-template-rows: 48px minmax(0, 1fr);
  min-height: 100vh;
}
.topbar {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: 0 20px;
  background: var(--tc-header);
  color: #f1f1f1;
  font-size: 12px;
}
.topbar .brand {
  margin: 0;
  color: #fff;
}
.topbar .brand-mark {
  background: #fff;
  color: var(--tc-header);
}
.owner {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.avatar {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #616161;
  color: #fff;
  font-size: 12px;
  font-weight: 650;
}
.sidebar {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px 8px;
  background: #f6f6f7;
  border-right: 1px solid var(--tc-border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 8px 24px;
  color: var(--tc-text);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 6px;
  background: var(--tc-header);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.nav {
  display: grid;
  gap: 2px;
}
.nav button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--tc-text);
  font-size: 13px;
  text-align: left;
}
.nav-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}
.nav button.active {
  background: #e3e3e3;
  font-weight: 650;
}
.nav button:not(:disabled):hover {
  background: #ebebeb;
}
.nav span {
  margin-left: auto;
  color: var(--tc-muted);
  font-size: 12px;
}
.sidebar-footer {
  margin-top: auto;
  padding: 24px 10px 0;
  color: var(--tc-muted);
  font-size: 12px;
}
.sidebar-buyer-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
}
.logout {
  margin-top: 12px;
  padding: 6px 10px;
  border: 1px solid var(--tc-border-strong);
  border-radius: 6px;
  background: var(--tc-surface);
  color: var(--tc-text);
  font-size: 13px;
}
.logout:hover {
  background: var(--tc-subdued);
}
.workspace {
  min-width: 0;
  width: 100%;
  max-width: 1440px;
  padding: 28px 32px 48px;
}
.page-heading {
  max-width: 760px;
  margin-bottom: 24px;
}
.page-heading p {
  margin-bottom: 0;
  color: var(--tc-muted);
  font-size: 13px;
}
.eyebrow {
  margin-bottom: 6px;
  color: var(--tc-muted);
  font-size: 12px;
  font-weight: 600;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.stat,
.panel,
.version {
  border: 1px solid var(--tc-border);
  border-radius: 8px;
  background: var(--tc-surface);
  box-shadow: 0 1px 0 #0000000d;
}
.stat {
  padding: 16px;
}
.stat strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
  line-height: 1.2;
}
.stat span {
  color: var(--tc-muted);
  font-size: 12px;
}
.panel {
  margin-bottom: 16px;
  padding: 20px;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.panel-header h2 {
  margin: 0;
}
.hint {
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid var(--tc-border);
  border-radius: 6px;
  background: var(--tc-subdued);
  color: var(--tc-muted);
  font-size: 13px;
}
.grid-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.grid-form .full {
  grid-column: 1 / -1;
}
label {
  display: grid;
  gap: 4px;
  color: var(--tc-text);
  font-size: 13px;
  font-weight: 400;
}
input,
select,
textarea {
  width: 100%;
  min-height: 36px;
  padding: 7px 8px;
  border: 1px solid var(--tc-border-strong);
  border-radius: 6px;
  background: var(--tc-surface);
  color: var(--tc-text);
  font-size: 13px;
}
input[type=file] {
  border-style: dashed;
  background: var(--tc-subdued);
  padding: 12px;
}
input[type=checkbox] {
  width: 16px;
  min-height: 16px;
  height: 16px;
  accent-color: #303030;
}
textarea {
  min-height: 88px;
  resize: vertical;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid #303030;
  border-radius: 6px;
  background: #303030;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.button:hover:not(:disabled) {
  background: #1a1a1a;
}
.button.secondary {
  border-color: var(--tc-border-strong);
  background: #fff;
  color: var(--tc-text);
}
.button.danger {
  border-color: #d72c0d;
  background: #fff;
  color: #b42318;
}
.button.secondary:hover:not(:disabled),
.button.danger:hover:not(:disabled) {
  background: var(--tc-subdued);
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.versions {
  display: grid;
  gap: 12px;
}
.version {
  padding: 16px;
}
.version-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.version-head h3,
.version-head p {
  margin-bottom: 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e3e3e3;
  color: #303030;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.badge.ready,
.badge.active {
  background: var(--tc-success-bg);
  color: var(--tc-success-text);
}
.badge.failed,
.badge.revoked {
  background: var(--tc-critical-bg);
  color: var(--tc-critical-text);
}
.badge.queued {
  background: var(--tc-warning-bg);
  color: var(--tc-warning-text);
}
.badge.running,
.badge.processing {
  background: var(--tc-progress-bg);
  color: var(--tc-progress-text);
}
.asset {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--tc-border);
  font-family: ui-monospace, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.asset small {
  margin-left: auto;
  white-space: nowrap;
}
.empty {
  padding: 24px;
  border: 1px dashed var(--tc-border-strong);
  border-radius: 6px;
  color: var(--tc-muted);
  font-size: 13px;
  text-align: center;
}
.empty strong {
  display: block;
  margin-bottom: 4px;
  color: var(--tc-text);
  font-size: 14px;
}
.table-wrap {
  max-width: 100%;
  overflow-x: auto;
}
table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 13px;
}
th {
  padding: 8px 12px;
  border-bottom: 1px solid var(--tc-border);
  color: var(--tc-muted);
  font-size: 12px;
  text-align: left;
}
td {
  padding: 12px;
  border-bottom: 1px solid var(--tc-border);
  vertical-align: top;
}
tr:last-child td {
  border-bottom: 0;
}
td small {
  display: block;
  margin-top: 3px;
}
.inline-form {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0;
}
.inline-form input,
.inline-form select {
  min-height: 32px;
  padding: 5px 7px;
  font-size: 13px;
}
.inline-form .button {
  min-height: 32px;
  padding: 5px 9px;
  white-space: nowrap;
}
.error-text {
  margin: 10px 0;
  color: var(--tc-critical-text);
  font-size: 13px;
}
.shopify-guide h1 {
  font-size: 22px;
}
.shopify-shop {
  margin-bottom: 0;
}
.shopify-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0 16px;
}
.shopify-status div,
.shopify-variant {
  padding: 10px;
  border: 1px solid var(--tc-border);
  border-radius: 6px;
  background: var(--tc-subdued);
}
.shopify-status strong,
.shopify-status span,
.shopify-variant small {
  display: block;
}
.shopify-status span,
.shopify-variant small {
  margin-top: 2px;
  color: var(--tc-muted);
  font-size: 12px;
}
.shopify-variants {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.shopify-variant {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 190px) auto;
  gap: 8px;
  align-items: center;
}
.shopify-variant .button {
  white-space: nowrap;
}
.shopify-subheading {
  margin: 24px 0 8px;
}
.shopify-keys {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--tc-border);
}
.shopify-keys summary {
  color: #005bd3;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background: var(--tc-bg);
}
.login-card {
  width: 100%;
  max-width: 420px;
  padding: 28px;
  border: 1px solid var(--tc-border);
  border-radius: 8px;
  background: var(--tc-surface);
  box-shadow: 0 2px 8px #00000014;
}
.login-card .brand {
  margin: 0 0 28px;
}
.login-card h1 {
  font-size: 22px;
}
.login-card p {
  color: var(--tc-muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.login-card .button {
  width: 100%;
}
.login-form {
  display: grid;
  gap: 14px;
  margin: 20px 0 14px;
}
.login-code-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.login-code-actions .button {
  flex: 1 1 140px;
  width: auto;
}
.login-card small {
  display: block;
  margin-top: 16px;
}
.loading {
  padding: 48px;
  color: var(--tc-muted);
}
#notice {
  position: fixed;
  z-index: 10;
  right: 20px;
  bottom: 20px;
  max-width: min(440px, calc(100vw - 32px));
  padding: 12px 16px;
  border: 1px solid #8ccfa4;
  border-radius: 6px;
  background: var(--tc-success-bg);
  color: var(--tc-success-text);
  box-shadow: 0 4px 16px #0000001f;
  font-size: 13px;
}
#notice[data-error=true] {
  border-color: #f0a9a1;
  background: var(--tc-critical-bg);
  color: var(--tc-critical-text);
}
@media (max-width: 860px) {
  .shell {
    grid-template-columns: 188px minmax(0, 1fr);
  }
  .workspace {
    padding: 24px 20px 36px;
  }
}
@media (max-width: 680px) {
  .shell {
    display: block;
  }
  .topbar {
    min-height: 48px;
    padding: 0 16px;
  }
  .sidebar {
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--tc-border);
  }
  .nav {
    display: flex;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .nav button {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
  }
  .sidebar-footer {
    display: block;
    margin-top: 12px;
    padding: 12px 6px 0;
    border-top: 1px solid var(--tc-border);
  }
  .workspace {
    padding: 24px 16px 28px;
  }
  .stats,
  .grid-form,
  .shopify-status,
  .shopify-variant {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 16px;
  }
  .form-actions,
  .inline-form {
    align-items: stretch;
    flex-direction: column;
  }
  .inline-form .button {
    width: 100%;
  }
  .asset small {
    display: none;
  }
  #notice {
    right: 16px;
    bottom: 16px;
  }
}
