:root {
  --ink: #17191d;
  --muted: #656b76;
  --line: #dfe2e8;
  --line-strong: #c6cbd4;
  --canvas: #f3f5f7;
  --surface: #ffffff;
  --blue: #075bff;
  --blue-dark: #0046cc;
  --green: #16835f;
  --red: #cf3740;
  --amber: #a76300;
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--ink); background: var(--canvas); font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif; font-size: 14px; letter-spacing: 0; }
button, input { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }

.public-header { height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 max(24px, calc((100vw - 1240px) / 2)); color: #fff; background: var(--ink); border-bottom: 3px solid var(--blue); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-size: 15px; font-weight: 650; white-space: nowrap; }
.brand b { color: #91b3ff; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border: 2px solid currentColor; border-radius: 50%; font-weight: 800; }
.public-header nav { display: flex; align-items: center; gap: 26px; }
.public-header nav a { color: #c4c8d0; text-decoration: none; font-size: 12px; }
.public-header nav a:hover { color: #fff; }

.text-button, .modal-close { padding: 0; color: inherit; background: transparent; border: 0; cursor: pointer; }
.text-button { color: #c4c8d0; font-size: 12px; }
.primary-button, .secondary-button, .ghost-button, .danger-button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 17px; border-radius: var(--radius); text-decoration: none; cursor: pointer; font-weight: 700; border: 1px solid transparent; }
.primary-button { color: #fff; background: var(--blue); border-color: var(--blue); }
.primary-button:hover { background: var(--blue-dark); }
.secondary-button { color: var(--ink); background: #fff; border-color: var(--line-strong); }
.secondary-button:hover { border-color: #858d99; }
.ghost-button { color: #fff; background: rgba(23, 25, 29, .68); border-color: rgba(255,255,255,.58); }
.danger-button { color: #fff; background: var(--red); border-color: var(--red); }
.small { min-height: 34px; padding: 0 13px; font-size: 12px; }
.wide { width: 100%; }
button:disabled { cursor: not-allowed; opacity: .55; }

.hero { position: relative; min-height: min(690px, calc(100vh - 70px)); display: flex; align-items: center; overflow: hidden; color: #fff; background-color: #242830; background-image: url('/assets/product-preview.png'); background-size: cover; background-position: center; }
.hero-shade { position: absolute; inset: 0; background: rgba(10, 12, 16, .72); }
.hero-content { position: relative; z-index: 1; width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 82px 0 112px; }
.eyebrow { color: #8fb3ff; font-size: 11px; font-weight: 800; }
.hero h1 { max-width: 760px; margin: 14px 0 18px; font-size: 64px; line-height: 1.03; font-weight: 760; overflow-wrap: anywhere; }
.hero p { max-width: 650px; margin: 0; color: #d3d7df; font-size: 20px; line-height: 1.65; }
.hero-actions { display: flex; gap: 10px; margin-top: 32px; }
.hero-trust { display: flex; align-items: center; gap: 8px; margin-top: 24px; color: #b8bec8; font-size: 11px; }
.hero-trust span { width: 7px; height: 7px; background: #2fd29a; border-radius: 50%; }

.proof-band { position: relative; z-index: 2; width: min(1120px, calc(100% - 48px)); display: grid; grid-template-columns: repeat(4, 1fr); margin: -58px auto 0; background: #fff; border: 1px solid var(--line); }
.proof-band div { min-height: 116px; display: flex; flex-direction: column; justify-content: center; padding: 20px 28px; border-right: 1px solid var(--line); }
.proof-band div:last-child { border-right: 0; }
.proof-band strong { font-size: 28px; }
.proof-band span { margin-top: 6px; color: var(--muted); font-size: 11px; }

.section-inner { width: min(1120px, calc(100% - 48px)); margin-left: auto; margin-right: auto; }
.workflow { padding: 108px 0; }
.section-intro { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 38px; }
.section-number { color: var(--blue); font-size: 11px; font-weight: 800; }
.section-intro h2 { margin: 0; font-size: 30px; }
.section-intro p { margin: 8px 0 0; color: var(--muted); line-height: 1.6; }
.workflow-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-strong); }
.workflow-grid article { min-height: 230px; padding: 30px 32px 26px 0; border-right: 1px solid var(--line); }
.workflow-grid article + article { padding-left: 32px; }
.workflow-grid article:last-child { border-right: 0; }
.workflow-grid article > span { color: var(--blue); font-size: 12px; font-weight: 800; }
.workflow-grid h3 { margin: 34px 0 12px; font-size: 18px; }
.workflow-grid p { margin: 0; color: var(--muted); line-height: 1.75; }

.pricing-band { padding: 86px 0 96px; color: #fff; background: var(--ink); }
.section-intro.light p { color: #aeb4bf; }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plan-card { min-height: 330px; display: flex; flex-direction: column; padding: 26px; color: var(--ink); background: #fff; border: 1px solid #343942; border-radius: var(--radius); }
.plan-card.featured { border-top: 4px solid var(--blue); padding-top: 23px; }
.plan-card .plan-label { color: var(--blue); font-size: 10px; font-weight: 800; }
.plan-card h3 { margin: 12px 0 4px; font-size: 21px; }
.plan-card .plan-price { margin-top: 22px; font-size: 34px; font-weight: 760; }
.plan-card .plan-price small { color: var(--muted); font-size: 12px; font-weight: 500; }
.plan-card p { margin: 10px 0 18px; color: var(--muted); line-height: 1.6; }
.plan-card ul { list-style: none; margin: 0 0 24px; padding: 16px 0 0; border-top: 1px solid var(--line); }
.plan-card li { margin: 9px 0; color: #424750; font-size: 12px; }
.plan-card li::before { content: "✓"; margin-right: 8px; color: var(--green); font-weight: 800; }
.plan-card button { width: 100%; margin-top: auto; }

.security-band { display: grid; grid-template-columns: 1.1fr .9fr; gap: 90px; padding: 108px 0; }
.security-copy h2 { margin: 12px 0 16px; font-size: 30px; }
.security-copy p { max-width: 590px; margin: 0; color: var(--muted); line-height: 1.8; }
.security-list { border-top: 1px solid var(--line-strong); }
.security-list div { display: grid; grid-template-columns: 48px 1fr; align-items: center; min-height: 72px; border-bottom: 1px solid var(--line); }
.security-list b { color: var(--blue); font-size: 11px; }
.security-list span { font-weight: 650; }

.public-footer { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 20px max(24px, calc((100vw - 1120px) / 2)); color: #aeb4bf; background: var(--ink); font-size: 11px; }
.public-footer > div, .public-footer nav { display: flex; gap: 20px; }
.public-footer a { text-decoration: none; }
.public-footer a:hover { color: #fff; }

.legal-page { width: min(860px, calc(100% - 48px)); min-height: calc(100vh - 158px); margin: 0 auto; padding: 54px 0 90px; }
.back-link { display: inline-block; margin-bottom: 34px; color: var(--blue); text-decoration: none; font-size: 12px; }
.legal-page h1 { margin: 0 0 12px; font-size: 34px; }
.legal-page .legal-meta { margin-bottom: 36px; color: var(--muted); }
.legal-page h2 { margin: 32px 0 10px; font-size: 18px; }
.legal-page p, .legal-page li { color: #515762; line-height: 1.8; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 230px minmax(0, 1fr); }
.app-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 22px 16px; color: #fff; background: var(--ink); border-right: 3px solid var(--blue); }
.app-brand { padding: 0 8px 30px; }
.app-sidebar nav { display: grid; gap: 4px; }
.app-nav { height: 44px; display: grid; grid-template-columns: 34px 1fr; align-items: center; padding: 0 10px; color: #aeb4bf; text-align: left; background: transparent; border: 0; border-radius: var(--radius); cursor: pointer; }
.app-nav span { color: #6f7783; font-size: 10px; }
.app-nav:hover { color: #fff; background: #23262d; }
.app-nav.active { color: #fff; background: var(--blue); }
.app-nav.active span { color: #c9d8ff; }
.sidebar-foot { display: flex; justify-content: space-between; margin-top: auto; padding: 16px 8px 2px; color: #7e8692; border-top: 1px solid #30343c; font-size: 10px; }

.app-main { min-width: 0; }
.app-topbar { height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 32px; background: #fff; border-bottom: 1px solid var(--line); }
.app-topbar h1 { margin: 3px 0 0; font-size: 19px; }
.app-topbar > div > span { color: var(--blue); font-size: 9px; font-weight: 800; }
.account-summary { display: flex; align-items: center; gap: 16px; }
.account-summary > div { text-align: right; }
.account-summary span { display: block; color: var(--muted); font-size: 10px; }
.account-summary strong { font-size: 18px; }
.avatar { width: 36px; height: 36px; color: #fff; background: var(--ink); border: 0; border-radius: 50%; cursor: pointer; font-weight: 800; }
.mobile-menu { display: none; }
.app-panel { padding: 28px 32px 64px; }

.audit-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); min-height: calc(100vh - 178px); background: #fff; border: 1px solid var(--line); }
.audit-form { padding: 26px; border-right: 1px solid var(--line); }
.panel-heading { display: flex; gap: 12px; margin-bottom: 25px; }
.panel-heading > span { color: var(--blue); font-size: 10px; font-weight: 800; }
.panel-heading h2 { margin: 0; font-size: 18px; }
.panel-heading p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
label { display: block; margin: 0 0 7px; font-size: 11px; font-weight: 700; }
input { width: 100%; height: 43px; margin-bottom: 18px; padding: 0 12px; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius); outline: none; }
input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(7,91,255,.12); }
input::placeholder { color: #a1a7b1; }
select, textarea { width: 100%; margin-bottom: 18px; padding: 10px 12px; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius); outline: none; font: inherit; }
select { height: 43px; padding-top: 0; padding-bottom: 0; }
textarea { min-height: 92px; resize: vertical; line-height: 1.55; }
select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(7,91,255,.12); }
.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; }
.secret-field { position: relative; }
.secret-field input { padding-right: 58px; }
.secret-field button { position: absolute; top: 6px; right: 6px; height: 31px; padding: 0 7px; color: var(--muted); background: transparent; border: 0; cursor: pointer; font-size: 11px; }
.key-note { display: flex; align-items: flex-start; gap: 8px; margin: -3px 0 20px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.key-note span { width: 7px; height: 7px; margin-top: 4px; flex: 0 0 auto; background: var(--green); border-radius: 50%; }
#audit-submit { justify-content: space-between; }
#audit-submit b { font-size: 10px; font-weight: 600; }

.audit-stage { min-width: 0; padding: 30px; background: var(--canvas); }
.audit-empty, .audit-progress, .audit-error { min-height: 510px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.audit-empty > strong { color: #c5cad2; font-size: 74px; }
.audit-empty h2, .audit-progress h2, .audit-error h2 { margin: 18px 0 8px; font-size: 21px; }
.audit-empty p, .audit-error p { max-width: 460px; margin: 0; color: var(--muted); line-height: 1.6; }
.audit-empty > div { display: flex; gap: 8px; margin-top: 28px; }
.audit-empty > div span { width: 70px; height: 6px; background: #dfe2e7; }
.live-dot { width: 12px; height: 12px; margin-bottom: 22px; background: var(--blue); border-radius: 50%; box-shadow: 0 0 0 7px rgba(7,91,255,.12); }
.progress-track { width: min(500px, 100%); height: 6px; margin-top: 28px; overflow: hidden; background: #dde1e7; }
.progress-track > div { width: 2%; height: 100%; background: var(--blue); transition: width .3s ease; }
.progress-meta { width: min(500px, 100%); display: flex; justify-content: space-between; margin-top: 8px; color: var(--muted); font-size: 10px; }
.audit-error > strong { width: 46px; height: 46px; display: grid; place-items: center; color: #fff; background: var(--red); border-radius: 50%; font-size: 20px; }
.audit-error .secondary-button { margin-top: 22px; }

.audit-result { min-width: 0; }
.result-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line-strong); }
.result-head h2 { margin: 6px 0 8px; font-size: 24px; overflow-wrap: anywhere; }
.result-head p { max-width: 760px; margin: 0; color: var(--muted); line-height: 1.6; }
.result-downloads { display: flex; gap: 7px; flex: 0 0 auto; }
.metric-grid { display: grid; grid-template-columns: repeat(6, minmax(95px, 1fr)); margin: 22px 0 30px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.metric { min-height: 98px; padding: 13px; background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric span { display: block; color: var(--muted); font-size: 10px; }
.metric strong { display: block; margin-top: 13px; font-size: 23px; }
.metric small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.metric.danger strong { color: var(--red); }
.metric.good strong { color: var(--green); }
.result-section { margin-top: 28px; }
.result-section-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 12px; }
.result-section-head h3 { margin: 0; font-size: 15px; }
.result-section-head span { color: var(--muted); font-size: 10px; }
.issue-list { background: #fff; border-top: 1px solid var(--line-strong); }
.issue-row { display: grid; grid-template-columns: 46px minmax(150px,220px) minmax(0,1fr); gap: 15px; padding: 15px 12px; border-bottom: 1px solid var(--line); align-items: start; }
.priority { width: 36px; padding: 4px 0; text-align: center; color: #fff; background: #596170; border-radius: 3px; font-size: 9px; font-weight: 800; }
.priority.P0 { background: var(--red); }
.priority.P1 { background: var(--amber); }
.issue-row h4 { margin: 1px 0 0; font-size: 12px; }
.issue-row p { margin: 0; color: var(--muted); line-height: 1.5; }

.content-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.content-heading h2 { margin: 0; font-size: 22px; }
.content-heading p { margin: 7px 0 0; color: var(--muted); }
.pricing-tool-layout { display: grid; grid-template-columns: minmax(330px, 390px) minmax(0, 1fr); gap: 18px; align-items: start; }
.pricing-form { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.pricing-mode-choice { display: grid; gap: 8px; margin-bottom: 18px; }
.pricing-mode-choice > span { color: var(--muted); font-size: 11px; font-weight: 800; }
.pricing-mode-toggle { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 4px; background: #f1f3f7; border: 1px solid var(--line); border-radius: 8px; }
.pricing-mode-toggle button { min-height: 34px; padding: 0 12px; color: var(--muted); background: transparent; border: 0; border-radius: 6px; font-weight: 800; cursor: pointer; }
.pricing-mode-toggle button.active { color: var(--ink); background: #fff; box-shadow: 0 1px 4px rgba(20, 24, 33, 0.12); }
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pricing-advanced { margin: 0 0 18px; padding: 14px 14px 0; background: #f7f8fa; border: 1px solid var(--line); border-radius: var(--radius); }
.pricing-advanced summary { margin-bottom: 14px; cursor: pointer; color: var(--blue); font-size: 11px; font-weight: 800; }
.pricing-result { min-height: 478px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pricing-placeholder { min-height: 478px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.pricing-placeholder strong { color: #c5cad2; font-size: 74px; }
.pricing-placeholder h3 { margin: 18px 0 8px; font-size: 21px; }
.pricing-placeholder p { max-width: 420px; margin: 0; color: var(--muted); line-height: 1.6; }
.pricing-result-hero { padding: 28px; color: #fff; background: var(--ink); }
.pricing-result-hero span { color: #91b3ff; font-size: 11px; font-weight: 800; }
.pricing-result-hero strong { display: block; margin-top: 12px; font-size: 44px; line-height: 1; }
.pricing-result-hero p { margin: 14px 0 0; color: #d3d7df; line-height: 1.65; }
.pricing-result-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.pricing-result-meta div { min-height: 74px; padding: 13px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pricing-result-meta span { display: block; color: var(--muted); font-size: 10px; }
.pricing-result-meta strong { display: block; margin-top: 10px; font-size: 13px; overflow-wrap: anywhere; }
.pricing-logistics { padding: 16px 18px; color: var(--muted); background: #f7f8fa; line-height: 1.65; }
.pricing-source { margin-top: 14px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); }
table { width: 100%; min-width: 760px; border-collapse: collapse; }
th, td { padding: 12px 13px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: 11px; }
th { color: var(--muted); background: #f7f8fa; font-size: 9px; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
.status-pill { display: inline-block; min-width: 58px; padding: 4px 7px; text-align: center; color: #535a65; background: #edf0f3; border-radius: 3px; font-size: 9px; }
.status-pill.complete { color: #0a6547; background: #e2f4ed; }
.status-pill.failed { color: #a62730; background: #fbe7e8; }
.table-link { color: var(--blue); text-decoration: none; font-weight: 700; }
.credit-balance { min-width: 150px; padding-left: 20px; border-left: 1px solid var(--line); }
.credit-balance span { display: block; color: var(--muted); font-size: 10px; }
.credit-balance strong { display: block; margin-top: 4px; font-size: 21px; }
.app-plans .plan-card { border-color: var(--line); }
.payment-method-choice { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 16px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.payment-method-choice > span { color: var(--muted); font-size: 11px; font-weight: 800; }
.payment-method-toggle { display: inline-grid; grid-template-columns: repeat(2, minmax(110px, 1fr)); gap: 6px; padding: 4px; background: #f1f3f7; border: 1px solid var(--line); border-radius: 8px; }
.payment-method-toggle button { min-height: 34px; padding: 0 14px; color: var(--muted); background: transparent; border: 0; border-radius: 6px; font-weight: 800; cursor: pointer; }
.payment-method-toggle button.active { color: var(--ink); background: #fff; box-shadow: 0 1px 4px rgba(20, 24, 33, 0.12); }
.payment-notice { margin-top: 18px; padding: 14px 16px; color: #704900; background: #fff5df; border-left: 3px solid var(--amber); }
.qr-payment-panel { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 24px; margin-top: 18px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.qr-payment-copy h3 { margin: 12px 0 8px; font-size: 19px; }
.qr-payment-copy p { max-width: 560px; margin: 0 0 18px; color: var(--muted); line-height: 1.7; }
.qr-payment-copy dl { display: grid; gap: 10px; margin: 0; }
.qr-payment-copy dl div { display: grid; grid-template-columns: 86px minmax(0,1fr); gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.qr-payment-copy dt { color: var(--muted); font-size: 11px; }
.qr-payment-copy dd { margin: 0; font-weight: 750; overflow-wrap: anywhere; }
.qr-payment-actions { margin-top: 18px; }
.qr-payment-code { display: grid; place-items: center; padding: 14px; background: #f7f8fa; border: 1px solid var(--line); border-radius: var(--radius); }
.qr-payment-code img { width: 100%; max-width: 230px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 4px; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.account-grid section { min-height: 280px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.account-grid h3 { margin: 0 0 22px; font-size: 16px; }
.account-grid dl { margin: 0 0 26px; }
.account-grid dl div { display: grid; grid-template-columns: 110px 1fr; padding: 11px 0; border-bottom: 1px solid var(--line); }
.account-grid dt { color: var(--muted); }
.account-grid dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.danger-zone { border-top: 3px solid var(--red) !important; }
.danger-zone p { max-width: 460px; margin: 0 0 24px; color: var(--muted); line-height: 1.7; }

.admin-nav { margin-top: 14px; border-top: 1px solid #343942; border-radius: 0 0 var(--radius) var(--radius); }
.admin-summary { grid-template-columns: repeat(4, minmax(120px, 1fr)); margin-top: 0; }
.admin-summary .metric { min-height: 112px; }
.admin-section { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line-strong); }
.admin-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.admin-section-head h3 { margin: 0; font-size: 17px; }
.admin-section-head p { margin: 6px 0 0; color: var(--muted); }
.admin-toolbar { max-width: 620px; display: grid; grid-template-columns: minmax(180px, 1fr) auto; gap: 8px; margin-bottom: 14px; }
.admin-toolbar input { margin: 0; }
.admin-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 14px; color: var(--muted); font-size: 11px; }
.admin-users-table strong, .admin-email { display: block; }
.admin-email { max-width: 280px; margin-top: 4px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.table-action { padding: 4px 0; color: var(--blue); background: transparent; border: 0; cursor: pointer; font-weight: 700; }
.status-pill.active { color: #086047; background: #dff3eb; }
.status-pill.inactive { color: #9b2630; background: #f9e3e5; }
.detail-head { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.detail-head > div:nth-child(2) { min-width: 0; }
.detail-head h3 { margin-top: 8px; overflow-wrap: anywhere; }
.detail-head p { overflow-wrap: anywhere; }
.admin-detail-balance { min-width: 110px; text-align: right; }
.admin-detail-balance span { display: block; color: var(--muted); font-size: 10px; }
.admin-detail-balance strong { display: block; margin-top: 4px; font-size: 25px; }
.admin-actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; }
.admin-action-form { min-height: 350px; padding: 22px; background: #fff; border: 1px solid var(--line); }
.admin-action-form > div:first-child { margin-bottom: 22px; }
.admin-action-form h3 { margin: 0; font-size: 16px; }
.admin-action-form p { margin: 6px 0 0; color: var(--muted); line-height: 1.6; }
.admin-records { margin-top: 34px; }
.admin-records > section { margin-top: 28px; }
.admin-records h3 { margin: 0 0 12px; font-size: 15px; }
.admin-records table { min-width: 680px; }
.credit-positive { color: var(--green); font-weight: 800; }
.credit-negative { color: var(--red); font-weight: 800; }

.modal { width: min(440px, calc(100% - 30px)); padding: 28px; color: var(--ink); background: #fff; border: 0; border-radius: 8px; box-shadow: 0 20px 70px rgba(0,0,0,.3); }
.modal::backdrop { background: rgba(10,12,16,.68); }
.compact-modal { width: min(410px, calc(100% - 30px)); }
.modal-close { position: absolute; top: 13px; right: 16px; color: var(--muted); font-size: 25px; }
.modal-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 24px; font-weight: 700; }
.modal-brand .brand-mark { width: 30px; height: 30px; color: var(--blue); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.auth-tabs button { height: 40px; color: var(--muted); background: transparent; border: 0; border-bottom: 2px solid transparent; cursor: pointer; }
.auth-tabs button.active { color: var(--ink); border-color: var(--blue); font-weight: 700; }
.modal h2 { margin: 0 0 7px; font-size: 21px; }
.modal form > p, .compact-modal > p { margin: 0 0 22px; color: var(--muted); }
.modal small { display: block; margin: -12px 0 18px; color: var(--muted); font-size: 10px; }
.terms-copy { margin-top: 16px; color: var(--muted); text-align: center; font-size: 10px; }
.terms-copy a { margin: 0 3px; color: var(--blue); }
.inline-link { display: block; margin: -10px 0 16px auto; padding: 0; color: var(--blue); background: transparent; border: 0; cursor: pointer; font-size: 11px; }
.inline-link.back-login { margin: 16px auto 0; }
.form-error { margin-top: 16px; padding: 10px 12px; color: #a22029; background: #fdecee; border-left: 3px solid var(--red); font-size: 11px; }
.toast { position: fixed; z-index: 50; top: 18px; left: 50%; min-width: 240px; max-width: calc(100% - 32px); padding: 12px 16px; color: #fff; text-align: center; background: var(--ink); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.24); transform: translateX(-50%); }

@media (max-width: 1050px) {
  .metric-grid { grid-template-columns: repeat(3, minmax(100px,1fr)); }
  .plan-grid { gap: 10px; }
  .app-shell { grid-template-columns: 200px minmax(0,1fr); }
  .audit-layout { grid-template-columns: 300px minmax(0,1fr); }
}

@media (max-width: 800px) {
  .public-header { height: 62px; padding: 0 16px; }
  .public-header nav > a { display: none; }
  .public-header nav { gap: 12px; }
  .hero { min-height: 660px; }
  .hero-content { width: calc(100% - 32px); padding: 72px 0 106px; }
  .hero h1 { font-size: 44px; }
  .hero p { font-size: 17px; }
  .proof-band { width: calc(100% - 32px); grid-template-columns: 1fr 1fr; }
  .proof-band div:nth-child(2) { border-right: 0; }
  .proof-band div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-inner { width: calc(100% - 32px); }
  .workflow { padding: 82px 0; }
  .workflow-grid, .plan-grid, .security-band, .account-grid, .admin-actions-grid, .pricing-tool-layout { grid-template-columns: 1fr; }
  .workflow-grid article, .workflow-grid article + article { min-height: 190px; padding: 26px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .security-band { gap: 48px; padding: 82px 0; }
  .public-footer { display: block; padding: 24px 16px; }
  .public-footer nav { margin-top: 16px; }

  .app-shell { display: block; }
  .app-sidebar { position: fixed; z-index: 20; left: -235px; width: 230px; transition: left .2s ease; }
  .app-sidebar.open { left: 0; box-shadow: 10px 0 30px rgba(0,0,0,.2); }
  .app-topbar { height: 72px; padding: 0 16px; }
  .mobile-menu { display: block; width: 36px; height: 36px; padding: 0; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
  .app-topbar > div:nth-child(2) { margin-right: auto; }
  .app-topbar h1 { font-size: 17px; }
  .account-summary > div { display: none; }
  .app-panel { padding: 18px 14px 44px; }
  .audit-layout { display: block; min-height: auto; }
  .audit-form { border-right: 0; border-bottom: 1px solid var(--line); }
  .audit-stage { padding: 24px 16px; }
  .audit-empty, .audit-progress, .audit-error { min-height: 350px; }
  .audit-empty > strong { font-size: 58px; }
  .result-head { display: block; }
  .result-downloads { margin-top: 17px; }
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .issue-row { grid-template-columns: 42px minmax(0,1fr); }
  .issue-row p { grid-column: 2; }
  .content-heading { display: block; }
  .content-heading > button, .content-heading .credit-balance { margin-top: 16px; }
  .credit-balance { padding: 0; border-left: 0; }
  .qr-payment-panel { grid-template-columns: 1fr; padding: 18px; }
  .qr-payment-code { justify-items: start; }
  .payment-method-choice { align-items: stretch; flex-direction: column; }
  .payment-method-toggle { width: 100%; }
  .admin-summary { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .detail-head { grid-template-columns: 1fr auto; }
  .detail-head > button { grid-column: 1 / -1; width: max-content; }
  .admin-action-form { min-height: auto; }
  .pricing-result, .pricing-placeholder { min-height: 360px; }
  .legal-page { width: calc(100% - 32px); padding-top: 34px; }
}

@media (max-width: 430px) {
  .brand { font-size: 13px; }
  .brand-mark { width: 30px; height: 30px; }
  .public-header nav { gap: 9px; }
  .hero h1 { font-size: 38px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions a, .hero-actions button { width: 100%; }
  .proof-band div { padding: 17px; }
  .section-intro h2, .security-copy h2 { font-size: 25px; }
  .public-footer > div, .public-footer nav { flex-wrap: wrap; gap: 10px 16px; }
  .admin-toolbar { grid-template-columns: 1fr; }
  .admin-toolbar button { width: 100%; }
  .form-pair, .pricing-result-meta { grid-template-columns: 1fr; }
  .pricing-result-hero strong { font-size: 34px; }
}
