:root {
    --color-bg: #fbfdff;
    --color-surface: #ffffff;
    --color-surface-soft: #fbfdff;
    --color-line: #dce6f4;
    --color-line-strong: #c7d6eb;
    --color-text: #22304a;
    --color-heading: #17233a;
    --color-muted: #687691;
    --color-muted-strong: #5f6f8a;
    --color-primary: #2563eb;
    --color-primary-strong: #1d4ed8;
    --color-primary-soft: #eaf1ff;
    --color-green-soft: #eaf9f3;
    --color-green: #12936a;
    --shadow-soft: 0 18px 48px rgba(47, 83, 140, 0.12);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 14px;
    --container: 1280px;
    --header-container: 1480px;
    --header-height: 72px;
}

* {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    color: var(--color-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
    background:
        radial-gradient(circle at 12% 0%, rgba(37, 99, 235, 0.06), transparent 30rem),
        radial-gradient(circle at 88% 28rem, rgba(124, 58, 237, 0.022), transparent 28rem),
        linear-gradient(180deg, #ffffff 0%, #f9fcff 40rem, #ffffff 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

input,
textarea,
select {
    color: var(--color-heading);
}

main {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
    padding-top: var(--header-height);
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    width: 100%;
    min-height: var(--header-height);
    padding: 0 24px;
    border-bottom: 1px solid var(--color-line);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    box-shadow: 0 8px 26px rgba(47, 83, 140, 0.055);
}

.site-brand,
.site-nav,
.header-actions,
.chip-row,
.trust-tags {
    display: flex;
    align-items: center;
}

.site-brand {
    flex: 0 0 auto;
    gap: 10px;
    margin-right: 48px;
    font-size: 1.35rem;
    font-weight: 700;
}

.brand-logo {
    display: block;
    width: auto;
    height: 28px;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.4));
}

.brand-text {
    background: linear-gradient(135deg, #1e293b, #475569);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    white-space: nowrap;
}

.site-nav {
    flex: 1 1 auto;
    gap: 8px;
}

.site-nav a,
.button-secondary,
.wiki-link,
.chip {
    border-radius: var(--radius-md);
    padding: 8px 12px;
    color: var(--color-muted);
    font-size: 14px;
    font-weight: 700;
}

.site-nav a:hover,
.wiki-link:hover,
.chip:hover {
    color: var(--color-primary);
    background: var(--color-primary-soft);
}

.header-actions {
    flex: 0 0 auto;
    gap: 10px;
}

.button-secondary,
.wiki-link,
.language-button {
    border: 1px solid #bdd2fb;
    background: #fff;
}

.wiki-link {
    color: var(--color-primary);
    white-space: nowrap;
}

.language-select {
    position: relative;
}

.language-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 38px;
    border-radius: var(--radius-md);
    color: var(--color-text);
    padding: 0 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
}

.language-caret {
    color: var(--color-muted);
    font-size: 12px;
}

.language-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 80;
    display: none;
    width: 160px;
    max-height: 320px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.language-select.open .language-menu {
    display: grid;
    gap: 2px;
}

.language-menu a {
    border-radius: var(--radius-sm);
    padding: 9px 10px;
    color: var(--color-muted);
    font-size: 14px;
    font-weight: 700;
}

.language-menu a:hover,
.language-menu a.selected {
    color: var(--color-primary);
    background: var(--color-primary-soft);
}

.language-suggestion {
    position: absolute;
    top: calc(100% + 10px);
    right: max(24px, calc((100vw - var(--header-container)) / 2));
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: min(420px, calc(100vw - 32px));
    padding: 10px 12px 10px 14px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.96);
    color: var(--color-muted-strong);
    box-shadow:
        0 14px 34px rgba(47, 83, 140, 0.12),
        0 4px 12px rgba(47, 83, 140, 0.06);
    font-size: 13px;
    line-height: 1.35;
}

.language-suggestion[hidden] {
    display: none;
}

.language-suggestion__text {
    min-width: 0;
}

.language-suggestion__action {
    flex: 0 0 auto;
    color: var(--color-primary);
    font-weight: 700;
    white-space: nowrap;
}

.language-suggestion__action:hover {
    color: var(--color-primary-strong);
}

