:root {
  --ink: #172133;
  --muted: #667085;
  --line: #dde3ea;
  --surface: #f5f7fa;
  --blue: #1769e0;
  --blue-dark: #0e53b9;
  --green: #137a51;
  --green-bg: #eaf7f0;
  --amber: #976400;
  --amber-bg: #fff6db;
  --red: #b42318;
  --red-bg: #fff0ee;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(19, 33, 56, .06);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body { min-height: 100vh; margin: 0; background: #fff; font-size: 15px; line-height: 1.55; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
button, input, textarea, select { font: inherit; }
button, .button { touch-action: manipulation; }
.sr-only { 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; }
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(221,227,234,.9); background: rgba(255,255,255,.95); backdrop-filter: blur(14px); }
.header-inner { width: min(1180px, calc(100% - 40px)); height: 72px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 14px; font-weight: 760; letter-spacing: .055em; white-space: nowrap; }
.brand-icon { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: white; background: var(--ink); font-size: 15px; letter-spacing: 0; }
.header-login { color: var(--ink); font-weight: 650; }
.main-nav { display: flex; align-items: center; gap: 23px; }
.main-nav > a { color: #465267; font-size: 14px; font-weight: 600; }
.main-nav > a:hover { color: var(--ink); }
.account-menu { position: relative; }
.account-menu summary { list-style: none; cursor: pointer; border-left: 1px solid var(--line); padding-left: 22px; font-size: 14px; font-weight: 650; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu > div { position: absolute; right: 0; top: calc(100% + 14px); width: 190px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.account-menu a, .account-menu button { display: block; width: 100%; padding: 9px 10px; border: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; border-radius: 7px; }
.account-menu a:hover, .account-menu button:hover { background: var(--surface); }
.nav-toggle { display: none; }
.page-shell { min-height: calc(100vh - 150px); }
.page-shell.authenticated { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 52px 0 80px; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.site-footer > div { width: min(1180px, calc(100% - 40px)); min-height: 76px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { color: var(--muted); }
.site-footer p { width: min(1180px, calc(100% - 40px)); margin: -16px auto 20px; }
.flash-wrap { position: fixed; z-index: 80; top: 84px; right: 20px; width: min(420px, calc(100% - 40px)); }
.flash { padding: 13px 16px; border: 1px solid; border-radius: 10px; box-shadow: var(--shadow); background: #fff; }
.flash.success { border-color: #a6dfc3; color: #0c6040; background: #f3fbf7; }
.flash.error, .alert { border: 1px solid #f1b7b2; color: #8e1f17; background: var(--red-bg); }
.alert { margin: 0 0 18px; padding: 12px 14px; border-radius: 9px; }
.hero { min-height: 550px; padding: 110px 20px 80px; text-align: center; background: radial-gradient(circle at 50% -15%, #edf5ff 0, #fff 56%); }
.eyebrow { margin: 0 0 12px; color: var(--blue); font-size: 11px; font-weight: 760; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 14px; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -.035em; }
h2 { margin-bottom: 12px; font-size: 21px; line-height: 1.25; letter-spacing: -.02em; }
h3 { margin-bottom: 7px; font-size: 16px; }
.hero-copy { width: min(650px, 100%); margin: 0 auto 36px; color: var(--muted); font-size: 18px; }
.verify-form { width: min(720px, 100%); margin: auto; padding: 8px; display: flex; gap: 8px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 16px 48px rgba(31,56,94,.11); }
.verify-form input { min-width: 0; flex: 1; padding: 15px 16px; border: 0; outline: 0; font-size: 16px; text-transform: uppercase; letter-spacing: .04em; }
.button { display: inline-flex; min-height: 44px; padding: 10px 17px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 9px; cursor: pointer; font-weight: 680; line-height: 1.2; transition: background-color .15s, border-color .15s, transform .15s; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: white; background: var(--blue); border-color: var(--blue); }
.button.primary:hover { color: white; background: var(--blue-dark); }
.button.secondary { color: var(--ink); background: #fff; border-color: #cfd6df; }
.button.secondary:hover { color: var(--ink); background: var(--surface); }
.button.text { color: var(--muted); background: transparent; }
.button.danger { color: var(--red); background: #fff; border-color: #e6aaa4; }
.button.danger:hover { background: var(--red-bg); }
.button.wide { width: 100%; }
.public-explainer { width: min(900px, calc(100% - 40px)); margin: -32px auto 64px; padding: 30px 34px; display: flex; gap: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.public-explainer h2 { margin-bottom: 7px; font-size: 17px; }
.public-explainer p { margin: 0; color: var(--muted); }
.info-icon { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border-radius: 50%; background: #eaf2ff; color: var(--blue); font-weight: 800; }
.trust-grid { width: min(1000px, calc(100% - 40px)); margin: 0 auto 100px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.trust-grid article > span { color: var(--blue); font-size: 12px; font-weight: 750; }
.trust-grid h3 { margin-top: 18px; }
.trust-grid p { color: var(--muted); }
.page-heading { margin-bottom: 30px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.page-heading h1 { margin-bottom: 7px; font-size: clamp(30px, 4vw, 43px); }
.page-heading p:not(.eyebrow):not(.mono) { margin: 0; color: var(--muted); }
.page-heading .mono { margin: 8px 0 0; color: var(--muted); }
.back-link { display: inline-block; margin-bottom: 24px; color: var(--muted); font-size: 14px; }
.stats-grid { margin-bottom: 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.stats-grid article { padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.stats-grid span { display: block; color: var(--muted); font-size: 13px; }
.stats-grid strong { display: block; margin-top: 10px; font-size: 30px; line-height: 1; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 2px 8px rgba(21,34,51,.025); }
.table-card { overflow: hidden; }
.section-heading { padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.section-heading h2, .section-heading p { margin-bottom: 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 12px 18px; color: var(--muted); background: #fafbfc; border-bottom: 1px solid var(--line); font-size: 11px; letter-spacing: .055em; text-transform: uppercase; white-space: nowrap; }
td { padding: 16px 18px; border-bottom: 1px solid #edf0f3; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td strong, td small { display: block; }
td small { margin-top: 3px; color: var(--muted); }
.actions { text-align: right; white-space: nowrap; }
.actions a { margin-left: 15px; font-size: 13px; font-weight: 650; }
.pill { display: inline-flex; padding: 4px 9px; border-radius: 999px; align-items: center; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill.valid { color: var(--green); background: var(--green-bg); }
.pill.updated { color: var(--amber); background: var(--amber-bg); }
.pill.revoked { color: var(--red); background: var(--red-bg); }
.pill.large { padding: 8px 13px; font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .015em; }
.hash { overflow-wrap: anywhere; font-size: 12px; }
.hash-short { font-size: 12px; }
.empty { padding: 60px 24px; text-align: center; }
.empty p { color: var(--muted); }
.search-bar { margin: 0 0 18px; display: flex; gap: 9px; }
.search-bar input { flex: 1; }
.pagination { margin-top: 25px; display: flex; justify-content: center; gap: 7px; }
.pagination a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); }
.pagination a.active { color: #fff; border-color: var(--blue); background: var(--blue); }
.narrow-page { width: min(760px, 100%); margin: 0 auto; }
.form-card { padding: 28px; }
form label { display: block; margin-bottom: 20px; color: #344054; font-size: 13px; font-weight: 650; }
input, textarea, select { width: 100%; margin-top: 7px; padding: 12px 13px; border: 1px solid #cfd6df; border-radius: 8px; outline: none; color: var(--ink); background: #fff; }
textarea { resize: vertical; line-height: 1.55; }
input:focus, textarea:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,105,224,.12); }
label small, .form-note { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; font-weight: 450; }
.optional { color: var(--muted); font-weight: 450; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: 1fr 1fr; }
fieldset { margin: 22px 0; padding: 18px; border: 1px solid var(--line); border-radius: 10px; }
legend { padding: 0 7px; font-weight: 700; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 13px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; flex: 0 0 18px; }
.check span, .check strong, .check small { display: block; }
.check small { margin-top: 3px; }
.file-drop { position: relative; min-height: 130px; margin-top: 7px; padding: 25px; display: grid; place-items: center; text-align: center; border: 1px dashed #aeb8c5; border-radius: 10px; background: #fafbfc; }
.file-drop input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.file-drop span { font-size: 15px; color: var(--ink); }
.file-drop small { margin-top: -35px; }
.file-drop.dragging { border-color: var(--blue); background: #f2f7ff; }
.button-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(260px, .8fr); gap: 20px; align-items: start; }
.detail-card { overflow: hidden; }
.details { margin: 0; padding: 8px 24px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
.details > div { padding: 15px 0; border-bottom: 1px solid #edf0f3; }
.details .wide { grid-column: 1 / -1; }
.details dt { margin-bottom: 3px; color: var(--muted); font-size: 12px; }
.details dd { margin: 0; font-weight: 590; }
.detail-card > .button-row, .privacy-note { margin: 0 24px 24px; }
.privacy-note { padding: 12px; border-radius: 8px; color: var(--muted); background: var(--surface); font-size: 13px; }
.public-versions { margin: 0 24px 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.public-versions a { padding: 9px 0; display: flex; justify-content: space-between; border-bottom: 1px solid #edf0f3; color: var(--ink); }
.public-versions small { color: var(--muted); }
.content-grid > aside { padding: 24px; }
.stacked-actions { display: grid; gap: 9px; }
.code-value { font-size: 17px; letter-spacing: .05em; }
dialog { width: min(530px, calc(100% - 30px)); padding: 0; border: 0; border-radius: var(--radius); box-shadow: 0 30px 80px rgba(10,22,40,.25); }
dialog::backdrop { background: rgba(10,22,40,.48); backdrop-filter: blur(2px); }
dialog form { padding: 28px; }
.declaration-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(330px, .8fr); gap: 20px; align-items: start; }
.signature-card { position: sticky; top: 94px; padding: 26px; }
.signature-pad { position: relative; height: 220px; overflow: hidden; border: 1px solid #bfc8d4; border-radius: 9px; background: #fff; touch-action: none; }
.signature-pad canvas { width: 100%; height: 100%; display: block; cursor: crosshair; touch-action: none; }
.signature-placeholder { position: absolute; left: 20px; right: 20px; bottom: 25px; padding-bottom: 4px; border-bottom: 1px solid #ccd3dc; color: #a1aab6; text-align: center; pointer-events: none; }
.signature-pad.has-ink .signature-placeholder { display: none; }
.signature-status { margin: 8px 0 14px; color: var(--muted); font-size: 12px; }
.signature-status.accepted { color: var(--green); font-weight: 700; }
.signature-card hr { margin: 24px 0; border: 0; border-top: 1px solid var(--line); }
.signatory-box { margin: 5px 0 20px; padding: 15px; border-radius: 9px; background: var(--surface); }
.signatory-box span, .signatory-box small { display: block; color: var(--muted); font-size: 12px; }
.signatory-box strong { display: block; margin: 4px 0; }
.alternative-signatory { margin: 0 0 20px; padding: 15px; border: 1px solid var(--line); border-radius: 9px; }
.alternative-signatory summary { cursor: pointer; font-weight: 700; }
.alternative-signatory[open] summary { margin-bottom: 18px; }
.subnav { margin: -12px 0 26px; display: flex; gap: 6px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.subnav a { padding: 10px 12px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; font-size: 13px; font-weight: 650; }
.subnav a.active { color: var(--blue); border-color: var(--blue); }
.settings-form { width: min(760px, 100%); }
.system-update { margin-top: 18px; }
.metadata { max-width: 350px; font-size: 11px; overflow-wrap: anywhere; }
.template-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; align-items: start; }
.template-preview { position: sticky; top: 94px; min-height: 460px; padding: 30px; }
.preview-body { min-height: 210px; white-space: pre-wrap; color: #344054; }
.preview-signature { padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.signature-line { width: 180px; margin-top: 42px; padding-top: 5px; border-top: 1px solid #94a0af; }
.delete-form { margin-top: 18px; }
.auth-shell { width: min(950px, calc(100% - 40px)); min-height: calc(100vh - 149px); margin: auto; padding: 80px 0; display: grid; grid-template-columns: 1fr 420px; gap: 80px; align-items: center; }
.auth-intro h1 { font-size: 45px; }
.auth-intro > p:not(.eyebrow) { color: var(--muted); font-size: 17px; }
.auth-card { padding: 30px; box-shadow: var(--shadow); }
.auth-card h2 { margin-bottom: 24px; }
.verification-header { width: min(1000px, calc(100% - 40px)); margin: 0 auto; padding: 60px 0 25px; }
.verification-header + .content-grid { width: min(1000px, calc(100% - 40px)); margin: 0 auto 90px; }
.status-panel { padding: 28px 30px; display: flex; align-items: center; gap: 20px; border: 1px solid; border-radius: var(--radius); }
.status-panel.valid { color: #0c6844; border-color: #b5dfca; background: #f3fbf7; }
.status-panel.updated { color: #835800; border-color: #eedb9f; background: #fffae9; }
.status-panel.revoked { color: #99251c; border-color: #efb5af; background: #fff4f2; }
.status-symbol { width: 50px; height: 50px; display: grid; flex: 0 0 50px; place-items: center; border: 2px solid currentColor; border-radius: 50%; font-size: 23px; font-weight: 800; }
.status-panel .eyebrow { color: currentColor; }
.status-panel h1 { margin-bottom: 4px; font-size: 30px; }
.status-panel p:last-child { margin: 0; }
.authenticity p { color: var(--muted); }
.centered-state { width: min(570px, calc(100% - 40px)); min-height: calc(100vh - 149px); margin: auto; padding: 90px 0; text-align: center; }
.centered-state > p:not(.eyebrow) { color: var(--muted); font-size: 17px; }
.state-icon { width: 64px; height: 64px; margin: 0 auto 24px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); font-size: 19px; font-weight: 800; }
.legal-copy { padding: 30px; }
.install { background: var(--surface); }
.install-shell { width: min(820px, calc(100% - 30px)); margin: auto; padding: 50px 0 80px; }
.install-shell > .wordmark { margin-bottom: 24px; }
.install-card { padding: 36px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.requirements { padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; list-style: none; }
.requirements li { padding: 8px 10px; border-radius: 7px; background: var(--surface); font-size: 13px; }
.requirements span { margin-right: 8px; font-weight: 800; }
.requirements .ok span { color: var(--green); }
.requirements .bad span { color: var(--red); }
.muted { color: var(--muted); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; padding: 8px 11px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
  .main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; padding: 18px 20px; align-items: stretch; flex-direction: column; gap: 5px; border-bottom: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav > a { padding: 8px 0; }
  .account-menu summary { border: 0; padding: 8px 0; }
  .account-menu > div { position: static; width: 100%; box-shadow: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .content-grid, .declaration-layout, .template-layout { grid-template-columns: 1fr; }
  .signature-card, .template-preview { position: static; }
  .trust-grid { grid-template-columns: 1fr; gap: 18px; }
  .auth-shell { grid-template-columns: 1fr; gap: 30px; padding: 50px 0; }
  .auth-intro { text-align: center; }
}
@media (max-width: 620px) {
  .header-inner, .site-footer > div, .site-footer p, .page-shell.authenticated { width: min(100% - 28px, 1180px); }
  .wordmark { font-size: 12px; }
  .hero { min-height: 500px; padding-top: 80px; }
  .verify-form { flex-direction: column; }
  .verify-form input { min-height: 52px; text-align: center; }
  .public-explainer { padding: 22px; }
  .public-explainer .info-icon { display: none; }
  .page-shell.authenticated { padding-top: 34px; }
  .page-heading { align-items: stretch; flex-direction: column; }
  .page-heading .button-row, .page-heading > .button { align-self: stretch; }
  .stats-grid { gap: 9px; }
  .stats-grid article { padding: 17px; }
  .stats-grid strong { font-size: 25px; }
  .section-heading { padding: 18px; align-items: flex-start; flex-direction: column; }
  th, td { padding: 13px; }
  .actions a { display: block; margin: 5px 0; }
  .grid.two, .details { grid-template-columns: 1fr; }
  .details .wide { grid-column: auto; }
  .form-card { padding: 20px; }
  .button-row .button { flex: 1; }
  .status-panel { padding: 22px; align-items: flex-start; }
  .status-symbol { width: 40px; height: 40px; flex-basis: 40px; }
  .site-footer > div { padding: 20px 0; align-items: flex-start; flex-direction: column; }
  .requirements { grid-template-columns: 1fr; }
  .install-card { padding: 23px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto!important; transition: none!important; } }
