:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", sans-serif;
  color: #19312a;
  background: #f2f3ec;
  --ink: #19312a;
  --muted: #52635b;
  --line: #dbe3d9;
  --paper: #fcfdf9;
  --green: #1f6049;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: #144635; }
:focus-visible { outline: 3px solid #39896b; outline-offset: 3px; }

.masthead {
  background: #142c25;
  color: #fbfcf4;
}

.masthead-inner {
  max-width: 1160px;
  min-height: 70px;
  margin: auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 13px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.03em;
  text-decoration: none;
}

.brand, .brand:hover { color: inherit; }

.brand-mark {
  width: 19px;
  height: 19px;
  border: 2px solid #bbdfb0;
  border-radius: 4px;
  box-shadow: inset 0 0 0 3px #142c25, inset 0 0 0 8px #bbdfb0;
  transform: rotate(-12deg);
}

.mode {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d4e2d6;
  font-size: .82rem;
}

.mode span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #bbdfb0;
}

.workspace { max-width: 1160px; margin: auto; padding: 55px 28px 48px; }
.intro { margin-bottom: 28px; }
h1, h2, h3, p { margin: 0; }

h1 {
  font-size: clamp(2rem, 5vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: -.06em;
  font-weight: 750;
}

.intro p { margin-top: 12px; color: var(--muted); line-height: 1.55; }
.setup { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; }

.card {
  min-width: 0;
  padding: 23px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 2px 4px #142c2506;
}

.product-logo {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.product-logo img {
  display: block;
  width: 76px;
  height: 76px;
  margin-bottom: 10px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 21px;
}

h2 { font-size: 1.14rem; line-height: 1.25; letter-spacing: -.025em; }
h3 { font-size: .98rem; line-height: 1.35; overflow-wrap: anywhere; }

.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 6px;
  padding: 5px 9px;
  background: #edf1e9;
  color: #415748;
  font-size: .76rem;
  font-weight: 650;
}

label { display: block; margin-bottom: 6px; font-size: .87rem; font-weight: 650; }

input, textarea, select {
  display: block;
  width: 100%;
  margin-bottom: 15px;
  padding: 10px 12px;
  border: 1px solid #cbd7cb;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: .95rem;
  line-height: 1.4;
}

input::placeholder, textarea::placeholder { color: #626f66; }
textarea { resize: vertical; }

button {
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-size: .85rem;
  font-weight: 680;
  cursor: pointer;
}

button:hover:not(:disabled) { background: #174b39; }
button:disabled { background: #ebefe8; color: #5c6e62; cursor: default; }
.secondary { border-color: #bccdc0; background: #f7faf4; color: var(--green); }
.secondary:hover:not(:disabled) { background: #e8f0e6; }

.directory { align-self: start; }
.job-identity p { color: var(--muted); font-size: .84rem; margin-top: 4px; }

.directory-choice {
  display: flex;
  align-items: start;
  gap: 10px;
  padding: 12px;
  margin-bottom: 8px;
  background: #f0f4ec;
  border-radius: 8px;
  cursor: pointer;
}
.directory-choice input { width: auto; margin: 3px 0 0; accent-color: var(--green); }
.directory-choice small { display: block; margin-top: 4px; color: var(--muted); font-weight: 400; }
.directory-readiness { margin: 0 0 10px 12px; color: var(--muted); font-size: .85rem; }
.directory-blockers { margin: 0 0 12px; padding-left: 30px; color: #842f24; font-size: .85rem; line-height: 1.45; }
.directory-catalog { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.directory-catalog li { padding-top: 14px; border-top: 1px solid var(--line); }
.directory-catalog h3 { margin: 0 0 5px; }
.directory-catalog p { margin: 5px 0; color: var(--muted); font-size: .85rem; line-height: 1.45; }
.directory-match, .directory-catalog .directory-match { color: var(--green); font-size: .85rem; font-weight: 600; }
.batch-summary { overflow-wrap: anywhere; }
#approval-history-label { margin-top: 16px; }
#approval-history { margin-top: 6px; }
.account-entry { max-width: 480px; margin: 0 auto; }
.account-entry h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); margin-bottom: 24px; }
.account-controls { display: flex; align-items: center; gap: 10px; min-width: 0; }
.account-controls span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; }
.account-controls button { flex: none; }
.mcp-actions { margin-top: 12px; }
.mcp-support { max-width: 960px; }
.mcp-support :is(p, li) { line-height: 1.55; }
.mcp-support :is(h2 + p, p + p) { margin-top: 10px; }
.mcp-support table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: .9rem; }
.mcp-support :is(th, td) { padding: 10px 6px; vertical-align: top; text-align: left; }
.mcp-support tbody tr { border-top: 1px solid var(--line); }
.mcp-support tbody code { display: block; margin-top: 4px; color: var(--muted); overflow-wrap: anywhere; }
.mcp-support :is(ol, ul) { margin: 12px 0 0; padding-inline-start: 22px; }
.mcp-support li + li { margin-top: 4px; }
#promote-fields { border: 0; padding: 0; margin: 0; min-inline-size: 0; }
#promote-fields legend { padding: 0; margin-bottom: 12px; color: var(--muted); }

.approval-status { margin: 17px 0 13px; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.email-verification { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; }
.email-verification h3 { margin: 0 0 8px; font-size: 1rem; }
.email-verification form { margin-top: 12px; }
.email-verification input { max-width: 21rem; }
.email-verification p:not(:empty) { margin-top: 8px; }
.verification-status[data-state="sent"], .verification-status[data-state="verified"] { color: #18553a; font-weight: 650; }
.verification-help { color: var(--muted); }
.verification-error { color: #842f24; }
.checkout-return {
  display: grid;
  justify-items: start;
  gap: 12px;
  margin-bottom: 18px;
  border-inline-start: 4px solid #8f9e8e;
}
.checkout-return[data-state="confirmed"] { background: #edf7ee; border-inline-start-color: var(--green); }
.checkout-return h2 { font-size: 1.35rem; }
.checkout-return h2 + p { margin-top: 5px; color: var(--muted); line-height: 1.5; }
.billing-prerequisites { padding: 10px 12px; margin: 12px 0; background: #edf1e9; border-radius: 8px; }
.billing-prerequisites ul { margin: 4px 0 0; padding-left: 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.batch-results { list-style: none; padding: 0; margin: 16px 0 0; }
.batch-results > li { border-top: 1px solid var(--line); padding: 12px 0; }
.batch-results h3 { margin: 0 0 4px; font-size: 1rem; }
.batch-results p { margin: 0 0 8px; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.batch-results ol { padding-inline-start: 22px; margin: 8px 0; }
.batch-results button { margin-bottom: 4px; }
.submissions { margin-top: 18px; }
.submissions .card-header { margin-bottom: 13px; }
.empty { padding: 12px 0 3px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }

.job {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(96px, auto) minmax(160px, 1.3fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.job:last-child { padding-bottom: 1px; }
.job-evidence { display: flex; flex-wrap: wrap; gap: 4px 13px; font-size: .84rem; }
.job-evidence span { flex-basis: 100%; color: var(--muted); line-height: 1.45; }
.job-evidence [data-receipt-summary], .job-evidence .first-check, .job-evidence details { flex-basis: 100%; min-width: 0; margin: 0; overflow-wrap: anywhere; }
.job-action { justify-self: end; }
.status[data-state="live_verified"] { color: #18553a; background: #def2df; }
.status[data-state="submitted"] { color: #6d4a12; background: #f8edcd; }

.notice {
  padding: 10px 13px;
  margin-bottom: 16px;
  background: #e2efe2;
  color: #28523d;
  border-radius: 8px;
  font-size: .9rem;
}

.notice.error { background: #f8ebe5; color: #842f24; }

.promote-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.approval-checkbox { display: flex; align-items: baseline; gap: 8px; margin: 0; font-weight: 400; }
.approval-checkbox input { width: auto; margin: 0; accent-color: var(--green); }
.private-key { margin: 16px 0 0; }
.private-key code { display: block; overflow-wrap: anywhere; margin: 8px 0; }

@media (max-width: 720px) {
  .workspace { padding-top: 33px; }
  .setup { grid-template-columns: 1fr; }
  .promote-options { grid-template-columns: 1fr; gap: 0; }
  .job { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
}

@media (max-width: 420px) {
  .workspace, .masthead-inner { padding-inline: 16px; }
  .card { padding: 17px; }
  .job-evidence, .job-action { grid-column: 1 / -1; }
  .job-action { justify-self: start; }
}
