@font-face {
  font-family: "Be Vietnam Pro";
  src: url("../fonts/be-vietnam-pro/BeVietnamPro-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Be Vietnam Pro";
  src: url("../fonts/be-vietnam-pro/BeVietnamPro-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Be Vietnam Pro";
  src: url("../fonts/be-vietnam-pro/BeVietnamPro-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Be Vietnam Pro";
  src: url("../fonts/be-vietnam-pro/BeVietnamPro-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #17212b; --muted: #5d6872; --navy: #123b5d; --navy-deep: #0a2c45; --blue: #2d6f9f;
  --blue-soft: #eaf2f7; --teal: #2f7775; --gold: #ae8843; --line: #d9e2e8; --paper: #ffffff;
  --canvas: #f4f7f9; --warm: #f0eee8; --danger: #9b2c2c; --focus: #075f91;
  --shadow: 0 14px 32px rgba(18, 59, 93, .10); --radius: 11px; --shell: min(1180px, calc(100% - 48px));
}
* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Segoe UI", Arial, sans-serif; line-height: 1.6; }
.public-body {
  --ink: #172033; --muted: #5b6676; --navy: #17478e; --navy-deep: #102f68; --blue: #315fc2;
  --blue-soft: #eef2ff; --teal: #337b78; --gold: #a97f3f; --line: #d8e0e9; --paper: #ffffff;
  --canvas: #f3f6f9; --warm: #f2efe8; --focus: #7a2fa2;
  --theme-cobalt: #174fb8; --theme-purple: #8b36a8;
  --public-accent-gradient:
    linear-gradient(rgba(8,28,68,.16), rgba(8,28,68,.16)),
    linear-gradient(105deg, #0b49b7 0%, #365cc8 48%, #c554d4 100%);
  --public-footer-gradient: linear-gradient(110deg, #082b66 0%, #24377a 52%, #5d2768 100%);
  --shadow: 0 15px 34px rgba(16, 47, 82, .11); --radius: 12px; --shell: min(1216px, calc(100% - 48px));
  font-family: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.public-body h1, .public-body h2, .public-body h3 { font-family: inherit; font-weight: 700; }
.public-body #main-content { flex: 1 0 auto; background: var(--canvas); }
.public-body [hidden] { display: none !important; }
.public-body a { color: var(--theme-cobalt); }
.public-body a:hover { color: var(--theme-purple); }
.public-body :focus-visible { outline-color: var(--focus); }
.public-body .brand,
.public-body .brand:hover { color: var(--ink); }
img { display: block; max-width: 100%; }
a { color: var(--navy); }
button, input, textarea { font: inherit; }
button, .button { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: white; padding: 10px 16px; }
.skip-link:focus { top: 16px; }
.shell { width: var(--shell); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.narrow { max-width: 820px; margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.98); border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(16,47,82,.025); }
.header-inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; min-width: 250px; text-decoration: none; color: var(--ink); }
.brand-mark { flex: 0 1 113px; width: 113px; height: 42px; object-fit: contain; object-position: left center; }
.brand span { display: grid; line-height: 1.25; }
.brand strong { font-size: .95rem; font-weight: 700; letter-spacing: -.006em; }
.brand small { color: var(--muted); margin-top: 1px; font-size: .72rem; font-weight: 500; }
.main-nav { display: flex; align-self: stretch; align-items: center; gap: 2px; }
.main-nav a { position: relative; display: grid; place-items: center; height: 100%; padding: 0 10px; color: #34414c; text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: .018em; white-space: nowrap; transition: color .18s ease, background-color .18s ease; }
.main-nav a::after { content: ""; position: absolute; inset: auto 10px -1px; height: 2px; background: transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--navy); background: #f4f7fa; }
.main-nav a[aria-current="page"]::after { background: var(--public-accent-gradient); }
.public-auth-nav { display: flex; align-self: stretch; align-items: center; gap: 2px; margin-left: 8px; padding-left: 8px; border-left: 1px solid var(--line); }
.main-nav .public-auth-link { font-size: .78rem; }
.main-nav .public-auth-link::after { display: none; }
.main-nav .public-auth-link--login { align-self: center; height: auto; min-height: 38px; margin-left: 4px; padding-inline: 12px; border-radius: 6px; background: var(--public-accent-gradient); color: white; }
.main-nav .public-auth-link--login:hover, .main-nav .public-auth-link--login[aria-current="page"] { background: var(--public-footer-gradient); color: white; }
.main-nav .public-auth-link--register[aria-current="page"] { box-shadow: inset 0 -2px var(--blue); }
.public-body .main-nav .public-auth-link--register[aria-current="page"] { box-shadow: inset 0 -2px var(--theme-purple); }
.public-auth-identity { display: flex; align-items: center; max-width: 180px; min-width: 0; padding: 5px 8px; overflow-wrap: anywhere; color: var(--navy); font-size: .78rem; font-weight: 700; line-height: 1.3; }
.public-auth-logout-form { display: flex; align-self: stretch; margin: 0; }
.public-auth-logout { align-self: center; min-height: 38px; padding: 7px 10px; border: 1px solid var(--navy); border-radius: 6px; background: white; color: var(--navy); font: inherit; font-size: .76rem; font-weight: 700; cursor: pointer; }
.public-auth-logout:hover { background: var(--blue-soft); }
.nav-toggle { display: none; min-height: 44px; border: 1px solid var(--line); background: white; color: var(--navy); padding: 8px 12px; border-radius: 7px; font-weight: 700; }
#main-content { scroll-margin-top: 70px; }
.hero { background: var(--canvas); border-bottom: 1px solid var(--line); padding: 23px 0 25px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr); gap: clamp(32px, 4vw, 58px); align-items: center; }
.hero-copy { min-width: 0; animation: hero-enter .24s ease-out both; }
.eyebrow { margin: 0 0 12px; color: var(--blue); font-size: .76rem; font-weight: 800; letter-spacing: .14em; }
h1, h2, h3 { color: var(--navy); line-height: 1.18; margin-top: 0; }
h1 { max-width: 820px; margin-bottom: 22px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.35rem, 5vw, 4.7rem); font-weight: 600; letter-spacing: -.035em; }
h2 { margin-bottom: 16px; font-size: clamp(1.65rem, 3vw, 2.55rem); font-weight: 650; letter-spacing: -.02em; }
h3 { font-size: 1.18rem; }
.hero .eyebrow { margin-bottom: 7px; font-size: .72rem; font-weight: 700; }
.hero h1 { max-width: 750px; margin-bottom: 10px; font-size: clamp(2.4rem, 3.4vw, 2.9rem); font-weight: 700; line-height: 1.09; letter-spacing: -.035em; text-wrap: balance; }
.lead { max-width: 720px; color: #465265; font-size: clamp(.98rem, 1.25vw, 1.05rem); line-height: 1.5; }
.lead p { margin: 0; }
.hero-link { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; margin-top: 8px; color: var(--navy); font-size: .85rem; font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.hero-link span { transition: transform .18s ease; }
.hero-link:hover span { transform: translateX(2px); }
.trust-list { display: flex; flex-wrap: wrap; gap: 5px 18px; margin: 5px 0 0; padding: 0; color: #566375; list-style: none; font-size: .76rem; font-weight: 500; }
.trust-list li { position: relative; padding-left: 14px; }
.trust-list li::before { content: ""; position: absolute; left: 0; top: .58em; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }

.product-stage { min-width: 0; padding: 14px; border: 1px solid #244e77; border-radius: 14px; background: var(--navy); color: white; box-shadow: 0 18px 36px rgba(16,47,82,.18); animation: hero-enter .24s .05s ease-out both; }
.stage-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 11px; }
.stage-heading span { font-size: .66rem; font-weight: 700; letter-spacing: .12em; }
.stage-heading small { color: #c9d9e8; font-size: .67rem; font-weight: 500; }
.stage-canvas { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(150px, .85fr); grid-template-rows: 1fr 1fr; gap: 9px; min-height: 154px; }
.stage-card { position: relative; min-width: 0; padding: 11px 12px; border: 1px solid rgba(255,255,255,.32); border-radius: 9px; background: #f9fbfd; color: var(--ink); box-shadow: 0 8px 18px rgba(6,28,51,.16); }
.stage-card-label { display: block; margin-bottom: 7px; color: #567083; font-size: .58rem; font-weight: 700; letter-spacing: .1em; }
.stage-card--document { grid-row: 1 / 3; display: flex; flex-direction: column; }
.stage-card--document::after { content: "DOCX"; position: absolute; top: 10px; right: 10px; padding: 2px 5px; border-radius: 3px; background: #e6eef6; color: var(--navy); font-size: .53rem; font-weight: 700; }
.document-line { display: block; height: 6px; margin: 5px 0; border-radius: 999px; background: #dce4eb; }
.document-line--long { width: 88%; }
.document-line--marked { width: 74%; background: linear-gradient(90deg, #dce4eb 0 38%, #f5d9bb 38% 63%, #dce4eb 63%); }
.document-line--short { width: 58%; }
.review-chip, .deadline-chip { display: inline-flex; align-items: center; width: fit-content; margin-top: auto; padding: 4px 7px; border-radius: 999px; font-size: .61rem; font-weight: 600; }
.review-chip { background: #e6f2ee; color: #27645f; }
.stage-card--correction { display: flex; flex-direction: column; justify-content: center; }
.correction-line { display: flex; align-items: center; gap: 6px; color: #6c7682; font-size: .72rem; white-space: nowrap; }
.correction-line del { text-decoration-color: #a94d49; text-decoration-thickness: 2px; }
.correction-line strong { color: #235f5c; font-weight: 700; }
.stage-card--correction small { margin-top: 5px; color: #697583; font-size: .57rem; line-height: 1.35; }
.stage-card--deadline { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2px 8px; }
.stage-card--deadline .stage-card-label { grid-column: 1 / -1; align-self: start; margin-bottom: 0; }
.stage-card--deadline > strong { overflow-wrap: anywhere; color: var(--navy); font-size: .69rem; line-height: 1.25; }
.deadline-chip { gap: 5px; margin-top: 0; background: #f7edda; color: #765824; white-space: nowrap; }
.deadline-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
@keyframes hero-enter { from { opacity: .01; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.section { padding: clamp(58px, 8vw, 96px) 0; }
.section-heading { display: flex; justify-content: space-between; gap: 32px; align-items: end; margin-bottom: 34px; }
.section-heading h2 { margin: 0; }
.section-heading.compact { display: block; }
.tools-section { padding: 23px 0 25px; background: var(--paper); }
.public-body[data-public-page="home"] #main-content { background: var(--public-accent-gradient); }
.public-body[data-public-page="home"] .hero,
.public-body[data-public-page="home"] .tools-section {
  background: transparent;
}
.public-body[data-public-page="home"] .hero { border-bottom: 0; box-shadow: none; }
.public-body[data-public-page="home"] .hero h1,
.public-body[data-public-page="home"] .hero .eyebrow,
.public-body[data-public-page="home"] .hero .lead,
.public-body[data-public-page="home"] .hero-link,
.public-body[data-public-page="home"] .trust-list,
.public-body[data-public-page="home"] .tools-title { color: white; }
.public-body[data-public-page="home"] .hero-link:focus-visible { outline-color: white; }
.public-body[data-public-page="home"] .trust-list li::before { background: #f7d8fa; }
.public-body[data-public-page="home"] .tool-card { background: white; }
.tools-title { margin: 0 0 15px; font-size: clamp(1.3rem, 2vw, 1.58rem); font-weight: 700; letter-spacing: -.018em; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tool-card { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 220px; padding: 17px 19px 18px; border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: var(--radius); background: #fbfdff; box-shadow: 0 5px 18px rgba(16,47,82,.06); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.tool-card--spelling { border-top-color: #6754c7; background: #fcfbff; }
.tool-card--pai { border-top-color: var(--theme-purple); background: #fffaff; }
.tool-card:hover, .tool-card:focus-within { border-color: #aebfce; box-shadow: var(--shadow); transform: translateY(-2px); }
.tool-card:active { transform: translateY(0); }
.tool-card-heading { display: block; min-width: 0; min-height: 70px; margin-bottom: 8px; }
.tool-logo { display: flex; align-items: center; width: 100%; min-width: 0; height: 68px; overflow: hidden; }
.tool-logo img { width: 190px; max-width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.tool-card--pailex .tool-logo img { width: 200px; }
.tool-card--spelling .tool-logo img { width: 180px; }
.tool-card--pai .tool-logo img { width: 250px; }
.tool-card h3 { margin: 0; font-size: 1rem; }
.tool-card p { overflow-wrap: anywhere; color: var(--muted); margin: 0 0 14px; font-size: .91rem; line-height: 1.48; }
.tool-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.capability-label { min-width: 0; color: #526775; font-size: .7rem; font-weight: 700; letter-spacing: .045em; line-height: 1.3; }
.tool-card .button { flex: 0 0 auto; min-height: 44px; margin-top: 0; padding: 8px 12px; border-color: var(--theme-cobalt); background: var(--public-accent-gradient); color: white; font-size: .82rem; font-weight: 600; gap: 8px; white-space: nowrap; }
.tool-card .button:hover { background: var(--public-footer-gradient); color: white; }
.tool-card .button:active { background: #061f31; }
.button-arrow { display: inline-block; transition: transform .18s ease; }
.button:hover .button-arrow { transform: translateX(2px); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 46px; padding: 10px 16px; border: 1px solid var(--navy); border-radius: 6px; background: transparent; color: var(--navy); font-weight: 700; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--blue-soft); }
.button.primary { background: var(--navy); color: white; }
.button.primary:hover { background: #0b304e; }
.button:disabled { cursor: not-allowed; opacity: .55; }
.button.wide { width: 100%; margin-top: 20px; }
.public-body .button:not(.text-button) { border-color: var(--theme-cobalt); color: var(--theme-cobalt); }
.public-body .button:not(.text-button):hover { border-color: var(--theme-purple); background: var(--blue-soft); color: var(--theme-purple); }
.public-body .button.primary,
.public-body .tool-card .button { border-color: var(--theme-cobalt); background: var(--public-accent-gradient); color: white; }
.public-body .button.primary:hover,
.public-body .tool-card .button:hover { border-color: var(--theme-purple); background: var(--public-footer-gradient); color: white; }
.stats-section { padding: 14px 0 18px; background: var(--canvas); border-top: 1px solid var(--line); }
.stats-title { margin: 0 0 8px; color: var(--blue); font-size: .72rem; font-weight: 700; letter-spacing: .105em; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 4px 16px rgba(16,47,82,.035); }
.stats-grid > div { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 82px; padding: 12px 16px; border-right: 1px solid var(--line); }
.stats-grid > div::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 42px; height: 3px; background: var(--blue); }
.stats-grid > div:nth-child(2)::before { background: #6754c7; }
.stats-grid > div:nth-child(3)::before { background: #8446bd; }
.stats-grid > div:nth-child(4)::before { background: #b34bc7; }
.stats-grid > div:last-child { border-right: 0; }
.stats-grid dt { order: 2; overflow-wrap: anywhere; color: var(--muted); font-size: .76rem; line-height: 1.35; }
.stats-grid dd { margin: 1px 0 5px; overflow-wrap: anywhere; color: var(--navy); font-size: clamp(1.75rem, 2.5vw, 2rem); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.public-body .page-hero, .public-body .tool-page-hero { padding: clamp(42px, 5vw, 64px) 0; background: var(--public-accent-gradient); border-bottom: 0; }
.public-body .page-hero h1,
.public-body .page-hero .eyebrow,
.public-body .page-hero .lead,
.public-body .page-hero .policy-meta,
.public-body .tool-page-hero h1,
.public-body .tool-page-hero .eyebrow,
.public-body .tool-page-hero .lead { color: white; }
.public-body .page-hero h1 { font-size: clamp(2.2rem, 4vw, 3.7rem); overflow-wrap: anywhere; text-wrap: balance; }
.public-body .page-hero + .section,
.public-body .tool-page-hero + .section,
.public-body .results-section { padding: clamp(42px, 5.5vw, 68px) 0; }
.public-body .page-hero + .section,
.public-body .tool-page-hero + .section { background: var(--canvas); }
.article { max-width: 820px; }
.prose h2 { margin: 2rem 0 .7rem; font-size: 1.55rem; }
.prose h3 { margin: 1.5rem 0 .5rem; }
.prose p, .prose ul, .prose ol { color: inherit; }
.prose a { overflow-wrap: anywhere; }
article.article-content {
  min-width: 0;
  max-width: 820px;
  font-family: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.76;
  overflow-wrap: anywhere;
}
article.article-content > :first-child { margin-top: 0; }
article.article-content > :last-child { margin-bottom: 0; }
article.article-content p { margin: 0 0 1.1rem; }
article.article-content h2 {
  margin: 2.15rem 0 .75rem;
  color: var(--navy);
  font-size: clamp(1.45rem, 2.4vw, 1.75rem);
  line-height: 1.3;
}
article.article-content h3 {
  margin: 1.65rem 0 .6rem;
  color: var(--navy);
  font-size: clamp(1.15rem, 2vw, 1.3rem);
  line-height: 1.4;
}
article.article-content ul,
article.article-content ol { margin: 0 0 1.15rem; padding-inline-start: 1.55rem; }
article.article-content li { margin: .35rem 0; padding-inline-start: .15rem; }
article.article-content blockquote {
  margin: 1.45rem 0;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--navy);
  border-radius: 0 7px 7px 0;
  background: var(--blue-soft);
  color: #29475f;
}
article.article-content blockquote > :last-child { margin-bottom: 0; }
.auth-section { min-height: 100%; padding-block: clamp(42px, 6vw, 72px); background: var(--public-accent-gradient); }
.auth-card { width: min(100%, 560px); margin-inline: auto; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-top: 5px solid var(--navy); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.public-body .auth-card { border-top-color: var(--theme-purple); }
.auth-card--register { width: min(100%, 620px); }
.public-body .auth-card h1 { max-width: none; margin-bottom: 9px; font-size: clamp(2rem, 4vw, 2.7rem); line-height: 1.15; }
.auth-intro { margin: 0 0 24px; color: var(--muted); }
.auth-alert { margin: 0 0 20px; padding: 13px 15px; overflow-wrap: anywhere; border-left: 4px solid var(--danger); background: #fbebeb; color: #6f2020; }
.auth-form { display: grid; gap: 16px; }
.auth-field { display: grid; min-width: 0; gap: 7px; }
.auth-field label { color: var(--navy); font-weight: 700; }
.auth-field label span { color: var(--muted); font-size: .84rem; font-weight: 500; }
.auth-field input { width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid #879aa9; border-radius: 6px; background: white; color: var(--ink); }
.auth-field input:hover { border-color: var(--blue); }
.auth-field input:disabled { cursor: not-allowed; background: #eef2f5; color: var(--muted); }
.auth-field input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.auth-field-help, .auth-field-error { margin: 0; overflow-wrap: anywhere; font-size: .84rem; line-height: 1.45; }
.auth-field-help { color: var(--muted); }
.auth-field-error { color: var(--danger); font-weight: 600; }
.auth-form .button { justify-content: center; margin-top: 6px; }
.auth-switch { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; }
.auth-switch a { font-weight: 700; text-underline-offset: 3px; }
.trust-advisory {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px solid #d7c587;
  border-radius: 8px;
  background: var(--warm);
}
.trust-advisory h2 { margin: 0 0 3px; color: var(--navy); font-size: 1rem; }
.trust-advisory p { max-width: 760px; margin: 0; color: #55534f; font-size: .86rem; line-height: 1.55; }
.trust-advisory nav { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 6px 14px; }
.trust-advisory a { min-height: 28px; color: var(--navy); font-size: .82rem; font-weight: 700; text-underline-offset: 3px; }
.policy-meta { margin: 18px 0 0; color: var(--muted); font-size: .86rem; font-weight: 600; }
.trust-page code { overflow-wrap: anywhere; color: var(--navy); font-family: inherit; font-size: .94em; font-weight: 600; }
.policy-table-wrap { max-width: 100%; margin: 1.25rem 0 1.6rem; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: white; }
.policy-table { min-width: 760px; }
.policy-table th, .policy-table td { width: auto; line-height: 1.55; overflow-wrap: anywhere; }
.policy-table th[scope="row"] { width: 132px; }
.policy-table tr:last-child > * { border-bottom: 0; }
.support-facts { display: grid; gap: 12px; margin: 0 0 1.2rem; }
.support-facts div { padding: 14px 16px; border-left: 4px solid var(--blue); border-radius: 0 7px 7px 0; background: var(--blue-soft); }
.support-facts dt { margin-bottom: 4px; color: var(--navy); font-weight: 800; }
.support-facts dd { margin: 0; color: #344c5d; }
.tool-title-grid { display: grid; grid-template-columns: 300px 1fr; gap: clamp(44px, 7vw, 86px); align-items: center; }
.product-lockup { height: 136px; padding: 16px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.product-lockup img { width: 100%; height: 100%; object-fit: contain; }
.public-body .tool-title-grid h1 { font-size: clamp(2.1rem, 4vw, 3.55rem); overflow-wrap: anywhere; text-wrap: balance; }
.workspace-section { background: var(--canvas); }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr); gap: 28px; align-items: start; }
.work-panel, .guide-panel, .download-card { padding: clamp(24px, 4vw, 42px); background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 5px 25px rgba(18,59,93,.05); }
.panel-heading { display: flex; gap: 16px; align-items: start; margin-bottom: 24px; }
.panel-heading > span { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: var(--public-accent-gradient); color: white; font-weight: 800; }
.panel-heading h2 { margin-bottom: 3px; font-size: 1.45rem; }
.panel-heading p { margin: 0; color: var(--muted); }
.dropzone { display: grid; place-items: center; min-height: 235px; padding: 28px; border: 2px dashed #9aabb8; border-radius: 8px; background: #fafcfd; text-align: center; cursor: pointer; }
.dropzone:hover, .dropzone.dragging { border-color: var(--blue); background: var(--blue-soft); }
.public-body .dropzone:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; border-color: var(--blue); background: var(--blue-soft); }
.dropzone[aria-disabled="true"] { cursor: not-allowed; border-color: #c5d0d7; background: #f3f6f7; color: var(--muted); opacity: .72; }
.dropzone[aria-disabled="true"]:hover { border-color: #c5d0d7; background: #f3f6f7; }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone strong { color: var(--navy); }
.dropzone small { color: var(--muted); }
.drop-icon { display: grid; place-items: center; width: 58px; height: 68px; margin-bottom: 14px; border: 2px solid var(--blue); border-radius: 5px; color: var(--blue); font-size: .7rem; font-weight: 800; }
.file-selection { margin: 14px 0 0; padding: 12px 14px; border-radius: 6px; background: var(--blue-soft); color: var(--navy); overflow-wrap: anywhere; }
.status-box, .result-box { margin-top: 20px; padding: 15px 17px; border-left: 4px solid var(--blue); background: var(--blue-soft); color: #233744; }
.status-box:not([hidden]) { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.status-box > span { min-width: 0; }
.status-action { flex: 0 0 auto; min-height: 36px; padding: 6px 12px; border-radius: 5px; background: white; font-size: .85rem; }
.status-box.error .status-action { border-color: #9b2c2c; color: #7a2525; }
.public-body #ai-form[aria-busy="true"],
.public-body #pailex-form[aria-busy="true"],
.public-body #pailex-answers[aria-busy="true"] { cursor: progress; }
.public-body #ai-form[aria-busy="true"] .dropzone,
.public-body #pailex-form[aria-busy="true"] .dropzone { cursor: progress; }
.public-body #ai-text[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.public-body #ai-drop[data-invalid="true"] { border-color: var(--danger); background: #fff5f5; }
.public-body #char-count.error { color: var(--danger); font-weight: 700; }
.public-body .status-box.success { border-color: #27724a; background: #f0f8f3; color: #205a3d; }
.public-body #pailex-human-assist h3[tabindex="-1"]:focus-visible,
.public-body #pailex-result-heading[tabindex="-1"]:focus-visible { outline-offset: 5px; border-radius: 4px; }
.pailex-reset { justify-content: center; margin-top: 10px; }
.pailex-doc-guide-link { margin-top: 10px; padding-inline: 0; }
.pailex-doc-guide { margin-top: 12px; padding: 14px 16px; border: 1px solid #c7d9e3; border-left: 4px solid var(--blue); border-radius: 7px; background: #f7fbfd; color: #314b5e; }
.pailex-doc-guide h3 { margin: 0 0 6px; color: var(--navy); font-size: 1rem; }
.pailex-doc-guide p { margin: 5px 0; }
.pailex-doc-guide ol { display: grid; gap: 5px; margin: 8px 0; padding-left: 22px; }
.pailex-doc-guide-note { font-weight: 700; }
.pailex-doc-guide .button { margin-top: 5px; }
.status-box.error { border-color: var(--danger); background: #fbebeb; color: #6f2020; }
.result-box { border: 1px solid #a8c9b5; border-left: 4px solid #27724a; background: #f0f8f3; }
.result-kicker { margin: 0 0 4px; color: #27724a; font-size: .75rem; font-weight: 800; letter-spacing: .1em; }
.result-box h3 { margin-bottom: 6px; }
.pailex-result-breakdown { display: grid; gap: 5px; margin: 13px 0; padding: 12px 14px; border: 1px solid #b8d0c1; border-radius: 6px; background: #fff; }
.pailex-result-breakdown p { margin: 0; }
.pailex-result-breakdown-note { color: #496256; font-size: .88rem; line-height: 1.55; }
#pailex-human-assist { border-color: #a8c9d7; border-left-color: var(--blue); background: #f2f8fb; }
.pailex-quick-guide { margin: 0 0 16px; padding: 13px 15px; border: 1px solid #cbdce6; border-radius: 7px; background: #f7fbfd; }
.pailex-quick-guide h3 { margin: 0 0 6px; color: var(--navy); font-size: 1rem; }
.pailex-quick-guide ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 22px; margin: 0; padding-left: 21px; color: #314b5e; font-size: .88rem; }
.pailex-quick-guide li { padding-left: 2px; }
.pailex-quick-guide code, .pailex-detailed-guide-content code { padding: 1px 4px; border-radius: 3px; background: #e9f2f7; color: var(--navy); font-family: inherit; font-size: .92em; }
.human-assist-choice-guide { margin: 12px 0 14px; padding: 12px 14px; border: 1px solid #c9dbe5; border-radius: 6px; background: #fff; }
.human-assist-choice-guide h4 { margin: 0 0 5px; color: var(--navy); font-size: .95rem; }
.human-assist-choice-guide ul { display: grid; gap: 4px; margin: 0; padding-left: 20px; color: #314957; font-size: .9rem; }
.human-assist-question { display: grid; min-inline-size: 0; gap: 9px; margin: 14px 0; padding: 14px; border: 1px solid #c9dbe5; border-radius: 6px; background: #fff; }
.human-assist-question legend { max-width: 100%; padding: 0 4px; overflow-wrap: anywhere; font-weight: 700; color: var(--navy); }
.human-assist-question label { min-width: 0; display: block; overflow-wrap: anywhere; color: #233744; }
.human-assist-answer-option { padding: 7px 9px; border-radius: 4px; transition: background-color .16s ease; }
.human-assist-answer-option:hover { background: #f3f7f9; }
.human-assist-context-card { margin: 2px 0 4px; padding: 12px; border: 1px solid #c6d9e4; border-radius: 6px; background: #f8fbfc; }
.human-assist-context-label { margin: 0 0 8px; color: #4c6e83; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.human-assist-context-excerpt, .human-assist-context-expanded { display: grid; gap: 8px; }
.human-assist-context-copy, .human-assist-context-target { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; line-height: 1.62; }
.human-assist-context-copy { padding-left: 11px; border-left: 2px solid #c5d4dd; color: #4a6070; }
.human-assist-context-target { padding: 10px 12px; border-left: 4px solid var(--blue); border-radius: 3px; background: #e8f2f7; color: #183b55; font-weight: 600; }
.human-assist-context-target mark { padding: 0 2px; border-radius: 2px; background: #ffe3a6; color: inherit; }
.human-assist-context-expanded { margin-top: 10px; padding-top: 10px; border-top: 1px solid #d4e0e7; }
.human-assist-context-toggle, .text-button { width: auto; min-height: 36px; margin-top: 10px; padding: 5px 0; border: 0; background: transparent; color: var(--navy); font: inherit; font-size: .88rem; font-weight: 700; text-align: left; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer; }
.human-assist-context-toggle:hover, .text-button:hover { background: transparent; color: var(--blue); }
.human-assist-context-error { margin: 16px 0 0; padding: 12px; border-left: 3px solid var(--danger); background: #fff5f5; color: #702727; }
.human-assist-reference { display: grid !important; gap: 5px; font-weight: 600; }
.human-assist-reference input { width: 100%; padding: 9px 10px; border: 1px solid #9db9c8; border-radius: 4px; font: inherit; }
.pailex-download-guidance { margin: 14px 0; padding: 12px 14px; border: 1px solid #bad6c4; border-radius: 6px; background: #fff; }
.pailex-download-guidance h4 { margin: 0 0 6px; color: #1c5f41; font-size: 1rem; }
.pailex-download-guidance ol { display: grid; gap: 4px; margin: 0; padding-left: 22px; color: #274a3a; }
.download-state { margin: 13px 0 0; color: #285c43; font-size: .9rem; font-weight: 600; }
#pailex-download.is-disabled { pointer-events: none; opacity: .55; }
.pailex-dialog { width: min(100% - 32px, 510px); margin: auto; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); }
.pailex-dialog::backdrop { background: rgba(10, 34, 52, .48); }
.pailex-dialog-surface { padding: 24px; background: white; }
.pailex-dialog-surface h3 { margin-bottom: 10px; }
.pailex-dialog-copy { color: #324857; }
.pailex-dialog-copy p { margin: 7px 0; }
.pailex-dialog-actions { display: flex; flex-wrap: wrap-reverse; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.pailex-dialog-actions .button { justify-content: center; min-width: 120px; }
.guide-panel details + details { border-top: 0; }
.pailex-detailed-guide-content { padding-top: 5px; color: #384c5a; font-size: .91rem; }
.pailex-detailed-guide-content h3 { margin: 14px 0 6px; font-size: 1rem; }
.pailex-detailed-guide-content ul { margin: 6px 0; padding-left: 20px; }
.pailex-detailed-guide-content li { margin: 4px 0; }
.privacy-note { margin: 20px 0 0; color: var(--muted); font-size: .85rem; }
.guide-panel details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; }
.guide-panel summary { color: var(--navy); font-weight: 700; cursor: pointer; }
.responsibility-note { margin-top: 26px; padding: 18px; background: var(--warm); border-radius: 7px; }
.responsibility-note p { margin: 4px 0 0; color: #55534f; font-size: .92rem; }
.mode-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.mode-tab { padding: 12px; border: 0; border-bottom: 3px solid transparent; background: white; color: var(--muted); cursor: pointer; font-weight: 700; }
.public-body .mode-tab:hover { background: var(--blue-soft); color: var(--theme-cobalt); }
.public-body .mode-tab.active,
.public-body .mode-tab[aria-selected="true"] { border-color: var(--theme-purple); color: var(--theme-cobalt); }
label[for="ai-text"] { display: block; margin-bottom: 8px; color: var(--navy); font-weight: 700; }
textarea { width: 100%; resize: vertical; border: 1px solid #98a8b4; border-radius: 7px; padding: 14px; color: var(--ink); }
.input-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: .82rem; }
.check-list { padding-left: 22px; }
.check-list li { margin-bottom: 10px; }
.results-section { background: white; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { padding: 15px 17px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--navy); color: white; font-size: .84rem; letter-spacing: .02em; }
td { width: 50%; }
.empty-state { padding: 24px; border: 1px solid var(--line); background: var(--canvas); }
.public-body .ai-results-table { min-width: 860px; table-layout: fixed; }
.public-body .ai-results-table th:nth-child(1), .public-body .ai-results-table td:nth-child(1),
.public-body .ai-results-table th:nth-child(4), .public-body .ai-results-table td:nth-child(4) { width: 28%; }
.public-body .ai-results-table th:nth-child(2), .public-body .ai-results-table td:nth-child(2),
.public-body .ai-results-table th:nth-child(3), .public-body .ai-results-table td:nth-child(3) { width: 22%; }
.ai-result-location { display: block; color: var(--navy); }
.ai-result-context, .ai-result-reason { margin: .45rem 0 0; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.ai-result-context mark.ai-result-highlight { padding: 0 .08em; border-radius: 2px; background: #ffd9df; color: #762334; text-decoration: underline; text-decoration-color: #b4233c; text-decoration-thickness: 2px; text-underline-offset: 2px; }
.ai-result-original, .ai-result-suggestion { display: block; max-width: 100%; padding: 9px 10px; border-left: 3px solid; white-space: pre-wrap; overflow-wrap: anywhere; }
.ai-result-original { border-color: var(--danger); background: #fff1f1; color: #872323; }
.ai-result-suggestion { border-color: #27724a; background: #eef8f2; color: #175737; }
.ai-result-category { display: inline-flex; max-width: 100%; padding: 4px 9px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: .78rem; font-weight: 800; white-space: normal; overflow-wrap: anywhere; }
.pai-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 28px; align-items: start; }
.public-body .pai-layout > *, .public-body .download-card, .public-body .release-meta, .public-body .release-meta div, .public-body .release-meta dd { min-width: 0; }
.public-body #ai-results-section td { overflow-wrap: anywhere; }
.pai-preview { display: grid; place-items: center; min-height: 430px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--canvas); text-align: center; color: var(--muted); }
.pai-preview img { width: 100%; max-height: 420px; object-fit: contain; }
.pai-preview span { align-self: end; font-size: .76rem; letter-spacing: .1em; font-weight: 800; }
.pai-preview strong { align-self: start; color: var(--navy); }
.product-page-illustration { margin: 0 0 22px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--canvas); }
.product-page-illustration img { display: block; width: 100%; max-height: 260px; object-fit: contain; }
.test-badge { margin: -12px -12px 24px; padding: 10px; background: #fff2cc; border: 1px solid #d9b651; color: #694f00; font-size: .76rem; font-weight: 800; text-align: center; }
.availability-label { color: var(--danger); font-size: .76rem; font-weight: 800; letter-spacing: .1em; }
.release-meta { margin: 0; }
.release-meta div { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.release-meta dt { color: var(--muted); }
.release-meta dd { margin: 0; overflow-wrap: anywhere; color: var(--navy); font-weight: 700; text-align: right; }
.public-body .release-meta .digest { display: inline-block; max-width: 100%; white-space: normal; overflow-wrap: anywhere; word-break: break-all; }
.installation-guide { margin-top: 28px; }
.installation-guide h3 { font-size: 1rem; }
.visual-guide { min-width: 0; margin: 22px 0; padding: 18px; border: 1px solid #c7d9e3; border-radius: 8px; background: #f7fbfd; }
.visual-guide > h3 { margin: 0 0 8px; color: var(--navy); font-size: 1.08rem; }
.visual-guide > p { margin: 0 0 16px; }
.visual-guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.visual-guide-grid > li { min-width: 0; }
.visual-guide-figure { display: flex; min-width: 0; height: 100%; margin: 0; padding: 12px; flex-direction: column; border: 1px solid var(--line); border-radius: 7px; background: white; }
.visual-guide-figure h4 { margin: 0 0 10px; color: var(--blue); font-size: .82rem; letter-spacing: .04em; }
.visual-guide-figure img { display: block; width: auto; max-width: 100%; height: auto; max-height: 420px; margin: 0 auto; object-fit: contain; }
.visual-guide-figure figcaption { margin-top: 10px; overflow-wrap: anywhere; color: #314b5e; font-size: .88rem; line-height: 1.5; }
.visual-guide--single .visual-guide-figure { width: min(100%, 520px); height: auto; margin-inline: auto; }
.site-footer { border-top: 3px solid #a94bbd; padding: 23px 0 25px; background: var(--public-footer-gradient); color: #e5e9f7; font-size: .8rem; }
.site-footer :focus-visible { outline-color: #f1c7ff; }
.footer-grid { display: grid; grid-template-columns: 1.05fr 1.25fr .9fr; align-items: start; gap: clamp(28px, 4vw, 54px); }
.footer-grid--without-contact { grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); }
.footer-grid > * { min-width: 0; }
.footer-grid h2 { margin: 0 0 8px; color: white; font-size: .78rem; font-weight: 700; letter-spacing: .035em; }
.footer-brand-lockup { display: flex; align-items: center; gap: 11px; }
.footer-brand-lockup img { flex: 0 1 113px; width: 113px; height: 42px; border-radius: 8px; background: white; object-fit: contain; object-position: left center; }
.footer-brand h2 { margin-bottom: 3px; font-size: .9rem; letter-spacing: 0; }
.footer-brand p, .footer-managed-content p { margin: 0; }
.footer-managed-content { overflow-wrap: anywhere; color: #c9d8e2; line-height: 1.42; }
.footer-managed-content > :first-child { margin-top: 0; }
.footer-managed-content > :last-child { margin-bottom: 0; }
.footer-managed-content a, .footer-links a { color: white; text-underline-offset: 3px; }
.public-body .footer-managed-content a:hover,
.public-body .footer-links a:hover { color: #f1c7ff; }
.footer-links > div { display: flex; flex-wrap: wrap; gap: 7px 15px; }
.footer-links a { min-height: 26px; font-weight: 500; }

.public-help-launcher { position: fixed; z-index: 70; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 13px 8px 9px; border: 1px solid #9eb6c7; border-radius: 999px; box-shadow: 0 10px 30px rgba(8, 40, 64, .24); background: white; color: var(--navy); font: inherit; font-size: .84rem; font-weight: 800; cursor: pointer; }
.public-help-launcher:hover { border-color: var(--blue); background: var(--blue-soft); }
.public-help-launcher.is-avoiding-control { visibility: hidden; opacity: 0; pointer-events: none; }
.public-help-launcher img { width: 30px; height: 30px; object-fit: contain; border: 1px solid #d7e2ea; border-radius: 9px; background: white; }
.public-help-panel { position: fixed; z-index: 72; right: max(18px, env(safe-area-inset-right)); bottom: calc(max(18px, env(safe-area-inset-bottom)) + 60px); width: min(370px, calc(100vw - 36px)); max-height: calc(100dvh - 110px); padding: 20px; overflow: auto; border: 1px solid #9eb6c7; border-radius: 14px; box-shadow: 0 18px 48px rgba(8, 40, 64, .28); background: white; color: var(--ink); }
.public-help-heading, .satisfaction-survey-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.public-help-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.public-help-mascot { flex: 0 0 64px; width: 64px; height: 64px; object-fit: contain; border: 1px solid #d7e2ea; border-radius: 14px; background: white; }
.public-help-heading h2, .satisfaction-survey-heading h2 { margin: 2px 0 0; font-size: clamp(1.2rem, 2.5vw, 1.55rem); }
.public-help-heading .eyebrow, .satisfaction-survey-heading .eyebrow { margin: 0; }
.public-help-close { flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--navy); font: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.public-help-close:hover { border-color: var(--blue); background: var(--blue-soft); }
.public-help-copy { margin: 16px 0; color: var(--muted); }
.public-help-copy p { margin: 0; }
.public-help-links { display: grid; gap: 8px; }
.public-help-links a { display: flex; align-items: center; min-height: 44px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 7px; color: var(--navy); font-weight: 700; text-decoration: none; }
.public-help-links a:hover { border-color: var(--blue); background: var(--blue-soft); }

.satisfaction-survey-dialog { width: min(590px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; overflow: auto; border: 0; border-radius: 15px; box-shadow: 0 22px 70px rgba(8, 40, 64, .34); color: var(--ink); }
.satisfaction-survey-dialog::backdrop { background: rgba(8, 35, 54, .58); }
.satisfaction-survey-surface { display: grid; gap: 18px; padding: 26px; }
.satisfaction-survey-surface fieldset { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.survey-choice { display: flex; align-items: flex-start; gap: 11px; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.survey-choice:hover, .survey-choice:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.survey-choice input { flex: 0 0 auto; width: 20px; height: 20px; margin: 1px 0 0; }
.survey-choice span { min-width: 0; overflow-wrap: anywhere; }
.survey-other { display: grid; gap: 7px; }
.survey-other input { width: 100%; min-height: 46px; }
.survey-other small, .survey-note { color: var(--muted); }
.survey-note { margin: 0; font-size: .88rem; }
.tool-quota-status { margin: 0 0 14px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--canvas); color: var(--navy); font-size: .88rem; }
.tool-quota-explanation { margin: -7px 0 14px; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.tool-quota-gate { margin-top: 14px; padding: 16px; border: 1px solid #d9b651; border-radius: 8px; background: #fff8df; }
.tool-quota-gate p { margin: 0 0 11px; }
.tool-quota-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-quota-actions a { min-height: 44px; }

@media (max-width: 1120px) {
  .public-body { --shell: min(100% - 36px, 900px); }
  .header-inner { flex-wrap: wrap; min-height: 62px; padding: 8px 0; }
  .nav-toggle { display: block; }
  .main-nav { display: none; width: 100%; align-items: stretch; flex-direction: column; padding-bottom: 12px; }
  .main-nav.open { display: flex; }
  .main-nav a { min-height: 44px; justify-content: start; padding: 0 8px; }
  .main-nav a::after { inset: auto 8px 0; }
  .public-auth-nav { width: 100%; align-items: stretch; flex-direction: column; margin: 8px 0 0; padding: 8px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .main-nav .public-auth-link--login { align-self: stretch; min-height: 44px; margin: 0; border-radius: 0; }
  .main-nav .public-auth-link--register[aria-current="page"] { box-shadow: inset 3px 0 var(--blue); }
  .public-auth-identity { max-width: none; min-height: 44px; padding: 8px; }
  .public-auth-logout-form { width: 100%; }
  .public-auth-logout { align-self: auto; justify-content: flex-start; width: 100%; min-height: 44px; padding: 8px; border-radius: 0; text-align: left; }
  .tool-title-grid { grid-template-columns: 230px 1fr; }
  .workspace-grid, .pai-layout { grid-template-columns: 1fr; }
  .guide-panel { order: 2; }
}
@media (max-width: 920px) {
  .hero { padding: 24px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .product-stage { width: min(100%, 680px); }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-card:last-child { grid-column: 1 / -1; width: calc(50% - 8px); justify-self: center; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid > div:nth-child(2) { border-right: 0; }
  .stats-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px 36px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid--without-contact .footer-brand { grid-column: auto; }
}
@media (max-width: 680px) {
  .public-body { --shell: calc(100% - 28px); }
  .header-inner { column-gap: 10px; }
  .brand { flex: 1 1 0; min-width: 0; }
  .brand span { min-width: 0; }
  .brand small { display: none; }
  .brand strong { font-size: .78rem; line-height: 1.2; }
  .brand-mark { flex-basis: 96px; width: 96px; height: 36px; }
  .public-help-launcher { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); min-width: 48px; padding: 8px; }
  .public-help-launcher span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .public-help-panel { right: max(12px, env(safe-area-inset-right)); left: max(12px, env(safe-area-inset-left)); bottom: calc(max(12px, env(safe-area-inset-bottom)) + 60px); width: auto; max-height: calc(100dvh - max(96px, env(safe-area-inset-top) + env(safe-area-inset-bottom) + 76px)); padding: 17px; }
  .satisfaction-survey-dialog { width: calc(100% - max(20px, env(safe-area-inset-left) + env(safe-area-inset-right))); max-height: calc(100dvh - max(20px, env(safe-area-inset-top) + env(safe-area-inset-bottom))); }
  .satisfaction-survey-surface { gap: 15px; padding: 18px; }
  .tool-quota-actions { display: grid; }
  .tool-quota-actions .button { width: 100%; }
  .nav-toggle { flex: 0 0 auto; padding-inline: 9px; font-size: .84rem; }
  .hero h1 { font-size: clamp(2rem, 10vw, 2.35rem); }
  .lead { font-size: 1rem; }
  .hero-link { min-height: 44px; }
  .trust-list { gap: 4px 14px; font-size: .78rem; }
  .stage-heading { align-items: flex-start; flex-direction: column; gap: 2px; }
  .stage-canvas { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto; min-height: 0; }
  .stage-card--document { grid-column: 1 / -1; grid-row: auto; min-height: 105px; }
  .stage-card--correction, .stage-card--deadline { min-height: 92px; }
  .stage-card--deadline { grid-template-columns: 1fr; }
  .stage-card--deadline .stage-card-label { grid-column: auto; }
  .deadline-chip { justify-self: start; }
  .tools-section { padding-top: 18px; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card:last-child { grid-column: auto; width: 100%; }
  .tool-card { min-height: 226px; }
  .tool-card p { font-size: 1rem; }
  .tool-card-footer { flex-wrap: wrap; }
  .trust-advisory { align-items: flex-start; flex-direction: column; gap: 12px; padding: 14px; }
  .trust-advisory nav { justify-content: flex-start; }
  .trust-advisory a { display: inline-flex; align-items: center; min-height: 44px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid > div { min-height: 92px; }
  .work-panel, .guide-panel, .download-card { padding: 22px; }
  .public-body .page-hero, .public-body .tool-page-hero { padding-block: 36px; }
  .public-body .page-hero + .section,
  .public-body .tool-page-hero + .section,
  .public-body .results-section { padding-block: 38px; }
  .tool-title-grid { gap: 26px; }
  .tool-title-grid { grid-template-columns: 1fr; }
  .product-lockup { height: 104px; }
  .mode-tabs { grid-template-columns: 1fr; }
  .input-meta { align-items: start; flex-direction: column; }
  .pai-preview { min-height: 280px; }
  .public-body .release-meta div { align-items: flex-start; flex-direction: column; gap: 4px; }
  .public-body .release-meta dd { width: 100%; text-align: left; }
  .public-body #ai-results-section .table-wrap { overflow: visible; border: 0; border-radius: 0; }
  .public-body #ai-results-section .ai-results-table { min-width: 0; table-layout: auto; }
  .public-body #ai-results-section thead { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
  .public-body #ai-results-section tbody { display: grid; gap: 12px; }
  .public-body #ai-results-section tr { display: block; border: 1px solid var(--line); border-radius: 8px; background: white; overflow: hidden; }
  .public-body #ai-results-section td { display: block; width: 100%; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .public-body #ai-results-section td:last-child { border-bottom: 0; }
  .public-body #ai-results-section td::before { content: attr(data-label); display: block; margin-bottom: 4px; color: var(--blue); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
  .footer-grid { grid-template-columns: 1fr; gap: 18px; }
  .footer-brand { grid-column: auto; }
  .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .pailex-quick-guide { padding: 12px; }
  .pailex-quick-guide ol { grid-template-columns: 1fr; gap: 8px; font-size: .92rem; }
  .human-assist-question { padding: 12px; }
  .human-assist-choice-guide { padding: 11px; }
  .human-assist-context-card { padding: 10px; }
  .human-assist-context-target { padding: 9px 10px; }
  .pailex-download-guidance { padding: 11px; }
  .visual-guide { padding: 14px; }
  .visual-guide-grid { grid-template-columns: 1fr; }
  .visual-guide-figure { padding: 10px; }
  .pailex-dialog-surface { padding: 20px; }
  .pailex-dialog-actions .button { width: 100%; }
  .status-box:not([hidden]) { align-items: flex-start; flex-direction: column; }
  .status-action { width: 100%; min-height: 44px; justify-content: center; }
  .human-assist-answer-option { display: flex; align-items: center; min-height: 44px; }
  .human-assist-context-toggle, .text-button { min-height: 44px; }
  article.article-content { font-size: .98rem; line-height: 1.72; }
  article.article-content h2 { margin-top: 1.8rem; }
  article.article-content blockquote { padding: .9rem 1rem; }
  .auth-section { padding-block: 34px; }
  .auth-card { padding: 22px 20px; }
  .policy-table-wrap { overflow: visible; border: 0; border-radius: 0; background: transparent; }
  .policy-table { display: block; min-width: 0; }
  .policy-table thead { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
  .policy-table tbody { display: grid; gap: 14px; }
  .policy-table tr { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: white; }
  .policy-table th[scope="row"], .policy-table td { display: block; width: 100%; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .policy-table th[scope="row"] { background: var(--navy); color: white; }
  .policy-table td:last-child { border-bottom: 0; }
  .policy-table td::before { display: block; margin-bottom: 4px; color: var(--blue); font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
  .policy-table td:nth-of-type(1)::before { content: "Dữ liệu và mục đích"; }
  .policy-table td:nth-of-type(2)::before { content: "Luồng xử lý và dữ liệu còn lại"; }
}
@supports selector(body:has(form:focus-within)) {
  @media (max-width: 680px) {
    .public-body:has(main form:focus-within) .public-help-launcher:not([aria-expanded="true"]) { opacity: 0; pointer-events: none; transform: translateY(120%); }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .tool-card, .hero-link span, .button-arrow { transform: none !important; }
  .public-help-launcher, .public-help-panel, .satisfaction-survey-dialog { scroll-behavior: auto; }
}