.language-suggestion__close {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    background: var(--color-surface-soft);
    color: var(--color-muted);
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.language-suggestion__close:hover {
    color: var(--color-heading);
    border-color: #a9c4f5;
}

.home-hero,
.empty-state {
    display: grid;
    justify-items: center;
    padding: 38px 0 32px;
    text-align: center;
}

.home-hero-inner {
    display: grid;
    justify-items: center;
    width: min(860px, 100%);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.home-hero h1,
.tool-intro h1,
.empty-state h1 {
    margin: 0;
    color: var(--color-primary);
    font-size: clamp(42px, 5vw, 60px);
    line-height: 1.08;
    letter-spacing: 0;
    word-break: keep-all;
}

.home-hero h1 {
    background: linear-gradient(180deg, #2f6df6 0%, #1f5ee8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-hero p,
.tool-intro p,
.empty-state p {
    max-width: 760px;
    color: var(--color-muted);
    font-size: 17px;
    line-height: 1.65;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(800px, 100%);
    min-height: 52px;
    margin-top: 0;
    padding: 0 16px;
    border: 1px solid var(--color-line-strong);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: 0 9px 21px rgba(47, 83, 140, 0.055);
}

.search-box input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--color-text);
    font-size: 15px;
}

.search-shell {
    position: relative;
    width: min(800px, 100%);
    margin-top: 24px;
}

.search-icon {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    color: #5d7196;
    font-size: 22px;
    line-height: 1;
}

.search-shortcut {
    display: inline-grid;
    place-items: center;
    min-width: 26px;
    height: 24px;
    border: 1px solid #d7e2f2;
    border-radius: 7px;
    background: #f7faff;
    color: #7890b4;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    box-shadow: inset 0 -1px 0 rgba(47, 83, 140, 0.05);
}

.search-clear {
    position: absolute;
    top: 50%;
    right: 54px;
    display: none;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 999px;
    color: var(--color-muted);
    background: var(--color-surface-soft);
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
}

.search-shell.has-value .search-clear {
    display: grid;
    place-items: center;
}

.search-shell.has-value .search-shortcut,
.search-box:focus-within .search-shortcut {
    display: none;
}

.chip-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    border: 1px solid var(--color-line);
    background: #fff;
    box-shadow: 0 3px 8px rgba(47, 83, 140, 0.03);
    white-space: nowrap;
}

.emoji-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    font-size: 14px;
    line-height: 1;
}

.app-icon-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.featured-tools {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 26px;
    width: min(800px, 100%);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 700;
}

.section-kicker span {
    font-size: 14px;
    line-height: 1;
}

.featured-tools > .section-kicker {
    flex: 0 0 100%;
}

.featured-tools .chip {
    min-height: 42px;
    justify-content: center;
    padding: 8px 13px;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.category-stack,
.home-rail,
.tool-content,
.tool-rail {
    display: grid;
    gap: 16px;
}

.hub-card,
.rail-card,
.recommendation-band,
.tool-workspace,
.content-card {
    border: 1px solid #d7e2f2;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 26px rgba(47, 83, 140, 0.055);
}

.hub-card,
.rail-card,
.recommendation-band,
.tool-workspace,
.content-card {
    padding: 20px;
}

.hub-card {
    scroll-margin-top: 92px;
    padding: 16px 18px 18px;
}

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.section-title-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.section-description {
    max-width: 540px;
    margin: 0;
    font-size: 15px;
}

.category-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 18px;
    line-height: 1;
}

.section-title-row h2,
.rail-card h2,
.content-card h2,
.tool-workspace h2 {
    margin: 0;
    color: var(--color-heading);
    font-size: 17px;
    line-height: 1.25;
}

.section-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1f6df2;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.section-meta {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eef5ff;
    color: var(--color-muted-strong);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.section-title-row p,
.rail-card p,
.rail-card span,
.tool-card small {
    color: var(--color-muted);
    line-height: 1.5;
}

.tool-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.data-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hub-group {
    display: grid;
    gap: 16px;
    margin-top: 18px;
    padding-top: 22px;
    border-top: 1px solid rgba(169, 196, 245, 0.72);
}

.hub-group-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.hub-group-heading h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--color-heading);
    font-size: 20px;
    line-height: 1.25;
}

.hub-group-heading p {
    max-width: 680px;
    margin: 7px 0 0;
    color: var(--color-muted-strong);
    font-size: 13px;
    line-height: 1.45;
    word-break: keep-all;
}

.data-category-stack {
    display: grid;
    gap: 16px;
}

.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.tool-card,
.rail-card a {
    display: grid;
    gap: 7px;
    border: 1px solid #d7e2f2;
    border-radius: var(--radius-md);
    background: rgba(252, 254, 255, 0.92);
}

