@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font-sans: "Inter", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ink: #111833;
  --ink-soft: #4a526c;
  --paper: #f7f9fd;
  --white: #ffffff;
  --line: #dfe4ee;
  --line-strong: #cbd3e2;
  --primary: #4659e8;
  --primary-dark: #3040c7;
  --mint: #25c6a4;
  --mint-soft: #ddf8f1;
  --blue-soft: #e9edff;
  --amber: #f2a93b;
  --danger: #d84949;
  --success: #168868;
  --shadow-sm: 0 8px 28px rgba(17, 24, 51, .07);
  --shadow-lg: 0 28px 80px rgba(17, 24, 51, .13);
  --radius: 18px;
  --radius-sm: 11px;
  --shell: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.dialog-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.62;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--primary-dark); text-decoration: none; }
a:hover { color: var(--primary); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.375rem, 4.8vw, 4.75rem); line-height: 1.06; letter-spacing: -.025em; }
h2 { font-size: clamp(1.625rem, 2.6vw, 2.35rem); line-height: 1.16; letter-spacing: -.018em; }
h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -.01em; }
.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.narrow-shell { max-width: 790px; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid rgba(70, 89, 232, .35); outline-offset: 3px; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(203, 211, 226, .7); background: rgba(247, 249, 253, .9); backdrop-filter: blur(18px); }
.nav-shell { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 1.1875rem; font-weight: 700; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand-mark { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; place-items: center; width: 32px; height: 32px; padding: 7px; border-radius: 10px; background: var(--ink); }
.brand-mark::after { content: ""; position: absolute; left: 8px; right: 8px; top: 14px; height: 4px; border-radius: 4px; background: var(--mint); }
.brand-mark i { display: block; width: 4px; height: 18px; border-radius: 4px; background: var(--mint); }
.primary-nav { display: flex; align-items: center; gap: 26px; }
.primary-nav > a:not(.button), .nav-button { color: var(--ink-soft); font-size: .9375rem; font-weight: 600; }
.primary-nav > a:hover, .nav-button:hover { color: var(--ink); }
.inline-form { display: inline; margin: 0; }
.nav-button { border: 0; background: transparent; cursor: pointer; padding: 8px 0; }
.nav-toggle { display: none; border: 1px solid var(--line); border-radius: 9px; background: var(--white); color: var(--ink); padding: 7px 11px; font-weight: 700; }

.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--primary); border-radius: 12px; background: var(--primary); color: #fff; padding: 11px 20px; font-size: 1rem; font-weight: 700; line-height: 1.2; cursor: pointer; box-shadow: 0 8px 24px rgba(70, 89, 232, .2); transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.button:hover { color: #fff; background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 12px 32px rgba(70, 89, 232, .25); }
.button-secondary { background: var(--white); color: var(--ink); border-color: var(--line-strong); box-shadow: none; }
.button-secondary:hover { color: var(--ink); background: #f1f4fa; border-color: var(--line-strong); box-shadow: none; }
.button-small { min-height: 38px; border-radius: 9px; padding: 7px 13px; font-size: .9375rem; }
.button-full { width: 100%; }
.text-link { font-weight: 700; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 16px; color: var(--primary-dark); font-size: .8125rem; font-weight: 700; line-height: 1.4; letter-spacing: .075em; text-transform: uppercase; }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px var(--mint-soft); }

