:root {
  color-scheme: dark;
  --bg: #0b1118;
  --surface: #111923;
  --surface-raised: #18232f;
  --surface-soft: #0d151e;
  --text: #f2f5f7;
  --text-muted: #aab5be;
  --text-faint: #8795a1;
  --border: #293744;
  --border-strong: #435462;
  --accent: #ff7a2f;
  --accent-strong: #ff955c;
  --accent-ink: #1e0b00;
  --focus: #7fb5ff;
  --positive: #58d5a5;
  --warning: #f0bd60;
  --danger: #ff858e;
  --code: #d9f8ef;
  --code-panel: #071019;
  --header: #08121c;
  --header-text: #f7f9fa;
  --header-muted: #a7b4be;
  --shadow: 0 18px 48px rgb(0 0 0 / 0.2);
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --shell: 1160px;
  --narrow: 820px;
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f3f4f2;
    --surface: #ffffff;
    --surface-raised: #ecefeb;
    --surface-soft: #f8f8f6;
    --text: #17222c;
    --text-muted: #52616c;
    --text-faint: #657580;
    --border: #d2d9dc;
    --border-strong: #aeb9bf;
    --accent: #d84e00;
    --accent-strong: #ad3f00;
    --accent-ink: #ffffff;
    --focus: #095fc7;
    --positive: #087b61;
    --warning: #865900;
    --danger: #b32432;
    --code: #063e34;
    --shadow: 0 16px 38px rgb(13 30 41 / 0.09);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f4f2;
  --surface: #ffffff;
  --surface-raised: #ecefeb;
  --surface-soft: #f8f8f6;
  --text: #17222c;
  --text-muted: #52616c;
  --text-faint: #657580;
  --border: #d2d9dc;
  --border-strong: #aeb9bf;
  --accent: #d84e00;
  --accent-strong: #ad3f00;
  --accent-ink: #ffffff;
  --focus: #095fc7;
  --positive: #087b61;
  --warning: #865900;
  --danger: #b32432;
  --code: #063e34;
  --shadow: 0 16px 38px rgb(13 30 41 / 0.09);
}