.tool-card {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    min-height: 62px;
    padding: 10px 12px;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.tool-card > div {
    min-width: 0;
}

.tool-card:hover,
.rail-link:hover {
    border-color: #a9c4f5;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.09);
    transform: translateY(-1px);
}

.tool-card strong,
.rail-card strong {
    display: block;
    color: var(--color-heading);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.tool-card small,
.rail-card span,
.section-description {
    color: var(--color-muted-strong);
    font-size: 11px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.tool-card small {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.data-card {
    align-items: start;
    min-height: 82px;
}

.data-card .tool-icon {
    margin-top: 2px;
    font-size: 18px;
}

.search-type-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 4px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #eaf2ff;
    color: #1f6df2;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
}

.tool-icon {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 13px;
    line-height: 1;
}

.rail-card a {
    margin-top: 10px;
    padding: 12px;
}

.home-rail {
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

.rail-card {
    padding: 20px 22px 18px;
}

.rail-card .eyebrow {
    margin-bottom: 8px;
}

.rail-card h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 15px;
    font-size: 17px;
}

.rail-card h2 span,
.recommendation-band h2 span {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    font-size: 15px;
    line-height: 1;
}

.rail-card .rail-link {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 43px;
    padding: 5px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.rail-card .rail-link + .rail-link {
    margin-top: 7px;
}

.rail-card a.rail-link {
    margin-top: 0;
    padding-left: 0;
    padding-right: 0;
}

.rail-item-icon {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    background: transparent;
    font-size: 18px;
    line-height: 1;
}

.rail-item-copy {
    min-width: 0;
}

.rail-item-copy strong {
    font-size: 13px;
    line-height: 1.28;
}

.rail-item-copy small {
    display: block;
    margin-top: 3px;
    color: var(--color-muted);
    font-size: 12px;
    line-height: 1.3;
}

.rail-arrow {
    color: #7890b4;
    font-size: 20px;
    line-height: 1;
}

.rail-link time {
    color: var(--color-muted);
    font-size: 12px;
    white-space: nowrap;
}

.recommendation-band {
    margin-top: 28px;
}

.empty-results {
    display: grid;
    gap: 6px;
    padding: 22px;
    border: 1px dashed var(--color-line-strong);
    border-radius: var(--radius-md);
    background: var(--color-surface-soft);
    color: var(--color-muted);
    text-align: center;
}

.empty-results strong {
    color: var(--color-text);
}

.rail-card .rail-link {
    transition:
        color 0.18s ease,
        transform 0.18s ease;
}

.rail-card .rail-link:hover {
    color: var(--color-primary);
    box-shadow: none;
    transform: none;
}

.tool-page-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) 270px;
    gap: 28px;
    align-items: start;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0 max(24px, calc((100vw - var(--header-container)) / 2)) 44px 0;
}

.tool-main {
    min-width: 0;
    padding-top: 34px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 700;
}

.breadcrumb a {
    color: inherit;
}

.breadcrumb-home {
    color: var(--color-muted-strong);
}

.breadcrumb a:hover {
    color: var(--color-primary);
}

.tool-intro {
    padding: 22px 0 14px;
}

.tool-intro h1 {
    max-width: none;
    margin: 0;
    color: var(--color-heading);
    font-size: clamp(38px, 4.2vw, 54px);
    font-weight: 700;
    line-height: 1.08;
}

.tool-intro p {
    max-width: 760px;
    margin: 18px 0 0;
    color: var(--color-muted-strong);
    font-size: 17px;
    line-height: 1.65;
}

.trust-tags {
    flex-wrap: wrap;
    gap: 10px;
}

.trust-tags span {
    border-radius: var(--radius-sm);
    background: var(--color-primary-soft);
    color: var(--color-primary);
    padding: 8px 11px;
    font-size: 13px;
    font-weight: 700;
}

.trust-tags .draft-preview-tag {
    background: #fff7ed;
    color: #b45309;
}

.tool-workspace {
    margin-top: 18px;
}

.tool-main > .content-card,
.tool-main > .content-split {
    margin-top: 12px;
}

.button-primary {
    border: 0;
    border-radius: var(--radius-md);
    background: var(--color-primary);
    color: #fff;
    padding: 11px 15px;
    cursor: pointer;
    font-weight: 700;
}

.converter-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
}

.io-box {
    display: grid;
    gap: 10px;
}

.io-box textarea {
    min-height: 207px;
    resize: vertical;
    border: 1px solid #d7e2f2;
    border-radius: var(--radius-md);
    background: #fbfdff;
    padding: 14px;
}

.tool-workspace input.control-input,
.tool-workspace textarea.control-input,
.tool-workspace select.control-input,
.tool-workspace input[type="text"]:not([class]),
.tool-workspace input[type="url"]:not([class]),
.tool-workspace input[type="email"]:not([class]),
.tool-workspace input[type="tel"]:not([class]),
.tool-workspace input[type="number"]:not([class]),
.tool-workspace input[type="date"]:not([class]),
.tool-workspace textarea:not([data-tool-input]):not([data-tool-output]):not([class]),
.tool-workspace select:not([class]) {
    width: 100%;
    min-height: 40px;
    border: 1px solid #d7e2f2;
    border-radius: var(--radius-sm);
    background: #fbfdff;
    color: var(--color-heading);
    padding: 9px 11px;
    font: inherit;
    font-size: 14px;
    line-height: 1.45;
    box-sizing: border-box;
    box-shadow: 0 4px 10px rgba(47, 83, 140, 0.025);
}

.tool-workspace textarea.control-input,
.tool-workspace textarea:not([data-tool-input]):not([data-tool-output]):not([class]) {
    min-height: 88px;
    resize: vertical;
}

.tool-workspace input.control-input:focus,
.tool-workspace textarea.control-input:focus,
.tool-workspace select.control-input:focus,
.tool-workspace input[type="text"]:not([class]):focus,
.tool-workspace input[type="url"]:not([class]):focus,
.tool-workspace input[type="email"]:not([class]):focus,
.tool-workspace input[type="tel"]:not([class]):focus,
.tool-workspace input[type="number"]:not([class]):focus,
.tool-workspace input[type="date"]:not([class]):focus,
.tool-workspace textarea:not([data-tool-input]):not([data-tool-output]):not([class]):focus,
.tool-workspace select:not([class]):focus {
    outline: none;
    border-color: #9dbcf3;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.tool-workspace input::placeholder,
.tool-workspace textarea::placeholder {
    color: #7a8ba6;
}

.preview-grid {
    align-items: stretch;
}

.preview-grid .io-box {
    grid-template-rows: auto minmax(207px, 1fr);
    align-content: stretch;
}

.preview-grid .io-box textarea {
    height: 100%;
}

.preview-output {
    min-height: 207px;
    overflow: auto;
    border: 1px solid #d7e2f2;
    border-radius: var(--radius-md);
    background: #fbfdff;
    padding: 16px;
    color: var(--color-text);
    font-size: 14px;
    line-height: 1.65;
}

.preview-output[data-empty="true"] {
    color: var(--color-muted);
}

.preview-output > :first-child {
    margin-top: 0;
}

.preview-output > :last-child {
    margin-bottom: 0;
}

.preview-output h1,
.preview-output h2,
.preview-output h3 {
    margin: 1rem 0 0.45rem;
    color: var(--color-heading);
    line-height: 1.25;
}

.preview-output h1 {
    font-size: 1.6rem;
}

.preview-output h2 {
    font-size: 1.35rem;
}

.preview-output h3 {
    font-size: 1.15rem;
}

.preview-output pre,
.preview-output code {
    border-radius: var(--radius-sm);
    background: #eef4ff;
}

.preview-output code {
    padding: 0.1em 0.35em;
}

.preview-output pre {
    overflow: auto;
    padding: 12px;
}

.preview-output pre code {
    padding: 0;
    background: transparent;
}

.preview-output blockquote {
    margin: 0 0 1rem;
    border-left: 3px solid var(--color-primary);
    padding-left: 12px;
    color: var(--color-muted-strong);
}

.preview-output hr {
    margin: 1.25rem 0;
    border: 0;
    border-top: 1px solid #d7e2f2;
}

.preview-output table {
    width: 100%;
    margin: 0 0 1rem;
    border-collapse: collapse;
    font-size: 13px;
}

.preview-output th,
.preview-output td {
    border: 1px solid #d7e2f2;
    padding: 7px 9px;
}

.preview-output th {
    background: #eef4ff;
    color: var(--color-heading);
}

.inspector-grid {
    align-items: stretch;
}

.inspector-output {
    min-height: 210px;
    overflow: auto;
    border: 1px solid #d7e2f2;
    border-radius: var(--radius-md);
    background: #fbfdff;
    padding: 16px;
    color: var(--color-text);
    font-size: 14px;
    line-height: 1.6;
}

.inspector-output[data-empty="true"] {
    color: var(--color-muted);
}

.inspector-section + .inspector-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #d7e2f2;
}

.inspector-section h3 {
    margin: 0 0 10px;
    color: var(--color-heading);
    font-size: 15px;
}

.inspector-kv {
    display: grid;
    grid-template-columns: minmax(110px, 0.34fr) 1fr;
    gap: 8px 14px;
    margin: 0;
}

.inspector-kv dt {
    color: var(--color-muted-strong);
    font-weight: 700;
}

.inspector-kv dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.inspector-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.inspector-list li {
    padding: 9px 10px;
    border: 1px solid #dbe6f4;
    border-radius: var(--radius-sm);
    background: #ffffff;
    overflow-wrap: anywhere;
}

.inspector-json-output {
    min-height: 120px;
    margin-top: 12px;
}

@media (max-width: 1180px) and (min-width: 981px) {
    .inspector-workspace .inspector-grid {
        grid-template-columns: 1fr;
    }

    .inspector-workspace .conversion-arrow {
        display: none;
    }
}

.comparison-grid {
    align-items: stretch;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.comparison-result {
    margin-top: 16px;
}

.comparison-result textarea {
    min-height: 240px;
}

.generator-controls .control-input {
    width: 92px;
    min-height: 38px;
    border: 1px solid #c9d8eb;
    border-radius: var(--radius-sm);
    padding: 0 10px;
    background: #ffffff;
    color: var(--color-heading);
    font: inherit;
    font-weight: 700;
}

.generator-workspace .io-box textarea {
    min-height: 260px;
}

.tool-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.tool-controls label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-heading);
    font-size: 13px;
    font-weight: 700;
}

