:root {
    --paper: #f4f6f8;
    --white: #ffffff;
    --ink: #17202a;
    --muted: #65717d;
    --line: #d9dfe5;
    --line-dark: #bfc8d1;
    --navy: #111c27;
    --navy-2: #1a2835;
    --blue: #1265d6;
    --blue-dark: #0a4da9;
    --green: #16865e;
    --red: #b4233b;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--blue-dark); }
code, pre { font-family: var(--mono); }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.topbar { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(244,246,248,.95); backdrop-filter: blur(12px); }
.topbar-inner { min-height: 132px; padding: 10px 0 13px; display: grid; grid-template-columns: minmax(190px,340px) minmax(0,1fr) auto; grid-template-areas: "brand nav lang" "state state state" "buffers buffers buffers"; gap: 8px 20px; align-items: center; }
.brand { grid-area: brand; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--mono); font-size: .84rem; font-weight: 700; }
.brand-glyph { padding: 5px 6px; color: var(--white); background: var(--navy); font-size: .65rem; letter-spacing: -.06em; }
.menu-toggle { grid-area: menu; min-height: 38px; padding: 0 11px; display: none; align-items: center; gap: 8px; color: var(--ink); border: 1px solid var(--line-dark); background: var(--white); font-family: var(--mono); font-size: .68rem; font-weight: 700; cursor: pointer; }
.menu-toggle > span:first-child { width: 1.1em; display: block; font-size: 1rem; line-height: 1; text-align: center; }
.menu-toggle > span:first-child::before { content: "☰"; }
.menu-toggle[aria-expanded="true"] > span:first-child::before { content: "×"; }
nav { grid-area: nav; display: flex; justify-content: flex-end; gap: 24px; }
nav a { color: var(--muted); text-decoration: none; font-family: var(--mono); font-size: .71rem; }
nav a:hover { color: var(--ink); }
.language-switch { grid-area: lang; justify-self: end; display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line-dark); background: var(--white); }
.language-switch a { min-width: 32px; min-height: 28px; padding: 4px 6px; display: grid; place-items: center; color: var(--muted); font-weight: 700; }
.language-switch a:hover, .language-switch a:focus-visible { color: var(--ink); background: #edf2f6; }
.language-switch a[aria-current="page"] { color: var(--white); background: var(--navy); }
.service-state { grid-area: state; justify-self: center; width: min(100%,920px); min-width: 0; display: flex; align-items: center; gap: 9px; color: #4f5d69; font-family: var(--mono); font-size: .76rem; line-height: 1.35; }
.service-state span { min-width: 0; overflow-wrap: anywhere; }
.service-state i { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: #96a0aa; }
.service-state[data-state="ok"] i { background: var(--green); box-shadow: 0 0 0 3px rgba(22,134,94,.11); }
.service-state[data-state="error"] i { background: var(--red); }
.buffer-monitor { grid-area: buffers; justify-self: center; width: min(100%,920px); padding: 8px 10px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; border: 1px solid transparent; background: transparent; cursor: pointer; transition: background-color .18s ease,border-color .18s ease,box-shadow .18s ease; }
.buffer-monitor:hover { border-color: #cbd7e1; background: rgba(18,101,214,.055); }
.buffer-monitor:focus-visible { border-color: #7faee8; outline: 0; background: rgba(18,101,214,.07); box-shadow: 0 0 0 3px rgba(18,101,214,.13); }
.buffer-monitor[data-refreshing="true"] { border-color: #a9c5e7; background: rgba(18,101,214,.09); }
.buffer-meter { min-width: 0; display: grid; grid-template-columns: 35px minmax(0,1fr); gap: 12px; align-items: center; }
.buffer-icon { width: 32px; height: 32px; fill: none; stroke: #465b6d; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.buffer-meter-body { min-width: 0; }
.buffer-meter-label { min-width: 0; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-family: var(--mono); font-size: .67rem; }
.buffer-meter-label strong { color: #263947; font-size: .71rem; letter-spacing: .08em; }
.buffer-meter-label span { min-width: 0; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.buffer-track { height: 10px; margin-top: 5px; overflow: hidden; border: 1px solid #aebbc5; background: #dde3e8; }
.buffer-track i { width: 0; height: 100%; display: block; background: linear-gradient(90deg,#1265d6,#39a3ff); transition: width .35s ease; }
.buffer-meter:last-child .buffer-track i { background: linear-gradient(90deg,#16865e,#5abf92); }
.buffer-meter[data-enabled="false"] { opacity: .58; }

.hero { padding: 84px 0 76px; display: grid; grid-template-columns: .85fr 1.15fr; gap: 82px; align-items: center; }
.hero > * { min-width: 0; }
.kicker { margin: 0 0 13px; color: var(--blue-dark); font-family: var(--mono); font-size: .68rem; font-weight: 700; letter-spacing: .12em; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: clamp(3.8rem, 7.2vw, 6.5rem); font-weight: 650; letter-spacing: -.065em; line-height: .9; }
h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 650; letter-spacing: -.045em; line-height: 1.02; }
h3 { margin: 0; font-size: 1rem; }
.lead { max-width: 560px; margin: 28px 0; color: var(--muted); font-size: 1rem; }
.hero-specs { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1px solid var(--line-dark); }
.hero-specs div { padding: 13px 0; border-bottom: 1px solid var(--line); }
.hero-specs div:nth-child(odd) { border-right: 1px solid var(--line); }
.hero-specs div:nth-child(even) { padding-left: 18px; }
.hero-specs dt { color: var(--muted); font-family: var(--mono); font-size: .61rem; text-transform: uppercase; }
.hero-specs dd { margin: 3px 0 0; font-family: var(--mono); font-size: .76rem; font-weight: 700; }

.endpoint-card { padding: 30px; color: #e9eef3; border: 1px solid #273644; background: var(--navy); box-shadow: 0 20px 60px rgba(22,32,42,.16); scroll-margin-top: 120px; }
.card-title-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.path-label { color: #8494a3; font-family: var(--mono); font-size: .61rem; letter-spacing: .11em; }
.endpoint-card h2 { margin-top: 4px; font-size: 1.2rem; letter-spacing: -.02em; }
.method { padding: 5px 8px; color: #8df0c6; border: 1px solid #315e4c; background: #172b25; font-family: var(--mono); font-size: .62rem; font-weight: 700; }
.endpoint-card label { display: block; margin: 17px 0 7px; color: #aab6c0; font-family: var(--mono); font-size: .66rem; }
.amount-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.input-unit { position: relative; }
.input-unit input { padding-right: 64px; }
.input-unit span { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: #758493; font-family: var(--mono); font-size: .65rem; pointer-events: none; }
.amount-row output { min-width: 105px; color: #acb8c3; font-family: var(--mono); font-size: .67rem; text-align: right; }
input, select { width: 100%; min-height: 44px; padding: 0 12px; color: var(--ink); border: 1px solid var(--line-dark); border-radius: 0; outline: 0; background: var(--white); }
input:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(18,101,214,.11); }
.endpoint-card input { color: #eef3f7; border-color: #40505e; background: #0c151e; }
.quick-values { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.quick-values button, table button, .result-header button { padding: 6px 9px; color: var(--muted); border: 1px solid var(--line-dark); background: transparent; font-family: var(--mono); font-size: .62rem; cursor: pointer; }
.endpoint-card .quick-values button { color: #96a5b3; border-color: #394957; }
.quick-values button:hover, .quick-values button.active { color: var(--blue-dark); border-color: var(--blue); background: #edf5ff; }
.endpoint-card .quick-values button:hover, .endpoint-card .quick-values button.active { color: #dceaff; border-color: #4e81b8; background: #182b3d; }
.copy-field { display: grid; grid-template-columns: 1fr auto; }
.copy-field input { min-width: 0; font-family: var(--mono); font-size: .7rem; }
.copy-field button { padding: 0 14px; color: #071625; border: 1px solid #71aaf0; background: #8ec1ff; font-family: var(--mono); font-size: .67rem; font-weight: 700; cursor: pointer; }
.copy-field button:hover { background: #a7ceff; }
.primary-actions { display: grid; grid-template-columns: 1fr; gap: 9px; margin-top: 18px; }
.button { min-height: 43px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 0; text-decoration: none; font-family: var(--mono); font-size: .68rem; font-weight: 700; cursor: pointer; }
.button.primary { color: var(--white); border-color: var(--blue); background: var(--blue); }
.button.primary:hover { border-color: var(--blue-dark); background: var(--blue-dark); }
.button:disabled { opacity: .55; cursor: wait; }
.button.secondary { color: var(--ink); border-color: var(--line-dark); background: var(--white); }
.endpoint-card .button.secondary { color: #dce4eb; border-color: #435463; background: transparent; }
.command-block { position: relative; min-width: 0; margin-top: 16px; }
.command-block .command { margin: 0; padding-right: 86px; }
.command { margin: 16px 0 0; padding: 12px; overflow-x: auto; color: #b6c5d1; border: 1px solid #31414f; background: #0a121a; font-size: .65rem; line-height: 1.6; }
.block-copy { position: absolute; top: 8px; right: 8px; z-index: 1; min-height: 28px; padding: 4px 9px; color: #dceaff; border: 1px solid #4e81b8; background: #182b3d; font-family: var(--mono); font-size: .6rem; font-weight: 700; cursor: pointer; }
.block-copy:hover { color: var(--white); border-color: #77a9de; background: #23415d; }
.block-copy.light { color: var(--blue-dark); border-color: #9dbbd8; background: #e8f2fb; }
.block-copy.light:hover { color: #073e83; border-color: #6f9bc5; background: #d7eafb; }
.block-copy:disabled { opacity: .55; cursor: wait; }
.micro-note { margin: 10px 0 0; color: #758493; font-family: var(--mono); font-size: .61rem; }

.pipeline-wrap { padding: 32px 0 36px; color: #e9eef3; border-block: 1px solid #263746; background: var(--navy); }
.section-label { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.section-label span { color: #7da9d8; font-family: var(--mono); font-size: .61rem; letter-spacing: .13em; }
.section-label p { margin: 0; color: #9aa8b4; font-size: .78rem; }
.pipeline { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr; gap: 12px; align-items: center; }
.pipeline div { min-height: 82px; padding: 12px; border: 1px solid #354654; background: var(--navy-2); }
.pipeline span, .explanation-grid article > span { display: block; color: #6e9fd2; font-family: var(--mono); font-size: .58rem; }
.pipeline strong { display: block; margin-top: 8px; font-size: .77rem; }
.pipeline small { display: block; margin-top: 2px; color: #8493a0; font-family: var(--mono); font-size: .56rem; }
.pipeline > b { color: #607282; font-weight: 400; }

.section { padding: 92px 0; scroll-margin-top: 120px; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; margin-bottom: 36px; }
.section-head > p { margin: 0; color: var(--muted); font-size: .88rem; }
.section-copy { color: var(--muted); font-size: .88rem; }
.section-copy > p { margin: 0; }
.section-copy > p + p { margin-top: 14px; }
.scale-fact { padding: 13px 15px; border-left: 3px solid var(--blue); background: #eaf2fa; color: #3d5265; }
.scale-fact strong { color: var(--blue-dark); font-family: var(--mono); font-size: .68rem; letter-spacing: .03em; text-transform: uppercase; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line-dark); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: .72rem; font-variant-numeric: tabular-nums; }
th, td { padding: 11px 15px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: #687480; background: #eef1f4; font-size: .61rem; letter-spacing: .06em; text-transform: uppercase; }
td:nth-child(2), td:nth-child(3) { text-align: right; }
th:nth-child(2), th:nth-child(3) { text-align: right; }
td:last-child, th:last-child { width: 110px; text-align: right; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #f8fafb; }
.highlight-row td { background: #edf5ff; font-weight: 700; }
table button { color: var(--blue-dark); border-color: #aac4e6; }
table button:hover { color: var(--white); background: var(--blue); }

.muted-section { border-block: 1px solid var(--line); background: #e9edf1; }
.service-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 90px; align-items: start; }
.service-description > p:not(.kicker) { color: var(--muted); }
.plain-list { padding: 0; margin: 26px 0 0; list-style: none; border-top: 1px solid var(--line-dark); }
.plain-list li { padding: 10px 0; color: #4f5c68; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .68rem; }
.plain-list li::before { margin-right: 10px; color: var(--green); content: "+"; }
.service-panel { padding: 26px; border: 1px solid var(--line-dark); background: var(--white); }
.compact-head { align-items: center; }
.signed-action-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); background: var(--white); }
.signed-action { min-width: 0; min-height: 155px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 9px; color: var(--ink); border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); text-decoration: none; }
.signed-action span { color: var(--blue-dark); font-family: var(--mono); font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.signed-action strong { font-size: .92rem; overflow-wrap: anywhere; }
.signed-action small { color: var(--muted); font-family: var(--mono); font-size: .61rem; line-height: 1.45; }
.signed-action:hover, .signed-action:focus-visible { position: relative; z-index: 1; color: var(--blue-dark); outline: 2px solid var(--blue); outline-offset: -2px; background: #edf5ff; }
.signed-action.docs-action { color: #e8eff5; background: var(--navy); }
.signed-action.docs-action span, .signed-action.docs-action strong { color: #d6e9ff; }
.signed-action.docs-action small { color: #91a3b3; }
.docs-strip { padding: 42px 0; color: #e9eef3; background: var(--navy); }
.docs-strip-inner { display: grid; grid-template-columns: minmax(240px,.9fr) minmax(280px,1.1fr) auto; gap: 45px; align-items: center; }
.docs-strip h2 { font-size: clamp(1.65rem,3vw,2.45rem); }
.docs-strip p:not(.kicker) { margin: 0; color: #aab6c0; font-size: .83rem; }
.docs-strip .button.secondary { color: #e4edf5; border-color: #506171; background: transparent; }
.signature-layout { display: grid; gap: 28px; }
.signature-heading { max-width: 760px; }
.signature-examples { width: 100%; min-width: 0; }
.signature-examples h3:not(:first-child) { margin-top: 20px; }
.signature-description { width: 100%; color: var(--muted); }
.signature-description p { margin: 0; }
.signature-description p + p { margin-top: 18px; }
.signing-overview { padding: 25px; margin-bottom: 24px; color: var(--ink); border: 1px solid var(--line-dark); background: #f8fafb; }
.signing-overview > h3 { margin-bottom: 10px; }
.signing-overview > h3:not(:first-of-type) { margin-top: 28px; }
.signing-overview > p:not(.kicker):not(.key-cross-check) { max-width: 1050px; color: var(--muted); }
.verification-key-locations { display: grid; margin: 18px 0 0; border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.verification-key-locations > div { display: grid; grid-template-columns: minmax(170px,.42fr) minmax(0,1.58fr); border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); background: var(--white); }
.verification-key-locations dt { padding: 14px; color: #263440; background: #eef3f6; font-family: var(--mono); font-size: .64rem; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
.verification-key-locations dd { min-width: 0; padding: 14px; margin: 0; color: #263440; }
.verification-key-locations dd > a, .verification-key-locations dd > code { display: block; overflow-wrap: anywhere; }
.verification-key-locations dd > span { display: block; margin-top: 7px; color: var(--muted); }
.key-cross-check { max-width: 1050px; padding: 16px 18px; margin-top: 20px !important; color: #17324a; border-left: 4px solid var(--green); background: #edf7f3; }
.dns-key-panel { margin-top: 30px; padding: 25px; color: var(--ink); border: 1px solid var(--line-dark); background: #f4f7f9; }
.dns-key-panel > h3 { margin-bottom: 10px; }
.dns-key-panel > h3:not(:first-of-type) { margin-top: 28px; }
.dns-key-panel > p:not(.kicker):not(.micro-note) { max-width: 980px; color: var(--muted); }
.dns-record-spec { display: grid; grid-template-columns: 100px 100px minmax(0,1fr); margin: 20px 0 0; border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.dns-record-spec div { min-width: 0; padding: 10px 12px; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); background: var(--white); }
.dns-record-spec dt { color: var(--muted); font-family: var(--mono); font-size: .59rem; letter-spacing: .06em; text-transform: uppercase; }
.dns-record-spec dd { margin: 4px 0 0; overflow-wrap: anywhere; color: #263440; font-family: var(--mono); font-size: .68rem; }
.dns-record-block { margin-top: 12px; }
.light-command { color: #17324a; border-color: #c9d7e3; background: var(--white); }
.dns-security-note { color: #657786; }
.form-grid { display: grid; grid-template-columns: 1.5fr 1fr .75fr; gap: 10px; }
.service-panel label, .image-form label { display: grid; gap: 6px; color: #586570; font-family: var(--mono); font-size: .65rem; }
fieldset { padding: 16px 0 0; margin: 16px 0 0; border: 0; border-top: 1px solid var(--line); }
legend { padding: 0 10px 0 0; color: #586570; font-family: var(--mono); font-size: .65rem; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.checks label { display: flex; flex-direction: row; align-items: center; gap: 6px; color: #46525d; cursor: pointer; }
.checks input { width: 14px; min-height: 14px; height: 14px; accent-color: var(--blue); }
.secondary-checks { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.service-panel > .button { margin-top: 20px; }
.result-header { margin-top: 22px; padding: 11px 0; display: flex; align-items: center; justify-content: space-between; border-block: 1px solid var(--line); font-family: var(--mono); font-size: .66rem; }
.result-header button { color: var(--blue-dark); }
.result-list { display: grid; gap: 7px; margin-top: 12px; }
.result-list > p { margin: 0; color: var(--muted); font-family: var(--mono); font-size: .68rem; }
.password-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: center; padding: 9px 10px; border: 1px solid var(--line); background: #f8fafb; }
.password-row code { overflow-wrap: anywhere; font-size: .7rem; }
.password-row button { padding: 4px 7px; color: var(--blue-dark); border: 0; background: transparent; font-family: var(--mono); font-size: .6rem; cursor: pointer; }
.error-line { color: var(--red) !important; }

.dice-service { display: grid; grid-template-columns: .72fr 1.28fr; border: 1px solid var(--line-dark); background: var(--white); }
.dice-service > .service-panel { border: 0; border-right: 1px solid var(--line); }
.dice-presets button { min-width: 32px; }
.dice-dashboard { min-width: 0; padding: 26px; }
.dice-output { min-height: 126px; display: flex; flex-wrap: wrap; align-content: center; align-items: center; gap: 10px; padding: 18px; border: 1px solid var(--line); background: #f8fafb; }
.dice-output > p { margin: 0; color: var(--muted); font-family: var(--mono); font-size: .68rem; }
.die { position: relative; width: 64px; height: 64px; padding: 10px; display: grid; grid-template-columns: repeat(3,1fr); grid-template-rows: repeat(3,1fr); border: 1px solid #aeb8c1; border-radius: 12px; background: linear-gradient(145deg,#fff 0%,#f7f9fa 60%,#dce2e7 100%); box-shadow: inset 2px 2px 2px rgba(255,255,255,.9),inset -3px -3px 5px rgba(77,92,105,.16),0 5px 0 #bac4cc,0 8px 12px rgba(22,32,42,.18); animation: dice-pop .24s ease-out both; }
.die::after { position: absolute; inset: 4px; border: 1px solid rgba(255,255,255,.8); border-radius: 8px; pointer-events: none; content: ""; }
.die-pip { width: 10px; height: 10px; z-index: 1; align-self: center; justify-self: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%,#4b5965 0%,#17202a 58%,#05090c 100%); box-shadow: inset 1px 1px 1px rgba(255,255,255,.15),0 1px 1px rgba(255,255,255,.8); }
.die-pip-1 { grid-area: 1 / 1; }.die-pip-3 { grid-area: 1 / 3; }
.die-pip-4 { grid-area: 2 / 1; }.die-pip-5 { grid-area: 2 / 2; }.die-pip-6 { grid-area: 2 / 3; }
.die-pip-7 { grid-area: 3 / 1; }.die-pip-9 { grid-area: 3 / 3; }
@keyframes dice-pop { from { opacity: 0; transform: translateY(-7px) rotate(-4deg) scale(.9); } to { opacity: 1; transform: translateY(0) rotate(0) scale(1); } }
.dice-total { flex-basis: 100%; margin-top: 6px; color: var(--blue-dark); font-family: var(--mono); font-size: .72rem; }
.dice-dashboard .result-header { margin-top: 18px; }
.dice-summary { display: grid; grid-template-columns: repeat(4,1fr); margin: 0; border-left: 1px solid var(--line); }
.dice-summary div { padding: 13px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dice-summary dt { color: var(--muted); font-family: var(--mono); font-size: .57rem; text-transform: uppercase; }
.dice-summary dd { margin: 5px 0 0; font-family: var(--mono); font-size: .82rem; font-weight: 700; }
.dice-faces { display: grid; grid-template-columns: repeat(6,1fr); margin-top: 12px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.dice-faces span { padding: 9px; display: flex; align-items: center; justify-content: space-between; gap: 5px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--mono); }
.dice-faces b { font-size: .7rem; }
.dice-faces small { color: var(--muted); font-size: .62rem; }

.image-service { display: grid; grid-template-columns: .72fr 1.28fr; border: 1px solid var(--line-dark); background: var(--white); }
.image-form { padding: 28px; border-right: 1px solid var(--line); }
.dimension-fields { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: end; margin-top: 15px; }
.dimension-fields > span { padding-bottom: 11px; color: var(--muted); }
.image-form .button { margin-top: 19px; }
.image-form .micro-note { color: var(--muted); }
.image-output { min-width: 0; display: flex; flex-direction: column; }
.image-stage { min-height: 410px; display: grid; place-items: center; overflow: hidden; background-color: #e7ebef; background-image: linear-gradient(45deg,#dfe4e8 25%,transparent 25%),linear-gradient(-45deg,#dfe4e8 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#dfe4e8 75%),linear-gradient(-45deg,transparent 75%,#dfe4e8 75%); background-size: 20px 20px; background-position: 0 0,0 10px,10px -10px,-10px 0; }
.image-stage p { padding: 8px 11px; color: #687581; border: 1px solid #bac4cd; background: rgba(255,255,255,.8); font-family: var(--mono); font-size: .67rem; }
.image-stage img { width: 100%; height: 410px; object-fit: contain; }
.image-meta { min-height: 67px; padding: 12px 15px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); }
.image-meta code { min-width: 0; overflow-wrap: anywhere; color: var(--muted); font-size: .65rem; }
.disabled { opacity: .45; pointer-events: none; }

.entropy-section { color: #e9eef3; background: var(--navy); }
.entropy-section .kicker { color: #7eb4ef; }
.entropy-section .section-head > p { color: #9dacb9; }
.entropy-section code { color: #bcdcff; }
.explanation-grid { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid #40515f; border-left: 1px solid #40515f; }
.explanation-grid article { min-height: 255px; padding: 25px; border-right: 1px solid #40515f; border-bottom: 1px solid #40515f; }
.explanation-grid h3 { margin-top: 25px; }
.explanation-grid p { margin: 11px 0 0; color: #9fadb9; font-size: .79rem; }
.security-note { margin-top: 26px; padding: 20px 22px; display: grid; grid-template-columns: 190px 1fr; gap: 25px; border: 1px solid #526471; background: #172532; }
.security-note strong { color: #9fc9f6; font-family: var(--mono); font-size: .7rem; text-transform: uppercase; }
.security-note p { margin: 0; color: #a7b5c0; font-size: .78rem; }
.source-links { margin-top: 23px; display: flex; flex-wrap: wrap; gap: 12px 25px; font-family: var(--mono); font-size: .65rem; }
.source-links span { color: #718493; }
.source-links a { color: #a9d2ff; text-decoration: none; }
.source-links a:hover { text-decoration: underline; }

.quality { display: grid; grid-template-columns: .8fr 1.2fr; gap: 85px; }
.quality > div > p:not(.kicker) { color: var(--muted); font-size: .85rem; }
.quality > div > a { font-family: var(--mono); font-size: .67rem; }
.quality dl { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.quality dl div { padding: 21px; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.quality dt { color: var(--muted); font-family: var(--mono); font-size: .62rem; text-transform: uppercase; }
.quality dd { margin: 9px 0 0; font-family: var(--mono); font-size: 1.05rem; font-weight: 700; }
.quality dd small { display: block; color: var(--muted); font-size: .58rem; font-weight: 400; }

.health-section { border-top: 1px solid var(--line); }
.health-panel { overflow: hidden; border: 1px solid var(--line-dark); background: var(--white); }
.health-toolbar { min-height: 68px; padding: 12px 15px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line-dark); background: #eef2f5; }
.health-live-state { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-family: var(--mono); font-size: .67rem; }
.health-badge { padding: 5px 8px; color: #596672; border: 1px solid #aab5bf; background: #fff; font-size: .61rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.health-badge[data-state="ok"] { color: #0f6849; border-color: #8ac6ae; background: #e9f7f1; }
.health-badge[data-state="error"] { color: #9e1d32; border-color: #dfa2ad; background: #fff0f2; }
.health-toolbar .button { flex: 0 0 auto; }
.health-table-wrap { border: 0; }
.health-table { min-width: 0; table-layout: fixed; }
.health-table caption { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.health-table th, .health-table td { padding: 12px 16px; vertical-align: top; }
.health-table tbody th[scope="row"] { width: 38%; color: #53616d; background: #f8fafb; font-size: .65rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.health-table td, .health-table td:nth-child(2), .health-table td:last-child { width: auto; color: #263440; text-align: left; overflow-wrap: anywhere; }
.signing-key-link { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 2px; }
.signing-key-link:hover { color: #073e83; }
.public-key-block { min-width: 0; margin-top: 10px; }
.public-key-actions { display: flex; justify-content: flex-end; margin-bottom: 7px; }
.public-key-actions .block-copy { position: static; min-height: 30px; }
.health-public-key { margin: 0; padding: 12px; overflow-x: auto; border: 1px solid #c9d7e3; border-radius: 4px; background: #f4f8fb; color: #17324a; font-size: .62rem; line-height: 1.55; white-space: pre; }
.health-table .health-group th { padding: 10px 16px; color: #295983; border-top: 1px solid var(--line-dark); background: #e9f0f7; font-size: .61rem; letter-spacing: .1em; text-align: left; }
.health-table .health-group:first-child th { border-top: 0; }
.health-table tr:last-child td, .health-table tr:last-child th { border-bottom: 0; }

footer { color: #a4b0ba; background: #0b131b; }
.footer-inner { min-height: 90px; display: grid; grid-template-columns: auto 1fr auto; gap: 25px; align-items: center; font-family: var(--mono); font-size: .62rem; }
.footer-inner span:nth-child(2) { text-align: center; }
.footer-inner a { color: #b9d9fb; }

.docs-hero { padding: 92px 0 78px; border-bottom: 1px solid var(--line); }
.docs-hero h1 { max-width: 980px; }
.docs-hero .lead { max-width: 760px; }
.docs-jump-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.docs-jump-links a { padding: 9px 12px; color: var(--blue-dark); border: 1px solid #a9c5e5; background: #edf5ff; text-decoration: none; font-family: var(--mono); font-size: .64rem; font-weight: 700; }
.endpoint-reference-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.endpoint-reference-grid article { min-width: 0; min-height: 195px; padding: 21px; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); background: var(--white); }
.endpoint-reference-grid article > code { color: var(--blue-dark); font-size: .67rem; overflow-wrap: anywhere; }
.endpoint-reference-grid h3 { margin-top: 24px; }
.endpoint-reference-grid p { margin: 9px 0 0; color: var(--muted); font-size: .76rem; }
.docs-subsection { padding-top: 90px; scroll-margin-top: 140px; }
.signed-format-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.signed-format-grid article { padding: 23px; border: 1px solid var(--line-dark); background: var(--white); }
.signed-format-grid h3 { margin-bottom: 8px; }
.signed-format-grid p:not(.kicker) { margin: 0; color: var(--muted); font-size: .78rem; }
.docs-script { padding-top: 78px; scroll-margin-top: 120px; }
.docs-script-heading { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 16px; align-items: start; }
.docs-script-heading > span { width: 42px; height: 42px; display: grid; place-items: center; color: #dceaff; background: var(--blue-dark); font-family: var(--mono); font-size: .67rem; font-weight: 700; }
.docs-script-heading h3 { font-size: 1.2rem; }
.docs-script-heading p { max-width: 900px; margin: 6px 0 0; color: var(--muted); font-size: .79rem; }
.docs-script .command { max-height: 760px; }

@media (max-width: 1100px) {
    nav { gap: 15px; }
    .hero { gap: 48px; }
    .section-head { gap: 42px; }
    .service-grid, .quality { gap: 55px; }
    .buffer-meter-label span { font-size: .62rem; }
    .signed-action-grid { grid-template-columns: 1fr 1fr; }
    .docs-strip-inner { gap: 28px; }
}

@media (max-width: 940px) {
    .topbar-inner { grid-template-columns: minmax(0,1fr) auto auto; grid-template-areas: "brand lang menu" "nav nav nav" "state state state" "buffers buffers buffers"; }
    .menu-toggle { display: inline-flex; }
    .site-nav { width: 100%; padding: 10px; display: none; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; border: 1px solid var(--line-dark); background: var(--white); }
    .site-nav[data-open="true"] { display: grid; }
    .site-nav a { min-height: 38px; padding: 8px; display: grid; place-items: center; border: 1px solid var(--line); text-align: center; }
    .hero { grid-template-columns: 1fr; gap: 50px; }
    .pipeline { grid-template-columns: 1fr 1fr; }
    .pipeline > b { display: none; }
    .pipeline div:last-child { grid-column: 1 / -1; }
    .service-grid, .quality { grid-template-columns: 1fr; gap: 45px; }
    .image-service, .dice-service { grid-template-columns: 1fr; }
    .dice-service > .service-panel { border-right: 0; border-bottom: 1px solid var(--line); }
    .image-form { border-right: 0; border-bottom: 1px solid var(--line); }
    .explanation-grid { grid-template-columns: 1fr 1fr; }
    .endpoint-reference-grid { grid-template-columns: 1fr 1fr; }
    .docs-strip-inner { grid-template-columns: 1fr auto; }
    .docs-strip-inner > p { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 680px) {
    .container { width: min(calc(100% - 24px), var(--max)); }
    .topbar-inner { min-height: 126px; padding: 8px 0 11px; grid-template-columns: minmax(0,1fr) auto auto; grid-template-areas: "brand lang menu" "nav nav nav" "state state state" "buffers buffers buffers"; gap: 8px; }
    .site-nav { grid-template-columns: 1fr 1fr; }
    .service-state { justify-self: stretch; width: 100%; font-size: .7rem; }
    .buffer-monitor { width: 100%; }
    .buffer-meter { grid-template-columns: 31px minmax(0,1fr); gap: 9px; }
    .buffer-icon { width: 28px; height: 28px; }
    .buffer-meter-label { gap: 7px; }
    .hero { padding: 55px 0; }.hero h1 { font-size: clamp(3.3rem, 17vw, 5rem); }
    .endpoint-card { padding: 20px; margin-inline: -1px; }
    .amount-row, .primary-actions, .section-head, .security-note { grid-template-columns: 1fr; gap: 12px; }
    .amount-row output { text-align: left; }
    .copy-field { grid-template-columns: minmax(0,1fr) auto; }
    .section { padding: 68px 0; }.section-head { align-items: start; }
    .section-label { align-items: flex-start; flex-direction: column; gap: 5px; }
    table { min-width: 650px; }
    .pipeline { grid-template-columns: 1fr; }.pipeline div:last-child { grid-column: auto; }
    .form-grid { grid-template-columns: 1fr; }
    .service-panel { padding: 18px; }
    .dice-dashboard { padding: 18px; }
    .dice-summary { grid-template-columns: 1fr 1fr; }
    .dice-faces { grid-template-columns: repeat(3,1fr); }
    .image-stage, .image-stage img { min-height: 300px; height: 300px; }
    .image-meta { align-items: stretch; flex-direction: column; }.image-meta .button { width: 100%; }
    .explanation-grid { grid-template-columns: 1fr; }
    .explanation-grid article { min-height: 0; }
    .security-note { padding: 18px; }
    .quality dl { grid-template-columns: 1fr; }
    .health-table { min-width: 0; }
    .footer-inner { padding: 22px 0; grid-template-columns: 1fr; text-align: center; }.footer-inner span:nth-child(2) { text-align: center; }
    .signed-action-grid, .signed-format-grid, .endpoint-reference-grid { grid-template-columns: 1fr; }
    .signed-action { min-height: 132px; }
    .docs-strip-inner { grid-template-columns: 1fr; }
    .docs-strip-inner > p { grid-column: auto; grid-row: auto; }
    .docs-strip .button { width: 100%; }
    .docs-hero { padding: 58px 0; }
}

@media (max-width: 459px) {
    html, body { max-width: 100%; overflow-x: clip; }
    .container { width: min(calc(100% - 16px), var(--max)); }
    .topbar-inner { min-height: 0; padding: 11px 0 14px; gap: 10px; }
    .brand { font-size: .78rem; }
    .service-state { padding-top: 7px; border-top: 1px solid var(--line); font-size: .7rem; }
    .buffer-monitor { grid-template-columns: 1fr; gap: 10px; }
    .buffer-meter { grid-template-columns: 32px minmax(0,1fr); gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
    .buffer-icon { width: 29px; height: 29px; }
    .buffer-meter-label { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 8px; font-size: .64rem; }
    .buffer-meter-label strong { font-size: .7rem; }
    .buffer-meter-label span { text-align: right; }
    .buffer-track { height: 10px; }
    .hero { padding: 42px 0; }
    .hero h1 { font-size: clamp(2.9rem,17vw,4.1rem); }
    .lead { margin: 22px 0; }
    .hero-specs { grid-template-columns: 1fr; }
    .hero-specs div:nth-child(odd) { border-right: 0; }
    .hero-specs div:nth-child(even) { padding-left: 0; }
    .endpoint-card { padding: 16px; }
    .card-title-row { gap: 12px; }
    .copy-field { grid-template-columns: 1fr; gap: 7px; }
    .copy-field button { min-height: 40px; }
    .endpoint-card .quick-values button { flex: 1 0 calc(33.333% - 6px); }
    .section { padding: 52px 0; }
    .section-head { margin-bottom: 25px; }
    .section-head h2 { font-size: clamp(2rem,12vw,2.8rem); }
    .service-grid, .quality { gap: 30px; }
    .service-panel { width: 100%; min-width: 0; padding: 15px; overflow: hidden; }
    #password-length-presets button { flex: 1 0 calc(33.333% - 6px); }
    .password-row { grid-template-columns: 1fr; }
    .password-row button { justify-self: start; }
    .dice-presets button { flex: 1 0 calc(25% - 6px); }
    .dice-output { padding: 13px; }
    .die { width: 56px; height: 56px; padding: 8px; border-radius: 10px; }
    .die-pip { width: 8px; height: 8px; }
    .dice-summary { grid-template-columns: 1fr; }
    .result-header { flex-wrap: wrap; gap: 8px; }
    .image-form, .dice-dashboard { min-width: 0; padding: 15px; }
    .image-form .quick-values button { flex: 1 0 calc(50% - 6px); }
    .image-stage, .image-stage img { min-height: 240px; height: 240px; }
    .source-links { align-items: flex-start; flex-direction: column; }
    .health-toolbar { align-items: stretch; flex-direction: column; }
    .health-toolbar .button { width: 100%; }
    .health-table th, .health-table td { padding: 10px; }
    .health-table tbody th[scope="row"] { width: 43%; }
    .signing-overview, .dns-key-panel { padding: 16px; }
    .verification-key-locations > div { grid-template-columns: 1fr; }
    .verification-key-locations dt { border-bottom: 1px solid var(--line); }
    .dns-record-spec { grid-template-columns: 1fr; }
    .site-nav { padding: 7px; }
    .site-nav a { min-height: 42px; padding: 6px 4px; font-size: .64rem; }
    .menu-toggle { min-height: 36px; padding-inline: 9px; }
    .language-switch a { min-width: 29px; min-height: 30px; padding-inline: 4px; font-size: .62rem; }
    .docs-hero h1 { font-size: clamp(2.75rem,15vw,4rem); }
    .docs-script { padding-top: 58px; }
    .docs-script-heading { grid-template-columns: 38px minmax(0,1fr); gap: 11px; }
    .docs-script-heading > span { width: 36px; height: 36px; }
    .docs-script .command { max-height: 62vh; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .die { animation: none; }
    .buffer-monitor { transition: none; }
}