.home-hero { position: relative; overflow: hidden; padding: 84px 0 74px; background: radial-gradient(circle at 80% 5%, rgba(70, 89, 232, .13), transparent 32%), linear-gradient(180deg, #fafbff, var(--paper)); }
.home-hero::before { content: ""; position: absolute; width: 420px; height: 420px; left: -260px; bottom: -250px; border: 70px solid rgba(37, 198, 164, .07); border-radius: 50%; }
.hero-grid { display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: clamp(48px, 8vw, 105px); }
.hero-copy h1 { margin-bottom: 24px; font-weight: 700; }
.hero-copy h1 span { color: var(--primary); }
.hero-copy > p { max-width: 630px; margin-bottom: 30px; color: var(--ink-soft); font-size: 1.125rem; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 17px; margin-top: 28px; color: var(--ink-soft); font-size: .875rem; font-weight: 600; line-height: 1.45; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row span::before { content: "✓"; color: var(--success); font-weight: 700; }
.hero-tools { position: relative; padding: 18px; border: 1px solid rgba(203, 211, 226, .8); border-radius: 24px; background: rgba(255, 255, 255, .74); box-shadow: 0 18px 50px rgba(17, 24, 51, .09); backdrop-filter: blur(18px); }
.hero-tools-head { display: flex; justify-content: space-between; padding: 2px 5px 15px; color: var(--ink-soft); font-size: .8125rem; font-weight: 700; line-height: 1.4; letter-spacing: .075em; text-transform: uppercase; }
.hero-tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.section { padding-block: 88px; }
.section-tint { background: #eef2f8; border-block: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 36px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading p { max-width: 570px; margin-bottom: 0; color: var(--ink-soft); }
.compact-heading { margin-bottom: 24px; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tool-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.tool-card:hover { transform: translateY(-3px); border-color: #b9c3db; box-shadow: 0 16px 38px rgba(17, 24, 51, .1); }
.tool-card > a { display: flex; gap: 14px; height: 100%; padding: 20px; color: var(--ink); }
.tool-icon { display: grid; flex: 0 0 44px; width: 44px; height: 44px; place-items: center; border-radius: 13px; font-size: 1.4rem; font-weight: 700; }
.tool-icon-image { color: #087a66; background: var(--mint-soft); }
.tool-icon-pdf { color: #c24646; background: #ffeaea; }
.tool-card-copy { display: flex; min-width: 0; flex-direction: column; }
.tool-card-title { margin-bottom: 5px; font-size: 1.0625rem; font-weight: 700; letter-spacing: -.01em; }
.tool-card-summary { color: var(--ink-soft); font-size: .9375rem; line-height: 1.55; }
.tool-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 15px; color: var(--primary-dark); font-size: .8125rem; font-weight: 700; line-height: 1.4; }
.tool-card-access { min-width: 0; overflow-wrap: anywhere; }
.tool-card-meta b { flex: 0 0 auto; font-size: 1rem; }
.tool-card-muted { opacity: .63; }
.hero-tool-grid .tool-card > a { padding: 16px; }
.hero-tool-grid .tool-card-summary { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.value-grid, .comparison-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; }
.value-grid article { position: relative; }
.value-number { display: block; margin-bottom: 28px; color: var(--primary); font-size: .8125rem; font-weight: 700; line-height: 1.4; letter-spacing: .075em; }
.value-grid h2, .comparison-grid h2 { font-size: 1.35rem; }
.value-grid p, .comparison-grid p { margin-bottom: 0; color: var(--ink-soft); }
.cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-panel h2 { max-width: 700px; margin-bottom: 0; }

.page-hero { padding: 90px 0 70px; background: linear-gradient(135deg, #fdfdff, #eef1ff); border-bottom: 1px solid var(--line); }
.compact-hero h1 { max-width: 900px; margin-bottom: 22px; font-size: clamp(2.25rem, 4.2vw, 4rem); font-weight: 700; line-height: 1.08; }
.compact-hero p { max-width: 720px; margin-bottom: 0; color: var(--ink-soft); font-size: 1.125rem; line-height: 1.65; }
.empty-state { padding: 58px; border: 1px dashed var(--line-strong); border-radius: var(--radius); text-align: center; }
.small-empty { padding: 28px; }
.small-empty p { margin: 0; }
.prose { color: #303852; font-size: 1.0625rem; }
.prose h2 { margin: 48px 0 16px; color: var(--ink); font-size: 1.75rem; font-weight: 700; line-height: 1.2; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { line-height: 1.75; }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.compact-prose { max-width: 780px; }
.legal-prose { padding: 10px 0 20px; }
.page-updated { padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .85rem; }

.pricing-intro { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 26px; }
.pricing-intro h2 { margin-bottom: 7px; font-size: 1.7rem; }
.pricing-intro p { margin: 0; color: var(--ink-soft); }
.sandbox-badge { padding: 8px 12px; border: 1px solid #d59935; border-radius: 999px; background: #fff4dd; color: #7d4c06; font-size: .8125rem; font-weight: 700; line-height: 1.4; text-transform: uppercase; letter-spacing: .075em; }
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.price-card { position: relative; display: flex; min-height: 210px; flex-direction: column; align-items: flex-start; border: 2px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 26px; cursor: pointer; box-shadow: var(--shadow-sm); }
.price-card input { position: absolute; opacity: 0; pointer-events: none; }
.price-select { position: absolute; top: 22px; right: 22px; width: 20px; height: 20px; border: 2px solid var(--line-strong); border-radius: 50%; }
.price-card:has(input:checked) { border-color: var(--primary); box-shadow: 0 16px 42px rgba(70, 89, 232, .15); }
.price-card:has(input:checked) .price-select { border: 6px solid var(--primary); }
.price-name { color: var(--ink-soft); font-size: .9375rem; font-weight: 600; }
.price-card strong { margin-top: auto; font-size: 2.4rem; line-height: 1; letter-spacing: -.05em; }
.price-card strong small { font-size: .9rem; letter-spacing: 0; }
.price-duration { margin-top: 14px; color: var(--primary-dark); font-size: .875rem; font-weight: 650; line-height: 1.45; }
.checkout-panel { max-width: 720px; margin: 30px auto 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 24px; text-align: center; }
.checkout-panel p { color: var(--ink-soft); }

.auth-section { display: grid; min-height: 680px; place-items: center; padding-block: 70px; }
.auth-card { width: min(100%, 490px); border: 1px solid var(--line); border-radius: 24px; background: var(--white); padding: clamp(28px, 5vw, 48px); box-shadow: var(--shadow-lg); }
.auth-card h1 { margin-bottom: 12px; font-size: 2.65rem; }
.auth-card > p { color: var(--ink-soft); }
.form-stack { display: grid; gap: 18px; margin-top: 28px; }
.form-stack label, .tool-form > label, .admin-form label, .product-admin-card > label { display: grid; gap: 7px; color: var(--ink); font-size: .9375rem; font-weight: 600; }
input, select, textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--ink); padding: 11px 12px; font-size: 1rem; line-height: 1.4; outline: none; transition: border-color .16s ease, box-shadow .16s ease; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(70, 89, 232, .1); }
textarea { resize: vertical; }
.form-help { color: var(--ink-soft); font-size: .875rem; font-weight: 500; line-height: 1.5; }
.auth-switch { margin: 24px 0 0; text-align: center; font-size: .9375rem; }
.centered-card { text-align: center; }
.success-mark { display: grid; width: 58px; height: 58px; margin: 0 auto 24px; place-items: center; border-radius: 50%; background: var(--mint-soft); color: var(--success); font-size: 1.7rem; font-weight: 700; }

.account-hero { padding-bottom: 90px; }
.account-hero h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.5rem); }
.pass-card { display: inline-grid; gap: 7px; margin-top: 30px; border: 1px solid rgba(70, 89, 232, .2); border-radius: var(--radius); background: #fff; padding: 20px 24px; box-shadow: var(--shadow-sm); }
.pass-card > span { color: var(--ink-soft); font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.pass-card strong { color: var(--primary); font-size: 2rem; line-height: 1.1; }
.pass-card small { color: var(--ink-soft); }
.pass-card a { margin-top: 5px; font-size: .875rem; font-weight: 650; }
.account-grid { display: grid; grid-template-columns: 1.5fr .75fr; gap: 28px; }
.account-grid aside { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 24px; }
.account-grid aside h2 { font-size: 1.25rem; }
.ledger-list { list-style: none; margin: 0; padding: 0; }
.ledger-list li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ledger-list li:last-child { border: 0; }
.ledger-list span { text-transform: capitalize; }
.ledger-list small { display: block; color: var(--ink-soft); font-size: .875rem; line-height: 1.5; }
.positive { color: var(--success); }
.negative { color: var(--danger); }
.muted { color: var(--ink-soft); }

.tool-page-hero { padding: 55px 0 70px; background: radial-gradient(circle at 92% 8%, rgba(37, 198, 164, .11), transparent 26%), #f7f9fd; }
.tool-page-grid { display: grid; grid-template-columns: .72fr 1.28fr; align-items: center; gap: clamp(45px, 8vw, 100px); }
.tool-intro h1 { margin: 12px 0 18px; font-size: clamp(2.25rem, 4.2vw, 4rem); font-weight: 700; line-height: 1.08; }
.tool-intro > p { color: var(--ink-soft); font-size: 1.125rem; line-height: 1.65; }
.back-link { display: block; margin-bottom: 22px; color: var(--ink-soft); font-size: .875rem; font-weight: 600; line-height: 1.45; }
.access-summary { display: flex; align-items: center; gap: 10px; margin-top: 25px; font-size: .875rem; font-weight: 600; line-height: 1.45; }
.access-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px var(--mint-soft); }
.access-paid { background: var(--primary); box-shadow: 0 0 0 5px var(--blue-soft); }
.access-off { background: #9aa2b5; box-shadow: 0 0 0 5px #ebedf2; }
.tool-workspace { border: 1px solid var(--line); border-radius: 24px; background: var(--white); padding: clamp(20px, 4vw, 34px); box-shadow: var(--shadow-lg); }
.tool-form { display: grid; gap: 20px; }
.drop-zone { position: relative; display: grid; min-height: 220px; place-items: center; align-content: center; gap: 5px; border: 2px dashed #bfc7d8; border-radius: var(--radius); background: #f9faff; text-align: center; cursor: pointer; transition: border .18s ease, background .18s ease; }
.drop-zone:hover, .drop-zone.is-dragover { border-color: var(--primary); background: var(--blue-soft); }
.file-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-icon { display: grid; width: 46px; height: 46px; margin-bottom: 8px; place-items: center; border-radius: 13px; background: var(--blue-soft); color: var(--primary); font-size: 1.25rem; }
.drop-zone strong { font-size: 1.0625rem; font-weight: 700; }
.drop-zone > span:not(.drop-icon) { color: var(--ink-soft); font-size: .9375rem; font-weight: 500; }
.drop-zone small { max-width: 90%; color: var(--ink-soft); font-size: .875rem; font-weight: 500; line-height: 1.5; }
.option-grid, .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.option-field { display: grid; grid-template-columns: 1fr auto; align-items: center; }
.option-field input { grid-column: 1 / -1; padding-inline: 0; }
.range-value { color: var(--primary); }
.privacy-note { margin: -3px 0 0; color: var(--ink-soft); text-align: center; font-size: .875rem; line-height: 1.5; }
.privacy-note span { color: var(--mint); }
.workspace-message { display: flex; min-height: 350px; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.workspace-message h2 { font-size: 1.55rem; }
.workspace-message p { max-width: 410px; color: var(--ink-soft); }
.workspace-message .text-link { margin-top: 14px; }
.workspace-icon { display: grid; width: 56px; height: 56px; margin-bottom: 20px; place-items: center; border-radius: 16px; background: var(--blue-soft); color: var(--primary); font-size: 1.5rem; }
.tool-content-grid { display: grid; grid-template-columns: 1.4fr .6fr; align-items: start; gap: 75px; }
.limits-card { position: sticky; top: 100px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 24px; box-shadow: var(--shadow-sm); }
.limits-card h2 { margin-bottom: 0; font-size: 1.3rem; }
.limits-card-heading p { margin: 3px 0 0; color: var(--ink-soft); font-size: .8125rem; font-weight: 600; line-height: 1.45; text-transform: lowercase; }
.limits-card dl { margin: 18px 0; }
.limits-card dl div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.limits-card dt { color: var(--ink-soft); }
.limits-card dd { margin: 0; font-weight: 700; }
.limits-card a { font-size: .875rem; font-weight: 600; line-height: 1.45; }
.limits-card-actions { display: grid; justify-items: start; gap: 11px; }
.limits-help-link { border: 0; background: transparent; color: var(--primary-dark); padding: 0; font-size: .875rem; font-weight: 700; line-height: 1.45; text-align: left; cursor: pointer; }
.limits-help-link:hover { color: var(--primary); }
.limits-dialog { width: min(calc(100% - 28px), 720px); max-height: calc(100dvh - 32px); margin: auto; border: 1px solid var(--line); border-radius: 20px; background: var(--white); color: var(--ink); padding: 0; box-shadow: 0 32px 100px rgba(17, 24, 51, .28); }
.limits-dialog::backdrop { background: rgba(17, 24, 51, .58); backdrop-filter: blur(3px); }
.limits-dialog-content { position: relative; max-height: calc(100dvh - 34px); overflow-y: auto; padding: clamp(24px, 5vw, 40px); overscroll-behavior: contain; }
.dialog-close-form { position: absolute; top: 16px; right: 16px; margin: 0; }
.dialog-close { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); padding: 0; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.dialog-close:hover { border-color: var(--line-strong); background: var(--blue-soft); }
.limits-dialog .eyebrow { margin: 0 54px 10px 0; }
.limits-dialog h2 { margin: 0 54px 10px 0; font-size: clamp(1.65rem, 4vw, 2.25rem); }
.limits-dialog-content > p { max-width: 570px; margin-bottom: 24px; color: var(--ink-soft); }
.limit-tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(255px, 100%), 1fr)); gap: 14px; }
.limit-tier { display: flex; min-width: 0; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; background: #fafbff; padding: 20px; }
.limit-tier-paid { border-color: #cbd3ff; background: linear-gradient(180deg, #f7f8ff, #fff); }
.limit-tier-label { display: block; margin-bottom: 5px; color: var(--primary-dark); font-size: .75rem; font-weight: 700; letter-spacing: .055em; line-height: 1.4; text-transform: uppercase; }
.limit-tier h3 { margin-bottom: 0; }
.limit-tier dl { margin: 16px 0 20px; }
.limit-tier dl div { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding: 8px 0; }
.limit-tier dt { color: var(--ink-soft); font-size: .875rem; }
.limit-tier dd { margin: 0; font-size: .9375rem; font-weight: 700; }
.limit-tier .button { width: 100%; min-height: 44px; margin-top: auto; font-size: .9375rem; }
.limit-tier-note { margin: auto 0 0; color: var(--ink-soft); font-size: .875rem; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { border: 1px solid var(--line); border-radius: 12px; background: var(--white); padding: 17px 20px; }
.faq-list summary { cursor: pointer; font-weight: 700; }
.faq-list p { margin: 13px 0 0; color: var(--ink-soft); }

.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.45; }
th, td { padding: 14px 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; white-space: nowrap; }
th { color: var(--ink-soft); font-size: .8125rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
td strong, td small { display: block; }
td small { color: var(--ink-soft); font-size: .8125rem; }
.status { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; background: #edf0f6; color: #586077; font-size: .8125rem; font-weight: 600; line-height: 1.2; text-transform: capitalize; }
.status-completed { background: var(--mint-soft); color: #0e765f; }
.status-failed { background: #ffe9e9; color: #a53333; }
.status-processing, .status-creating, .status-created { background: #fff2d9; color: #85550a; }

.site-footer { border-top: 1px solid var(--line); background: #10162f; color: #bbc1d2; padding: 62px 0 25px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 55px; }
.brand-footer { color: #fff; }
.brand-footer:hover { color: #fff; }
.footer-grid p { max-width: 340px; margin-top: 18px; color: #949cb2; }
.footer-grid h2 { margin-bottom: 17px; color: #fff; font-size: .8125rem; font-weight: 700; line-height: 1.4; letter-spacing: .075em; text-transform: uppercase; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer-grid a { color: #bbc1d2; font-size: .9375rem; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); color: #747e99; font-size: .8125rem; }
.flash-stack { display: grid; gap: 8px; padding-top: 14px; }
.flash { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 11px 14px; font-size: .86rem; box-shadow: var(--shadow-sm); }
.flash-success { border-color: #aadfce; background: #ecfbf6; color: #0d6f59; }
.flash-warning { border-color: #eed49d; background: #fff8e8; color: #79500f; }
.flash-error { border-color: #edb5b5; background: #fff0f0; color: #963838; }
.error-section { display: flex; min-height: 650px; flex-direction: column; align-items: flex-start; justify-content: center; }
.error-code { color: var(--primary); font-size: 5rem; font-weight: 700; line-height: 1; }
.error-section h1 { margin: 20px 0; font-size: clamp(2.4rem, 5vw, 4.8rem); }
.error-section p { max-width: 560px; color: var(--ink-soft); }
.error-section small { display: block; margin-top: 20px; color: var(--ink-soft); }

/* Admin */
.admin-body { min-height: 100vh; background: #f0f3f8; }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 80; display: flex; width: 250px; flex-direction: column; background: #10162f; color: #fff; padding: 24px 18px; }
.admin-brand { color: #fff; padding: 0 9px 24px; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-brand:hover { color: #fff; }
.admin-brand small { margin-left: auto; border-radius: 6px; background: rgba(255,255,255,.12); padding: 3px 6px; color: #abb4cb; font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.admin-sidebar nav { display: grid; gap: 4px; margin-top: 24px; }
.admin-sidebar nav a { border-radius: 9px; color: #aeb6cc; padding: 10px 12px; font-size: .9375rem; font-weight: 600; }
.admin-sidebar nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-sidebar-bottom { display: grid; gap: 8px; margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); }
.admin-sidebar-bottom a, .admin-sidebar-bottom button { border: 0; background: none; color: #aeb6cc; padding: 6px 10px; text-align: left; font-size: .875rem; line-height: 1.4; cursor: pointer; }
.admin-content { min-height: 100vh; margin-left: 250px; }
.admin-topbar { display: flex; height: 64px; align-items: center; justify-content: flex-end; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.85); padding: 0 32px; color: var(--ink-soft); font-size: .875rem; line-height: 1.4; }
.admin-menu-toggle { display: none; }
.admin-main { width: min(calc(100% - 54px), 1380px); margin: 0 auto; padding: 38px 0 70px; }
.admin-flash { width: min(calc(100% - 54px), 1380px); margin: 0 auto; }
.admin-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.admin-heading h1 { margin-bottom: 7px; font-size: clamp(1.9rem, 3vw, 2.75rem); font-weight: 700; line-height: 1.12; }
.admin-heading p { margin-bottom: 0; color: var(--ink-soft); }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 18px; }
.metric-grid article { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 20px; box-shadow: var(--shadow-sm); }
.metric-grid span { display: block; color: var(--ink-soft); font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.metric-grid strong { display: block; margin-top: 12px; font-size: 2rem; line-height: 1; }
.admin-grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.admin-panel { margin-bottom: 18px; border: 1px solid var(--line); border-radius: 15px; background: #fff; padding: 24px; box-shadow: var(--shadow-sm); }
.table-panel { padding: 0; overflow: hidden; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.panel-heading h2 { margin: 0; font-size: 1.25rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.panel-heading p { margin: 5px 0 0; color: var(--ink-soft); font-size: .875rem; line-height: 1.5; }
.admin-definition { margin: 0; }
.admin-definition div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.admin-definition div:last-child { border-bottom: 0; }
.admin-definition dt { color: var(--ink-soft); }
.admin-definition dd { margin: 0; font-weight: 700; }
.quick-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.quick-links a { display: grid; gap: 6px; border: 1px solid var(--line); border-radius: 11px; padding: 16px; color: var(--ink); }
.quick-links a:hover { border-color: var(--primary); }
.quick-links span { color: var(--ink-soft); font-size: .875rem; line-height: 1.5; }
.table-action { border: 0; background: transparent; color: var(--primary-dark); font-weight: 700; cursor: pointer; }
.admin-form { display: grid; gap: 0; }
.form-grid .span-two { grid-column: span 2; }
.four-columns { grid-template-columns: repeat(4, 1fr); }
.compact-form-grid { grid-template-columns: minmax(220px, 340px); margin-top: 22px; }
.three-columns { grid-template-columns: repeat(3, 1fr); }
.code-field, code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.code-field { font-size: .875rem; line-height: 1.55; }
.switch { display: inline-flex !important; grid-template-columns: none !important; align-items: center; gap: 9px !important; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch > span { position: relative; display: inline-block; width: 38px; height: 22px; border-radius: 999px; background: #cbd1de; transition: background .18s ease; }
.switch > span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.18); transition: transform .18s ease; }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::after { transform: translateX(16px); }
.policy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.policy-grid article { display: grid; gap: 15px; align-content: start; border: 1px solid var(--line); border-radius: 12px; background: #f9faff; padding: 18px; }
.policy-grid p { margin: 0; color: var(--ink-soft); font-size: .875rem; line-height: 1.5; }
.processing-limit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.processing-limit-tier { min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: 12px; background: #f9faff; padding: 18px; }
.processing-limit-tier legend { padding: 0 7px; font-size: 1rem; font-weight: 700; }
.processing-limit-tier > p { margin: 0 0 16px; color: var(--ink-soft); font-size: .8125rem; line-height: 1.5; }
.processing-limit-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.processing-limit-fields label { gap: 6px; font-size: .8125rem; }
.processing-limit-fields input { padding: 9px 10px; }
.preset-control { display: flex; gap: 8px; }
.preset-control select { min-width: 170px; padding-block: 7px; }
.sticky-actions { position: sticky; z-index: 20; bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid var(--line-strong); border-radius: 13px; background: rgba(255,255,255,.94); padding: 14px 16px; box-shadow: 0 18px 45px rgba(17,24,51,.16); backdrop-filter: blur(14px); }
.sticky-actions span { color: var(--ink-soft); font-size: .875rem; line-height: 1.5; }
.toggle-list { display: grid; gap: 17px; }
.pass-adjust-form { display: grid; grid-template-columns: 115px 145px minmax(150px, 1fr) auto; align-items: center; gap: 7px; min-width: 590px; }
.pass-adjust-form input, .pass-adjust-form select { padding: 7px 8px; font-size: .8125rem; }
.product-admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 18px; }
.product-admin-card { display: grid; gap: 16px; margin: 0; }
.audit-details summary { color: var(--primary-dark); cursor: pointer; font-weight: 700; }
.audit-details pre { max-width: 420px; max-height: 240px; overflow: auto; white-space: pre-wrap; font-size: .8125rem; line-height: 1.5; }

@media (max-width: 980px) {
  .hero-grid, .tool-page-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid, .comparison-grid { gap: 28px; }
  .tool-content-grid { grid-template-columns: 1fr; gap: 35px; }
  .limits-card { position: static; }
  .footer-grid { grid-template-columns: 1.6fr repeat(2, 1fr); }
  .footer-grid > div:last-child { grid-column: 2; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .four-columns { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .policy-grid { grid-template-columns: 1fr; }
  .processing-limit-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 1rem; line-height: 1.6; }
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .site-header { position: relative; }
  .nav-shell { min-height: 64px; }
  .nav-toggle { display: block; }
  .primary-nav { position: absolute; top: 64px; left: 14px; right: 14px; z-index: 40; display: none; align-items: stretch; gap: 4px; border: 1px solid var(--line); border-radius: 13px; background: #fff; padding: 12px; box-shadow: var(--shadow-lg); }
  .primary-nav.is-open { display: grid; }
  .primary-nav > a, .nav-button { display: block; padding: 10px 11px !important; text-align: left; }
  .home-hero { padding: 58px 0; }
  .hero-copy h1 { font-size: clamp(2.5rem, 11vw, 3.5rem); line-height: 1.05; }
  .compact-hero h1, .tool-intro h1 { font-size: clamp(2.125rem, 9vw, 3.1rem); }
  h2 { font-size: clamp(1.5rem, 6vw, 2rem); }
  .hero-tool-grid, .tool-grid, .value-grid, .comparison-grid, .pricing-grid, .account-grid { grid-template-columns: 1fr; }
  .section { padding-block: 64px; }
  .section-heading, .cta-panel, .pricing-intro, .admin-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .page-hero { padding: 64px 0 50px; }
  .tool-page-hero { padding: 38px 0 52px; }
  .tool-workspace { padding: 17px; }
  .drop-zone { min-height: 185px; }
  .option-grid, .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-two { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px 25px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .admin-sidebar { transform: translateX(-105%); transition: transform .2s ease; }
  .admin-sidebar.is-open { transform: translateX(0); }
  .admin-content { margin-left: 0; }
  .admin-topbar { justify-content: space-between; padding: 0 18px; }
  .admin-menu-toggle { display: block; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 6px 10px; }
  .admin-main, .admin-flash { width: min(calc(100% - 28px), 1380px); }
  .admin-heading h1 { font-size: clamp(1.85rem, 8vw, 2.4rem); }
  .admin-grid-two, .quick-links, .product-admin-grid { grid-template-columns: 1fr; }
  .policy-grid { grid-template-columns: 1fr; }
  .processing-limit-fields { grid-template-columns: 1fr; }
  .sticky-actions { position: static; align-items: stretch; flex-direction: column; }
  .pass-adjust-form { min-width: 560px; }
  input, select, textarea, button { font-size: 1rem; }
}

@media (max-width: 480px) {
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .trust-row { display: grid; }
  .hero-tools { padding: 12px; }
  .hero-tool-grid { grid-template-columns: 1fr; }
  .metric-grid, .four-columns { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .price-card { min-height: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