.cleaner-controls {
    gap: 10px 14px;
}

.cleaner-controls .checkbox-label {
    min-height: 36px;
    border: 1px solid #d7e2f2;
    border-radius: var(--radius-sm);
    background: #fff;
    padding: 7px 10px;
    color: var(--color-muted-strong);
}

.tool-controls select {
    min-width: 150px;
    height: 34px;
    border: 1px solid #d7e2f2;
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--color-heading);
    padding: 0 10px;
    font-weight: 700;
}

.custom-select {
    position: relative;
    display: inline-block;
}

.custom-select-button,
.custom-select-menu {
    display: none;
}

.workspace-placeholder {
    display: grid;
    gap: 16px;
}

.workspace-placeholder .eyebrow {
    margin: 0 0 6px;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 800;
}

.workspace-placeholder h2 {
    margin: 0;
}

.workspace-placeholder p {
    max-width: 720px;
    margin: 8px 0 0;
    color: var(--color-muted-strong);
    font-size: 14px;
    line-height: 1.6;
}

.workspace-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.workspace-meta div {
    min-width: 0;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-sm);
    background: var(--color-surface-soft);
    padding: 10px 12px;
}

.workspace-meta dt {
    color: var(--color-muted);
    font-size: 11px;
    font-weight: 800;
}

