:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--page);
  color: var(--ink);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--page); }
body { margin: 0; }
#app {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
button, input, textarea, select { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }

.skip-link { position: fixed; z-index: 100; left: 12px; top: -50px; background: #fff; color: #111; padding: 10px; }
.skip-link:focus { top: 12px; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--page) 94%, white 6%);
  position: sticky;
  top: 0;
  z-index: 20;
}
.utility-strip { min-height: 32px; padding: 6px clamp(18px, 4vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--ink); color: #fff; font-size: 12px; }
.utility-message { color: color-mix(in srgb, white 78%, var(--muted)); }
.utility-actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; min-width: 0; }
.utility-actions a { font-weight: 760; text-decoration: none; }
.utility-account { max-width: 34ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: color-mix(in srgb, white 72%, var(--muted)); }
.language-indicator { border-left: 1px solid color-mix(in srgb, white 24%, transparent); padding-left: 18px; font-weight: 800; }
.header-main { width: 100%; min-height: 80px; padding: 0 clamp(18px, 4vw, 56px); display: flex; align-items: stretch; gap: clamp(24px, 3vw, 46px); position: relative; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; text-decoration: none; }
.brand-logo { width: 44px; height: 44px; display: block; flex: 0 0 auto; }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 18px; line-height: 1.1; font-weight: 850; }
.brand-copy small { color: var(--muted); font-size: 11px; line-height: 1.2; font-weight: 650; }
.header-panel { min-width: 0; flex: 1; display: flex; align-items: stretch; justify-content: space-between; gap: 20px; }
.site-nav { min-width: 0; display: flex; align-items: stretch; gap: 2px; }
.site-nav a { border-bottom: 3px solid transparent; padding: 0 11px; display: inline-flex; align-items: center; color: var(--muted); font-size: 14px; font-weight: 680; text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.header-actions .button { min-height: 44px; }
.nav-toggle { display: none; align-self: center; justify-content: center; align-items: center; padding: 0; border-radius: 4px; }

.button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 720;
  background: var(--primary);
  color: #fff;
}
.button:hover { filter: brightness(.94); }
.button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.button.danger { background: #9b2c2c; }
.button:disabled { opacity: .55; cursor: not-allowed; }
.icon-button { width: 40px; height: 40px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 20px; }

.page-shell { flex: 1 0 auto; display: flex; flex-direction: column; }
.tool-layout { flex: 1 0 auto; display: grid; grid-template-columns: minmax(240px, 34%) minmax(0, 1fr); }
.tool-intro { padding: clamp(34px, 6vw, 76px); background: var(--intro); border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.eyebrow { margin: 0 0 12px; color: var(--accent-ink); font-size: 12px; font-weight: 850; text-transform: uppercase; }
h1, h2, h3 { overflow-wrap: break-word; word-break: normal; }
p { overflow-wrap: anywhere; }
h1 { margin: 0; max-width: 14ch; font-family: var(--display); font-size: clamp(38px, 4.2vw, 64px); line-height: 1.04; letter-spacing: 0; }
.lede { max-width: 48ch; color: var(--muted); font-size: 17px; line-height: 1.65; }
.hero-visual { display: block; width: min(100%, 520px); max-height: 280px; margin-top: 30px; object-fit: contain; object-position: left center; }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; color: var(--muted); font-size: 14px; }
.trust-list li { display: flex; gap: 10px; align-items: flex-start; }
.trust-list li::before { content: "✓"; color: var(--accent-ink); font-weight: 900; }

.workspace { padding: clamp(24px, 4vw, 60px); display: flex; align-items: center; }
.workspace-inner { width: min(860px, 100%); margin: auto; }
.workspace-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 24px; }
.workspace-header h2 { margin: 0; font-family: var(--display); font-size: 27px; letter-spacing: 0; }
.credit-meter { color: var(--muted); font-size: 13px; white-space: nowrap; }