:root[data-theme="dark"] { color-scheme: dark; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 0; background: var(--bg); color: var(--text); font-family: var(--font-sans); font-size: 1rem; line-height: 1.58; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
.icon { width: 1.2em; height: 1.2em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { color: var(--accent-strong); }
button, input, select, textarea { font: inherit; }
button, summary { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, dl { margin-top: 0; }
h1, h2, h3 { color: var(--text); line-height: 1.12; letter-spacing: -0.025em; }
h1 { margin-bottom: var(--space-4); font-size: clamp(2.15rem, 5vw, 3.65rem); font-weight: 700; }
h2 { margin-bottom: var(--space-4); font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { margin-bottom: var(--space-2); font-size: 1rem; letter-spacing: 0; }
code, pre { font-family: var(--font-mono); }
code { color: var(--code); overflow-wrap: anywhere; }
pre { max-width: 100%; margin: 0; padding: var(--space-4); overflow: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--code-panel); color: #d9f8ef; font-size: 0.84rem; line-height: 1.55; }
.shell { width: min(calc(100% - 2rem), var(--shell)); margin-inline: auto; }
.narrow-shell { max-width: var(--narrow); }
.content-stack { display: grid; gap: 2.5rem; padding-bottom: var(--space-7); }
.skip-link { position: fixed; z-index: 100; top: var(--space-3); left: var(--space-3); transform: translateY(-180%); padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm); background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.skip-link:focus { transform: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--text-muted); }
.eyebrow { margin-bottom: 0.65rem; color: var(--accent); font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.lede { max-width: 690px; margin-bottom: 0; color: var(--text-muted); font-size: clamp(1.02rem, 1.8vw, 1.18rem); }

.site-header { position: sticky; z-index: 30; top: 0; border-bottom: 1px solid #263747; background: var(--header); }
.header-inner { min-height: 66px; display: flex; align-items: center; gap: var(--space-5); }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 0.7rem; color: var(--header-text); text-decoration: none; }
.brand:hover { color: #ffffff; }
.brand img { border-radius: 4px; }
.brand span { display: grid; line-height: 1.05; }
.brand strong { font-size: 1.05rem; letter-spacing: -0.02em; }
.brand small { margin-top: 0.27rem; color: var(--header-muted); font-family: var(--font-mono); font-size: 0.67rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.desktop-nav { display: flex; align-self: stretch; align-items: center; gap: 0.1rem; margin-left: auto; }
.desktop-nav a { position: relative; display: grid; height: 100%; align-items: center; padding: 0 0.72rem; color: var(--header-muted); font-size: 0.86rem; font-weight: 600; text-decoration: none; }
.desktop-nav a::after { position: absolute; right: 0.72rem; bottom: -1px; left: 0.72rem; height: 2px; background: transparent; content: ""; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: var(--header-text); }
.desktop-nav a[aria-current="page"]::after { background: var(--accent); }
.header-actions { display: flex; align-items: center; gap: var(--space-2); }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #344757; border-radius: var(--radius-md); background: #0e1b27; color: var(--header-text); cursor: pointer; }
.icon-button:hover { border-color: #60788b; background: #142433; }
.theme-toggle .icon { width: 19px; height: 19px; }
.theme-icon-moon { display: none; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .theme-icon-sun { display: none; } :root:not([data-theme="dark"]) .theme-icon-moon { display: block; } }
:root[data-theme="light"] .theme-icon-sun { display: none; }
:root[data-theme="light"] .theme-icon-moon { display: block; }
:root[data-theme="dark"] .theme-icon-sun { display: block; }
:root[data-theme="dark"] .theme-icon-moon { display: none; }
.mobile-menu { display: none; position: relative; }
.mobile-menu summary { min-height: 40px; display: flex; align-items: center; gap: 0.45rem; padding: 0 0.7rem; border: 1px solid #344757; border-radius: var(--radius-md); background: #0e1b27; color: var(--header-text); cursor: pointer; font-size: 0.86rem; font-weight: 600; list-style: none; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu .menu-icon-close { display: none; }
.mobile-menu[open] .menu-icon-open { display: none; }
.mobile-menu[open] .menu-icon-close { display: block; }
.mobile-menu nav { position: absolute; right: 0; top: calc(100% + 0.6rem); width: min(290px, calc(100vw - 1.25rem)); padding: 0.45rem; border: 1px solid #344757; border-radius: var(--radius-md); background: var(--header); box-shadow: var(--shadow); }
.mobile-menu nav a { display: flex; min-height: 44px; align-items: center; padding: 0 0.8rem; border-bottom: 1px solid #1f3140; color: var(--header-text); text-decoration: none; }
.mobile-menu nav a:last-child { border-bottom: 0; }
.mobile-menu nav a:hover { background: #142433; }
.mobile-menu nav a[aria-current="page"] { border-left: 2px solid var(--accent); background: #101f2d; color: #ffffff; }

.intro, .page-heading { padding-top: clamp(2.75rem, 7vw, 4.6rem); padding-bottom: clamp(1.5rem, 4vw, 2.4rem); }
.intro h1, .page-heading h1 { max-width: 820px; }
body[data-page="home"] .intro { padding-bottom: 1.6rem; }
body[data-page="home"] .intro h1 { margin-bottom: 0.55rem; font-size: clamp(2.8rem, 7vw, 4.8rem); }
.quick-facts { display: flex; flex-wrap: wrap; gap: 0; margin-top: var(--space-5); }
.quick-facts > span { display: inline-flex; align-items: center; min-height: 24px; padding: 0 0.8rem; border-right: 1px solid var(--border); color: var(--text-muted); font-family: var(--font-mono); font-size: 0.76rem; }
.quick-facts > span:first-child { padding-left: 0; }
.quick-facts > span:last-child { border-right: 0; }
.status { display: inline-flex; width: fit-content; align-items: center; gap: 0.45rem; color: var(--text-muted); font-size: 0.76rem; font-weight: 700; }
.status::before { width: 7px; height: 7px; border-radius: 50%; background: currentColor; content: ""; }
.status-positive { color: var(--positive); }
.status-warning { color: var(--warning); }
.status-danger { color: var(--danger); }
.privacy-badge { display: inline-flex; width: fit-content; align-items: center; gap: 0.42rem; color: var(--positive); font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.privacy-badge .icon { width: 16px; height: 16px; }

.tool-panel, .result-card, .error-card { min-width: 0; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.tool-panel { padding: clamp(1.2rem, 4vw, 2rem); }
.tool-heading, .section-heading, .result-topline, .algorithm-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); }
.tool-heading { margin-bottom: var(--space-5); }
.tool-heading h2, .tool-heading p { margin-bottom: 0; }
.hash-form, .form-grid { display: grid; gap: var(--space-3); align-items: end; }
.hash-form { grid-template-columns: minmax(220px, 1fr) minmax(170px, 0.45fr) 110px auto; }
.form-grid { grid-template-columns: minmax(180px, 1fr) minmax(150px, auto); margin-bottom: var(--space-4); }
.field { min-width: 0; margin-bottom: var(--space-4); }
.hash-form .field { margin-bottom: 0; }
.field label { display: block; margin-bottom: 0.38rem; color: var(--text-muted); font-size: 0.78rem; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); outline: 0; background: var(--surface-soft); color: var(--text); }
.field input, .field select { padding: 0 0.8rem; }
.field textarea { min-height: 112px; padding: 0.75rem 0.8rem; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--text-faint); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 20%, transparent); }
.field input[type="file"] { padding: 0.4rem; }
.field input[type="file"]::file-selector-button { margin-right: 0.75rem; padding: 0.45rem 0.7rem; border: 0; border-radius: var(--radius-sm); background: var(--surface-raised); color: var(--text); cursor: pointer; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; padding: 0.6rem 1rem; border: 1px solid transparent; border-radius: var(--radius-md); cursor: pointer; font-size: 0.9rem; font-weight: 700; line-height: 1.2; text-decoration: none; }
.button .icon { width: 17px; height: 17px; transition: transform 140ms ease; }
.button:hover .icon, .tool-card:hover > .icon:last-child { transform: translateX(3px); }
.button-primary { background: var(--accent); color: var(--accent-ink); }
.button-primary:hover { background: var(--accent-strong); color: var(--accent-ink); }
.button:disabled { cursor: progress; opacity: 0.7; }
.button-secondary, .button-copy { border-color: var(--border-strong); background: transparent; color: var(--text); }
.button-secondary:hover, .button-copy:hover { border-color: var(--accent); color: var(--text); }
.submit-button { white-space: nowrap; }
.button-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.text-button { border: 0; background: transparent; color: var(--accent); cursor: pointer; font-size: 0.78rem; font-weight: 700; }
.privacy-note { position: relative; margin: var(--space-4) 0 0; padding-left: 0.85rem; color: var(--text-muted); font-size: 0.78rem; }
.privacy-note::before { position: absolute; top: 0.58em; left: 0; width: 4px; height: 4px; border-radius: 50%; background: var(--positive); content: ""; }

.content-section { min-width: 0; padding: var(--space-6) 0; border-top: 1px solid var(--border); }
.two-column { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(230px, 0.7fr); gap: var(--space-6); }
.notice { padding: var(--space-4); border-left: 2px solid var(--border-strong); background: var(--surface-soft); }
.notice h3 { margin-bottom: var(--space-2); }
.notice p:last-child { margin-bottom: 0; }
.notice-warning { border-color: var(--warning); }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--space-5); border-top: 1px solid var(--border); }
.tool-card { min-width: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: var(--space-3); padding: 1rem 0.75rem; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; }
.tool-card:nth-child(odd) { border-right: 1px solid var(--border); }
.tool-card:hover { background: var(--surface-raised); color: var(--text); }
.tool-card > span:not(.tool-icon) { display: grid; }
.tool-card strong { font-size: 0.95rem; }
.tool-card small { color: var(--text-muted); font-size: 0.78rem; }
.tool-card > .icon:last-child { width: 17px; color: var(--text-faint); transition: transform 140ms ease; }
.tool-icon { display: grid; width: 38px; height: 38px; place-items: center; color: var(--accent); }
.tool-icon .icon { width: 23px; height: 23px; }
.algorithm-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--space-2); margin-top: var(--space-4); }
.algorithm-links a { min-height: 54px; display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); padding: 0.8rem 0.65rem; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; }
.algorithm-links a:hover { background: var(--surface-raised); }
.algorithm-links span { color: var(--text-faint); font-size: 0.75rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.4rem; padding-top: var(--space-4); }
.tag-list a { max-width: 100%; padding: 0.28rem 0.55rem; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-muted); font-family: var(--font-mono); font-size: 0.75rem; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.tag-list a:hover { border-color: var(--accent); color: var(--text); }
.disclosure { min-width: 0; padding: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.disclosure > summary { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) var(--space-5); cursor: pointer; list-style: none; }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary:hover { background: var(--surface-raised); }
.disclosure > summary span:first-child { display: grid; }
.disclosure > summary small { margin-top: 0.15rem; color: var(--text-faint); font-weight: 500; }
.disclosure-icon { color: var(--text-faint); transition: transform 150ms ease; }
.disclosure[open] > summary .disclosure-icon { transform: rotate(180deg); }
.disclosure-body { min-width: 0; max-width: 100%; padding: 0 var(--space-5) var(--space-5); overflow: hidden; border-top: 1px solid var(--border); }
.disclosure-body > .tool-panel { margin-top: var(--space-5); box-shadow: none; }
.variations-grid { display: grid; gap: var(--space-5); padding-top: var(--space-5); }
.variations-grid h2 { margin-bottom: 0; font-size: 1rem; }
.code-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.code-sample { min-width: 0; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: var(--space-2); padding: var(--space-5) 0; color: var(--text-faint); font-family: var(--font-mono); font-size: 0.75rem; }
.breadcrumbs a { color: var(--text-muted); }
.result-shell { padding-bottom: var(--space-7); }
.result-card { padding: clamp(1.25rem, 5vw, 2.3rem); }
.result-card h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.1rem); }
.result-input { display: flex; flex-wrap: wrap; gap: var(--space-6); margin: var(--space-5) 0; }
.result-input div { min-width: 0; }
.result-input dt, .digest-label { color: var(--text-faint); font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.result-input dd { max-width: min(70vw, 720px); margin: 0.2rem 0 0; overflow-wrap: anywhere; font-family: var(--font-mono); }
.digest-block, .tool-output { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-3); align-items: center; padding: var(--space-4); border: 1px solid #233747; border-radius: var(--radius-md); background: var(--code-panel); }
.digest-block code, .tool-output code { min-width: 0; color: #d9f8ef; font-size: clamp(0.8rem, 2vw, 1rem); line-height: 1.65; overflow-wrap: anywhere; }
.digest-label { grid-column: 1 / -1; color: #8fa2b0; }
.digest-block .button-copy, .tool-output .button-copy { border-color: #435869; color: #edf4f7; }
.result-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: var(--space-5); margin-top: var(--space-5); }
.result-main, .result-aside { min-width: 0; }
.share-preview { position: sticky; top: 86px; padding-top: var(--space-4); border-top: 2px solid var(--accent); }
.share-preview img { width: 100%; height: auto; aspect-ratio: 2 / 1; margin-bottom: var(--space-3); border-radius: var(--radius-sm); background: #111; object-fit: cover; }
.share-preview a { font-size: 0.8rem; }
.table-scroll { width: 100%; max-width: 100%; margin-top: var(--space-4); overflow-x: auto; contain: inline-size; }
table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 0.84rem; }
table th:first-child { width: 27%; }
table th:last-child { width: 58px; }
th, td { padding: 0.75rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { color: var(--text); }
th small { display: block; margin-top: 0.2rem; color: var(--text-faint); font-weight: 500; }
td code { display: block; min-width: 0; overflow-wrap: anywhere; }

.algorithm-filter { max-width: 520px; margin: 0; }
.algorithm-directory { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.algorithm-card { min-width: 0; padding: var(--space-4); border: 1px solid var(--border); border-top: 2px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); }
.algorithm-card:has(.status-positive) { border-top-color: var(--positive); }
.algorithm-card:has(.status-warning) { border-top-color: var(--warning); }
.algorithm-card:has(.status-danger) { border-top-color: var(--danger); }
.algorithm-card h2 { margin: 0; font-size: 1.18rem; }
.algorithm-card p { color: var(--text-muted); font-size: 0.85rem; }
.compact-facts { display: flex; gap: var(--space-5); margin: 0; }
.compact-facts dt { color: var(--text-faint); font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; }
.compact-facts dd { margin: 0; font-family: var(--font-mono); font-size: 0.8rem; }
.empty-state { padding: var(--space-6); border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); color: var(--text-muted); text-align: center; }
.tool-page { padding-bottom: var(--space-7); }
.tool-page .page-heading { padding-bottom: 0; }
.verification-result, .identifier-output { margin-top: var(--space-5); padding: var(--space-4); border-left: 2px solid var(--border-strong); background: var(--surface-soft); }
.verification-result[data-state="match"] { border-color: var(--positive); }
.verification-result[data-state="mismatch"] { border-color: var(--danger); }
.verification-result strong { display: block; margin-bottom: var(--space-2); }
.identifier-output ul { margin-bottom: 0; }
.error-shell { padding-top: var(--space-7); }
.error-card { padding: clamp(1.5rem, 6vw, 3rem); }
.error-code { float: right; margin: 0; color: var(--border-strong); font-family: var(--font-mono); font-size: clamp(3rem, 10vw, 6rem); font-weight: 800; line-height: 0.85; }
.error-card h1 { font-size: clamp(2rem, 5vw, 3rem); }
.ad-slot { min-height: 116px; display: grid; align-content: start; overflow: hidden; border-block: 1px solid var(--border); background: var(--surface-soft); }
.ad-label { padding: 0.35rem 0.6rem; color: var(--text-faint); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
.adsbygoogle { display: block; min-height: 90px; }
.site-footer { margin-top: var(--space-7); border-top: 1px solid #263747; background: var(--header); color: var(--header-muted); }
.footer-inner { min-height: 102px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); font-size: 0.8rem; }
.footer-inner p { margin: 0; }
.footer-inner strong { color: var(--header-text); }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.footer-inner a { color: var(--header-muted); }
.footer-inner a:hover { color: var(--header-text); }
.toast { position: fixed; z-index: 50; right: var(--space-4); bottom: var(--space-4); max-width: min(360px, calc(100vw - 2rem)); padding: 0.7rem 0.9rem; border-left: 3px solid var(--positive); border-radius: var(--radius-sm); background: var(--header); color: var(--header-text); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(0.5rem); transition: opacity 140ms ease, transform 140ms ease; }
.toast.is-visible { opacity: 1; transform: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; } }
@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .mobile-menu { display: block; }
  .header-actions { margin-left: auto; }
  .hash-form { grid-template-columns: minmax(0, 1fr) minmax(150px, 0.55fr) 100px; }
  .hash-form .submit-button { grid-column: 1 / -1; }
  .algorithm-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result-layout { grid-template-columns: minmax(0, 1fr); }
  .share-preview { position: static; display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: center; gap: var(--space-4); }
  .share-preview .eyebrow { grid-column: 1 / -1; margin: 0; }
  .share-preview img { margin: 0; }
}
@media (max-width: 640px) {
  .shell { width: min(calc(100% - 1.25rem), var(--shell)); }
  .brand small { display: none; }
  .intro, .page-heading { padding-top: 2.25rem; }
  body[data-page="home"] .intro h1 { font-size: 3rem; }
  .hash-form, .form-grid, .two-column, .code-grid { grid-template-columns: minmax(0, 1fr); }
  .hash-form .submit-button { grid-column: auto; }
  .field-iterations { max-width: none; }
  .tool-grid, .algorithm-directory, .algorithm-links { grid-template-columns: minmax(0, 1fr); }
  .tool-card:nth-child(odd) { border-right: 0; }
  .tool-heading, .section-heading, .result-topline, .algorithm-card-top { align-items: flex-start; }
  .result-input { gap: var(--space-4); }
  .digest-block, .tool-output { grid-template-columns: minmax(0, 1fr); }
  .digest-label { grid-column: auto; }
  .button-copy { width: 100%; }
  .share-preview { grid-template-columns: minmax(0, 1fr); }
  .disclosure > summary { padding-inline: var(--space-4); }
  .disclosure-body { padding-inline: var(--space-4); }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding: var(--space-5) 0; }
  .error-code { float: none; margin-bottom: var(--space-5); }
}
@media (max-width: 380px) {
  .brand img { width: 32px; height: 32px; }
  .brand strong { font-size: 0.98rem; }
  .header-inner { gap: var(--space-2); }
  .icon-button { width: 38px; height: 38px; }
  .mobile-menu summary { min-height: 38px; padding-inline: 0.55rem; }
  .tool-heading, .result-topline { display: grid; }
}