.workspace-meta dd {
    margin: 4px 0 0;
    color: var(--color-heading);
    font-size: 13px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.workspace-review-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.workspace-review-links a {
    border-radius: var(--radius-sm);
    background: var(--color-primary-soft);
    color: var(--color-primary);
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 800;
}

.inventory-hero {
    padding: 56px 0 24px;
}

.inventory-hero .eyebrow {
    margin: 0 0 10px;
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
}

.inventory-hero h1 {
    margin: 0;
    color: var(--color-heading);
    font-size: 42px;
    line-height: 1.12;
}

.inventory-hero > p {
    max-width: 760px;
    margin: 14px 0 0;
    color: var(--color-muted-strong);
    line-height: 1.7;
}

.inventory-stats,
.inventory-nav,
.inventory-section {
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.82);
}

.inventory-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: fit-content;
    margin-top: 20px;
    padding: 10px;
}

.inventory-stats span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: var(--radius-sm);
    background: var(--color-surface-soft);
    padding: 8px 10px;
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 700;
}

.inventory-stats strong {
    color: var(--color-heading);
}

.inventory-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    padding: 12px;
}

.inventory-nav a {
    border-radius: var(--radius-sm);
    background: var(--color-primary-soft);
    color: var(--color-primary);
    padding: 7px 10px;
    font-size: 13px;
    font-weight: 800;
}

.inventory-section {
    margin-top: 14px;
    padding: 18px;
}

.inventory-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.inventory-section-heading h2 {
    margin: 0;
    color: var(--color-heading);
    font-size: 20px;
}

.inventory-section-heading span {
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 700;
}

.inventory-table-wrap {
    overflow-x: auto;
}

.inventory-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 820px;
}

.inventory-table th,
.inventory-table td {
    border-top: 1px solid var(--color-line);
    padding: 11px 10px;
    text-align: left;
    vertical-align: middle;
    font-size: 13px;
}

.inventory-table th {
    color: var(--color-muted);
    font-weight: 800;
}

.inventory-table td {
    color: var(--color-text);
}

.inventory-table a {
    color: var(--color-primary);
    font-weight: 800;
}

.inventory-icon {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--color-heading);
    font-size: 21px;
    line-height: 1;
}

.inventory-icon .app-icon-img {
    width: 28px;
    height: 28px;
}

.inventory-table code {
    color: var(--color-muted-strong);
    font-size: 12px;
}

.inventory-meter {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 24px;
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    background: #f6f9fd;
    color: var(--color-heading);
    font-size: 12px;
    font-weight: 800;
}

.inventory-meter span {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: inherit;
}

.inventory-meter strong {
    position: relative;
    z-index: 1;
}

.inventory-meter.is-complete span {
    background: rgba(18, 147, 106, 0.18);
}