.tool-form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field span, .fieldset-label { color: var(--muted); font-weight: 700; font-size: 13px; }
input, textarea, select { width: 100%; border: 1px solid var(--line-strong); background: var(--field); color: var(--ink); border-radius: 4px; padding: 12px 13px; }
textarea { min-height: 210px; resize: vertical; line-height: 1.6; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.segmented { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line-strong); border-radius: 5px; overflow: hidden; }
.segmented button { min-height: 42px; border: 0; border-right: 1px solid var(--line-strong); background: var(--field); color: var(--muted); }
.segmented button:last-child { border-right: 0; }
.segmented button[aria-pressed="true"] { background: var(--primary); color: #fff; }
.task-selector button { min-width: 0; min-height: 54px; padding: 8px 10px; line-height: 1.25; font-weight: 800; }
.task-description { min-height: 42px; margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.task-catalog { list-style: none; display: grid; gap: 0; margin: 30px 0 0; padding: 0; border-top: 1px solid var(--line-strong); }
.task-catalog li { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line-strong); }
.task-catalog strong { font-family: var(--display); font-size: 18px; }
.task-catalog span { color: var(--muted); font-size: 13px; line-height: 1.5; }
.account-workspace { border-bottom: 1px solid var(--line); }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.fine-print { color: var(--muted); font-size: 12px; line-height: 1.45; max-width: 48ch; }
.status { min-height: 24px; margin: 16px 0 0; color: var(--muted); }
.status.error { color: #a22d2d; }
.result { margin-top: 24px; border-top: 3px solid var(--accent); background: var(--result); padding: 22px; border-radius: 0 0 6px 6px; }
.result h3 { margin: 0 0 12px; font-family: var(--display); }
.result pre { white-space: pre-wrap; font: inherit; line-height: 1.65; margin: 0; }

.auth-page, .content-page, .purchase-page { flex: 1 0 auto; width: min(1060px, calc(100% - 32px)); margin: 0 auto; padding: 54px 0 90px; }
.auth-page { flex: 1 1 auto; padding-block: clamp(32px, 5vh, 54px) clamp(36px, 7vh, 64px); }
.auth-panel { width: min(480px, 100%); margin: 0 auto; }
.auth-panel h1, .content-page h1 { font-size: clamp(34px, 5vw, 58px); max-width: 18ch; }
.auth-panel form { margin-top: 28px; display: grid; gap: 16px; }
.notice { padding: 14px 16px; border-left: 4px solid var(--accent); background: var(--soft); line-height: 1.5; }
.verification-actions { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.verification-countdown { margin: 0; color: var(--muted); line-height: 1.5; }
.verification-login { flex: 0 0 auto; text-decoration: none; }
.content-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 32%); gap: clamp(32px, 7vw, 90px); }
.content-copy { max-width: 720px; }
.content-copy h2 { margin-top: 34px; font-family: var(--display); }
.content-copy p, .content-copy li { color: var(--muted); line-height: 1.7; }
.side-facts { border-left: 1px solid var(--line); padding-left: 28px; align-self: start; }
.side-facts dl { display: grid; gap: 20px; }
.side-facts dt { font-size: 12px; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.side-facts dd { margin: 4px 0 0; }

.pricing-page { grid-template-columns: minmax(0, 1fr); }
.pricing-page .content-copy { max-width: none; }
.pricing-grid { margin-top: 34px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 18px; }
.price-item { border: 1px solid var(--line-strong); padding: 24px; border-radius: 6px; background: var(--field); }
.price-item h2 { margin: 0; font-family: var(--display); }
.price { font-family: var(--display); font-size: 38px; margin: 10px 0; }
.plan-credits { color: var(--accent-ink); font-weight: 800; }
.plan-summary { color: var(--muted); line-height: 1.55; }
.price-item ul { padding-left: 18px; color: var(--muted); line-height: 1.7; }
.plan-action { margin-top: 12px; align-self: end; }
.pricing-page .side-facts { border-left: 0; border-top: 1px solid var(--line); padding: 28px 0 0; display: grid; grid-template-columns: minmax(130px, .3fr) minmax(0, 1fr) auto; gap: 24px; align-items: start; }
.pricing-page .side-facts h2, .pricing-page .side-facts p { margin: 0; }
.pricing-page .side-facts a { white-space: nowrap; }
.mock-warning { border: 1px solid #c67756; padding: 14px; color: #7b321d; margin-top: 18px; }
.qr { width: 180px; height: 180px; background: white; border: 1px solid var(--line); padding: 8px; }
.mock-tools { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.mock-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.mock-order { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 22px; align-items: start; margin-top: 20px; }
.mock-order h3 { margin-top: 0; }
.mock-order code { overflow-wrap: anywhere; }
.purchase-page { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: clamp(36px, 7vw, 86px); align-items: start; }
.purchase-intro > p:not(.eyebrow) { max-width: 62ch; color: var(--muted); line-height: 1.7; }
.purchase-intro h1 { max-width: 16ch; }
.back-link { display: inline-block; margin-bottom: 28px; color: var(--muted); font-weight: 760; }
.purchase-detail-grid { margin-top: 42px; display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.purchase-detail-grid section { padding: 22px 0; border-bottom: 1px solid var(--line); }
.purchase-detail-grid h2 { margin: 0 0 8px; font: 700 21px/1.25 var(--display); }
.purchase-detail-grid p { margin: 0; color: var(--muted); line-height: 1.65; }
.purchase-order { border: 1px solid var(--line-strong); background: var(--field); padding: clamp(22px, 4vw, 34px); }
.purchase-order h2 { margin: 0; font: 700 30px/1.15 var(--display); }
.order-lines { margin: 28px 0 16px; }
.order-lines div { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.order-lines dt { color: var(--muted); font-size: 13px; font-weight: 750; }
.order-lines dd { margin: 0; font-weight: 800; text-align: right; }
.order-lines .order-total { padding-top: 20px; border-bottom: 0; }
.order-lines .order-total dt, .order-lines .order-total dd { color: var(--ink); font: 700 23px/1.2 var(--display); }
.purchase-order .mock-tools.compact { margin-top: 24px; }
.purchase-order .mock-tools.compact > h3 { margin: 0; }
.purchase-order .mock-warning { font-size: 13px; line-height: 1.55; }
.purchase-order .mock-order { grid-template-columns: 1fr; }
.purchase-order .qr { width: min(180px, 100%); height: auto; aspect-ratio: 1; }
.purchase-disabled { margin-top: 26px; }
.purchase-disabled .button { width: 100%; }
.purchase-disabled p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.purchase-missing { grid-column: 1 / -1; max-width: 620px; }
.activity-list { list-style: none; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.activity-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.activity-list small { color: var(--muted); }
.activity-value { font-weight: 800; white-space: nowrap; }

.account-page .content-copy { max-width: 780px; }
.task-center { margin-top: 38px; padding-block: 28px; border-top: 2px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.section-heading-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.section-heading-row h2, .section-heading-row h3 { margin: 0; font-family: var(--display); }
.section-heading-row .eyebrow { margin: 0 0 6px; }
.task-count { color: var(--muted); font-size: 13px; white-space: nowrap; }
.empty-state { margin: 22px 0 0; }
.task-list { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--line); }
.task-list li { border-bottom: 1px solid var(--line); }
.task-row { width: 100%; min-height: 66px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border: 0; border-left: 3px solid transparent; padding: 12px 10px 12px 14px; background: transparent; color: var(--ink); text-align: left; }
.task-row:hover, .task-row:focus-visible, .task-row.is-selected { border-left-color: var(--accent); background: var(--soft); }
.task-row > span:first-child { min-width: 0; display: grid; gap: 4px; }
.task-row small { color: var(--muted); }
.task-status { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 9px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 800; white-space: nowrap; }
.task-status.is-processing { border-color: var(--accent); color: var(--accent-ink); }
.task-status.is-succeeded { border-color: #4f7d5b; color: #315f3c; }
.task-status.is-failed { border-color: #b84c4c; color: #983333; }
.task-detail { margin-top: 28px; padding-top: 24px; border-top: 3px solid var(--accent); }
.task-metadata { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin: 22px 0; }
.task-metadata div { min-width: 0; border-bottom: 1px solid var(--line); padding-bottom: 9px; }
.task-metadata dt { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.task-metadata dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.task-payload { margin-top: 22px; }
.task-payload h4 { margin: 0 0 8px; }
.task-payload pre { max-height: 320px; margin: 0; overflow: auto; border: 1px solid var(--line); background: var(--field); padding: 14px; white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; }
.task-result-image { display: block; width: min(100%, 560px); max-height: 520px; object-fit: contain; border: 1px solid var(--line); background: var(--field); }

.upload-zone { border: 1px dashed var(--line-strong); padding: 28px; text-align: center; background: var(--field); }
.image-preview { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.image-preview figure { margin: 0; }
.image-preview img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; border: 1px solid var(--line); background: var(--soft); }
.image-preview figcaption { color: var(--muted); font-size: 12px; margin-top: 7px; }

.home-story { width: 100%; }
.home-overview, .home-faq {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 84px 0;
}
.home-workflow, .home-assurance {
  width: 100%;
  padding: 76px max(18px, calc((100% - 1160px) / 2));
}
.home-section-heading h2, .home-faq h2 {
  margin: 0;
  max-width: 18ch;
  font-family: var(--display);
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: 0;
}
.home-section-heading > p:last-child {
  max-width: 62ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}
.home-highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.home-highlight { padding: 24px; border: 1px solid var(--line); background: var(--field); }
.home-highlight > span { color: var(--accent-ink); font-size: 12px; font-weight: 850; text-transform: uppercase; }
.home-highlight h3 { margin: 28px 0 10px; font-family: var(--display); font-size: 23px; }
.home-highlight p, .home-step p, .home-assurance p, .home-assurance li, .home-faq dd { color: var(--muted); line-height: 1.65; }
.home-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.home-step { display: grid; gap: 22px; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.home-step > span { color: var(--accent-ink); font-family: var(--display); font-size: 30px; }
.home-step h3 { margin: 0 0 10px; font-family: var(--display); font-size: 22px; }
.home-step p { margin: 0; }
.home-assurance ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.home-assurance li { position: relative; padding-left: 24px; }
.home-assurance li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-ink); font-weight: 900; }
.home-faq dl { margin: 0; display: grid; gap: 0; }
.home-faq-item { padding: 22px 0; border-top: 1px solid var(--line); }
.home-faq-item:last-child { border-bottom: 1px solid var(--line); }
.home-faq dt { font-family: var(--display); font-size: 20px; font-weight: 800; }
.home-faq dd { margin: 8px 0 0; }

.site-footer { border-top: 1px solid var(--line); padding: 28px clamp(18px, 4vw, 56px); display: flex; justify-content: space-between; gap: 22px; color: var(--muted); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { text-decoration: none; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.admin-shell { flex: 1 0 auto; min-width: 0; background: #f4f6f7; color: #17212b; --admin-line: #d7dde2; --admin-muted: #60707d; }
.admin-topbar { min-height: 68px; padding: 10px clamp(18px, 3vw, 40px); display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--admin-line); background: #fff; }
.admin-brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.admin-brand img { width: 38px; height: 38px; }
.admin-brand span { display: grid; gap: 1px; }
.admin-brand strong { font-size: 15px; }
.admin-brand small { color: var(--admin-muted); font-size: 11px; }
.admin-account { display: flex; align-items: center; gap: 18px; color: var(--admin-muted); font-size: 13px; }
.admin-text-button, .admin-record-link { border: 0; padding: 0; background: transparent; color: var(--primary); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.admin-text-button:disabled { opacity: .5; cursor: not-allowed; }
.admin-auth-page { min-height: calc(100dvh - 68px); padding: clamp(36px, 7vw, 88px) 18px; display: grid; place-items: start center; }
.admin-auth-panel { width: min(460px, 100%); padding: clamp(24px, 5vw, 42px); border: 1px solid var(--admin-line); background: #fff; box-shadow: 0 16px 40px rgb(28 42 55 / 8%); }
.admin-auth-panel h1 { max-width: 14ch; color: #17212b; font: 750 clamp(30px, 5vw, 44px)/1.08 ui-sans-serif, system-ui, sans-serif; }
.admin-auth-panel > p:not(.eyebrow, .status, .admin-auth-note) { color: var(--admin-muted); line-height: 1.6; }
.admin-auth-panel form { display: grid; gap: 16px; margin-top: 28px; }
.admin-auth-note { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--admin-line); color: var(--admin-muted); font-size: 12px; line-height: 1.55; }
.admin-layout { min-height: calc(100dvh - 68px); display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.admin-sidebar { padding: 28px 18px; border-right: 1px solid var(--admin-line); background: #202b35; color: #fff; }
.admin-sidebar nav { display: grid; gap: 3px; }
.admin-sidebar a { min-height: 42px; padding: 0 12px; display: flex; align-items: center; border-left: 3px solid transparent; color: #d8e0e5; text-decoration: none; font-size: 13px; font-weight: 700; }
.admin-sidebar a:hover, .admin-sidebar a[aria-current="page"] { border-left-color: var(--accent); background: rgb(255 255 255 / 8%); color: #fff; }
.admin-sidebar > p { margin: 34px 12px 0; color: #a9b6bf; font-size: 11px; line-height: 1.55; }
.admin-content { min-width: 0; padding: clamp(26px, 4vw, 50px); }
.admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.admin-heading h1 { max-width: none; color: #17212b; font: 750 34px/1.12 ui-sans-serif, system-ui, sans-serif; }
.admin-total { color: var(--admin-muted); font-size: 13px; }
.admin-alert { margin: 0 0 20px; border-left-color: #4b7b58; background: #edf5ef; }
.admin-alert.error { border-left-color: #a83c3c; background: #faeeee; color: #8b2828; }
.admin-dashboard { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 14px; }
.admin-dashboard article { min-height: 142px; padding: 20px; display: grid; align-content: space-between; gap: 12px; border: 1px solid var(--admin-line); border-top: 3px solid var(--accent); background: #fff; }
.admin-dashboard span { color: var(--admin-muted); font-size: 12px; font-weight: 750; text-transform: uppercase; }
.admin-dashboard strong { font-size: 30px; line-height: 1; }
.admin-dashboard small { color: var(--admin-muted); }
.admin-filters { margin-bottom: 20px; display: grid; grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px) auto; gap: 12px; align-items: end; }
.admin-filters .button { min-width: 92px; }
.admin-table-wrap { min-width: 0; overflow-x: auto; border: 1px solid var(--admin-line); background: #fff; }
.admin-table-wrap table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 12px; }
.admin-table-wrap th { padding: 11px 13px; border-bottom: 1px solid #bfc8cf; background: #eef1f3; color: #42515d; text-align: left; font-size: 11px; text-transform: uppercase; white-space: nowrap; }
.admin-table-wrap td { max-width: 260px; padding: 13px; border-bottom: 1px solid #e5e9ec; vertical-align: top; overflow-wrap: anywhere; }
.admin-table-wrap tbody tr:last-child td { border-bottom: 0; }
.admin-table-wrap tbody tr:hover { background: #f8fafb; }
.admin-table-wrap td small { margin-top: 4px; display: block; color: var(--admin-muted); font-size: 10px; }
.admin-table-wrap code { display: block; max-width: 280px; overflow: hidden; color: #44525e; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.admin-record-link { max-width: 230px; overflow: hidden; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.admin-status { display: inline-flex; min-height: 23px; padding: 3px 7px; align-items: center; border: 1px solid #aeb8c0; color: #4b5964; font-size: 10px; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.admin-status[data-status="active"], .admin-status[data-status="succeeded"], .admin-status[data-status="credit"] { border-color: #5d8d68; background: #edf6ef; color: #315d3a; }
.admin-status[data-status="disabled"], .admin-status[data-status="failed"], .admin-status[data-status="debit"] { border-color: #b96464; background: #faeeee; color: #8e3030; }
.admin-status[data-status="queued"], .admin-status[data-status="processing"], .admin-status[data-status="provider_pending"], .admin-status[data-status="manual_review"] { border-color: #9b7a3a; background: #fbf5e8; color: #74571f; }
.admin-empty { margin: 0; padding: 42px; color: var(--admin-muted); text-align: center; }
.admin-pagination { margin-top: 18px; display: flex; align-items: center; justify-content: flex-end; gap: 16px; color: var(--admin-muted); font-size: 12px; }
.admin-inspector { margin-top: 22px; padding: 24px; border: 1px solid var(--admin-line); border-top: 3px solid var(--accent); background: #fff; }
.admin-inspector h2 { font: 700 21px/1.25 ui-sans-serif, system-ui, sans-serif; }
.admin-inspector dl { margin: 22px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.admin-inspector dt { color: var(--admin-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.admin-inspector dd { margin: 4px 0 0; font-weight: 700; overflow-wrap: anywhere; }

@media (max-width: 980px) {
  .header-main { min-height: 70px; align-items: center; padding-block: 10px; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .header-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 14px 18px 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    background: var(--field);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 18px 34px rgb(20 30 40 / 16%);
  }
  .header-panel.is-open { display: flex; }
  .site-nav { width: 100%; flex-direction: column; align-items: stretch; }
  .site-nav a { min-height: 44px; padding: 0 4px; border-bottom: 1px solid var(--line); }
  .site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }
  .header-actions { width: 100%; }
  .header-actions .button { flex: 1; }
  .admin-dashboard { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
}

@media (max-width: 820px) {
  .tool-layout { grid-template-columns: 1fr; }
  .tool-intro { min-height: 48vh; border-right: 0; border-bottom: 1px solid var(--line); }
  .workspace { align-items: start; }
  .content-page { grid-template-columns: 1fr; }
  .purchase-page { grid-template-columns: 1fr; }
  .side-facts { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0; }
  .pricing-page .side-facts { grid-template-columns: 1fr; gap: 12px; }
  .home-overview, .home-workflow, .home-assurance, .home-faq { padding-block: 58px; }
  .home-section-heading h2, .home-faq h2 { font-size: 34px; }
  .home-highlights, .home-steps { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--admin-line); overflow-x: auto; }
  .admin-sidebar nav { display: flex; width: max-content; gap: 2px; }
  .admin-sidebar a { border-left: 0; border-bottom: 3px solid transparent; padding-inline: 14px; }
  .admin-sidebar a:hover, .admin-sidebar a[aria-current="page"] { border-left-color: transparent; border-bottom-color: var(--accent); }
  .admin-sidebar > p { display: none; }
  .admin-content { padding: 26px 18px 44px; }
  .admin-filters { grid-template-columns: 1fr 1fr; }
  .admin-filters .button { grid-column: 1 / -1; }
  .admin-inspector dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .header-main { padding-inline: 14px; }
  .brand-logo { width: 40px; height: 40px; }
  .brand-copy strong { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .brand-copy small { display: none; }
  .utility-strip { padding-inline: 14px; }
  .utility-message { max-width: 48%; }
  .utility-account { display: none; }
  .tool-intro, .workspace { padding: 26px 18px; }
  h1 { font-size: 40px; }
  .field-row, .pricing-grid, .image-preview { grid-template-columns: 1fr; }
  .mock-order { grid-template-columns: 1fr; }
  .section-heading-row { align-items: flex-start; }
  .task-metadata { grid-template-columns: 1fr; }
  .form-actions, .workspace-header, .site-footer { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .admin-account > span { display: none; }
  .admin-content { padding-inline: 12px; }
  .admin-dashboard, .admin-filters, .admin-inspector dl { grid-template-columns: 1fr; }
  .admin-heading { align-items: flex-start; }
  .admin-dashboard article { min-height: 122px; }
  .admin-pagination { justify-content: space-between; }
  .admin-pagination .button { width: auto; }
}
