/**
 * CyberChef - The Cyber Swiss Army Knife
 *
 * @copyright Crown Copyright 2016-2026
 * @license Apache-2.0
 *
 *   Copyright 2016-2026 Crown Copyright
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
:root {
    --app-font-native-sans: system-ui, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", -apple-system, Arial, sans-serif;
    --app-font-text: "proxima-nova", system-ui, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", -apple-system, Arial, sans-serif;
    --app-font-text: "proxima-nova", var(--app-font-native-sans);
    --font-sans: "proxima-nova", system-ui, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", -apple-system, Arial, sans-serif;
    --font-sans: var(--app-font-text);
    --app-font-native-mono: "SF Mono", "SFMono-Regular", "Cascadia Code", ui-monospace, Menlo, Consolas, monospace;
    --app-font-mono: "SF Mono", "SFMono-Regular", "Cascadia Code", ui-monospace, Menlo, Consolas, monospace;
    --app-font-mono: var(--app-font-native-mono);
    --font-mono: "SF Mono", "SFMono-Regular", "Cascadia Code", ui-monospace, Menlo, Consolas, monospace;
    --font-mono: var(--app-font-mono);
    --ink: #202532;
    --muted: #737b8c;
    --line: #e6e9f0;
    --surface-1: #fff;
    --cyan: #4b61d1;
    --accent: #4b61d1;
    --control-height: 40px;
    --control-font-size: 14px;
    --data-font-size: 13px;
    --data-padding: 16px;
    color: #202532;
    color: var(--ink);
    background: #f8f9fc;
    font-family: system-ui, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", -apple-system, Arial, sans-serif;
    font-family: var(--font-sans);
    font-synthesis-weight: none;
}
html.wf-inactive { --font-sans: var(--app-font-native-sans); }
/* Keep boxes and native editors usable while only Adobe text waits. */
html.wf-loading [data-font-shell] > :not([data-font-shell], [data-font-independent]),
html.wf-loading [data-font-gated], html.wf-loading .checksum-compare { visibility: hidden; }
html.wf-loading [data-font-independent] { visibility: visible; }
.font-loading { display: none; }
html.wf-loading .font-loading { display: block; position: fixed; inset: 0 0 auto; height: 3px; z-index: 100; background: #eef1fd; overflow: hidden; }
.font-loading::after { content: ""; display: block; width: 25%; height: 100%; background: #4b61d1; background: var(--accent); animation: font-progress 1.2s ease-in-out infinite alternate; }
/* Feedback stays readable for actions that can run before Adobe is available. */
#tool-status { font-family: system-ui, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", -apple-system, Arial, sans-serif; font-family: var(--app-font-native-sans); }
#tool-error { font-family: system-ui, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", -apple-system, Arial, sans-serif; font-family: var(--app-font-native-sans); }
h1 { position: relative; }
html.wf-loading h1::after { content: ""; visibility: visible; position: absolute; top: .15em; inset-inline-start: 0; height: .8em; width: min(18rem, 80%); border-radius: 5px; background: #e6e9f0; }
@keyframes font-progress { to { transform: translateX(300%); } }
@media (prefers-reduced-motion: reduce) { .font-loading::after { animation: none; width: 100%; } }

html[data-navigating] { cursor: progress; }
html[data-navigating]::before { content: ""; position: fixed; inset: 0 0 auto; height: 3px; background: #4b61d1; background: var(--accent); z-index: 100; pointer-events: none; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 "proxima-nova", system-ui, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", -apple-system, Arial, sans-serif; font: 15px/1.5 var(--font-sans); }
strong, b { font-weight: 600; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select, summary { cursor: pointer; }
button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid #e6e9f0; border: 1px solid var(--line); border-radius: 7px; min-height: 40px; min-height: var(--control-height); padding: 8px 12px; background: #fff; font-size: 14px; line-height: 20px; }
@media (max-width: 760px) {
    button { min-height: 44px; min-height: var(--control-height);
    }
}
button:hover { background: #f3f5fa; border-color: #ccd3e1; }
button:disabled { opacity: .42; cursor: default; }
button:focus-visible { outline: 2px solid #4b61d1; outline: 2px solid var(--accent); outline-offset: 3px; }
a:focus-visible { outline: 2px solid #4b61d1; outline: 2px solid var(--accent); outline-offset: 3px; }
input:focus-visible { outline: 2px solid #4b61d1; outline: 2px solid var(--accent); outline-offset: 3px; }
select:focus-visible { outline: 2px solid #4b61d1; outline: 2px solid var(--accent); outline-offset: 3px; }
textarea:focus-visible { outline: 2px solid #4b61d1; outline: 2px solid var(--accent); outline-offset: 3px; }
summary:focus-visible { outline: 2px solid #4b61d1; outline: 2px solid var(--accent); outline-offset: 3px; }
input, textarea, select { border: 1px solid #dfe3ed; border-radius: 7px; background: #fff; padding: 10px 12px; min-width: 0; }
textarea { resize: vertical; }
svg { flex-shrink: 0; vertical-align: middle; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(28px, 2.7vw, 36px); line-height: 1.2; letter-spacing: -.03em; font-weight: 600; }
h2 { font-size: 17px; font-weight: 600; }
h3 { font-size: 15px; font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; -webkit-clip-path: inset(50%); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: 8px; inset-inline-start: 8px; z-index: 10; padding: 12px 18px; color: #fff; background: #3349b6; border-radius: 7px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.site-frame { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100dvh; }
.site-sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 28px 16px 0; -webkit-border-end: 1px solid #e6e9f0; -moz-border-end: 1px solid #e6e9f0; border-inline-end: 1px solid #e6e9f0; -webkit-border-end: 1px solid var(--line); -moz-border-end: 1px solid var(--line); border-inline-end: 1px solid var(--line); background: #fff; }
.wordmark { display: block; margin: 0 10px 38px; font-size: 24px; font-weight: 600; letter-spacing: -.7px; }
.sidebar-label, .category-sidebar h2 { color: #657087; font-size: 10px; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; margin: 0 12px 10px; }
.library-nav { display: flex; flex-direction: column; gap: 4px; padding-bottom: 22px; border-bottom: 1px solid #e6e9f0; border-bottom: 1px solid var(--line); }
.library-nav a, .category-sidebar nav > * { display: flex; gap: 10px; align-items: center; min-height: 38px; padding: 8px 11px; border: 0; border-radius: 7px; text-align: start; font-size: 13px; background: transparent; color: #626b7d; }
.library-nav a:hover { color: #4b61d1; color: var(--accent); background: #f6f7fc; }
.category-sidebar nav > *:hover { color: #4b61d1; color: var(--accent); background: #f6f7fc; }
.library-nav a[aria-current=page] { color: #4b61d1; color: var(--accent); background: #eef1fd; font-weight: 600; }
.mobile-library { display: none; }
.library-nav small, .category-sidebar small { -webkit-margin-start: auto; -moz-margin-start: auto; margin-inline-start: auto; font-size: 10px; color: #657087; }
.library-nav svg, .category-sidebar svg { width: 17px; color: #949cac; }
.library-nav a[aria-current] svg { color: #4b61d1; color: var(--accent); }
.category-sidebar { margin-top: 24px; min-height: 0; display: flex; flex-direction: column; }
.category-sidebar nav { display: flex; flex-direction: column; gap: 3px; overflow: auto; scrollbar-width: thin; }
.category-sidebar nav > * { flex-shrink: 0; min-height: 36px; font-size: 12px; }
.category-sidebar a[aria-current] { background: #f1f3fa; color: #37435d; font-weight: 600; }
.category-sidebar nav > * > span { min-width: 0; }
.site-body { min-width: 0; }
.site-header { height: 68px; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e6e9f0; border-bottom: 1px solid var(--line); background: #fff; }
.header-utilities { -webkit-margin-start: auto; -moz-margin-start: auto; margin-inline-start: auto; display: flex; align-items: center; gap: 25px; font-size: 12px; color: #667085; }
.header-utilities > a:hover { color: #4b61d1; color: var(--accent); }
.language-menu { position: relative; }
.language-menu summary { display: flex; align-items: center; gap: 7px; list-style: none; padding: 8px 0; }
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu nav { position: absolute; inset-inline-end: 0; top: 35px; width: 180px; z-index: 5; background: #fff; border: 1px solid #e6e9f0; border: 1px solid var(--line); border-radius: 9px; padding: 8px; box-shadow: 0 12px 28px #202a4214; }
.language-menu nav a { display: block; padding: 7px 10px; border-radius: 4px; }
.language-menu nav a:hover { background: #f0f3fb; }
.mobile-wordmark { display: none; }
#main-content { max-width: 1200px; padding: 0 40px 54px; margin: auto; }
.directory-hero { padding: 34px 0 24px; }
.eyebrow { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #657087; font-weight: 600; margin-bottom: 9px; }
.hero-description { font-size: 14px; color: #657087; margin-top: 10px; max-width: 730px; }
.directory-search { display: flex; align-items: center; gap: 12px; margin-bottom: 29px; }
.search-field { min-width: 0; flex: 1; display: flex; align-items: center; gap: 11px; padding: 0 15px; height: 48px; background: #fff; border: 1px solid #dfe4ef; border-radius: 9px; box-shadow: 0 2px 3px #1c2b4603; }
.search-field:focus-within { border-color: #8593de; box-shadow: 0 0 0 3px #4b61d10a; }
.search-field > svg { color: #8b94a7; }
.search-field input { width: 100%; height: 100%; padding: 0; background: transparent; border: 0; outline: 0; box-shadow: none; font-size: 14px; }
.search-field input:focus-visible { outline: 0; }
.search-field input::-webkit-input-placeholder { color: #657087; }
.search-field input::-moz-placeholder { color: #657087; }
.search-field input::placeholder { color: #657087; }
.search-field kbd { white-space: nowrap; padding: 2px 6px; color: #657087; border: 1px solid #e9ecf3; border-radius: 4px; font: 10px "proxima-nova", system-ui, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", -apple-system, Arial, sans-serif; font: 10px var(--font-sans); }
#clear-filters { background: transparent; border-color: transparent; font-size: 12px; color: #657087; }
#clear-filters:hover { color: #4b61d1; color: var(--accent); background: #eef1fa; }
#category-select { display: none; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.section-heading h2 { font-size: 15px; }
.section-heading > span { font-size: 11px; color: #657087; }
.popular-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.popular-card { display: flex; align-items: flex-start; gap: 12px; min-width: 0; padding: 18px 15px; border: 1px solid #e3e7f0; border-radius: 10px; background: #fff; box-shadow: 0 2px 2px #17244602; transition: border-color .15s, box-shadow .15s; }
.popular-card:hover { border-color: #bdc7e7; box-shadow: 0 4px 12px #2f3c6210; }
.tool-glyph { width: 34px; height: 34px; display: grid; place-items: center; flex-shrink: 0; color: #6478d5; background: #eff2fd; border-radius: 8px; }
.tone-1 { color: #8a6ac2; background: #f4effc; }
.tone-2 { color: #5488b6; background: #eff5fb; }
.tone-3 { color: #b08c4a; background: #faf4e9; }
.tone-4 { color: #508e85; background: #edf7f4; }
.tone-5 { color: #998071; background: #f7f1ed; }
.popular-card > span:nth-child(2) { flex: 1; min-width: 0; }
.popular-card strong { display: block; font-size: 14px; font-weight: 600; margin: 1px 0 4px; }
.popular-card small { display: block; color: #657087; font-size: 11px; line-height: 1.5; }
.popular-card > svg { color: #b3bbc9; margin-top: 8px; }
#popular-tools { margin-bottom: 31px; }
.directory-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.directory-heading h2 { font-size: 15px; }
.directory-heading output { padding: 1px 6px; border-radius: 4px; font-size: 10px; color: #657087; background: #edf0f5; }
.directory-hint { -webkit-margin-start: auto; -moz-margin-start: auto; margin-inline-start: auto; color: #657087; font-size: 11px; }
.directory-group { margin-bottom: 18px; border: 1px solid #e6e9f0; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.directory-group h3 { display: flex; align-items: center; gap: 8px; padding: 11px 16px; background: #fcfcfe; border-bottom: 1px solid #e6e9f0; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 600; color: #657087; letter-spacing: .015em; }
.directory-group h3 svg { color: #9ba6ba; }
.directory-group ul { padding: 0; margin: 0; list-style: none; }
.directory-group li { display: flex; align-items: center; }
.directory-group li > a { flex: 1; min-width: 0; }
.favorite-toggle { flex-shrink: 0; width: 40px; min-height: 40px; padding: 8px; -webkit-margin-end: 8px; -moz-margin-end: 8px; margin-inline-end: 8px; color: #7b869c; border-color: transparent; background: transparent; }
.favorite-toggle:hover { color: #4b61d1; color: var(--accent); background: #eef1fd; }
.favorite-toggle[aria-pressed=true] { color: #986b0e; }
.favorite-toggle[aria-pressed=true] svg { fill: #f7df9d; }
.favorite-detail { width: auto; margin: 0; border-color: #e6e9f0; border-color: var(--line); background: #fff; white-space: nowrap; }
.tool-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.favorites-empty { padding: 48px 24px; border: 1px dashed #dce1ec; border-radius: 10px; background: #fff; text-align: center; }
.favorites-empty > svg { color: #a9b2c4; margin-bottom: 14px; }
.favorites-empty p { margin: 10px auto 20px; max-width: 400px; color: #657087; font-size: 13px; }
.favorites-browse { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; background: #eef1fd; border-radius: 7px; color: #4b61d1; color: var(--accent); font-size: 13px; }
.favorite-status:not(.storage-warning) { position: absolute; width: 1px; height: 1px; overflow: hidden; -webkit-clip-path: inset(50%); clip-path: inset(50%); }
.favorite-status.storage-warning { position: fixed; bottom: 18px; inset-inline-end: 18px; z-index: 10; max-width: min(400px, calc(100% - 36px)); padding: 12px 18px; border: 1px solid #e9d9ae; border-radius: 8px; background: #fff9e9; font-size: 13px; }
.directory-group li + li { border-top: 1px solid #f0f2f7; }
.directory-group li a { display: grid; grid-template-columns: 26px minmax(0, 1fr) 16px; align-items: center; gap: 12px; min-height: 55px; padding: 12px 16px; overflow-wrap: anywhere; }
.directory-group li a:hover { background: #f8faff; }
.row-glyph { color: #8593ae; }
.directory-group strong { font-size: 13px; font-weight: 600; line-height: 1.45; }
.row-description { font-size: 13px; color: #657087; line-height: 1.55; }
.row-arrow { color: #bac1ce; }
.directory-group a:hover .row-arrow { color: #4b61d1; color: var(--accent); }
#directory-empty { padding: 50px 20px; text-align: center; background: #fff; border: 1px dashed #dce1ec; border-radius: 10px; color: #737b8c; color: var(--muted); }
.tool-heading { position: relative; padding: 28px 0 24px; }
.tool-heading h1 { font-size: clamp(26px, 2.5vw, 33px); }
.tool-heading p { font-size: 13px; color: #657087; margin-top: 10px; max-width: 710px; line-height: 1.6; }
.tool-heading .tool-purpose { max-width: 780px; font-size: 15px; line-height: 1.6; color: #46536a; }
.tool-heading .tool-io { display: flex; flex-wrap: wrap; -moz-column-gap: 24px; column-gap: 24px; row-gap: 4px; max-width: 900px; }
.tool-io span { min-width: 0; overflow-wrap: anywhere; }
.tool-io strong { font-weight: 600; color: #46536a; }
.tool-free { display: block; font-size: 11px; color: #546a62; margin-top: 9px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; color: #657087; font-size: 11px; margin-bottom: 22px; }
.tool-heading h1, .tool-guide { overflow-wrap: anywhere; }
.breadcrumbs a:hover { color: #4b61d1; color: var(--accent); }
#toolbar-ad { display: none; width: 320px; height: 70px; margin: 48px auto; text-align: center; }
#toolbar-ad > span { display: block; text-transform: uppercase; font: 8px/20px "proxima-nova", system-ui, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", -apple-system, Arial, sans-serif; font: 8px/20px var(--font-sans); letter-spacing: .1em; color: #adb4c2; }
@media (min-width: 1440px) { #toolbar-ad[data-ad-requested="true"] { display: block; } }
.tool-runner { container: workbench / inline-size; background: #fff; border: 1px solid #dfe4ef; border-radius: 12px; box-shadow: 0 3px 8px #182f5504; overflow: hidden; }
#tool-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.input-column, .output-column { min-width: 0; padding: 0 18px 13px; container-type: inline-size; }
.output-column { background: #fbfcff; -webkit-border-start: 1px solid #e4e8f1; -moz-border-start: 1px solid #e4e8f1; border-inline-start: 1px solid #e4e8f1; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: calc(40px + 24px); height: calc(var(--control-height) + 24px); }
@media (max-width: 760px) {
    .panel-heading { height: calc(44px + 24px); height: calc(var(--control-height) + 24px);
    }
}
.panel-heading h2 { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.panel-heading h2 svg { color: #98a2b7; }
.output-actions, .input-actions { display: flex; gap: 5px; flex-shrink: 0; }
.output-actions button { display: inline-flex; justify-content: center; gap: 7px; align-items: center; border: 1px solid #e3e7f0; border-radius: 7px; background: #fff; min-height: 40px; min-height: var(--control-height); padding: 8px 12px; font-size: 14px; line-height: 20px; color: #657087; }
@media (max-width: 760px) {
    .output-actions button { min-height: 44px; min-height: var(--control-height);
    }
}
.input-actions button { display: inline-flex; justify-content: center; gap: 7px; align-items: center; border: 1px solid #e3e7f0; border-radius: 7px; background: #fff; min-height: 40px; min-height: var(--control-height); padding: 8px 12px; font-size: 14px; line-height: 20px; color: #657087; }
@media (max-width: 760px) {
    .input-actions button { min-height: 44px; min-height: var(--control-height);
    }
}
.file-button { display: inline-flex; justify-content: center; gap: 7px; align-items: center; border: 1px solid #e3e7f0; border-radius: 7px; background: #fff; min-height: 40px; min-height: var(--control-height); padding: 8px 12px; font-size: 14px; line-height: 20px; color: #657087; }
@media (max-width: 760px) {
    .file-button { min-height: 44px; min-height: var(--control-height);
    }
}
.output-actions { flex-shrink: 0; }
/* Keep all three result actions usable when a panel is narrow. */
@container (max-width: 390px) {
    .output-actions button { width: 40px; width: var(--control-height); padding: 8px; }
    @media (max-width: 760px) {
        .output-actions button { width: 44px; width: var(--control-height);
        }
    }
    .input-actions button { width: 40px; width: var(--control-height); padding: 8px; }
    @media (max-width: 760px) {
        .input-actions button { width: 44px; width: var(--control-height);
        }
    }
    .input-actions .file-button { width: 40px; width: var(--control-height); padding: 8px; }
    @media (max-width: 760px) {
        .input-actions .file-button { width: 44px; width: var(--control-height);
        }
    }
    .output-actions button span, .input-actions button span, .input-actions .file-button > span { position: absolute; width: 1px; height: 1px; overflow: hidden; -webkit-clip-path: inset(50%); clip-path: inset(50%); white-space: nowrap; }
}
.file-button { position: relative; cursor: pointer; overflow: hidden; }
.file-button input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.file-button:focus-within { outline: 2px solid #4b61d1; outline: 2px solid var(--accent); outline-offset: 2px; }
#tool-input { display: block; width: 100%; min-height: 278px; padding: 16px; padding: var(--data-padding); background: #fff; border: 1px solid #e4e8f1; border-radius: 7px; font: 13px/1.8 "SF Mono", "SFMono-Regular", "Cascadia Code", ui-monospace, Menlo, Consolas, monospace; font: var(--data-font-size)/1.8 var(--font-mono); color: #45516a; }
@media (max-width: 760px) {
    #tool-input { font: 16px/1.8 "SF Mono", "SFMono-Regular", "Cascadia Code", ui-monospace, Menlo, Consolas, monospace; font: var(--data-font-size)/1.8 var(--font-mono);
    }
}
@media (max-width: 760px) {
    #tool-input { font: 16px/1.8 "SF Mono", "SFMono-Regular", "Cascadia Code", ui-monospace, Menlo, Consolas, monospace; font: var(--data-font-size)/1.8 var(--font-mono);
    }
}
@media (max-width: 760px) {
    #tool-input { padding: 12px; padding: var(--data-padding);
    }
}
#tool-output { display: block; width: 100%; min-height: 278px; padding: 16px; padding: var(--data-padding); background: #fff; border: 1px solid #e4e8f1; border-radius: 7px; font: 13px/1.8 "SF Mono", "SFMono-Regular", "Cascadia Code", ui-monospace, Menlo, Consolas, monospace; font: var(--data-font-size)/1.8 var(--font-mono); color: #45516a; }
@media (max-width: 760px) {
    #tool-output { font: 16px/1.8 "SF Mono", "SFMono-Regular", "Cascadia Code", ui-monospace, Menlo, Consolas, monospace; font: var(--data-font-size)/1.8 var(--font-mono);
    }
}
@media (max-width: 760px) {
    #tool-output { font: 16px/1.8 "SF Mono", "SFMono-Regular", "Cascadia Code", ui-monospace, Menlo, Consolas, monospace; font: var(--data-font-size)/1.8 var(--font-mono);
    }
}
@media (max-width: 760px) {
    #tool-output { padding: 12px; padding: var(--data-padding);
    }
}
#tool-output { background: #f5f7fc; border-color: #e6eaf3; }
#tool-input::-webkit-input-placeholder, #tool-output::-webkit-input-placeholder { color: #657087; }
#tool-input::-moz-placeholder, #tool-output::-moz-placeholder { color: #657087; }
#tool-input::placeholder, #tool-output::placeholder { color: #657087; }
#tool-input:disabled { background: #f5f7fb; color: #9aa3b5; }
.input-meta, #output-info { min-height: 18px; margin-top: 9px; color: #657087; font-size: 12px; overflow-wrap: anywhere; }
.input-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.input-meta > span { min-width: 0; flex: 1; }
.runner-footer { grid-column: 1 / -1; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid #e6e9f0; border-top: 1px solid var(--line); background: #fff; }
.run-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.run-actions .primary { background: #4b61d1; background: var(--accent); border-color: #4b61d1; border-color: var(--accent); color: #fff; font-weight: 600; box-shadow: 0 2px 4px #4b61d122; }
.run-actions .primary:hover { background: #4055c4; }
.run-actions > button:not(.primary) { border-color: transparent; color: #657087; }
#tool-status { color: #657087; font-size: 12px; }
#tool-error { grid-column: 1 / -1; padding: 13px 18px; background: #fff5f3; border-top: 1px solid #f0d7d2; color: #b45e4c; font-size: 12px; overflow-wrap: anywhere; }
.tool-options { grid-column: 1 / -1; padding: 13px 18px; border-top: 1px solid #e6e9f0; border-top: 1px solid var(--line); }
.tool-options summary { display: flex; align-items: center; gap: 8px; min-height: 40px; min-height: var(--control-height); list-style: none; font-size: 14px; color: #657087; }
@media (max-width: 760px) {
    .tool-options summary { min-height: 44px; min-height: var(--control-height);
    }
}
.tool-options summary::after { content: "+"; -webkit-margin-start: auto; -moz-margin-start: auto; margin-inline-start: auto; font: 17px "proxima-nova", system-ui, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", -apple-system, Arial, sans-serif; font: 17px var(--font-sans); color: #a3adbe; }
.tool-options[open] summary::after { content: "−"; }
.tool-options summary::-webkit-details-marker { display: none; }
.argument-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 20px; padding: 17px 0 5px; }
.argument-field { min-width: 0; overflow-wrap: anywhere; }
.argument-field:only-child, .argument-field:has(> .argument-control > textarea) { grid-column: 1 / -1; }
.argument-field:not(.argument-check) { display: grid; grid-template-rows: subgrid; grid-row: span 2; }
.argument-field > label { display: block; font-size: 13px; font-weight: 600; color: #657087; }
.argument-control { min-width: 0; padding-bottom: 12px; }
.argument-field input:not([type=checkbox]) { width: 100%; font-size: 14px; font-size: var(--control-font-size); color: #34415a; }
@media (max-width: 760px) {
    .argument-field input:not([type=checkbox]) { font-size: 16px; font-size: var(--control-font-size);
    }
}
.argument-field select { width: 100%; font-size: 14px; font-size: var(--control-font-size); color: #34415a; }
@media (max-width: 760px) {
    .argument-field select { font-size: 16px; font-size: var(--control-font-size);
    }
}
.argument-field textarea { width: 100%; font-size: 14px; font-size: var(--control-font-size); color: #34415a; }
@media (max-width: 760px) {
    .argument-field textarea { font-size: 16px; font-size: var(--control-font-size);
    }
}
/* Explicit geometry prevents macOS selects from painting a shorter native bezel. */
.tool-runner :where(input:not([type=checkbox], [type=radio], [type=file], [type=range], [type=color], [type=hidden]), select:not([multiple], [size])) { height: 40px; height: var(--control-height); min-height: 40px; min-height: var(--control-height); padding: 8px 12px; font-size: 14px; font-size: var(--control-font-size); line-height: 22px; }
@media (max-width: 760px) {
    .tool-runner :where(input:not([type=checkbox], [type=radio], [type=file], [type=range], [type=color], [type=hidden]), select:not([multiple], [size])) { font-size: 16px; font-size: var(--control-font-size);
    }
}
@media (max-width: 760px) {
    .tool-runner :where(input:not([type=checkbox], [type=radio], [type=file], [type=range], [type=color], [type=hidden]), select:not([multiple], [size])) { min-height: 44px; min-height: var(--control-height);
    }
}
@media (max-width: 760px) {
    .tool-runner :where(input:not([type=checkbox], [type=radio], [type=file], [type=range], [type=color], [type=hidden]), select:not([multiple], [size])) { height: 44px; height: var(--control-height);
    }
}
.tool-runner select:where(:not([multiple], [size])) { -moz-appearance: none; appearance: none; -webkit-appearance: none; -webkit-padding-end: 36px; -moz-padding-end: 36px; padding-inline-end: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2716%27 height=%2716%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23657087%27 stroke-width=%271.8%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27m7 10 5 5 5-5%27/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
[dir=rtl] .tool-runner select:where(:not([multiple], [size])) { background-position: left 12px center; }
.argument-field small { display: block; margin-top: 5px; font-size: 12px; color: #657087; }
.argument-check { display: grid; grid-template-columns: 16px minmax(0, 1fr); grid-row: span 2; align-self: end; align-items: center; gap: 4px 9px; min-height: 40px; min-height: var(--control-height); margin-bottom: 12px; }
@media (max-width: 760px) {
    .argument-check { min-height: 44px; min-height: var(--control-height);
    }
}
.argument-check > label { grid-column: 2; grid-row: 1; min-height: 40px; min-height: var(--control-height); align-content: center; }
@media (max-width: 760px) {
    .argument-check > label { min-height: 44px; min-height: var(--control-height);
    }
}
.argument-check > input { grid-column: 1; grid-row: 1; width: 16px; height: 16px; margin: 0; accent-color: #4b61d1; accent-color: var(--accent); }
.argument-check > small { grid-column: 2; grid-row: 2; margin: 0; }
.paired-input { display: flex; gap: 5px; }
.paired-input input { flex: 1; }
.paired-input select { flex: 0 0 108px; max-width: 50%; }
.argument-heading { grid-column: 1 / -1; font-size: 12px; color: #69768e; }
#result-preview { width: 100%; height: 278px; border: 1px solid #e6e9f0; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
#result-files { display: flex; flex-direction: column; gap: 7px; }
#result-files a { display: inline-flex; align-items: center; min-height: 40px; min-height: var(--control-height); padding: 8px 12px; font-size: 14px; line-height: 20px; border: 1px solid #e6e9f0; border: 1px solid var(--line); border-radius: 7px; }
@media (max-width: 760px) {
    #result-files a { min-height: 44px; min-height: var(--control-height);
    }
}
.tool-guide { margin-top: 32px; }
.tool-guide section { padding: 24px; border: 1px solid #e6e9f0; border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: 16px; }
.tool-guide h2 { font-size: 15px; margin-bottom: 11px; color: #505d74; }
.tool-guide h3 { font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: #657087; margin-bottom: 8px; }
.tool-guide p, .tool-guide li { color: #566279; font-size: 14px; line-height: 1.85; }
.tool-guide p + p { margin-top: 10px; }
.tool-guide a { color: #6980ca; }
.tool-guide a:hover { text-decoration: underline; text-underline-offset: 3px; }
.operation-details { white-space: pre-line; }
.example-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 16px; }
.tool-guide pre { margin: 0; padding: 15px; font: 13px/1.7 "SF Mono", "SFMono-Regular", "Cascadia Code", ui-monospace, Menlo, Consolas, monospace; font: 13px/1.7 var(--font-mono); background: #f7f9fd; color: #657087; border: 1px solid #e9edf5; border-radius: 7px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 230px; overflow: auto; }
.public-table { overflow: auto; }
.public-table table { width: 100%; border-collapse: collapse; font-size: 13px; color: #657087; }
.public-table { max-width: 100%; }
.public-table table { table-layout: fixed; }
.public-table th:first-child { width: 22%; }
.example-settings { margin-top: 12px; font-size: 13px; color: #566279; }
.example-settings h3 { margin-bottom: 8px; font-size: 12px; }
.public-table td, .public-table th { padding: 9px 11px; text-align: start; vertical-align: top; border-bottom: 1px solid #edf0f6; overflow-wrap: anywhere; }
.parameter-choices { margin-top: 8px; }
.parameter-choices ul { max-height: 260px; overflow: auto; -webkit-padding-start: 18px; -moz-padding-start: 18px; padding-inline-start: 18px; }
.parameter-choices li { font-size: 12px; }
.public-table th { font-size: 11px; font-weight: 600; color: #657087; background: #fafbfe; }
.public-table code { font: 11px "SF Mono", "SFMono-Regular", "Cascadia Code", ui-monospace, Menlo, Consolas, monospace; font: 11px var(--font-mono); }
.related-links { -moz-columns: 2; columns: 2; padding-left: 18px; }
.app-footer { display: flex; justify-content: flex-start; padding: 20px 40px; border-top: 1px solid #e6e9f0; border-top: 1px solid var(--line); color: #657087; font-size: 11px; background: #fff; }
.app-footer nav { display: flex; flex-wrap: wrap; gap: 12px 18px; }
.app-footer { flex-wrap: wrap; gap: 16px; }
.info-page { max-width: 850px; padding-block: 24px 48px; }
.info-page h1 { max-width: 680px; font-size: clamp(32px, 4vw, 48px); line-height: 1.1; letter-spacing: -.035em; }
.info-page .hero-description { margin-block: 20px 36px; font-size: 19px; }
.info-page section { scroll-margin-top: 24px; }
.privacy-preference { margin-block: 20px; padding: 20px; border: 1px solid #e6e9f0; border: 1px solid var(--line); border-radius: 10px; background: #f8faff; }
.privacy-preference label { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; }
.privacy-preference input { margin-top: 5px; accent-color: #4b61d1; accent-color: var(--accent); }
.privacy-preference p { font-size: 14px; }
@media (max-width: 1150px) {
    .site-frame { grid-template-columns: 205px minmax(0, 1fr); }
    .site-sidebar { padding-left: 12px; padding-right: 12px; }
    #main-content { padding-left: 28px; padding-right: 28px; }
    .site-header { padding-left: 28px; padding-right: 28px; }
    .popular-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .row-description { display: none; }
    .directory-group li a { grid-template-columns: 26px minmax(0, 1fr) 16px; }
    .argument-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .runner-footer { flex-wrap: wrap; }
}
@media (max-width: 760px) {
    :root { --control-height: 44px; --control-font-size: 16px; --data-font-size: 16px; --data-padding: 12px; }
    .argument-field:has(.paired-input) { grid-column: 1 / -1; }
    .site-frame { display: block; }
    .site-sidebar { display: none; }
    .site-header { height: 61px; padding: 0 20px; }
    .mobile-wordmark { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 600; letter-spacing: -.4px; }
    .mobile-library { display: flex; align-items: center; gap: 4px; padding: 8px 12px; background: #fff; border-bottom: 1px solid #e6e9f0; border-bottom: 1px solid var(--line); }
    .mobile-library a { display: flex; flex: 1 0 auto; align-items: center; gap: 4px; padding: 9px 4px; min-height: 44px; border-radius: 7px; font-size: 12px; }
    .mobile-library a > span { white-space: nowrap; }
    .mobile-library a[aria-current] { color: #4b61d1; color: var(--accent); background: #eef1fd; font-weight: 600; }
    .mobile-library small { font-size: 10px; color: #657087; }
    .mobile-library svg { width: 16px; flex-shrink: 0; }
    .tool-title { flex-wrap: wrap; gap: 12px; }
    .favorite-toggle { min-height: 44px; width: 44px; }
    .favorite-detail { width: auto; }
    .header-utilities { gap: 18px; font-size: 11px; }
    .language-menu summary > svg { display: none; }
    #main-content { padding: 0 20px 30px; }
    .directory-hero { padding: 25px 0 19px; }
    .directory-hero h1 { font-size: 27px; }
    .hero-description { font-size: 13px; line-height: 1.7; margin-top: 9px; }
    .eyebrow { font-size: 9px; }
    .directory-search { flex-wrap: wrap; gap: 9px; margin-bottom: 22px; }
    .search-field { flex-basis: 100%; height: 44px; padding: 0 12px; }
    .search-field input { font-size: 16px; }
    .search-field kbd { display: none; }
    #category-select { display: block; order: 1; flex: 1; font-size: 16px; padding: 8px 10px; }
    #clear-filters { order: 2; font-size: 11px; min-height: 34px; padding: 5px 9px; }
    .section-heading h2, .directory-heading h2 { font-size: 14px; }
    .section-heading > span { font-size: 10px; }
    .popular-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .popular-card { position: relative; flex-direction: column; gap: 12px; padding: 15px 13px; }
    .popular-card > svg { position: absolute; inset-inline-end: 12px; top: 16px; margin: 0; width: 14px; }
    .popular-card strong { font-size: 13px; }
    .popular-card small { font-size: 12px; }
    .tool-glyph { width: 30px; height: 30px; border-radius: 7px; }
    .tool-glyph svg { width: 18px; height: 18px; }
    #popular-tools { margin-bottom: 26px; }
    .directory-hint { display: none; }
    .directory-group li a { min-height: 51px; padding: 12px; gap: 8px; grid-template-columns: 22px minmax(0, 1fr) 16px; }
    .directory-group strong { font-size: 13px; }
    .directory-group h3 { padding: 10px 12px; font-size: 10px; }
    .tool-heading { padding: 21px 0; }
    .breadcrumbs { margin-bottom: 18px; font-size: 10px; }
    .tool-heading h1 { font-size: 26px; }
    .tool-heading p { font-size: 12px; }
    #tool-form { display: flex; flex-direction: column; }
    .input-column { order: 1; }
    .tool-options { order: 2; }
    .runner-footer { order: 3; }
    #tool-error { order: 4; }
    .output-column { order: 5; }
    .input-column, .output-column { padding: 0 14px 11px; }
    .output-column { -webkit-border-start: 0; -moz-border-start: 0; border-inline-start: 0; border-top: 1px solid #e6e9f0; border-top: 1px solid var(--line); }
    #tool-input, #tool-output { min-height: 186px; font-size: 16px; padding: 12px; }
    .runner-footer { padding: 13px 14px; gap: 11px; }
    .tool-options { padding: 12px 14px; }
    .argument-grid { grid-template-columns: minmax(0, 1fr); }
    .tool-guide { margin-top: 22px; }
    .tool-guide section { padding: 19px 17px; margin-bottom: 12px; }
    .tool-guide h2 { font-size: 14px; }
    .tool-guide p, .tool-guide li { font-size: 13px; }
    .example-pair { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .related-links { -moz-columns: 1; columns: 1; }
    .app-footer { padding: 18px 20px; flex-wrap: wrap; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .popular-card { transition: none; } }
.example-case { border-top: 1px solid #d8dde2; border-top: 1px solid var(--border, #d8dde2); padding: 1.1rem 0; }
.example-case > summary { cursor: pointer; min-height: 40px; min-height: var(--control-height); align-content: center; font-weight: 600; line-height: 1.5; }
@media (max-width: 760px) {
    .example-case > summary { min-height: 44px; min-height: var(--control-height);
    }
}
.example-case-body { display: grid; gap: 16px; padding-top: 16px; }
.example-case-body p, .example-case-body p+p { margin: 0; }
.example-case .example-pair { margin: 0; -moz-column-gap: 24px; column-gap: 24px; row-gap: 8px; }
.example-value { display: grid; grid-template-rows: subgrid; grid-row: span 2; min-width: 0; }
.example-value-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.example-value-heading h3 { margin: 0; }
.example-format { font-size: 12px; color: #657087; color: var(--text-muted, #657087); }
.example-value-content { min-width: 0; }
.example-case pre { min-height: 58px; max-height: 18rem; margin: 0; padding: 14px 16px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.example-case .example-limitation { margin-top: 8px; font-size: 13px; }
.example-case dl.example-settings { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 12px 0; border-block: 1px solid #e9edf5; border-block: 1px solid var(--border, #e9edf5); font-size: 13px; }
.example-case dl.example-settings>div { display: flex; align-items: baseline; gap: 8px; min-width: 0; max-width: 100%; }
.example-case dt { flex-shrink: 0; }
.example-case dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.example-case-footer { display: flex; align-items: center; gap: 16px 24px; }
.example-reference { flex: 1; min-width: 0; }
.example-case .example-verification, .example-case .example-sources { font-size: 12px; line-height: 1.65; }
.example-case .example-sources { margin-top: 4px; overflow-wrap: anywhere; }
.example-case button { flex-shrink: 0; margin: 0; }
@media (max-width: 600px) {
    .example-case dl.example-settings { gap: 8px; }
    .example-case dl.example-settings>div { width: 100%; }
    .example-case dt { flex: 0 1 48%; }
    .example-case dd { flex: 1; }
    .example-case-footer { align-items: flex-start; flex-direction: column; gap: 12px; }
}
#example-verdict { padding: .85rem; border: 1px solid currentColor; border-radius: .5rem; font: .85rem/1.5 "SF Mono", "SFMono-Regular", "Cascadia Code", ui-monospace, Menlo, Consolas, monospace; font: .85rem/1.5 var(--app-font-native-mono); overflow-wrap: anywhere; }
#example-verdict[data-state="passed"] { color: #166534; background: #f0fdf4; }
#example-verdict[data-state="failed"] { color: #9f1239; background: #fff1f2; }

.contact-form { display: grid; gap: 20px; max-width: 680px; margin-top: 32px; }
.contact-field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-field { display: grid; gap: 8px; min-width: 0; }
.contact-field label { font-size: 14px; font-weight: 600; }
.contact-field input { width: 100%; min-width: 0; padding: 11px 12px; font: 16px/1.5 system-ui, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", -apple-system, Arial, sans-serif; font: 16px/1.5 var(--app-font-native-sans); color: #202532; color: var(--ink); background: white; }
.contact-field textarea { width: 100%; min-width: 0; padding: 11px 12px; font: 16px/1.5 system-ui, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", -apple-system, Arial, sans-serif; font: 16px/1.5 var(--app-font-native-sans); color: #202532; color: var(--ink); background: white; }
.contact-field textarea { resize: vertical; }
.contact-form p, .contact-form p+p { margin: 0; font-size: 13px; line-height: 1.65; }
.contact-actions { display: flex; align-items: center; gap: 16px; }
.contact-actions button { min-height: 44px; min-width: 144px; flex-shrink: 0; }
#contact-status { font-family: system-ui, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", -apple-system, Arial, sans-serif; font-family: var(--app-font-native-sans); }
#contact-status[data-state="error"] { color: #9f1239; }
#contact-status[data-state="accepted"] { color: #166534; }
.contact-privacy { color: #657087; color: var(--text-muted, #657087); }
@media (max-width: 600px) {
    .contact-field-pair { grid-template-columns: minmax(0, 1fr); }
    .contact-actions { flex-direction: column; align-items: flex-start; }
}

/* Image tools keep the file, its controls and the real result in one workspace. */
.image-stage { min-height: 278px; display: flex; align-items: center; justify-content: center; border: 1px solid #dfe4ef; border-radius: 8px; overflow: hidden; background: repeating-conic-gradient(#eef1f6 0% 25%, #fff 0% 50%) 0 / 18px 18px; }
.image-stage img { display: block; width: 100%; height: 278px; object-fit: contain; padding: 16px; }
.image-dropzone { border-style: dashed; transition: border-color .12s; }
.image-dropzone.drag-over { border-color: #4b61d1; border-color: var(--accent); outline: 2px solid #4b61d1; outline: 2px solid var(--accent); outline-offset: -3px; }
#original-preview-slot { width: 100%; }
#image-upload-prompt { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px; }
#image-upload-prompt > svg { color: #9aa6bb; }
#image-upload-prompt p, .image-empty span { font-size: 13px; color: #657087; }
#choose-image { display: flex; align-items: center; gap: 8px; background: #fff; }
.image-empty { background: #f6f8fc; }
.image-preview-fallback { padding: 24px; font: 13px/1.6 system-ui, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", -apple-system, Arial, sans-serif; font: 13px/1.6 var(--app-font-native-sans); color: #657087; }
.image-workbench .input-meta, .image-workbench #output-info { font-size: 12px; line-height: 1.5; min-height: 22px; }
.image-workbench #copy-result { display: none; }
.image-workbench:has(#tool-output:not([hidden])) #copy-result { display: inline-flex; }
.image-controls { grid-column: 1 / -1; border-top: 1px solid #e6e9f0; border-top: 1px solid var(--line); padding: 16px 18px; }
.image-controls .argument-grid { padding: 0; }
.image-advanced { margin-top: 14px; }
.image-advanced summary { min-height: 40px; min-height: var(--control-height); align-content: center; font-size: 14px; color: #657087; cursor: pointer; }
@media (max-width: 760px) {
    .image-advanced summary { min-height: 44px; min-height: var(--control-height);
    }
}
.image-advanced .argument-grid { padding-top: 14px; }
.image-workbench #result-files { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.image-workbench #result-files .image-stage, .image-workbench #result-files img { height: 130px; min-height: 130px; }
.image-workbench #result-files a { display: block; border: 0; padding-inline: 0; }
.example-image-stage { min-height: 168px; display: flex; align-items: center; justify-content: center; border: 1px solid #e6e9f0; border: 1px solid var(--line); border-radius: 8px; background: repeating-conic-gradient(#eef1f6 0% 25%, #fff 0% 50%) 0 / 16px 16px; }
.example-image-stage img { width: 100%; height: 168px; object-fit: contain; padding: 12px; }
.example-image-pending > span { padding: 16px; color: #657087; font-size: 13px; background: #fff; border-radius: 6px; }
.example-case .example-image-expectation { margin-top: 8px; font-size: 12px; }
.example-case [data-example-status] { font: 12px/1.6 system-ui, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", -apple-system, Arial, sans-serif; font: 12px/1.6 var(--app-font-native-sans); }
[data-example-status][data-state="passed"] { color: #166534; }
[data-example-status][data-state="failed"] { color: #9f1239; }
/* A stable grid replaces long, hard-to-scan strings of parameter/value pairs. */
.example-case dl.example-settings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 20px; border-block: 0; background: #f6f8fc; padding: 12px 14px; border-radius: 7px; }
.example-case dl.example-settings > div { display: block; }
.example-case dt { font-size: 12px; color: #657087; margin-bottom: 3px; }
.example-case dd { color: #34415a; font-size: 12px; }
.example-case > summary { font-size: 15px; color: #28334a; }
.tool-guide .example-value-heading h3 { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 600; }
.image-workbench + .tool-guide .example-library > p { font-size: 13px; }
@media (max-width: 760px) {
    .image-workbench .input-column { order: 1; }
    .image-workbench .output-column { order: 2; }
    .image-controls { order: 3; padding: 14px; }
    .image-controls .argument-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .image-workbench .runner-footer { order: 4; flex-wrap: wrap; }
    .image-workbench #tool-error { order: 5; }
    .image-stage { min-height: 210px; }
    .image-stage img { height: 210px; }
    .example-case dl.example-settings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .example-case dl.example-settings > div { width: auto; }
}

/* Typed workbenches show data in the form the tool actually handles. */
.typed-workbench .input-column { order: 1; }
.typed-workbench .output-column { order: 2; }
.typed-workbench .image-controls { order: 3; }
.typed-workbench .runner-footer { order: 4; }
.typed-workbench #tool-error { order: 5; }
.file-dropzone { min-height: 248px; padding: 24px; border: 1px dashed #cdd5e5; border-radius: 8px; background: #f8faff; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px; }
.file-dropzone > svg { color: #8998b2; }
.file-dropzone p { margin: 0; font-size: 13px; color: #657087; }
.file-dropzone #selected-file { max-width: 100%; overflow-wrap: anywhere; font: 13px/1.5 "SF Mono", "SFMono-Regular", "Cascadia Code", ui-monospace, Menlo, Consolas, monospace; font: 13px/1.5 var(--app-font-native-mono); color: #202532; color: var(--ink); }
.file-dropzone.drag-over { border-color: #4b61d1; border-color: var(--accent); outline: 2px solid #4b61d1; outline: 2px solid var(--accent); }
#choose-file { display: flex; align-items: center; gap: 8px; }
.result-empty { border-style: solid; background: #f6f8fc; font-size: 13px; color: #657087; }
.typed-workbench textarea#tool-input, .typed-workbench textarea#tool-output { min-height: 248px; height: 248px; }
.data-preview { min-height: 248px; max-height: 380px; padding: 16px; padding: var(--data-padding); overflow: auto; border: 1px solid #e6e9f0; border: 1px solid var(--line); border-radius: 8px; background: #f8faff; font: 13px/1.8 "SF Mono", "SFMono-Regular", "Cascadia Code", ui-monospace, Menlo, Consolas, monospace; font: var(--data-font-size)/1.8 var(--font-mono); color: #45516a; }
@media (max-width: 760px) {
    .data-preview { font: 16px/1.8 "SF Mono", "SFMono-Regular", "Cascadia Code", ui-monospace, Menlo, Consolas, monospace; font: var(--data-font-size)/1.8 var(--font-mono);
    }
}
@media (max-width: 760px) {
    .data-preview { font: 16px/1.8 "SF Mono", "SFMono-Regular", "Cascadia Code", ui-monospace, Menlo, Consolas, monospace; font: var(--data-font-size)/1.8 var(--font-mono);
    }
}
@media (max-width: 760px) {
    .data-preview { padding: 12px; padding: var(--data-padding);
    }
}
.data-preview > pre.json-source { margin: 0; padding: 0; min-height: 0; max-height: none; background: transparent; border: 0; white-space: pre-wrap; overflow: visible; overflow-wrap: anywhere; font: inherit; }
.json-source code { font: inherit; }
.typed-workbench #result-preview-slot.data-preview, .typed-workbench #input-preview.data-preview { height: 248px; }
.json-key { color: #37415c; }
.json-string { color: #187043; }
.json-number { color: #8b3b13; }
.json-literal { color: #6e3c9a; }
.json-bracket, .json-colon { color: #76829a; }
.data-table { max-height: 360px; overflow: auto; font: 13px/1.8 "SF Mono", "SFMono-Regular", "Cascadia Code", ui-monospace, Menlo, Consolas, monospace; font: var(--data-font-size)/1.8 var(--font-mono); }
@media (max-width: 760px) {
    .data-table { font: 16px/1.8 "SF Mono", "SFMono-Regular", "Cascadia Code", ui-monospace, Menlo, Consolas, monospace; font: var(--data-font-size)/1.8 var(--font-mono);
    }
}
@media (max-width: 760px) {
    .data-table { font: 16px/1.8 "SF Mono", "SFMono-Regular", "Cascadia Code", ui-monospace, Menlo, Consolas, monospace; font: var(--data-font-size)/1.8 var(--font-mono);
    }
}
.data-table table { width: 100%; border-collapse: collapse; font: inherit; }
.data-table code { font: inherit; }
.data-table td, .data-table th { padding: 9px 12px; border-bottom: 1px solid #e2e7f0; text-align: start; vertical-align: top; white-space: pre-wrap; min-width: 90px; max-width: 340px; overflow-wrap: anywhere; }
.data-table th { position: sticky; top: 0; background: #edf2fa; color: #37415c; font-weight: 600; }
.preview-note { font: 12px/1.6 system-ui, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", -apple-system, Arial, sans-serif; font: 12px/1.6 var(--app-font-native-sans); color: #657087; margin-top: 10px; }
.media-preview { min-height: 248px; padding: 18px; border: 1px solid #e6e9f0; border: 1px solid var(--line); border-radius: 8px; background: #f8faff; display: flex; justify-content: center; flex-direction: column; }
.download-preview { min-height: 248px; padding: 18px; border: 1px solid #e6e9f0; border: 1px solid var(--line); border-radius: 8px; background: #f8faff; display: flex; justify-content: center; flex-direction: column; }
.media-preview audio, .media-preview video { width: 100%; max-height: 300px; }
.media-preview video { background: #111827; }
.file-result { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; font: 14px/1.6 system-ui, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", -apple-system, Arial, sans-serif; font: 14px/1.6 var(--app-font-native-sans); }
.file-result strong, .file-result p { width: 100%; margin: 0; overflow-wrap: anywhere; }
.file-result a { display: inline-flex; align-items: center; min-height: 40px; min-height: var(--control-height); padding: 8px 12px; border: 1px solid #e6e9f0; border: 1px solid var(--line); border-radius: 7px; background: white; font-size: 14px; line-height: 20px; }
@media (max-width: 760px) {
    .file-result a { min-height: 44px; min-height: var(--control-height);
    }
}
.archive-files a { display: inline-flex; align-items: center; min-height: 40px; min-height: var(--control-height); padding: 8px 12px; border: 1px solid #e6e9f0; border: 1px solid var(--line); border-radius: 7px; background: white; font-size: 14px; line-height: 20px; }
@media (max-width: 760px) {
    .archive-files a { min-height: 44px; min-height: var(--control-height);
    }
}
.file-pages { display: flex; align-items: center; gap: 12px; justify-content: flex-end; padding: 10px 0; font: 12px system-ui, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", -apple-system, Arial, sans-serif; font: 12px var(--app-font-native-sans); }
.archive-files a { white-space: nowrap; }
.example-data-preview { min-height: 0; max-height: 240px; padding: 10px 12px; font-size: 12px; }
.example-case audio, .example-case video { width: 100%; max-height: 180px; }
.example-file-list { margin: 0; padding: 0; list-style: none; font-size: 13px; }
.example-file-list li { padding: 10px 12px; background: #f6f8fc; border-radius: 6px; margin-bottom: 8px; }
.example-file-list span { -webkit-margin-start: 12px; -moz-margin-start: 12px; margin-inline-start: 12px; font-size: 12px; color: #657087; }
.example-file-list pre { padding: 8px 0; min-height: 0; }
.example-download-preview { min-height: 0; padding: 14px 16px; }
@media (max-width: 760px) {
    .typed-workbench .input-column { order: 1; }
    .typed-workbench .output-column { order: 2; }
    .file-dropzone, .media-preview, .download-preview, .data-preview { min-height: 190px; }
    .data-preview { max-height: 300px; }
    .typed-workbench textarea#tool-input, .typed-workbench textarea#tool-output { height: 190px; min-height: 190px; }
    .typed-workbench #result-preview-slot.data-preview, .typed-workbench #input-preview.data-preview { height: 190px; }
    .example-data-preview { min-height: 0; max-height: 220px; }
    .example-download-preview { min-height: 0; }
}

/* Native functional views keep literal data separate from navigation typography. */
.functional-workbench textarea#tool-input, .functional-workbench textarea#tool-output { min-height: 136px; height: 136px; }
.functional-date textarea#tool-input, .functional-network textarea#tool-input { min-height: 72px; height: 72px; }
.functional-workbench .result-empty { min-height: 136px; }
.functional-date .result-empty, .functional-network .result-empty { min-height: 72px; }
.functional-preview { min-height: 136px; max-height: 420px; overflow: auto; padding: 16px; padding: var(--data-padding); border: 1px solid #e6e9f0; border: 1px solid var(--line); border-radius: 8px; background: #f8faff; font: 13px/1.8 "SF Mono", "SFMono-Regular", "Cascadia Code", ui-monospace, Menlo, Consolas, monospace; font: var(--data-font-size)/1.8 var(--font-mono); color: #45516a; }
@media (max-width: 760px) {
    .functional-preview { font: 16px/1.8 "SF Mono", "SFMono-Regular", "Cascadia Code", ui-monospace, Menlo, Consolas, monospace; font: var(--data-font-size)/1.8 var(--font-mono);
    }
}
@media (max-width: 760px) {
    .functional-preview { font: 16px/1.8 "SF Mono", "SFMono-Regular", "Cascadia Code", ui-monospace, Menlo, Consolas, monospace; font: var(--data-font-size)/1.8 var(--font-mono);
    }
}
@media (max-width: 760px) {
    .functional-preview { padding: 12px; padding: var(--data-padding);
    }
}
.functional-text { margin: 0; font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.functional-text code { font: inherit; }
.digest-value { color: #273453; }
.field-result { margin: 0; }
.field-result > div { display: grid; grid-template-columns: minmax(100px, .8fr) minmax(0, 1.4fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid #e6e9f0; border-bottom: 1px solid var(--line); }
.field-result > div:last-child { border-bottom: 0; }
.field-result dt { color: #657087; }
.field-result dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.byte-scroll { max-width: 100%; overflow: auto; }
.byte-table, .native-result-table { width: 100%; border-collapse: collapse; text-align: start; }
.byte-table th { padding: 6px 10px; border-bottom: 1px solid #e6e9f0; border-bottom: 1px solid var(--line); vertical-align: top; }
.byte-table td { padding: 6px 10px; border-bottom: 1px solid #e6e9f0; border-bottom: 1px solid var(--line); vertical-align: top; }
.native-result-table th { padding: 6px 10px; border-bottom: 1px solid #e6e9f0; border-bottom: 1px solid var(--line); vertical-align: top; }
.native-result-table td { padding: 6px 10px; border-bottom: 1px solid #e6e9f0; border-bottom: 1px solid var(--line); vertical-align: top; }
.byte-table th { color: #657087; font-weight: 400; }
.byte-table td { white-space: pre; }
.byte-table td code, .field-result code { font: inherit; }
.native-result-table td { overflow-wrap: anywhere; max-width: 480px; }
.output-actions #byte-view { width: 88px; color: #657087; background-color: #fff; font-family: "proxima-nova", system-ui, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", -apple-system, Arial, sans-serif; font-family: var(--font-sans); }
@container (max-width: 280px) {
    .output-actions #byte-view { width: 72px; padding-inline: 8px 24px; background-position: right 6px center; }
    [dir=rtl] .output-actions #byte-view { background-position: left 6px center; }
}
.checksum-compare { display: block; margin: 20px 0 6px; font: 13px/1.5 "proxima-nova", system-ui, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", -apple-system, Arial, sans-serif; font: 13px/1.5 var(--font-sans); color: #657087; }
#expected-checksum { display: block; width: 100%; font-family: inherit; }
#checksum-match { min-height: 22px; margin: 6px 0 0; }
#checksum-match[data-state=passed] { color: #217447; }
#checksum-match[data-state=failed] { color: #a6382c; }
.date-picker { margin-top: 12px; }
.date-picker > label { display: block; font-size: 12px; margin-bottom: 6px; }
.date-picker > div { display: flex; gap: 8px; min-width: 0; }
.date-picker input { width: 100%; min-width: 0; font-family: "SF Mono", "SFMono-Regular", "Cascadia Code", ui-monospace, Menlo, Consolas, monospace; font-family: var(--font-mono); }
.date-picker button { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; min-height: 40px; min-height: var(--control-height); }
@media (max-width: 760px) {
    .date-picker button { min-height: 44px; min-height: var(--control-height);
    }
}
.functional-file { padding: 24px 16px; border: 1px dashed #c9d1e6; border-radius: 8px; background: #f8faff; font-family: "SF Mono", "SFMono-Regular", "Cascadia Code", ui-monospace, Menlo, Consolas, monospace; font-family: var(--font-mono); overflow-wrap: anywhere; }
.functional-no-input .output-column, .functional-http.no-request-body .output-column { grid-column: 1 / -1; -webkit-border-start: 0; -moz-border-start: 0; border-inline-start: 0; }
.functional-http .image-controls { order: 0; grid-row: 1; border-top: 0; border-bottom: 1px solid #e6e9f0; border-bottom: 1px solid var(--line); }
.example-functional-preview { max-height: 240px; overflow: auto; }
.example-functional-preview .functional-text { min-height: 0; font-size: 13px; }
@media (max-width: 700px) {
    .functional-workbench textarea#tool-input, .functional-workbench textarea#tool-output { min-height: 120px; height: 120px; font-size: 16px; }
    .functional-date textarea#tool-input, .functional-network textarea#tool-input { min-height: 72px; height: 72px; }
    .functional-preview { max-height: 340px; }
    .functional-preview { min-height: 120px; }
    .functional-http .image-controls { order: 0; }
    .date-picker > div { flex-wrap: wrap; }
    .field-result > div { grid-template-columns: minmax(80px, .8fr) minmax(0, 1.2fr); gap: 8px; }
}

/* The same phone workflow applies to text, typed, image and functional tools. */
@container workbench (max-width: 640px) {
    #tool-form { display: flex; flex-direction: column; }
    .tool-runner .input-column { order: 1; }
    .tool-runner .tool-options, .tool-runner .image-controls { order: 2; }
    .tool-runner .runner-footer { order: 3; flex-wrap: wrap; }
    .tool-runner #tool-error { order: 4; }
    .tool-runner .output-column { order: 5; -webkit-border-start: 0; -moz-border-start: 0; border-inline-start: 0; border-top: 1px solid #e6e9f0; border-top: 1px solid var(--line); }
    .functional-http .image-controls { order: 0; }
}
@media (max-width: 760px) {
    .argument-field:has(> .argument-control > select) { grid-column: 1 / -1; }
    .tool-runner .input-column { order: 1; }
    .tool-runner .tool-options, .tool-runner .image-controls { order: 2; }
    .tool-runner .runner-footer { order: 3; }
    .tool-runner #tool-error { order: 4; }
    .tool-runner .output-column { order: 5; }
    .functional-http .image-controls { order: 0; }
}

.expected-chart { min-width: 0; background: #fff; border: 1px solid #dfe4ef; border-radius: 8px; padding: 8px; }
.expected-chart svg { display: block; width: 100%; height: auto; }
.example-value .chart-properties { max-height: 9rem; font-size: .78rem; }

/* Password candidates stay compact; the stored hash sits with its candidate. */
.functional-password input#tool-input { height: 46px; min-height: 46px; font-size: 16px; }
.functional-password .input-column .image-controls { padding: 16px 0 0; margin-top: 4px; border: 0; }
.functional-password .input-column .argument-grid { grid-template-columns: minmax(0, 1fr); }
.functional-password .input-meta { display: none; }
.functional-password .argument-control input { min-width: 0; height: 46px; min-height: 46px; font-size: 16px; font-family: "SF Mono", "SFMono-Regular", "Cascadia Code", ui-monospace, Menlo, Consolas, monospace; font-family: var(--font-mono); }
.password-match { display: inline-block; margin: 0; padding: 5px 12px; border: 1px solid #8ac6a3; border-radius: 6px; background: #eefaf3; color: #176538; font: 600 16px/1.5 "SF Mono", "SFMono-Regular", "Cascadia Code", ui-monospace, Menlo, Consolas, monospace; font: 600 16px/1.5 var(--font-mono); }
.password-match[data-match="false"] { border-color: #dac89b; background: #fff9e9; color: #725418; }

/* Paired verification controls keep the required settings next to their input. */
.functional-pgp .input-column .image-controls, .functional-sm2 .input-column .image-controls,
.functional-delay .input-column .image-controls, .functional-shuffle .input-column .image-controls { padding: 16px 0 0; margin-top: 4px; border: 0; }
.functional-pgp .input-column .argument-grid, .functional-sm2 .input-column .argument-grid,
.functional-delay .input-column .argument-grid, .functional-shuffle .input-column .argument-grid { grid-template-columns: minmax(0, 1fr); }
.functional-pgp .argument-control textarea { min-height: 160px; resize: vertical; font-family: "SF Mono", "SFMono-Regular", "Cascadia Code", ui-monospace, Menlo, Consolas, monospace; font-family: var(--font-mono); }
.functional-sm2 .argument-control input { height: 46px; min-height: 46px; font-family: "SF Mono", "SFMono-Regular", "Cascadia Code", ui-monospace, Menlo, Consolas, monospace; font-family: var(--font-mono); }
.functional-pgp .input-meta, .functional-sm2 .input-meta, .functional-delay .input-meta, .functional-shuffle .input-meta { display: none; }
.pgp-verdict { display: inline-block; margin: 0 0 12px; padding: 5px 10px; color: #116735; background: #effaf3; border: 1px solid #8bcda5; border-radius: 5px; font-weight: 600; }
.pgp-result .field-result { margin-bottom: 16px; }
.shuffle-items { margin: 0; padding: 0 0 0 30px; }
.shuffle-items li { padding: 6px 10px; border-bottom: 1px solid #e6e9f0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; white-space: pre-wrap; }
.shuffle-items li::marker { color: #68758e; font-size: 12px; }
.shuffle-items code { font: inherit; }
.empty-item { color: #68758e; }
.example-case dl.example-key-settings { grid-template-columns: minmax(0, 1fr); }
.example-key-settings code { display: block; max-height: 180px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Keys have file controls of their own; dropping a message never fills a key. */
.key-file-button { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 6px; padding: 5px 0; color: #4b61d1; color: var(--accent); cursor: pointer; font-size: 16px; }
.argument-control .key-file-button input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 0; opacity: 0; cursor: pointer; }
.key-file-button:focus-within { outline: 2px solid #4b61d1; outline: 2px solid var(--accent); outline-offset: 3px; }
.functional-pgp .argument-control input[type="password"] { height: 46px; font-family: "SF Mono", "SFMono-Regular", "Cascadia Code", ui-monospace, Menlo, Consolas, monospace; font-family: var(--font-mono); }

.functional-pgp .input-meta:has(button:not([hidden])) { display: flex; }

@media (max-width: 380px) {
    .mobile-library svg { display: none; }
}