.inventory-meter.is-partial span {
    background: rgba(37, 99, 235, 0.14);
}

.inventory-meter.is-empty span {
    background: rgba(239, 68, 68, 0.14);
}

.inventory-mini {
    color: var(--color-muted-strong);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.inventory-status {
    display: inline-flex;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 800;
}

.inventory-status.is-active {
    background: var(--color-green-soft);
    color: var(--color-green);
}

.inventory-status.is-draft {
    background: var(--color-primary-soft);
    color: var(--color-primary);
}

@media (min-width: 721px) {
    .custom-select select {
        position: absolute;
        width: 1px;
        height: 1px;
        opacity: 0;
        pointer-events: none;
    }

    .custom-select-button {
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        min-width: 150px;
        height: 34px;
        border: 1px solid #d7e2f2;
        border-radius: var(--radius-sm);
        background: #fff;
        color: var(--color-heading);
        padding: 0 10px 0 12px;
        cursor: pointer;
        font-size: 13px;
        font-weight: 700;
        line-height: 1;
        box-shadow: 0 4px 10px rgba(47, 83, 140, 0.035);
    }

    .custom-select-button::after {
        content: "⌄";
        color: var(--color-muted);
        font-size: 13px;
        line-height: 1;
    }

    .custom-select.is-open .custom-select-button {
        border-color: #a9c4f5;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    }

    .custom-select-menu {
        position: absolute;
        top: calc(100% + 6px);
        left: 0;
        z-index: 40;
        display: none;
        min-width: 100%;
        padding: 6px;
        border: 1px solid #cbd8eb;
        border-radius: var(--radius-sm);
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 12px 28px rgba(47, 83, 140, 0.14);
    }

    .custom-select.is-open .custom-select-menu {
        display: grid;
        gap: 2px;
    }

    .custom-select-option {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 30px;
        border: 0;
        border-radius: var(--radius-sm);
        background: transparent;
        color: var(--color-text);
        padding: 0 9px;
        cursor: pointer;
        text-align: left;
        font-size: 13px;
        font-weight: 600;
    }

    .custom-select-option:hover,
    .custom-select-option.is-selected {
        color: var(--color-primary);
        background: var(--color-primary-soft);
    }
}

.checkbox-label {
    color: var(--color-muted-strong);
}

.checkbox-label input[type="checkbox"] {
    appearance: none;
    position: relative;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 0;
    border: 1px solid #b9c8dd;
    border-radius: 6px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.checkbox-label input[type="checkbox"]::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    opacity: 0;
    transform: rotate(45deg) scale(0.8);
    transition: opacity 0.12s ease, transform 0.12s ease;
}

.checkbox-label input[type="checkbox"]:checked {
    border-color: var(--color-primary);
    background: var(--color-primary);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.checkbox-label input[type="checkbox"]:checked::after {
    opacity: 1;
    transform: rotate(45deg) scale(1);
}

.checkbox-label input[type="checkbox"]:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.22);
    outline-offset: 2px;
}

.io-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.io-heading strong {
    color: var(--color-heading);
    font-weight: 700;
}

.io-heading button {
    height: 30px;
    border: 1px solid #d7e2f2;
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--color-muted-strong);
    font-size: 12px;
    font-weight: 700;
}

.conversion-arrow {
    color: var(--color-muted);
    font-size: 26px;
}

.convert-button {
    display: block;
    min-width: 144px;
    margin: 18px auto 0;
}

.cleaner-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.cleaner-stats span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border: 1px solid #d7e2f2;
    border-radius: var(--radius-sm);
    background: #f8fbff;
    color: var(--color-muted-strong);
    padding: 0 12px;
    font-size: 13px;
    font-weight: 700;
}

.cleaner-stats strong {
    color: var(--color-primary);
    font-size: 15px;
    margin: 0 4px;
}

.tool-insight-rail {
    position: sticky;
    top: calc(var(--header-height) + 18px);
}

.related-sidebar {
    position: sticky;
    top: var(--header-height);
    align-self: start;
    min-height: calc(100vh - var(--header-height));
    padding: 28px 20px 24px;
    border-right: 1px solid #d7e2f2;
    background: rgba(255, 255, 255, 0.78);
}

.related-sidebar h2 {
    margin: 0 0 22px 12px;
    color: var(--color-heading);
    font-size: 14px;
}

.related-nav {
    display: grid;
    gap: 8px;
}

.related-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    color: var(--color-heading);
    font-size: 14px;
    font-weight: 700;
}

.related-nav a > span {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 22px;
    height: 22px;
    font-size: 18px;
    line-height: 1;
}

.related-nav a.active,
.related-nav a:hover {
    background: var(--color-primary-soft);
    color: var(--color-primary);
}

.sidebar-note {
    margin-top: 46px;
    padding: 18px;
    border: 1px solid #bce8d8;
    border-radius: var(--radius-md);
    background: #effcf7;
}

.sidebar-note h3 {
    margin: 0 0 10px;
    color: #0f6d55;
    font-size: 15px;
}

.sidebar-note p {
    margin: 0;
    color: #537267;
    font-size: 13px;
    line-height: 1.6;
}

.tool-insight-rail section {
    padding: 20px;
    border: 1px solid #bdd2fb;
    border-radius: var(--radius-md);
    background: rgba(248, 251, 255, 0.92);
}

.tool-insight-rail h2 {
    margin: 0 0 16px;
    color: var(--color-primary);
    font-size: 17px;
}

.insight-point {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 2px 12px;
    margin-top: 12px;
    padding: 14px;
    border: 1px solid #d7e2f2;
    border-radius: var(--radius-md);
    background: #fff;
}

.insight-point span {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    font-weight: 700;
}

.insight-point strong {
    color: var(--color-heading);
    font-size: 13px;
}

.insight-point small {
    color: var(--color-muted-strong);
    font-size: 12px;
}

.insight-more {
    display: grid;
    place-items: center;
    height: 44px;
    margin-top: 16px;
    border: 1px solid #d7e2f2;
    border-radius: var(--radius-md);
    color: var(--color-primary);
    background: #fff;
    font-weight: 700;
}

.visual-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.visual-steps li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    color: var(--color-muted-strong);
    font-size: 13px;
}

.visual-steps span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    font-weight: 700;
}

.content-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.check-list {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    margin-top: 9px;
    color: var(--color-muted-strong);
    font-size: 14px;
}

.check-list li::before {
    content: "✓";
    margin-right: 8px;
    color: var(--color-green);
    font-weight: 700;
}

.workflow-chain {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin-top: 16px;
}

.workflow-chain a {
    padding: 12px;
    border: 1px solid #d7e2f2;
    border-radius: var(--radius-md);
    background: #fbfdff;
}

.workflow-chain strong,
.workflow-chain small {
    display: block;
}

.workflow-chain small {
    margin-top: 3px;
    color: var(--color-muted-strong);
    font-size: 12px;
}

.step-list,
.plain-list {
    margin: 12px 0 0;
    padding-left: 22px;
    color: #2c3b56;
    line-height: 1.75;
}

.faq-list details {
    margin-top: 10px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    background: var(--color-surface-soft);
}

.faq-list summary {
    cursor: pointer;
    padding: 13px 14px;
    font-weight: 700;
}

.faq-list p {
    margin: 0;
    padding: 0 14px 14px;
    color: var(--color-muted);
}

.tool-rail {
    align-content: start;
}

.rail-card.privacy {
    border-color: #b9ead8;
    background: var(--color-green-soft);
}

.site-footer {
    margin-top: 56px;
    border-top: 1px solid var(--color-line);
    background: #f2f6fb;
    color: var(--color-muted);
    padding: 60px 0 32px;
}

.legal-page-hero {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
    padding: 56px 0 20px;
}

.legal-page-inner {
    max-width: 860px;
}

.legal-page-inner h1 {
    margin: 10px 0 0;
    color: var(--color-heading);
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    line-height: 1.02;
}

.legal-page-shell {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto 72px;
}

.legal-page-card {
    max-width: 860px;
    padding: 32px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-card);
    color: var(--text-secondary);
    line-height: 1.8;
}

.legal-page-card article + article,
.legal-page-card .alert + article {
    margin-top: 28px;
}

.legal-page-card h3,
.legal-page-card h4 {
    margin: 0 0 12px;
    color: var(--color-heading);
}

.legal-page-card h3 {
    font-size: 1.08rem;
}

.legal-page-card h4 {
    font-size: 0.95rem;
}

.legal-page-card p,
.legal-page-card ul,
.legal-page-card ol {
    margin: 0 0 12px;
}

.legal-page-card ul,
.legal-page-card ol {
    padding-left: 20px;
}

.legal-page-card li + li {
    margin-top: 6px;
}

.legal-page-card a {
    color: var(--color-primary);
}

.legal-page-card .alert {
    margin-bottom: 24px;
    padding: 12px 14px;
    border: 1px solid #cfe0f6;
    border-radius: var(--radius-md);
    background: #f6fbff;
    color: var(--text-secondary);
}

.footer-container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 40px;
}

.company-info {
    color: var(--color-muted);
    font-size: 12px;
    line-height: 1.6;
}

.company-info p {
    margin: 0 0 4px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: var(--color-muted-strong);
    font-size: 13px;
    font-weight: 700;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-family-site,
.footer-partner-site {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-muted);
    font-size: 13px;
}

.footer-family-site a,
.footer-partner-site a {
    color: var(--color-muted-strong);
    font-weight: 700;
}

.footer-family-site a:hover,
.footer-partner-site a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(104, 118, 145, 0.18);
    padding-top: 32px;
    color: var(--color-muted-strong);
    font-size: 12px;
    text-align: center;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

@media (max-width: 980px) {
    .home-grid,
    .tool-page-layout,
    .tool-layout,
    .section-title-row {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-family-site,
    .footer-partner-site {
        justify-content: center;
    }

    .recommendation-grid,
    .converter-grid {
        grid-template-columns: 1fr;
    }

    .tool-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .data-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .recommendation-grid {
        grid-template-columns: 1fr;
    }

    .home-rail {
        display: none;
    }

    .related-sidebar,
    .tool-insight-rail {
        position: static;
    }

    .tool-page-layout {
        width: 100%;
        margin-right: 0;
        margin-left: 0;
        padding: 0 0 44px;
    }

    .related-sidebar {
        min-height: auto;
        padding: 18px;
        border-right: 0;
        border: 1px solid #d7e2f2;
        border-radius: var(--radius-md);
        background: rgba(255, 255, 255, 0.94);
    }

    .related-sidebar {
        order: 2;
    }

    .tool-main {
        order: 1;
    }

    .tool-insight-rail {
        order: 3;
    }

    .visual-steps,
    .content-split,
    .workflow-chain,
    .workspace-meta {
        grid-template-columns: 1fr;
    }

    .workflow-chain > span {
        display: none;
    }

    .section-description {
        max-width: none;
    }

    .hub-group-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 720px) {
    main {
        width: min(var(--container), calc(100% - 28px));
    }

    .site-header {
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 0 14px;
    }

    .brand-logo {
        width: auto;
        height: 24px;
    }

    .brand-text {
        max-width: 130px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .site-brand {
        margin-right: 0;
        font-size: 1.05rem;
    }

    .site-nav {
        display: none;
    }

    .header-actions {
        gap: 8px;
        margin-left: auto;
    }

    .wiki-link {
        padding: 8px 11px;
        font-size: 14px;
    }

    .language-button {
        height: 38px;
        max-width: 94px;
        padding: 0 10px;
        overflow: hidden;
    }

    .language-button span:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .language-menu {
        width: 150px;
    }

    .language-suggestion {
        right: 12px;
        left: 12px;
        align-items: flex-start;
        max-width: none;
    }

    .language-suggestion__text {
        flex: 1 1 auto;
    }

    .home-hero {
        padding-top: 42px;
    }

    .home-hero h1,
    .tool-intro h1,
    .inventory-hero h1,
    .empty-state h1 {
        max-width: 8.5em;
        font-size: 34px;
        line-height: 1.14;
    }

    .home-hero p,
    .tool-intro p,
    .inventory-hero p,
    .empty-state p {
        font-size: 15px;
    }

    .inventory-hero {
        padding-top: 42px;
    }

    .inventory-section {
        padding: 16px;
    }

    .inventory-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .featured-tools {
        justify-content: flex-start;
    }

    .featured-tools {
        gap: 8px;
    }

    .featured-tools .chip {
        min-height: 38px;
        padding: 7px 10px;
        font-size: 13px;
    }

    .search-box {
        min-height: 54px;
        padding-right: 44px;
    }

    .search-clear {
        right: 44px;
    }

    .search-shortcut {
        display: none;
    }

    .tool-card-grid {
        grid-template-columns: 1fr;
    }

    .data-card-grid {
        grid-template-columns: 1fr;
    }

    .converter-grid {
        grid-template-columns: 1fr;
    }

    .conversion-arrow {
        display: none;
    }

    .tool-controls {
        gap: 10px;
    }

    .tool-controls label {
        width: 100%;
        justify-content: space-between;
    }

    .tool-controls select {
        min-width: 0;
        width: 100%;
    }

    .custom-select {
        width: 58%;
    }

    .hub-card,
    .rail-card,
    .recommendation-band,
    .tool-workspace,
    .content-card {
        padding: 16px;
    }

    .legal-page-hero,
    .legal-page-shell {
        width: min(var(--container), calc(100% - 28px));
    }

    .legal-page-hero {
        padding-top: 42px;
    }

    .legal-page-card {
        padding: 22px 18px;
    }

    .tool-card {
        min-height: auto;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 420px) {
    .brand-text {
        max-width: 118px;
    }

    .wiki-link {
        display: none;
    }

    .language-suggestion {
        flex-wrap: wrap;
    }

    .language-suggestion__action {
        order: 3;
    }

    .language-suggestion__close {
        margin-left: auto;
    }
}
